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
|
---|---|---|---|---|---|---|
17,465 | imodels.tree.hierarchical_shrinkage | __repr__ | null | def __repr__(self):
attr_list = [
"estimator_",
"reg_param_list",
"shrinkage_scheme_",
"cv",
"scoring",
]
s = self.__class__.__name__
s += "("
for attr in attr_list:
s += attr + "=" + repr(getattr(self, attr)) + ", "
s = s[:-2] + ")"
return s
| (self) | [
0.03231881558895111,
-0.03970279172062874,
0.05962839722633362,
-0.0034276125952601433,
0.03274552524089813,
-0.057179439812898636,
0.013840318657457829,
-0.058329708874225616,
0.035250142216682434,
-0.0010818546870723367,
-0.036975543946027756,
0.024860626086592674,
0.003928535617887974,
0.06029629707336426,
-0.023654701188206673,
-0.006822757888585329,
0.008181743323802948,
-0.08385822921991348,
-0.001066200784407556,
0.00929954368621111,
0.0025486780796200037,
0.03309802711009979,
-0.013107487000524998,
-0.04764334857463837,
0.026140762493014336,
0.04853387922048569,
0.0006012236117385328,
-0.022727064788341522,
-0.01062142476439476,
0.010797674767673016,
-0.09439616650342941,
-0.06760606169700623,
-0.022485880181193352,
-0.035862382501363754,
-0.0008638603612780571,
0.007611247710883617,
-0.034804876893758774,
0.01899797096848488,
-0.04530571028590202,
-0.008575988933444023,
0.036771465092897415,
-0.0196102112531662,
-0.04148385301232338,
-0.0646747350692749,
-0.04345043748617172,
-0.006776376161724329,
0.0416322723031044,
0.017439544200897217,
-0.0037221366073936224,
-0.12185417115688324,
-0.001367102493532002,
0.045231498777866364,
-0.006131669506430626,
0.025621287524700165,
-0.046307556331157684,
-0.011864455416798592,
0.05999945104122162,
0.006076011341065168,
0.008242039941251278,
0.047086767852306366,
-0.03404421731829643,
0.022875485941767693,
0.03089025616645813,
-0.04337622597813606,
0.004846894647926092,
-0.05959129333496094,
-0.07306055724620819,
0.011938666924834251,
-0.027829060330986977,
0.013719726353883743,
0.010602871887385845,
-0.056029174476861954,
-0.02192929945886135,
0.035621196031570435,
-0.038033049553632736,
-0.034563690423965454,
-0.018719680607318878,
-0.024526678025722504,
0.0016987321432679892,
-0.0598510317504406,
0.011289321817457676,
0.0003493126714602113,
-0.02079758420586586,
-0.06749474257230759,
-0.0102689228951931,
-0.07554662227630615,
-0.035602644085884094,
-0.056956809014081955,
-0.034192636609077454,
0.00518084317445755,
-0.0210016630589962,
0.047680456191301346,
-0.008562074042856693,
0.03296815976500511,
-0.0381072573363781,
-0.008793982677161694,
-0.025788262486457825,
-0.036530278623104095,
0.06163208931684494,
-0.028701037168502808,
0.025417206808924675,
0.002462871838361025,
-0.0423743799328804,
0.012300443835556507,
-0.07480451464653015,
-0.017690004780888557,
-0.03899778798222542,
0.014814335852861404,
0.0076576294377446175,
-0.010009185411036015,
-0.008724410086870193,
0.06749474257230759,
0.016651052981615067,
-0.013914530165493488,
0.05369153246283531,
-0.03374737128615379,
-0.007574142422527075,
0.011437742970883846,
0.045008864253759384,
-0.024508124217391014,
-0.012263339012861252,
0.0429309606552124,
-0.02131705917418003,
0.02038942463696003,
-0.0630049929022789,
0.017114872112870216,
0.004269441589713097,
0.024508124217391014,
-0.018886655569076538,
-0.08816245943307877,
0.012523076497018337,
-0.044823337346315384,
-0.0591089203953743,
0.05194757878780365,
0.07380266487598419,
-0.014508216641843319,
0.04990677908062935,
0.016790200024843216,
0.03146538883447647,
0.09276352822780609,
0.026604581624269485,
0.003909982740879059,
-0.004320461302995682,
0.04393280670046806,
-0.00533390324562788,
-0.025064706802368164,
-0.004953572526574135,
0.09053720533847809,
0.016344934701919556,
-0.07020343840122223,
0.011326427571475506,
0.03283828869462013,
0.02905353717505932,
-0.03981410712003708,
0.028719589114189148,
0.024248387664556503,
-0.02066771499812603,
-0.027031293138861656,
0.016484079882502556,
-0.05443364009261131,
-0.04252280294895172,
-0.006437789183109999,
0.007838518358767033,
-0.05005520209670067,
0.055435486137866974,
0.04278254136443138,
0.016196511685848236,
-0.03944305330514908,
0.000532810518052429,
0.022838382050395012,
-0.027420900762081146,
-0.09075983613729477,
-0.0581812858581543,
0.035194482654333115,
-0.023728910833597183,
0.07198449969291687,
0.017736386507749557,
0.10196567326784134,
-0.013636238873004913,
0.002057031262665987,
0.05220731720328331,
-0.04066753387451172,
-0.09246668964624405,
0.000985032762400806,
0.0199812650680542,
-0.08408086746931076,
0.023951543495059013,
-0.026252079755067825,
0.026604581624269485,
0.016613949090242386,
0.035843826830387115,
0.008529606275260448,
-0.01456387434154749,
0.025973789393901825,
0.011539783328771591,
-0.07127949595451355,
-0.009341287426650524,
-0.024767862632870674,
0.028200114145874977,
0.04923888295888901,
0.005486962851136923,
0.04471202194690704,
-0.010463726706802845,
0.03174367919564247,
0.023320751264691353,
-0.005500877276062965,
0.0014123247237876058,
-0.03925752639770508,
0.023432068526744843,
0.003981874790042639,
0.03441527113318443,
0.03294960781931877,
0.026344843208789825,
-0.003937812056392431,
0.03382158279418945,
-0.0028269686736166477,
-0.025342997163534164,
-0.015723418444395065,
-0.04241148754954338,
0.017875531688332558,
0.05844102427363396,
-0.03395145386457443,
0.01021326519548893,
-0.012764262035489082,
-0.05773602053523064,
-0.027921823784708977,
0.028441298753023148,
0.011725310236215591,
-0.013524922542273998,
-0.02083468995988369,
0.015259601175785065,
-0.026363395154476166,
-0.026344843208789825,
0.01914639212191105,
-0.017634347081184387,
0.06990659981966019,
-0.04133542999625206,
0.024007201194763184,
-0.016994278877973557,
0.003499504178762436,
-0.023190882056951523,
0.047309402376413345,
-0.008353356271982193,
0.0014760997146368027,
0.04159516841173172,
-0.06675263494253159,
0.022318905219435692,
0.04140964150428772,
-0.016270723193883896,
-0.03079749271273613,
0.0592944510281086,
-0.03254144638776779,
-0.028367087244987488,
0.00040728988824412227,
0.00518084317445755,
-0.03948015719652176,
-0.03346908092498779,
0.018339350819587708,
0.03345052897930145,
0.01021326519548893,
-0.012133469805121422,
0.007337595336139202,
-0.02087179385125637,
0.023190882056951523,
0.02174377255141735,
0.010602871887385845,
-0.0033580397721379995,
-0.00515765231102705,
-0.015732694417238235,
-0.0017601880244910717,
0.13357949256896973,
0.012569458223879337,
-0.09194721281528473,
0.046827029436826706,
-0.05098283663392067,
-0.06604763120412827,
-0.007054666522890329,
-0.026827212423086166,
-0.044971760362386703,
-0.035027507692575455,
0.027754848822951317,
-0.03179933875799179,
0.0018529515946283937,
-0.01107596606016159,
0.02944314479827881,
-0.024285493418574333,
0.005050974432379007,
-0.011447019875049591,
0.02256009168922901,
0.02204061485826969,
0.06174340471625328,
0.010695635341107845,
-0.00487936194986105,
-0.0016940940404310822,
0.08601034432649612,
-0.035992249846458435,
0.04975835978984833,
0.014452558010816574,
-0.01094609685242176,
0.04504597187042236,
0.017810598015785217,
-0.01018543541431427,
0.03215184062719345,
0.0194246843457222,
-0.0386638380587101,
0.012012877501547337,
0.017337504774332047,
0.007050028536468744,
-0.007091771811246872,
0.0382927842438221,
0.004828341770917177,
0.0399625301361084,
0.025621287524700165,
0.06920159608125687,
-0.016159407794475555,
0.015862563624978065,
-0.0214654803276062,
-0.006437789183109999,
0.034545138478279114,
0.06178051233291626,
0.0022982165683060884,
0.024637993425130844,
-0.004800512921065092,
0.015927499160170555,
-0.006076011341065168,
-0.06408105045557022,
-0.06159498542547226,
-0.004930381663143635,
0.0197029747068882,
-0.006961903069168329,
-0.04270832985639572,
-0.06704948097467422,
0.028626825660467148,
0.056585755199193954,
0.03257855400443077,
0.06174340471625328,
0.018422836437821388,
0.0006870299112051725,
-0.05235573649406433,
-0.02959156595170498,
0.04356175288558006,
0.03102012537419796,
-0.011827350594103336,
-0.005500877276062965,
-0.06649290025234222,
0.023673253133893013,
-0.024081412702798843,
0.045157287269830704,
0.04953572526574135,
0.003378911642357707,
-0.04842256382107735,
-0.03274552524089813,
0.03016670048236847,
0.035546984523534775,
0.00008145797619363293,
0.028515510261058807,
-0.013626962900161743,
0.03131696954369545,
-0.01923915557563305,
0.03044499084353447,
0.06363578140735626,
-0.024378256872296333,
0.006734632421284914,
0.010203988291323185,
-0.0029406039975583553,
-0.02256009168922901,
0.00962885469198227,
-0.01004629023373127,
0.07309766113758087,
-0.02957301400601864,
-0.06074155867099762,
0.006938712205737829,
-0.017523031681776047,
-0.0429309606552124,
-0.06285656988620758,
0.05844102427363396,
-0.008288421668112278,
-0.006850586738437414,
-0.010389515198767185,
-0.07665978372097015,
0.037123966962099075,
-0.0102689228951931,
0.02185508795082569,
0.029294723644852638,
0.009981355629861355,
0.02018534392118454,
0.012727156281471252,
0.03369171544909477,
0.015649206936359406,
0.01560282614082098,
-0.027049845084547997,
-0.02024100348353386,
-0.03892357647418976,
0.008928489871323109,
-0.015500785782933235,
-0.04111279547214508,
-0.0026066552381962538,
-0.02135416492819786,
-0.06875632703304291,
-0.028478404507040977,
-0.01555644441395998,
-0.023413514718413353,
-0.04883072152733803,
-0.014369071461260319,
-0.0023028545547276735,
-0.0002469829050824046,
0.018274415284395218,
0.0381072573363781,
0.014109333045780659,
-0.05157652497291565,
-0.008381185121834278,
-0.008868193253874779,
-0.02905353717505932,
-0.048570986837148666,
0.07710504531860352,
0.008798620663583279,
0.017587965354323387,
0.01094609685242176,
0.037328045815229416,
0.005282883066684008,
-0.009703065268695354,
0.023302199319005013,
0.009396946057677269,
0.0407046377658844,
-0.009573196060955524,
0.03276408091187477,
-0.04834835231304169,
0.028942221775650978,
0.07139081507921219,
0.04905335605144501,
-0.03189210221171379,
0.025676945224404335,
-0.011344979517161846,
0.012801367789506912,
0.006303281988948584,
-0.06649290025234222,
-0.004264803137630224,
0.002745800418779254,
-0.02027810737490654,
0.03389579430222511,
-0.013135315850377083,
-0.0438585989177227,
-0.0004055505560245365,
-0.024879179894924164,
-0.02172521874308586,
0.034823428839445114,
-0.03051920235157013,
0.01080695167183876,
-0.007634438574314117,
-0.007082495838403702,
0.0652313157916069,
0.003499504178762436,
-0.016938621178269386,
0.0105472132563591,
0.015500785782933235,
-0.017736386507749557,
0.009035168215632439,
-0.05339469015598297,
0.012838472612202168,
-0.007945196703076363,
-0.002329524140805006,
0.02142837643623352,
0.0017752620624378324,
0.05027783289551735,
-0.027031293138861656,
0.011688205413520336,
0.07191029191017151,
-0.0005461453110910952,
-0.03858963027596474,
-0.00977727584540844,
0.03797738999128342,
0.015482233837246895,
-0.011372809298336506,
-0.03161381185054779,
-0.044897548854351044,
0.09157615900039673,
-0.005282883066684008,
0.0019329601200297475,
-0.0579957589507103,
-0.035380009561777115,
-0.046381764113903046,
-0.07257818430662155,
-0.023227987810969353,
0.012189128436148167,
0.004897914361208677,
0.023766016587615013,
-0.044971760362386703,
0.03339487314224243,
-0.0032652763184159994,
-0.005338541232049465,
-0.012671498581767082,
0.04278254136443138,
-0.047012556344270706,
0.022708512842655182,
0.012263339012861252,
0.03059341199696064,
0.018933037295937538,
-0.010426620952785015,
-0.06085287779569626,
0.04263411834836006,
-0.001633797655813396,
-0.04356175288558006,
0.0199812650680542,
0.004030575510114431,
0.0209088996052742,
-0.0007577621145173907,
0.035250142216682434,
0.028014587238430977,
0.0030519200954586267,
-0.013487817719578743,
0.045713867992162704,
-0.07543530315160751,
0.017921913415193558,
0.011493401601910591,
-0.037068307399749756,
-0.06218867003917694,
0.012996170669794083,
0.0052318633534014225,
-0.022931145504117012,
0.0392204225063324,
0.04252280294895172,
-0.001182735082693398,
-0.06200314313173294,
0.0002329234266653657,
-0.03207762911915779,
0.05406258627772331,
-0.011910837143659592,
0.028070244938135147,
-0.03063051775097847,
0.06359867751598358,
0.023339305073022842,
-0.008845002390444279,
-0.0009009658242575824,
0.014944205060601234,
-0.0399625301361084,
0.09973935037851334,
-0.0105472132563591,
0.03309802711009979,
0.010463726706802845,
0.015806905925273895,
0.0405191108584404,
-0.037587784230709076,
-0.017077766358852386,
-0.009832934476435184,
0.019016524776816368,
-0.036047909408807755,
0.008543521165847778,
-0.006391407456248999,
0.015083350241184235,
-0.05213310569524765,
0.016150129958987236,
0.0001362464390695095,
-0.01898869499564171,
-0.06011077016592026,
0.026270631700754166,
0.07747609913349152,
0.036418963223695755,
0.016864409670233727,
-0.012819919735193253,
0.018636193126440048,
0.003255999879911542,
-0.025380102917551994,
0.08942404389381409,
-0.012819919735193253,
0.036289092153310776,
0.046678610146045685,
0.0040769572369754314,
0.03432250767946243,
-0.07027765363454819,
-0.05090862512588501,
0.012894131243228912,
-0.007467464078217745,
0.0607786662876606,
0.016382040455937386,
-0.046827029436826706,
0.017448820173740387,
0.008297697640955448,
0.06025918945670128,
0.0068552251905202866,
0.004009703639894724,
0.006447065621614456,
0.02027810737490654,
-0.02161390334367752,
-0.05254126340150833,
-0.013432159088551998,
0.023654701188206673,
-0.056659966707229614,
0.003448484232649207,
-0.006363578140735626,
-0.029016433283686638,
-0.025083258748054504,
-0.0104080680757761,
-0.019016524776816368,
-0.022578643634915352,
0.045379918068647385,
-0.03087170235812664,
-0.006456341594457626,
-0.004315823316574097,
0.005556535441428423,
0.05558390915393829,
0.026289185509085655,
0.016215065494179726,
0.057327862828969955,
0.02211482636630535,
0.004308865871280432,
-0.028348535299301147,
0.01940613053739071,
0.045268602669239044,
0.006525914650410414,
0.047012556344270706,
-0.008218849077820778,
0.045008864253759384,
-0.028645377606153488,
-0.06601052731275558,
-0.0062337093986570835,
-0.03139117732644081,
-0.012411760166287422,
-0.0027782677207142115,
-0.017337504774332047,
-0.0010754772229120135,
0.007309766486287117,
0.014536045491695404,
-0.0310386773198843,
0.02135416492819786,
-0.0206306092441082,
0.01493492815643549,
-0.03988831862807274,
-0.056734174489974976,
0.05124257504940033,
-0.06304209679365158,
0.03200341761112213,
-0.0009896709816530347,
0.03168802335858345,
-0.10085251182317734,
-0.055435486137866974,
0.007713287603110075,
0.024730756878852844,
0.02988841012120247,
-0.06845948845148087,
0.010333857499063015,
-0.008237401954829693,
0.02085324190557003,
-0.0605931393802166,
0.009619577787816525,
-0.036938440054655075,
-0.013895977288484573,
-0.01944323629140854,
-0.06697527319192886,
0.04486044496297836,
-0.056511543691158295,
-0.03317223861813545,
0.02187363989651203,
-0.0013010085094720125,
0.0011954900110140443,
0.0011311352718621492,
0.013172421604394913,
-0.034823428839445114,
0.03910910338163376,
-0.007518484257161617,
-0.02103876881301403,
-0.056437332183122635,
-0.04389570280909538,
0.027495110407471657,
-0.04953572526574135,
0.07940558344125748,
0.045750971883535385,
-0.045268602669239044,
0.012884854339063168,
0.003564438782632351,
-0.035454221069812775,
-0.044897548854351044,
0.05435942858457565,
0.002664632396772504,
-0.046604398638010025,
-0.07172476500272751,
0.023673253133893013,
0.01474012527614832,
0.016920067369937897,
0.03044499084353447,
-0.036029353737831116,
0.04315359517931938,
0.011344979517161846,
-0.023227987810969353,
-0.056956809014081955,
0.045639656484127045,
-0.015723418444395065,
-0.027105504646897316,
0.05076020583510399,
-0.025361549109220505,
-0.045417025685310364,
-0.056288909167051315,
-0.06489736586809158,
0.027272477746009827,
-0.013302290812134743,
0.06753185391426086,
-0.001570022781379521,
0.06307920068502426,
-0.05372863635420799,
0.035342905670404434,
-0.011233664117753506,
0.007759669329971075,
0.048125721514225006,
-0.00046410755021497607,
0.011382085271179676,
0.04823703691363335,
0.045417025685310364,
0.05539838224649429,
0.005885845981538296,
0.022931145504117012,
-0.04003674164414406,
0.017309674993157387,
0.07799557596445084,
-0.0051669287495315075,
-0.04897914454340935,
0.025213127955794334,
-0.006006438750773668,
0.004406267777085304,
0.017420990392565727,
-0.036938440054655075,
0.008701219223439693,
0.007388615049421787,
0.044971760362386703,
0.06055603176355362,
0.004666005726903677,
-0.009703065268695354,
0.09892302751541138,
-0.03441527113318443,
-0.004355247598141432,
0.003668797668069601,
-0.016836581751704216,
0.014359794557094574,
0.035565536469221115,
-0.05116836354136467,
-0.02977709285914898,
0.025565629824995995,
-0.01986994780600071,
0.0066557833924889565,
-0.03157670423388481,
0.03257855400443077,
0.036697253584861755,
0.0025695497170090675,
0.058589447289705276,
0.016743818297982216,
0.013840318657457829,
-0.01492565218359232,
0.02981419861316681,
0.004939658101648092,
0.026771554723381996,
0.024860626086592674,
-0.0107791218906641,
0.03380303084850311,
0.017124148085713387,
-0.025491418316960335,
-0.03153960034251213,
0.0611497201025486,
-0.045565444976091385,
0.0420033261179924,
-0.0031887462828308344,
0.01117800548672676,
-0.04998099058866501,
-0.00995352678000927,
-0.0386638380587101,
0.03858963027596474,
0.016688158735632896,
0.006929435767233372,
0.0376434400677681,
0.0019283219007775187,
-0.05387705937027931
] |
17,481 | imodels.tree.hierarchical_shrinkage | fit | null | def fit(self, X, y, *args, **kwargs):
self.scores_ = [[] for _ in self.reg_param_list]
scorer = kwargs.get("scoring", log_loss)
kf = KFold(n_splits=self.cv)
for train_index, test_index in kf.split(X):
X_out, y_out = X[test_index, :], y[test_index]
X_in, y_in = X[train_index, :], y[train_index]
base_est = deepcopy(self.estimator_)
base_est.fit(X_in, y_in)
for i, reg_param in enumerate(self.reg_param_list):
est_hs = HSTreeClassifier(base_est, reg_param)
est_hs.fit(X_in, y_in, *args, **kwargs)
self.scores_[i].append(
scorer(y_out, est_hs.predict_proba(X_out)))
self.scores_ = [np.mean(s) for s in self.scores_]
cv_criterion = _get_cv_criterion(scorer)
self.reg_param = self.reg_param_list[cv_criterion(self.scores_)]
super().fit(X=X, y=y, *args, **kwargs)
| (self, X, y, *args, **kwargs) | [
0.006974328309297562,
0.010945625603199005,
0.009982036426663399,
-0.01717621274292469,
-0.004219211172312498,
-0.010646258480846882,
-0.015623243525624275,
-0.012947645969688892,
0.051117006689310074,
0.02595142461359501,
0.009018447250127792,
-0.04954532906413078,
0.027822470292448997,
-0.029356729239225388,
0.010150430724024773,
0.008990381844341755,
-0.0029656097758561373,
-0.06844290345907211,
-0.03366013988852501,
0.01131047960370779,
-0.0009536493453197181,
-0.043146345764398575,
-0.014631588943302631,
0.023762298747897148,
-0.02009504660964012,
-0.018439169973134995,
0.029375439509749413,
-0.00847584381699562,
-0.0008951791096478701,
0.025090742856264114,
-0.027747629210352898,
-0.001619625138118863,
-0.051004745066165924,
0.016343597322702408,
0.007067880593240261,
-0.04812333360314369,
-0.01669909618794918,
0.024716531857848167,
-0.007746135350316763,
-0.009710734710097313,
-0.04898401349782944,
-0.02656886912882328,
-0.028458626940846443,
-0.003856695955619216,
0.009935260750353336,
0.06900421530008316,
-0.02799086458981037,
0.10575158149003983,
0.04539160430431366,
-0.04853496327996254,
-0.05609399452805519,
-0.06058450788259506,
-0.027785049751400948,
-0.004214533604681492,
0.0009822997963055968,
0.04030235484242439,
0.07551546394824982,
-0.015380007214844227,
0.08636753261089325,
-0.055644940584897995,
0.0310968030244112,
-0.012077609077095985,
0.01535194180905819,
0.04101335257291794,
-0.02250869758427143,
-0.054297786206007004,
-0.07940723747015,
0.010131720453500748,
-0.009350557811558247,
0.0621187649667263,
-0.004223888739943504,
-0.04400702938437462,
0.003370223566889763,
0.004715038929134607,
-0.0031410204246640205,
0.06630991399288177,
-0.05628109723329544,
-0.011254348792135715,
0.012638923712074757,
0.019608573988080025,
-0.03306140378117561,
0.02189125120639801,
-0.026512738317251205,
-0.03461437299847603,
-0.07330762594938278,
-0.02748568169772625,
0.019234364852309227,
-0.009663958102464676,
0.04580323398113251,
0.024061666801571846,
-0.0067498027347028255,
0.049171119928359985,
0.03811322897672653,
0.002504864241927862,
0.001869877683930099,
0.023911982774734497,
-0.04890917241573334,
0.02101185917854309,
-0.02101185917854309,
-0.004099932033568621,
-0.010496574454009533,
0.06462597101926804,
0.03792612627148628,
0.08763984590768814,
-0.020862175151705742,
-0.027148893103003502,
-0.01529581006616354,
0.012283424846827984,
-0.01981438882648945,
0.014463194645941257,
-0.06582343578338623,
-0.0037561270873993635,
0.02177898958325386,
0.02722373604774475,
-0.05010664090514183,
-0.04033977538347244,
-0.07345730811357498,
0.009813642129302025,
-0.017157502472400665,
-0.05901282653212547,
0.000084489474829752,
0.05575720593333244,
-0.01092691533267498,
0.0005876257200725377,
-0.019720837473869324,
-0.0136305782943964,
0.02250869758427143,
0.030067726969718933,
0.007835010066628456,
-0.10298243165016174,
0.013434118591248989,
0.006436401978135109,
-0.026905657723546028,
-0.019215654581785202,
0.03626089170575142,
-0.06612280756235123,
-0.021535752341151237,
-0.008981026709079742,
0.02641918510198593,
-0.055682361125946045,
0.06713317334651947,
-0.034371137619018555,
-0.005005050916224718,
-0.01087078358978033,
0.046140022575855255,
0.024791374802589417,
0.023706167936325073,
0.029338018968701363,
0.011441453360021114,
0.022939037531614304,
-0.003040451556444168,
0.014902890659868717,
0.03869325667619705,
-0.03074130415916443,
-0.016932977363467216,
-0.01397672202438116,
-0.0391048863530159,
-0.018832089379429817,
0.06477565318346024,
-0.0004914422170259058,
0.027766339480876923,
-0.015473559498786926,
0.007156755309551954,
0.011123375035822392,
0.04071398451924324,
0.0928787812590599,
-0.047562018036842346,
0.017475580796599388,
-0.025895291939377785,
-0.01407027430832386,
-0.0038099198136478662,
-0.0776858776807785,
-0.06900421530008316,
0.017045238986611366,
-0.024978479370474815,
-0.013359276577830315,
0.011609847657382488,
0.015445494093000889,
-0.02170414663851261,
0.08427195996046066,
0.027466971427202225,
-0.03661639243364334,
0.015052574686706066,
-0.054110683500766754,
-0.03296785056591034,
0.014575457200407982,
0.005533622112125158,
0.007610484026372433,
-0.06653443723917007,
0.012348910793662071,
-0.024828795343637466,
-0.05624367669224739,
-0.011048533022403717,
-0.025090742856264114,
0.027317287400364876,
0.018850799649953842,
-0.003966619726270437,
0.029281888157129288,
0.011600492522120476,
0.06372786313295364,
0.005921864416450262,
-0.014612877741456032,
0.05003179982304573,
-0.04909627512097359,
-0.02280806377530098,
0.04033977538347244,
-0.011927925050258636,
0.041200459003448486,
-0.01176888681948185,
-0.008550685830414295,
0.002586722606793046,
0.0024113119579851627,
-0.035867974162101746,
0.029244467616081238,
0.057104360312223434,
0.00878924410790205,
-0.004726732615381479,
-0.036709945648908615,
-0.005089248064905405,
-0.025015899911522865,
0.015380007214844227,
-0.024435875937342644,
-0.07540319859981537,
0.018626274541020393,
0.007629194762557745,
-0.038319043815135956,
0.053998421877622604,
-0.041649509221315384,
0.025333978235721588,
-0.03727125748991966,
0.00026735509163700044,
-0.03631702437996864,
0.03944167494773865,
-0.03289300948381424,
-0.04846012219786644,
0.046065181493759155,
-0.004256632179021835,
0.017307186499238014,
-0.04812333360314369,
0.03790741413831711,
-0.008667625486850739,
-0.0026872914750128984,
-0.022321593016386032,
-0.027728918939828873,
0.014154471457004547,
0.03717770799994469,
0.02050667628645897,
0.030685173347592354,
0.055495258420705795,
0.020675070583820343,
-0.004483496770262718,
0.0351569764316082,
-0.030198700726032257,
-0.027747629210352898,
-0.047674279659986496,
-0.041574668139219284,
-0.012395687401294708,
0.04834785684943199,
0.013256369158625603,
-0.035100843757390976,
-0.04591549560427666,
0.050705377012491226,
-0.027728918939828873,
0.061819396913051605,
-0.058601196855306625,
0.019458889961242676,
0.02814054861664772,
-0.017129436135292053,
0.014463194645941257,
0.03324850648641586,
-0.005702015943825245,
0.044530920684337616,
-0.007240952458232641,
0.046065181493759155,
-0.029880622401833534,
0.04816075414419174,
-0.027074052020907402,
-0.05441005155444145,
0.043034084141254425,
0.03807580843567848,
0.08307449519634247,
-0.03261234983801842,
0.016970397904515266,
-0.03261234983801842,
0.044755447655916214,
0.03044193610548973,
0.003089566482231021,
0.006618829444050789,
0.016381017863750458,
-0.016250044107437134,
-0.018626274541020393,
0.02576431818306446,
0.032107170671224594,
0.02368745766580105,
0.06238071247935295,
0.003512891009449959,
-0.008499231189489365,
0.009387979283928871,
0.01215245109051466,
0.03059162013232708,
0.007250307593494654,
0.017129436135292053,
-0.03665381297469139,
-0.055382996797561646,
0.032406534999608994,
-0.020226020365953445,
0.0625678151845932,
0.009953971020877361,
-0.024510717019438744,
0.0271863155066967,
0.034258872270584106,
0.08651722222566605,
0.009916549548506737,
-0.041799191385507584,
-0.05669272691011429,
-0.0463271290063858,
0.049283381551504135,
-0.026250790804624557,
0.0347079262137413,
0.0005385107360780239,
0.005758147686719894,
0.0014757884200662374,
0.027111472561955452,
-0.05268868803977966,
0.029805781319737434,
0.011394676752388477,
0.020375702530145645,
0.04045204073190689,
-0.024978479370474815,
-0.02192867174744606,
-0.00007542658568127081,
-0.05306289717555046,
0.025053320452570915,
-0.011244993656873703,
-0.012414397671818733,
0.05354936793446541,
0.022901616990566254,
0.041312720626592636,
0.004249615594744682,
0.007250307593494654,
-0.0544474720954895,
0.02258353866636753,
-0.049320802092552185,
0.010954980738461018,
-0.0470755472779274,
-0.01529581006616354,
-0.007334504742175341,
0.05942445620894432,
-0.004361878614872694,
0.058713458478450775,
-0.01823335513472557,
-0.04666391387581825,
0.07480446249246597,
0.014538036659359932,
0.02112412266433239,
0.0043197800405323505,
0.0026007555425167084,
-0.000312523334287107,
0.03951651602983475,
-0.060135453939437866,
0.0069088414311409,
-0.002118960954248905,
-0.03435242548584938,
0.018775958567857742,
0.005571042653173208,
-0.01378026232123375,
-0.030909698456525803,
0.01240504253655672,
0.036822207272052765,
-0.0467761792242527,
0.0032228787895292044,
-0.024791374802589417,
-0.0549713633954525,
0.019346628338098526,
0.015903901308774948,
0.028121838346123695,
-0.021760277450084686,
-0.010337535291910172,
0.02514687366783619,
-0.009710734710097313,
0.030161280184984207,
0.01516483724117279,
0.04400702938437462,
-0.037514496594667435,
-0.013368631713092327,
-0.0312839075922966,
0.026437895372509956,
-0.008742467500269413,
0.10777231305837631,
-0.03261234983801842,
0.04389476403594017,
-0.005645884666591883,
-0.005711371544748545,
-0.01472514122724533,
-0.02832765318453312,
-0.01319088228046894,
0.06593570113182068,
0.030105149373412132,
-0.06492533534765244,
0.0011331528658047318,
-0.044830288738012314,
-0.013265724293887615,
-0.06417691707611084,
0.006179132964462042,
0.026999210938811302,
0.004490513354539871,
-0.020862175151705742,
0.013649288564920425,
0.004703344777226448,
0.03712157532572746,
-0.05208995193243027,
0.013022487983107567,
0.053961001336574554,
-0.010552706196904182,
-0.0388055182993412,
0.0010518793715164065,
0.003957264591008425,
0.08299965411424637,
0.03098454140126705,
0.014799983240664005,
-0.011160796508193016,
0.010533994995057583,
-0.012573436833918095,
0.019346628338098526,
0.038580991327762604,
0.011694044806063175,
-0.08412227779626846,
-0.063465915620327,
0.019720837473869324,
-0.0470755472779274,
-0.07495414465665817,
-0.014145116321742535,
-0.07693745940923691,
0.02119896374642849,
-0.05130411311984062,
-0.052351899445056915,
-0.03631702437996864,
0.05141637474298477,
-0.030049016699194908,
0.01516483724117279,
-0.02825281210243702,
-0.032406534999608994,
0.05916250869631767,
0.031302619725465775,
0.006272685714066029,
0.0013249352341517806,
0.0013015471631661057,
0.0353066585958004,
-0.0934026762843132,
0.004057833459228277,
0.020076336339116096,
0.011085954494774342,
0.0196647047996521,
0.07731166481971741,
-0.025165583938360214,
-0.017933987081050873,
0.0031924741342663765,
-0.012657633982598782,
0.05676757171750069,
-0.0014255039859563112,
0.04251019284129143,
-0.0010249830083921552,
0.029656097292900085,
0.007072558160871267,
-0.0700894221663475,
0.024211350828409195,
0.03394079580903053,
0.024061666801571846,
0.05313773825764656,
-0.02941286191344261,
0.0010548027930781245,
-0.020001493394374847,
-0.038506150245666504,
-0.03369756042957306,
-0.044568341225385666,
0.06698349118232727,
0.03345432132482529,
-0.016455858945846558,
-0.002453410532325506,
-0.01654941216111183,
0.039703618735075,
-0.025296557694673538,
0.054148104041814804,
-0.022171908989548683,
0.022602248936891556,
-0.04355797916650772,
-0.020188597962260246,
-0.04071398451924324,
-0.011067244224250317,
0.04587807506322861,
-0.015651309862732887,
-0.008728435263037682,
-0.0117127550765872,
0.018906930461525917,
-0.03386595472693443,
-0.005561687517911196,
0.015670020133256912,
0.017522355541586876,
-0.01131047960370779,
-0.005977995693683624,
-0.007283051032572985,
0.04026493430137634,
-0.018757248297333717,
0.006127679254859686,
0.009794931858778,
-0.008162443526089191,
-0.023986823856830597,
0.04688844084739685,
-0.06458854675292969,
0.024510717019438744,
-0.03186393156647682,
-0.046214863657951355,
0.015595178119838238,
0.04572839289903641,
-0.0067498027347028255,
-0.013499605469405651,
-0.013752196915447712,
0.047786545008420944,
0.02338808961212635,
0.02916962467133999,
0.021180253475904465,
0.023013880476355553,
0.07282115519046783,
-0.048048488795757294,
0.06881711632013321,
0.06559891253709793,
0.01359315775334835,
0.022359013557434082,
0.041125617921352386,
0.041724350303411484,
0.035755712538957596,
-0.024753954261541367,
-0.025352688506245613,
0.046252284198999405,
-0.026194659993052483,
0.049358222633600235,
0.07454251497983932,
-0.053773894906044006,
0.004986340645700693,
-0.016025518998503685,
-0.017148146405816078,
-0.017859144136309624,
0.03261234983801842,
0.01368671003729105,
-0.019571153447031975,
0.03366013988852501,
-0.01023462787270546,
-0.005379260517656803,
-0.04681359976530075,
-0.041686929762363434,
0.0067498027347028255,
-0.0468510203063488,
0.014435128308832645,
0.03796354681253433,
0.016418438404798508,
0.01667102985084057,
-0.029805781319737434,
0.05811472237110138,
0.012816673144698143,
0.0060013835318386555,
0.009617182426154613,
0.028458626940846443,
0.03700931370258331,
-0.01848594658076763,
0.03596152737736702,
-0.010113010182976723,
-0.04890917241573334,
0.037776440382003784,
-0.0630917102098465,
-0.022527407854795456,
-0.004415671341121197,
0.027785049751400948,
-0.03783257305622101,
0.01571679674088955,
-0.0791827142238617,
0.0788833498954773,
-0.004726732615381479,
-0.054222945123910904,
-0.06821838021278381,
-0.015623243525624275,
0.013041198253631592,
-0.038618411868810654,
0.0274482611566782,
-0.055457837879657745,
0.014444484375417233,
0.003257960779592395,
-0.030179990455508232,
0.019496310502290726,
-0.10522769391536713,
0.0235377736389637,
0.013331211172044277,
0.07626388221979141,
-0.008377613499760628,
-0.041649509221315384,
0.011216927319765091,
-0.017475580796599388,
-0.06451370567083359,
-0.04565355181694031,
0.00040841451846063137,
-0.04045204073190689,
0.0067170592956244946,
0.014687719754874706,
0.010019456967711449,
-0.0034824865870177746,
0.006871420424431562,
-0.041163038462400436,
-0.002157551236450672,
0.018074315041303635,
0.015567111782729626,
-0.013499605469405651,
-0.00004871300552622415,
0.021554462611675262,
0.06803127378225327,
-0.013770907185971737,
-0.030853567644953728,
0.057254042476415634,
0.016324887052178383,
-0.020001493394374847,
0.041200459003448486,
0.0010045184753835201,
0.038319043815135956,
-0.028421206399798393,
0.008737790398299694,
0.0552707314491272,
-0.04580323398113251,
-0.015089995227754116,
-0.041499827057123184,
-0.08659206330776215,
-0.009182163514196873,
-0.01677393727004528,
0.003742094384506345,
-0.03175166994333267,
0.024978479370474815,
-0.009051190689206123,
0.05197769030928612,
-0.027897313237190247,
0.018981773406267166,
0.003545634215697646,
-0.05197769030928612,
-0.06952811032533646,
-0.09706992655992508,
-0.002792537910863757,
0.02565205655992031,
-0.013452828861773014,
-0.044381238520145416,
-0.03409047797322273,
-0.0312839075922966,
0.03637315705418587,
0.07229726016521454,
-0.041612088680267334,
0.03783257305622101,
-0.013873814605176449,
-0.05126669257879257,
-0.0043712337501347065,
0.03032967448234558,
0.031302619725465775,
0.02671855315566063,
0.009953971020877361,
0.008564718067646027,
0.001999681582674384,
-0.03113422356545925,
0.01652134582400322,
0.08329901844263077,
0.01652134582400322,
-0.031190356239676476,
0.03386595472693443,
0.002453410532325506,
-0.022864196449518204,
-0.049320802092552185,
0.005996705964207649,
-0.08314933627843857,
-0.027972154319286346,
-0.05051827430725098,
0.014266734011471272,
-0.025352688506245613,
-0.04531676322221756,
-0.03715899586677551,
-0.02445458620786667,
-0.009327170439064503,
0.019683415070176125,
0.06612280756235123,
0.05789019912481308,
0.021030569449067116,
0.0024908315390348434,
0.047000702470541,
0.05500878766179085,
-0.044605765491724014,
0.03259364143013954,
-0.004799236077815294,
-0.030254831537604332,
-0.0036742687225341797,
-0.04011525213718414,
0.028084417805075645,
-0.05650562420487404,
-0.027541814371943474,
0.03124648705124855,
-0.01593196578323841,
-0.04834785684943199,
0.03695318102836609,
-0.009144742973148823,
-0.04954532906413078,
0.0354563444852829,
-0.034445978701114655,
0.03446468710899353,
-0.0023317926097661257,
0.006169777829200029,
-0.050929903984069824,
0.019384048879146576,
-0.020824754610657692,
-0.0624929741024971,
0.011553715914487839,
-0.047861386090517044,
-0.027654075995087624,
-0.015033863484859467,
0.03366013988852501,
0.026213370263576508,
0.034913741052150726,
-0.04524191841483116,
-0.004799236077815294,
0.024099087342619896,
0.061594873666763306,
-0.01052463985979557,
0.023874562233686447,
0.010075588710606098,
0.022153198719024658,
-0.029281888157129288,
0.08719079941511154,
-0.018514011055231094,
0.08816374093294144,
-0.061894237995147705,
0.05953672155737877,
0.011104664765298367,
-0.009116677567362785,
-0.007138045039027929,
0.003070856211706996,
-0.03504471108317375,
-0.024510717019438744,
-0.05134153366088867,
0.06417691707611084,
0.048048488795757294,
0.012545371428132057,
0.0018675389001145959,
0.008438422344624996,
0.025408819317817688,
-0.01626875437796116,
0.026943078264594078,
-0.006740447133779526,
0.01820528879761696,
0.04539160430431366,
-0.010243983007967472,
-0.005449424963444471,
-0.04060172289609909,
0.06103355810046196,
0.023219695314764977,
0.05122927203774452,
0.030685173347592354,
-0.014257378876209259,
-0.06137034669518471,
0.01535194180905819,
0.005276353098452091,
0.027036631479859352,
-0.07244694232940674,
-0.018074315041303635,
0.0008694521966390312,
0.005580398254096508,
0.029150914400815964,
0.06140776723623276,
0.03306140378117561
] |
17,489 | imodels.tree.hierarchical_shrinkage | HSTreeRegressor | null | class HSTreeRegressor(HSTree, RegressorMixin):
def __init__(
self,
estimator_: BaseEstimator = DecisionTreeRegressor(max_leaf_nodes=20),
reg_param: float = 1,
shrinkage_scheme_: str = "node_based",
max_leaf_nodes: int = None,
random_state: int = None,
):
super().__init__(
estimator_=estimator_,
reg_param=reg_param,
shrinkage_scheme_=shrinkage_scheme_,
max_leaf_nodes=max_leaf_nodes,
random_state=random_state,
)
| (estimator_: sklearn.base.BaseEstimator = DecisionTreeRegressor(max_leaf_nodes=20), reg_param: float = 1, shrinkage_scheme_: str = 'node_based', max_leaf_nodes: int = None, random_state: int = None) | [
0.01892104744911194,
-0.03773198276758194,
0.01963678188621998,
-0.03477729111909866,
-0.041585929691791534,
-0.004523800686001778,
-0.07663850486278534,
0.011231504380702972,
-0.02321544662117958,
-0.006505830679088831,
0.051973238587379456,
0.05017472803592682,
0.03033607453107834,
0.028904607519507408,
-0.01260791439563036,
-0.01892104744911194,
0.028702734038233757,
-0.022389601916074753,
0.010387307032942772,
0.025949914008378983,
-0.03455706313252449,
0.0003389409394003451,
-0.017131716012954712,
0.014929459430277348,
-0.050541769713163376,
0.0583597794175148,
0.011249857023358345,
-0.004432039801031351,
0.0043150451965630054,
-0.029987383633852005,
-0.06034180894494057,
-0.048082586377859116,
-0.09499063342809677,
0.04378818720579147,
0.006427834276109934,
-0.02651883102953434,
-0.030225960537791252,
0.09036589413881302,
-0.07238081097602844,
0.05182642117142677,
-0.014287134632468224,
-0.02385777235031128,
-0.043604664504528046,
-0.055533550679683685,
0.027968648821115494,
0.029253298416733742,
0.03340087831020355,
0.024977251887321472,
-0.010983751155436039,
-0.06474632024765015,
0.002851462457329035,
-0.02567463181912899,
-0.008662206120789051,
0.02910648100078106,
-0.0066618239507079124,
0.04507283493876457,
0.06481973081827164,
0.036740969866514206,
0.07061900198459625,
-0.019177976995706558,
0.021949149668216705,
-0.0015805773437023163,
-0.0021311412565410137,
-0.007629898842424154,
-0.03696119412779808,
-0.031932707875967026,
-0.09792697429656982,
-0.014635825529694557,
-0.014993691816926003,
0.01892104744911194,
-0.0047944942489266396,
-0.023362264037132263,
0.009588988497853279,
0.043017398566007614,
0.040044352412223816,
0.021049896255135536,
-0.027014337480068207,
-0.08478684723377228,
0.002876696642488241,
0.006744408514350653,
-0.00924029853194952,
0.0025738864205777645,
-0.004450391978025436,
-0.011635251343250275,
-0.02490384317934513,
-0.10702963173389435,
0.046834640204906464,
-0.05344140902161598,
0.006698528304696083,
-0.01751711033284664,
-0.06871037930250168,
0.015672720968723297,
0.009588988497853279,
-0.00187650544103235,
0.07972165942192078,
0.03857618197798729,
0.0018237431067973375,
-0.016966545954346657,
-0.050725292414426804,
-0.06412234902381897,
-0.009754158556461334,
0.07605123519897461,
-0.009478876367211342,
0.05869011953473091,
-0.005569871980696917,
-0.0010351749369874597,
-0.00998356007039547,
0.010726820677518845,
-0.007405085023492575,
-0.03149225935339928,
-0.06283769756555557,
0.05997476726770401,
-0.015140509232878685,
0.036924488842487335,
-0.021710572764277458,
-0.025380998849868774,
-0.02949187532067299,
0.009634869173169136,
-0.011515962891280651,
-0.05193653330206871,
0.01730605959892273,
0.029253298416733742,
-0.035236094146966934,
0.05960772559046745,
-0.014516536146402359,
0.03707130625844002,
0.06885720044374466,
0.0443754568696022,
-0.036997899413108826,
-0.03560313582420349,
-0.0023834831081330776,
0.029290001839399338,
-0.0482294037938118,
0.0051615373231470585,
0.025069011375308037,
0.010038616135716438,
0.010607532225549221,
0.022518066689372063,
0.028812848031520844,
-0.01082775741815567,
0.031235327944159508,
-0.029473524540662766,
0.008776906877756119,
-0.019618429243564606,
0.02354578487575054,
0.000013880591723136604,
-0.02283005230128765,
0.02631695754826069,
-0.030941694974899292,
-0.008474096655845642,
-0.02231619320809841,
0.008570445701479912,
0.06540700048208237,
-0.004633913282305002,
0.0249588992446661,
0.0207379087805748,
-0.022609826177358627,
-0.009800038300454617,
0.005583635997027159,
0.002252724254503846,
-0.01963678188621998,
0.01438807137310505,
0.02587650530040264,
-0.02853756584227085,
-0.017425348982214928,
-0.01342458464205265,
-0.025124069303274155,
-0.0753171518445015,
-0.042943987995386124,
0.022609826177358627,
0.0037300707772374153,
-0.08251118659973145,
-0.048596445471048355,
0.03176753968000412,
-0.012837315909564495,
0.038539476692676544,
0.0655171126127243,
0.04855974018573761,
-0.0007386733195744455,
0.05990136042237282,
0.024555152282118797,
-0.01698489859700203,
-0.03422672674059868,
0.0020680557936429977,
0.020058879628777504,
-0.029143186286091805,
-0.011121392250061035,
0.013855859637260437,
0.0060194991528987885,
0.041842859238386154,
0.020279105752706528,
-0.011782068759202957,
0.017865801230072975,
-0.022536417469382286,
0.050284840166568756,
-0.04378818720579147,
0.005381762515753508,
-0.039383675903081894,
0.005372586660087109,
0.07399579882621765,
-0.04643089324235916,
0.05762569606304169,
0.04331102967262268,
0.017618047073483467,
0.005675396881997585,
0.046320781111717224,
-0.0018306251149624586,
0.02892296016216278,
-0.0439717099070549,
0.009588988497853279,
-0.04202638193964958,
0.03736494109034538,
0.01086446177214384,
0.08838386833667755,
0.024041293188929558,
-0.05997476726770401,
-0.045990440994501114,
-0.003966354299336672,
0.03340087831020355,
-0.050027910619974136,
0.03347428888082504,
-0.010754349641501904,
0.020848022773861885,
-0.0029936914797872305,
0.028959663584828377,
-0.03839265927672386,
0.007951061241328716,
-0.0668751671910286,
-0.006028675474226475,
-0.03347428888082504,
0.011047983542084694,
-0.05960772559046745,
0.06096578389406204,
-0.039970941841602325,
0.0023582489229738712,
0.0035350793041288853,
-0.008831963874399662,
-0.032318104058504105,
-0.0027505257166922092,
0.016131523996591568,
-0.04455897584557533,
-0.013699866831302643,
-0.02606002800166607,
-0.05237698554992676,
0.012369336560368538,
0.025325942784547806,
0.021618811413645744,
0.03494245931506157,
0.00013713916996493936,
-0.021288473159074783,
-0.018847638741135597,
-0.05237698554992676,
-0.01841636374592781,
0.022022558376193047,
-0.002934047020971775,
-0.013103421777486801,
-0.011782068759202957,
0.0021735806949436665,
0.013250239193439484,
-0.03351099416613579,
-0.019361499696969986,
-0.027858536690473557,
-0.03294207528233528,
0.080382339656353,
-0.04371477663516998,
-0.021306825801730156,
0.0007392468396574259,
-0.0033286178950220346,
-0.017718983814120293,
-0.02437163144350052,
0.11972931027412415,
0.05557025596499443,
-0.04173274710774422,
0.00855668168514967,
-0.0020003824029117823,
-0.012791436165571213,
-0.02093978226184845,
-0.012626267038285732,
-0.014222902245819569,
-0.01614987663924694,
0.00962569285184145,
-0.056047409772872925,
0.013397056609392166,
0.02437163144350052,
-0.021765628829598427,
-0.0063314856961369514,
-0.02574804052710533,
0.010506595484912395,
0.0012135347351431847,
0.014562416821718216,
-0.036796025931835175,
0.02393117919564247,
-0.036575797945261,
0.03340087831020355,
0.10372625291347504,
-0.039787422865629196,
-0.0070609827525913715,
0.025509463623166084,
0.003571783658117056,
0.010460714809596539,
0.05362492799758911,
-0.024151405319571495,
-0.01066258829087019,
-0.013057542033493519,
-0.034648824483156204,
-0.006753584370017052,
0.07006844133138657,
0.011846301145851612,
-0.0012433569645509124,
0.06423246115446091,
-0.0025188301224261522,
0.060011472553014755,
-0.015847066417336464,
0.012231696397066116,
-0.026794113218784332,
-0.07876735180616379,
0.02905142493546009,
-0.04239342361688614,
0.029216594994068146,
0.04239342361688614,
-0.0689673125743866,
-0.009974383749067783,
-0.015452494844794273,
-0.03281361237168312,
-0.022664882242679596,
-0.026041675359010696,
0.019600076600909233,
-0.015599312260746956,
-0.022591473534703255,
0.016553623601794243,
-0.07414261251688004,
-0.04176945239305496,
0.09109998494386673,
-0.020003823563456535,
-0.04933053255081177,
0.034263432025909424,
0.06973810493946075,
0.043017398566007614,
-0.05623093247413635,
-0.02930835448205471,
0.05843318998813629,
0.03864958882331848,
-0.002171286614611745,
0.05123915150761604,
-0.023564137518405914,
-0.024940546602010727,
0.01822366751730442,
-0.01109386421740055,
0.031290385872125626,
0.03297878056764603,
-0.024096349254250526,
-0.0064645386300981045,
0.029326707124710083,
0.041402410715818405,
0.07230740040540695,
0.0016700440319254994,
-0.011873829178512096,
0.05424890294671059,
0.017012426629662514,
-0.03868629410862923,
0.006501242518424988,
-0.01717759482562542,
-0.04026457667350769,
0.04118218272924423,
-0.006560887210071087,
-0.08251118659973145,
-0.014635825529694557,
0.05204664543271065,
0.08309845626354218,
-0.059093866497278214,
0.02462856099009514,
-0.05065188556909561,
-0.019471611827611923,
0.017067482694983482,
0.008419040590524673,
0.04466908797621727,
-0.035236094146966934,
-0.015847066417336464,
0.0018960046581923962,
-0.006845345254987478,
0.03209787979722023,
0.021288473159074783,
0.039053335785865784,
-0.015131332911550999,
-0.016103995963931084,
-0.02923494577407837,
0.011974765919148922,
0.03046453930437565,
0.0710594579577446,
-0.040888551622629166,
-0.0028721087146550417,
-0.011910533532500267,
-0.004110877402126789,
0.022481361404061317,
-0.08368571847677231,
-0.0057671573013067245,
0.02613343670964241,
0.003087746212258935,
-0.07788644731044769,
0.016039762645959854,
0.027087746188044548,
-0.030005736276507378,
-0.01082775741815567,
-0.012011470273137093,
0.047495316714048386,
-0.03773198276758194,
0.029143186286091805,
0.02093978226184845,
0.04320091754198074,
-0.005959854926913977,
0.0072582680732011795,
-0.029033072292804718,
-0.01711336337029934,
0.029730454087257385,
-0.028555916622281075,
-0.0276933666318655,
0.0638287141919136,
0.0545792393386364,
0.019269738346338272,
-0.03650239109992981,
0.013149302452802658,
0.043604664504528046,
-0.04764213413000107,
0.03444695100188255,
0.05762569606304169,
0.02281169965863228,
-0.010378130711615086,
-0.010268017649650574,
-0.027913592755794525,
0.021563755348324776,
-0.025656281039118767,
-0.02016899362206459,
-0.06845345348119736,
-0.010029439814388752,
0.03762187063694,
-0.014085261151194572,
-0.03993424028158188,
0.02859262190759182,
-0.02561957575380802,
-0.006625119596719742,
0.007005926221609116,
-0.019489964470267296,
0.05182642117142677,
-0.04125559329986572,
0.04272376373410225,
-0.016195757314562798,
0.023417320102453232,
0.00028832920361310244,
-0.03442860022187233,
-0.0820707306265831,
0.06397553533315659,
-0.028867904096841812,
-0.01355304941534996,
0.06746243685483932,
-0.007629898842424154,
-0.0448526106774807,
0.04679793491959572,
-0.0047164978459477425,
0.010616708546876907,
-0.011974765919148922,
0.004399923607707024,
0.004335691221058369,
0.039640605449676514,
0.01866411790251732,
-0.012461097911000252,
-0.007038042414933443,
0.07942802459001541,
-0.004900019150227308,
0.018462244421243668,
-0.050027910619974136,
0.016948193311691284,
0.014121965505182743,
-0.043347734957933426,
-0.05050506815314293,
-0.026610590517520905,
0.0414758175611496,
-0.01770063117146492,
-0.05318447947502136,
-0.04033798724412918,
-0.03762187063694,
0.03532785549759865,
-0.017975913360714912,
0.06797629594802856,
0.0334375835955143,
-0.008767731487751007,
-0.025069011375308037,
0.000777671579271555,
-0.04925712198019028,
0.0066709998063743114,
0.024977251887321472,
-0.05259720981121063,
-0.01014872919768095,
-0.031143568456172943,
0.07384897768497467,
-0.0012697380734607577,
0.025858154520392418,
0.013314471580088139,
0.02049933187663555,
0.03220799192786217,
-0.02743643708527088,
0.0014314663130789995,
-0.0000857388658914715,
-0.003484611166641116,
-0.005721277091652155,
0.030629707500338554,
0.0034777289256453514,
-0.0065975915640592575,
0.045293062925338745,
-0.04463238641619682,
0.0405949167907238,
0.02697763405740261,
0.0006566622178070247,
0.003179506864398718,
0.047495316714048386,
0.015966353937983513,
0.0013293825322762132,
-0.021563755348324776,
0.05905716121196747,
0.026922577992081642,
0.029400115832686424,
0.019361499696969986,
0.033162303268909454,
0.05887363851070404,
-0.04125559329986572,
0.04195297509431839,
0.01169948372989893,
0.0009583253995515406,
0.02380271442234516,
0.05234028026461601,
0.0753171518445015,
0.017342764884233475,
-0.028610974550247192,
-0.027197860181331635,
0.09286178648471832,
-0.014525712467730045,
0.007244504056870937,
0.02101319096982479,
-0.008419040590524673,
0.01293825265020132,
-0.06294780969619751,
0.002876696642488241,
-0.0032666795887053013,
0.02853756584227085,
-0.006198432762175798,
-0.050027910619974136,
-0.006345249712467194,
0.035309500992298126,
0.019673485308885574,
-0.02989562228322029,
-0.00677652470767498,
-0.01568189635872841,
-0.027583254501223564,
-0.018315427005290985,
0.01859988644719124,
0.02936341054737568,
-0.008607150055468082,
-0.02231619320809841,
0.01277308352291584,
0.02231619320809841,
0.01724182814359665,
-0.010928694158792496,
-0.012461097911000252,
0.06107589602470398,
0.028042057529091835,
0.027583254501223564,
0.01912292093038559,
-0.051899828016757965,
0.05696501582860947,
-0.06199350208044052,
0.003037277841940522,
0.01238768920302391,
0.014057733118534088,
0.02249971404671669,
0.03494245931506157,
-0.06702198833227158,
-0.0009336647344753146,
-0.0033309119753539562,
0.0355297289788723,
-0.052487097680568695,
-0.010479067452251911,
-0.014351367019116879,
-0.004640795290470123,
-0.05957102030515671,
-0.039200153201818466,
-0.0027918179985135794,
0.017847448587417603,
-0.024298222735524178,
0.04202638193964958,
-0.07373886555433273,
-0.004514624364674091,
0.019159626215696335,
0.0032299752347171307,
0.013479640707373619,
-0.03288701921701431,
-0.005969030782580376,
-0.030005736276507378,
-0.08486025780439377,
-0.03864958882331848,
0.01859988644719124,
0.007960237562656403,
-0.02646377496421337,
0.021251769736409187,
0.04151252284646034,
-0.0025096540339291096,
0.04830281063914299,
-0.031345441937446594,
0.025105716660618782,
-0.007790479809045792,
-0.030556298792362213,
-0.05571707338094711,
0.0016184286214411259,
-0.0002309787814738229,
0.044705793261528015,
-0.0064003062434494495,
-0.025821449235081673,
0.0008258459274657071,
-0.04577021673321724,
-0.049624163657426834,
0.0023020454682409763,
-0.07605123519897461,
-0.01235098484903574,
0.015507551841437817,
0.0007960236980579793,
0.02457350492477417,
-0.033033836632966995,
0.0003449627256486565,
0.038943223655223846,
-0.08493366837501526,
-0.025821449235081673,
-0.04661441594362259,
0.006524182856082916,
-0.05634104460477829,
0.006831581238657236,
-0.07340852916240692,
0.0164802148938179,
-0.011626075953245163,
0.007239915896207094,
0.04947734624147415,
0.00849703699350357,
-0.06555381417274475,
-0.07641828060150146,
0.02062779664993286,
-0.0168013758957386,
-0.023031925782561302,
-0.04767883941531181,
-0.06636130809783936,
-0.019416555762290955,
0.022976869717240334,
0.00979086197912693,
-0.013828331604599953,
-0.010901166126132011,
0.08574116230010986,
-0.031015103682875633,
0.019746894016861916,
0.029913974925875664,
-0.00638654176145792,
0.0164802148938179,
-0.038869816809892654,
0.04209979251027107,
0.014140317216515541,
-0.018774231895804405,
-0.005404702853411436,
0.055386733263731,
0.07671190798282623,
0.03196941316127777,
0.0015851653879508376,
-0.024151405319571495,
-0.01342458464205265,
-0.01231428049504757,
-0.011415026150643826,
-0.0570751316845417,
-0.01660867966711521,
-0.03435518965125084,
-0.036667559295892715,
-0.001506021828390658,
-0.009754158556461334,
-0.001547314110212028,
-0.008451156318187714,
0.006643471773713827,
0.009552285075187683,
0.05575377866625786,
0.058910343796014786,
-0.021930797025561333,
-0.006505830679088831,
0.02075626142323017,
0.019361499696969986,
-0.0778130367398262,
0.044118523597717285,
-0.0117361880838871,
-0.024738673120737076,
0.01639763079583645,
-0.0465410053730011,
0.02004052884876728,
-0.0069921622052788734,
0.002086407970637083,
0.042760469019412994,
-0.062470655888319016,
-0.06158975511789322,
0.03486905246973038,
-0.05006461590528488,
0.03813572973012924,
-0.002562416484579444,
-0.06114930287003517,
0.03130873665213585,
0.021435290575027466,
0.03474058583378792,
-0.025949914008378983,
0.008565858006477356,
0.046651121228933334,
-0.07605123519897461,
0.015360734425485134,
0.027051042765378952,
0.013892563991248608,
-0.02295851707458496,
-0.0010724527528509498,
-0.017076658084988594,
0.03140049800276756,
0.006446186453104019,
-0.02561957575380802,
-0.012139935046434402,
0.0011561843566596508,
-0.01536991074681282,
0.08904454112052917,
0.04889008030295372,
-0.008570445701479912,
0.008662206120789051,
0.06320474296808243,
-0.04008105769753456,
0.049183715134859085,
-0.021251769736409187,
0.04433875158429146,
0.025197478011250496,
-0.034850697964429855,
-0.07003173232078552,
0.010460714809596539,
-0.034520361572504044,
-0.014654177241027355,
0.017131716012954712,
0.030776524916291237,
0.051716309040784836,
0.04000764712691307,
-0.0041888742707669735,
-0.01730605959892273,
-0.03385968506336212,
0.0655171126127243,
0.02101319096982479,
0.010524948127567768,
0.05270732194185257,
0.044779203832149506,
-0.013984324410557747,
0.02158210799098015,
-0.03831925243139267,
0.05982794985175133,
0.04889008030295372,
0.06713210046291351,
-0.01520474161952734,
-0.013250239193439484,
-0.02639036625623703,
-0.043017398566007614,
-0.03956719487905502,
0.018847638741135597,
-0.05615752562880516,
-0.0007868476677685976,
-0.05997476726770401,
0.030134201049804688,
0.011167271994054317,
0.05483616888523102,
0.009134774096310139
] |
17,491 | imodels.tree.hierarchical_shrinkage | __init__ | null | def __init__(
self,
estimator_: BaseEstimator = DecisionTreeRegressor(max_leaf_nodes=20),
reg_param: float = 1,
shrinkage_scheme_: str = "node_based",
max_leaf_nodes: int = None,
random_state: int = None,
):
super().__init__(
estimator_=estimator_,
reg_param=reg_param,
shrinkage_scheme_=shrinkage_scheme_,
max_leaf_nodes=max_leaf_nodes,
random_state=random_state,
)
| (self, estimator_: sklearn.base.BaseEstimator = DecisionTreeRegressor(max_leaf_nodes=20), reg_param: float = 1, shrinkage_scheme_: str = 'node_based', max_leaf_nodes: Optional[int] = None, random_state: Optional[int] = None) | [
0.03905855864286423,
-0.011855746619403362,
0.004050943534821272,
-0.014241634868085384,
-0.05073927715420723,
0.0064161051996052265,
-0.03301553800702095,
-0.009221136569976807,
-0.05029710754752159,
0.0032633240334689617,
0.032297007739543915,
0.09042424708604813,
0.02581181190907955,
0.03546590730547905,
-0.004278938751667738,
-0.03616601601243019,
0.028759626671671867,
-0.008456546813249588,
0.017843497917056084,
0.046538639813661575,
-0.03483949601650238,
0.009115198627114296,
-0.020689981058239937,
0.03651606664061546,
-0.03165217116475105,
0.06787345558404922,
-0.0003345079894643277,
-0.01141357421875,
0.012132104486227036,
-0.002712911693379283,
-0.07752755284309387,
-0.04841787368059158,
-0.0739164799451828,
0.06054076552391052,
0.02774631604552269,
-0.027617348358035088,
-0.03382618725299835,
0.08931881934404373,
-0.06809454411268234,
0.03688454627990723,
-0.005209343042224646,
-0.037953127175569534,
-0.035097431391477585,
-0.05073927715420723,
0.017189450562000275,
0.01606559567153454,
0.03220488876104355,
0.020155690610408783,
-0.02752522937953472,
-0.06002489849925041,
-0.014868045225739479,
-0.021261120215058327,
0.007913042791187763,
0.0377688892185688,
0.002604671521112323,
0.055345240980386734,
0.07211094349622726,
0.02260606177151203,
0.07085812091827393,
-0.004453965462744236,
-0.017124967649579048,
-0.013302018865942955,
-0.00928101409226656,
-0.03259178623557091,
-0.03122842311859131,
-0.029901906847953796,
-0.08953990042209625,
-0.01258348859846592,
-0.026106592267751694,
0.029201800003647804,
0.030804675072431564,
-0.019474007189273834,
-0.007457052823156118,
0.030712556093931198,
0.00925337802618742,
0.008350608870387077,
-0.027948977425694466,
-0.06533096730709076,
-0.01927134580910206,
0.009746216237545013,
0.024577414616942406,
0.02277187630534172,
-0.011671507731080055,
-0.03321819752454758,
-0.03688454627990723,
-0.10508963465690613,
0.0090368976816535,
-0.05718762427568436,
0.02894386649131775,
-0.009257983416318893,
-0.03283129632472992,
0.023582525551319122,
0.029201800003647804,
-0.002058865036815405,
0.06363597512245178,
0.03522639721632004,
-0.005421217530965805,
0.0038690082728862762,
-0.023250896483659744,
-0.05829305574297905,
-0.010004149749875069,
0.05228688195347786,
-0.031191576272249222,
0.028685931116342545,
-0.004543781746178865,
-0.016120867803692818,
-0.007171482779085636,
0.0014174848329275846,
-0.0022684363648295403,
-0.04908113181591034,
-0.07218463718891144,
0.05003917217254639,
-0.051918406039476395,
0.04723874852061272,
-0.05154992640018463,
0.03065728396177292,
-0.022440247237682343,
-0.020395200699567795,
0.002600065665319562,
-0.06289901584386826,
0.016885457560420036,
0.04687026888132095,
-0.049117978662252426,
0.02557230181992054,
-0.005937085021287203,
0.01553130429238081,
0.06253053992986679,
0.05744555965065956,
-0.04454886540770531,
-0.04174844175577164,
0.0016823277110233903,
0.002940906910225749,
-0.06090924143791199,
-0.01490489300340414,
0.023471983149647713,
-0.010206812061369419,
0.012601912021636963,
0.02791213057935238,
-0.014435085467994213,
-0.01104509737342596,
0.03362352401018143,
0.0008613149402663112,
0.02535121515393257,
-0.01038183830678463,
0.037842582911252975,
0.01006863359361887,
-0.0232324730604887,
0.038247909396886826,
-0.0328865684568882,
-0.012095256708562374,
-0.016784125939011574,
0.03128369525074959,
0.023490406572818756,
-0.01973194256424904,
0.030823098495602608,
0.014462720602750778,
0.005688363220542669,
-0.006070658098906279,
0.026161864399909973,
0.002152135828509927,
-0.015116767957806587,
0.02802267298102379,
0.03415781632065773,
-0.029901906847953796,
-0.01118327584117651,
0.01831330545246601,
-0.054608285427093506,
-0.06407814472913742,
-0.04454886540770531,
0.02317720092833042,
-0.0199714507907629,
-0.08703426271677017,
-0.04738613963127136,
-0.006452952977269888,
-0.013513892889022827,
0.07045279443264008,
0.06404129415750504,
0.04690711945295334,
0.003997975029051304,
0.07959102839231491,
0.009317860938608646,
-0.009313255548477173,
-0.025645997375249863,
-0.022642910480499268,
0.014241634868085384,
-0.04027453437447548,
-0.019602974876761436,
0.021132154390215874,
0.003921976778656244,
0.03883747383952141,
0.049854934215545654,
0.012537429109215736,
0.01141357421875,
-0.022974539548158646,
0.021813835948705673,
-0.048381026834249496,
0.03202064707875252,
-0.03798997402191162,
0.016839398071169853,
0.07056333869695663,
-0.00921192392706871,
0.05147623270750046,
0.04204322025179863,
0.004398693796247244,
0.0008843447430990636,
0.06079870089888573,
-0.02872277982532978,
0.02592235431075096,
-0.008170976303517818,
0.022292856127023697,
-0.011883382685482502,
0.020837372168898582,
0.026788275688886642,
0.07855928689241409,
0.015485244803130627,
-0.057519253343343735,
-0.03410254418849945,
-0.009175076149404049,
0.041453659534454346,
-0.037437260150909424,
0.06054076552391052,
-0.002345586195588112,
0.03174429014325142,
-0.007226754445582628,
0.032462820410728455,
-0.020837372168898582,
0.02174014039337635,
-0.06665748357772827,
-0.018064582720398903,
-0.025590725243091583,
-0.028870170935988426,
-0.08865556120872498,
0.04720189794898033,
-0.03283129632472992,
0.02958870120346546,
-0.002133711939677596,
0.005038922652602196,
-0.040753550827503204,
-0.04749668017029762,
-0.0046497187577188015,
-0.03358667716383934,
0.004426329396665096,
-0.012482156977057457,
-0.034120965749025345,
0.011524117551743984,
0.028335878625512123,
0.008359821513295174,
0.043443433940410614,
-0.00630556233227253,
-0.03585280850529671,
0.015218098647892475,
-0.04668603092432022,
-0.04734928905963898,
0.016968363896012306,
-0.0005763210356235504,
-0.010188387706875801,
0.02396942675113678,
0.009193500503897667,
0.015687907114624977,
-0.008963202126324177,
-0.0014048184966668487,
-0.01774216629564762,
-0.03791628032922745,
0.07929624617099762,
-0.03603704646229744,
-0.014379813335835934,
-0.009856758639216423,
-0.005301462486386299,
-0.004126942250877619,
-0.031099455431103706,
0.13228322565555573,
0.043848760426044464,
-0.01945558376610279,
0.01693151704967022,
-0.015116767957806587,
-0.04587538167834282,
-0.03248124569654465,
-0.017981676384806633,
-0.028299031779170036,
-0.004235181957483292,
0.02035835199058056,
-0.06404129415750504,
0.02723044715821743,
0.029164951294660568,
-0.052028946578502655,
-0.03813736513257027,
-0.0006874398677609861,
0.01104509737342596,
-0.017603987827897072,
0.0110082495957613,
-0.059693269431591034,
0.027598924934864044,
-0.02013726718723774,
0.02986505813896656,
0.06772606819868088,
-0.059988051652908325,
0.02288242056965828,
0.021979650482535362,
-0.021666444838047028,
0.004237485118210316,
0.06312010437250137,
-0.02934919111430645,
-0.04097463935613632,
-0.01315462775528431,
-0.004366451874375343,
0.004923773463815451,
0.05785088241100311,
-0.013863946311175823,
0.017373688519001007,
0.06194097921252251,
0.02774631604552269,
0.05464513599872589,
-0.006411499343812466,
0.007355721667408943,
-0.032352276146411896,
-0.10096269100904465,
0.02934919111430645,
-0.05283959582448006,
0.04300126060843468,
0.028335878625512123,
-0.021924380213022232,
-0.016203774139285088,
-0.04399615153670311,
-0.04524897038936615,
-0.0464649461209774,
-0.009727791883051395,
0.035963352769613266,
-0.003915067762136459,
-0.0334208607673645,
0.007470870390534401,
-0.04804939776659012,
-0.027930554002523422,
0.07030540704727173,
-0.014324542135000229,
-0.03552117943763733,
0.0364055261015892,
0.040237683802843094,
0.0168486088514328,
-0.03891116753220558,
-0.012666395865380764,
0.06039337441325188,
0.019824061542749405,
0.002680670004338026,
0.035207975655794144,
-0.014545627869665623,
-0.0097830630838871,
0.03262863680720329,
-0.012712455354630947,
0.02619871310889721,
0.005798906087875366,
-0.03677400201559067,
-0.0008365578833036125,
0.004509237129241228,
0.03771361708641052,
0.0654783546924591,
0.013633647933602333,
-0.028501693159341812,
0.049007438123226166,
0.010123904794454575,
-0.020100418478250504,
-0.003102115588262677,
-0.04248539358377457,
-0.03008614480495453,
0.03325504809617996,
0.02209019474685192,
-0.07752755284309387,
-0.009515917859971523,
0.028243759647011757,
0.08592882752418518,
-0.04889689385890961,
0.03810051828622818,
-0.0549030676484108,
-0.023029809817671776,
0.007784076035022736,
0.020671557635068893,
0.04432778060436249,
-0.048823196440935135,
-0.020892644301056862,
0.012740091420710087,
0.011791262775659561,
0.020118841901421547,
0.0021026215981692076,
0.06253053992986679,
-0.0010305839823558927,
-0.027138328179717064,
-0.026843547821044922,
0.02209019474685192,
0.015697119757533073,
0.06809454411268234,
-0.05169731751084328,
0.008507211692631245,
-0.003779191989451647,
-0.0084243044257164,
0.027322567999362946,
-0.045396361500024796,
-0.014665382914245129,
0.023582525551319122,
-0.020395200699567795,
-0.06706281006336212,
0.013071720488369465,
0.01135830208659172,
0.005421217530965805,
-0.014950953423976898,
-0.011487269774079323,
0.03277602791786194,
-0.013255959376692772,
0.00841048639267683,
0.01932661607861519,
0.02752522937953472,
0.002878726227208972,
0.015936627984046936,
-0.03894801437854767,
-0.0063101681880652905,
0.009276407770812511,
-0.007535353768616915,
-0.0038298575673252344,
0.066841721534729,
0.018387001007795334,
0.044769950211048126,
-0.06908943504095078,
0.014545627869665623,
0.038468994200229645,
-0.037160903215408325,
0.040753550827503204,
0.04845472052693367,
0.024558989331126213,
-0.002867211354896426,
-0.019824061542749405,
-0.0028418786823749542,
-0.0007323479512706399,
-0.03054674156010151,
-0.005080376286059618,
-0.07649581879377365,
-0.0005912903579883277,
0.01812906749546528,
0.00026239591534249485,
-0.050149716436862946,
0.03222331032156944,
-0.01736447773873806,
-0.020118841901421547,
-0.0013921520439907908,
-0.0543503537774086,
0.05645067244768143,
-0.03975866362452507,
0.027414686977863312,
0.010833222419023514,
0.02734099142253399,
0.024301055818796158,
-0.052028946578502655,
-0.08217036724090576,
0.06116717681288719,
-0.050076019018888474,
-0.03168901801109314,
0.031136304140090942,
0.0013495469465851784,
-0.03679242357611656,
0.04414353892207146,
-0.007724198512732983,
0.02969924360513687,
-0.0067016747780144215,
0.031891681253910065,
0.003387685166671872,
0.02739626169204712,
0.002307587070390582,
-0.02608816884458065,
0.0317995622754097,
0.0709318146109581,
0.012436097487807274,
0.023214049637317657,
-0.026843547821044922,
0.01608401909470558,
0.025609148666262627,
0.0018953534308820963,
-0.05040764808654785,
-0.03227858245372772,
0.04303811118006706,
-0.018663357943296432,
-0.05401872470974922,
-0.00921192392706871,
-0.011081945151090622,
0.019123954698443413,
-0.009276407770812511,
0.08953990042209625,
0.04244854673743248,
-0.03752937912940979,
-0.04473310336470604,
-0.04635440185666084,
-0.03202064707875252,
-0.0097830630838871,
0.0413062684237957,
-0.062493693083524704,
0.005987750831991434,
-0.006674039177596569,
0.07222148776054382,
0.008396669290959835,
0.029146527871489525,
0.039095405489206314,
0.030344078317284584,
0.03493161499500275,
-0.006457558833062649,
0.008751328103244305,
-0.009626461192965508,
-0.02465110830962658,
0.008461152203381062,
0.017078908160328865,
-0.009709368459880352,
-0.0331629253923893,
0.033549826592206955,
-0.05578741431236267,
0.04233800247311592,
0.03301553800702095,
-0.0016765701584517956,
-0.011634659953415394,
0.04193267971277237,
0.004124639090150595,
-0.005075770430266857,
-0.032002225518226624,
0.023656221106648445,
0.018322518095374107,
0.021205849945545197,
0.040643010288476944,
0.015853721648454666,
0.07620103657245636,
-0.05851414427161217,
0.05711393058300018,
0.012841422110795975,
0.007397175300866365,
0.020800525322556496,
0.03146793320775032,
0.0793699398636818,
0.007747228257358074,
-0.04005344584584236,
-0.017926404252648354,
0.0869605615735054,
-0.016434073448181152,
0.003387685166671872,
0.03651606664061546,
-0.015522092580795288,
0.040643010288476944,
-0.038984864950180054,
-0.003578832605853677,
-0.015798449516296387,
0.03244439885020256,
-0.018119854852557182,
-0.03345770761370659,
-0.02144536003470421,
0.016286682337522507,
0.043332889676094055,
-0.008198612369596958,
-0.017456596717238426,
-0.008778964169323444,
-0.011330666951835155,
-0.05663491040468216,
0.011901806108653545,
0.0224218238145113,
-0.0020830463618040085,
-0.009893606416881084,
0.01864493452012539,
0.03443417325615883,
0.0019045653752982616,
-0.008760539814829826,
-0.007143847178667784,
0.05785088241100311,
0.020837372168898582,
0.03810051828622818,
0.028225336223840714,
-0.06116717681288719,
0.0350605845451355,
-0.06474140286445618,
-0.027101481333374977,
0.031541626900434494,
-0.02975451573729515,
0.006844459567219019,
0.02695409022271633,
-0.07491137087345123,
0.0073372977785766125,
-0.0068767014890909195,
0.050665583461523056,
-0.04827048256993294,
-0.001579844974912703,
-0.008917142637073994,
0.009755427949130535,
-0.03633182868361473,
-0.031154727563261986,
-0.008875688537955284,
0.02454056590795517,
-0.03542906045913696,
0.012712455354630947,
-0.06131456792354584,
-0.03049146942794323,
0.008557877503335476,
0.005702181253582239,
-0.013799462467432022,
-0.05239742621779442,
-0.027304142713546753,
-0.00879278127104044,
-0.08902403712272644,
-0.04255909100174904,
0.03975866362452507,
-0.009515917859971523,
-0.019879331812262535,
0.03203907236456871,
0.016203774139285088,
0.008382851257920265,
0.03528166934847832,
-0.028741203248500824,
0.015006224624812603,
0.020468896254897118,
0.004529963713139296,
-0.0034567746333777905,
-0.002020865911617875,
-0.006835247855633497,
0.022127041593194008,
-0.050260256975889206,
-0.03168901801109314,
-0.0031228424049913883,
-0.04020083695650101,
-0.04605961963534355,
0.015826085582375526,
-0.07900146394968033,
-0.01335729006677866,
0.002933997893705964,
0.010722680017352104,
0.028446421027183533,
-0.04392245411872864,
-0.010731891728937626,
0.017972463741898537,
-0.10737419128417969,
-0.024798499420285225,
-0.03633182868361473,
0.012712455354630947,
-0.03865323215723038,
-0.003286354010924697,
-0.0834231823682785,
0.03986920788884163,
0.0028119399212300777,
0.01296117715537548,
0.04399615153670311,
0.024816924706101418,
-0.06676802784204483,
-0.043848760426044464,
0.03491319343447685,
-0.012841422110795975,
-0.023158777505159378,
-0.04617016389966011,
-0.09425640851259232,
-0.0052231610752642155,
0.04278017580509186,
0.025959203019738197,
-0.014002124778926373,
-0.0035903474781662226,
0.06945791095495224,
-0.034120965749025345,
0.02568284422159195,
0.03459998592734337,
0.010731891728937626,
0.01493252906948328,
0.014656171202659607,
0.04469625651836395,
-0.0030975094996392727,
-0.03644237294793129,
0.006655615288764238,
0.06065130978822708,
0.07406386733055115,
0.03535536676645279,
0.011496481485664845,
-0.03273917734622955,
-0.03296026587486267,
-0.03262863680720329,
-0.010510805062949657,
-0.060209136456251144,
0.004969832953065634,
-0.007254390511661768,
-0.04989178106188774,
0.025185400620102882,
0.01390079315751791,
-0.017465807497501373,
0.0004885198432020843,
-0.005006680730730295,
0.026843547821044922,
0.05611904338002205,
0.05394502729177475,
-0.027562078088521957,
-0.0133849261328578,
0.03935334086418152,
0.0009580401238054037,
-0.09101381152868271,
0.060835547745227814,
0.0012735484633594751,
0.0199714507907629,
-0.0034107149112969637,
-0.0486389584839344,
0.04303811118006706,
-0.01587214507162571,
0.000926374108530581,
0.04134311527013779,
-0.08909773081541061,
-0.04904428496956825,
0.0320574976503849,
-0.02837272733449936,
0.027967402711510658,
0.002326010959222913,
-0.07045279443264008,
0.02969924360513687,
0.011146428063511848,
0.03238912671804428,
-0.030012449249625206,
0.000029794817237416282,
0.038468994200229645,
-0.09388793259859085,
0.033678796142339706,
0.03485792130231857,
-0.008544059470295906,
-0.04307495802640915,
-0.010483169928193092,
0.005757452454417944,
0.024172089993953705,
0.0009234953904524446,
-0.03828475624322891,
-0.016047172248363495,
0.014038972556591034,
-0.018598875030875206,
0.07218463718891144,
0.024043122306466103,
-0.009244166314601898,
0.022329704836010933,
0.034415747970342636,
-0.014057395979762077,
0.05412926524877548,
-0.035447485744953156,
0.07163192331790924,
0.024061545729637146,
-0.049228522926568985,
-0.0739164799451828,
0.00510801188647747,
-0.031781136989593506,
-0.0015084525803104043,
0.012067620642483234,
0.026346102356910706,
0.023416711017489433,
0.03894801437854767,
-0.003465986577793956,
-0.03780573606491089,
-0.018092218786478043,
0.03391830623149872,
0.04406984522938728,
0.0009960392490029335,
0.01509834360331297,
0.06356227397918701,
-0.01255585253238678,
-0.016461707651615143,
-0.036073897033929825,
0.05276590213179588,
0.04263278469443321,
0.026106592267751694,
-0.015024648047983646,
-0.004785594530403614,
-0.010363414883613586,
-0.03756622597575188,
-0.03942703455686569,
0.004900743719190359,
-0.04827048256993294,
0.012933542020618916,
-0.061240870505571365,
0.04760722443461418,
0.019031835719943047,
0.07461658865213394,
0.005066558253020048
] |
17,516 | imodels.tree.hierarchical_shrinkage | HSTreeRegressorCV | null | class HSTreeRegressorCV(HSTreeRegressor):
def __init__(
self,
estimator_: BaseEstimator = None,
reg_param_list: List[float] = [0, 0.1, 1, 10, 50, 100, 500],
shrinkage_scheme_: str = "node_based",
max_leaf_nodes: int = 20,
cv: int = 3,
scoring=None,
*args,
**kwargs
):
"""Cross-validation is used to select the best regularization parameter for hierarchical shrinkage.
Params
------
estimator_
Sklearn estimator (already initialized).
If no estimator_ is passed, sklearn decision tree is used
max_rules
If estimator is None, then max_leaf_nodes is passed to the default decision tree
args, kwargs
Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args.
"""
if estimator_ is None:
estimator_ = DecisionTreeRegressor(max_leaf_nodes=max_leaf_nodes)
super().__init__(estimator_, reg_param=None)
self.reg_param_list = np.array(reg_param_list)
self.cv = cv
self.scoring = scoring
self.shrinkage_scheme_ = shrinkage_scheme_
# print('estimator', self.estimator_,
# 'checks.check_is_fitted(estimator)', checks.check_is_fitted(self.estimator_))
# if checks.check_is_fitted(self.estimator_):
# raise Warning('Passed an already fitted estimator,'
# 'but shrinking not applied until fit method is called.')
def fit(self, X, y, *args, **kwargs):
self.scores_ = [[] for _ in self.reg_param_list]
kf = KFold(n_splits=self.cv)
scorer = kwargs.get("scoring", mean_squared_error)
for train_index, test_index in kf.split(X):
X_out, y_out = X[test_index, :], y[test_index]
X_in, y_in = X[train_index, :], y[train_index]
base_est = deepcopy(self.estimator_)
base_est.fit(X_in, y_in)
for i, reg_param in enumerate(self.reg_param_list):
est_hs = HSTreeRegressor(base_est, reg_param)
est_hs.fit(X_in, y_in)
self.scores_[i].append(scorer(est_hs.predict(X_out), y_out))
self.scores_ = [np.mean(s) for s in self.scores_]
cv_criterion = _get_cv_criterion(scorer)
self.reg_param = self.reg_param_list[cv_criterion(self.scores_)]
super().fit(X=X, y=y, *args, **kwargs)
def __repr__(self):
attr_list = [
"estimator_",
"reg_param_list",
"shrinkage_scheme_",
"cv",
"scoring",
]
s = self.__class__.__name__
s += "("
for attr in attr_list:
s += attr + "=" + repr(getattr(self, attr)) + ", "
s = s[:-2] + ")"
return s
| (estimator_: sklearn.base.BaseEstimator = None, reg_param_list: List[float] = [0, 0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', max_leaf_nodes: int = 20, cv: int = 3, scoring=None, *args, **kwargs) | [
0.042845673859119415,
-0.036053068935871124,
-0.014978569000959396,
-0.00600400660187006,
-0.02680273726582527,
-0.03402109071612358,
-0.028834713622927666,
-0.008132743649184704,
0.021964697167277336,
0.00028680500690825284,
0.008998752571642399,
-0.002120270626619458,
0.028699247166514397,
0.00039067165926098824,
-0.01864580251276493,
0.011001700535416603,
0.02459659054875374,
-0.04385198652744293,
0.028660543262958527,
0.029434630647301674,
-0.019787579774856567,
-0.04377457872033119,
-0.026376988738775253,
-0.014359300024807453,
-0.0334792286157608,
0.025641607120633125,
0.03150530904531479,
-0.017329856753349304,
0.021190611645579338,
0.01049854513257742,
-0.08863287419080734,
-0.011166194453835487,
-0.08027274161577225,
0.005418603774160147,
0.00606690114364028,
-0.049038365483284,
0.006797445006668568,
0.053528062999248505,
-0.016362247988581657,
0.022274332121014595,
-0.023358052596449852,
-0.013004649430513382,
-0.046870920807123184,
-0.07218354195356369,
0.01522047072649002,
0.04439384490251541,
-0.015123710036277771,
0.09962490200996399,
0.014136750251054764,
-0.09606410562992096,
-0.000568771967664361,
-0.060185205191373825,
0.01732018031179905,
0.022525910288095474,
-0.029860377311706543,
0.05236693471670151,
0.0825175940990448,
0.007682805880904198,
0.09141958504915237,
-0.05074135214090347,
0.01995207369327545,
-0.016420304775238037,
0.014939865097403526,
0.01013085339218378,
-0.035743433982133865,
-0.03750447928905487,
-0.08530430495738983,
-0.014136750251054764,
-0.01018891017884016,
0.042729560285806656,
-0.025525493547320366,
-0.07048055529594421,
0.01885867677628994,
0.018442604690790176,
0.006874853745102882,
0.025738367810845375,
-0.02014559507369995,
-0.08352390676736832,
0.024848168715834618,
-0.0036720717325806618,
-0.0014913255581632257,
0.012936916202306747,
0.010692066513001919,
-0.06935812532901764,
-0.011427448131144047,
-0.07841493934392929,
0.04094916209578514,
-0.03880107402801514,
0.0404847115278244,
0.0027794535271823406,
-0.036401405930519104,
0.03355664014816284,
0.032530974596738815,
0.0015397059032693505,
0.05074135214090347,
0.03802698850631714,
-0.02389991283416748,
-0.02718978002667427,
-0.04191676899790764,
-0.060340024530887604,
0.012801451608538628,
0.09149699658155441,
0.017523378133773804,
0.08956178277730942,
-0.026686623692512512,
-0.01662350259721279,
-0.032337453216314316,
0.007648939732462168,
0.0047993347980082035,
-0.03485323488712311,
-0.0829046368598938,
0.039381638169288635,
-0.008998752571642399,
0.03365340083837509,
-0.030286123976111412,
-0.05859832838177681,
-0.05937241390347481,
0.00388494529761374,
-0.028447668999433517,
-0.0618881955742836,
0.01587844453752041,
0.04017507657408714,
-0.03026677295565605,
-0.000697887153364718,
-0.036420758813619614,
0.00027591941761784256,
0.042845673859119415,
0.06537158042192459,
-0.0080263065174222,
-0.05801776424050331,
-0.013594890013337135,
-0.019855313003063202,
-0.050276901572942734,
-0.0018723211251199245,
0.03098280169069767,
-0.03721419721841812,
0.006836149375885725,
0.013304607011377811,
0.006153985857963562,
-0.008152095600962639,
0.05774683505296707,
-0.0406782329082489,
-0.004138942342251539,
-0.0139625808224082,
0.056547001004219055,
-0.014436708763241768,
-0.0021759080700576305,
0.022816192358732224,
-0.01899414137005806,
-0.00518637802451849,
-0.032724495977163315,
0.012762746773660183,
0.03663363307714462,
-0.01178546342998743,
0.032918017357587814,
0.0015118871815502644,
-0.005486336536705494,
-0.04818686842918396,
0.006028196774423122,
0.0013873076532036066,
-0.025564199313521385,
0.011504856869578362,
0.009148731827735901,
-0.014726990833878517,
0.03160206973552704,
0.03382756933569908,
-0.022429149597883224,
-0.03351793438196182,
-0.049502816051244736,
0.028950825333595276,
-0.029841024428606033,
-0.05875314772129059,
-0.08963918685913086,
0.032995425164699554,
-0.0340597964823246,
0.0484577976167202,
0.049889858812093735,
0.039459045976400375,
0.010759798809885979,
0.049928564578294754,
-0.0009924027835950255,
-0.031989116221666336,
-0.03315024450421333,
-0.009743810631334782,
-0.013294931501150131,
0.02718978002667427,
0.0044848620891571045,
0.008906830102205276,
-0.01940053701400757,
0.002229126403108239,
-0.0021710700821131468,
-0.03479517623782158,
0.011340363882482052,
0.01534625981003046,
0.04025248438119888,
-0.024790111929178238,
-0.002711720997467637,
0.011146842502057552,
0.025893185287714005,
0.07655712962150574,
-0.012743394821882248,
0.02008753828704357,
0.05852092057466507,
0.00004452507710084319,
-0.019352156668901443,
0.036014363169670105,
-0.017504025250673294,
0.03076992928981781,
-0.0051476736553013325,
0.03551120683550835,
-0.04838038980960846,
0.0418393611907959,
-0.00776989059522748,
0.06649401038885117,
0.05848221480846405,
-0.05573420971632004,
-0.03365340083837509,
-0.029299164190888405,
0.014746342785656452,
-0.017368560656905174,
0.008089201524853706,
-0.007634425535798073,
-0.025757720693945885,
0.01911025494337082,
0.010750123299658298,
-0.033014778047800064,
0.028215443715453148,
-0.014930188655853271,
0.03324700519442558,
-0.039304230362176895,
0.00257867481559515,
-0.0692807212471962,
0.046716105192899704,
-0.028041275218129158,
-0.025970593094825745,
0.01518176682293415,
-0.016671882942318916,
0.006081415340304375,
-0.015452696941792965,
0.0017090373439714313,
-0.04152972623705864,
-0.016246134415268898,
-0.021616358309984207,
-0.01864580251276493,
0.025564199313521385,
-0.001106701442040503,
0.04118138924241066,
0.039536453783512115,
0.02374509535729885,
-0.016904108226299286,
-0.001563896075822413,
-0.05031560733914375,
-0.0346403606235981,
0.008597195148468018,
-0.03305348381400108,
-0.053063612431287766,
-0.008481082506477833,
0.02684144116938114,
0.03690456226468086,
-0.02767358347773552,
-0.0073441434651613235,
0.0075618550181388855,
0.0007505008252337575,
0.07756344228982925,
-0.046987034380435944,
-0.021984050050377846,
0.02802192233502865,
-0.002468609483912587,
0.01911025494337082,
-0.006908719893544912,
0.056392185389995575,
0.0605335459113121,
-0.05523105338215828,
0.04025248438119888,
-0.03769800066947937,
0.009269682690501213,
-0.053566768765449524,
-0.002126318169757724,
-0.008602033369243145,
0.02061004564166069,
0.03796892985701561,
-0.035801488906145096,
-0.029628152027726173,
-0.0030963451135903597,
-0.0027504251338541508,
-0.009250330738723278,
-0.015868768095970154,
-0.04137491062283516,
-0.0016933137085288763,
0.015791360288858414,
-0.04880613833665848,
0.006555542815476656,
0.008781041018664837,
-0.011166194453835487,
0.08956178277730942,
-0.012559549883008003,
-0.005583097226917744,
-0.0030600596219301224,
-0.0029632989317178726,
0.014814076013863087,
0.036323998123407364,
0.021597007289528847,
-0.036053068935871124,
-0.04458737000823021,
0.003171334508806467,
0.007982764393091202,
0.02448047697544098,
0.00760539760813117,
-0.0019436822040006518,
0.06184948980808258,
0.02459659054875374,
0.032685790210962296,
0.01870385929942131,
-0.008616548031568527,
-0.006966776214540005,
-0.06959035247564316,
0.05790165066719055,
-0.04423902928829193,
0.03802698850631714,
0.043039195239543915,
-0.039439693093299866,
0.006899043917655945,
-0.010227615013718605,
-0.043039195239543915,
0.0018928827485069633,
-0.060688361525535583,
0.03202781826257706,
-0.000035964018024969846,
-0.008519786410033703,
-0.004085723776370287,
-0.036652982234954834,
-0.04764501005411148,
0.06982257962226868,
-0.005205729976296425,
0.0015518009895458817,
0.053373247385025024,
0.06123022362589836,
0.028718600049614906,
-0.023164531216025352,
-0.025351325049996376,
0.0404847115278244,
0.07756344228982925,
-0.03160206973552704,
0.011708054691553116,
-0.07210613787174225,
-0.03127308562397957,
0.02419019490480423,
0.03723355010151863,
-0.011446800082921982,
0.0632428452372551,
-0.02057134173810482,
-0.03496934473514557,
0.0471031479537487,
0.05244434252381325,
0.039400991052389145,
0.011175869964063168,
0.000014825944163021632,
0.005108969286084175,
0.06521676480770111,
-0.06320413947105408,
0.03398238494992256,
-0.025273915380239487,
-0.038917187601327896,
0.02049393393099308,
0.026686623692512512,
-0.08321427553892136,
-0.03524027764797211,
0.007915032096207142,
0.06719068437814713,
-0.07094500213861465,
0.00018762520630843937,
-0.049618929624557495,
-0.0105082206428051,
-0.014436708763241768,
0.02095838449895382,
0.028505725786089897,
-0.06370729953050613,
0.017233096063137054,
0.007547340821474791,
-0.006565219257026911,
0.05805647000670433,
0.02117125876247883,
0.02459659054875374,
-0.029086291790008545,
0.003962353803217411,
-0.05387640371918678,
0.02684144116938114,
0.02455788664519787,
0.11301659047603607,
-0.05047042295336723,
0.014639906585216522,
-0.0012470046058297157,
0.0035535397473722696,
0.004163132514804602,
-0.04025248438119888,
0.00949707068502903,
0.03409849852323532,
0.024848168715834618,
-0.05821128562092781,
-0.018655478954315186,
-0.017910420894622803,
-0.006221718154847622,
-0.021655062213540077,
0.0008375855395570397,
0.021442189812660217,
-0.013604565523564816,
0.012153154239058495,
0.046716105192899704,
0.018365196883678436,
0.025835128501057625,
-0.026338284835219383,
-0.006115281488746405,
0.0558503232896328,
0.0035559586249291897,
-0.04416162148118019,
-0.01583974063396454,
0.049425408244132996,
0.060494840145111084,
0.0206293985247612,
-0.0021021279972046614,
-0.0019932719878852367,
0.010769475251436234,
-0.012327323667705059,
0.03733031079173088,
0.03653687238693237,
-0.016826700419187546,
-0.06080447509884834,
-0.030189363285899162,
-0.014746342785656452,
-0.014668934047222137,
-0.04489700123667717,
-0.011833843775093555,
-0.08429799228906631,
0.0009282987448386848,
-0.0406782329082489,
-0.0012179763289168477,
-0.04532274976372719,
0.056237366050481796,
-0.009985712356865406,
0.015491400845348835,
-0.006961938459426165,
-0.01383679173886776,
0.04559367895126343,
-0.02399667352437973,
0.032724495977163315,
0.02405473031103611,
0.0095357745885849,
0.026125410571694374,
-0.07942125201225281,
-0.04540015757083893,
0.05852092057466507,
-0.0017634652322158217,
-0.014765695668756962,
0.055889029055833817,
-0.017987828701734543,
-0.012211211025714874,
0.03816245123744011,
-0.016420304775238037,
0.03465971350669861,
-0.010914616286754608,
0.029686206951737404,
0.018616775050759315,
0.03880107402801514,
0.029008882120251656,
-0.046290356665849686,
0.00959383137524128,
0.07899550348520279,
0.010885587893426418,
0.03119567595422268,
-0.036594927310943604,
0.026106059551239014,
-0.010682390071451664,
-0.018074914813041687,
-0.04478089138865471,
-0.039613865315914154,
0.06912590563297272,
-0.005370223429054022,
-0.05132192000746727,
-0.03166012838482857,
-0.007319953292608261,
0.046367768198251724,
-0.03173753619194031,
0.06471361219882965,
0.0137690594419837,
-0.0030237743631005287,
-0.04458737000823021,
-0.02053263783454895,
-0.03880107402801514,
-0.017823336645960808,
0.007053860928863287,
-0.06289450824260712,
-0.018655478954315186,
-0.017581434920430183,
0.07140945643186569,
-0.028273500502109528,
-0.0024057149421423674,
0.012627282179892063,
0.013440072536468506,
0.023454813286662102,
-0.04211029037833214,
-0.0036503004375845194,
0.022835545241832733,
0.00610076729208231,
0.008166610263288021,
0.04714185371994972,
-0.021809879690408707,
-0.00845689233392477,
0.035917602479457855,
-0.04118138924241066,
0.004910609684884548,
-0.002063423627987504,
-0.046793513000011444,
0.032085876911878586,
0.03704002872109413,
0.012278943322598934,
-0.02012624219059944,
-0.016265487298369408,
0.03674974665045738,
0.036072418093681335,
0.022642021998763084,
0.03140854835510254,
-0.003793022595345974,
0.052521754056215286,
-0.04570979252457619,
0.05592773109674454,
0.046793513000011444,
-0.01885867677628994,
0.01041145995259285,
0.06618437170982361,
0.057050157338380814,
0.023319348692893982,
-0.03682715445756912,
-0.009061647579073906,
0.06769384443759918,
-0.01568492315709591,
0.028041275218129158,
0.05724367871880531,
-0.029202403500676155,
-0.02033911645412445,
-0.036459460854530334,
0.0007547340937890112,
-0.008713308721780777,
0.018287787213921547,
-0.0025738368276506662,
-0.022003401070833206,
0.039033301174640656,
0.025564199313521385,
-0.0016908947145566344,
-0.05724367871880531,
-0.03111826814711094,
0.014214158989489079,
0.021422836929559708,
0.009758325293660164,
0.012675662524998188,
0.04032989218831062,
0.02428695559501648,
-0.03860755264759064,
0.02074551209807396,
0.03376951441168785,
-0.00001124466143664904,
0.014020637609064579,
0.013014324940741062,
0.053721584379673004,
-0.04485829919576645,
0.014465737156569958,
0.01831681653857231,
-0.04818686842918396,
0.04354235157370567,
-0.06204301491379738,
-0.005070264916867018,
0.013333635404706001,
0.014494765549898148,
0.013227199204266071,
0.006584571208804846,
-0.08731693029403687,
0.0354144461452961,
-0.010982348583638668,
0.00949707068502903,
-0.056585706770420074,
-0.017910420894622803,
0.028447668999433517,
-0.0418393611907959,
0.01018891017884016,
-0.05484401062130928,
0.009187436662614346,
0.0031495634466409683,
-0.018771592527627945,
0.05108969286084175,
-0.08429799228906631,
0.022235628217458725,
0.00826337095350027,
0.053334541618824005,
-0.010643686167895794,
-0.05360547453165054,
0.013024001382291317,
-0.003969611134380102,
-0.07477673143148422,
-0.019855313003063202,
0.025699663907289505,
0.00029330613324418664,
-0.008326265029609203,
-0.013294931501150131,
0.03514351695775986,
0.02751876600086689,
0.028292853385210037,
-0.024925576522946358,
0.016865404322743416,
-0.02744135819375515,
0.04176195338368416,
-0.00043421401642262936,
-0.011311335489153862,
0.001953358296304941,
0.06273969262838364,
-0.04810946062207222,
-0.029260460287332535,
0.03479517623782158,
-0.04141361638903618,
-0.0420328825712204,
0.03491128981113434,
-0.03816245123744011,
0.01224023848772049,
-0.00043149260454811156,
-0.007586045190691948,
0.011466152966022491,
-0.043077901005744934,
-0.02059069462120533,
0.0008248856756836176,
-0.06765513867139816,
-0.036382053047418594,
-0.035801488906145096,
0.03148595988750458,
-0.04803205281496048,
0.03076992928981781,
-0.05739849433302879,
0.04207158833742142,
0.025602903217077255,
0.02389991283416748,
0.032492268830537796,
-0.03704002872109413,
-0.01662350259721279,
-0.07334467023611069,
-0.008248856291174889,
-0.005713724065572023,
0.004003477282822132,
-0.05205729976296425,
-0.07384783029556274,
-0.000970026827417314,
0.02434501238167286,
0.04810946062207222,
-0.022119514644145966,
-0.006526514887809753,
0.07497025281190872,
-0.0478772334754467,
-0.039304230362176895,
0.0007861813646741211,
0.006666817702353001,
0.032724495977163315,
-0.03150530904531479,
0.021442189812660217,
0.009279359132051468,
-0.026028649881482124,
-0.005936273839324713,
0.07826012372970581,
0.014010961167514324,
0.016546092927455902,
0.019390860572457314,
0.03307283669710159,
0.02713172324001789,
-0.032666441053152084,
0.026299580931663513,
-0.07996311038732529,
-0.026609214022755623,
-0.06312673538923264,
-0.018558718264102936,
-0.013981932774186134,
-0.022042106837034225,
-0.0075279888696968555,
-0.022332388907670975,
-0.02357092685997486,
0.011959632858633995,
0.09025845676660538,
0.09033586829900742,
-0.03135049343109131,
0.023048417642712593,
0.052521754056215286,
-0.0013715841341763735,
-0.04838038980960846,
0.03479517623782158,
-0.009985712356865406,
-0.05139932781457901,
-0.01903284527361393,
-0.024674000218510628,
0.05097357928752899,
-0.029202403500676155,
-0.010653361678123474,
0.021403484046459198,
-0.04547756910324097,
-0.039788033813238144,
0.01899414137005806,
-0.036478813737630844,
0.005776618607342243,
-0.00691839586943388,
-0.05143802985548973,
0.03713678941130638,
0.01194995641708374,
0.04226510971784592,
-0.049618929624557495,
-0.005883055739104748,
0.03783346712589264,
-0.08685247600078583,
0.026725327596068382,
0.02368703857064247,
0.004063952714204788,
-0.046406470239162445,
0.014543145895004272,
-0.013720679096877575,
0.0011115394299849868,
-0.038820426911115646,
0.0020223003812134266,
-0.0039865439757704735,
0.060340024530887604,
-0.00675874063745141,
0.07241576910018921,
0.014165778644382954,
-0.03433072566986084,
0.01860709860920906,
0.053837697952985764,
-0.05062524229288101,
0.07721510529518127,
-0.026144763454794884,
0.060572247952222824,
0.03044094145298004,
-0.023319348692893982,
-0.04199418053030968,
0.0008430283050984144,
-0.03456295281648636,
0.01168870273977518,
-0.017939448356628418,
0.011804815381765366,
0.05898537114262581,
0.032821256667375565,
-0.01377873495221138,
-0.011021053418517113,
-0.010933968238532543,
0.039942849427461624,
0.04795464500784874,
0.01670091040432453,
0.0410652756690979,
0.07280281186103821,
-0.04040730372071266,
0.02360963076353073,
-0.045942019671201706,
0.049618929624557495,
0.02368703857064247,
0.06622307747602463,
0.005321843083947897,
-0.012511168606579304,
-0.03140854835510254,
-0.024751408025622368,
-0.032918017357587814,
0.04876743257045746,
-0.05426344648003578,
-0.014088369905948639,
-0.0053315190598368645,
0.0476837120950222,
0.03324700519442558,
0.050083380192518234,
0.025099746882915497
] |
17,518 | imodels.tree.hierarchical_shrinkage | __init__ | Cross-validation is used to select the best regularization parameter for hierarchical shrinkage.
Params
------
estimator_
Sklearn estimator (already initialized).
If no estimator_ is passed, sklearn decision tree is used
max_rules
If estimator is None, then max_leaf_nodes is passed to the default decision tree
args, kwargs
Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args.
| def __init__(
self,
estimator_: BaseEstimator = None,
reg_param_list: List[float] = [0, 0.1, 1, 10, 50, 100, 500],
shrinkage_scheme_: str = "node_based",
max_leaf_nodes: int = 20,
cv: int = 3,
scoring=None,
*args,
**kwargs
):
"""Cross-validation is used to select the best regularization parameter for hierarchical shrinkage.
Params
------
estimator_
Sklearn estimator (already initialized).
If no estimator_ is passed, sklearn decision tree is used
max_rules
If estimator is None, then max_leaf_nodes is passed to the default decision tree
args, kwargs
Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args.
"""
if estimator_ is None:
estimator_ = DecisionTreeRegressor(max_leaf_nodes=max_leaf_nodes)
super().__init__(estimator_, reg_param=None)
self.reg_param_list = np.array(reg_param_list)
self.cv = cv
self.scoring = scoring
self.shrinkage_scheme_ = shrinkage_scheme_
# print('estimator', self.estimator_,
# 'checks.check_is_fitted(estimator)', checks.check_is_fitted(self.estimator_))
# if checks.check_is_fitted(self.estimator_):
# raise Warning('Passed an already fitted estimator,'
# 'but shrinking not applied until fit method is called.')
| (self, estimator_: Optional[sklearn.base.BaseEstimator] = None, reg_param_list: List[float] = [0, 0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', max_leaf_nodes: int = 20, cv: int = 3, scoring=None, *args, **kwargs) | [
0.037279289215803146,
-0.013986684381961823,
-0.01549750566482544,
0.004374893847852945,
-0.043860167264938354,
-0.015275053679943085,
0.002715771086513996,
-0.023357484489679337,
-0.020669519901275635,
0.007873882539570332,
0.0008284028735943139,
0.0421546995639801,
0.04196932166814804,
0.0006239089998416603,
-0.014264749363064766,
-0.01952018402516842,
0.03918866813182831,
-0.019687023013830185,
0.042488377541303635,
0.05505692958831787,
-0.015747765079140663,
-0.011669473722577095,
-0.020131926983594894,
0.03168090432882309,
-0.015469699166715145,
0.05209089815616608,
0.03486938774585724,
-0.007493859622627497,
0.018973322585225105,
0.03225557506084442,
-0.10180897265672684,
0.0004298425919841975,
-0.04226592555642128,
0.03546259552240372,
0.014264749363064766,
-0.03299708291888237,
-0.006553072016686201,
0.03266340494155884,
-0.03818763419985771,
0.03084670938551426,
-0.009009315632283688,
-0.02461804822087288,
-0.03520306572318077,
-0.06940510123968124,
0.023746775463223457,
0.035814810544252396,
-0.0024238023906946182,
0.06692104786634445,
-0.014107179827988148,
-0.09135372191667557,
-0.016498541459441185,
-0.04938439652323723,
0.03731636330485344,
0.018250351771712303,
-0.023746775463223457,
0.0897224023938179,
0.09246598184108734,
-0.005440811160951853,
0.09246598184108734,
-0.046603742986917496,
0.012299754656851292,
-0.013106144033372402,
0.0063769640401005745,
-0.01773129776120186,
-0.02217107266187668,
-0.020076313987374306,
-0.08556996285915375,
-0.014459395781159401,
-0.03863253816962242,
0.02700940892100334,
-0.010306953452527523,
-0.0524616539478302,
-0.005093229468911886,
0.010186458937823772,
0.00030413392232730985,
0.01417206134647131,
-0.026564504951238632,
-0.08341959118843079,
0.012559282593429089,
-0.009639596566557884,
0.050682034343481064,
0.02348724938929081,
-0.007924861274659634,
-0.06903434544801712,
-0.03696414828300476,
-0.08371619135141373,
0.015377011150121689,
-0.03941112011671066,
0.0470857247710228,
0.007966570556163788,
-0.042636677622795105,
0.029048554599285126,
0.03455424681305885,
0.007985108532011509,
0.05020005628466606,
0.04526903107762337,
-0.014107179827988148,
-0.0028663896955549717,
-0.021540790796279907,
-0.040819983929395676,
-0.0009158775792457163,
0.06477067619562149,
0.004991271998733282,
0.05183137208223343,
-0.023172108456492424,
-0.04378601536154747,
-0.026508891955018044,
0.006645760498940945,
0.0037376610562205315,
-0.04245130345225334,
-0.07429904490709305,
0.027324549853801727,
-0.05045958235859871,
0.048568736761808395,
-0.052387502044439316,
-0.004958831239491701,
-0.04056045785546303,
-0.029048554599285126,
-0.0182688906788826,
-0.06740302592515945,
0.007632892578840256,
0.02849242463707924,
-0.020873434841632843,
-0.017657145857810974,
-0.0006320192478597164,
-0.009194692596793175,
0.031069163233041763,
0.07400244474411011,
-0.00644648028537631,
-0.03811348229646683,
-0.018352309241890907,
-0.051015712320804596,
-0.06851528584957123,
-0.010974310338497162,
0.03299708291888237,
-0.042784981429576874,
0.03663047030568123,
0.014014490880072117,
-0.024784887209534645,
-0.003091159276664257,
0.05653994530439377,
-0.00687748147174716,
0.015237978659570217,
-0.012475863099098206,
0.06484482437372208,
0.00162784056738019,
0.0020553660579025745,
0.039744798094034195,
-0.01931626908481121,
0.012902230024337769,
-0.03349759802222252,
0.025378093123435974,
0.018046438694000244,
-0.022931117564439774,
0.030420344322919846,
-0.00424049561843276,
0.0007861137855798006,
-0.03889206796884537,
0.027083560824394226,
0.003135186154395342,
-0.021262725815176964,
0.027027945965528488,
-0.009546908549964428,
-0.022764278575778008,
0.020187539979815483,
0.042340077459812164,
-0.05568721145391464,
-0.029159780591726303,
-0.05691069737076759,
0.040375079959630966,
-0.04515780508518219,
-0.07570791244506836,
-0.0760045126080513,
0.0032047026325017214,
-0.048123832792043686,
0.06436284631490707,
0.0460846871137619,
0.05857909098267555,
0.015312128700315952,
0.06410332024097443,
-0.01542335469275713,
-0.020762208849191666,
-0.03633386641740799,
-0.023079419508576393,
-0.020317304879426956,
0.012828079052269459,
-0.02324625849723816,
0.03844716027379036,
-0.026397665962576866,
0.02548931911587715,
0.026323514059185982,
-0.019483108073472977,
0.02393215335905552,
-0.009602521546185017,
0.005227627698332071,
-0.028232896700501442,
-0.004296108614653349,
0.014042297378182411,
0.02736162580549717,
0.06966462731361389,
0.01022353395819664,
0.020947584882378578,
0.06810746341943741,
-0.006710642483085394,
-0.016257550567388535,
0.049792226403951645,
-0.033460523933172226,
0.032681941986083984,
0.0008921261760406196,
0.012633433565497398,
-0.023765314370393753,
0.032237038016319275,
-0.008425378240644932,
0.06566048413515091,
0.046900346875190735,
-0.03570358455181122,
-0.014793073758482933,
-0.03926282003521919,
0.031755056232213974,
-0.008323420770466328,
0.04078290984034538,
0.020020700991153717,
-0.01693417690694332,
0.027917755767703056,
0.022319374606013298,
-0.018704526126384735,
0.03811348229646683,
-0.024210218340158463,
0.022931117564439774,
-0.02510002814233303,
-0.03722367435693741,
-0.09847219288349152,
0.06299106031656265,
-0.015024795196950436,
-0.0032047026325017214,
0.00009058845898834988,
-0.006928460206836462,
0.011669473722577095,
-0.04504657909274101,
0.002252328908070922,
-0.029938364401459694,
0.018546955659985542,
-0.017156628891825676,
-0.011873387731611729,
0.03564796969294548,
0.013551048934459686,
0.02157786674797535,
0.0456027090549469,
0.018018631264567375,
-0.03118038922548294,
0.0022361085284501314,
-0.03423910588026047,
-0.05112693831324577,
-0.0005245585925877094,
-0.030605720356106758,
-0.01946457102894783,
0.017416156828403473,
-0.009565446525812149,
0.02917831763625145,
-0.013254445977509022,
0.014394513331353664,
0.004312329459935427,
-0.00988058652728796,
0.07240820676088333,
-0.06262030452489853,
-0.010585019364953041,
0.030086664482951164,
0.01490429975092411,
0.02304234355688095,
-0.009282746352255344,
0.05809710919857025,
0.037279289215803146,
-0.025563469156622887,
0.040819983929395676,
-0.035870421677827835,
-0.009125175885856152,
-0.05501985177397728,
-0.013208101503551006,
0.006807965226471424,
0.020187539979815483,
0.05453787371516228,
-0.02560054510831833,
-0.019538721069693565,
0.0012756244977936149,
-0.012058764696121216,
-0.03546259552240372,
-0.014589158818125725,
-0.015719957649707794,
-0.03540698066353798,
0.032681941986083984,
-0.06436284631490707,
0.007887785322964191,
0.013764232397079468,
-0.01696198247373104,
0.06388086825609207,
-0.027639690786600113,
0.015488237142562866,
-0.004370259586721659,
-0.02098466083407402,
0.002495635999366641,
0.059357672929763794,
0.008925896137952805,
-0.06836698949337006,
-0.040523383766412735,
-0.0038720592856407166,
0.005904253106564283,
0.011762161739170551,
-0.011502634733915329,
-0.0017135774251073599,
0.06084068864583969,
0.05309193581342697,
0.060432858765125275,
0.006414039526134729,
-0.005607650149613619,
0.006492824759334326,
-0.07344631105661392,
0.048568736761808395,
-0.05012590438127518,
0.034202031791210175,
0.026879645884037018,
-0.013615930452942848,
-0.008531969971954823,
-0.023950690403580666,
-0.04604761302471161,
-0.03468400985002518,
-0.030661333352327347,
0.032626327127218246,
0.004875411745160818,
-0.020243152976036072,
-0.015395548194646835,
-0.021318338811397552,
-0.023413097485899925,
0.08045355975627899,
-0.01329152099788189,
-0.0069748046807944775,
0.043266959488391876,
0.03672315552830696,
0.022986730560660362,
-0.022486213594675064,
-0.0037724191788583994,
0.053314387798309326,
0.051942598074674606,
-0.008420743979513645,
0.007679236587136984,
-0.0588386170566082,
-0.03766857832670212,
0.03099501132965088,
0.030976474285125732,
-0.002544297371059656,
0.03575919568538666,
-0.028362659737467766,
-0.03644509240984917,
0.027639690786600113,
0.03918866813182831,
0.048123832792043686,
-0.0014969181502237916,
-0.027639690786600113,
0.006075726822018623,
0.05183137208223343,
-0.055909663438797,
0.04497242718935013,
-0.05854201316833496,
-0.04682619497179985,
0.025674695149064064,
0.039448197931051254,
-0.07711677253246307,
-0.038373012095689774,
-0.014774535782635212,
0.06465945392847061,
-0.04723402485251427,
0.022486213594675064,
-0.056947771459817886,
-0.011307988315820694,
-0.008128775283694267,
0.035128917545080185,
0.03549966961145401,
-0.05605796352028847,
0.013133950531482697,
0.0002867548319045454,
0.009889855980873108,
0.01785179227590561,
0.0041895173490047455,
0.024896113201975822,
-0.029159780591726303,
-0.00758654810488224,
-0.04122781381011009,
0.010483061894774437,
0.03016081638634205,
0.09046390652656555,
-0.045973461121320724,
0.02437705732882023,
-0.01302272453904152,
0.00018349413585383445,
0.00387901091016829,
-0.03138430416584015,
-0.004504657816141844,
0.046158839017152786,
0.015265785157680511,
-0.026508891955018044,
-0.02814020775258541,
-0.0264718160033226,
0.007354827132076025,
-0.008309517987072468,
-0.009546908549964428,
0.012188528664410114,
0.01129871979355812,
-0.004720158409327269,
0.05108986422419548,
0.018222546204924583,
0.03168090432882309,
0.02682403288781643,
-0.03722367435693741,
0.036945607513189316,
-0.025878610089421272,
-0.04089413583278656,
0.004194151610136032,
0.05094156414270401,
0.050385430455207825,
0.03123600222170353,
-0.02789921872317791,
0.022782817482948303,
0.005232261959463358,
-0.019186506047844887,
0.026861106976866722,
0.018259620293974876,
-0.018315235152840614,
-0.050496656447649,
-0.041116587817668915,
0.002437705872580409,
-0.03904036805033684,
-0.06061823293566704,
-0.003990237135440111,
-0.09076051414012909,
0.002232632599771023,
-0.04467582330107689,
-0.0008243477204814553,
-0.0573556013405323,
0.06662444770336151,
-0.0020298766903579235,
0.005297143943607807,
-0.005116401240229607,
-0.06269445270299911,
0.04163564369082451,
-0.02510002814233303,
0.013866189867258072,
0.011845581233501434,
0.0174068883061409,
0.031847745180130005,
-0.07837733626365662,
-0.05691069737076759,
0.06877481937408447,
-0.013736425898969173,
-0.028548037633299828,
0.03855838626623154,
0.009004681371152401,
-0.018769407644867897,
0.03918866813182831,
-0.03207019716501236,
0.06161927059292793,
-0.011938270181417465,
0.031124776229262352,
0.006432577036321163,
0.030865248292684555,
0.00810560304671526,
-0.06369549036026001,
0.029790062457323074,
0.04271082952618599,
0.025915686041116714,
0.04408261924982071,
-0.025971299037337303,
0.020762208849191666,
-0.0011053095804527402,
0.026342052966356277,
-0.0397077240049839,
-0.042636677622795105,
0.05872739106416702,
0.005306412931531668,
-0.04786430671811104,
-0.014737460762262344,
0.010918697342276573,
0.0480496846139431,
-0.036204103380441666,
0.08712712675333023,
0.04145026579499245,
-0.026861106976866722,
-0.06358426809310913,
-0.06402917206287384,
-0.03609287738800049,
-0.04434214532375336,
0.03275609016418457,
-0.0598025768995285,
0.011660205200314522,
0.021800318732857704,
0.059505973011255264,
-0.0018584030913189054,
0.0043633077293634415,
0.04033800587058067,
0.02122565172612667,
0.01946457102894783,
-0.03765004128217697,
0.006140608806163073,
0.01567361317574978,
-0.020576832816004753,
0.017101015895605087,
0.040819983929395676,
-0.032292649149894714,
-0.014236942864954472,
0.0049820030108094215,
-0.048717040568590164,
0.0024492917582392693,
-0.005255434196442366,
-0.020465604960918427,
-0.002956761047244072,
0.0603216327726841,
-0.010473792441189289,
-0.029400771483778954,
-0.030290579423308372,
0.01856549270451069,
0.030679870396852493,
0.022467676550149918,
0.04938439652323723,
-0.009964006021618843,
0.06703227758407593,
-0.05746682733297348,
0.052684105932712555,
0.01966848596930504,
0.0027945563197135925,
0.012466594576835632,
0.047196950763463974,
0.06740302592515945,
0.02122565172612667,
-0.033367834985256195,
-0.009871318005025387,
0.07077688723802567,
-0.020966123789548874,
0.04686327278614044,
0.0451207272708416,
-0.013912533409893513,
0.012828079052269459,
-0.032329726964235306,
0.016507809981703758,
0.0011713500134646893,
0.025285404175519943,
0.005473251920193434,
-0.009713747538626194,
0.018324503675103188,
0.004954196512699127,
0.01898259110748768,
-0.03394250571727753,
-0.029752986505627632,
-0.008184388279914856,
0.02393215335905552,
-0.03522160276770592,
0.010733320377767086,
0.030438881367444992,
0.012216335162520409,
-0.013143219985067844,
0.0252483282238245,
0.03713098540902138,
0.003920720890164375,
-0.0008144996245391667,
0.008128775283694267,
0.07637526839971542,
-0.03618556261062622,
0.00712310615926981,
0.013912533409893513,
-0.04908779263496399,
0.0335717499256134,
-0.03614848852157593,
-0.02917831763625145,
0.02947492152452469,
-0.029549071565270424,
-0.0037029029335826635,
0.02035437896847725,
-0.09587691724300385,
0.03716806322336197,
0.006627222988754511,
0.021633479744195938,
-0.056317493319511414,
-0.013050531037151814,
0.03881791606545448,
-0.02510002814233303,
-0.015404817648231983,
-0.04745647683739662,
-0.015367741696536541,
-0.005083960480988026,
-0.018352309241890907,
0.01542335469275713,
-0.0838644951581955,
0.0014876493951305747,
0.01564580760896206,
0.0470857247710228,
-0.025878610089421272,
-0.038076408207416534,
-0.0029776159208267927,
-0.0004556215717457235,
-0.07088810950517654,
-0.03231118619441986,
0.022615976631641388,
-0.03134722635149956,
-0.018760139122605324,
0.024988802149891853,
0.01865818165242672,
0.02784360572695732,
0.02765822783112526,
-0.01417206134647131,
-0.004629787057638168,
-0.009593253023922443,
0.050533734261989594,
0.002091282745823264,
-0.01417206134647131,
-0.011743624694645405,
0.04274790361523628,
-0.05501985177397728,
-0.018639644607901573,
0.028844639658927917,
-0.05698484927415848,
-0.04063460975885391,
0.037334900349378586,
-0.06306520849466324,
0.004347087349742651,
-0.020558293908834457,
0.008953702636063099,
0.013523242436349392,
-0.03770565241575241,
-0.033998116850852966,
-0.008768325671553612,
-0.07099933922290802,
-0.021800318732857704,
-0.050014678388834,
0.03477669879794121,
-0.03386835381388664,
0.02917831763625145,
-0.06977584958076477,
0.05791173130273819,
0.038706690073013306,
0.027787992730736732,
0.052202124148607254,
-0.0022187293507158756,
-0.03651924058794975,
-0.04063460975885391,
0.024525359272956848,
0.01257782056927681,
-0.002080855192616582,
-0.03881791606545448,
-0.1083342432975769,
-0.0013995952904224396,
0.03570358455181122,
0.05409296974539757,
-0.012818810530006886,
-0.005246165208518505,
0.08549580723047256,
-0.0627686083316803,
-0.01761080138385296,
0.027046484872698784,
0.0193718820810318,
0.02461804822087288,
-0.01064063236117363,
0.026898182928562164,
-0.00812414102256298,
-0.03818763419985771,
0.024006303399801254,
0.08534751087427139,
0.024988802149891853,
0.021392490714788437,
0.023561399430036545,
0.017573727294802666,
0.005348122678697109,
-0.03010520339012146,
0.020113389939069748,
-0.07815488427877426,
0.0026114964857697487,
-0.04441629722714424,
-0.009463489055633545,
0.00036032628850080073,
0.002160798991099,
-0.020910510793328285,
-0.03844716027379036,
-0.021355414763092995,
0.022041309624910355,
0.05457494780421257,
0.05431542173027992,
-0.03746466338634491,
0.004048167262226343,
0.05568721145391464,
-0.020632445812225342,
-0.04938439652323723,
0.032237038016319275,
-0.026694267988204956,
-0.008096334524452686,
-0.0200948528945446,
-0.013513972982764244,
0.05186844617128372,
-0.03540698066353798,
-0.007475322112441063,
0.02834412269294262,
-0.08304883539676666,
-0.034887924790382385,
0.03451717272400856,
-0.030216429382562637,
0.004177931230515242,
0.0034595958422869444,
-0.04808675870299339,
0.043378185480833054,
-0.0025373457465320826,
0.03707537427544594,
-0.051015712320804596,
-0.0030471321661025286,
0.05683654546737671,
-0.1005484089255333,
0.040078479796648026,
0.035091839730739594,
-0.0062054903246462345,
-0.03612995147705078,
0.016146324574947357,
-0.013912533409893513,
0.01889917068183422,
-0.029215393587946892,
-0.00021593508427031338,
-0.019149430096149445,
0.06755132973194122,
-0.005932059604674578,
0.05212797597050667,
-0.015469699166715145,
-0.051942598074674606,
0.022819891571998596,
0.042933281511068344,
-0.02849242463707924,
0.08453185111284256,
-0.046158839017152786,
0.07344631105661392,
-0.007887785322964191,
-0.04471290111541748,
-0.04942147061228752,
0.026786956936120987,
-0.027973368763923645,
0.008207560516893864,
-0.015460430644452572,
0.027102097868919373,
0.03627825155854225,
0.039744798094034195,
-0.003329831873998046,
-0.018343040719628334,
-0.00775802182033658,
-0.003936941269785166,
0.053425613790750504,
-0.010668438859283924,
0.02226376160979271,
0.08008280396461487,
-0.04256252944469452,
-0.0022639150265604258,
-0.04378601536154747,
0.047790154814720154,
0.01022353395819664,
0.040375079959630966,
-0.00862929318100214,
-0.011326526291668415,
-0.00273894309066236,
-0.021355414763092995,
-0.02736162580549717,
0.0232833344489336,
-0.030290579423308372,
0.004764185287058353,
-0.018760139122605324,
0.05742975324392319,
0.01397741585969925,
0.06640199571847916,
0.026008374989032745
] |
17,535 | imodels.tree.hierarchical_shrinkage | fit | null | def fit(self, X, y, *args, **kwargs):
self.scores_ = [[] for _ in self.reg_param_list]
kf = KFold(n_splits=self.cv)
scorer = kwargs.get("scoring", mean_squared_error)
for train_index, test_index in kf.split(X):
X_out, y_out = X[test_index, :], y[test_index]
X_in, y_in = X[train_index, :], y[train_index]
base_est = deepcopy(self.estimator_)
base_est.fit(X_in, y_in)
for i, reg_param in enumerate(self.reg_param_list):
est_hs = HSTreeRegressor(base_est, reg_param)
est_hs.fit(X_in, y_in)
self.scores_[i].append(scorer(est_hs.predict(X_out), y_out))
self.scores_ = [np.mean(s) for s in self.scores_]
cv_criterion = _get_cv_criterion(scorer)
self.reg_param = self.reg_param_list[cv_criterion(self.scores_)]
super().fit(X=X, y=y, *args, **kwargs)
| (self, X, y, *args, **kwargs) | [
0.015116585418581963,
0.0013387901708483696,
0.019936230033636093,
-0.01814178191125393,
-0.0037767975591123104,
-0.008671602234244347,
-0.012439005076885223,
-0.015849396586418152,
0.0542280487716198,
0.024934379383921623,
0.018000856041908264,
-0.045058511197566986,
0.022848686203360558,
-0.0272267647087574,
0.011593453586101532,
0.013312741182744503,
-0.007050961721688509,
-0.07365694642066956,
-0.035513170063495636,
0.004744484554976225,
-0.009070890955626965,
-0.048741359263658524,
-0.020950891077518463,
0.010860641486942768,
-0.011320997960865498,
-0.004131459631025791,
0.03175516426563263,
-0.023186907172203064,
0.007243559695780277,
0.028222637251019478,
-0.01971074938774109,
0.0031050536781549454,
-0.05524270981550217,
0.013791888020932674,
0.007220071740448475,
-0.059113457798957825,
-0.027433454990386963,
0.026982493698596954,
0.0009541815961711109,
-0.014985054731369019,
-0.047350894659757614,
-0.018480001017451286,
-0.02175886370241642,
0.0005358096677809954,
0.01980469934642315,
0.06542690843343735,
-0.03305167704820633,
0.10169168561697006,
0.0431419275701046,
-0.05110890045762062,
-0.04859103634953499,
-0.0605790801346302,
-0.029857369139790535,
-0.0003241281374357641,
0.0034291818737983704,
0.03588896989822388,
0.06279630213975906,
-0.007163702044636011,
0.08665965497493744,
-0.06486321240663528,
0.0370163731276989,
-0.012091388925909996,
-0.0007357473950833082,
0.037373386323451996,
-0.0271140243858099,
-0.060240861028432846,
-0.08508128672838211,
0.013951603323221207,
-0.011518293060362339,
0.06786961853504181,
-0.0077508906833827496,
-0.027546195313334465,
0.00641210051253438,
-0.008450819179415703,
0.0007786121568642557,
0.075197733938694,
-0.055881571024656296,
-0.01509779505431652,
0.009864769876003265,
0.019410109147429466,
-0.03774918615818024,
0.034780360758304596,
-0.019466478377580643,
-0.03045865148305893,
-0.07500983029603958,
-0.027452245354652405,
0.0057356590405106544,
-0.020030179992318153,
0.04915473982691765,
0.008375659584999084,
0.010249965824186802,
0.04656171426177025,
0.03389722853899002,
-0.002149110659956932,
0.007783772889524698,
0.024690110236406326,
-0.047350894659757614,
0.00810320395976305,
-0.0324128158390522,
-0.0142052685841918,
-0.00749722495675087,
0.07703915238380432,
0.047651536762714386,
0.08350292593240738,
-0.002234840067103505,
-0.019579218700528145,
-0.010127830319106579,
0.0034761568531394005,
-0.020199289545416832,
0.028955448418855667,
-0.06824541836977005,
-0.004387473687529564,
0.011593453586101532,
0.03280740603804588,
-0.06309694796800613,
-0.04280370473861694,
-0.07703915238380432,
0.011988043785095215,
-0.01170619297772646,
-0.06287146359682083,
0.01226989459246397,
0.06614093482494354,
-0.005674591287970543,
0.0006494306726381183,
-0.02500954084098339,
-0.0036992887035012245,
0.027358295395970345,
0.035607121884822845,
-0.0015055517433211207,
-0.09861011803150177,
0.00690064113587141,
0.008765552192926407,
-0.023280857130885124,
-0.025328971445560455,
0.018480001017451286,
-0.04926747828722,
0.00001243188489752356,
-0.016140641644597054,
0.03331473842263222,
-0.06091730296611786,
0.07809139788150787,
-0.015943346545100212,
-0.004899502266198397,
-0.009568826295435429,
0.03555075079202652,
0.017803560942411423,
0.011443132534623146,
0.03414149954915047,
0.015295090153813362,
0.027057653293013573,
-0.013641566969454288,
0.017455944791436195,
0.04295402765274048,
-0.03389722853899002,
-0.00827701110392809,
-0.0037556588649749756,
-0.02760256454348564,
-0.017991460859775543,
0.053739506751298904,
-0.0029500359669327736,
0.012316869571805,
-0.012946335598826408,
0.011734378524124622,
0.01165921799838543,
0.048553455621004105,
0.08996669948101044,
-0.05242420360445976,
0.008474307134747505,
-0.0370163731276989,
-0.023919718340039253,
-0.0007474911981262267,
-0.0718906819820404,
-0.08184940367937088,
0.014167687855660915,
-0.021589752286672592,
-0.022829895839095116,
0.012053809128701687,
0.01310605090111494,
-0.029124557971954346,
0.07557353377342224,
0.03224370628595352,
-0.04381836578249931,
0.017145909368991852,
-0.0612931028008461,
-0.030251961201429367,
0.0016887546516954899,
0.005533665884286165,
0.011151887476444244,
-0.057535093277692795,
0.006510748062282801,
-0.022829895839095116,
-0.05945168063044548,
-0.018827617168426514,
-0.02805352583527565,
0.013538221828639507,
0.012194734066724777,
-0.0038261213339865208,
0.020218079909682274,
0.027846835553646088,
0.06456256657838821,
-0.017728401347994804,
-0.01971074938774109,
0.05317580699920654,
-0.039947621524333954,
-0.01245779450982809,
0.03673452511429787,
-0.020048970356583595,
0.029782209545373917,
-0.004784413147717714,
0.0008156050462275743,
-0.009216513484716415,
0.0067315311171114445,
-0.029331248253583908,
0.033652957528829575,
0.06242050603032112,
0.011424343101680279,
0.0001921574876178056,
-0.04460754990577698,
-0.00038167263846844435,
-0.016647974029183388,
0.014938079752027988,
-0.02361907809972763,
-0.05524270981550217,
0.004584769252687693,
0.017831746488809586,
-0.040962282568216324,
0.04629865288734436,
-0.040699221193790436,
0.012006834149360657,
-0.031886693090200424,
0.009808399714529514,
-0.047350894659757614,
0.03164242208003998,
-0.04006035998463631,
-0.05888797715306282,
0.040398579090833664,
-0.0077180080115795135,
0.004601210355758667,
-0.042465485632419586,
0.03511857986450195,
-0.01684526912868023,
0.0029899647925049067,
-0.01935373805463314,
-0.030477439984679222,
0.004965267609804869,
0.03613324090838432,
0.015210535377264023,
0.02628726325929165,
0.04802733659744263,
0.015943346545100212,
-0.0005173131939955056,
0.039571817964315414,
-0.026982493698596954,
-0.022078294306993484,
-0.05381466820836067,
-0.03378448635339737,
-0.005092100240290165,
0.055505771189928055,
0.013472456485033035,
-0.022942636162042618,
-0.03711032494902611,
0.048102494329214096,
-0.03295772522687912,
0.05080826207995415,
-0.06377338618040085,
0.022566834464669228,
0.01843302696943283,
-0.011076726950705051,
0.009568826295435429,
0.026042992249131203,
0.004676370415836573,
0.0499815009534359,
-0.00810790155082941,
0.04584769159555435,
-0.031980644911527634,
0.06407402455806732,
-0.027020074427127838,
-0.05005665868520737,
0.04193936288356781,
0.020894521847367287,
0.07711431384086609,
-0.02564840205013752,
0.012767830863595009,
-0.034479718655347824,
0.0450209304690361,
0.026719434186816216,
0.005904769524931908,
0.0027057654224336147,
0.012702065519988537,
-0.003960000351071358,
-0.02390092797577381,
0.010484840720891953,
0.02491558901965618,
0.01041907537728548,
0.05945168063044548,
-0.0003725712012965232,
-0.015999717637896538,
0.008032741025090218,
0.007285837084054947,
0.039947621524333954,
0.00441800756379962,
0.029312457889318466,
-0.04141324386000633,
-0.04137566313147545,
0.03463003784418106,
-0.011029751971364021,
0.06016569957137108,
0.01091701164841652,
-0.022848686203360558,
0.023863347247242928,
0.033652957528829575,
0.07655061036348343,
-0.0022242707200348377,
-0.04979360103607178,
-0.04938022047281265,
-0.05110890045762062,
0.06114278361201286,
-0.027997156605124474,
0.04024825990200043,
0.0003070996899623424,
0.010823061689734459,
-0.018489396199584007,
0.03656541183590889,
-0.05306306481361389,
0.03692242503166199,
0.025704771280288696,
0.007788470480591059,
0.03803103417158127,
-0.030345911160111427,
-0.010992172174155712,
-0.0000743160635465756,
-0.05110890045762062,
0.021138792857527733,
-0.015295090153813362,
-0.00878904014825821,
0.04509609192609787,
0.024765269830822945,
0.03603929281234741,
0.0012436655815690756,
0.017098933458328247,
-0.05234904587268829,
0.031886693090200424,
-0.03750491514801979,
-0.003133238758891821,
-0.04979360103607178,
-0.00820185150951147,
0.002691672882065177,
0.0535140261054039,
0.003950605168938637,
0.0568210743367672,
-0.023919718340039253,
-0.03639630228281021,
0.07587417215108871,
0.0012941638706251979,
0.016507048159837723,
0.010080855339765549,
-0.004601210355758667,
0.0057920292019844055,
0.041976943612098694,
-0.062345344573259354,
0.0010633986676111817,
-0.0066986484453082085,
-0.027921995148062706,
0.020405981689691544,
-0.014374379068613052,
-0.027189183980226517,
-0.0431419275701046,
0.010005694814026356,
0.036809682846069336,
-0.04629865288734436,
0.0063416375778615475,
-0.026775803416967392,
-0.053476445376873016,
0.01370733231306076,
0.021044842898845673,
0.021082421764731407,
-0.016826478764414787,
-0.019428899511694908,
0.02963188849389553,
-0.010616371408104897,
0.029932530596852303,
0.02121395245194435,
0.04889167845249176,
-0.03882021829485893,
-0.014468329027295113,
-0.027020074427127838,
0.018160570412874222,
-0.012814805842936039,
0.09507758915424347,
-0.04058648273348808,
0.04002277925610542,
-0.009752029553055763,
-0.0009982207557186484,
-0.010954591445624828,
-0.0324128158390522,
-0.004706904292106628,
0.06444983184337616,
0.020950891077518463,
-0.07557353377342224,
0.011189467273652554,
-0.044870611280202866,
-0.009808399714529514,
-0.06174406409263611,
0.010945197194814682,
0.03151089325547218,
-0.007562990300357342,
-0.023356016725301743,
0.018724272027611732,
0.007816655561327934,
0.045885272324085236,
-0.06523901224136353,
0.007877723313868046,
0.05843701586127281,
0.0057497513480484486,
-0.049305059015750885,
0.010588185861706734,
-0.002163202967494726,
0.09094378352165222,
0.034197866916656494,
0.018292101100087166,
-0.006280569825321436,
-0.003812028793618083,
-0.029199717566370964,
0.01795388013124466,
0.04212726280093193,
0.006196015048772097,
-0.07147730141878128,
-0.07749011367559433,
0.010757296346127987,
-0.046148333698511124,
-0.0627211481332779,
-0.024765269830822945,
-0.0768512561917305,
0.03463003784418106,
-0.05140954256057739,
-0.03859473764896393,
-0.038745056837797165,
0.04565979167819023,
-0.027997156605124474,
0.0057591465301811695,
-0.02091331221163273,
-0.030702920630574226,
0.05794847756624222,
0.021495802327990532,
0.0026799291372299194,
-0.0037392175290733576,
0.0060926699079573154,
0.035607121884822845,
-0.0898163765668869,
0.003135587554425001,
0.027621354907751083,
0.01360398717224598,
0.015680287033319473,
0.0794442817568779,
-0.027151605114340782,
-0.01426163874566555,
0.014618649147450924,
-0.008009253069758415,
0.04742605611681938,
-0.004060996696352959,
0.044569969177246094,
0.0039999294094741344,
0.024295518174767494,
0.007642847951501608,
-0.06629125028848648,
0.03844441846013069,
0.027020074427127838,
0.02889907732605934,
0.06602819263935089,
-0.03109751269221306,
-0.011997438967227936,
-0.026794593781232834,
-0.05287516489624977,
-0.031341783702373505,
-0.02991374023258686,
0.08162392675876617,
0.025498080998659134,
-0.022172244265675545,
-0.0007774378173053265,
-0.013998578302562237,
0.034686408936977386,
-0.028917867690324783,
0.05321338772773743,
-0.018188755959272385,
0.022980215027928352,
-0.043104346841573715,
-0.02130790241062641,
-0.04021067917346954,
-0.017061354592442513,
0.04539673030376434,
-0.01019359566271305,
-0.004669324494898319,
-0.0029711746610701084,
0.01731501892209053,
-0.05306306481361389,
-0.009892954491078854,
0.004359288606792688,
0.02812868542969227,
-0.0074549475684762,
-0.0027175091672688723,
0.0020727759692817926,
0.03609566390514374,
-0.01240142434835434,
0.014693809673190117,
0.011452527716755867,
0.0014574022497981787,
-0.032168544828891754,
0.04517124965786934,
-0.05640769377350807,
0.02656911313533783,
-0.027433454990386963,
-0.040887121111154556,
0.023675447329878807,
0.04825281724333763,
0.0015607475070282817,
-0.009277581237256527,
0.0011784876696765423,
0.04701267555356026,
0.032657086849212646,
0.02611815184354782,
0.01786932535469532,
0.01722106896340847,
0.061067622154951096,
-0.042465485632419586,
0.07959459722042084,
0.06595303118228912,
0.0039811390452086926,
0.025422921404242516,
0.044945769011974335,
0.031980644911527634,
0.048666197806596756,
-0.02269836515188217,
-0.022435305640101433,
0.03786192461848259,
-0.026362422853708267,
0.04017309844493866,
0.07609964907169342,
-0.05140954256057739,
0.000009826235327636823,
-0.009070890955626965,
-0.02110121212899685,
-0.009047403000295162,
0.0344233475625515,
0.0026493952609598637,
-0.013425481505692005,
0.025892671197652817,
-0.005035730078816414,
-0.010945197194814682,
-0.049492958933115005,
-0.03575744107365608,
0.014383773319423199,
-0.04757637530565262,
0.025065910071134567,
0.048290397971868515,
0.01647886261343956,
0.014834734611213207,
-0.04017309844493866,
0.054866909980773926,
0.011640428565442562,
0.006144342478364706,
0.02378818765282631,
0.030890822410583496,
0.0405489020049572,
-0.019100073724985123,
0.03618961200118065,
-0.004542491398751736,
-0.06009054183959961,
0.03511857986450195,
-0.0636606439948082,
-0.021044842898845673,
-0.01861153170466423,
0.02425793930888176,
-0.017794165760278702,
0.020669041201472282,
-0.07452128827571869,
0.07647545635700226,
-0.002484982367604971,
-0.05238662287592888,
-0.0754232108592987,
-0.009789609350264072,
0.010823061689734459,
-0.054040148854255676,
0.030947191640734673,
-0.054303210228681564,
0.008521282114088535,
0.00014532919158227742,
-0.022153453901410103,
0.02324327640235424,
-0.11604727059602737,
0.023280857130885124,
0.017258649691939354,
0.07392000406980515,
-0.009023915976285934,
-0.03712911531329155,
0.01375430729240179,
-0.016187617555260658,
-0.0702371597290039,
-0.047538794577121735,
0.002421566052362323,
-0.045584630221128464,
0.009183631278574467,
0.0021514592226594687,
0.023449966683983803,
-0.0037392175290733576,
0.0070227766409516335,
-0.022247403860092163,
-0.010606976225972176,
0.006069181952625513,
0.009855374693870544,
-0.01852697692811489,
0.009526548907160759,
0.02001138962805271,
0.06553965061903,
-0.01509779505431652,
-0.023844556882977486,
0.05558093264698982,
0.011931673623621464,
-0.021533383056521416,
0.03564470261335373,
-0.004880712367594242,
0.043104346841573715,
-0.014289823360741138,
0.0028607831336557865,
0.05167260393500328,
-0.04460754990577698,
-0.004843132104724646,
-0.028654808178544044,
-0.07279260456562042,
-0.016901638358831406,
-0.033295948058366776,
0.00003952513725380413,
-0.028222637251019478,
0.021157581359148026,
-0.010381495580077171,
0.048290397971868515,
-0.03233765438199043,
0.026456372812390327,
0.0012413169024512172,
-0.058173954486846924,
-0.0815487653017044,
-0.08898961544036865,
0.005129680037498474,
0.02461494877934456,
0.00005956294990028255,
-0.054679010063409805,
-0.031135091558098793,
-0.03603929281234741,
0.030590180307626724,
0.07042506337165833,
-0.0324128158390522,
0.03267587348818779,
-0.005242420360445976,
-0.04851587861776352,
-0.009376228787004948,
0.032826196402311325,
0.031698793172836304,
0.0245209988206625,
-0.004204270895570517,
0.01365096215158701,
0.005834306590259075,
-0.03711032494902611,
0.017380785197019577,
0.07500983029603958,
0.013632171787321568,
-0.03027074970304966,
0.031980644911527634,
0.002654092852026224,
-0.015670891851186752,
-0.05159744247794151,
0.009968115016818047,
-0.08004555851221085,
-0.02564840205013752,
-0.0568210743367672,
0.016995588317513466,
-0.01989864930510521,
-0.03231886401772499,
-0.04483303055167198,
-0.046899933367967606,
-0.021439433097839355,
0.019861070439219475,
0.06121794134378433,
0.06072940304875374,
0.022848686203360558,
0.014712599106132984,
0.03784313425421715,
0.045584630221128464,
-0.04524641111493111,
0.03804982453584671,
-0.005106192547827959,
-0.026418792083859444,
-0.008901780471205711,
-0.04802733659744263,
0.03045865148305893,
-0.06238292530179024,
-0.03414149954915047,
0.03222491592168808,
-0.008018648251891136,
-0.04344256594777107,
0.03481793776154518,
0.0021819930989295244,
-0.050883423537015915,
0.03667815402150154,
-0.03613324090838432,
0.02889907732605934,
0.0015290393494069576,
0.007436157204210758,
-0.042540643364191055,
0.021608542650938034,
-0.0057168691419065,
-0.07365694642066956,
0.0207442007958889,
-0.0568210743367672,
-0.02491558901965618,
-0.008765552192926407,
0.027903206646442413,
0.020255660638213158,
0.05103374272584915,
-0.03585139289498329,
0.009465481154620647,
0.01722106896340847,
0.06320968270301819,
-0.012495375238358974,
0.01952284947037697,
0.0031144486274570227,
0.026719434186816216,
-0.02760256454348564,
0.08575773239135742,
-0.02175886370241642,
0.0794442817568779,
-0.05821153521537781,
0.06347274780273438,
0.01629096269607544,
0.014637439511716366,
-0.007375089917331934,
0.003093309933319688,
-0.022097084671258926,
-0.028466906398534775,
-0.05140954256057739,
0.06493836641311646,
0.055317871272563934,
0.018169965595006943,
0.005331673193722963,
0.009559432044625282,
0.0047726696357131,
-0.008652811869978905,
0.0324128158390522,
-0.003917722962796688,
0.015511175617575645,
0.05625737085938454,
-0.004084484186023474,
-0.010954591445624828,
-0.0447954498231411,
0.06426192820072174,
0.037260644137859344,
0.04389352723956108,
0.03908327966928482,
-0.028316587209701538,
-0.05471659079194069,
0.01899672858417034,
0.01380128227174282,
0.033746905624866486,
-0.07376968860626221,
-0.018677297979593277,
-0.0006077402504161,
0.0017110677435994148,
0.02602420188486576,
0.053852248936891556,
0.039947621524333954
] |
17,543 | imodels.discretization.mdlp | MDLPDiscretizer | null | class MDLPDiscretizer(object):
def __init__(self, dataset, class_label, out_path_data=None, out_path_bins=None, features=None):
'''
initializes discretizer object:
saves raw copy of data and creates self._data with only features to discretize and class
computes initial entropy (before any splitting)
self._features = features to be discretized
self._classes = unique classes in raw_data
self._class_name = label of class in pandas dataframe
self._data = partition of data with only features of interest and class
self._cuts = dictionary with cut points for each feature
Params
------
dataset
pandas dataframe with data to discretize
class_label
name of the column containing class in input dataframe
features
if !None, features that the user wants to discretize specifically
'''
if not isinstance(dataset, pd.core.frame.DataFrame): # class needs a pandas dataframe
raise AttributeError('input dataset should be a pandas data frame')
self._data_raw = dataset # copy or original input data
self._class_name = class_label
self._classes = self._data_raw[self._class_name] # .unique()
self._classes.drop_duplicates()
# if user specifies which attributes to discretize
if features:
self._features = [f for f in features if f in self._data_raw.columns] # check if features in dataframe
missing = set(features) - set(self._features) # specified columns not in dataframe
if missing:
print('WARNING: user-specified features %s not in input dataframe' % str(missing))
else: # then we need to recognize which features are numeric
numeric_cols = self._data_raw._data.get_numeric_data().items
self._features = [f for f in numeric_cols if f != class_label]
# other features that won't be discretized
self._ignored_features = set(self._data_raw.columns) - set(self._features)
# create copy of data only including features to discretize and class
self._data = self._data_raw.loc[:, self._features + [class_label]]
self._data = self._data.infer_objects() # convert_objects(convert_numeric=True)
# pre-compute all boundary points in dataset
self._boundaries = self._compute_boundary_points_all_features()
# initialize feature bins with empty arrays
self._cuts = {f: [] for f in self._features}
# get cuts for all features
self._all_features_accepted_cutpoints()
# discretize self._data
self._apply_cutpoints(out_data_path=out_path_data, out_bins_path=out_path_bins)
def MDLPC_criterion(self, data, feature, cut_point):
'''
Determines whether a partition is accepted according to the MDLPC criterion
:param feature: feature of interest
:param cut_point: proposed cut_point
:param partition_index: index of the sample (dataframe partition) in the interval of interest
:return: True/False, whether to accept the partition
'''
# get dataframe only with desired attribute and class columns, and split by cut_point
data_partition = data.copy(deep=True)
data_left = data_partition[data_partition[feature] <= cut_point]
data_right = data_partition[data_partition[feature] > cut_point]
# compute information gain obtained when splitting data at cut_point
cut_point_gain = cut_point_information_gain(dataset=data_partition, cut_point=cut_point,
feature_label=feature, class_label=self._class_name)
# compute delta term in MDLPC criterion
N = len(data_partition) # number of examples in current partition
partition_entropy = entropy(data_partition[self._class_name])
k = len(data_partition[self._class_name].unique())
k_left = len(data_left[self._class_name].unique())
k_right = len(data_right[self._class_name].unique())
entropy_left = entropy(data_left[self._class_name]) # entropy of partition
entropy_right = entropy(data_right[self._class_name])
delta = log(3 ** k, 2) - (k * partition_entropy) + (k_left * entropy_left) + (k_right * entropy_right)
# to split or not to split
gain_threshold = (log(N - 1, 2) + delta) / N
if cut_point_gain > gain_threshold:
return True
else:
return False
def _feature_boundary_points(self, data, feature):
'''
Given an attribute, find all potential cut_points (boundary points)
:param feature: feature of interest
:param partition_index: indices of rows for which feature value falls within interval of interest
:return: array with potential cut_points
'''
# get dataframe with only rows of interest, and feature and class columns
data_partition = data.copy(deep=True)
data_partition.sort_values(feature, ascending=True, inplace=True)
boundary_points = []
# add temporary columns
data_partition['class_offset'] = data_partition[self._class_name].shift(
1) # column where first value is now second, and so forth
data_partition['feature_offset'] = data_partition[feature].shift(
1) # column where first value is now second, and so forth
data_partition['feature_change'] = (data_partition[feature] != data_partition['feature_offset'])
data_partition['mid_points'] = data_partition.loc[:, [feature, 'feature_offset']].mean(axis=1)
potential_cuts = data_partition[data_partition['feature_change'] == True].index[1:]
sorted_index = data_partition.index.tolist()
for row in potential_cuts:
old_value = data_partition.loc[sorted_index[sorted_index.index(row) - 1]][feature]
new_value = data_partition.loc[row][feature]
old_classes = data_partition[data_partition[feature] == old_value][self._class_name].unique()
new_classes = data_partition[data_partition[feature] == new_value][self._class_name].unique()
if len(set.union(set(old_classes), set(new_classes))) > 1:
boundary_points += [data_partition.loc[row]['mid_points']]
return set(boundary_points)
def _compute_boundary_points_all_features(self):
'''
Computes all possible boundary points for each attribute in self._features (features to discretize)
:return:
'''
boundaries = {}
for attr in self._features:
data_partition = self._data.loc[:, [attr, self._class_name]]
boundaries[attr] = self._feature_boundary_points(data=data_partition, feature=attr)
return boundaries
def _boundaries_in_partition(self, data, feature):
'''
From the collection of all cut points for all features, find cut points that fall within a feature-partition's
attribute-values' range
:param data: data partition (pandas dataframe)
:param feature: attribute of interest
:return: points within feature's range
'''
range_min, range_max = (data[feature].min(), data[feature].max())
return set([x for x in self._boundaries[feature] if (x > range_min) and (x < range_max)])
def _best_cut_point(self, data, feature):
'''
Selects the best cut point for a feature in a data partition based on information gain
:param data: data partition (pandas dataframe)
:param feature: target attribute
:return: value of cut point with highest information gain (if many, picks first). None if no candidates
'''
candidates = self._boundaries_in_partition(data=data, feature=feature)
# candidates = self.feature_boundary_points(data=data, feature=feature)
if not candidates:
return None
gains = [(cut, cut_point_information_gain(dataset=data, cut_point=cut, feature_label=feature,
| (dataset, class_label, out_path_data=None, out_path_bins=None, features=None) | [
0.039044905453920364,
-0.007088745012879372,
0.0027589297387748957,
0.04070470854640007,
-0.004408853594213724,
-0.06097802519798279,
0.002662601647898555,
-0.018623393028974533,
0.0032356292940676212,
-0.01903834380209446,
-0.054220255464315414,
-0.000727399077732116,
-0.011253073811531067,
-0.006347761023789644,
-0.05785601586103439,
0.025964071974158287,
-0.028137624263763428,
0.021933119744062424,
0.030034542083740234,
0.0076222531497478485,
-0.051493432372808456,
-0.011608745902776718,
-0.019917644560337067,
0.02805858664214611,
0.006846690084785223,
0.01431580726057291,
0.03989456593990326,
0.0009713062318041921,
0.0016289293998852372,
-0.027683153748512268,
-0.047264885157346725,
0.023988114669919014,
-0.03100276179611683,
-0.013811937533318996,
-0.010907281190156937,
-0.06655022501945496,
0.08117230236530304,
-0.004280416294932365,
-0.021636726334691048,
0.05026834085583687,
-0.05773745849728584,
-0.03446068614721298,
-0.02999502420425415,
-0.032682325690984726,
-0.01288323849439621,
0.025232968851923943,
-0.0019302627770230174,
0.013011675328016281,
-0.010887522250413895,
0.005927870515733957,
-0.014691238291561604,
-0.06627359241247177,
0.01305119413882494,
0.03430261090397835,
-0.04311537742614746,
0.05358794704079628,
0.03766173496842384,
-0.005181946791708469,
-0.00410505011677742,
-0.012527566403150558,
0.014444244094192982,
0.04264114797115326,
0.04058615118265152,
-0.030409974977374077,
0.004505181219428778,
-0.0147011186927557,
-0.04643498361110687,
0.04106038063764572,
-0.018613513559103012,
0.04137653484940529,
-0.004853443708270788,
-0.05315323546528816,
0.05315323546528816,
0.052402373403310776,
0.0012547326041385531,
-0.006416919641196728,
0.012804199941456318,
-0.07544203102588654,
0.0597529336810112,
-0.03329487144947052,
0.030943483114242554,
0.02691253088414669,
0.017694693058729172,
-0.03139795362949371,
0.017694693058729172,
0.010195937007665634,
0.045091334730386734,
0.039044905453920364,
-0.0016536287730559707,
-0.021360091865062714,
-0.01972004771232605,
0.07733894884586334,
0.04256210848689079,
0.05670996010303497,
0.050900645554065704,
0.025904793292284012,
-0.05248141288757324,
-0.01674623414874077,
-0.022189995273947716,
-0.027208924293518066,
0.05390410125255585,
0.062084563076496124,
0.040862787514925,
0.0731499195098877,
-0.0023069295566529036,
-0.0376419760286808,
-0.008926385082304478,
0.02234807051718235,
-0.07212242484092712,
-0.021261295303702354,
-0.07081829011440277,
0.05667043849825859,
-0.014967872761189938,
0.023632442578673363,
-0.03922274336218834,
-0.050782088190317154,
-0.029797427356243134,
0.03228713199496269,
-0.060148123651742935,
-0.010689926333725452,
-0.02258518524467945,
-0.026714935898780823,
-0.036792315542697906,
0.014839434996247292,
-0.03329487144947052,
-0.014651719480752945,
0.060148123651742935,
0.05659140273928642,
-0.017951566725969315,
-0.055366307497024536,
0.028137624263763428,
-0.028335219249129295,
-0.023790519684553146,
0.022980377078056335,
-0.004463192541152239,
-0.06990934908390045,
-0.0007700056303292513,
0.019077863544225693,
0.022901339456439018,
-0.028888488188385963,
0.0652460902929306,
-0.010067500174045563,
0.024877294898033142,
0.004680547397583723,
0.0003417787665966898,
-0.009252417832612991,
0.021399611607193947,
-0.04777863621711731,
-0.040665190666913986,
-0.016953708603978157,
-0.058646395802497864,
0.007365379016846418,
0.013604462146759033,
-0.033788859844207764,
0.022209754213690758,
0.000054956297390162945,
-0.006723192986100912,
-0.04319441691040993,
-0.017872529104351997,
-0.012142254039645195,
-0.06658974289894104,
-0.06785435229539871,
-0.00223777093924582,
0.017595894634723663,
-0.027979547157883644,
0.0190581027418375,
0.0030355635099112988,
-0.07279425114393234,
-0.031753625720739365,
0.038017407059669495,
0.058093130588531494,
0.026616137474775314,
-0.0035369626712054014,
0.03487563878297806,
-0.05702611431479454,
0.0898665115237236,
0.03582409769296646,
-0.035863615572452545,
0.024541383609175682,
0.04137653484940529,
0.0406256727874279,
-0.0396772138774395,
-0.024363547563552856,
0.01168778445571661,
-0.013752658851444721,
-0.010749205015599728,
0.010126778855919838,
-0.022881578654050827,
0.016232484951615334,
0.027386760339140892,
-0.01014653779566288,
-0.06552273035049438,
-0.019443415105342865,
0.012497926130890846,
0.04050711542367935,
-0.011855741031467915,
0.0030108641367405653,
0.024916814640164375,
-0.012013817206025124,
0.03457924351096153,
0.0014659129083156586,
0.013357467949390411,
0.04358960688114166,
-0.020708026364445686,
-0.015926212072372437,
-0.0003877815033774823,
-0.030489012598991394,
0.046237386763095856,
-0.019463174045085907,
0.00035536347422748804,
-0.046000272035598755,
-0.0321488156914711,
0.03851139917969704,
0.05623573064804077,
0.09571534395217896,
-0.051493432372808456,
0.016005249693989754,
-0.016044769436120987,
0.007162843365222216,
-0.005369662307202816,
-0.027959788218140602,
-0.022525906562805176,
-0.010245336219668388,
0.08536133170127869,
-0.001289311796426773,
-0.024462344124913216,
0.03681207448244095,
0.02554912120103836,
0.07255713641643524,
-0.04631642624735832,
-0.003208459820598364,
-0.06062235310673714,
-0.010729445144534111,
-0.047264885157346725,
0.03957841545343399,
0.03748390078544617,
-0.005710515193641186,
0.028987286612391472,
-0.01871231012046337,
0.018504835665225983,
-0.04868757352232933,
-0.02942199632525444,
-0.012488046661019325,
0.0021933119278401136,
-0.013179631903767586,
0.010541729629039764,
0.0490037277340889,
0.047936711460351944,
0.049240842461586,
0.018959304317831993,
-0.01312035322189331,
-0.05244189128279686,
-0.037701256573200226,
0.029046565294265747,
0.01837639883160591,
-0.0889180526137352,
-0.005631476640701294,
0.01972992904484272,
0.02896752581000328,
0.003825946245342493,
-0.02051043137907982,
0.005031279753893614,
0.020569710060954094,
0.09816553443670273,
-0.03114107809960842,
0.020787065848708153,
0.013140112161636353,
0.006239083595573902,
0.01653875783085823,
-0.028769930824637413,
0.02120201662182808,
0.09547822922468185,
-0.023454606533050537,
0.007528395392000675,
-0.038155727088451385,
-0.012715281918644905,
-0.02440306544303894,
-0.05576150119304657,
-0.015046910382807255,
-0.00022275825904216617,
0.029896225780248642,
-0.04268066585063934,
-0.03568577766418457,
0.011104877106845379,
-0.02406715415418148,
-0.01373289991170168,
-0.030034542083740234,
-0.04137653484940529,
0.024146191775798798,
0.015619938261806965,
-0.1113649234175682,
0.014157730154693127,
0.029560312628746033,
0.026517339050769806,
0.10116899013519287,
-0.002689771121367812,
-0.013683500699698925,
-0.06180792674422264,
-0.012744921259582043,
-0.004557050298899412,
0.02384979836642742,
-0.01813928410410881,
0.032109297811985016,
0.02211095578968525,
-0.04663258045911789,
-0.04548652470111847,
0.05157247185707092,
-0.02301989682018757,
0.01742793805897236,
0.022861819714307785,
0.05548486486077309,
0.028117865324020386,
0.027643635869026184,
0.009069642052054405,
0.011262953281402588,
-0.06018764153122902,
0.019245818257331848,
0.017131544649600983,
0.03706894814968109,
0.06655022501945496,
-0.02997526340186596,
-0.02394859679043293,
0.011312352493405342,
0.06378388404846191,
0.01048245094716549,
-0.0007014646544121206,
0.03252424672245979,
-0.017062386497855186,
-0.007024526130408049,
-0.025588640943169594,
-0.06295398622751236,
0.027564596384763718,
0.020688267424702644,
0.02053019031882286,
0.003302317811176181,
-0.008605292066931725,
0.019878124818205833,
-0.04904324561357498,
0.01203357707709074,
-0.022723503410816193,
0.04287826269865036,
0.04347104951739311,
-0.025331765413284302,
0.0353696271777153,
0.003996372688561678,
-0.007281400728970766,
0.048410940915346146,
-0.006999826990067959,
-0.015461862087249756,
0.07828740775585175,
-0.0018820988480001688,
-0.013041314668953419,
0.010561488568782806,
0.039973605424165726,
0.06212408095598221,
-0.03766173496842384,
0.016015129163861275,
-0.015896571800112724,
-0.008733728900551796,
-0.0296393521130085,
0.10053668171167374,
-0.025450322777032852,
-0.0017870059236884117,
0.015145708806812763,
-0.023573163896799088,
-0.03420381247997284,
-0.057539861649274826,
0.025568880140781403,
-0.006066187284886837,
-0.009499412029981613,
-0.005083148833364248,
-0.039064664393663406,
0.008684329688549042,
-0.02108345925807953,
0.0151753481477499,
0.0011868090368807316,
-0.053548429161310196,
-0.023553404957056046,
-0.012982035987079144,
0.09113112837076187,
-0.013663740828633308,
-0.020372115075588226,
-0.0250946506857872,
0.018396157771348953,
-0.017823129892349243,
-0.012478167191147804,
0.0000896899146027863,
-0.0490037277340889,
0.10227552056312561,
-0.034480445086956024,
0.03297871723771095,
0.015234626829624176,
0.01431580726057291,
-0.026299985125660896,
-0.02736700139939785,
-0.0064712585881352425,
0.01447388343513012,
-0.008457095362246037,
0.01777373068034649,
-0.025628158822655678,
-0.06109658256173134,
-0.017744092270731926,
0.007034406065940857,
0.05655188113451004,
0.021360091865062714,
-0.012922757305204868,
0.027189165353775024,
0.001305366400629282,
-0.008733728900551796,
0.01676599308848381,
-0.025153929367661476,
0.06101754680275917,
0.005547498818486929,
0.023909077048301697,
-0.0073258597403764725,
-0.018791349604725838,
-0.007444417104125023,
-0.014157730154693127,
0.03979577124118805,
0.0035147331655025482,
0.004198908340185881,
-0.0038382960483431816,
0.009109160862863064,
0.000991065870039165,
-0.05860687792301178,
-0.025944313034415245,
-0.015313665382564068,
0.004989291075617075,
-0.019779326394200325,
0.005982208997011185,
-0.06856569647789001,
0.002763869473710656,
-0.11792510002851486,
0.007913706824183464,
-0.024244990199804306,
-0.007651892490684986,
-0.04572363942861557,
0.03900538757443428,
-0.0018709840951487422,
-0.030034542083740234,
-0.02359292469918728,
0.013080833479762077,
0.05263948813080788,
-0.036673758178949356,
0.008575652725994587,
-0.027386760339140892,
-0.033927176147699356,
-0.042799223214387894,
-0.08014480769634247,
-0.031635068356990814,
0.005641356576234102,
-0.012488046661019325,
0.02622094564139843,
0.0374048613011837,
-0.031990740448236465,
0.017012987285852432,
-0.040546633303165436,
-0.04461710527539253,
0.0199571643024683,
0.014809795655310154,
-0.0341840535402298,
0.038017407059669495,
-0.038116205483675,
0.06275638937950134,
0.022604946047067642,
0.06485090404748917,
0.03169434517621994,
-0.013140112161636353,
-0.04208787903189659,
-0.009020242840051651,
0.06698493659496307,
-0.015540899708867073,
0.03461876139044762,
-0.038926348090171814,
-0.020233796909451485,
0.058646395802497864,
-0.03125963732600212,
-0.0005625301855616271,
0.0222295131534338,
-0.021854082122445107,
0.06437667459249496,
-0.034480445086956024,
0.021933119744062424,
-0.001212125993333757,
-0.035745058208703995,
-0.020095480605959892,
-0.00758767407387495,
0.016677075996994972,
-0.01397001463919878,
-0.051493432372808456,
-0.05374602600932121,
-0.0071035646833479404,
0.02236783131957054,
0.05485256016254425,
0.024580901488661766,
0.03351222723722458,
0.0544968880712986,
0.028532816097140312,
0.09192150831222534,
-0.06639214605093002,
-0.0079779252409935,
0.07216194272041321,
-0.05263948813080788,
-0.023889318108558655,
0.04323393478989601,
0.007637072820216417,
-0.025450322777032852,
0.05702611431479454,
-0.01927545852959156,
0.000021747102437075227,
-0.010462691076099873,
-0.08994555473327637,
0.08860190212726593,
0.011292592622339725,
0.01460232026875019,
0.007068985141813755,
-0.011075237765908241,
0.019789207726716995,
-0.03698991239070892,
0.052046701312065125,
-0.006663914304226637,
-0.0356067419052124,
0.021162496879696846,
-0.02130081318318844,
-0.0027539897710084915,
0.045881714671850204,
0.02373124100267887,
-0.02598383091390133,
0.049438439309597015,
0.027860989794135094,
-0.027959788218140602,
-0.009830384515225887,
0.07797125726938248,
0.06840762495994568,
0.008392876014113426,
0.02165648713707924,
-0.0036258806940168142,
-0.018396157771348953,
0.03315655514597893,
-0.021933119744062424,
-0.0072023626416921616,
0.0017672462854534388,
0.057539861649274826,
0.009835325181484222,
0.008956024423241615,
-0.013011675328016281,
0.021616967394948006,
0.015659457072615623,
0.0016091697616502643,
0.02689277194440365,
0.07010694593191147,
0.027386760339140892,
0.02234807051718235,
-0.006076067220419645,
0.09903495013713837,
0.012804199941456318,
0.028434017673134804,
0.005021400284022093,
0.02827594056725502,
-0.00555737828835845,
-0.063823401927948,
-0.02495633438229561,
0.10512089729309082,
-0.04904324561357498,
-0.002147617982700467,
-0.03969697281718254,
-0.041337016969919205,
0.02896752581000328,
-0.07492828369140625,
-0.013555063866078854,
0.019542211666703224,
0.04801575094461441,
-0.016795633360743523,
0.059911008924245834,
-0.06489042192697525,
0.014651719480752945,
0.025707198306918144,
0.00012612160935532302,
-0.07473068684339523,
-0.05702611431479454,
-0.015125948935747147,
0.011905139312148094,
0.023079175502061844,
-0.03617976978421211,
-0.018109643831849098,
0.0010392297990620136,
-0.04536796733736992,
-0.005572197958827019,
-0.02349412627518177,
0.002561334054917097,
-0.0023415088653564453,
0.024897055700421333,
0.01586693339049816,
-0.05346938967704773,
0.0021488529164344072,
0.03331463038921356,
-0.027544837445020676,
-0.012409008108079433,
0.0248575359582901,
0.013367347419261932,
-0.016598036512732506,
-0.018623393028974533,
-0.010897401720285416,
0.029560312628746033,
0.047501999884843826,
-0.04058615118265152,
-0.01699322834610939,
-0.013229030184447765,
-0.0061353459022939205,
-0.031299155205488205,
-0.005908110644668341,
0.06342821568250656,
0.048055268824100494,
0.007879127748310566,
-0.021636726334691048,
-0.011322231963276863,
-0.010798604227602482,
-0.06540416926145554,
0.07342655211687088,
-0.03635760396718979,
-0.0038802851922810078,
-0.03155602887272835,
0.022209754213690758,
0.011697663925588131,
-0.006713313050568104,
-0.05441784858703613,
-0.025845514610409737,
-0.07374271005392075,
-0.011035718955099583,
0.00111765053588897,
-0.002630492439493537,
-0.03179314360022545,
0.011421030387282372,
-0.017388420179486275,
0.03730606287717819,
0.03218833729624748,
0.0034455745480954647,
-0.017516857013106346,
-0.01675611361861229,
-0.0034999134950339794,
-0.008264439180493355,
0.008664570748806,
-0.006994886789470911,
-0.0018203501822426915,
-0.02930343896150589,
-0.07974961400032043,
0.017724331468343735,
0.016953708603978157,
0.05995052680373192,
0.03971673175692558,
-0.05097968503832817,
0.012576964683830738,
-0.022051677107810974,
-0.041218459606170654,
-0.0017845359398052096,
-0.014661598950624466,
-0.03533010557293892,
0.02416595071554184,
0.012853599153459072,
-0.04244355112314224,
-0.041811246424913406,
0.017072265967726707,
0.018603632226586342,
-0.035409145057201385,
-0.03398645669221878,
-0.03270208463072777,
0.027999307960271835,
-0.011154276318848133,
-0.01792192831635475,
0.047264885157346725,
-0.030370455235242844,
0.011994057334959507,
-0.028137624263763428,
-0.02006584033370018,
-0.039973605424165726,
-0.07279425114393234,
-0.02039187401533127,
-0.0401514433324337,
-0.025351526215672493,
0.020273316651582718,
0.06821002811193466,
0.07844548672437668,
-0.027525078505277634,
-0.012162013910710812,
0.08156749606132507,
0.019226059317588806,
-0.048410940915346146,
-0.062321677803993225,
-0.029323197901248932,
0.008333597332239151,
0.02211095578968525,
0.029105843976140022,
0.036673758178949356,
-0.009726647287607193,
-0.038491636514663696,
-0.00924747809767723,
-0.027959788218140602,
-0.016578277572989464,
0.033927176147699356,
-0.0014263937482610345,
-0.011707544326782227,
0.010354013182222843,
-0.04892468824982643,
0.025628158822655678,
-0.0005764236557297409,
0.04647450149059296,
-0.06682685762643814,
0.03009382076561451,
0.009677248075604439,
-0.012754800729453564,
0.02598383091390133,
0.06785435229539871,
0.016163326799869537,
-0.021933119744062424,
-0.026517339050769806,
0.05414121598005295,
-0.06599695980548859,
-0.00555737828835845,
0.001679563312791288,
0.006708373315632343,
0.04631642624735832,
0.0049300119280815125,
0.07844548672437668,
0.03406549617648125,
-0.08488710224628448,
0.034717559814453125,
0.010423172265291214,
-0.041653167456388474,
0.0326230451464653,
-0.012962276116013527,
0.025845514610409737,
0.06694541871547699,
-0.05848832055926323,
0.025351526215672493,
0.010788723826408386,
-0.06793339550495148,
0.03100276179611683,
-0.023573163896799088,
0.0028799569699913263,
0.060029566287994385,
-0.028671132400631905,
-0.06137321889400482,
-0.007889007218182087,
-0.005369662307202816,
-0.014345446601510048,
0.04766007885336876,
-0.015234626829624176,
0.02792026847600937,
0.03862995654344559,
-0.042364511638879776,
0.05607765167951584,
-0.02404739335179329,
-0.01823808066546917,
-0.005063389427959919,
0.02039187401533127,
0.01232009008526802,
0.029007045552134514,
-0.005349902901798487,
0.012972156517207623,
-0.05959485471248627,
-0.00832371786236763,
0.0005109700723551214,
0.02805858664214611,
0.03570554032921791,
-0.0147011186927557,
0.04208787903189659,
-0.0029194762464612722,
0.001473322743549943
] |
17,544 | imodels.discretization.mdlp | MDLPC_criterion |
Determines whether a partition is accepted according to the MDLPC criterion
:param feature: feature of interest
:param cut_point: proposed cut_point
:param partition_index: index of the sample (dataframe partition) in the interval of interest
:return: True/False, whether to accept the partition
| def MDLPC_criterion(self, data, feature, cut_point):
'''
Determines whether a partition is accepted according to the MDLPC criterion
:param feature: feature of interest
:param cut_point: proposed cut_point
:param partition_index: index of the sample (dataframe partition) in the interval of interest
:return: True/False, whether to accept the partition
'''
# get dataframe only with desired attribute and class columns, and split by cut_point
data_partition = data.copy(deep=True)
data_left = data_partition[data_partition[feature] <= cut_point]
data_right = data_partition[data_partition[feature] > cut_point]
# compute information gain obtained when splitting data at cut_point
cut_point_gain = cut_point_information_gain(dataset=data_partition, cut_point=cut_point,
feature_label=feature, class_label=self._class_name)
# compute delta term in MDLPC criterion
N = len(data_partition) # number of examples in current partition
partition_entropy = entropy(data_partition[self._class_name])
k = len(data_partition[self._class_name].unique())
k_left = len(data_left[self._class_name].unique())
k_right = len(data_right[self._class_name].unique())
entropy_left = entropy(data_left[self._class_name]) # entropy of partition
entropy_right = entropy(data_right[self._class_name])
delta = log(3 ** k, 2) - (k * partition_entropy) + (k_left * entropy_left) + (k_right * entropy_right)
# to split or not to split
gain_threshold = (log(N - 1, 2) + delta) / N
if cut_point_gain > gain_threshold:
return True
else:
return False
| (self, data, feature, cut_point) | [
0.03713604435324669,
0.019787045195698738,
-0.02750752680003643,
0.07070335000753403,
0.03635869547724724,
-0.034185655415058136,
0.00871866662055254,
-0.035952355712652206,
-0.023620784282684326,
-0.01666881889104843,
-0.01166022289544344,
0.0021067901980131865,
0.011395217850804329,
-0.00915150810033083,
-0.05271834135055542,
-0.004854009486734867,
-0.020370056852698326,
0.02796686813235283,
0.031182263046503067,
0.021907085552811623,
-0.02932722680270672,
0.02865588106215,
-0.027737196534872055,
0.030245911329984665,
-0.001961037516593933,
0.039291419088840485,
0.039503421634435654,
0.004379208665341139,
-0.023285111412405968,
0.01112137921154499,
-0.025652490556240082,
0.003964033909142017,
0.01663348451256752,
0.026341503486037254,
-0.016129974275827408,
-0.02545815333724022,
0.06582725793123245,
-0.0185856893658638,
-0.05847778543829918,
0.013753763400018215,
-0.04971494898200035,
-0.030493250116705894,
-0.003970659337937832,
-0.016801321879029274,
-0.027118852362036705,
0.0055165220983326435,
-0.005172015633434057,
0.043849505484104156,
0.010962376371026039,
0.009575515985488892,
-0.003780738916248083,
-0.025051811710000038,
0.01105954498052597,
0.00805615447461605,
-0.03770138695836067,
0.018285349011421204,
0.025599488988518715,
-0.030493250116705894,
-0.004911427386105061,
0.021112069487571716,
0.012923413887619972,
0.021288739517331123,
0.05653441324830055,
0.0056931921280920506,
0.0051278481259942055,
-0.03450366109609604,
-0.06632193177938461,
0.01665998436510563,
-0.026535840705037117,
0.04487419128417969,
-0.022525429725646973,
-0.054343704134225845,
0.03819606453180313,
0.03236595168709755,
-0.010821039788424969,
-0.02800220251083374,
0.02397412434220314,
-0.0610218346118927,
0.0610218346118927,
-0.012278567999601364,
0.009036673232913017,
0.004597838036715984,
0.005997947882860899,
-0.016430314630270004,
0.012587741017341614,
0.016986824572086334,
0.03597002103924751,
0.01105954498052597,
0.06921932101249695,
-0.01186339370906353,
-0.014054101891815662,
0.07858283817768097,
0.03787805885076523,
0.04317815974354744,
0.06314187496900558,
0.011845726519823074,
-0.044838856905698776,
0.026906847953796387,
-0.034644994884729385,
-0.014098269864916801,
0.03075825423002243,
0.10225661844015121,
0.06197585165500641,
0.07476676255464554,
0.03420332074165344,
-0.03667670115828514,
-0.02344411425292492,
0.02552882209420204,
-0.050350964069366455,
-0.03116459585726261,
-0.07349473983049393,
0.04095211625099182,
-0.012110731564462185,
0.02376212179660797,
-0.03823139891028404,
-0.01789667457342148,
-0.010741538368165493,
0.012896913103759289,
-0.07688680291175842,
-0.04589887708425522,
0.012905746698379517,
-0.015900304540991783,
-0.03745405003428459,
-0.010706204921007156,
-0.036040689796209335,
-0.02660650946199894,
0.09144441783428192,
0.04851359501481056,
-0.04013943299651146,
-0.03331996873021126,
0.02865588106215,
-0.024115461856126785,
-0.009328178130090237,
0.00534426886588335,
-0.014972786419093609,
-0.05865445360541344,
0.04717090353369713,
0.01169555727392435,
0.002332044532522559,
-0.020281720906496048,
0.0315886028110981,
0.0005592710804194212,
0.00805173721164465,
0.015599965117871761,
0.006059782579541206,
-0.019769378006458282,
-0.019133366644382477,
-0.03886741027235985,
0.004107578657567501,
0.0029040139634162188,
-0.048336923122406006,
0.01616530865430832,
-0.02920355834066868,
-0.05879579111933708,
0.01460177917033434,
0.0035444428212940693,
-0.009822854772210121,
-0.03317863494157791,
0.002166416496038437,
-0.04240081086754799,
-0.04473285377025604,
-0.04794824868440628,
-0.03142959997057915,
0.047559574246406555,
0.0024181711487472057,
0.017914341762661934,
-0.023090774193406105,
-0.05950247123837471,
-0.0517289899289608,
0.01585613563656807,
0.0545203760266304,
0.05088097229599953,
0.03413265198469162,
0.001882640179246664,
-0.07105669379234314,
0.06296520680189133,
0.019840046763420105,
-0.040528107434511185,
-0.00401041004806757,
-0.004650839138776064,
0.012313902378082275,
-0.027419190853834152,
-0.0328252948820591,
0.020758729428052902,
-0.014628279954195023,
-0.004078869707882404,
-0.015882637351751328,
0.008939504623413086,
0.017331331968307495,
0.029751235619187355,
-0.055085718631744385,
-0.06310653686523438,
-0.004748007282614708,
0.005825694650411606,
0.015016953460872173,
-0.021324073895812035,
0.01567063294351101,
0.05105764418840408,
-0.019345369189977646,
0.058371782302856445,
0.01916869916021824,
0.004357125144451857,
0.01945137232542038,
0.004310749005526304,
-0.02047605812549591,
0.0037365714088082314,
-0.018780026584863663,
0.08593230694532394,
-0.029132889583706856,
-0.008842336013913155,
-0.06345988065004349,
-0.046040214598178864,
0.0594671368598938,
0.0826815813779831,
0.0737067461013794,
-0.04791291430592537,
0.004544836934655905,
0.01159838866442442,
0.024150794371962547,
0.013727262616157532,
-0.023161442950367928,
-0.04741824045777321,
0.011607222259044647,
0.07731080800294876,
0.039326753467321396,
-0.022101422771811485,
0.02763119526207447,
0.02254309691488743,
0.02376212179660797,
-0.02236642688512802,
-0.011518887244164944,
-0.02347944863140583,
0.01973404362797737,
-0.05268300697207451,
0.05374302715063095,
0.07413075119256973,
-0.027790198102593422,
0.06455523520708084,
-0.011713223531842232,
0.026959849521517754,
-0.042047470808029175,
-0.0102203618735075,
0.017834840342402458,
0.04088144749403,
-0.004968844819813967,
-0.014098269864916801,
0.0594671368598938,
0.036129023879766464,
0.0666046068072319,
0.017234163358807564,
-0.03369097784161568,
-0.0477009117603302,
-0.04773624613881111,
0.023426447063684464,
0.01961037516593933,
-0.035917021334171295,
-0.01011435966938734,
0.02521081455051899,
0.03597002103924751,
-0.0030210576951503754,
-0.016191810369491577,
0.005967030767351389,
0.012870412319898605,
0.04494486004114151,
-0.049078937619924545,
0.005971447564661503,
0.007265555672347546,
0.04045743867754936,
0.036252692341804504,
-0.014999287202954292,
0.010538368485867977,
0.09250443428754807,
-0.0014188813511282206,
-0.0065588755533099174,
-0.016527483239769936,
-0.024486467242240906,
-0.0047700912691652775,
-0.030281245708465576,
-0.029185891151428223,
0.01870935782790184,
0.02171274833381176,
-0.030316580086946487,
-0.04816025495529175,
0.03358497470617294,
-0.0449095256626606,
-0.013912766240537167,
-0.007901567965745926,
-0.05826577916741371,
0.03360264375805855,
-0.0036548615898936987,
-0.1387919932603836,
-0.0025926330126821995,
0.029503896832466125,
0.014707781374454498,
0.06893665343523026,
0.03384998068213463,
0.0224547628313303,
-0.07603878527879715,
-0.013391589745879173,
0.03183594346046448,
0.020158052444458008,
-0.013877431862056255,
-0.0022613764740526676,
0.017940843477845192,
-0.041517458856105804,
0.004025868605822325,
0.0312882661819458,
-0.005644607823342085,
0.015352627262473106,
-0.008873253129422665,
0.028885552659630775,
0.042118139564991,
0.03738338127732277,
0.01486678421497345,
0.02688918076455593,
-0.02701284922659397,
0.006360121536999941,
-0.013806764036417007,
0.04321349412202835,
0.06377788633108139,
-0.019062697887420654,
0.027560526505112648,
0.02369145303964615,
0.08317625522613525,
0.0003525119391269982,
-0.04441484808921814,
0.03234828636050224,
-0.04618154838681221,
-0.0033611475955694914,
-0.04777158051729202,
-0.10027791559696198,
0.03229528293013573,
0.020370056852698326,
0.022719766944646835,
-0.023779787123203278,
-0.003250728826969862,
0.020264053717255592,
-0.06695794314146042,
0.03261328861117363,
0.031606271862983704,
0.05943180248141289,
-0.006298287305980921,
0.0015348209999501705,
0.022472430020570755,
0.03022824414074421,
-0.005989114288240671,
0.04137612506747246,
0.02635917067527771,
-0.009610850363969803,
0.08388293534517288,
-0.0083609102293849,
0.011775058694183826,
0.0019522040383890271,
0.022596098482608795,
0.0823989063501358,
-0.023426447063684464,
0.007155136670917273,
-0.016439147293567657,
-0.03333763778209686,
0.004553670529276133,
0.11547154188156128,
-0.04823092371225357,
0.0024424633011221886,
0.01641264744102955,
-0.032913628965616226,
-0.04091678187251091,
-0.04854892939329147,
0.027118852362036705,
0.002510922960937023,
-0.02620016783475876,
-0.038054727017879486,
-0.04565154016017914,
0.0272601880133152,
-0.01305591594427824,
0.039503421634435654,
-0.0011036356445401907,
-0.05929046869277954,
-0.04872559756040573,
-0.017481500282883644,
0.07158669829368591,
-0.002340878127142787,
-0.01957504078745842,
-0.012464071623980999,
0.012146065942943096,
-0.02150074392557144,
-0.0028200955130159855,
-0.016430314630270004,
-0.038796741515398026,
0.08564963936805725,
-0.03515733778476715,
0.05921979993581772,
0.04324882850050926,
0.006302703637629747,
-0.009822854772210121,
-0.03773672133684158,
-0.004226830787956715,
-0.005918446462601423,
-0.04197680205106735,
-0.003442857414484024,
-0.04975028336048126,
-0.0526476725935936,
-0.021324073895812035,
-0.04172946512699127,
0.040563441812992096,
0.012004729360342026,
-0.015281958505511284,
0.017393166199326515,
-0.011934061534702778,
-0.015167123638093472,
0.019681042060256004,
-0.04540420323610306,
0.04487419128417969,
-0.003288271138444543,
0.018780026584863663,
0.011033044196665287,
-0.00545910419896245,
0.02895621955394745,
-0.009169175289571285,
0.0106885377317667,
0.025405151769518852,
0.033037297427654266,
-0.03688870370388031,
0.009478348307311535,
-0.011271548457443714,
-0.03943275287747383,
-0.04293081909418106,
0.0017556585371494293,
0.00901458878070116,
-0.04844292625784874,
0.02010505087673664,
-0.06858330965042114,
-0.010167361237108707,
-0.09928856790065765,
0.01982237957417965,
-0.005706442520022392,
-0.00721697136759758,
-0.06928998976945877,
0.050103623420000076,
-0.011315716430544853,
-0.02372678741812706,
0.0071242195554077625,
0.012278567999601364,
0.03791339322924614,
-0.019716376438736916,
-0.007813232950866222,
-0.02425679750740528,
-0.04565154016017914,
-0.06674594432115555,
-0.08317625522613525,
-0.009822854772210121,
0.021854083985090256,
0.028814883902668953,
0.01768467202782631,
0.03508666902780533,
-0.017481500282883644,
0.02006971649825573,
-0.04370816797018051,
-0.04639355465769768,
0.009734519757330418,
0.006841547321528196,
-0.0036990290973335505,
0.05144631862640381,
-0.048584263771772385,
0.037560053169727325,
0.03104092739522457,
0.07056201249361038,
-0.001705970149487257,
0.010105526074767113,
0.005300101358443499,
-0.011218547821044922,
0.017702339217066765,
-0.02570549212396145,
0.01969870924949646,
-0.03960942476987839,
0.027171852067112923,
0.04176479950547218,
-0.061375174671411514,
0.016580482944846153,
0.02846154384315014,
0.010185028426349163,
0.006170201115310192,
-0.027790198102593422,
0.04621688276529312,
0.014071769081056118,
-0.0464642234146595,
-0.052365001291036606,
-0.048866935074329376,
0.0610218346118927,
-0.04618154838681221,
-0.05568639934062958,
-0.018232349306344986,
0.00874958373606205,
0.041093453764915466,
0.052365001291036606,
0.03491000086069107,
0.009063173085451126,
0.07455475628376007,
0.04045743867754936,
0.06928998976945877,
-0.06501457840204239,
-0.009186842478811741,
0.09285777807235718,
-0.03169460594654083,
-0.012861579656600952,
0.02003438211977482,
-0.011642555706202984,
-0.025299150496721268,
0.020087383687496185,
-0.009116174653172493,
-0.005609273910522461,
-0.0010202694684267044,
-0.07625079154968262,
0.054838381707668304,
0.034185655415058136,
0.014672446995973587,
0.017278330400586128,
0.004140703938901424,
0.01685432158410549,
-0.03381464630365372,
0.016191810369491577,
0.01159838866442442,
-0.04900826886296272,
0.04013943299651146,
-0.04427351430058479,
-0.0017567627364769578,
0.010238029062747955,
-0.0033788145519793034,
-0.04134079068899155,
0.016933823004364967,
0.02574082463979721,
-0.0343799889087677,
0.018444351851940155,
0.08430694788694382,
0.057629767805337906,
-0.004063411150127649,
0.027613528072834015,
-0.04134079068899155,
-0.0005587190389633179,
0.016218310222029686,
-0.014442776329815388,
0.010865207761526108,
-0.025776159018278122,
0.058124445378780365,
-0.036818038672208786,
0.013444590382277966,
0.011298049241304398,
0.03510433807969093,
0.018638689070940018,
0.007786732167005539,
0.02685384638607502,
0.09116174280643463,
0.009275177493691444,
0.0014012142783030868,
-0.03688870370388031,
0.09144441783428192,
0.043778836727142334,
0.029662899672985077,
-0.00842274446040392,
0.017985010519623756,
-0.03121759742498398,
-0.042259473353624344,
-0.04346083104610443,
0.11172613501548767,
-0.016280144453048706,
-0.004628755152225494,
-0.0715513676404953,
-0.018903695046901703,
-0.02660650946199894,
-0.05240033566951752,
-0.01198706217110157,
0.034397657960653305,
0.026094164699316025,
-0.008533162996172905,
0.0480189174413681,
-0.05953780561685562,
-0.015184789896011353,
0.03208328038454056,
-0.051375649869441986,
-0.06105716899037361,
-0.044591519981622696,
-0.02784319967031479,
-0.0037343630101531744,
0.0306699201464653,
-0.02651817351579666,
-0.02545815333724022,
0.028602879494428635,
-0.01895669661462307,
-0.014857950620353222,
0.0018439935520291328,
-0.035051338374614716,
-0.020140385255217552,
0.028320208191871643,
-0.0016982407541945577,
-0.05052763223648071,
0.02298477292060852,
0.02022871933877468,
-0.030828922986984253,
0.0005785943940281868,
0.04349616542458534,
0.007141886744648218,
-0.0353163406252861,
0.008435994386672974,
-0.0036813621409237385,
0.02056439407169819,
0.0371713787317276,
-0.043531499803066254,
-0.038584738969802856,
0.013727262616157532,
0.027277855202555656,
-0.030369579792022705,
0.0009313824120908976,
0.03946808725595474,
0.035510677844285965,
0.017119327560067177,
0.020900066941976547,
-0.028390876948833466,
-0.024115461856126785,
-0.08458961546421051,
0.08812301605939865,
-0.029662899672985077,
-0.002851012861356139,
0.011836892925202847,
0.027171852067112923,
0.02167741395533085,
-0.005534189287573099,
-0.04172946512699127,
-0.0013923808000981808,
-0.08925370872020721,
-0.002121144672855735,
-0.0272601880133152,
-0.015591131523251534,
-0.006585375871509314,
0.02344411425292492,
-0.020405389368534088,
0.028426209464669228,
-0.012578907422721386,
0.016492148861289024,
-0.02558182179927826,
-0.01620064303278923,
-0.04084611311554909,
-0.03890274465084076,
0.059325799345970154,
-0.0031579770147800446,
-0.03671203553676605,
-0.0218364167958498,
-0.04070477932691574,
0.026465171948075294,
0.029097557067871094,
0.07080935686826706,
0.019257035106420517,
-0.02651817351579666,
0.011006543412804604,
0.014204271137714386,
-0.027489859610795975,
0.025564154610037804,
0.002325419569388032,
-0.006616292987018824,
0.02118273824453354,
0.036252692341804504,
-0.054343704134225845,
-0.0353163406252861,
-0.01299408171325922,
-0.0014277148293331265,
-0.056817084550857544,
0.0041009532287716866,
-0.040528107434511185,
0.03695937246084213,
-0.02155374549329281,
-0.04324882850050926,
0.018073346465826035,
-0.0263238362967968,
0.036994706839323044,
-0.03248962014913559,
0.011192047037184238,
0.0019908505491912365,
-0.07448408752679825,
-0.020016716793179512,
-0.058124445378780365,
-0.04006876423954964,
-0.006872464902698994,
0.05063363537192345,
0.05321301892399788,
-0.0371713787317276,
-0.019257035106420517,
0.06395455449819565,
0.032259948551654816,
-0.04063411056995392,
-0.046358220279216766,
-0.044061508029699326,
-0.04692356288433075,
-0.0030608084052801132,
-0.0012311693280935287,
0.03240128606557846,
0.019628042355179787,
-0.050386298447847366,
-0.022560764104127884,
-0.01519362349063158,
0.0439908392727375,
0.011730890721082687,
-0.003014432732015848,
-0.037065375596284866,
0.028408542275428772,
-0.026182500645518303,
0.025917494669556618,
-0.019433705136179924,
0.00042676858720369637,
-0.06822997331619263,
-0.01879769191145897,
0.005609273910522461,
-0.023090774193406105,
0.007146303076297045,
0.0504922978579998,
0.014946285635232925,
-0.035387009382247925,
0.003036516485735774,
0.03922075033187866,
-0.06310653686523438,
0.0038845324888825417,
0.020087383687496185,
-0.01696915738284588,
0.007623312529176474,
-0.014045268297195435,
0.06045648828148842,
0.020370056852698326,
-0.08706299960613251,
0.011589555069804192,
0.021659746766090393,
-0.02286110445857048,
0.022560764104127884,
-0.021977754309773445,
0.01728716306388378,
0.01830301620066166,
-0.03241895139217377,
0.009381179697811604,
0.04639355465769768,
-0.050068289041519165,
0.011200880631804466,
-0.026041164994239807,
0.0083609102293849,
0.05194099247455597,
0.021271074190735817,
0.009469514712691307,
0.005074847023934126,
-0.04791291430592537,
-0.0014729865361005068,
0.04671156033873558,
-0.042012136429548264,
0.029786569997668266,
0.061092499643564224,
-0.0721873790025711,
0.06992600113153458,
-0.0449095256626606,
0.015476295724511147,
-0.013753763400018215,
0.023991791531443596,
0.021129736676812172,
0.031058594584465027,
-0.008365326561033726,
0.007349473889917135,
-0.046110883355140686,
-0.05300101265311241,
0.01149238646030426,
0.018992029130458832,
0.04752424359321594,
-0.05476771295070648,
0.002376212039962411,
0.007671896833926439,
0.010697371326386929
] |
17,545 | imodels.discretization.mdlp | __init__ |
initializes discretizer object:
saves raw copy of data and creates self._data with only features to discretize and class
computes initial entropy (before any splitting)
self._features = features to be discretized
self._classes = unique classes in raw_data
self._class_name = label of class in pandas dataframe
self._data = partition of data with only features of interest and class
self._cuts = dictionary with cut points for each feature
Params
------
dataset
pandas dataframe with data to discretize
class_label
name of the column containing class in input dataframe
features
if !None, features that the user wants to discretize specifically
| def __init__(self, dataset, class_label, out_path_data=None, out_path_bins=None, features=None):
'''
initializes discretizer object:
saves raw copy of data and creates self._data with only features to discretize and class
computes initial entropy (before any splitting)
self._features = features to be discretized
self._classes = unique classes in raw_data
self._class_name = label of class in pandas dataframe
self._data = partition of data with only features of interest and class
self._cuts = dictionary with cut points for each feature
Params
------
dataset
pandas dataframe with data to discretize
class_label
name of the column containing class in input dataframe
features
if !None, features that the user wants to discretize specifically
'''
if not isinstance(dataset, pd.core.frame.DataFrame): # class needs a pandas dataframe
raise AttributeError('input dataset should be a pandas data frame')
self._data_raw = dataset # copy or original input data
self._class_name = class_label
self._classes = self._data_raw[self._class_name] # .unique()
self._classes.drop_duplicates()
# if user specifies which attributes to discretize
if features:
self._features = [f for f in features if f in self._data_raw.columns] # check if features in dataframe
missing = set(features) - set(self._features) # specified columns not in dataframe
if missing:
print('WARNING: user-specified features %s not in input dataframe' % str(missing))
else: # then we need to recognize which features are numeric
numeric_cols = self._data_raw._data.get_numeric_data().items
self._features = [f for f in numeric_cols if f != class_label]
# other features that won't be discretized
self._ignored_features = set(self._data_raw.columns) - set(self._features)
# create copy of data only including features to discretize and class
self._data = self._data_raw.loc[:, self._features + [class_label]]
self._data = self._data.infer_objects() # convert_objects(convert_numeric=True)
# pre-compute all boundary points in dataset
self._boundaries = self._compute_boundary_points_all_features()
# initialize feature bins with empty arrays
self._cuts = {f: [] for f in self._features}
# get cuts for all features
self._all_features_accepted_cutpoints()
# discretize self._data
self._apply_cutpoints(out_data_path=out_path_data, out_bins_path=out_path_bins)
| (self, dataset, class_label, out_path_data=None, out_path_bins=None, features=None) | [
-0.0004086761036887765,
-0.03435181826353073,
0.052899956703186035,
0.00896094273775816,
-0.016162851825356483,
-0.05595754459500313,
0.009449051693081856,
0.018041610717773438,
0.02825506031513214,
-0.030060142278671265,
-0.056841667741537094,
0.021955691277980804,
-0.026228947564959526,
-0.02147679217159748,
-0.03269409015774727,
0.014753783121705055,
-0.028660282492637634,
0.0484793484210968,
0.021495211869478226,
-0.004798202775418758,
-0.03260199353098869,
-0.0029217463452368975,
-0.02606317400932312,
0.01301316823810339,
0.0022436894942075014,
0.03083374910056591,
0.03779620677232742,
-0.01572079211473465,
-0.0020617996342480183,
-0.017562711611390114,
-0.02928653545677662,
0.027076231315732002,
-0.037667274475097656,
0.015297149308025837,
0.011751452460885048,
-0.057983655482530594,
0.06015712395310402,
0.015214263461530209,
-0.020426897332072258,
0.06166749820113182,
-0.06656700372695923,
-0.057062696665525436,
-0.05385775491595268,
-0.0314415842294693,
-0.021311020478606224,
0.05901513248682022,
-0.001855734852142632,
-0.027223585173487663,
-0.0386434905230999,
-0.027168327942490578,
-0.046305879950523376,
-0.06461457163095474,
0.033430855721235275,
0.039638128131628036,
-0.044942859560251236,
0.06015712395310402,
0.04822148010134697,
0.021697822958230972,
-0.02212146483361721,
0.007901838980615139,
-0.02193727344274521,
0.03053904138505459,
0.02057425118982792,
-0.03628583252429962,
0.007445963565260172,
0.02326345629990101,
-0.08089714497327805,
0.040816958993673325,
-0.01545371301472187,
0.0221583042293787,
0.017700856551527977,
-0.05603121966123581,
0.024442285299301147,
0.0723506361246109,
0.026228947564959526,
-0.002201094990596175,
-0.03930658474564552,
-0.054005108773708344,
0.04958450049161911,
-0.022968748584389687,
0.014541962184011936,
-0.011410697363317013,
0.014265674166381359,
-0.03670947626233101,
0.02079528197646141,
-0.02223198115825653,
0.04420609027147293,
0.025897402316331863,
-0.02398180402815342,
-0.0037183770909905434,
-0.034536007791757584,
0.05116854980587959,
0.038311947137117386,
0.044648151844739914,
0.022139884531497955,
0.04678478091955185,
-0.034720201045274734,
-0.0026316437870264053,
0.02692887745797634,
-0.032749347388744354,
0.051426418125629425,
0.03402027115225792,
0.05728372558951378,
0.06310419738292694,
-0.02958124317228794,
-0.034572847187519073,
0.010121352970600128,
0.016033917665481567,
-0.09246440976858139,
-0.014864298515021801,
-0.0511317141354084,
0.048663537949323654,
0.01716669835150242,
0.016448350623250008,
-0.022489849478006363,
-0.0905488133430481,
-0.01227639988064766,
0.031110037118196487,
-0.05522077530622482,
-0.0181889645755291,
-0.038127753883600235,
-0.004563358146697283,
-0.021163666620850563,
0.04814780130982399,
-0.044979698956012726,
0.016522027552127838,
0.03184680640697479,
0.03742782399058342,
-0.01303158700466156,
-0.024368608370423317,
0.05120538920164108,
-0.03212309256196022,
-0.03720679506659508,
0.056952182203531265,
0.04302726313471794,
-0.05724688991904259,
-0.008947128430008888,
0.056989021599292755,
0.026449978351593018,
-0.006446721497923136,
0.0890015959739685,
-0.04700580984354019,
0.029268115758895874,
0.001628948375582695,
0.03464652597904205,
0.03444391489028931,
0.008850428275763988,
-0.043542999774217606,
-0.052752602845430374,
-0.030483784154057503,
-0.04947398602962494,
0.019561195746064186,
0.02412915788590908,
-0.026376301422715187,
0.018161335960030556,
-0.011622518301010132,
-0.015601066872477531,
-0.06048866733908653,
-0.023134522140026093,
0.0019535869359970093,
-0.039453938603401184,
-0.038311947137117386,
-0.006262529641389847,
0.0011845851549878716,
-0.052936796098947525,
0.0038726378697901964,
0.028402414172887802,
-0.06336206197738647,
-0.008053797297179699,
0.05220002681016922,
0.03223360702395439,
-0.01746140606701374,
-0.011208086274564266,
0.04678478091955185,
-0.04862670227885246,
0.09570618718862534,
0.04048541188240051,
-0.012746090069413185,
0.016982506960630417,
0.07934993505477905,
0.03140474483370781,
-0.033707145601511,
-0.03838562220335007,
0.005392222199589014,
-0.0014090691693127155,
-0.00570074375718832,
0.021145246922969818,
-0.022710880264639854,
0.008707678876817226,
0.03856981545686722,
0.03530961647629738,
-0.012221142649650574,
-0.03871716931462288,
0.016982506960630417,
0.06384096294641495,
-0.04306410253047943,
-0.04100114852190018,
0.014145948924124241,
-0.025510597974061966,
0.03129423037171364,
0.006419092882424593,
0.027168327942490578,
0.06877730786800385,
-0.04542176052927971,
-0.003140474436804652,
0.001303158700466156,
-0.01871391199529171,
0.053968269377946854,
-0.022176722064614296,
-0.021237343549728394,
-0.015822097659111023,
-0.03173628821969032,
0.028733959421515465,
0.037667274475097656,
0.07246115058660507,
-0.025013281032443047,
0.052752602845430374,
-0.024294931441545486,
-0.0043906779028475285,
-0.004715316463261843,
0.0036838408559560776,
0.0038150777108967304,
-0.018971780315041542,
0.0776553675532341,
-0.01939542219042778,
-0.026689426973462105,
0.03856981545686722,
0.0022275724913924932,
0.08045508712530136,
-0.042143139988183975,
-0.0522737018764019,
-0.05628909170627594,
-0.012248771265149117,
-0.0009543450432829559,
0.02678152360022068,
0.03378082066774368,
0.029010247439146042,
0.036617379635572433,
-0.0221583042293787,
0.019119134172797203,
-0.030060142278671265,
-0.016761476173996925,
-0.02818138338625431,
-0.04667426645755768,
-0.027849838137626648,
0.004268650896847248,
0.04155372455716133,
0.039453938603401184,
0.019063876941800117,
0.0035364872310310602,
-0.021789919584989548,
-0.05212634801864624,
-0.03424130007624626,
-0.0014815947506576777,
0.02298716828227043,
-0.07408203929662704,
-0.034112367779016495,
-0.022968748584389687,
0.02053741365671158,
-0.007063765078783035,
-0.03241780027747154,
0.00448047136887908,
0.020426897332072258,
0.10830492526292801,
-0.052936796098947525,
0.010305545292794704,
0.015122166834771633,
-0.020776862278580666,
0.026836780831217766,
-0.04645323380827904,
0.016522027552127838,
0.0905488133430481,
-0.028494510799646378,
0.01140148751437664,
-0.028420833870768547,
0.001250203582458198,
-0.035549066960811615,
-0.06490927934646606,
-0.03232570365071297,
0.01932174526154995,
0.04597433656454086,
-0.035659581422805786,
-0.01844683289527893,
0.0033292712178081274,
-0.0033315736800432205,
0.0013676260132342577,
-0.046305879950523376,
-0.005198820494115353,
0.009407608769834042,
-0.007353867404162884,
-0.06413567066192627,
0.05853623151779175,
0.04932663217186928,
0.028881313279271126,
0.056952182203531265,
-0.02007693238556385,
-0.031110037118196487,
-0.06052550673484802,
-0.016033917665481567,
-0.011889596469700336,
-0.023576581850647926,
-0.033044055104255676,
0.026763103902339935,
-0.0013250315096229315,
-0.03890135884284973,
-0.06697222590446472,
0.04369035363197327,
-0.000621072540525347,
0.016687799245119095,
0.04008018970489502,
0.07408203929662704,
0.031128456816077232,
0.031165294349193573,
0.0000157300728460541,
-0.016310205683112144,
-0.0450902134180069,
0.01806923933327198,
0.0007350413943640888,
0.011115990579128265,
0.06568288803100586,
-0.04177475720643997,
-0.01494718436151743,
-0.01799556240439415,
0.017221957445144653,
0.021274181082844734,
0.028126126155257225,
0.02591582201421261,
-0.018354738131165504,
0.0012409939663484693,
0.017268003895878792,
-0.028549768030643463,
0.012414543889462948,
0.027591967955231667,
0.012792137451469898,
0.012525059282779694,
-0.008118264377117157,
0.02420283481478691,
-0.019598033279180527,
-0.017175909131765366,
-0.017129860818386078,
-0.02000325731933117,
0.05223686620593071,
-0.023723935708403587,
0.03974864259362221,
-0.012377705425024033,
-0.018769169226288795,
0.01007530465722084,
-0.046968974173069,
-0.009577986784279346,
0.08494937419891357,
-0.006253320258110762,
-0.013924919068813324,
0.019598033279180527,
0.04055909067392349,
0.07721330970525742,
-0.022342495620250702,
0.01674305647611618,
-0.00651579350233078,
-0.0028480696491897106,
-0.07128231972455978,
0.09445368498563766,
-0.009937160648405552,
-0.003932500258088112,
-0.00022822545724920928,
0.010213448666036129,
-0.016356253996491432,
-0.04652691259980202,
0.014541962184011936,
-0.02129260078072548,
0.008058401755988598,
-0.011677775532007217,
-0.03665421903133392,
-0.017516663298010826,
-0.044648151844739914,
0.02151363156735897,
-0.010701557621359825,
-0.05665747448801994,
-0.022139884531497955,
-0.012746090069413185,
0.08929630368947983,
-0.03381766006350517,
0.030778491869568825,
-0.00009511792450211942,
0.025050118565559387,
-0.034112367779016495,
-0.037059441208839417,
-0.02488434500992298,
-0.014090691693127155,
0.11117832362651825,
-0.011714613996446133,
-0.006672356743365526,
-0.003941709641367197,
0.021311020478606224,
-0.022637203335762024,
-0.016070757061243057,
-0.04571646824479103,
0.012552687898278236,
0.017562711611390114,
0.031920481473207474,
-0.018953362479805946,
-0.06443037837743759,
-0.009780597873032093,
0.020205868408083916,
0.06483560055494308,
0.027094651013612747,
0.021642565727233887,
0.0412958562374115,
-0.030281173065304756,
0.015011652372777462,
-0.005350778810679913,
0.016356253996491432,
0.06306735426187515,
0.051389582455158234,
0.03254673629999161,
-0.014726154506206512,
0.01697329804301262,
-0.023631839081645012,
0.006907201837748289,
0.024718573316931725,
0.002995423274114728,
-0.005815864074975252,
0.028402414172887802,
0.005604043137282133,
0.0010418362217023969,
-0.014007804915308952,
-0.01765480823814869,
-0.0015207355609163642,
-0.016153642907738686,
0.0012951003154739738,
-0.006971668917685747,
-0.09865326434373856,
0.039453938603401184,
-0.10572623461484909,
0.021421534940600395,
0.021182086318731308,
-0.006861153990030289,
-0.03720679506659508,
0.030925845727324486,
-0.016733847558498383,
0.009918741881847382,
-0.036801572889089584,
-0.031349487602710724,
0.03834878280758858,
-0.029176020994782448,
-0.009568776935338974,
-0.044869184494018555,
-0.003108240896835923,
-0.010867331176996231,
-0.014928765594959259,
-0.04240100830793381,
0.027555130422115326,
-0.05378407984972,
0.007151256315410137,
0.013814403675496578,
-0.024479122832417488,
0.01681673340499401,
-0.012248771265149117,
-0.007040740922093391,
0.043579839169979095,
0.0168535728007555,
-0.06387780606746674,
0.012875024229288101,
-0.021808339282870293,
0.05205267295241356,
-0.010038466192781925,
0.05592070519924164,
0.030502203851938248,
0.010029257275164127,
-0.02094263583421707,
-0.02022428624331951,
0.05617857351899147,
-0.0039025689475238323,
0.04107482731342316,
-0.02086895890533924,
-0.028310317546129227,
0.05315782502293587,
-0.013197360560297966,
0.008564930409193039,
-0.004703804384917021,
-0.023650258779525757,
0.05385775491595268,
-0.00820115115493536,
0.02061109058558941,
-0.0023553557693958282,
-0.028199803084135056,
-0.010600252076983452,
-0.0004981819074600935,
0.010112143121659756,
0.0018281061202287674,
-0.018769169226288795,
-0.005309335887432098,
0.019984837621450424,
0.0009376526577398181,
0.035401713103055954,
0.046269044280052185,
0.05238422006368637,
0.03492281213402748,
0.03904871270060539,
0.04855302348732948,
-0.04693213477730751,
-0.01095021702349186,
0.05518393591046333,
-0.056841667741537094,
-0.029028667137026787,
0.04450079798698425,
0.009449051693081856,
-0.03394659608602524,
0.04781625419855118,
-0.027407776564359665,
0.009725339710712433,
-0.03208625316619873,
-0.06645648926496506,
0.06973510980606079,
0.03628583252429962,
0.016107594594359398,
0.02068476751446724,
-0.042179979383945465,
0.02276613749563694,
-0.04858986288309097,
0.08870688825845718,
0.001442453940398991,
-0.0009226870606653392,
0.0020169029012322426,
-0.005562599748373032,
-0.011355440132319927,
0.04450079798698425,
0.0757397711277008,
0.004425214137881994,
0.07334527373313904,
0.032178349792957306,
-0.03890135884284973,
-0.03262041136622429,
0.03405711054801941,
0.07330843806266785,
0.0003568721003830433,
0.04667426645755768,
-0.009347746148705482,
0.001209911541081965,
0.06369361281394958,
-0.03245463967323303,
-0.010038466192781925,
0.015407664701342583,
0.0526420883834362,
0.004052225034683943,
0.010038466192781925,
-0.027812998741865158,
-0.0013054611627012491,
0.028439251706004143,
0.014247255399823189,
0.007492011412978172,
0.03643318638205528,
0.0019294116646051407,
0.007395310793071985,
0.010830492712557316,
0.07036136090755463,
0.027242004871368408,
0.016347045078873634,
0.03871716931462288,
0.028494510799646378,
0.008288642391562462,
-0.060820214450359344,
-0.013851242139935493,
0.10705241560935974,
-0.052973631769418716,
-0.017479825764894485,
-0.03530961647629738,
-0.01692724972963333,
0.03280460461974144,
-0.07603447884321213,
-0.040595926344394684,
0.00580665422603488,
0.019911160692572594,
-0.025786885991692543,
0.09143293648958206,
-0.08811747282743454,
0.0450902134180069,
0.010655510239303112,
0.008680050261318684,
-0.05525761470198631,
-0.04840566962957382,
-0.015941821038722992,
0.002838860033079982,
-0.003854218637570739,
-0.044648151844739914,
-0.06958775222301483,
-0.04424292966723442,
-0.031349487602710724,
-0.024515962228178978,
-0.029691757634282112,
-0.023152939975261688,
0.003720679320394993,
-0.003349992912262678,
0.007957096211612225,
-0.029599662870168686,
0.000402920093620196,
-0.0011022742837667465,
-0.017295632511377335,
-0.03068639524281025,
0.023466067388653755,
0.004155833274126053,
-0.034572847187519073,
-0.00684733921661973,
-0.02057425118982792,
0.02330029383301735,
0.060967568308115005,
-0.05978873744606972,
-0.03140474483370781,
-0.0195059385150671,
-0.03650686517357826,
-0.0617411732673645,
-0.00687496829777956,
0.07817110419273376,
0.051500096917152405,
0.04033805802464485,
-0.02387128956615925,
0.004291674587875605,
0.0024796854704618454,
-0.07544506341218948,
0.028918150812387466,
-0.03322824463248253,
-0.01689041033387184,
-0.05245789512991905,
0.029820691794157028,
0.009725339710712433,
-0.034001853317022324,
-0.05761527270078659,
-0.028586605563759804,
-0.044795505702495575,
-0.016236528754234314,
-0.007666993886232376,
-0.003580232849344611,
-0.05588386580348015,
0.024368608370423317,
-0.013206569477915764,
0.011530422605574131,
0.03420446440577507,
-0.014440656639635563,
0.03420446440577507,
-0.014569590799510479,
-0.0009877298725768924,
0.008776751346886158,
-0.025215892121195793,
-0.004830436315387487,
-0.008841218426823616,
-0.017792951315641403,
-0.11095728725194931,
0.010535784997045994,
0.011125199496746063,
0.046195365488529205,
0.014210416935384274,
-0.046084851026535034,
0.04737419635057449,
-0.009237231686711311,
-0.031349487602710724,
-0.012976329773664474,
-0.011751452460885048,
-0.020297963172197342,
0.01697329804301262,
0.011594889685511589,
-0.033707145601511,
-0.04044857248663902,
0.02939705178141594,
0.04030121862888336,
-0.04295358434319496,
-0.0061612240970134735,
-0.013906499370932579,
0.005033047869801521,
-0.028236640617251396,
-0.02061109058558941,
0.021089989691972733,
-0.030096979811787605,
0.04523756727576256,
-0.030502203851938248,
-0.024829087778925896,
-0.05315782502293587,
-0.07168754190206528,
-0.018400786444544792,
-0.04906876012682915,
0.0050698863342404366,
0.01859418675303459,
0.011493584141135216,
0.04928979277610779,
-0.008214965462684631,
-0.017221957445144653,
0.046968974173069,
0.01270925160497427,
-0.03875400871038437,
-0.06995613873004913,
-0.033283501863479614,
0.006239505484700203,
0.023024005815386772,
0.022489849478006363,
0.047484710812568665,
-0.040743280202150345,
-0.03982232138514519,
0.0061612240970134735,
-0.04041173681616783,
-0.041995786130428314,
0.013740726746618748,
0.0035641160793602467,
-0.0022241189144551754,
0.02212146483361721,
-0.042327333241701126,
0.036267414689064026,
0.010498946532607079,
0.02265562117099762,
-0.0590888075530529,
0.039674967527389526,
0.022508269175887108,
0.018474463373422623,
0.03464652597904205,
0.07478196918964386,
0.02004009485244751,
0.01464326772838831,
-0.03868032991886139,
0.0674511268734932,
-0.034867554903030396,
0.002251747762784362,
-0.016420722007751465,
-0.02261878363788128,
0.0579468198120594,
-0.023502904921770096,
0.06070969998836517,
0.0628831684589386,
-0.047558385878801346,
0.012690831907093525,
0.009048433974385262,
-0.034683361649513245,
0.0492529533803463,
-0.026468398049473763,
0.03212309256196022,
0.044869184494018555,
-0.046232204884290695,
0.0069854832254350185,
-0.031994160264730453,
-0.04542176052927971,
0.05245789512991905,
-0.034112367779016495,
0.029452309012413025,
0.06446721404790878,
-0.02950756624341011,
-0.05326833948493004,
0.02427651174366474,
0.03542013093829155,
-0.015941821038722992,
0.004533426836133003,
0.014588010497391224,
0.03193890303373337,
0.05201583355665207,
-0.021624146029353142,
0.03464652597904205,
-0.01062788162380457,
-0.009297093376517296,
-0.009421423077583313,
0.040595926344394684,
-0.016190480440855026,
0.02272929809987545,
-0.006207271944731474,
0.02886289358139038,
-0.0484793484210968,
0.007671598810702562,
-0.03923290595412254,
0.008113659918308258,
0.00572837283834815,
0.017433777451515198,
0.06369361281394958,
0.029562823474407196,
-0.031496841460466385
] |
17,546 | imodels.discretization.mdlp | _all_features_accepted_cutpoints |
Computes cut points for all numeric features (the ones in self._features)
:return:
| def _all_features_accepted_cutpoints(self):
'''
Computes cut points for all numeric features (the ones in self._features)
:return:
'''
for attr in self._features:
self._single_feature_accepted_cutpoints(feature=attr)
return
| (self) | [
-0.030574241653084755,
-0.015295881778001785,
0.013859154656529427,
0.005265077110379934,
-0.04345221817493439,
-0.027578141540288925,
0.0439077652990818,
-0.05620754510164261,
0.025633303448557854,
0.04772735387086868,
-0.0670706033706665,
-0.014577518217265606,
-0.02221669815480709,
-0.02265472523868084,
-0.053123839199543,
0.011371164582669735,
0.006329481024295092,
-0.015479852445423603,
0.019851354882121086,
0.004599276930093765,
-0.04877861961722374,
-0.025247840210795403,
-0.030188778415322304,
0.00024816932273097336,
-0.011669022962450981,
0.04387272149324417,
0.052317872643470764,
-0.020061608403921127,
-0.022023966535925865,
-0.017170634120702744,
-0.08129769563674927,
0.0012888925848528743,
-0.00981179066002369,
-0.022987624630331993,
-0.03167806938290596,
-0.05792460963129997,
0.046676091849803925,
0.01962358132004738,
0.06416210532188416,
0.07302775979042053,
-0.015330923721194267,
-0.016785170882940292,
-0.08725485950708389,
-0.01681145280599594,
-0.022514555603265762,
0.009303680621087551,
0.020412029698491096,
0.04821794480085373,
-0.026877298951148987,
-0.02318035624921322,
-0.06615950167179108,
-0.06328605115413666,
0.053228966891765594,
0.049023911356925964,
-0.003453837940469384,
0.02291754074394703,
0.03844119608402252,
0.013946760445833206,
-0.014043126255273819,
0.004270757082849741,
-0.006412706337869167,
0.042506080120801926,
0.02747301571071148,
-0.053754597902297974,
0.026264062151312828,
-0.04348725825548172,
-0.06517832726240158,
0.059571586549282074,
-0.015672583132982254,
0.057293850928545,
-0.010214774869382381,
-0.04292658716440201,
0.029452893882989883,
0.03805573284626007,
-0.02021929807960987,
-0.02838410995900631,
0.03442887216806412,
0.0010091032600030303,
0.011765388771891594,
-0.004058314487338066,
0.022111572325229645,
0.01818685606122017,
0.0008749577100388706,
0.016294581815600395,
0.0182744599878788,
-0.02503758855164051,
0.021585939452052116,
0.012203414924442768,
-0.007196773309260607,
0.048848703503608704,
-0.012124570086598396,
0.040298428386449814,
0.016855254769325256,
-0.0011114919325336814,
0.017293281853199005,
0.07849432528018951,
-0.05280845984816551,
-0.01102074421942234,
-0.008015883155167103,
-0.053614430129528046,
0.014743967913091183,
0.06584412604570389,
0.016732607036828995,
0.05259820818901062,
0.021550897508859634,
0.016618721187114716,
0.01763494312763214,
-0.04881365969777107,
-0.05694343149662018,
0.034516479820013046,
-0.03693438321352005,
0.045204322785139084,
0.04201548919081688,
0.004205053206533194,
-0.05154694616794586,
-0.07148590683937073,
-0.017240718007087708,
0.019518455490469933,
-0.037775393575429916,
0.014165773056447506,
-0.027367888018488884,
-0.017056748270988464,
0.034569043666124344,
-0.0065922969952225685,
-0.03689934313297272,
0.05063584819436073,
0.03399084880948067,
0.07449952512979507,
-0.02668456733226776,
-0.04033346846699715,
0.044643647968769073,
-0.013394846580922604,
-0.01627705991268158,
0.04944441840052605,
0.0027639465406537056,
-0.07520037144422531,
0.002669770736247301,
-0.016846494749188423,
0.08347030729055405,
-0.020079130306839943,
0.030136214569211006,
-0.014989262446761131,
0.017871476709842682,
0.012422428466379642,
-0.023705987259745598,
0.02186627686023712,
0.00508986646309495,
-0.022970102727413177,
-0.04513423889875412,
-0.058660492300987244,
-0.00815605092793703,
0.0756208747625351,
-0.020254340022802353,
-0.05046064034104347,
0.038476236164569855,
0.024144014343619347,
0.049759797751903534,
-0.053964849561452866,
-0.0033005287405103445,
-0.028489235788583755,
-0.055576786398887634,
-0.016531115397810936,
-0.032396432012319565,
0.006482790689915419,
-0.02794608287513256,
0.017994124442338943,
-0.021533377468585968,
-0.03980783745646477,
-0.016531115397810936,
0.058695536106824875,
0.043942805379629135,
0.021988924592733383,
-0.003996990621089935,
0.05694343149662018,
0.0373198464512825,
0.04317187890410423,
0.00871234480291605,
-0.027157636359333992,
0.028191378340125084,
0.06184932589530945,
0.057574186474084854,
-0.07029447704553604,
-0.03917707875370979,
-0.002711383393034339,
0.02482733502984047,
-0.05519132316112518,
0.009154751896858215,
-0.026702089235186577,
-0.06668514013290405,
0.00824365671724081,
0.00844952929764986,
-0.035953205078840256,
-0.018291981890797615,
0.02817385643720627,
-0.0051862322725355625,
0.006272537633776665,
-0.039071954786777496,
0.027315326035022736,
-0.043592385947704315,
-0.02873453125357628,
-0.045589786022901535,
-0.01930820383131504,
0.024249140173196793,
-0.009759227745234966,
0.019027866423130035,
0.009207314811646938,
-0.046886343508958817,
0.03507715463638306,
-0.008944498375058174,
-0.007310660555958748,
0.0028427911456674337,
-0.014314701780676842,
0.03605833277106285,
0.02791104093194008,
0.02855931967496872,
-0.01922059804201126,
0.013044425286352634,
-0.04537953436374664,
-0.02812129445374012,
0.005922116804867983,
-0.012308541685342789,
-0.042120616883039474,
0.04001808911561966,
0.03826598450541496,
0.02847171574831009,
0.027665747329592705,
0.07176624238491058,
0.026754651218652725,
0.027017466723918915,
-0.03427118435502052,
-0.003983850125223398,
-0.05406997725367546,
-0.031572941690683365,
-0.010162211954593658,
-0.01839710772037506,
0.024582041427493095,
0.014446110464632511,
0.019238118082284927,
-0.012185893952846527,
-0.007731165736913681,
-0.026193978264927864,
-0.01944837160408497,
-0.015882836654782295,
0.002385053550824523,
-0.02964562550187111,
0.009443848393857479,
-0.005584836471825838,
0.025020066648721695,
0.030363988131284714,
0.035304926335811615,
0.01618945598602295,
-0.04993500933051109,
-0.05406997725367546,
-0.00871234480291605,
-0.028103772550821304,
-0.11150399595499039,
-0.039422374218702316,
0.024599561467766762,
0.024371787905693054,
0.00545780872926116,
0.019465891644358635,
0.057048555463552475,
-0.006259397137910128,
0.08431132137775421,
-0.032361388206481934,
0.012790370732545853,
0.04534449055790901,
-0.015935400500893593,
0.01473520789295435,
-0.023057708516716957,
0.07863449305295944,
0.030363988131284714,
-0.008142910897731781,
0.01695162057876587,
-0.052493080496788025,
0.005847652442753315,
0.010013283230364323,
0.02638670988380909,
-0.02729780413210392,
-0.018169334158301353,
0.06114848330616951,
-0.0033005287405103445,
-0.029715709388256073,
0.02764822542667389,
-0.05484090372920036,
0.012483752332627773,
0.003088085912168026,
-0.008484571240842342,
-0.007218674756586552,
-0.017179394140839577,
-0.03924716264009476,
0.02664952538907528,
0.09987001866102219,
-0.010661561973392963,
0.07456961274147034,
-0.008042164146900177,
-0.002625968074426055,
-0.08073702454566956,
0.02062228135764599,
0.02521279826760292,
0.0323263481259346,
-0.03879161551594734,
-0.009785509668290615,
-0.0051336693577468395,
0.028051210567355156,
-0.02841915190219879,
0.036093372851610184,
-0.0007282188744284213,
0.01134488359093666,
0.017293281853199005,
0.05463065207004547,
-0.01683773472905159,
0.01024105679243803,
-0.040859099477529526,
0.018379587680101395,
-0.04075397551059723,
0.03378059342503548,
-0.019588539376854897,
0.003405655035749078,
0.026018766686320305,
-0.0068507324904203415,
0.006027243100106716,
0.011099588125944138,
0.021200476214289665,
-0.006215594243258238,
-0.0007742116576991975,
-0.0072580971755087376,
-0.03602328896522522,
-0.05165207013487816,
-0.03262420371174812,
-0.05018030107021332,
0.03710959479212761,
0.03346521407365799,
0.06538857519626617,
-0.017941560596227646,
0.046115417033433914,
0.013053186237812042,
0.0413847342133522,
-0.03307975083589554,
-0.028401629999279976,
0.002715763635933399,
0.03329000622034073,
-0.009557736106216908,
0.03425366431474686,
-0.03980783745646477,
0.031187478452920914,
-0.003694752464070916,
0.004857712425291538,
0.014314701780676842,
-0.00136664230376482,
-0.009899396449327469,
-0.09356243908405304,
0.03619850054383278,
0.04769231379032135,
0.030434073880314827,
0.02156841941177845,
-0.004419686272740364,
-0.024161536246538162,
0.016049286350607872,
-0.04057876393198967,
0.1322489231824875,
-0.02368846721947193,
0.006688662804663181,
0.005922116804867983,
-0.0009565401123836637,
0.01497174147516489,
0.05368451401591301,
0.017328323796391487,
-0.03059176355600357,
-0.0365489199757576,
0.0053570629097521305,
-0.01733708381652832,
-0.04695642739534378,
-0.020639803260564804,
-0.021638503298163414,
-0.027788393199443817,
-0.018239418044686317,
-0.020412029698491096,
-0.028016166761517525,
0.08830612152814865,
-0.021463293582201004,
0.02104278840124607,
-0.0046868822537362576,
-0.011949359439313412,
-0.01542728953063488,
-0.0448889434337616,
-0.06857740879058838,
-0.015094389207661152,
0.051757197827100754,
0.002367532579228282,
0.01566382311284542,
-0.023618383333086967,
-0.022794893011450768,
0.018046686425805092,
0.005431527271866798,
-0.01323715690523386,
0.057083599269390106,
0.010293619707226753,
0.01427965983748436,
0.010845533572137356,
-0.0240388885140419,
0.02156841941177845,
0.007923897355794907,
0.03132764622569084,
0.020990224555134773,
0.022234220057725906,
-0.01710055023431778,
-0.00991691742092371,
0.025493135675787926,
0.002527412259951234,
-0.04187532141804695,
0.08732493966817856,
0.048533324152231216,
0.01438478659838438,
-0.011598939076066017,
0.011318601667881012,
-0.03626858443021774,
0.01406064722687006,
0.009750467725098133,
-0.00132612488232553,
0.0696987584233284,
-0.03462160378694534,
-0.033132314682006836,
0.028699489310383797,
-0.041559942066669464,
-0.010582717135548592,
0.018589839339256287,
-0.04180523753166199,
0.021235520020127296,
0.020324423909187317,
-0.089567631483078,
-0.03710959479212761,
-0.08445148915052414,
-0.028016166761517525,
-0.030714409425854683,
-0.016522355377674103,
-0.07506020367145538,
0.0038787235971540213,
-0.0018167144153267145,
0.01686401665210724,
-0.043977849185466766,
0.0033990847878158092,
0.07330809533596039,
-0.024967504665255547,
0.05918612331151962,
-0.018800092861056328,
-0.001486004563048482,
0.004110877402126789,
-0.08571300655603409,
-0.033219922333955765,
-0.021112872287631035,
-0.07400894165039062,
0.014998023398220539,
-0.00493655726313591,
0.007893235422670841,
0.06787656992673874,
-0.05939637869596481,
-0.021813714876770973,
0.01801164448261261,
0.01892274059355259,
0.016618721187114716,
0.016916578635573387,
-0.0324314720928669,
0.02573843114078045,
0.0042444756254553795,
-0.011309841647744179,
0.018344545736908913,
-0.009820551611483097,
-0.03872153162956238,
0.026877298951148987,
0.05855536833405495,
-0.012028204277157784,
0.031082352623343468,
-0.04821794480085373,
-0.016443509608507156,
0.0647578239440918,
-0.02600124664604664,
-0.01197564136236906,
0.047972649335861206,
-0.024056408554315567,
0.006311960052698851,
-0.033219922333955765,
-0.007801250088959932,
-0.016023004427552223,
-0.03689934313297272,
0.013622620142996311,
-0.07183632999658585,
0.0001977962820092216,
-0.007788109127432108,
-0.004888374358415604,
-0.017012944445014,
-0.0034976406022906303,
0.015681345015764236,
0.00856779608875513,
0.046325668692588806,
-0.01501554436981678,
0.08858645707368851,
0.03728480637073517,
0.053789641708135605,
0.05081105977296829,
-0.020534677430987358,
0.05200249329209328,
-0.061253610998392105,
-0.0012954630656167865,
0.028664447367191315,
-0.004940937738865614,
-0.025966204702854156,
-0.008598458021879196,
-0.03159046173095703,
0.0033005287405103445,
0.02417905628681183,
-0.09279151260852814,
0.027963604778051376,
-0.0009379240218549967,
0.06255016475915909,
-0.0261238943785429,
0.004796389024704695,
-0.014437349513173103,
-0.011791670694947243,
0.0703645572066307,
-0.01957101933658123,
-0.04124456271529198,
0.014568757265806198,
0.008703583851456642,
0.02876957319676876,
0.02386367693543434,
-0.004424066282808781,
-0.003594006411731243,
0.02121799811720848,
0.001546233193948865,
0.043592385947704315,
0.017477253451943398,
0.05599729344248772,
0.049759797751903534,
-0.041980449110269547,
0.03097722679376602,
0.021428251639008522,
-0.07814390957355499,
0.007836291566491127,
0.005729385185986757,
0.0012122379848733544,
-0.0001897201727842912,
0.03598824888467789,
0.021060308441519737,
0.031310126185417175,
-0.01983383484184742,
-0.05119652301073074,
-0.012571357190608978,
0.003348711645230651,
0.0101797329261899,
0.04989996552467346,
0.04254112392663956,
0.013832873664796352,
0.029312726110219955,
0.07477986067533493,
-0.027315326035022736,
0.04912903904914856,
0.010276098735630512,
-0.019851354882121086,
0.010792969726026058,
-0.05463065207004547,
-0.07884474843740463,
0.10456565767526627,
-0.028051210567355156,
-0.04944441840052605,
-0.013964281417429447,
-0.03724976256489754,
0.02629910409450531,
-0.09678631275892258,
0.0023149694316089153,
0.001026076846756041,
0.02065732516348362,
-0.0356728695333004,
-0.004060504492372274,
-0.053088799118995667,
-0.022619683295488358,
-0.0116339810192585,
-0.045589786022901535,
-0.06472277641296387,
-0.012168372981250286,
-0.030399031937122345,
-0.02200644463300705,
0.001945932162925601,
-0.05119652301073074,
-0.0006668951828032732,
0.018537277355790138,
-0.047236766666173935,
-0.015217036940157413,
-0.005256316624581814,
0.013070707209408283,
0.006062285043299198,
0.006964619737118483,
0.043977849185466766,
-0.08361047506332397,
-0.022234220057725906,
0.004897134844213724,
-0.07421918958425522,
-0.03302719071507454,
0.014612560160458088,
-0.002271166769787669,
0.024196578189730644,
-0.014857854694128036,
0.011152151972055435,
0.030399031937122345,
0.0011114919325336814,
-0.02109535038471222,
-0.03626858443021774,
0.026632003486156464,
-0.014051886275410652,
-0.04089414328336716,
-0.0112222358584404,
0.027753351256251335,
0.07835415750741959,
-0.00401889206841588,
-0.0538947656750679,
0.013841633684933186,
0.02139320783317089,
0.01809925027191639,
0.059256210923194885,
0.00783191155642271,
-0.023583341389894485,
-0.0589408315718174,
-0.0024726588744670153,
0.029750751331448555,
0.015085628256201744,
-0.08073702454566956,
-0.013070707209408283,
-0.01918555609881878,
-0.014244617894291878,
0.04839315637946129,
0.003009241307154298,
-0.03963262587785721,
0.024459393694996834,
-0.022602161392569542,
0.022234220057725906,
0.045624829828739166,
-0.0004254331288393587,
0.004529193043708801,
-0.045975249260663986,
-0.0061674113385379314,
0.008484571240842342,
0.08354039490222931,
0.02691234089434147,
-0.0302413422614336,
-0.005646159872412682,
-0.029663147404789925,
-0.052878543734550476,
-0.005335161462426186,
0.09783757477998734,
0.019798792898654938,
-0.04022834450006485,
0.0174246896058321,
-0.02335556596517563,
0.007306280080229044,
-0.023705987259745598,
-0.0009653006563894451,
-0.02890974096953869,
0.07604137808084488,
0.018256939947605133,
-0.07064489275217056,
-0.05382468178868294,
0.03164302557706833,
0.0629005879163742,
-0.01369270496070385,
-0.07106540352106094,
-0.00022394099505618215,
-0.04166506975889206,
-0.040683891624212265,
-0.04404793307185173,
0.05603233352303505,
-0.007888855412602425,
0.05238795652985573,
-0.02382863499224186,
0.01589159667491913,
-0.049759797751903534,
0.013841633684933186,
-0.05627762898802757,
0.005081105977296829,
-0.014130731113255024,
-0.020815012976527214,
0.05095122754573822,
0.009373764507472515,
-0.025966204702854156,
-0.003911575768142939,
0.050320472568273544,
-0.005558555014431477,
-0.06580908596515656,
0.03570790961384773,
-0.005054824519902468,
0.04587012156844139,
-0.024319224059581757,
-0.04646584019064903,
0.05074097588658333,
-0.0006110467948019505,
-0.025493135675787926,
0.05189736559987068,
-0.008944498375058174,
-0.014989262446761131,
0.06731589138507843,
0.0059264968149363995,
-0.0017345844535157084,
0.027052508667111397,
-0.07407902181148529,
0.016285821795463562,
0.01371022593230009,
0.003153790021315217,
-0.022882498800754547,
0.0053921048529446125,
0.0315028578042984,
0.017853954806923866,
0.005383344367146492,
0.03945741802453995,
-0.04989996552467346,
-0.01672384701669216,
-0.06205957755446434,
0.08087719231843948,
-0.011791670694947243,
-0.021340645849704742,
0.056137461215257645,
-0.019168034195899963,
0.05788956582546234,
-0.009347482584416866,
0.0331498384475708,
0.06955859065055847,
-0.018432149663567543,
0.07527045160531998,
-0.001525426865555346,
-0.03816085681319237,
0.025072630494832993,
-0.02013169229030609,
0.03481433540582657,
0.014235857874155045,
-0.044678691774606705,
0.028787093237042427,
-0.00830059964209795,
-0.028997346758842468,
0.05459560826420784,
-0.03085457906126976,
-0.014209575951099396,
-0.010477591305971146,
-0.013578818179666996,
-0.0431368388235569,
0.03194088488817215,
0.035007067024707794,
0.014157013036310673,
0.0033640426117926836,
0.01710055023431778,
0.0036487597972154617,
0.009303680621087551,
-0.03998304903507233,
-0.0010145786218345165,
0.05568191409111023,
0.003948807716369629,
-0.05501611530780792,
0.037740353494882584,
0.028401629999279976,
0.02130560390651226,
-0.014665123075246811,
0.004524812567979097,
-0.03914203867316246,
-0.012737806886434555,
-0.006636099889874458,
-0.006605437956750393,
0.028962304815649986,
-0.013894196599721909,
0.01542728953063488,
0.048323072493076324,
0.02829650416970253
] |
17,547 | imodels.discretization.mdlp | _apply_cutpoints |
Discretizes data by applying bins according to self._cuts. Saves a new, discretized file, and a description of
the bins
:param out_data_path: path to save discretized data
:param out_bins_path: path to save bins description
:return:
| def _apply_cutpoints(self, out_data_path=None, out_bins_path=None):
'''
Discretizes data by applying bins according to self._cuts. Saves a new, discretized file, and a description of
the bins
:param out_data_path: path to save discretized data
:param out_bins_path: path to save bins description
:return:
'''
bin_label_collection = {}
for attr in self._features:
if len(self._cuts[attr]) == 0:
self._data[attr] = 'All'
bin_label_collection[attr] = ['All']
else:
cuts = [-np.inf] + self._cuts[attr] + [np.inf]
start_bin_indices = range(0, len(cuts) - 1)
bin_labels = ['%s_to_%s' % (str(cuts[i]), str(cuts[i + 1])) for i in start_bin_indices]
bin_label_collection[attr] = bin_labels
self._data[attr] = pd.cut(x=self._data[attr].values, bins=cuts, right=False, labels=bin_labels,
precision=6, include_lowest=True)
# reconstitute full data, now discretized
if self._ignored_features:
to_return = pd.concat([self._data, self._data_raw[list(self._ignored_features)]], axis=1)
to_return = to_return[self._data_raw.columns] # sort columns so they have the original order
else:
to_return = self._data
# save data as csv
if out_data_path:
to_return.to_csv(out_data_path)
# save bins description
if out_bins_path:
with open(out_bins_path, 'w') as bins_file:
print('Description of bins in file: %s' % out_data_path, file=bins_file)
# print(>>bins_file, 'Description of bins in file: %s' % out_data_path)
for attr in self._features:
print('attr: %s\n\t%s' % (attr, ', '.join([bin_label for bin_label in bin_label_collection[attr]])),
file=bins_file)
| (self, out_data_path=None, out_bins_path=None) | [
-0.015934092923998833,
-0.004935052711516619,
-0.005985652096569538,
-0.015104671940207481,
-0.013501125387847424,
-0.03361918404698372,
0.00216570938937366,
0.015795854851603508,
0.021085716784000397,
-0.042834967374801636,
-0.06863916665315628,
0.03356388956308365,
-0.010294031351804733,
-0.029877575114369392,
-0.034208994358778,
0.058796707540750504,
0.0053774104453623295,
0.0043982332572340965,
0.013510340824723244,
0.02250494621694088,
-0.026541460305452347,
-0.042355746030807495,
-0.035996854305267334,
-0.015611539594829082,
0.03555449843406677,
0.023942608386278152,
0.014689961448311806,
-0.026320282369852066,
-0.010376974008977413,
-0.015381145291030407,
-0.053562141954898834,
-0.04423576593399048,
0.042945556342601776,
-0.036512941122055054,
0.025951649993658066,
-0.048843659460544586,
0.09326374530792236,
0.01629350706934929,
0.048843659460544586,
0.07077722996473312,
0.02259710431098938,
-0.05112917348742485,
-0.07284156233072281,
-0.0009964567143470049,
0.015224476344883442,
0.03234740346670151,
-0.047664038836956024,
0.04427263140678406,
0.03266074135899544,
-0.025712039321660995,
-0.07015055418014526,
-0.0697081983089447,
0.020035116001963615,
0.05024445801973343,
-0.01750999130308628,
0.02877167984843254,
0.029785417020320892,
0.03962787613272667,
0.004543381743133068,
0.011224825866520405,
0.00710997823625803,
0.05205075442790985,
0.054815489798784256,
-0.06251988559961319,
0.03334271162748337,
0.010091284289956093,
-0.08249970525503159,
0.030928174033761024,
-0.01397113036364317,
0.043277326971292496,
0.03518586605787277,
-0.03796903416514397,
0.05887043476104736,
0.07527453452348709,
-0.03796903416514397,
-0.01129855215549469,
0.00427612429484725,
-0.04007023200392723,
0.037471380084753036,
0.0015033249510452151,
0.031683869659900665,
-0.006575462408363819,
0.03290035203099251,
-0.05706414207816124,
0.03463292121887207,
-0.012017383240163326,
0.041913390159606934,
0.025638313964009285,
-0.0006727523286826909,
0.004467351827770472,
-0.006520167924463749,
0.048548754304647446,
0.05219820514321327,
0.008529208600521088,
0.037379223853349686,
-0.01690175011754036,
-0.054041363298892975,
0.006063986569643021,
-0.001495261094532907,
-0.04655814543366432,
0.01427525095641613,
-0.0029605708550661802,
0.041913390159606934,
0.05160839483141899,
0.026449302211403847,
-0.008524601347744465,
0.01771273836493492,
-0.011022078804671764,
-0.10756663978099823,
-0.025380272418260574,
-0.05496294051408768,
0.030393658205866814,
0.042982421815395355,
-0.024864187464118004,
-0.03518586605787277,
-0.058538664132356644,
-0.007709003984928131,
0.019224127754569054,
-0.04541538655757904,
0.0014226868515834212,
-0.02337123081088066,
-0.020882967859506607,
-0.007202135864645243,
0.0010241040727123618,
-0.03852198272943497,
0.024993209168314934,
0.04095494747161865,
0.0686023011803627,
-0.03501998260617256,
-0.027020681649446487,
0.047848355025053024,
-0.042982421815395355,
-0.031739164143800735,
0.032107796519994736,
0.025675177574157715,
-0.07446353882551193,
-0.00447426363825798,
0.03446703404188156,
0.03885374963283539,
0.017095280811190605,
0.06406813859939575,
-0.042613789439201355,
-0.01120639406144619,
-0.019740210846066475,
0.02744460664689541,
0.03866943344473839,
0.03562822565436363,
-0.021546505391597748,
-0.02270769327878952,
-0.08176244050264359,
-0.031333670020103455,
0.021343758329749107,
-0.08050909638404846,
-0.03863257169723511,
0.03771099075675011,
-0.027112839743494987,
-0.009713437408208847,
-0.014551724307239056,
-0.043387915939092636,
-0.03349016234278679,
-0.02291044220328331,
-0.009833242744207382,
-0.009119018912315369,
-0.04368282109498978,
-0.059460245072841644,
0.042282022535800934,
0.020201001316308975,
-0.006395754870027304,
0.026781070977449417,
0.003930532373487949,
0.014100151136517525,
0.04442008212208748,
-0.02324220910668373,
0.07055605202913284,
-0.017500774934887886,
0.04515734687447548,
0.003110327525064349,
-0.03454076126217842,
0.004255388863384724,
0.06451049447059631,
0.018551375716924667,
-0.05116603896021843,
-0.03970160335302353,
0.004389017354696989,
-0.0287532489746809,
-0.012081894092261791,
0.03260544687509537,
-0.049101702868938446,
-0.019850801676511765,
0.03341643512248993,
0.02256024070084095,
-0.036236464977264404,
-0.006957917474210262,
-0.010035989806056023,
0.03356388956308365,
-0.048696208745241165,
-0.03538861498236656,
0.01119717862457037,
-0.027370881289243698,
-0.016837239265441895,
0.020532768219709396,
-0.005635452456772327,
0.06414186209440231,
-0.018947653472423553,
0.043056149035692215,
-0.0083679324015975,
-0.015832718461751938,
0.02796069160103798,
0.018532942980527878,
0.02370299957692623,
0.00003562116762623191,
-0.06650110334157944,
0.019721779972314835,
0.02313162013888359,
0.03573881462216377,
0.015427224338054657,
-0.007349588442593813,
-0.02772108092904091,
-0.03614430874586105,
0.014210740104317665,
-0.02757362835109234,
-0.004054945427924395,
0.031112490221858025,
0.0682336688041687,
-0.004663187079131603,
0.019666485488414764,
0.07814985513687134,
0.01447799801826477,
0.11715105921030045,
-0.006423402111977339,
-0.016136839985847473,
-0.02914031222462654,
-0.03940669819712639,
-0.05105544999241829,
-0.018210390582680702,
0.007478609681129456,
0.00826655887067318,
0.029969733208417892,
0.0022647790610790253,
0.00870891660451889,
-0.020901400595903397,
-0.025693608447909355,
-0.002543556736782193,
-0.04688991233706474,
-0.02908501774072647,
-0.024421829730272293,
0.01457015611231327,
0.005183878820389509,
0.024587715044617653,
0.014957219362258911,
0.05061309039592743,
-0.01645939238369465,
-0.053635869175195694,
-0.006524775642901659,
0.042540062218904495,
-0.09724496304988861,
-0.08670210838317871,
-0.04158162325620651,
-0.002261323155835271,
0.007243607193231583,
0.020108843222260475,
0.03258701413869858,
0.03918551653623581,
0.02762892283499241,
-0.031112490221858025,
-0.006607717834413052,
0.015067808330059052,
-0.036236464977264404,
0.016708217561244965,
-0.01787862367928028,
-0.02296573668718338,
0.024495556950569153,
-0.03251329064369202,
0.02362927235662937,
-0.05599511042237282,
0.03955414891242981,
0.04600519686937332,
-0.04666873440146446,
-0.019390011206269264,
0.0010177682852372527,
0.0663905143737793,
0.019371580332517624,
-0.012183267623186111,
-0.0218229778110981,
0.009077548049390316,
-0.01167639996856451,
-0.037581972777843475,
0.010386189445853233,
0.012091109529137611,
0.005349763203412294,
-0.06366264075040817,
0.024827323853969574,
0.03483566641807556,
0.0453047975897789,
0.04478871449828148,
0.019390011206269264,
0.031517986208200455,
-0.10955724865198135,
0.009266471490263939,
-0.006658404599875212,
-0.04626324027776718,
-0.05168212205171585,
0.02895599603652954,
0.018394706770777702,
0.0068381126038730145,
-0.008441658690571785,
0.0234818197786808,
-0.036900002509355545,
0.0035688127391040325,
0.017998427152633667,
0.04500989243388176,
-0.047369133681058884,
0.0575064979493618,
-0.01409093476831913,
0.010533642023801804,
-0.037065885961055756,
0.015187613666057587,
0.020938264206051826,
-0.009455394931137562,
0.059755150228738785,
-0.06945015490055084,
-0.004492694977670908,
0.014782118611037731,
0.0064879124984145164,
0.02779480814933777,
0.03251329064369202,
0.025380272418260574,
0.017556069418787956,
-0.021583369001746178,
-0.03575724735856056,
-0.013491909019649029,
0.019039811566472054,
0.049175430089235306,
0.02729715406894684,
0.0006093937554396689,
-0.005105544812977314,
0.02281828410923481,
-0.010054421611130238,
-0.024993209168314934,
-0.011888362467288971,
-0.0024099277798086405,
0.054999805986881256,
-0.004697746597230434,
0.03819021210074425,
-0.007897927425801754,
0.04080749675631523,
0.006828896701335907,
-0.00730811757966876,
-0.0072574308142066,
0.04453067108988762,
0.048180121928453445,
-0.017058417201042175,
-0.01791548542678356,
0.0698925107717514,
0.04423576593399048,
-0.005930357612669468,
0.06196693703532219,
-0.018597453832626343,
0.025453997775912285,
-0.04630010202527046,
0.09363237768411636,
-0.037434518337249756,
0.012542683631181717,
0.01374073512852192,
0.043461643159389496,
0.032218385487794876,
-0.006335852202028036,
0.04674246162176132,
-0.008234303444623947,
-0.016228998079895973,
0.0007850696565583348,
-0.02267083153128624,
0.00705929147079587,
-0.003087288001552224,
-0.00586584722623229,
0.0006047858623787761,
-0.03455919399857521,
-0.025804197415709496,
-0.030025027692317963,
0.07269410789012909,
-0.05227193236351013,
0.0234818197786808,
-0.020403748378157616,
0.03349016234278679,
0.009547553025186062,
-0.02261553704738617,
-0.01791548542678356,
-0.023979471996426582,
0.0693395659327507,
-0.04069690778851509,
0.002170317340642214,
0.029564237222075462,
-0.006644580978900194,
0.0030527287162840366,
0.0020401442889124155,
-0.042060840874910355,
0.06738582253456116,
-0.014146230183541775,
0.042060840874910355,
0.02283671498298645,
-0.042392611503601074,
-0.0286610908806324,
-0.001571291359141469,
0.08928252756595612,
-0.012966609559953213,
0.003165622241795063,
-0.012063462287187576,
-0.02361084148287773,
0.02862422727048397,
-0.0166437067091465,
-0.04158162325620651,
0.07516394555568695,
0.04976524040102959,
0.008192832581698895,
-0.015049376524984837,
0.024864187464118004,
-0.042503200471401215,
-0.03844825550913811,
0.013630146160721779,
-0.009805595502257347,
0.008008517324924469,
0.007501648738980293,
0.019224127754569054,
0.000991848879493773,
-0.007681356742978096,
-0.026006944477558136,
0.01466231420636177,
-0.020440610125660896,
-0.0026702736504375935,
0.02821873314678669,
-0.04464126378297806,
-0.042834967374801636,
-0.12363897264003754,
-0.00720674404874444,
0.009026861749589443,
0.013150924816727638,
-0.0354992039501667,
0.0003078648296650499,
0.016210565343499184,
0.01476368773728609,
-0.05031818524003029,
0.017288813367486,
0.042576927691698074,
-0.07807613164186478,
0.008086850866675377,
-0.000421910168370232,
-0.031296804547309875,
-0.05090799555182457,
-0.0222837682813406,
-0.03918551653623581,
0.017242733389139175,
-0.03518586605787277,
0.018837064504623413,
0.002104654908180237,
-0.026541460305452347,
-0.008976174518465996,
-0.042982421815395355,
-0.0015805071452632546,
0.011123452335596085,
0.018689611926674843,
0.003190965624526143,
0.0143305454403162,
-0.03815335035324097,
0.042318884283304214,
0.02842148020863533,
0.005068681668490171,
0.021454347297549248,
0.004064161330461502,
-0.025435566902160645,
0.010690310969948769,
0.030190911144018173,
-0.024421829730272293,
0.029564237222075462,
-0.029508942738175392,
-0.0031034154817461967,
0.04976524040102959,
-0.03988591581583023,
0.0286610908806324,
0.04143416881561279,
-0.008280382491648197,
0.0038498942740261555,
-0.03347172960639,
-0.0237582940608263,
0.0471479557454586,
-0.01791548542678356,
-0.0013501124922186136,
-0.019648052752017975,
0.0059626130387187,
-0.005985652096569538,
-0.01798921264708042,
0.037747856229543686,
-0.008837937377393246,
0.007450961973518133,
-0.011971304193139076,
0.037434518337249756,
0.05684296041727066,
0.03321368992328644,
0.02772108092904091,
0.059460245072841644,
-0.020145704969763756,
-0.018238037824630737,
0.031849753111600876,
-0.059128474444150925,
-0.036457646638154984,
0.0010949504794552922,
0.013473477214574814,
-0.04427263140678406,
0.02361084148287773,
-0.08168871700763702,
-0.048438165336847305,
-0.007603022735565901,
-0.1161188930273056,
0.027499902993440628,
0.026449302211403847,
0.02812657505273819,
0.01638566516339779,
-0.012791509740054607,
-0.01612762361764908,
-0.07309960573911667,
0.059312790632247925,
-0.025693608447909355,
-0.025398703292012215,
-0.005487999878823757,
-0.020016685128211975,
0.001507932785898447,
0.02162023074924946,
0.06709091365337372,
0.011869930662214756,
0.010312463156878948,
0.012653272598981857,
-0.016053898259997368,
-0.001013160333968699,
0.04983896389603615,
0.03973846510052681,
0.048622481524944305,
0.07221489399671555,
-0.009266471490263939,
-0.05780140310525894,
0.05699041485786438,
0.019279422238469124,
-0.03466978296637535,
0.004453528206795454,
0.0689709335565567,
-0.024587715044617653,
0.020551200956106186,
0.054483719170093536,
-0.01642252877354622,
-0.00024378631496801972,
0.0789608433842659,
0.0034950864501297474,
0.0573221817612648,
0.04324046149849892,
0.0438302718102932,
0.020772378891706467,
0.07236234098672867,
-0.010985215194523335,
0.02222847379744053,
-0.01110502053052187,
-0.013574851676821709,
0.02224690467119217,
-0.06369950622320175,
0.0062713418155908585,
0.08869271725416183,
-0.02292887307703495,
-0.04582088440656662,
0.018966086208820343,
-0.042245157063007355,
0.025841061025857925,
-0.07140389829874039,
-0.03614430874586105,
0.0022647790610790253,
0.020698653534054756,
-0.054483719170093536,
-0.03583097085356712,
-0.05046563968062401,
0.0065385992638766766,
0.031057195737957954,
-0.059165339916944504,
-0.059128474444150925,
-0.04007023200392723,
-0.06827053427696228,
0.01091148890554905,
-0.004847502801567316,
-0.014450350776314735,
-0.021362189203500748,
0.001378911780193448,
-0.048769932240247726,
0.004642451647669077,
0.005197702907025814,
0.009685790166258812,
-0.0056815315037965775,
0.03479880467057228,
0.003637931076809764,
-0.09473826736211777,
0.004806031938642263,
-0.02766578644514084,
-0.048180121928453445,
-0.05094485729932785,
0.009492258541285992,
-0.0066031101159751415,
0.026283418759703636,
-0.04324046149849892,
-0.04416204243898392,
0.07055605202913284,
-0.006874975748360157,
0.002861501183360815,
-0.00417475076392293,
-0.002739391988143325,
-0.042908694595098495,
-0.0023465692065656185,
-0.02901129052042961,
0.0767490565776825,
0.09554925560951233,
0.030559543520212173,
-0.03308466821908951,
-0.01668057031929493,
0.03962787613272667,
-0.06690660119056702,
0.037581972777843475,
0.010671879164874554,
0.0002486821904312819,
-0.07276783883571625,
0.026707345619797707,
0.048143260180950165,
-0.04032827541232109,
-0.07158821821212769,
-0.014892708510160446,
0.019482169300317764,
0.002504389500245452,
0.00562162883579731,
-0.029582669958472252,
-0.048069532960653305,
0.04442008212208748,
-0.03231054171919823,
0.008934703655540943,
0.04368282109498978,
0.002138062147423625,
-0.0016081545036286116,
-0.019150400534272194,
-0.008907056413590908,
0.06358891725540161,
-0.02932462841272354,
0.03951728716492653,
-0.03559136018157005,
-0.016781944781541824,
-0.05651119351387024,
0.01471760869026184,
-0.00816518533974886,
0.013584067113697529,
-0.006183791905641556,
-0.025951649993658066,
0.012865236029028893,
-0.02320534735918045,
-0.01163953635841608,
0.01656998135149479,
0.0065800705924630165,
0.018947653472423553,
0.02252337895333767,
-0.011750126257538795,
-0.06653796881437302,
-0.053599003702402115,
-0.0016680570552125573,
0.029693258926272392,
-0.05120290070772171,
-0.04453067108988762,
-0.021214736625552177,
0.005382018629461527,
0.007529296446591616,
-0.042318884283304214,
0.013316809199750423,
0.03242113068699837,
0.021011989563703537,
-0.07461099326610565,
-0.0014710696414113045,
-0.04744286090135574,
-0.06060300022363663,
-0.037305496633052826,
0.0012568027013912797,
-0.02843991294503212,
-0.015261339955031872,
0.030080322176218033,
0.02928776480257511,
-0.0007556943455711007,
0.006879583466798067,
0.08603856712579727,
0.06981878727674484,
-0.010893058031797409,
-0.06484226137399673,
-0.037618834525346756,
0.03874316066503525,
0.00831263791769743,
-0.006750562693923712,
0.037158045917749405,
-0.011759341694414616,
-0.0005926901940256357,
0.010367757640779018,
-0.01154737826436758,
-0.031352099031209946,
0.05101858451962471,
-0.014496429823338985,
0.027555197477340698,
0.014736040495336056,
-0.015040161088109016,
-0.0233896616846323,
0.009704221971333027,
-0.00542809721082449,
-0.03478037193417549,
0.005635452456772327,
0.018274901434779167,
0.07015055418014526,
0.027499902993440628,
0.08707073330879211,
-0.019906096160411835,
-0.031462687999010086,
-0.04010709747672081,
0.04007023200392723,
-0.09584416449069977,
-0.000998184666968882,
0.010708741843700409,
-0.037231769412755966,
0.05518411844968796,
0.01104051060974598,
0.04379341006278992,
0.01795234903693199,
-0.0465950071811676,
-0.04018082097172737,
-0.003306162776425481,
-0.024790462106466293,
0.024182219058275223,
-0.01369465608149767,
0.014395056292414665,
0.016192134469747543,
-0.016745081171393394,
0.05533157289028168,
-0.013390535488724709,
-0.010644231922924519,
0.060271233320236206,
-0.04353536665439606,
0.010017558000981808,
0.03826393932104111,
-0.0005365315009839833,
-0.047590311616659164,
0.035701949149370193,
0.05592138320207596,
0.0290297232568264,
-0.006312812678515911,
0.05323037505149841,
0.009962263517081738,
0.0144227035343647,
-0.031978774815797806,
0.043572232127189636,
0.042023979127407074,
-0.02777637541294098,
-0.0011444853153079748,
0.0004080864891875535,
0.011031294241547585,
0.04442008212208748,
0.009008429944515228,
0.019426874816417694,
-0.01437662448734045,
0.02291044220328331,
-0.011805420741438866,
-0.020311590284109116,
0.010487562976777554,
0.0467793233692646,
0.05024445801973343,
0.005603197030723095,
-0.011713262647390366
] |
17,548 | imodels.discretization.mdlp | _best_cut_point |
Selects the best cut point for a feature in a data partition based on information gain
:param data: data partition (pandas dataframe)
:param feature: target attribute
:return: value of cut point with highest information gain (if many, picks first). None if no candidates
| def _best_cut_point(self, data, feature):
'''
Selects the best cut point for a feature in a data partition based on information gain
:param data: data partition (pandas dataframe)
:param feature: target attribute
:return: value of cut point with highest information gain (if many, picks first). None if no candidates
'''
candidates = self._boundaries_in_partition(data=data, feature=feature)
# candidates = self.feature_boundary_points(data=data, feature=feature)
if not candidates:
return None
gains = [(cut, cut_point_information_gain(dataset=data, cut_point=cut, feature_label=feature,
class_label=self._class_name)) for cut in candidates]
gains = sorted(gains, key=lambda x: x[1], reverse=True)
return gains[0][0] # return cut point
| (self, data, feature) | [
0.05470924451947212,
-0.007112022489309311,
0.020973071455955505,
0.03662221133708954,
-0.006713175680488348,
-0.05040707439184189,
0.08209971338510513,
0.007224057801067829,
0.0356542207300663,
-0.02430725283920765,
-0.06238144263625145,
-0.020327746868133545,
-0.058868005871772766,
-0.07887309044599533,
-0.02896793559193611,
0.06711383163928986,
-0.0109346779063344,
-0.01216258853673935,
0.018678581342101097,
0.05420732498168945,
0.018257327377796173,
-0.028412237763404846,
-0.04004601761698723,
-0.022281648591160774,
0.014958998188376427,
0.04685778543353081,
0.06005110219120979,
0.016455793753266335,
-0.01912672445178032,
-0.04355945810675621,
-0.06266825646162033,
-0.02396666444838047,
-0.027910318225622177,
-0.007331612054258585,
-0.0035403261426836252,
0.018248364329338074,
0.07206132262945175,
0.00008059563697315753,
0.0022115835454314947,
0.0039862277917563915,
-0.06865543872117996,
-0.04474255442619324,
-0.040763046592473984,
-0.017755407840013504,
-0.024271400645375252,
0.013632496818900108,
-0.017110083252191544,
0.057254694402217865,
-0.01635720394551754,
0.03778738155961037,
-0.021008923649787903,
-0.05850949138402939,
-0.025669606402516365,
0.009491659700870514,
-0.06410231441259384,
-0.0017387931002303958,
0.04485010728240013,
-0.03169264271855354,
0.009007665328681469,
0.033915430307388306,
0.05087314173579216,
0.040404532104730606,
0.03622784465551376,
-0.020184339955449104,
0.005713817663490772,
-0.03348521143198013,
-0.03764397278428078,
0.026924405246973038,
-0.05492435023188591,
0.059692587703466415,
0.014681150205433369,
-0.008693965151906013,
0.031029390171170235,
0.025669606402516365,
0.012754136696457863,
-0.020202266052365303,
0.02271186374127865,
-0.050299521535634995,
0.08073735982179642,
-0.009912913665175438,
0.03335973247885704,
-0.02332133799791336,
0.034256018698215485,
-0.03448905050754547,
0.006874506827443838,
-0.003880914533510804,
0.07758244127035141,
0.007457091938704252,
0.017853999510407448,
-0.004492629319429398,
-0.02593849040567875,
0.054494135081768036,
0.04083475098013878,
0.04875791072845459,
0.04441988840699196,
0.012279106304049492,
-0.02950570546090603,
0.0007719255518168211,
-0.027748987078666687,
-0.02233542501926422,
0.02706781029701233,
0.07665029913187027,
0.03093976154923439,
0.012368734925985336,
0.026530038565397263,
-0.03617406636476517,
0.04875791072845459,
0.05553382635116577,
-0.09988201409578323,
-0.0027022995054721832,
-0.0486503541469574,
0.005032640881836414,
-0.028322609141469002,
0.016160020604729652,
-0.024737469851970673,
-0.024181772023439407,
-0.026171525940299034,
0.030043477192521095,
-0.0567169226706028,
-0.005736224818974733,
-0.03325217589735985,
-0.04323679208755493,
-0.04847109690308571,
-0.02108062617480755,
-0.045244473963975906,
-0.02541864477097988,
0.08625847846269608,
0.017128009349107742,
-0.04732385277748108,
-0.03129827603697777,
0.09457600116729736,
-0.03061709925532341,
-0.040727194398641586,
0.008958369493484497,
-0.00042741597280837595,
-0.06786670535802841,
0.020184339955449104,
0.022281648591160774,
0.02011263743042946,
-0.029254745692014694,
0.04452744498848915,
-0.018571026623249054,
0.005131232086569071,
-0.010513423942029476,
0.01815873570740223,
-0.03968750312924385,
0.021905208006501198,
-0.03448905050754547,
0.03500889614224434,
-0.01667986623942852,
-0.017226599156856537,
0.03180019557476044,
-0.009527510963380337,
-0.08503953367471695,
0.033610690385103226,
-0.03353898972272873,
-0.010092169977724552,
-0.07736732810735703,
-0.012870654463768005,
-0.05123165622353554,
-0.011562078259885311,
-0.024504434317350388,
-0.0000897685531526804,
-0.02384118363261223,
0.007040319498628378,
0.04287828132510185,
-0.01555054634809494,
0.007062726654112339,
0.0025140796788036823,
0.024880874902009964,
0.025060132145881653,
0.03972335532307625,
-0.03318047523498535,
0.03260685130953789,
-0.01078230980783701,
0.04832769185304642,
-0.009366179816424847,
-0.03642502799630165,
0.07098577916622162,
0.015254772268235683,
0.030348213389515877,
-0.03434564545750618,
-0.025866787880659103,
-0.00164132216013968,
-0.022747715935111046,
-0.04875791072845459,
0.032320041209459305,
0.0011158749694004655,
-0.01028935331851244,
0.03140582889318466,
-0.008608818054199219,
-0.05212794244289398,
-0.010988455265760422,
-0.027462175115942955,
0.011382821016013622,
-0.008980777114629745,
0.016276538372039795,
0.07708051800727844,
-0.009859136305749416,
0.03633539751172066,
0.00008122583676595241,
-0.016303425654768944,
0.020632483065128326,
0.00265076314099133,
0.009760544635355473,
0.02690647915005684,
0.014080638997256756,
0.038289301097393036,
-0.053060077130794525,
0.007766310591250658,
-0.037177905440330505,
-0.012655545957386494,
0.016303425654768944,
0.0145646333694458,
0.06991023570299149,
-0.041551776230335236,
-0.004387315828353167,
-0.040404532104730606,
0.006515992805361748,
0.0388629212975502,
-0.04549543187022209,
-0.06345698237419128,
0.05868874862790108,
0.10590504854917526,
0.06887054443359375,
-0.040727194398641586,
0.05589234083890915,
0.001589785679243505,
0.06381549686193466,
-0.0825299322605133,
0.013336722739040852,
-0.09185130149126053,
0.01669779233634472,
-0.0632060244679451,
0.01831110566854477,
0.05162602290511131,
0.002148843603208661,
-0.00030053561204113066,
-0.043021686375141144,
0.0031414793338626623,
-0.020614556968212128,
-0.001350029488094151,
-0.006314328406006098,
0.016608163714408875,
-0.08066566288471222,
-0.02316000685095787,
0.0024580620229244232,
-0.009760544635355473,
0.04065549373626709,
0.014475004747509956,
0.016151057556271553,
0.004290964920073748,
-0.04789747670292854,
0.0034574198070913553,
0.015801506116986275,
-0.10102925449609756,
-0.04485010728240013,
-0.032302115112543106,
0.000008704643732926343,
0.04341604933142662,
-0.06026621162891388,
0.04549543187022209,
0.003038406604900956,
0.07037630677223206,
-0.06542881578207016,
0.007824569009244442,
-0.01361457072198391,
-0.004053449258208275,
-0.0028457052540034056,
-0.007860420271754265,
0.09177959710359573,
0.0501561164855957,
0.011427635326981544,
-0.0137669388204813,
-0.051446765661239624,
-0.03224833682179451,
-0.017603039741516113,
-0.03318047523498535,
-0.003865229431539774,
-0.012601768597960472,
0.006377068348228931,
-0.013524942100048065,
-0.05764905735850334,
0.036998648196458817,
-0.043165091425180435,
0.009733656421303749,
0.007349537685513496,
-0.03574385121464729,
0.02396666444838047,
0.051805280148983,
-0.07686541229486465,
0.024271400645375252,
-0.002704540267586708,
0.019556941464543343,
0.050622183829545975,
0.036855243146419525,
0.02237127721309662,
-0.019323907792568207,
0.053526148200035095,
0.018337992951273918,
0.0421254001557827,
-0.021474990993738174,
-0.017567187547683716,
0.0046562012284994125,
-0.027964094653725624,
-0.004539683926850557,
0.046750232577323914,
-0.03746471926569939,
-0.000017820668290369213,
-0.003354347078129649,
0.04083475098013878,
-0.03854025900363922,
0.0825299322605133,
0.010387944057583809,
-0.05327518656849861,
-0.031836047768592834,
-0.0010766624473035336,
0.0008161796140484512,
0.019682420417666435,
0.036711838096380234,
-0.018983319401741028,
-0.005861704703420401,
0.04305753484368324,
0.019180500879883766,
0.01652749814093113,
-0.010854012332856655,
-0.06840448081493378,
-0.014313673600554466,
0.004488147795200348,
0.007681163493543863,
-0.10253501683473587,
0.033144623041152954,
0.035224005579948425,
0.02687062695622444,
-0.04359530657529831,
0.07016120105981827,
-0.002908445196226239,
0.014483967795968056,
-0.0016469238325953484,
0.024880874902009964,
0.013265019282698631,
0.02480917237699032,
-0.007846975699067116,
0.03350313752889633,
0.04793332889676094,
0.05141091346740723,
0.04395382106304169,
-0.007551202084869146,
-0.0038764330092817545,
0.017387930303812027,
-0.02217409387230873,
-0.047216299921274185,
0.006677323952317238,
-0.014403301291167736,
0.02929059788584709,
0.0011360413627699018,
0.037679824978113174,
-0.017450671643018723,
0.015478843823075294,
0.003233348485082388,
0.10741081088781357,
-0.05539042130112648,
-0.011813038028776646,
0.002659725956618786,
-0.032804034650325775,
0.01296028308570385,
-0.04230465739965439,
0.05929822102189064,
-0.00020138405670877546,
-0.010181798599660397,
-0.019413534551858902,
-0.013749013654887676,
0.025508273392915726,
0.00881944503635168,
0.00933032762259245,
0.034435272216796875,
-0.013031985610723495,
-0.019072948023676872,
-0.016608163714408875,
0.03029443696141243,
-0.00010720410500653088,
-0.005086417775601149,
-0.046069055795669556,
0.03778738155961037,
-0.03997431695461273,
-0.009832248091697693,
-0.08683209866285324,
-0.07234813272953033,
0.07557476311922073,
-0.031836047768592834,
-0.0013388259103521705,
0.005521116312593222,
-0.003047369420528412,
-0.013901381753385067,
0.01076438371092081,
-0.02541864477097988,
0.056932028383016586,
-0.02674514800310135,
0.025562051683664322,
-0.008922518230974674,
-0.03285781294107437,
0.003152682911604643,
-0.020686259493231773,
0.013327759690582752,
0.024074217304587364,
-0.0028210573364049196,
0.013704199343919754,
0.020040934905409813,
-0.03534948453307152,
-0.0077349403873085976,
-0.06926491111516953,
0.011517263948917389,
0.01555950939655304,
0.018391771242022514,
-0.0015718600479885936,
0.009455807507038116,
0.0024222105275839567,
0.08676040172576904,
-0.024074217304587364,
-0.01878613606095314,
0.0054180435836315155,
-0.0275518037378788,
-0.05911896750330925,
-0.016115205362439156,
-0.06137760356068611,
-0.01166963204741478,
-0.023124156519770622,
-0.016267575323581696,
-0.02574130892753601,
0.01601661555469036,
-0.06259655207395554,
-0.06005110219120979,
-0.04814843460917473,
-0.013175390660762787,
-0.007434684783220291,
-0.007510869298130274,
-0.06023035943508148,
0.0003946455253753811,
-0.0009030072251334786,
-0.026798924431204796,
0.032499298453330994,
0.047216299921274185,
0.03092183545231819,
0.031495459377765656,
-0.009814321994781494,
-0.032821960747241974,
-0.005368747748434544,
-0.04226880520582199,
-0.03997431695461273,
-0.034596603363752365,
0.027247067540884018,
-0.03825344890356064,
0.03212285786867142,
0.030545396730303764,
0.020507004112005234,
-0.018893690779805183,
-0.10253501683473587,
-0.025346942245960236,
0.03275025635957718,
0.01183096319437027,
-0.0323558934032917,
0.03160301223397255,
0.020686259493231773,
0.02866319753229618,
0.016115205362439156,
0.035080600529909134,
0.042340509593486786,
-0.01410752721130848,
-0.0469294898211956,
-0.04144422337412834,
0.04743140935897827,
-0.030366139486432076,
-0.01800636760890484,
-0.03171056881546974,
0.00924069993197918,
0.06123419851064682,
0.004176688380539417,
0.02394873835146427,
0.0858999639749527,
-0.00834889616817236,
0.05130336061120033,
-0.04137251898646355,
-0.0027135030832141638,
0.0030047958716750145,
-0.046750232577323914,
-0.005256711971014738,
-0.0810958743095398,
0.014645298942923546,
-0.05811512470245361,
-0.052880819886922836,
0.0047951252199709415,
0.032821960747241974,
-0.022926973178982735,
0.01973619870841503,
0.025024279952049255,
0.04969004541635513,
0.07729563117027283,
0.008304081857204437,
0.034291867166757584,
-0.010101133026182652,
-0.0056152259930968285,
0.04829184338450432,
-0.08539804816246033,
-0.03371824696660042,
0.0011651706881821156,
-0.027157438918948174,
-0.0194493867456913,
0.03925728797912598,
0.02704988420009613,
0.04355945810675621,
0.007663237862288952,
-0.04438403993844986,
0.0518769808113575,
0.017119046300649643,
0.019718272611498833,
0.015568472445011139,
0.02104477398097515,
0.006865543778985739,
-0.010889864526689053,
0.02751595340669155,
-0.027157438918948174,
-0.050622183829545975,
0.03918558359146118,
0.01569395139813423,
0.020811740309000015,
-0.003887636587023735,
0.03649672865867615,
-0.017773333936929703,
-0.015765655785799026,
0.04943908751010895,
-0.01844554767012596,
0.008877703920006752,
0.05940577760338783,
0.06607414036989212,
0.002233990700915456,
0.018409695476293564,
-0.022120315581560135,
-0.010907789692282677,
0.0009046877967193723,
-0.028591495007276535,
0.00352688180282712,
-0.03482963889837265,
0.04176688566803932,
0.027139512822031975,
0.06829692423343658,
-0.025866787880659103,
-0.04165933281183243,
0.028466014191508293,
-0.008124824613332748,
0.023715704679489136,
0.07001779228448868,
0.03355691581964493,
0.048506949096918106,
0.026834776625037193,
0.04925983026623726,
0.005893074441701174,
0.016814308241009712,
0.00851022731512785,
0.030509544536471367,
-0.011409709230065346,
-0.05768490955233574,
-0.009276551194489002,
0.11716239154338837,
0.008156194351613522,
0.009151071310043335,
-0.05901141092181206,
-0.03662221133708954,
0.021277807652950287,
-0.023751555010676384,
-0.02430725283920765,
0.015371290035545826,
0.025723382830619812,
-0.009419956244528294,
0.04943908751010895,
-0.07378219068050385,
0.0259205661714077,
0.03045576810836792,
-0.01862480491399765,
-0.04750311002135277,
0.017549263313412666,
-0.028430163860321045,
-0.0014295747969299555,
0.05008441209793091,
0.015998689457774162,
-0.014098565094172955,
0.025830937549471855,
-0.03355691581964493,
-0.03664013370871544,
-0.03289366513490677,
-0.012924430891871452,
0.01601661555469036,
-0.002756076632067561,
0.046104904264211655,
-0.0024468584451824427,
0.010558238252997398,
0.02886038087308407,
-0.025329018011689186,
-0.02380533330142498,
0.043021686375141144,
-0.004461259115487337,
-0.010585127398371696,
-0.023859109729528427,
0.00955439917743206,
0.01797051727771759,
0.04327264428138733,
0.003999672364443541,
-0.054852649569511414,
-0.017128009349107742,
-0.004104985855519772,
-0.002933093113824725,
0.02559790201485157,
0.039759207516908646,
0.006005110219120979,
0.000026625970349414274,
-0.06238144263625145,
0.011875777505338192,
0.02523938938975334,
-0.03192567452788353,
0.0068924324586987495,
-0.022138241678476334,
0.0017847276758402586,
-0.005852741654962301,
0.01993338018655777,
0.02298074960708618,
0.02007678709924221,
-0.05424317345023155,
0.0016379610169678926,
-0.08926999568939209,
-0.02966703660786152,
0.0299896989017725,
0.004517276771366596,
-0.030061403289437294,
0.010396907106041908,
-0.0013545108959078789,
-0.028250906616449356,
0.016097281128168106,
0.02541864477097988,
-0.0007444767979905009,
-0.053060077130794525,
-0.0004940771614201367,
-0.01749548502266407,
0.08331866562366486,
0.024522360414266586,
0.009339290671050549,
-0.0005139635177329183,
-0.038827069103717804,
-0.019467312842607498,
0.03015103191137314,
0.024576136842370033,
0.025723382830619812,
-0.04065549373626709,
-0.004053449258208275,
0.0008766788523644209,
0.013507016934454441,
0.04434818774461746,
-0.036855243146419525,
0.01784503646194935,
0.04244806244969368,
-0.007340575102716684,
-0.027444250881671906,
-0.06740064173936844,
0.008931481279432774,
-0.018355919048190117,
-0.02751595340669155,
-0.05750565230846405,
-0.021277807652950287,
-0.028716973960399628,
-0.047718219459056854,
-0.023303411900997162,
0.03531363233923912,
0.0007209493196569383,
0.04151592776179314,
-0.01384760532528162,
-0.008088973350822926,
-0.013417388312518597,
-0.0744992196559906,
0.0010133623145520687,
-0.012117774225771427,
-0.04829184338450432,
-0.008236859925091267,
0.12139285355806351,
0.021797653287649155,
-0.008097936399281025,
0.01652749814093113,
0.05524701252579689,
0.03678354248404503,
-0.0583302341401577,
-0.044133078306913376,
-0.010549276135861874,
0.005377710796892643,
0.00899422075599432,
-0.03043784201145172,
0.015003812499344349,
-0.0045755356550216675,
-0.05420732498168945,
-0.03273233398795128,
-0.032158710062503815,
0.023303411900997162,
0.04069134220480919,
-0.0035313633270561695,
-0.000769124657381326,
0.03610236570239067,
-0.02237127721309662,
-0.008577448315918446,
-0.005099862348288298,
0.01361457072198391,
-0.055318716913461685,
0.011230451986193657,
0.017755407840013504,
-0.019001243636012077,
0.02559790201485157,
0.022227870300412178,
-0.03192567452788353,
-0.01734311692416668,
-0.021331585943698883,
0.08948510885238647,
-0.0712367370724678,
0.015120329335331917,
-0.032140783965587616,
0.010809198021888733,
0.003495511831715703,
-0.026834776625037193,
0.0696951299905777,
0.021116476505994797,
-0.0421612523496151,
0.0648910403251648,
0.06446082144975662,
-0.05951333045959473,
-0.02982836775481701,
0.006309847347438335,
-0.01731622777879238,
0.013668348081409931,
-0.02203068882226944,
0.024504434317350388,
0.03678354248404503,
-0.009213810786604881,
0.030043477192521095,
-0.04241221025586128,
0.06338528543710709,
0.025329018011689186,
-0.042197104543447495,
0.010163873434066772,
0.0024849504698067904,
0.028412237763404846,
0.0020177618134766817,
-0.009410993196070194,
-0.015326475724577904,
-0.02156461961567402,
0.004378352779895067,
-0.039436545222997665,
0.02803579904139042,
-0.021976910531520844,
0.03854025900363922,
-0.0045755356550216675,
-0.017773333936929703,
0.008707409724593163,
-0.004266317002475262,
0.035546667873859406,
0.021134402602910995,
0.00033918788540177047,
-0.05399221554398537,
0.017441708594560623,
0.00817412044852972,
0.010916752740740776,
-0.07109333574771881,
0.001651405356824398,
-0.027300843968987465,
0.03129827603697777
] |
17,549 | imodels.discretization.mdlp | _boundaries_in_partition |
From the collection of all cut points for all features, find cut points that fall within a feature-partition's
attribute-values' range
:param data: data partition (pandas dataframe)
:param feature: attribute of interest
:return: points within feature's range
| def _boundaries_in_partition(self, data, feature):
'''
From the collection of all cut points for all features, find cut points that fall within a feature-partition's
attribute-values' range
:param data: data partition (pandas dataframe)
:param feature: attribute of interest
:return: points within feature's range
'''
range_min, range_max = (data[feature].min(), data[feature].max())
return set([x for x in self._boundaries[feature] if (x > range_min) and (x < range_max)])
| (self, data, feature) | [
0.06856050342321396,
0.005292234942317009,
-0.0513496994972229,
-0.0010022335918620229,
-0.01734333485364914,
0.01370326615869999,
0.059124600142240524,
-0.028820151463150978,
-0.023925496265292168,
-0.012139450758695602,
-0.017811594530940056,
-0.009674453176558018,
-0.024632304906845093,
-0.08941138535737991,
-0.04802769422531128,
0.008949973620474339,
-0.024031518027186394,
-0.028360724449157715,
0.028678789734840393,
0.009753968566656113,
-0.011697694659233093,
-0.02495037019252777,
-0.019702309742569923,
-0.019313564524054527,
0.011847891844809055,
0.024049187079072,
-0.004216559696942568,
0.012802083976566792,
-0.014887171797454357,
-0.013128983788192272,
-0.07315476983785629,
-0.00850821752101183,
-0.015267081558704376,
-0.034509964287281036,
0.028396064415574074,
-0.007222707848995924,
0.08729095011949539,
0.030622513964772224,
0.026010584086179733,
0.057923026382923126,
-0.06583929061889648,
-0.04823973774909973,
-0.06679348647594452,
0.03290197625756264,
0.037778958678245544,
0.004362338688224554,
0.029367927461862564,
0.021699046716094017,
-0.0040751975029706955,
0.04626066982746124,
0.01984367147088051,
-0.03041047230362892,
0.0132438400760293,
0.01166235376149416,
-0.03320236876606941,
0.03318469971418381,
0.006542404182255268,
0.004664941690862179,
0.01855374500155449,
0.012174790725111961,
-0.0009779370157048106,
0.034828029572963715,
0.04576590657234192,
-0.04576590657234192,
0.017899947240948677,
-0.031117280945181847,
-0.04583658650517464,
0.008605403825640678,
-0.0493352934718132,
0.05506044626235962,
-0.01864209584891796,
-0.019790662452578545,
0.05110231414437294,
0.03210681304335594,
-0.009966012090444565,
-0.005270147230476141,
0.06234058365225792,
0.03041047230362892,
0.04880518466234207,
-0.023625101894140244,
0.04067687690258026,
-0.0013804869959130883,
0.026576030999422073,
0.028731800615787506,
0.03560552000999451,
0.010787677951157093,
0.011874397285282612,
0.03141767531633377,
0.03894519433379173,
-0.003929418046027422,
-0.0017990506021305919,
0.09223861992359161,
0.028731800615787506,
0.027547894045710564,
0.04060619696974754,
0.031400006264448166,
-0.03622397780418396,
0.035110753029584885,
-0.07569927722215652,
-0.052091848105192184,
0.024490943178534508,
0.05746360123157501,
0.018977830186486244,
0.046472713351249695,
0.026187285780906677,
-0.016804391518235207,
0.010513789020478725,
-0.020956896245479584,
-0.07442702353000641,
0.004326998256146908,
-0.023678112775087357,
0.041136302053928375,
-0.020161736756563187,
0.0280956719070673,
-0.06799505650997162,
-0.03265459090471268,
-0.00286036916077137,
0.011026225984096527,
-0.04071221873164177,
-0.06739427149295807,
-0.028024990111589432,
-0.029403269290924072,
0.02090388536453247,
0.026788074523210526,
0.0002796866756398231,
0.0013970528962090611,
0.057428259402513504,
0.07029218971729279,
-0.08898729830980301,
-0.04099494218826294,
0.07393226027488708,
-0.028572767972946167,
-0.04315071180462837,
0.013181994669139385,
-0.006493811029940844,
-0.05834710970520973,
0.026788074523210526,
0.03456297516822815,
0.04862848296761513,
-0.03129398450255394,
0.029933376237750053,
0.01936657540500164,
-0.019914353266358376,
-0.004393261857330799,
-0.013773947022855282,
-0.022494208067655563,
-0.003834440605714917,
0.016185933724045753,
0.020815534517169,
-0.006264097988605499,
-0.056262023746967316,
0.0618458166718483,
0.009771639481186867,
-0.06142173334956169,
0.0200203750282526,
-0.026540691033005714,
-0.0011353124864399433,
-0.04806303605437279,
0.01940191723406315,
-0.02705312706530094,
-0.04859314113855362,
0.024755997583270073,
-0.04410490393638611,
-0.017687903717160225,
-0.0038211881183087826,
0.05866517499089241,
-0.02906753495335579,
-0.045624542981386185,
0.002813984639942646,
0.00826525129377842,
0.020921556279063225,
0.06718222796916962,
-0.018447723239660263,
0.03375014662742615,
-0.015099214389920235,
0.01156516745686531,
0.015364267863333225,
-0.0012833006912842393,
0.034987062215805054,
0.04297400638461113,
0.03989938646554947,
-0.044246263802051544,
-0.007160861976444721,
0.00609623035416007,
-0.008419866673648357,
-0.041949134320020676,
0.005707485601305962,
-0.007889759726822376,
-0.009612606838345528,
0.018023638054728508,
-0.02093922719359398,
-0.06421362608671188,
-0.0061492412351071835,
-0.01503736898303032,
-0.030905239284038544,
0.00968328770250082,
-0.0460839681327343,
0.037213511765003204,
-0.08517052233219147,
-0.019136862829327583,
-0.009347553364932537,
-0.03307867795228958,
-0.010019022040069103,
0.011273608542978764,
0.022052451968193054,
0.050642888993024826,
-0.003076829481869936,
0.0009525360073894262,
0.008751182816922665,
-0.019260553643107414,
-0.03322003781795502,
-0.05223321169614792,
0.023554421961307526,
0.06757096946239471,
0.07287204265594482,
0.01093787420541048,
-0.0465080551803112,
-0.03898053616285324,
0.018129659816622734,
-0.005963703617453575,
0.0034434867557138205,
-0.04050017520785332,
0.04937063157558441,
0.04145436733961105,
0.04078289866447449,
0.0031938946340233088,
0.057074856013059616,
-0.017520036548376083,
0.023360049352049828,
-0.032124485820531845,
0.018447723239660263,
-0.05166776105761528,
0.000538113818038255,
-0.0735788494348526,
0.008790940977633,
0.0768301784992218,
-0.009815814904868603,
0.0053408280946314335,
0.020868545398116112,
0.006692600902169943,
-0.02109825797379017,
0.013120148330926895,
-0.009232697077095509,
-0.020815534517169,
-0.032689932733774185,
-0.008892545476555824,
-0.03731953352689743,
0.03210681304335594,
0.06576860696077347,
-0.008556810207664967,
-0.027865957468748093,
-0.03770827874541283,
-0.04456432908773422,
-0.02078019455075264,
0.03101125918328762,
-0.07251863926649094,
-0.038061682134866714,
-0.013031797483563423,
0.03735487535595894,
0.059902090579271317,
-0.011450311169028282,
0.005499860271811485,
0.028042661026120186,
0.05859449505805969,
0.0030856644734740257,
0.00662192003801465,
-0.00938289426267147,
0.003333047730848193,
-0.013597244396805763,
-0.011264774017035961,
0.042761966586112976,
-0.0015130137326195836,
-0.0030679942574352026,
-0.014083175919950008,
-0.03989938646554947,
0.008221075870096684,
0.036365341395139694,
-0.06870187073945999,
0.011591672897338867,
0.0017725452780723572,
0.030958248302340508,
0.014648623764514923,
-0.03486337140202522,
0.038344405591487885,
-0.00411274703219533,
-0.055767256766557693,
0.015390773303806782,
-0.04438762739300728,
0.00634803157299757,
0.014206867665052414,
-0.1107570230960846,
-0.014118516817688942,
0.007412663195282221,
-0.02903219312429428,
0.04318604990839958,
0.04541249945759773,
0.06124502792954445,
-0.07661813497543335,
0.013128983788192272,
-0.003560552140697837,
0.0877150371670723,
-0.027954310178756714,
-0.013173159211874008,
0.05329342558979988,
-0.031435344368219376,
0.017520036548376083,
0.03770827874541283,
-0.002513590734452009,
-0.01754654198884964,
-0.022494208067655563,
0.04721486568450928,
-0.0339621901512146,
0.030675524845719337,
-0.040535517036914825,
-0.009073665365576744,
-0.02874946966767311,
0.013535398989915848,
0.012422174215316772,
-0.02922656573355198,
0.026452340185642242,
-0.02275926060974598,
-0.010434272699058056,
0.049511995166540146,
0.05339944735169411,
0.020144065842032433,
0.04293866828083992,
-0.02175205759704113,
-0.02749488316476345,
-0.02090388536453247,
0.014471921138465405,
-0.07690085470676422,
0.046755436807870865,
0.013067137449979782,
0.05894789844751358,
0.006153658963739872,
0.03373247757554054,
0.03148835524916649,
0.058276429772377014,
0.0005243089399300516,
-0.012316152453422546,
0.0008382317028008401,
0.04290332645177841,
0.017325663939118385,
0.020426789298653603,
0.03493405133485794,
0.016565844416618347,
-0.03975802659988403,
0.02753022313117981,
0.01166235376149416,
0.037460893392562866,
-0.01851840503513813,
0.014887171797454357,
0.025321444496512413,
-0.00366878230124712,
0.037213511765003204,
-0.052621956914663315,
0.05396489426493645,
-0.028007321059703827,
-0.004066362511366606,
0.03136466443538666,
0.11111042648553848,
-0.06340079754590988,
0.02320101670920849,
-0.023183345794677734,
-0.030428141355514526,
0.02579854056239128,
-0.01924288459122181,
0.03792032226920128,
-0.0311349518597126,
-0.0033507179468870163,
-0.030516494065523148,
-0.006882555782794952,
0.0012556909350678325,
-0.0005566123290918767,
0.02680574357509613,
0.004311536904424429,
-0.020674172788858414,
-0.04399888217449188,
-0.04654339700937271,
0.06700552254915237,
-0.008340350352227688,
-0.02037377841770649,
0.016671866178512573,
0.015461454167962074,
-0.018430054187774658,
-0.007209455128759146,
-0.0537881925702095,
-0.08820980787277222,
0.09273338317871094,
-0.003971384838223457,
0.02878480963408947,
0.008600986562669277,
-0.015099214389920235,
0.037496235221624374,
-0.02231750451028347,
-0.05021880194544792,
0.016442151740193367,
-0.03958132490515709,
0.1010737344622612,
-0.013235004618763924,
-0.026576030999422073,
0.013932978734374046,
-0.01528475247323513,
0.02636398933827877,
0.04548317939043045,
0.01657467894256115,
-0.005795836448669434,
-0.017210807651281357,
0.028449075296521187,
-0.020002704113721848,
-0.06944401562213898,
-0.0031320489943027496,
0.020550481975078583,
-0.006286185700446367,
-0.005795836448669434,
-0.050890274345874786,
0.014454251155257225,
0.045059096068143845,
-0.030021727085113525,
-0.03848576918244362,
0.040252793580293655,
-0.083262138068676,
-0.03247788920998573,
-0.0011551915667951107,
-0.06258796900510788,
-0.05219786986708641,
0.008578898385167122,
-0.04011142998933792,
0.02178739756345749,
0.021045248955488205,
-0.06046753749251366,
-0.048098374158144,
-0.08919934183359146,
-0.040005408227443695,
0.0012545866193249822,
-0.002387690357863903,
-0.07654745131731033,
0.04442296549677849,
0.005119950044900179,
0.012749073095619678,
0.010160384699702263,
0.055696576833724976,
0.048699162900447845,
-0.0010066510876640677,
0.03198312222957611,
-0.022299835458397865,
-0.04353945702314377,
-0.030057067051529884,
-0.016221273690462112,
-0.05449499934911728,
0.0065070632845163345,
-0.06071492284536362,
0.008941138163208961,
-0.008830699138343334,
-0.008371273055672646,
-0.0016102000372484326,
-0.07972809672355652,
-0.028307713568210602,
-0.004912324715405703,
0.04410490393638611,
0.01759071834385395,
0.03311401605606079,
-0.03756691515445709,
0.031223302707076073,
0.02046213112771511,
-0.006568909157067537,
0.009170851670205593,
-0.010151549242436886,
-0.008861621841788292,
-0.009692123159766197,
0.07336681336164474,
-0.014816490933299065,
-0.018129659816622734,
-0.05223321169614792,
0.03710749000310898,
0.06848982721567154,
-0.024720657616853714,
0.04792167246341705,
0.05873585492372513,
0.0008332619327120483,
0.019437257200479507,
-0.023148005828261375,
-0.031276311725378036,
-0.0019061764469370246,
-0.05756961926817894,
-0.0214339941740036,
-0.0780317485332489,
0.014471921138465405,
-0.08983546495437622,
-0.03488104045391083,
0.031099611893296242,
-0.0188011284917593,
-0.029491620138287544,
0.008150395005941391,
0.03993472829461098,
-0.02595757320523262,
0.10962612926959991,
0.029562300071120262,
0.09386427700519562,
-0.006047637201845646,
-0.020815534517169,
0.04050017520785332,
-0.01952560804784298,
0.0033705970272421837,
0.005181795917451382,
0.030710866674780846,
-0.007492179051041603,
0.021681375801563263,
0.021540014073252678,
-0.0018995500868186355,
0.028996853157877922,
-0.08382758498191833,
0.04717952385544777,
0.008790940977633,
0.028572767972946167,
-0.005685397423803806,
-0.0037416720297187567,
-0.009109005331993103,
-0.029385598376393318,
0.00796485785394907,
-0.05050152912735939,
-0.042514581233263016,
0.048133715987205505,
0.0008498277748003602,
0.02005571499466896,
0.01307597290724516,
0.007240378297865391,
-0.047568269073963165,
-0.03813236579298973,
0.020568151026964188,
0.002182273892685771,
0.002875830512493849,
0.08820980787277222,
0.02187574841082096,
-0.020126396790146828,
0.06972674280405045,
-0.032566241919994354,
-0.05050152912735939,
0.012943445704877377,
0.04293866828083992,
0.028325384482741356,
0.017458191141486168,
0.05226854979991913,
0.05495442450046539,
0.03618863970041275,
0.012519360519945621,
-0.03919257968664169,
-0.0008111741626635194,
0.011105741374194622,
0.03756691515445709,
0.08354486525058746,
0.04633135348558426,
0.042479243129491806,
-0.007743979804217815,
0.04240855947136879,
-0.03486337140202522,
0.006670513190329075,
-0.0011805924586951733,
-0.020391449332237244,
0.008914632722735405,
-0.03958132490515709,
-0.028078000992536545,
0.09202657639980316,
0.003675408661365509,
-0.0788092389702797,
-0.049017228186130524,
-0.025975244119763374,
-0.012165956199169159,
-0.049830060452222824,
0.02539212629199028,
0.042585261166095734,
0.016671866178512573,
-0.037213511765003204,
0.00011112920037703589,
-0.010867193341255188,
0.030021727085113525,
0.03419190272688866,
-0.04438762739300728,
-0.05976073071360588,
-0.017475860193371773,
-0.06477907299995422,
-0.014454251155257225,
0.0034368603955954313,
-0.0468968003988266,
-0.0037416720297187567,
0.08036421984434128,
-0.04071221873164177,
0.008605403825640678,
0.01548795960843563,
0.01558514591306448,
0.04512977600097656,
0.013402871787548065,
0.019666969776153564,
-0.005959286354482174,
-0.03233652561903,
0.010381261818110943,
-0.016203604638576508,
-0.024755997583270073,
0.014215703122317791,
0.00804437417536974,
0.050996292382478714,
0.043080028146505356,
0.00466052396222949,
0.024084528908133507,
0.04767429083585739,
-0.010849523358047009,
-0.015532135032117367,
-0.01876578852534294,
-0.028484417125582695,
-0.02592223323881626,
-0.01130011398345232,
0.02413753978908062,
0.038061682134866714,
-0.019260553643107414,
-0.01528475247323513,
0.03173574060201645,
-0.005212719086557627,
-0.0041966806165874004,
0.0376022569835186,
-0.004448481369763613,
0.03700146824121475,
-0.05891256034374237,
0.0388038344681263,
0.017811594530940056,
0.05332876369357109,
-0.058806538581848145,
0.02890850231051445,
-0.03208914399147034,
-0.013782782480120659,
0.024755997583270073,
-0.017449354752898216,
-0.010195724666118622,
-0.004514744505286217,
-0.028113340958952904,
0.0010778842261061072,
0.009126675315201283,
0.013500058092176914,
-0.04548317939043045,
-0.04032347351312637,
-0.03855644911527634,
-0.03500473126769066,
0.050713568925857544,
0.014471921138465405,
-0.004428602289408445,
0.0003012222587130964,
-0.027547894045710564,
0.01332335639744997,
0.024031518027186394,
0.02834305539727211,
0.01977299153804779,
-0.001645540469326079,
-0.0019492476712912321,
-0.00008276019798358902,
-0.018005967140197754,
-0.014524932019412518,
-0.002308174269273877,
-0.027600904926657677,
0.016353800892829895,
0.022388186305761337,
-0.036577384918928146,
-0.036860108375549316,
0.029703661799430847,
-0.059124600142240524,
-0.009983682073652744,
-0.029668321833014488,
-0.01235149335116148,
-0.014224537648260593,
0.008362437598407269,
-0.03569387272000313,
0.09315747022628784,
0.03307867795228958,
0.04640203341841698,
-0.04763894900679588,
-0.013756277039647102,
-0.03343208134174347,
-0.029279576614499092,
-0.03739021345973015,
-0.04601328819990158,
-0.04495307430624962,
-0.020515142008662224,
0.027706926688551903,
-0.008764435537159443,
-0.029986387118697166,
0.0009552970295771956,
0.05951334536075592,
0.07018616795539856,
-0.03290197625756264,
-0.047002822160720825,
0.02078019455075264,
0.04551852121949196,
0.020886216312646866,
-0.03504007309675217,
0.003355135675519705,
0.031028930097818375,
-0.027883628383278847,
0.0123338233679533,
0.0016610019374638796,
0.03458064794540405,
0.0796574130654335,
0.018094319850206375,
-0.013102478347718716,
0.018324032425880432,
-0.029544631019234657,
0.025215422734618187,
-0.023872485384345055,
-0.03145301714539528,
-0.05050152912735939,
-0.02284761145710945,
0.06820710003376007,
0.00984232034534216,
0.020126396790146828,
0.00903832446783781,
-0.018447723239660263,
-0.05085493251681328,
-0.029120543971657753,
0.04071221873164177,
-0.0853118896484375,
-0.013040632009506226,
0.014498426578938961,
-0.011980418115854263,
0.017608387395739555,
0.027159148827195168,
0.04792167246341705,
-0.0017515618819743395,
-0.05947800725698471,
0.06820710003376007,
0.03120563179254532,
-0.005168543197214603,
-0.024278901517391205,
-0.03134699538350105,
-0.03731953352689743,
0.050112783908843994,
-0.055979300290346146,
0.049547333270311356,
0.02171671763062477,
-0.005809089168906212,
-0.014666293747723103,
-0.026134274899959564,
-0.004037648439407349,
0.0214339941740036,
0.012466349638998508,
-0.05240991339087486,
-0.0042253946885466576,
-0.030145417898893356,
0.00812830775976181,
0.01136196032166481,
-0.018465394154191017,
0.006719106342643499,
-0.016168262809515,
-0.04597794637084007,
-0.01067282073199749,
0.04626066982746124,
0.009904165752232075,
-0.04512977600097656,
-0.007121104281395674,
0.025745529681444168,
-0.0011176422704011202,
-0.009824649430811405,
-0.018624426797032356,
-0.0173786748200655,
-0.07902128249406815,
0.0764060914516449,
-0.035517171025276184,
0.012360328808426857,
-0.012484019622206688,
0.027759937569499016,
-0.000843201472889632,
0.02915588580071926
] |
17,550 | imodels.discretization.mdlp | _compute_boundary_points_all_features |
Computes all possible boundary points for each attribute in self._features (features to discretize)
:return:
| def _compute_boundary_points_all_features(self):
'''
Computes all possible boundary points for each attribute in self._features (features to discretize)
:return:
'''
boundaries = {}
for attr in self._features:
data_partition = self._data.loc[:, [attr, self._class_name]]
boundaries[attr] = self._feature_boundary_points(data=data_partition, feature=attr)
return boundaries
| (self) | [
0.05649569258093834,
-0.0270093847066164,
-0.03442193940281868,
0.017866626381874084,
-0.06148596480488777,
-0.03591537848114967,
0.03806447610259056,
-0.05758845433592796,
-0.013185971416532993,
0.0181307103484869,
-0.04629660025238991,
-0.008723867125809193,
-0.04979343339800835,
-0.029832348227500916,
-0.0423990897834301,
-0.01586323231458664,
-0.02121775783598423,
-0.018667984753847122,
0.0015264492249116302,
-0.04316402226686478,
-0.035132236778736115,
-0.009843946434557438,
0.002939069177955389,
-0.008701101876795292,
0.03944863751530647,
0.028612099587917328,
0.031544338911771774,
0.003658469533547759,
0.057224199175834656,
0.004534954205155373,
-0.06767827272415161,
-0.020070359110832214,
-0.010053392499685287,
-0.043528273701667786,
0.0064063058234751225,
-0.06913528591394424,
0.07736741006374359,
0.04199840873479843,
0.01849496364593506,
0.03434909135103226,
-0.006064818240702152,
-0.04101492464542389,
-0.09368596225976944,
0.005800734274089336,
0.029012778773903847,
-0.003813277231529355,
0.020562101155519485,
0.0072258757427334785,
-0.00820935983210802,
0.005217929370701313,
-0.03941221162676811,
-0.09310315549373627,
0.08100994676351547,
0.028429973870515823,
0.00473074009642005,
0.01236640103161335,
-0.020999204367399216,
0.04320044815540314,
-0.031180085614323616,
-0.005950989201664925,
-0.02908562868833542,
0.016464252024888992,
0.011064195074141026,
-0.0555122084915638,
0.010727261193096638,
-0.012867249548435211,
-0.08574523776769638,
0.03325632959604263,
-0.0070665148086845875,
0.03698992729187012,
0.014005540870130062,
-0.02300259843468666,
0.001433109282515943,
0.04473030939698219,
-0.04473030939698219,
0.007503618951886892,
0.036862436681985855,
0.002624900545924902,
0.047935739159584045,
0.005040355492383242,
-0.017447734251618385,
-0.0021570627577602863,
-0.014415326528251171,
-0.032454971224069595,
0.04228981211781502,
-0.005222482141107321,
0.028174996376037598,
0.03351130709052086,
0.03136221319437027,
-0.02205554023385048,
-0.0014376624021679163,
0.08516243100166321,
0.025352032855153084,
0.0469522550702095,
0.05496583133935928,
0.02524275705218315,
-0.03444015234708786,
0.011929296888411045,
-0.011173470877110958,
-0.019596830010414124,
0.009379523806273937,
0.016628164798021317,
0.0026772620622068644,
0.05296243727207184,
0.01672833412885666,
-0.00930667296051979,
0.036006443202495575,
-0.09732849150896072,
-0.06822465360164642,
0.0015401087002828717,
-0.026590494439005852,
0.035623978823423386,
0.013550224713981152,
0.0397036150097847,
-0.06735043972730637,
-0.05168754979968071,
-0.00951611902564764,
0.04028641805052757,
-0.045786645263433456,
-0.023312214761972427,
0.001444492139853537,
-0.017028843984007835,
-0.0012691952288150787,
0.0032077059149742126,
-0.023512553423643112,
0.021090269088745117,
0.04422035440802574,
0.06152239069342613,
-0.019105087965726852,
-0.02613517828285694,
0.01677386648952961,
-0.014278731308877468,
-0.05256175622344017,
0.025770924985408783,
-0.010271944105625153,
-0.06188664212822914,
-0.002829793142154813,
-0.02511526830494404,
0.05292601138353348,
-0.00752638466656208,
0.039157234132289886,
-0.00028656492941081524,
0.03403947502374649,
-0.004045488778501749,
0.00045304009108804166,
0.013832520693540573,
0.014469964429736137,
-0.018813684582710266,
-0.046588003635406494,
-0.048336420208215714,
0.012229805812239647,
0.04097850248217583,
-0.013632181100547314,
-0.04105135053396225,
-0.005308992695063353,
-0.006338008213788271,
0.027264362201094627,
-0.029395245015621185,
-0.02076243981719017,
-0.026845471933484077,
-0.0804271399974823,
0.029340606182813644,
-0.04826356843113899,
-0.043491847813129425,
-0.01810339093208313,
0.024605313315987587,
0.011219003237783909,
-0.0573699027299881,
0.03085225820541382,
0.025752712041139603,
0.015016344375908375,
0.005468353163450956,
-0.05951899662613869,
0.02828427217900753,
-0.0008337986655533314,
0.056349992752075195,
0.03535078838467598,
-0.043528273701667786,
0.05245248228311539,
0.07612895220518112,
0.07325134426355362,
-0.04647872596979141,
-0.027719680219888687,
-0.019706105813384056,
0.029340606182813644,
-0.016008934006094933,
0.008377826772630215,
-0.019961083307862282,
-0.022274091839790344,
-0.0014934387290850282,
-0.036479972302913666,
-0.036935288459062576,
-0.03842872753739357,
0.04021356999874115,
-0.011792701669037342,
0.025352032855153084,
-0.014743153937160969,
0.014934387058019638,
-0.06625768542289734,
0.009752883575856686,
-0.0415613055229187,
-0.03582431748509407,
-0.020197847858071327,
0.0025429436936974525,
-0.01238461397588253,
0.008004467003047466,
-0.04942917823791504,
-0.027501126751303673,
0.022237665951251984,
-0.0023073172196745872,
-0.01505276933312416,
-0.035587552934885025,
-0.027246149256825447,
0.020434612408280373,
0.07423482835292816,
-0.02247443050146103,
-0.00694357929751277,
0.002927686320617795,
0.0041137863881886005,
0.017047056928277016,
-0.039557911455631256,
-0.03400304913520813,
0.03092510811984539,
-0.02028891071677208,
0.008960632607340813,
-0.00160499126650393,
0.045203838497400284,
0.027537552639842033,
0.004735293332487345,
-0.07379772514104843,
0.017802882939577103,
-0.05518438294529915,
-0.03504117205739021,
-0.028357122093439102,
0.03232748433947563,
0.009183737449347973,
0.022820472717285156,
0.01167431939393282,
0.02343970350921154,
0.01374145783483982,
0.027719680219888687,
-0.003394385799765587,
-0.03540542349219322,
-0.011392023414373398,
-0.019596830010414124,
-0.0206895899027586,
0.017356671392917633,
0.03363879770040512,
0.03223641961812973,
0.0015537681756541133,
-0.031234724447131157,
-0.040905650705099106,
-0.04720723256468773,
-0.0056322673335671425,
0.005400056019425392,
-0.1349194347858429,
-0.008792164735496044,
0.029395245015621185,
0.0413791798055172,
0.02965022251009941,
0.03223641961812973,
0.03791877254843712,
0.015562724322080612,
0.06053890660405159,
0.010599772445857525,
0.046624429523944855,
0.03755452111363411,
0.004635124001652002,
-0.019269002601504326,
-0.02697296068072319,
0.08807645738124847,
0.008013573475182056,
0.0011024355189874768,
-0.002718240488320589,
-0.038574427366256714,
0.0022743067238479853,
0.020598527044057846,
-0.022601919248700142,
-0.012739760801196098,
-0.02212839014828205,
0.062032345682382584,
-0.02600768953561783,
-0.024896716699004173,
0.009816627949476242,
-0.024860290810465813,
-0.0067568994127213955,
-0.04385610297322273,
-0.023785743862390518,
0.0002460132818669081,
-0.039084382355213165,
-0.06261514872312546,
0.022438006475567818,
0.05110474303364754,
-0.01988823339343071,
0.05937329679727554,
-0.017383990809321404,
0.031143661588430405,
-0.08734795451164246,
0.036935288459062576,
-0.0014205879997462034,
0.03839230164885521,
0.015143833123147488,
0.0278471689671278,
0.044438909739255905,
-0.0476079136133194,
-0.04159773141145706,
0.04629660025238991,
0.010891174897551537,
-0.003150791395455599,
-0.005249801091849804,
0.03185395523905754,
-0.023111874237656593,
0.07237713783979416,
0.010973132215440273,
-0.01952398009598255,
-0.06745971739292145,
0.02695474773645401,
0.012876356020569801,
-0.021472735330462456,
0.029449881985783577,
-0.018367474898695946,
0.008072764612734318,
-0.00884225033223629,
0.06316152960062027,
0.028357122093439102,
0.02826605923473835,
0.02693653479218483,
-0.026754407212138176,
-0.0079270638525486,
-0.000542395981028676,
-0.024641739204525948,
0.027300788089632988,
0.020216060802340508,
0.0689895823597908,
-0.03210893273353577,
0.06465496867895126,
0.05908189341425896,
0.033766284584999084,
-0.008186593651771545,
-0.04232623800635338,
-0.016883142292499542,
0.05991967394948006,
-0.029377032071352005,
0.031544338911771774,
-0.024095358327031136,
0.0013864393113180995,
-0.018686195835471153,
0.0046624429523944855,
0.010800112038850784,
0.007544597610831261,
-0.056386418640613556,
-0.05376379191875458,
0.027027597650885582,
0.05973754823207855,
0.011637894436717033,
-0.016892248764634132,
0.016172848641872406,
-0.035970017313957214,
0.023585403338074684,
0.04371039941906929,
0.11189863085746765,
-0.04032284393906593,
-0.017966795712709427,
-0.007963488809764385,
-0.0058098407462239265,
0.010882068425416946,
0.004635124001652002,
0.038283027708530426,
0.009343097917735577,
-0.03358415886759758,
0.006542900577187538,
0.020853504538536072,
-0.04403822869062424,
0.004332337994128466,
-0.00045474752550944686,
-0.006479156203567982,
-0.025861987844109535,
-0.0038428728003054857,
-0.016045359894633293,
0.07969862967729568,
-0.04414750635623932,
-0.006347114685922861,
0.05707849934697151,
0.010335688479244709,
-0.012648697011172771,
-0.018030541017651558,
0.018886536359786987,
-0.05165112391114235,
0.06651265919208527,
-0.0025953049771487713,
0.014315156266093254,
0.0025953049771487713,
-0.03325632959604263,
0.015544511377811432,
0.0101808812469244,
-0.04644230008125305,
0.053654517978429794,
-0.024313909932971,
0.04669727757573128,
0.004967505112290382,
-0.021327033638954163,
0.02613517828285694,
-0.023512553423643112,
0.028193209320306778,
0.016564421355724335,
-0.017484160140156746,
0.007858766242861748,
-0.001002265838906169,
0.05001198500394821,
0.016919568181037903,
-0.052379630506038666,
0.07139365375041962,
0.0291038416326046,
-0.018813684582710266,
-0.013395416550338268,
-0.011164365336298943,
0.005217929370701313,
0.01454281434416771,
0.03190859407186508,
-0.012685122899711132,
0.06888030469417572,
-0.012694229371845722,
-0.019778955727815628,
-0.005372736603021622,
-0.07343347370624542,
0.013786989264190197,
-0.0040204464457929134,
-0.02826605923473835,
0.04636945202946663,
0.0056322673335671425,
-0.06745971739292145,
-0.027938231825828552,
-0.10257374495267868,
-0.028375335037708282,
-0.012630484998226166,
-0.0012384613510221243,
-0.031016172841191292,
0.01903223805129528,
0.024058932438492775,
-0.017074376344680786,
-0.014642984606325626,
0.012138742953538895,
0.056277140974998474,
-0.016045359894633293,
0.02912205457687378,
-0.027300788089632988,
-0.0181307103484869,
-0.05573076009750366,
-0.014160349033772945,
-0.021490946412086487,
0.015307746827602386,
-0.06385361403226852,
0.05522080510854721,
-0.019250789657235146,
0.0189229603856802,
0.04276334121823311,
-0.012721547856926918,
-0.044766735285520554,
0.004908313974738121,
0.005568522959947586,
-0.006215072702616453,
-0.01387805212289095,
-0.017957689240574837,
0.07161220908164978,
0.0019908722024410963,
-0.018777260556817055,
-0.017903052270412445,
0.01628212444484234,
-0.03573325276374817,
0.020489251241087914,
0.05554863438010216,
-0.0072031100280582905,
0.026772620156407356,
-0.05438302457332611,
0.022765833884477615,
0.05095904320478439,
0.007790468167513609,
0.03671673685312271,
0.018431218340992928,
-0.06906243413686752,
0.03280101343989372,
-0.02562522329390049,
-0.015772169455885887,
-0.03447657823562622,
-0.01305848266929388,
-0.01151040568947792,
-0.0469522550702095,
0.03260067477822304,
-0.046624429523944855,
-0.025097055360674858,
-0.020962780341506004,
0.022438006475567818,
0.01729292795062065,
0.07387057691812515,
0.05871763825416565,
0.013814307749271393,
0.08807645738124847,
0.03806447610259056,
0.08822216093540192,
-0.004468933213502169,
-0.029431670904159546,
0.004245827905833721,
-0.03662567213177681,
0.0005862202378921211,
-0.014488176442682743,
0.008163828402757645,
-0.030688343569636345,
0.02342149056494236,
0.010900281369686127,
0.02824784629046917,
0.019196150824427605,
-0.08982487767934799,
0.009270248003304005,
0.018640665337443352,
0.017092587426304817,
0.007767702452838421,
0.0158541277050972,
-0.020252486690878868,
-0.031216511502861977,
0.06844320148229599,
-0.015143833123147488,
-0.0002761780342552811,
0.014715835452079773,
0.00797714851796627,
-0.009069908410310745,
0.07117510586977005,
0.043054744601249695,
-0.05769772827625275,
0.02965022251009941,
0.007899744436144829,
0.01765718124806881,
-0.007640213705599308,
0.09208324551582336,
0.047134384512901306,
-0.014406220056116581,
0.028976352885365486,
0.018331049010157585,
-0.07984433323144913,
-0.020525675266981125,
0.005063121672719717,
0.054055195301771164,
-0.029395245015621185,
0.0108092175796628,
0.01937827840447426,
0.05292601138353348,
-0.015590042807161808,
-0.00420484971255064,
-0.044876012951135635,
0.005773415323346853,
0.01761164888739586,
0.04720723256468773,
0.03085225820541382,
-0.017948582768440247,
-0.00729417335242033,
0.03325632959604263,
-0.023986082524061203,
0.011993041262030602,
-0.028193209320306778,
-0.008341401815414429,
0.02788359299302101,
-0.040395695716142654,
-0.07117510586977005,
0.09077193588018417,
-0.0023881359957158566,
-0.09113618731498718,
-0.003988574258983135,
-0.024896716699004173,
0.05573076009750366,
-0.051505424082279205,
0.012111423537135124,
-0.0011303236242383718,
0.06636695563793182,
-0.032946713268756866,
-0.031671829521656036,
0.020980993285775185,
-0.015116513706743717,
-0.03722669184207916,
-0.019669679924845695,
-0.055949315428733826,
-0.04986628144979477,
-0.04720723256468773,
-0.019269002601504326,
0.02518811821937561,
-0.04604162275791168,
-0.010062498971819878,
0.020252486690878868,
-0.05095904320478439,
0.006378986872732639,
-0.003419428365305066,
0.01988823339343071,
-0.022401580587029457,
0.014205880463123322,
0.04811786487698555,
-0.028065720573067665,
-0.017438629642128944,
0.012949205935001373,
-0.04210768640041351,
-0.023749317973852158,
-0.04119705408811569,
-0.03535078838467598,
0.048809949308633804,
0.023676468059420586,
0.0011491054901853204,
0.06997306644916534,
0.011555937118828297,
-0.03527793660759926,
-0.00862369779497385,
-0.006415411829948425,
-0.04371039941906929,
-0.04498528689146042,
-0.021563798189163208,
0.008596379309892654,
0.0770760104060173,
0.013377203606069088,
-0.03791877254843712,
0.004252657759934664,
-0.023986082524061203,
0.02212839014828205,
0.02744648978114128,
0.006684049032628536,
-0.004409742075949907,
-0.09150043874979019,
0.0005907734157517552,
0.010244625620543957,
0.03241854906082153,
-0.03684422746300697,
0.017766457051038742,
-0.03438551723957062,
0.001250982633791864,
0.07758596539497375,
-0.022255878895521164,
-0.008072764612734318,
0.015535404905676842,
-0.04902850091457367,
0.05919116735458374,
0.05037623643875122,
0.00585537264123559,
0.0029641115106642246,
-0.06421786546707153,
-0.017393097281455994,
-0.027519339695572853,
0.0380280502140522,
0.014734047465026379,
-0.023202937096357346,
-0.005727883893996477,
-0.02032533660531044,
0.010690835304558277,
-0.021308820694684982,
0.04473030939698219,
0.006998217198997736,
-0.04906492680311203,
-0.021563798189163208,
-0.04684298112988472,
-0.005541204009205103,
-0.01981538161635399,
-0.011464874260127544,
-0.05580361187458038,
0.032436762005090714,
-0.0014126199530437589,
-0.06534705311059952,
-0.06957238912582397,
0.012967418879270554,
-0.006124009378254414,
-0.07343347370624542,
-0.046988680958747864,
0.00836416706442833,
-0.032910291105508804,
-0.011792701669037342,
-0.0154352355748415,
0.04957488179206848,
0.036443546414375305,
0.04065067321062088,
-0.023749317973852158,
-0.00820935983210802,
-0.043418999761343,
0.002788814716041088,
-0.06432714313268661,
-0.018012328073382378,
0.011555937118828297,
-0.0026476664934307337,
0.08953347057104111,
0.01635497435927391,
-0.03496832028031349,
0.021909838542342186,
0.07372487336397171,
-0.031216511502861977,
-0.02693653479218483,
-0.014169455505907536,
-0.005732437130063772,
0.0780959203839302,
0.011310066096484661,
-0.03214535862207413,
0.07598324865102768,
-0.007130259182304144,
-0.01170163881033659,
0.02609875239431858,
0.0202706977725029,
-0.03657103702425957,
0.058025557547807693,
0.00015381166303995997,
-0.034203387796878815,
-0.002561156405135989,
-0.0706651508808136,
0.04942917823791504,
0.004885547794401646,
0.033292755484580994,
-0.0006374433287419379,
0.02207375317811966,
0.006857069209218025,
0.023130087181925774,
0.007157578133046627,
0.03615214303135872,
-0.006879834923893213,
-0.04371039941906929,
-0.04826356843113899,
0.08188415318727493,
0.0088559091091156,
0.008295869454741478,
0.022237665951251984,
-0.01595429703593254,
0.03717205300927162,
0.05664139613509178,
0.06363505870103836,
0.002567986026406288,
-0.05496583133935928,
0.040432121604681015,
0.006460943724960089,
-0.036917075514793396,
-0.02249264344573021,
0.008505315519869328,
0.02524275705218315,
0.0344947911798954,
-0.07328777015209198,
0.08086424320936203,
-0.016892248764634132,
-0.021090269088745117,
0.019760744646191597,
-0.039995018392801285,
-0.0831226110458374,
0.05033981055021286,
0.0011337385512888432,
-0.044402483850717545,
0.012630484998226166,
0.0216184351593256,
0.005673245992511511,
0.030579067766666412,
0.010317475534975529,
0.02207375317811966,
-0.012967418879270554,
-0.0634165108203888,
0.014451751485466957,
0.07277781516313553,
0.012038572691380978,
-0.0511411689221859,
-0.002308455528691411,
0.005131418816745281,
0.03893868252635002,
-0.0328192263841629,
-0.005882691591978073,
-0.015007237903773785,
-0.03227284550666809,
-0.0010312922531738877,
-0.03495010733604431,
0.04902850091457367,
0.00815927516669035,
0.023075450211763382,
0.029377032071352005,
0.035132236778736115
] |
17,551 | imodels.discretization.mdlp | _feature_boundary_points |
Given an attribute, find all potential cut_points (boundary points)
:param feature: feature of interest
:param partition_index: indices of rows for which feature value falls within interval of interest
:return: array with potential cut_points
| def _feature_boundary_points(self, data, feature):
'''
Given an attribute, find all potential cut_points (boundary points)
:param feature: feature of interest
:param partition_index: indices of rows for which feature value falls within interval of interest
:return: array with potential cut_points
'''
# get dataframe with only rows of interest, and feature and class columns
data_partition = data.copy(deep=True)
data_partition.sort_values(feature, ascending=True, inplace=True)
boundary_points = []
# add temporary columns
data_partition['class_offset'] = data_partition[self._class_name].shift(
1) # column where first value is now second, and so forth
data_partition['feature_offset'] = data_partition[feature].shift(
1) # column where first value is now second, and so forth
data_partition['feature_change'] = (data_partition[feature] != data_partition['feature_offset'])
data_partition['mid_points'] = data_partition.loc[:, [feature, 'feature_offset']].mean(axis=1)
potential_cuts = data_partition[data_partition['feature_change'] == True].index[1:]
sorted_index = data_partition.index.tolist()
for row in potential_cuts:
old_value = data_partition.loc[sorted_index[sorted_index.index(row) - 1]][feature]
new_value = data_partition.loc[row][feature]
old_classes = data_partition[data_partition[feature] == old_value][self._class_name].unique()
new_classes = data_partition[data_partition[feature] == new_value][self._class_name].unique()
if len(set.union(set(old_classes), set(new_classes))) > 1:
boundary_points += [data_partition.loc[row]['mid_points']]
return set(boundary_points)
| (self, data, feature) | [
0.05389098450541496,
-0.021188536658883095,
-0.06113775819540024,
0.03351173177361488,
-0.011569088324904442,
-0.041420646011829376,
0.03398994356393814,
-0.014180869795382023,
-0.003536021104082465,
-0.018871041014790535,
-0.03450494632124901,
-0.019753897562623024,
-0.03384280204772949,
-0.07272523641586304,
-0.06786953657865524,
0.008897529914975166,
-0.008318156003952026,
0.016948990523815155,
0.02788352593779564,
0.008088245987892151,
-0.031249413266777992,
-0.03242655470967293,
-0.024885496124625206,
0.015155689790844917,
0.02449924685060978,
0.017739882692694664,
0.01912854053080082,
0.008143424056470394,
0.015541939064860344,
-0.041935645043849945,
-0.04134707525372505,
-0.018530772998929024,
-0.027717990800738335,
-0.03847779706120491,
-0.0032118475064635277,
-0.07239416986703873,
0.08335629105567932,
0.008410120382905006,
0.05764312297105789,
0.058930620551109314,
-0.04090564697980881,
-0.044473856687545776,
-0.07301952689886093,
-0.024370497092604637,
0.027570849284529686,
0.020967822521924973,
0.02172192931175232,
0.030624058097600937,
-0.02722138538956642,
0.028085848316550255,
-0.022255321964621544,
-0.04381171613931656,
0.02556603029370308,
0.04039064794778824,
-0.03619708493351936,
0.04921920597553253,
0.02175871469080448,
-0.03213226795196533,
-0.00045953330118209124,
0.0018921621376648545,
0.0027750178705900908,
0.034707266837358475,
0.05760633572936058,
-0.003931466955691576,
0.017491579055786133,
-0.029042275622487068,
-0.06566239148378372,
0.019974609836935997,
-0.025492459535598755,
0.03582922741770744,
0.006042043678462505,
-0.01577184908092022,
0.048373136669397354,
0.02519817464053631,
-0.03847779706120491,
0.021151751279830933,
0.037999581545591354,
-0.015063725411891937,
0.058194905519485474,
-0.01973550394177437,
0.0372270829975605,
0.034431371837854385,
0.03329101949930191,
-0.003303811652585864,
0.055693481117486954,
0.012139266356825829,
0.02019532397389412,
0.03673047572374344,
0.0049476707354187965,
-0.021151751279830933,
0.003131378907710314,
0.09166985005140305,
0.03459690883755684,
0.02185067906975746,
0.07151131331920624,
0.023414069786667824,
-0.05219884589314461,
-0.01882505975663662,
-0.06812703609466553,
-0.04296564683318138,
0.05208848789334297,
0.07916273176670074,
0.024609602987766266,
0.06341847032308578,
0.031746018677949905,
-0.02221853658556938,
0.010631054639816284,
-0.0257867444306612,
-0.08806485682725906,
0.007260568905621767,
-0.04219314455986023,
0.06385989487171173,
-0.028729597106575966,
0.009775787591934204,
-0.03884565085172653,
-0.048042066395282745,
0.0005954678053967655,
0.05378062650561333,
-0.05083777382969856,
-0.036141905933618546,
0.03047691471874714,
-0.03603154793381691,
-0.004251042380928993,
0.04083207622170448,
-0.020986216142773628,
-0.006989274639636278,
0.06753846257925034,
0.05422205477952957,
-0.06191025674343109,
-0.04451064392924309,
0.032261017709970474,
-0.015054529532790184,
-0.048520278185606,
-0.00368086458183825,
-0.006396105978637934,
-0.06360239535570145,
-0.0009776937076821923,
0.008497485890984535,
0.02422335371375084,
-0.05683383718132973,
0.04167814552783966,
-0.029042275622487068,
0.018466398119926453,
-0.007577844895422459,
-0.002570397686213255,
0.0004224602598696947,
0.01598336733877659,
0.006805346347391605,
-0.002068043453618884,
-0.019110146909952164,
-0.04778456687927246,
0.038036368787288666,
-0.004271734040230513,
-0.05098491907119751,
0.018052559345960617,
-0.016406401991844177,
0.006731774657964706,
-0.04565099626779556,
0.0026232770178467035,
-0.03408190980553627,
-0.07397595047950745,
-0.026228172704577446,
-0.025216566398739815,
-0.009637841954827309,
-0.03991243615746498,
0.0665084645152092,
-0.007646818179637194,
-0.043922070413827896,
-0.050175633281469345,
0.009044673293828964,
0.04653385281562805,
0.07710273563861847,
-0.010824179276823997,
0.032261017709970474,
-0.019551575183868408,
0.09681984782218933,
0.026375314220786095,
-0.006929497700184584,
0.05764312297105789,
0.042487431317567825,
0.028931917622685432,
-0.03954457864165306,
-0.017859434708952904,
-0.014953368343412876,
0.0010978218633681536,
-0.023322105407714844,
0.008502084761857986,
-0.02736852690577507,
0.019845860078930855,
0.04565099626779556,
-0.0424138605594635,
-0.07294595241546631,
-0.006929497700184584,
0.0332542322576046,
0.00795029941946268,
-0.0017162807052955031,
-0.04274493083357811,
0.053927771747112274,
-0.06547846645116806,
0.014879797585308552,
-0.01090694684535265,
-0.03145173564553261,
0.030440129339694977,
0.0017622627783566713,
0.002738232258707285,
0.005389098543673754,
-0.024002639576792717,
0.006290346849709749,
-0.006428293418139219,
-0.0027451294008642435,
-0.045540641993284225,
-0.05241955816745758,
0.011753017082810402,
0.053707055747509,
0.08011915534734726,
-0.03435780107975006,
-0.0024761343374848366,
-0.026081029325723648,
0.02620977908372879,
-0.003821109887212515,
-0.024480853229761124,
-0.060733117163181305,
0.0273133497685194,
0.04955027624964714,
0.042634572833776474,
-0.013086496852338314,
0.05208848789334297,
-0.004800527822226286,
0.029042275622487068,
-0.04745349660515785,
0.005968472454696894,
-0.08129629492759705,
-0.01336238905787468,
-0.08622557669878006,
0.03161726891994476,
0.059813473373651505,
-0.004407381173223257,
0.0033796820789575577,
0.04164136201143265,
0.010621857829391956,
-0.029759595170617104,
-0.025087816640734673,
-0.00485110841691494,
0.0052143665961921215,
-0.03877208009362221,
-0.014934975653886795,
0.010842571966350079,
0.04565099626779556,
0.05973990261554718,
0.0011840382358059287,
-0.03689601272344589,
-0.027773169800639153,
-0.037815652787685394,
-0.008033066987991333,
0.05775347724556923,
-0.1013076975941658,
-0.016240866854786873,
0.023873889818787575,
0.02788352593779564,
0.04325992986559868,
0.008226192556321621,
0.008869941346347332,
0.0436277873814106,
0.03402673080563545,
-0.04774777963757515,
0.02032407373189926,
0.015403993427753448,
0.02346924878656864,
0.01539479661732912,
0.01014364417642355,
-0.01150471344590187,
0.04134707525372505,
-0.027809955179691315,
-0.011890962719917297,
-0.03822029381990433,
0.012589890509843826,
0.006524855736643076,
-0.053927771747112274,
-0.010539090260863304,
-0.026081029325723648,
0.024995852261781693,
-0.041420646011829376,
-0.032389767467975616,
0.041494220495224,
-0.032261017709970474,
-0.034155480563640594,
-0.02001139707863331,
-0.02023211121559143,
0.006626015994697809,
0.001004708232358098,
-0.11616910248994827,
-0.0020358560141175985,
0.03130459412932396,
0.00035147543530911207,
0.0628666877746582,
0.03191155567765236,
0.007991683669388294,
-0.06477953493595123,
0.01211167685687542,
-0.008336548693478107,
0.05650276690721512,
0.0003787773021031171,
0.00677315890789032,
0.043039217591285706,
-0.03351173177361488,
-0.015339618548750877,
0.03268405422568321,
-0.004531532991677523,
0.021096572279930115,
0.0035797040909528732,
0.05046992003917694,
-0.014594708569347858,
0.028729597106575966,
-0.01421765610575676,
0.008492887951433659,
-0.06525775045156479,
0.01354631781578064,
0.0192205049097538,
0.0065110609866678715,
0.05149991810321808,
-0.0114403385668993,
-0.010649447329342365,
0.023671569302678108,
0.07165845483541489,
0.013555513694882393,
0.02523496001958847,
0.0102999834343791,
-0.02477513812482357,
-0.02663281373679638,
-0.0038349046371877193,
-0.052713844925165176,
0.03216905519366264,
0.01148632075637579,
0.05720169469714165,
0.020728716626763344,
-0.00300492811948061,
0.032352983951568604,
-0.02218174934387207,
-0.010741411708295345,
-0.019367648288607597,
-0.007288157939910889,
0.04138386249542236,
-0.001569138141348958,
0.026375314220786095,
0.02199782244861126,
0.011044892482459545,
-0.014741851016879082,
0.030826378613710403,
-0.007610032334923744,
0.0506538487970829,
0.008184808306396008,
-0.020710323005914688,
0.014438369311392307,
0.040721721947193146,
0.04138386249542236,
-0.029759595170617104,
0.03582922741770744,
-0.029097452759742737,
0.009481502696871758,
0.012010516598820686,
0.11646338552236557,
-0.044657785445451736,
0.027515670284628868,
-0.01083337515592575,
-0.016884615644812584,
0.008111236616969109,
-0.04108957573771477,
0.030716022476553917,
-0.043738145381212234,
-0.012120873667299747,
-0.012332390993833542,
-0.019091755151748657,
0.02172192931175232,
-0.01428203098475933,
0.031654056161642075,
0.010474715381860733,
-0.04701206833124161,
-0.037852440029382706,
-0.024995852261781693,
0.050874561071395874,
-0.00226231780834496,
-0.024940673261880875,
0.009858555160462856,
0.01465908344835043,
-0.01750997267663479,
-0.01546836830675602,
-0.00022775493562221527,
-0.08703485876321793,
0.10071912407875061,
-0.015974171459674835,
0.014456762000918388,
0.00909065455198288,
-0.008460700511932373,
-0.016461580991744995,
-0.03765011951327324,
-0.02819620445370674,
0.011293196119368076,
-0.03649137169122696,
0.056613124907016754,
0.006460480857640505,
-0.036307442933321,
0.006906506605446339,
-0.0026232770178467035,
0.04377492889761925,
0.023138176649808884,
-0.024425674229860306,
-0.022439248859882355,
-0.007936504669487476,
-0.0030187228694558144,
0.0031497718300670385,
-0.05775347724556923,
0.06146882846951485,
0.03231619670987129,
0.016728276386857033,
0.006699587218463421,
-0.006078829523175955,
-0.007890523411333561,
0.01733523979783058,
0.005733964033424854,
0.007812353316694498,
0.018264077603816986,
-0.03555333614349365,
-0.02574995905160904,
0.02398424781858921,
-0.08151701092720032,
-0.03191155567765236,
0.009132038801908493,
-0.03292316198348999,
0.004117694217711687,
0.002297953935340047,
-0.03991243615746498,
-0.04061136394739151,
-0.14751048386096954,
-0.005986865144222975,
-0.01898139715194702,
-0.004782135132700205,
-0.04377492889761925,
0.04579814150929451,
0.015220064669847488,
0.01705934666097164,
-0.019294075667858124,
0.05900419130921364,
0.05260348692536354,
-0.006469677202403545,
0.03770529478788376,
-0.03176441416144371,
-0.03954457864165306,
-0.04951349273324013,
-0.07548416405916214,
-0.03636261820793152,
0.02041603811085224,
-0.043039217591285706,
0.027681205421686172,
0.009233199059963226,
-0.022016214206814766,
0.02264157123863697,
-0.04064814746379852,
-0.04704885184764862,
-0.01141274906694889,
0.033732444047927856,
0.017289258539676666,
0.04704885184764862,
-0.04182529076933861,
0.04796849563717842,
0.014778637327253819,
-0.00778936268761754,
0.027607634663581848,
-0.03047691471874714,
-0.06477953493595123,
-0.004533831961452961,
0.0936562791466713,
-0.04090564697980881,
-0.008819361217319965,
-0.049292776733636856,
0.012911764904856682,
0.07239416986703873,
-0.037999581545591354,
0.010134448297321796,
0.030550487339496613,
-0.01298533659428358,
-0.008180210366845131,
-0.020397646352648735,
-0.004685572814196348,
-0.006350123789161444,
-0.04741670936346054,
-0.0037245475687086582,
-0.02736852690577507,
0.01613970659673214,
-0.02032407373189926,
-0.05745919421315193,
-0.017749078571796417,
-0.0009121692855842412,
-0.005968472454696894,
0.061983827501535416,
0.0402802936732769,
0.004513139836490154,
0.08732914179563522,
0.05561991035938263,
0.1031469777226448,
-0.02435210347175598,
0.0031612671446055174,
0.0570545494556427,
-0.05348634347319603,
-0.014640690758824348,
0.026871921494603157,
-0.005692580249160528,
-0.005030438303947449,
0.04377492889761925,
-0.01671908050775528,
-0.004037225618958473,
0.0021358670201152563,
-0.09078699350357056,
0.04921920597553253,
0.02032407373189926,
0.020029788836836815,
0.0010162037797272205,
0.0029520487878471613,
-0.006143204402178526,
-0.017988184466958046,
0.04866742342710495,
-0.0283801332116127,
-0.047343138605356216,
0.020820681005716324,
0.016461580991744995,
-0.006598426960408688,
0.04064814746379852,
0.030918342992663383,
-0.03167244791984558,
-0.0021692041773349047,
0.016194883733987808,
-0.05131598934531212,
0.003841801779344678,
0.08784414082765579,
0.04381171613931656,
0.0011782904621213675,
0.05201491713523865,
0.00288767390884459,
-0.03746619075536728,
0.027534062042832375,
0.021133359521627426,
0.014373994432389736,
0.009803377091884613,
0.01794220320880413,
0.01608452759683132,
0.004317716229707003,
0.0010880506597459316,
-0.0048786974512040615,
0.002063445281237364,
0.01298533659428358,
0.020084967836737633,
0.0811491534113884,
0.049108847975730896,
0.05694419518113136,
0.02185067906975746,
0.05260348692536354,
-0.0023749738465994596,
0.00769739830866456,
-0.020213717594742775,
0.014888993464410305,
-0.005508651956915855,
-0.03542458638548851,
-0.053228843957185745,
0.1092533990740776,
-0.012948550283908844,
-0.05326562747359276,
-0.01741800829768181,
-0.03159887716174126,
0.03518547862768173,
-0.059114549309015274,
0.0205999668687582,
0.019809074699878693,
0.030642449855804443,
-0.05830526351928711,
-0.010989714413881302,
-0.012212837114930153,
0.01824568584561348,
0.024186568334698677,
-0.03178280591964722,
-0.0591881200671196,
-0.04226671904325485,
-0.05782704800367355,
-0.00907686073333025,
0.026172993704676628,
-0.04616599529981613,
-0.024186568334698677,
0.038735296577215195,
-0.057495977729558945,
-0.005269545130431652,
0.00015403992438223213,
0.010989714413881302,
0.0028049061074852943,
0.0344865508377552,
0.024554423987865448,
-0.012663462199270725,
0.005554634146392345,
0.01760193519294262,
-0.03704315423965454,
-0.03301512449979782,
0.021519608795642853,
-0.016194883733987808,
0.041935645043849945,
0.004540729336440563,
0.006593828555196524,
0.035866014659404755,
0.05378062650561333,
-0.034192267805337906,
-0.03527744486927986,
-0.011633463203907013,
-0.009325163438916206,
-0.011513910256326199,
-0.00016654130013193935,
0.04520957171916962,
0.06084347516298294,
-0.00024284279788844287,
-0.023506034165620804,
0.022439248859882355,
-0.023726748302578926,
-0.012451943941414356,
0.04406921565532684,
-0.011421945877373219,
0.01885264739394188,
-0.042818501591682434,
0.030918342992663383,
0.013822210021317005,
0.01465908344835043,
-0.06257239729166031,
0.018254881724715233,
-0.04414278641343117,
-0.009444717317819595,
0.04977099224925041,
0.0025428084190934896,
-0.026136208325624466,
0.022200142964720726,
-0.042855288833379745,
0.02087586000561714,
0.013629085384309292,
0.003485440742224455,
-0.03571886941790581,
-0.03279441222548485,
-0.03481762111186981,
-0.02254960685968399,
0.01592818833887577,
0.002339337719604373,
-0.001251861802302301,
-0.009063065983355045,
-0.07592558860778809,
0.01023560855537653,
0.01400613784790039,
0.036289047449827194,
0.05098491907119751,
-0.014226851984858513,
-0.009081458672881126,
-0.01836523786187172,
-0.012304801493883133,
-0.0020772400312125683,
0.013196853920817375,
-0.051794201135635376,
0.03487280011177063,
0.014410780742764473,
-0.03698797523975372,
-0.04609242454171181,
0.019110146909952164,
-0.049660634249448776,
-0.03765011951327324,
-0.0309735219925642,
-0.01099891122430563,
0.007058247458189726,
0.006897310260683298,
-0.012580693699419498,
0.0832827240228653,
0.018714701756834984,
0.030109059065580368,
-0.050874561071395874,
0.00011287161032669246,
-0.039434220641851425,
-0.06992953270673752,
-0.04693849757313728,
-0.026264958083629608,
-0.055031340569257736,
-0.0035889004357159138,
0.05683383718132973,
0.03726387023925781,
-0.04097922146320343,
0.012185248546302319,
0.07121703028678894,
0.005752356722950935,
-0.021924249827861786,
-0.03825708106160164,
0.01293935440480709,
0.007747978437691927,
0.0013024420477449894,
-0.0008339997730217874,
0.03268405422568321,
0.013711852952837944,
-0.03663851320743561,
0.011026499792933464,
0.007145613431930542,
-0.024664781987667084,
0.052824199199676514,
0.022659962996840477,
0.00300952629186213,
0.02172192931175232,
-0.04918242245912552,
0.023929068818688393,
0.008718200027942657,
0.021685143932700157,
-0.0478949211537838,
0.012663462199270725,
0.026835136115550995,
-0.002404862316325307,
0.013187657110393047,
0.039986006915569305,
-0.009348154999315739,
-0.044105999171733856,
-0.039103150367736816,
0.06948810070753098,
-0.06871560215950012,
-0.02324853464961052,
0.01620408147573471,
0.009444717317819595,
0.033272624015808105,
0.03402673080563545,
0.0768820196390152,
0.028453703969717026,
-0.08019272983074188,
0.056613124907016754,
0.03566369414329529,
-0.02199782244861126,
-0.01638801023364067,
-0.021372465416789055,
0.003404972143471241,
0.06183668598532677,
-0.04634992405772209,
0.046975281089544296,
0.04175172001123428,
-0.03463369607925415,
0.01203810516744852,
-0.03649137169122696,
-0.01016203686594963,
0.058562763035297394,
-0.019054969772696495,
-0.07342416793107986,
-0.01888943463563919,
-0.038919221609830856,
0.026338528841733932,
0.022347286343574524,
0.010474715381860733,
0.008561860769987106,
0.005940883420407772,
-0.06658203899860382,
-0.0004836738808080554,
-0.0008472196059301496,
-0.010419536381959915,
-0.021869072690606117,
0.014263637363910675,
0.04395885765552521,
0.019809074699878693,
-0.012258819304406643,
-0.01275542564690113,
-0.04200921952724457,
-0.05006527528166771,
0.05010206252336502,
-0.01857675611972809,
0.038036368787288666,
-0.014723458327353,
0.047821350395679474,
-0.005798338912427425,
0.023726748302578926
] |
17,552 | imodels.discretization.mdlp | _single_feature_accepted_cutpoints |
Computes the cuts for binning a feature according to the MDLP criterion
:param feature: attribute of interest
:param partition_index: index of examples in data partition for which cuts are required
:return: list of cuts for binning feature in partition covered by partition_index
| def _single_feature_accepted_cutpoints(self, feature, partition_index=pd.DataFrame().index):
'''
Computes the cuts for binning a feature according to the MDLP criterion
:param feature: attribute of interest
:param partition_index: index of examples in data partition for which cuts are required
:return: list of cuts for binning feature in partition covered by partition_index
'''
if partition_index.size == 0:
partition_index = self._data.index # if not specified, full sample to be considered for partition
data_partition = self._data.loc[partition_index, [feature, self._class_name]]
# exclude missing data:
if data_partition[feature].isnull().values.any:
data_partition = data_partition[~data_partition[feature].isnull()]
# stop if constant or null feature values
if len(data_partition[feature].unique()) < 2:
return
# determine whether to cut and where
cut_candidate = self._best_cut_point(data=data_partition, feature=feature)
if cut_candidate == None:
return
decision = self.MDLPC_criterion(data=data_partition, feature=feature, cut_point=cut_candidate)
# apply decision
if not decision:
return # if partition wasn't accepted, there's nothing else to do
if decision:
# try:
# now we have two new partitions that need to be examined
left_partition = data_partition[data_partition[feature] <= cut_candidate]
right_partition = data_partition[data_partition[feature] > cut_candidate]
if left_partition.empty or right_partition.empty:
return # extreme point selected, don't partition
self._cuts[feature] += [cut_candidate] # accept partition
self._single_feature_accepted_cutpoints(feature=feature, partition_index=left_partition.index)
self._single_feature_accepted_cutpoints(feature=feature, partition_index=right_partition.index)
# order cutpoints in ascending order
self._cuts[feature] = sorted(self._cuts[feature])
return
| (self, feature, partition_index=RangeIndex(start=0, stop=0, step=1)) | [
-0.009867499582469463,
-0.004294781479984522,
-0.03589177504181862,
0.022948097437620163,
-0.01876741833984852,
-0.02849799580872059,
0.04534851014614105,
0.007576341275125742,
-0.018511831760406494,
-0.024116497486829758,
-0.045677121728658676,
-0.0018016630783677101,
-0.014057307504117489,
-0.04691854491829872,
-0.07130888849496841,
0.03936045989394188,
0.004390626680105925,
0.027731234207749367,
0.012843267060816288,
0.04155120998620987,
-0.0402732715010643,
-0.017233893275260925,
-0.014048179611563683,
0.028479740023612976,
0.0019648282323032618,
0.034358251839876175,
0.04206238314509392,
-0.012624192051589489,
-0.025084078311920166,
-0.029921982437372208,
-0.028917890042066574,
-0.004349550232291222,
0.014705403707921505,
0.012834139168262482,
-0.011318870820105076,
-0.004965698346495628,
0.07806369662284851,
0.0054494887590408325,
0.00015189764962997288,
0.05900418013334274,
-0.02753041498363018,
-0.03800949826836586,
-0.03612910583615303,
-0.018283627927303314,
-0.014139460399746895,
0.02707400918006897,
-0.0030099982395768166,
0.0692276731133461,
0.006567683536559343,
0.02955685742199421,
-0.046115271747112274,
-0.034066151827573776,
0.018502702936530113,
0.012961932457983494,
-0.04206238314509392,
0.019096029922366142,
0.030889563262462616,
-0.030670488253235817,
0.0021348395384848118,
0.02565002255141735,
0.0077497754245996475,
0.051263533532619476,
0.06754810363054276,
-0.0008762996876612306,
0.018384037539362907,
-0.051263533532619476,
-0.0634952113032341,
0.014112075790762901,
-0.04713762179017067,
0.08412476629018784,
0.011510561220347881,
-0.036238644272089005,
0.02579607255756855,
0.04286566004157066,
-0.005234977696090937,
-0.013117111288011074,
0.043778471648693085,
-0.03581874817609787,
0.052906595170497894,
-0.0011022207327187061,
0.04899975657463074,
0.013372698798775673,
-0.004869853146374226,
-0.007977978326380253,
0.01795501634478569,
0.02502930909395218,
0.039177898317575455,
0.027712978422641754,
0.059990014880895615,
-0.02090339921414852,
-0.009114429354667664,
0.0787939503788948,
0.040528859943151474,
0.0285162515938282,
0.056375280022621155,
0.005203029606491327,
-0.05619271844625473,
0.012003480456769466,
-0.05257797986268997,
-0.0465899333357811,
-0.010250880382955074,
0.06933721154928207,
0.026307247579097748,
0.07236775010824203,
0.041441671550273895,
-0.03384707495570183,
0.0034093535505235195,
0.024609416723251343,
-0.09500548988580704,
-0.004596009384840727,
-0.04388801008462906,
0.017535122111439705,
-0.02972116507589817,
0.027493903413414955,
-0.06608760356903076,
-0.0159833412617445,
-0.0013304237509146333,
0.01878567412495613,
-0.06619714200496674,
-0.021670160815119743,
0.01251465454697609,
-0.03143725171685219,
-0.028260665014386177,
-0.02849799580872059,
-0.03957953676581383,
-0.017306918278336525,
0.07094376534223557,
0.039323948323726654,
-0.033755794167518616,
-0.03278821334242821,
0.032550882548093796,
0.0028456919826567173,
-0.03704191744327545,
-0.002188467187806964,
-0.03154679015278816,
-0.0928877666592598,
0.004666752181947231,
0.0029620754066854715,
0.01862136833369732,
-0.05089840665459633,
0.03479640185832977,
-0.008826893754303455,
0.006800450850278139,
0.015636472031474113,
0.006951064802706242,
-0.016777487471699715,
0.007831928320229053,
-0.043267298489809036,
0.004141885321587324,
-0.006836963351815939,
-0.05535292997956276,
0.042938683182001114,
-0.04878068342804909,
-0.060902826488018036,
0.022345641627907753,
-0.01191219873726368,
-0.0025672842748463154,
-0.03530757501721382,
-0.003582787699997425,
-0.03961604833602905,
-0.022747280076146126,
-0.05319869518280029,
-0.00969406496733427,
0.03260565176606178,
-0.04209889844059944,
0.04443569481372833,
-0.0288813766092062,
-0.04648039489984512,
-0.01688702590763569,
0.028370201587677002,
0.04889022186398506,
0.06601457297801971,
-0.0039296564646065235,
0.013537004590034485,
-0.05137306824326515,
0.07601899653673172,
0.01793675869703293,
-0.03921440988779068,
0.019734999164938927,
0.008283770643174648,
0.034358251839876175,
-0.04202587157487869,
-0.023860910907387733,
-0.011118052527308464,
-0.026051659137010574,
0.006106713321059942,
-0.0030373826157301664,
0.0007456534658558667,
-0.004897237289696932,
0.0371149443089962,
-0.04304822161793709,
-0.05097143352031708,
-0.0010833939304575324,
0.00041989359306171536,
-0.005463181063532829,
-0.004002681467682123,
-0.017681172117590904,
0.04885370656847954,
-0.019406387582421303,
0.011711380444467068,
0.005180208943784237,
-0.0030259722843766212,
0.031236432492733,
0.018119322136044502,
0.0021781979594379663,
0.01991756074130535,
-0.028479740023612976,
0.07339009642601013,
-0.03247785568237305,
0.010442571714520454,
-0.03724273666739464,
-0.04253704845905304,
0.04034629836678505,
0.06784020364284515,
0.048232994973659515,
-0.04319427162408829,
-0.025613509118556976,
-0.02030094340443611,
0.0034732504282146692,
0.0009390555205754936,
-0.033828821033239365,
-0.03800949826836586,
0.03994465991854668,
0.08492804318666458,
0.043924521654844284,
0.004046040121465921,
0.051847729831933975,
-0.010716415010392666,
0.05882161483168602,
-0.015390013344585896,
-0.009438477456569672,
-0.05958838015794754,
0.004228602629154921,
-0.0643715113401413,
0.03674981743097305,
0.05725158005952835,
-0.014267254620790482,
0.0034504299983382225,
-0.015043145045638084,
0.0343947634100914,
-0.03771739825606346,
-0.03339067101478577,
-0.009520631283521652,
-0.00165903614833951,
-0.017827222123742104,
0.021889235824346542,
0.01301670167595148,
0.027950309216976166,
0.08383267372846603,
0.029283015057444572,
-0.018685264512896538,
-0.028406715020537376,
-0.04381498321890831,
0.0026357450988143682,
0.028315434232354164,
-0.08675366640090942,
-0.030524438247084618,
0.004924621898680925,
0.009041404351592064,
0.014267254620790482,
-0.011455792933702469,
0.04549456015229225,
0.001735484111122787,
0.056740403175354004,
-0.07050561159849167,
0.008621511049568653,
0.006462709978222847,
0.0336645133793354,
0.04910929501056671,
-0.009602784179151058,
0.02594212256371975,
0.056375280022621155,
-0.011793533340096474,
-0.0007108525023795664,
-0.02519361674785614,
-0.0030875871889293194,
-0.004116782918572426,
-0.005020467098802328,
0.004290217068046331,
0.0009464721078984439,
0.04443569481372833,
0.005362771451473236,
-0.03076177090406418,
0.058639053255319595,
-0.05319869518280029,
-0.0013772053644061089,
-0.010625133290886879,
-0.0523223951458931,
0.007576341275125742,
-0.0009356325026601553,
-0.11399198323488235,
0.007635673973709345,
0.04954744502902031,
0.01757163368165493,
0.06674482673406601,
0.04352288320660591,
0.00659963209182024,
-0.08412476629018784,
0.011327998712658882,
0.008160540834069252,
0.00934719666838646,
-0.021889235824346542,
-0.011108923703432083,
0.015645600855350494,
-0.02616119757294655,
-0.030889563262462616,
0.03649422898888588,
-0.029903726652264595,
0.018949979916214943,
-0.003238201141357422,
0.03640294820070267,
-0.013582644984126091,
0.053673356771469116,
-0.009438477456569672,
0.03884928673505783,
-0.04403406009078026,
0.0285162515938282,
0.009456734172999859,
0.025887353345751762,
0.04286566004157066,
-0.05108096823096275,
0.033518463373184204,
0.024846747517585754,
0.06440802663564682,
-0.0006674939068034291,
0.007348137907683849,
0.008101208135485649,
-0.04020024836063385,
-0.02957511506974697,
-0.02526664175093174,
-0.08850626647472382,
0.04465477168560028,
0.014979247935116291,
0.043851498514413834,
-0.043924521654844284,
0.000024478342311340384,
0.02678190916776657,
-0.021761441603302956,
0.004787699785083532,
-0.012268195860087872,
0.03463209420442581,
0.026288989931344986,
0.010643390007317066,
0.047247156500816345,
0.03979860991239548,
0.025996889919042587,
0.02994024008512497,
0.0313824824988842,
-0.010323905386030674,
0.05422104150056839,
0.0072294725105166435,
-0.027274828404188156,
0.010506467893719673,
0.03227704018354416,
0.082299143075943,
-0.010305649600923061,
0.008603254333138466,
-0.02557699754834175,
-0.018986493349075317,
-0.0025718482211232185,
0.1150873601436615,
-0.06108539178967476,
-0.02406172826886177,
0.026562834158539772,
-0.008347667753696442,
-0.009611912071704865,
-0.02889963425695896,
0.036914125084877014,
-0.02805984579026699,
-0.0285162515938282,
-0.03183889016509056,
-0.04290217161178589,
0.0014559354167431593,
0.0018130731768906116,
0.023349735885858536,
-0.012770242057740688,
-0.041076548397541046,
-0.02201703004539013,
-0.02767646498978138,
0.07747949659824371,
-0.007124498952180147,
-0.01907777413725853,
-0.015864675864577293,
0.0290274266153574,
-0.03247785568237305,
-0.02512059174478054,
-0.02104944922029972,
-0.07291543483734131,
0.09077004343271255,
-0.020720835775136948,
0.046261321753263474,
0.027786003425717354,
0.004787699785083532,
-0.005216721445322037,
-0.02218133583664894,
-0.024609416723251343,
0.026873189955949783,
-0.03494245186448097,
0.030725257471203804,
-0.04187982156872749,
-0.039104875177145004,
-0.0014137178659439087,
-0.05224936828017235,
0.053673356771469116,
0.01946115493774414,
-0.02473720908164978,
0.0006663528620265424,
0.005070671439170837,
-0.004475061781704426,
0.001627087709493935,
-0.03486942499876022,
0.05465919151902199,
0.010789440013468266,
0.003792734583839774,
0.013746951706707478,
0.02059304341673851,
0.007517008110880852,
0.0402732715010643,
0.004525266587734222,
-0.003012280212715268,
0.025321409106254578,
-0.034960705786943436,
0.0027019239496439695,
-0.004123629070818424,
-0.051701679825782776,
-0.05593713000416756,
0.005495129153132439,
-0.0007000128389336169,
-0.023550553247332573,
0.003751658136025071,
-0.05476872995495796,
-0.02572304755449295,
-0.1250917762517929,
0.005513385403901339,
-0.026562834158539772,
0.00197167438454926,
-0.06904511153697968,
0.04874417185783386,
0.013117111288011074,
-0.017754197120666504,
-0.013710439205169678,
0.042573560029268265,
0.03313508257269859,
-0.01968022994697094,
0.017836349084973335,
-0.03302554413676262,
-0.047393206506967545,
-0.05400196835398674,
-0.09975211322307587,
-0.033609744161367416,
0.007307061459869146,
-0.023094147443771362,
0.0349789634346962,
0.03499721735715866,
-0.015399141237139702,
0.008986636064946651,
-0.06093934178352356,
-0.03413917496800423,
0.008799509145319462,
0.014066435396671295,
0.031163407489657402,
0.05725158005952835,
-0.03455906733870506,
0.031108638271689415,
0.023933935910463333,
0.0342487134039402,
0.01832926832139492,
-0.007941465824842453,
-0.004194371867924929,
0.0051665171049535275,
0.06236332654953003,
-0.01063426211476326,
0.01726127788424492,
-0.053819406777620316,
0.03143725171685219,
0.048452071845531464,
-0.0395430251955986,
0.005248670000582933,
0.05944233015179634,
-0.0004469927225727588,
0.012395989149808884,
-0.042719610035419464,
0.028534509241580963,
0.015061400830745697,
-0.06254588812589645,
-0.045969221740961075,
-0.0518842451274395,
0.04282914847135544,
-0.04691854491829872,
-0.039871636778116226,
0.00164077989757061,
-0.002142826560884714,
0.028698815032839775,
0.03309857100248337,
0.040382809937000275,
0.017900247126817703,
0.07864789664745331,
0.03649422898888588,
0.09697716683149338,
-0.04797740653157234,
-0.005878510419279337,
0.07152796536684036,
-0.07477757334709167,
-0.010497340001165867,
0.016202416270971298,
-0.0054084123112261295,
-0.03328113257884979,
0.026435039937496185,
-0.03753483667969704,
-0.005705076269805431,
0.0007781723979860544,
-0.0733535885810852,
0.051263533532619476,
0.03025059588253498,
0.036384694278240204,
0.022217847406864166,
0.006252763327211142,
0.018566599115729332,
-0.02429906092584133,
0.02926475740969181,
-0.003918246366083622,
-0.04680900648236275,
0.04312124848365784,
-0.034431274980306625,
0.007658494170755148,
0.00803274754434824,
-0.003053356660529971,
-0.034504301846027374,
0.007813672535121441,
0.04261007159948349,
-0.037680886685848236,
0.032532624900341034,
0.09011282026767731,
0.04414359852671623,
-0.007471367716789246,
0.036914125084877014,
-0.05666738003492355,
-0.024079985916614532,
0.015526935458183289,
-0.0017503174021840096,
-0.008155976422131062,
-0.017617274075746536,
0.02165190503001213,
-0.015253091230988503,
0.011994351632893085,
0.014029922895133495,
0.005486001260578632,
0.021670160815119743,
0.012195170857012272,
0.020465249195694923,
0.09872976690530777,
0.029392551630735397,
0.02557699754834175,
-0.0007718967972323298,
0.07988931983709335,
-0.0038269651122391224,
0.014057307504117489,
-0.015727754682302475,
0.012678961269557476,
-0.002663129474967718,
-0.07225821167230606,
-0.030743513256311417,
0.11267753690481186,
-0.028717070817947388,
-0.024335572496056557,
-0.0462978333234787,
-0.03180237486958504,
-0.0033249184489250183,
-0.04125910997390747,
-0.01398428250104189,
0.033226363360881805,
0.011547073721885681,
-0.050642818212509155,
0.016604052856564522,
-0.08595039695501328,
-0.012103889137506485,
0.05918674170970917,
-0.07196611166000366,
-0.07733345031738281,
-0.010762055404484272,
-0.042719610035419464,
0.008543921634554863,
0.04403406009078026,
-0.04867114499211311,
-0.019406387582421303,
0.04301171004772186,
-0.022455180063843727,
-0.02849799580872059,
-0.007927773520350456,
0.0007758903666399419,
-0.0039022720884531736,
0.023733116686344147,
0.02977593243122101,
-0.06353172659873962,
0.0067502460442483425,
0.02057478576898575,
-0.042573560029268265,
-0.020483504980802536,
0.04063839837908745,
-0.013518747873604298,
-0.0143676633015275,
0.00003059347000089474,
0.0013007574016228318,
0.02663585916161537,
0.05725158005952835,
-0.01316275168210268,
-0.04399754852056503,
-0.010725542902946472,
0.0013908975524827838,
-0.013582644984126091,
-0.0014217050047591329,
0.04768530651926994,
0.07492361962795258,
0.010844208300113678,
-0.017608147114515305,
0.009465862065553665,
-0.010908105410635471,
-0.08018141984939575,
0.08222611993551254,
-0.017160868272185326,
-0.005837433971464634,
-0.02481023408472538,
0.02314891666173935,
0.010278264991939068,
-0.0006047380738891661,
-0.07244077324867249,
-0.002133698435500264,
-0.07704135030508041,
-0.0016042673960328102,
0.04140515998005867,
-0.02042873576283455,
-0.020264429971575737,
0.025084078311920166,
-0.028753584250807762,
0.031035613268613815,
0.025540484115481377,
0.036603767424821854,
-0.03194842487573624,
-0.014175972901284695,
-0.035271063446998596,
-0.014239870011806488,
0.061669591814279556,
0.017160868272185326,
-0.04432616010308266,
0.006079329177737236,
-0.04454523324966431,
-0.004249140620231628,
0.03654899820685387,
0.058566030114889145,
0.03654899820685387,
-0.030871307477355003,
0.008904483169317245,
-0.03976209834218025,
0.0009749975288286805,
0.017160868272185326,
0.013518747873604298,
0.0015186913078650832,
0.0286623015999794,
0.02375137247145176,
-0.056594353169202805,
-0.034266967326402664,
-0.0002464592980686575,
-0.0026608475018292665,
-0.04637086018919945,
-0.05670389160513878,
-0.02789553999900818,
-0.003934220410883427,
-0.022875072434544563,
-0.05527990683913231,
0.03061572089791298,
0.0022215566132217646,
-0.0011490023462101817,
-0.056229230016469955,
0.00714731914922595,
-0.024226035922765732,
-0.06710994988679886,
-0.032021451741456985,
-0.03293426334857941,
-0.057726241648197174,
0.007407470606267452,
0.05655784159898758,
0.02670888416469097,
-0.03364625573158264,
-0.00727967731654644,
0.07455849647521973,
0.04783135652542114,
-0.04063839837908745,
-0.03417568653821945,
-0.042719610035419464,
0.0169052816927433,
0.021852724254131317,
-0.022528205066919327,
0.029082195833325386,
0.03614736348390579,
-0.038958825170993805,
-0.000990971690043807,
-0.011857430450618267,
-0.023404503241181374,
0.008731048554182053,
0.001125041046179831,
0.01180266123265028,
0.020465249195694923,
-0.03643946349620819,
0.004783135838806629,
-0.012934548780322075,
-0.005139132495969534,
-0.07616505026817322,
-0.005613795015960932,
0.027110520750284195,
0.014458945021033287,
0.0160563662648201,
0.04198936000466347,
0.007453111466020346,
-0.025887353345751762,
-0.024645928293466568,
0.053052645176649094,
-0.08412476629018784,
-0.024025216698646545,
0.03267867490649223,
-0.002752128755673766,
0.015079657547175884,
-0.02367834746837616,
0.04684552177786827,
0.019187312573194504,
-0.05575456842780113,
0.024938028305768967,
0.04261007159948349,
-0.01931510493159294,
0.006029124371707439,
-0.017060458660125732,
0.021323291584849358,
0.02827892079949379,
-0.05195726826786995,
0.026745397597551346,
0.06634318828582764,
-0.03297077491879463,
0.07587295025587082,
0.011118052527308464,
0.015006632544100285,
0.023696603253483772,
-0.008726484142243862,
-0.03928743675351143,
0.015079657547175884,
-0.019333362579345703,
-0.005654871463775635,
0.030122801661491394,
0.0016944075468927622,
0.007215780206024647,
0.03039664588868618,
-0.04819648340344429,
0.03906835988163948,
-0.00984011497348547,
0.012231683358550072,
-0.016932666301727295,
-0.01452284213155508,
0.011410152539610863,
0.023933935910463333,
0.009894884191453457,
-0.010725542902946472,
-0.037972986698150635,
-0.042500533163547516,
0.040528859943151474,
0.029885470867156982,
0.05108096823096275,
-0.015170938335359097,
0.011738764122128487,
0.010807695798575878,
0.02941080741584301
] |
17,553 | imodels.algebraic.marginal_shrinkage_linear_model | MarginalShrinkageLinearModelRegressor | null | class MarginalShrinkageLinearModelRegressor(
MarginalShrinkageLinearModel, RegressorMixin
):
...
| (est_marginal_name='ridge', est_main_name='ridge', marginal_divide_by_d=True, marginal_sign_constraint=False, alphas=[0.001, 0.01, 0.09999999999999999, 1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0], elasticnet_ratio=0.5, random_state=None) | [
-0.0030677246395498514,
-0.03729820251464844,
0.025227215141057968,
0.046951182186603546,
-0.03956389054656029,
-0.03952581062912941,
-0.09260768443346024,
-0.006559076253324747,
0.021552609279751778,
0.017849445343017578,
0.048207782208919525,
0.014098681509494781,
0.07417753338813782,
0.07143586128950119,
-0.0323098748922348,
-0.005430991295725107,
0.011823472566902637,
-0.02764522098004818,
0.004488540347665548,
-0.049235910177230835,
-0.04036354646086693,
0.015241046436131,
-0.02869238890707493,
0.02520817704498768,
-0.026083989068865776,
0.06930344551801682,
-0.005940295290201902,
-0.0006639993516728282,
0.04318137839436531,
0.000033653643185971305,
-0.060126449912786484,
-0.03804073855280876,
-0.02395157516002655,
0.026769408956170082,
0.013584617525339127,
-0.04139167442917824,
-0.02905413694679737,
0.05734669789671898,
-0.09131300449371338,
0.06412472575902939,
0.009257912635803223,
-0.012670726515352726,
0.011699716560542583,
-0.0487789623439312,
0.020372167229652405,
-0.0034128138795495033,
-0.029644358903169632,
0.006768509745597839,
0.0025941194035112858,
-0.028006969019770622,
-0.02478930912911892,
-0.0035698891151696444,
0.02416100911796093,
0.01987714134156704,
0.004916927311569452,
0.09961418062448502,
0.055975861847400665,
0.09275999665260315,
0.01983906328678131,
-0.03520386666059494,
0.008067949675023556,
-0.025836477056145668,
0.0061640082858502865,
-0.04992133006453514,
-0.003317616879940033,
-0.021876279264688492,
-0.07242590934038162,
0.000607178604695946,
0.017878005281090736,
0.011690196581184864,
-0.01614541746675968,
-0.019353559240698814,
-0.006773269735276699,
0.0663713738322258,
0.0393734946846962,
0.0022216609213501215,
0.010424075648188591,
-0.05529044196009636,
0.032233718782663345,
-0.030044186860322952,
0.03417573869228363,
-0.03659374266862869,
-0.0066019147634506226,
0.009429266676306725,
-0.023818299174308777,
-0.135179802775383,
-0.014346194453537464,
-0.08377339690923691,
0.020962389186024666,
-0.0007443218491971493,
-0.0855250209569931,
0.04481876641511917,
0.026160147041082382,
0.031833890825510025,
0.03994467854499817,
0.03642238676548004,
-0.004771751817315817,
-0.017030751332640648,
-0.03628911077976227,
-0.05247261002659798,
-0.00034568426781333983,
0.0675899013876915,
-0.0405920185148716,
0.02823544293642044,
-0.009057998657226562,
0.00818218570202589,
-0.048855122178792953,
-0.010300319641828537,
-0.01362269651144743,
-0.01738297939300537,
-0.03567985072731972,
0.05799403786659241,
-0.04561842232942581,
-0.001799224060960114,
-0.06484822183847427,
-0.02720731496810913,
-0.0658382773399353,
0.005997413769364357,
-0.02067679725587368,
-0.009824334643781185,
-0.005545227788388729,
0.027778496965765953,
-0.040858570486307144,
0.06541940569877625,
0.0059260157868266106,
0.033090490847826004,
0.06084994971752167,
0.05483349412679672,
-0.016526207327842712,
-0.044095270335674286,
-0.06492438167333603,
0.007020781747996807,
-0.03952581062912941,
-0.02315192110836506,
0.03270970284938812,
0.024332363158464432,
0.04664655029773712,
-0.010481194593012333,
0.031415022909641266,
0.016002623364329338,
0.049845170229673386,
0.08537270873785019,
0.03979236260056496,
0.012070984579622746,
-0.005450030788779259,
0.02741674706339836,
-0.013546539470553398,
0.045123398303985596,
-0.04017315059900284,
-0.0344042107462883,
-0.01783040538430214,
0.018277831375598907,
0.07155009359121323,
-0.01577414944767952,
0.007239735219627619,
0.01962962932884693,
-0.027492905035614967,
-0.004231508355587721,
0.007039821241050959,
-0.021362215280532837,
-0.0368412546813488,
-0.010490713641047478,
0.01596454344689846,
-0.04261019453406334,
0.006444839760661125,
-0.02437044307589531,
-0.006035492289811373,
-0.09534935653209686,
-0.023228077217936516,
0.051901426166296005,
0.01127132959663868,
-0.08133634924888611,
0.019820023328065872,
-0.004357644356787205,
-0.016469087451696396,
0.042077090591192245,
0.06454359740018845,
0.032405074685811996,
-0.021971477195620537,
0.0848396047949791,
0.10106118023395538,
-0.034461330622434616,
-0.04200093448162079,
0.003041545394808054,
-0.0008954471559263766,
-0.008244063705205917,
-0.03147214278578758,
0.017897043377161026,
0.009091317653656006,
0.02496066503226757,
0.05894600972533226,
-0.0052405972965061665,
-0.004076813347637653,
-0.07314940541982651,
-0.012556489557027817,
-0.032024282962083817,
0.005716582294553518,
-0.028216402977705002,
0.005816539283841848,
0.03720300272107124,
-0.043067142367362976,
0.02825448103249073,
-0.009181754663586617,
0.02539857104420662,
-0.011547401547431946,
0.04836009815335274,
-0.012109063565731049,
0.018591981381177902,
-0.05673743784427643,
-0.030025146901607513,
0.0018480125581845641,
0.041886698454618454,
0.02863527089357376,
0.06290620565414429,
0.053957682102918625,
-0.02063871920108795,
0.0013434682041406631,
-0.02254265919327736,
0.004160110838711262,
-0.019534433260560036,
0.036917414516210556,
-0.014032043516635895,
-0.02497970312833786,
0.008434457704424858,
0.0009174614679068327,
-0.029644358903169632,
0.01679275743663311,
-0.019820023328065872,
0.03379495069384575,
-0.04436182230710983,
0.007934673689305782,
-0.04874088615179062,
0.043524086475372314,
0.0006425800384022295,
-0.02048640325665474,
0.01288967952132225,
-0.039183102548122406,
-0.01013848464936018,
0.005121600814163685,
0.026350541040301323,
-0.05654704198241234,
0.016516687348484993,
-0.042077090591192245,
0.010024248622357845,
0.04154399037361145,
0.0196867473423481,
0.015193447470664978,
0.06408664584159851,
-0.019163165241479874,
-0.012718324549496174,
-0.0029606278985738754,
-0.003974476363509893,
-0.033261846750974655,
0.06907497346401215,
-0.013080073520541191,
0.004283866845071316,
0.005878417287021875,
-0.03255738690495491,
0.021209901198744774,
-0.0120614655315876,
-0.025950713083148003,
-0.022656895220279694,
-0.02435140311717987,
0.04714157432317734,
-0.02945396490395069,
-0.0019277400569990277,
0.001092981081455946,
0.02475123107433319,
0.0019015609286725521,
0.026160147041082382,
0.1438617706298828,
0.05525236204266548,
-0.04466645047068596,
0.023475591093301773,
-0.013394223526120186,
0.008767647668719292,
-0.014136760495603085,
-0.015288644470274448,
0.015355282463133335,
-0.020219851285219193,
0.023913497105240822,
-0.04177246242761612,
0.005921255797147751,
0.0023228079080581665,
-0.0038649998605251312,
-0.030424974858760834,
0.003867379855364561,
0.007644322235137224,
-0.014289075508713722,
0.04097280651330948,
0.006111650262027979,
-0.016887955367565155,
0.025017783045768738,
0.05125408619642258,
0.06709487736225128,
-0.045351870357990265,
0.01465082447975874,
0.05079714208841324,
-0.016202537342905998,
-0.00048163754399865866,
0.032252758741378784,
0.002646477660164237,
-0.001091791084036231,
-0.0037245843559503555,
-0.044933002442121506,
-0.0356227345764637,
0.08171714097261429,
-0.002187151927500963,
-0.031205590814352036,
0.03373783081769943,
0.010176563635468483,
0.08232640475034714,
-0.04051586240530014,
0.035337142646312714,
-0.03925925865769386,
-0.050873298197984695,
0.026464777067303658,
0.007173097226768732,
0.03480403870344162,
0.06450551748275757,
-0.04055393859744072,
-0.01239465456455946,
0.023075763136148453,
-0.03853576257824898,
0.02562704309821129,
-0.0013220489490777254,
-0.002463223412632942,
0.03147214278578758,
-0.048436254262924194,
0.031624458730220795,
-0.059250637888908386,
-0.001124515081755817,
0.0630585178732872,
0.0034556526225060225,
-0.0963394045829773,
-0.019486835226416588,
0.043524086475372314,
-0.000982314464636147,
-0.01493641547858715,
-0.0026107789017260075,
0.01597406342625618,
0.015726551413536072,
-0.028311600908637047,
0.04874088615179062,
-0.05490965396165848,
-0.031186550855636597,
-0.0037507633678615093,
0.009376908652484417,
0.04318137839436531,
0.01843966729938984,
-0.038783274590969086,
0.026312462985515594,
0.006154488772153854,
0.04706541821360588,
0.006687592249363661,
-0.010700147598981857,
-0.034670762717723846,
0.024484679102897644,
0.01779232732951641,
-0.0635916218161583,
-0.0458088181912899,
0.01840158738195896,
-0.04531379044055939,
0.038573842495679855,
0.012823041528463364,
-0.01924884133040905,
-0.04089665040373802,
0.014384272508323193,
0.07078851759433746,
-0.030596328899264336,
-0.019915221258997917,
0.002414434915408492,
-0.018753817304968834,
0.03967812657356262,
-0.022790171205997467,
-0.01107141561806202,
0.0015255325706675649,
-0.018173115327954292,
0.0029392086435109377,
0.017354421317577362,
-0.006216366775333881,
-0.02109566517174244,
-0.013889248482882977,
-0.01962962932884693,
0.03638431057333946,
0.004069673363119364,
0.006368682254105806,
0.013080073520541191,
0.010281280614435673,
-0.037964578717947006,
0.032747782766819,
-0.060278765857219696,
-0.036174874752759933,
-0.023018645122647285,
-0.12383231520652771,
-0.027911772951483727,
0.013365664519369602,
0.024656033143401146,
-0.07756654918193817,
-0.01288967952132225,
-0.0062258862890303135,
-0.005768940784037113,
-0.006335363257676363,
-0.001097740838304162,
0.03461364284157753,
-0.020200811326503754,
0.022428423166275024,
0.021552609279751778,
0.047179654240608215,
0.012956317514181137,
-0.00941498763859272,
0.012470812536776066,
-0.03834536671638489,
-0.00941022764891386,
-0.0050264038145542145,
-0.02600783109664917,
0.034309014678001404,
-0.019087007269263268,
0.01675467938184738,
-0.01924884133040905,
0.0409347265958786,
0.04973093420267105,
-0.019305959343910217,
-0.007511046715080738,
0.009376908652484417,
0.002007467672228813,
-0.030672486871480942,
0.007725239731371403,
-0.011442684568464756,
0.005397672299295664,
-0.036746058613061905,
-0.025036821141839027,
-0.06168768182396889,
-0.0007353971595875919,
0.016830837354063988,
-0.049426302313804626,
-0.008515375666320324,
0.026940762996673584,
-0.04470453038811684,
0.01474602147936821,
0.03322376683354378,
-0.012737364508211613,
0.020981427282094955,
-0.035546574741601944,
0.0055499873124063015,
-0.02623630501329899,
0.014431871473789215,
-0.03329992666840553,
-0.04931206628680229,
-0.07806157320737839,
0.04744620621204376,
0.009395947679877281,
0.015459999442100525,
0.0729970932006836,
-0.008653410710394382,
-0.043067142367362976,
0.029625318944454193,
-0.07570068538188934,
0.0377170667052269,
-0.026141107082366943,
-0.030063224956393242,
0.028521033003926277,
-0.008439217694103718,
0.016545245423913002,
0.02292344719171524,
0.01514584943652153,
0.041886698454618454,
-0.018058879300951958,
-0.00393877737224102,
-0.02357078716158867,
0.04889320209622383,
-0.003484211629256606,
-0.021457413211464882,
-0.07139778137207031,
-0.07897546887397766,
0.07966088503599167,
-0.012737364508211613,
0.011147573590278625,
0.011033337563276291,
-0.022199949249625206,
0.04992133006453514,
-0.031053274869918823,
0.013565578497946262,
0.06865610927343369,
0.00190632080193609,
0.00837733969092369,
-0.00971009861677885,
-0.033071450889110565,
-0.010728706605732441,
0.047598522156476974,
-0.03722204267978668,
0.012013866566121578,
0.003976856358349323,
0.09534935653209686,
-0.039830442517995834,
0.013061034493148327,
0.012708805501461029,
-0.01260408852249384,
0.04816970229148865,
-0.01083342358469963,
0.02027696929872036,
-0.015602795407176018,
-0.014793620444834232,
-0.0274357870221138,
0.013346625491976738,
0.01844918727874756,
-0.02004849724471569,
0.03666989877820015,
-0.029358766973018646,
0.0035746488720178604,
-0.0038055016193538904,
0.036327190697193146,
-0.004219608847051859,
0.05848906189203262,
0.010976218618452549,
-0.02844487689435482,
-0.034518446773290634,
0.058032117784023285,
0.027968890964984894,
0.02638861909508705,
0.024808349087834358,
0.030634408816695213,
0.03906886652112007,
-0.05757516995072365,
0.032671622931957245,
0.039411574602127075,
0.010424075648188591,
0.0128040025010705,
0.040820490568876266,
0.045580342411994934,
0.01298487652093172,
-0.008272622711956501,
-0.02539857104420662,
0.04261019453406334,
-0.0030510651413351297,
0.012175701558589935,
-0.049464382231235504,
-0.06290620565414429,
0.002428714418783784,
-0.04192477837204933,
-0.016849875450134277,
0.0066019147634506226,
0.0761195570230484,
0.02478930912911892,
-0.011975787580013275,
0.0017813746817409992,
0.014241477474570274,
-0.012470812536776066,
-0.05449078604578972,
0.011823472566902637,
-0.04599921032786369,
-0.01441283244639635,
-0.060926105827093124,
0.037374358624219894,
0.04078241437673569,
0.024237167090177536,
-0.05532852187752724,
0.035698890686035156,
0.029815712943673134,
0.04150591045618057,
-0.012385135516524315,
-0.02867334894835949,
0.10814383625984192,
-0.011061896570026875,
-0.036346230655908585,
0.04382871836423874,
-0.03301433473825455,
0.053348422050476074,
-0.07596723735332489,
-0.002858291147276759,
-0.036346230655908585,
-0.02168588526546955,
0.0020062776748090982,
0.04108704254031181,
-0.051216010004282,
0.028521033003926277,
0.03703165054321289,
-0.020372167229652405,
-0.06831339746713638,
-0.03781226649880409,
-0.012566009536385536,
-0.0024370441678911448,
-0.02210475318133831,
-0.05113985016942024,
0.0036365268751978874,
-0.02395157516002655,
-0.03493731468915939,
0.04036354646086693,
-0.009143675677478313,
0.0034675521310418844,
0.008305941708385944,
0.06800876557826996,
-0.006792308762669563,
-0.06382009387016296,
0.010995258577167988,
-0.016259655356407166,
-0.0903991088271141,
-0.04097280651330948,
-0.021952437236905098,
0.01864910125732422,
-0.0013410883257165551,
0.012404174543917179,
0.05468118190765381,
-0.012527930550277233,
0.014279556460678577,
-0.005592826288193464,
0.0029463483951985836,
-0.02214283123612404,
-0.01739249937236309,
-0.046608470380306244,
-0.0405920185148716,
0.01504113245755434,
-0.00337949488312006,
-0.003274778136983514,
0.018906133249402046,
-0.027550023049116135,
-0.1043359562754631,
-0.009567302651703358,
0.0347469188272953,
0.009529223665595055,
0.0005414331681095064,
-0.013955886475741863,
-0.0008032250334508717,
0.04070625454187393,
-0.02663613297045231,
0.06100226566195488,
0.036327190697193146,
-0.0830879807472229,
0.024846427142620087,
-0.04241980239748955,
-0.00931027065962553,
-0.003029645886272192,
0.031643494963645935,
-0.06145920976996422,
0.049845170229673386,
-0.013993965461850166,
-0.001520772697404027,
0.033718790858983994,
-0.00984337367117405,
-0.06043108180165291,
-0.03339512273669243,
-0.007649082224816084,
-0.021038545295596123,
-0.010100405663251877,
-0.05635664984583855,
-0.0356227345764637,
-0.030063224956393242,
-0.006720911245793104,
0.04040162265300751,
-0.025874555110931396,
-0.019315479323267937,
0.06283004581928253,
-0.022599777206778526,
0.007106459233909845,
0.029320688918232918,
-0.004188669845461845,
0.0022002416662871838,
-0.025665123015642166,
0.03535618260502815,
-0.0059260157868266106,
-0.006311563774943352,
-0.011909149587154388,
0.06500054150819778,
0.04417142644524574,
0.050644826143980026,
-0.011614038608968258,
-0.052129898220300674,
-0.009129396639764309,
0.012175701558589935,
-0.035717930644750595,
-0.019515393301844597,
0.016231095418334007,
-0.047979310154914856,
-0.027188275009393692,
-0.018468225374817848,
0.010024248622357845,
0.004728912841528654,
-0.04874088615179062,
0.0297014769166708,
0.018544383347034454,
0.019781945273280144,
0.004343364853411913,
-0.0032890578731894493,
0.01372741349041462,
0.04752236232161522,
0.0018872813088819385,
-0.06789453327655792,
0.03975428268313408,
-0.033890146762132645,
0.01054783258587122,
0.037145886570215225,
-0.017154507339000702,
0.011671157553792,
-0.01780184730887413,
0.0405920185148716,
0.032405074685811996,
-0.07017926126718521,
-0.033909186720848083,
0.0005137665430083871,
-0.03910694643855095,
0.013118152506649494,
-0.017240183427929878,
-0.03465172275900841,
0.06043108180165291,
-0.008367819711565971,
0.04344793036580086,
-0.02332327514886856,
-0.0010513323359191418,
0.02004849724471569,
-0.08110787719488144,
0.04299098253250122,
0.058260589838027954,
0.06420088559389114,
-0.03173869475722313,
0.022599777206778526,
-0.005807019304484129,
0.05719438195228577,
0.016726119443774223,
-0.013955886475741863,
-0.02149549126625061,
0.007296853233128786,
-0.007263534236699343,
0.05936487391591072,
0.024656033143401146,
-0.014070122502744198,
-0.029187412932515144,
0.02739770896732807,
-0.033052414655685425,
0.02065775729715824,
0.0018135036807507277,
0.05711822584271431,
0.012432733550667763,
-0.046951182186603546,
-0.020429285243153572,
0.01342278253287077,
0.009181754663586617,
-0.089180588722229,
0.007920393720269203,
0.0005107916076667607,
0.035127706825733185,
0.02518913708627224,
-0.03461364284157753,
-0.005868897773325443,
-0.03545137867331505,
0.015393361449241638,
0.05117793008685112,
-0.0016671381890773773,
0.07307324558496475,
0.04116320237517357,
-0.013099112547934055,
0.05266300216317177,
-0.011842511594295502,
0.0026869364082813263,
0.01513632945716381,
0.04295290634036064,
-0.006449599750339985,
0.03008226491510868,
-0.05970758572220802,
-0.02170492522418499,
-0.011109494604170322,
0.02170492522418499,
-0.06557172536849976,
-0.0019313099328428507,
-0.007358731236308813,
0.03432805463671684,
0.01504113245755434,
0.02745482698082924,
0.018563423305749893
] |
17,555 | imodels.algebraic.marginal_shrinkage_linear_model | __init__ |
Params
------
est_marginal_name : str
Name of estimator to use for marginal effects (marginal regression)
If "None", then assume marginal effects are zero (standard Ridge)
est_main_name : str
Name of estimator to use for main effects
If "None", then assume marginal effects are zero (standard Ridge)
"ridge", "lasso", "elasticnet"
marginal_divide_by_d : bool
If True, then divide marginal effects by n_features
marginal_sign_constraint : bool
If True, then constrain main effects to be same sign as marginal effects
alphas: Tuple[float]
Alphas to try for regularized regression (only main, not marginal)
elasticnet_ratio : float
If using elasticnet, Ratio of l1 to l2 penalty for elastic net
random_state : int
Random seed
| def __init__(
self,
est_marginal_name="ridge",
est_main_name="ridge",
marginal_divide_by_d=True,
marginal_sign_constraint=False,
alphas=np.logspace(-3, 5, num=9).tolist(),
elasticnet_ratio=0.5,
random_state=None,
):
"""
Params
------
est_marginal_name : str
Name of estimator to use for marginal effects (marginal regression)
If "None", then assume marginal effects are zero (standard Ridge)
est_main_name : str
Name of estimator to use for main effects
If "None", then assume marginal effects are zero (standard Ridge)
"ridge", "lasso", "elasticnet"
marginal_divide_by_d : bool
If True, then divide marginal effects by n_features
marginal_sign_constraint : bool
If True, then constrain main effects to be same sign as marginal effects
alphas: Tuple[float]
Alphas to try for regularized regression (only main, not marginal)
elasticnet_ratio : float
If using elasticnet, Ratio of l1 to l2 penalty for elastic net
random_state : int
Random seed
"""
self.random_state = random_state
self.est_marginal_name = est_marginal_name
self.est_main_name = est_main_name
self.marginal_divide_by_d = marginal_divide_by_d
self.marginal_sign_constraint = marginal_sign_constraint
self.elasticnet_ratio = elasticnet_ratio
if alphas is None:
alphas = np.logspace(-3, 5, num=9).tolist()
elif isinstance(alphas, float) or isinstance(alphas, int):
alphas = [alphas]
self.alphas = alphas
| (self, est_marginal_name='ridge', est_main_name='ridge', marginal_divide_by_d=True, marginal_sign_constraint=False, alphas=[0.001, 0.01, 0.09999999999999999, 1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0], elasticnet_ratio=0.5, random_state=None) | [
0.023630188778042793,
-0.040546197444200516,
0.04401519149541855,
0.012747620232403278,
-0.0017368282424286008,
-0.04905082657933235,
-0.07885433733463287,
-0.05878639221191406,
-0.016776129603385925,
0.03931526467204094,
-0.015106908977031708,
0.06594818830490112,
0.011171652004122734,
0.060800645500421524,
-0.07531073689460754,
0.0025667757727205753,
0.009651636704802513,
0.005856258329004049,
-0.018016386777162552,
-0.023350432515144348,
-0.01294345036149025,
-0.0025667757727205753,
-0.03672284260392189,
0.05225871503353119,
0.0031356161925941706,
-0.003727769711986184,
-0.03101578913629055,
-0.016160663217306137,
0.04968494549393654,
-0.021988945081830025,
-0.06676881015300751,
-0.08691135048866272,
-0.053564250469207764,
0.024077801033854485,
0.0180723387748003,
-0.057145148515701294,
0.04442550241947174,
0.03474589064717293,
-0.06979019194841385,
0.036965299397706985,
0.02059015817940235,
-0.05266902595758438,
0.04356757923960686,
-0.03241457790136337,
-0.030213817954063416,
0.0041101048700511456,
0.01958302967250347,
0.0414787232875824,
-0.05621262267231941,
-0.030176516622304916,
-0.030624128878116608,
-0.04617865011096001,
0.07049890607595444,
-0.001945480820722878,
-0.005637114867568016,
0.06878305971622467,
0.08840339630842209,
0.05132618919014931,
0.04811830073595047,
-0.036965299397706985,
-0.014621995389461517,
-0.027099182829260826,
-0.0032778261229395866,
-0.04535802826285362,
-0.0309411883354187,
0.0007209585746750236,
-0.08064478635787964,
0.0007582596153952181,
0.00882635172456503,
0.03465263918042183,
0.036983951926231384,
-0.012486512772738934,
-0.008168920874595642,
0.03314194828271866,
0.010341704823076725,
0.026763474568724632,
-0.044686608016490936,
-0.0309971384704113,
-0.00006163409125292674,
-0.007558117154985666,
0.01009924802929163,
0.01526543777436018,
-0.0037231070455163717,
-0.03047492541372776,
-0.008080331608653069,
-0.11831880360841751,
-0.030381672084331512,
-0.03864384442567825,
0.08004796504974365,
-0.015274763107299805,
-0.056660234928131104,
0.037953779101371765,
0.02021714672446251,
0.0018790384056046605,
0.03819623216986656,
0.07333378493785858,
0.02691267803311348,
-0.01213215384632349,
0.059644315391778946,
-0.015601146966218948,
-0.027807902544736862,
0.03498834744095802,
-0.016673551872372627,
0.05643642693758011,
-0.06371012330055237,
-0.006168654654175043,
-0.05583961308002472,
0.02948644757270813,
0.006061414256691933,
-0.030120564624667168,
-0.05431026965379715,
0.01604875922203064,
-0.010798642411828041,
0.004231333266943693,
-0.026632921770215034,
-0.02491707354784012,
-0.025103580206632614,
-0.023425033316016197,
-0.012290682643651962,
0.02019849605858326,
0.031780458986759186,
0.02491707354784012,
-0.032768938690423965,
0.06270299851894379,
0.0009628323023207486,
0.0012903817696496844,
-0.005110238213092089,
0.001614434295333922,
-0.000895224220585078,
-0.06691800802946091,
0.0001631919149076566,
-0.026036104187369347,
-0.04084460437297821,
0.004410844296216965,
0.03349630534648895,
-0.035920873284339905,
0.006103377789258957,
0.006303870584815741,
-0.006285219918936491,
0.027322988957166672,
0.06240458786487579,
0.024394860491156578,
-0.009595684707164764,
-0.0013125293189659715,
-0.017699329182505608,
0.027192436158657074,
0.009231999516487122,
-0.020422302186489105,
-0.0063924603164196014,
-0.01764337718486786,
-0.0014057818334549665,
-0.03267568349838257,
-0.004438820295035839,
0.017690002918243408,
0.01958302967250347,
-0.014631320722401142,
-0.012094852514564991,
-0.08407647907733917,
0.022492509335279465,
-0.003907280974090099,
-0.059196703135967255,
-0.0181469414383173,
0.017783256247639656,
-0.020310400053858757,
-0.0017065211432054639,
-0.0030213817954063416,
-0.018417373299598694,
-0.047819893807172775,
-0.04591754451394081,
0.015769001096487045,
-0.035846270620822906,
-0.07475122064352036,
-0.0879557803273201,
0.0155172199010849,
-0.017270367592573166,
0.07616866379976273,
0.028013058006763458,
0.015862254425883293,
-0.02223140187561512,
0.015703724697232246,
0.06094985082745552,
0.011003797873854637,
-0.005534537136554718,
-0.029710253700613976,
-0.023947248235344887,
-0.004347898997366428,
0.0014570706989616156,
0.003662492847070098,
-0.013810698874294758,
0.03735696151852608,
0.05293013155460358,
-0.00502631114795804,
0.014463466592133045,
-0.0030540202278643847,
0.016244590282440186,
0.0069752889685332775,
-0.0026297210715711117,
-0.018818359822034836,
0.06535136699676514,
-0.009987344965338707,
0.016337841749191284,
0.030903887003660202,
0.003580896882340312,
0.019862787798047066,
0.003095983760431409,
0.014743223786354065,
-0.007283022161573172,
0.0014162727165967226,
-0.040620800107717514,
-0.012346634641289711,
-0.010127224028110504,
0.020329050719738007,
0.0361819788813591,
0.045768339186906815,
0.025849599391222,
-0.0568094365298748,
0.04021048918366432,
0.022455208003520966,
-0.00849064253270626,
-0.015050956979393959,
0.06915607303380966,
-0.026017453521490097,
0.025924202054739,
0.014463466592133045,
0.0025691071059554815,
-0.0036601615138351917,
0.030139215290546417,
-0.014276961795985699,
0.017335643991827965,
-0.004592686891555786,
0.008942916989326477,
-0.03247052803635597,
0.04073270410299301,
-0.03444748371839523,
-0.014323587529361248,
-0.0018708787392824888,
0.009782189503312111,
-0.008980218321084976,
-0.03817758336663246,
-0.01708386279642582,
-0.013391062617301941,
0.014948379248380661,
-0.021951643750071526,
0.02948644757270813,
0.012831547297537327,
-0.0020620464347302914,
0.013381737284362316,
0.04550723358988762,
-0.03705855458974838,
-0.005030973814427853,
-0.02430160716176033,
-0.013558916747570038,
-0.022399256005883217,
0.026558319106698036,
-0.011320856399834156,
-0.02282821759581566,
0.019284622743725777,
0.0466262623667717,
0.05841338261961937,
-0.02896423451602459,
0.0018615535227581859,
-0.054981689900159836,
-0.032787587493658066,
0.06438153982162476,
-0.015050956979393959,
0.004975022282451391,
0.03470858931541443,
-0.017783256247639656,
0.01963898167014122,
0.004779191687703133,
0.058152273297309875,
0.072401262819767,
0.0011365151731297374,
-0.01656164787709713,
0.005534537136554718,
-0.0076233940199017525,
0.00490042008459568,
-0.04699927195906639,
-0.00710117956623435,
0.04405249282717705,
0.04595484212040901,
-0.04039699211716652,
-0.020925866439938545,
0.08564312011003494,
-0.007996403612196445,
-0.02379804477095604,
-0.03774862363934517,
-0.01005262229591608,
0.014444815926253796,
-0.01604875922203064,
0.013596218079328537,
0.016365818679332733,
0.0568467378616333,
0.0027416241355240345,
0.07079731673002243,
-0.05233331769704819,
0.0233317818492651,
0.05278092995285988,
-0.017382269725203514,
-0.03375741466879845,
0.07049890607595444,
-0.04297076165676117,
0.03401852026581764,
-0.046327855437994,
-0.021037768572568893,
-0.029188040643930435,
0.06083794683218002,
0.008094319142401218,
0.0016936989268288016,
0.042709656059741974,
0.035473261028528214,
0.07393059879541397,
-0.004350230097770691,
0.015666423365473747,
-0.029598351567983627,
-0.03289949148893356,
0.04297076165676117,
-0.021037768572568893,
0.0414414219558239,
0.04532072693109512,
-0.009092121385037899,
0.024730568751692772,
-0.03349630534648895,
-0.054571378976106644,
0.014286287128925323,
-0.05225871503353119,
0.052034907042980194,
0.02950509823858738,
-0.028665825724601746,
0.03782322257757187,
-0.04599214345216751,
-0.04498501867055893,
0.031258247792720795,
-0.0004505262477323413,
-0.02480517141520977,
0.011255580000579357,
0.01604875922203064,
0.02111237123608589,
0.01816559210419655,
-0.08004796504974365,
0.008374076336622238,
-0.008075668476521969,
-0.032321326434612274,
0.04207553714513779,
-0.03666689246892929,
-0.0568094365298748,
0.03463398665189743,
-0.00928328838199377,
0.01189902238547802,
0.005352695006877184,
-0.04077000543475151,
0.0283487681299448,
0.04095650836825371,
0.06975288689136505,
0.0019524747040122747,
0.045208822935819626,
-0.033943917602300644,
0.012542464770376682,
0.04975954815745354,
-0.02887098118662834,
-0.02687537670135498,
-0.015358691103756428,
-0.056660234928131104,
0.0257563479244709,
0.005860920995473862,
-0.048827022314071655,
-0.025942852720618248,
-0.004492440260946751,
0.10168255120515823,
-0.0670672133564949,
0.021951643750071526,
-0.08683674782514572,
-0.07415440678596497,
0.0003604792873375118,
0.014677947387099266,
-0.008075668476521969,
-0.06367282569408417,
-0.018221544101834297,
0.022604411467909813,
0.0033361089881509542,
0.00199793535284698,
0.005114900879561901,
0.048304807394742966,
0.023499635979533195,
0.007185107097029686,
-0.043119966983795166,
0.054011862725019455,
0.007217745296657085,
0.04793179780244827,
-0.0025341373402625322,
0.028162261471152306,
-0.03931526467204094,
0.021821090951561928,
0.030176516622304916,
-0.07042430341243744,
-0.02165323682129383,
0.02432025782763958,
0.009367216378450394,
-0.0880303829908371,
-0.00685406057164073,
-0.01422100979834795,
0.04084460437297821,
-0.0023406383115798235,
-0.03767402097582817,
-0.014649971388280392,
-0.05218411237001419,
0.022026246413588524,
0.06285220384597778,
0.013633519411087036,
0.07158064097166061,
0.008947580121457577,
0.034335579723119736,
-0.0004312929231673479,
-0.02428295649588108,
-0.0021844403818249702,
-0.008910278789699078,
0.056100718677043915,
0.02025444805622101,
0.018781058490276337,
-0.03924066200852394,
0.03920336067676544,
0.009903417900204659,
0.030120564624667168,
0.04177713021636009,
0.02275361679494381,
0.01854792796075344,
-0.06352362036705017,
-0.027751950547099113,
-0.011013123206794262,
-0.04770798981189728,
-0.046253252774477005,
0.04185173287987709,
-0.04584294185042381,
-0.015069607645273209,
0.04095650836825371,
-0.038942255079746246,
-0.06039033457636833,
0.01799773797392845,
-0.020776662975549698,
-0.006350496783852577,
0.015601146966218948,
-0.028777729719877243,
0.023126626387238503,
-0.021877042949199677,
-0.08392727375030518,
-0.012971426360309124,
0.013764072209596634,
0.017923135310411453,
-0.023667490109801292,
-0.07449011504650116,
0.09243190288543701,
0.016291216015815735,
-0.00008822562813293189,
0.04408979415893555,
-0.02629721164703369,
-0.00039836313226260245,
0.04875241965055466,
-0.02370479144155979,
0.0412549152970314,
0.029579700902104378,
-0.027546795085072517,
-0.016748152673244476,
-0.025439288467168808,
0.034354228526353836,
-0.010985147207975388,
-0.008248185738921165,
0.07460202276706696,
-0.002151801949366927,
-0.015796978026628494,
-0.015759676694869995,
0.01451941765844822,
-0.015405316837131977,
0.03187371417880058,
-0.03519350290298462,
-0.04431359842419624,
0.03444748371839523,
0.019303273409605026,
-0.051438093185424805,
-0.03101578913629055,
-0.010490909218788147,
0.034969694912433624,
-0.01287817396223545,
0.010183176025748253,
0.027024582028388977,
-0.007455539423972368,
0.00635515945032239,
-0.006453074514865875,
0.0041404119692742825,
0.033832017332315445,
0.010397656820714474,
-0.06762672960758209,
0.01134883239865303,
0.021075069904327393,
0.08161460608243942,
-0.01969493366777897,
0.02266036346554756,
0.02113102190196514,
-0.037543464452028275,
0.033906616270542145,
-0.013792048208415508,
0.0014127757167443633,
-0.02385399490594864,
-0.041590627282857895,
-0.04050889611244202,
0.027267038822174072,
-0.018389398232102394,
-0.06397122889757156,
0.019527077674865723,
-0.005916872527450323,
0.01449144259095192,
0.03053087554872036,
0.0029281291645020247,
-0.0005714631406590343,
0.029337244108319283,
-0.010975821875035763,
-0.0008987212204374373,
-0.011460735462605953,
0.061322860419750214,
0.027285689488053322,
0.012449212372303009,
0.04532072693109512,
0.04323187097907066,
-0.0018685474060475826,
-0.04796909913420677,
0.015685074031352997,
0.03994937986135483,
0.002468860475346446,
-0.012523814104497433,
0.03950176760554314,
0.03530540689826012,
-0.01139545813202858,
-0.05307933688163757,
-0.036088727414608,
0.048827022314071655,
-0.01596483215689659,
0.034428831189870834,
0.005492573603987694,
-0.030269769951701164,
-0.02432025782763958,
-0.045768339186906815,
-0.0076746828854084015,
-0.020552856847643852,
0.010155200026929379,
0.011871046386659145,
-0.005627790000289679,
-0.0181096401065588,
-0.01758742518723011,
0.024711918085813522,
-0.027117833495140076,
-0.030307071283459663,
0.0021727837156504393,
0.0030703393276780844,
-0.06833545118570328,
-0.013913276605308056,
0.06057684123516083,
0.01347498968243599,
-0.03213481977581978,
-0.004040165804326534,
0.013074004091322422,
0.053526949137449265,
-0.022902820259332657,
-0.00015634368173778057,
0.05416106432676315,
0.0025248120073229074,
0.00368347461335361,
0.041031111031770706,
-0.011292880401015282,
0.03579032048583031,
-0.043604880571365356,
-0.021932993084192276,
0.004240658599883318,
-0.006285219918936491,
-0.04073270410299301,
0.06635849922895432,
-0.06602278351783752,
0.043119966983795166,
0.008546593599021435,
0.025495240464806557,
-0.03454073518514633,
0.022604411467909813,
0.05363885313272476,
-0.036983951926231384,
-0.011274229735136032,
-0.07031240314245224,
-0.022902820259332657,
0.05901019647717476,
-0.07079731673002243,
0.048827022314071655,
-0.008994205854833126,
0.0025388000067323446,
-0.024898424744606018,
0.010807967744767666,
-0.01913541741669178,
-0.036517687141895294,
-0.04353027790784836,
0.02892693318426609,
-0.008611870929598808,
-0.005040299147367477,
0.025103580206632614,
0.012094852514564991,
-0.05128888785839081,
-0.006271232385188341,
0.0016598949441686273,
-0.004175381734967232,
0.0031239595264196396,
0.0028558585327118635,
0.00596349872648716,
0.007805236149579287,
-0.010593486949801445,
-0.026539668440818787,
-0.012924799695611,
-0.009744889102876186,
-0.014081130735576153,
-0.03713315352797508,
-0.0049936724826693535,
-0.03508159890770912,
-0.06087524816393852,
0.051885705441236496,
0.06863385438919067,
-0.0024735231418162584,
0.015899555757641792,
-0.02532738633453846,
-0.03875574842095375,
0.02635316364467144,
-0.05363885313272476,
-0.045208822935819626,
0.01521881204098463,
-0.12674883008003235,
0.014640646055340767,
0.009050157852470875,
0.03778592124581337,
0.007469526957720518,
-0.008719110861420631,
-0.08131620287895203,
0.03579032048583031,
0.026707522571086884,
0.055018987506628036,
0.036499038338661194,
0.0206647589802742,
0.014995005913078785,
0.00007394633576041088,
-0.014127757400274277,
-0.021056419238448143,
-0.015368016436696053,
-0.013773397542536259,
0.014939053915441036,
-0.03879304975271225,
0.017316993325948715,
0.09877307713031769,
-0.005571838468313217,
-0.004718577954918146,
0.03196696564555168,
-0.032824888825416565,
-0.01468727272003889,
-0.020011991262435913,
-0.053974561393260956,
-0.031761810183525085,
0.048379410058259964,
0.03358956053853035,
0.005086925346404314,
-0.038009729236364365,
0.008607207797467709,
0.07795911282300949,
0.04032239317893982,
0.04759608954191208,
-0.012486512772738934,
-0.03478319197893143,
-0.029617002233862877,
0.0181749165058136,
-0.004476121161133051,
-0.030120564624667168,
0.004072804003953934,
-0.000169894439750351,
0.0071291555650532246,
0.018380071967840195,
-0.024973025545477867,
0.04349297657608986,
0.007110504899173975,
0.06162126734852791,
0.04401519149541855,
0.06546327471733093,
0.08385267108678818,
0.0031682546250522137,
-0.03498834744095802,
0.05837608128786087,
-0.04229934513568878,
-0.0621434822678566,
0.03159395605325699,
-0.005389995872974396,
0.01654299721121788,
-0.06419503688812256,
-0.044686608016490936,
0.03558516502380371,
0.0037837212439626455,
0.04382868483662605,
-0.0015887898625805974,
-0.08325585722923279,
-0.05938320606946945,
-0.028218213468790054,
0.007469526957720518,
0.03983747959136963,
-0.0016948645934462547,
-0.08079398423433304,
0.05848798155784607,
-0.03470858931541443,
0.01698128506541252,
-0.015190836042165756,
0.021037768572568893,
0.020851263776421547,
-0.10048892349004745,
0.022026246413588524,
0.05020716041326523,
0.05315393954515457,
-0.02685672789812088,
0.06501565873622894,
0.0619942769408226,
0.01166589092463255,
-0.008952242322266102,
-0.06102445349097252,
-0.01659894920885563,
0.0051195635460317135,
-0.013773397542536259,
0.0466635636985302,
0.013698795810341835,
-0.0029467798303812742,
-0.0464770570397377,
0.009469794109463692,
-0.044164396822452545,
0.05796577036380768,
-0.025551192462444305,
0.030754681676626205,
0.04711117595434189,
-0.024171054363250732,
-0.04028509184718132,
-0.04614134877920151,
-0.04535802826285362,
-0.009180710650980473,
0.012551790103316307,
0.0031542666256427765,
0.0414787232875824,
-0.016720177605748177,
0.0015479918802157044,
-0.013008726760745049,
-0.022511160001158714,
-0.020049292594194412,
0.050878576934337616,
-0.019918739795684814,
0.01701858639717102,
0.036853399127721786,
0.0035132889170199633,
0.02420835569500923,
0.0009750716853886843,
0.027546795085072517,
0.036461737006902695,
0.07840672135353088,
-0.059159401804208755,
0.0674775242805481,
-0.04326917231082916,
0.006509026046842337,
-0.07087191939353943,
0.017382269725203514,
-0.06535136699676514,
0.019732234999537468,
-0.019014189019799232,
0.03245187923312187,
0.037468865513801575,
0.024991676211357117,
0.026483716443181038
] |
17,559 | imodels.algebraic.marginal_shrinkage_linear_model | __str__ | null | def __str__(self):
return (
repr(self)
.replace("MarginalShrinkageLinearModel", "MSLM")
.replace("Regressor", "Reg")
.replace("Classifier", "Clf")
)
| (self) | [
0.0397721491754055,
-0.05784352496266365,
0.06725727766752243,
-0.029848014935851097,
-0.0015559624880552292,
-0.0827956348657608,
0.023080701008439064,
-0.0450650230050087,
0.08582013100385666,
-0.015368230640888214,
-0.02557591162621975,
0.005066034384071827,
-0.019867172464728355,
0.046463850885629654,
-0.012589473277330399,
-0.033798765391111374,
-0.010689710266888142,
-0.07330626994371414,
0.02540578320622444,
-0.019451303407549858,
0.00417049927636981,
0.07304162532091141,
0.006554654333740473,
-0.042645420879125595,
0.024592949077486992,
0.047598037868738174,
-0.029810208827257156,
-0.02240018919110298,
0.00826066080480814,
-0.021927611902356148,
-0.04204052314162254,
-0.04238077998161316,
-0.025783846154808998,
-0.018855854868888855,
-0.009687845595180988,
-0.018439985811710358,
-0.0172490905970335,
0.03430914878845215,
-0.023477666079998016,
-0.01114338543266058,
0.004572190344333649,
-0.023118507117033005,
-0.04408206045627594,
-0.04502721503376961,
-0.05515928193926811,
-0.029658984392881393,
0.002984328893944621,
0.04812732711434364,
0.04695533215999603,
-0.05417632311582565,
0.009007332846522331,
-0.011011063121259212,
-0.015056329779326916,
-0.006611363962292671,
-0.03962092474102974,
0.009446830488741398,
0.03190845623612404,
0.051567692309617996,
0.05451657623052597,
0.038543447852134705,
-0.017957957461476326,
0.0178539901971817,
-0.0003547287196852267,
-0.030509624630212784,
-0.011294609867036343,
-0.021908707916736603,
-0.05266407132148743,
0.046539463102817535,
0.01615270972251892,
0.028562603518366814,
-0.01753263734281063,
-0.08438349515199661,
0.008444965817034245,
0.053155552595853806,
0.02674790471792221,
-0.013808723539113998,
-0.02939433977007866,
-0.04359057918190956,
0.015717938542366028,
-0.04079291597008705,
0.015009071677923203,
-0.023969147354364395,
-0.0010621186811476946,
-0.06222904846072197,
-0.0294321458786726,
-0.12347513437271118,
-0.008185047656297684,
-0.06990370899438858,
-0.008185047656297684,
-0.012154701165854931,
-0.04619920626282692,
0.005859964992851019,
-0.017277445644140244,
0.02858150750398636,
-0.04120878502726555,
0.019508011639118195,
0.004028725903481245,
-0.06529135257005692,
0.035859204828739166,
-0.025972876697778702,
0.05897771194577217,
0.050357893109321594,
-0.06215343624353409,
-0.0030788446310907602,
-0.05175672471523285,
-0.03759829327464104,
-0.040981948375701904,
0.013808723539113998,
-0.013411758467555046,
-0.008600916713476181,
-0.06548038125038147,
0.03548114374279976,
0.011719929985702038,
-0.02533017098903656,
0.0369366817176342,
-0.02533017098903656,
-0.07757837325334549,
-0.01862901821732521,
0.03413902223110199,
-0.0002520907437428832,
-0.02119038999080658,
0.02731499820947647,
-0.061926599591970444,
0.012183056212961674,
-0.007320230361074209,
0.06166195496916771,
0.00543937087059021,
0.007958210073411465,
0.03404450789093971,
-0.07402458786964417,
0.0023239015135914087,
-0.04623701423406601,
-0.04192710295319557,
0.037163518369197845,
0.0848371684551239,
-0.016247225925326347,
-0.03198406845331192,
-0.0009705566917546093,
0.061888791620731354,
0.1295241266489029,
-0.01262727938592434,
0.011266255751252174,
-0.002386518055573106,
0.048165131360292435,
-0.03056633286178112,
-0.004886454902589321,
0.0353110134601593,
0.09149106591939926,
-0.02257031761109829,
-0.0633254274725914,
0.01984826847910881,
0.03007485345005989,
0.02833576686680317,
-0.03081207349896431,
-0.0007886142702773213,
0.05028228089213371,
-0.016247225925326347,
-0.026256423443555832,
0.007542341947555542,
-0.02306179702281952,
0.011152836494147778,
-0.02253251150250435,
-0.029734596610069275,
-0.015046877786517143,
0.042683228850364685,
0.01241934485733509,
0.041586849838495255,
-0.046539463102817535,
0.02451733686029911,
0.02387463115155697,
-0.013147114776074886,
-0.04960176721215248,
-0.06604747474193573,
0.06721946597099304,
0.016993898898363113,
0.10177435725927353,
0.011804994195699692,
0.06264491379261017,
0.004858099855482578,
0.046463850885629654,
0.034725017845630646,
0.012598924338817596,
-0.07160498946905136,
-0.005524434614926577,
0.018940920010209084,
-0.08884462714195251,
0.014640460722148418,
0.007750276476144791,
0.004780124872922897,
-0.004584005102515221,
0.07084886729717255,
0.018279310315847397,
0.011597059667110443,
0.005713466089218855,
-0.026275327429175377,
-0.05379825830459595,
-0.015727389603853226,
-0.062002211809158325,
0.024536240845918655,
0.0094373794272542,
-0.017466476187109947,
0.07772959768772125,
-0.0007590781315229833,
0.06177537143230438,
0.025557009503245354,
0.023250829428434372,
0.02447953075170517,
-0.02045316807925701,
-0.030377302318811417,
-0.00288272462785244,
0.05659592151641846,
0.048807837069034576,
-0.016417354345321655,
-0.025065528228878975,
0.0544031597673893,
0.010699162259697914,
0.010992160066962242,
0.032777998596429825,
-0.08045164495706558,
0.015415488742291927,
0.012655634433031082,
-0.015727389603853226,
-0.006710605230182409,
-0.0064459615387022495,
-0.044346701353788376,
-0.0206989087164402,
0.021455032750964165,
-0.012986438348889351,
0.017277445644140244,
-0.008638722822070122,
0.02434721030294895,
-0.05897771194577217,
-0.005231436342000961,
0.02406366355717182,
0.013950496912002563,
0.038505639880895615,
-0.06238027289509773,
-0.019829366356134415,
-0.030377302318811417,
-0.013203823938965797,
-0.02706925757229328,
-0.0004005097143817693,
-0.007915678434073925,
0.017315251752734184,
0.04684191197156906,
-0.044346701353788376,
0.008917543105781078,
0.0004589912132360041,
-0.016502417623996735,
-0.011237900704145432,
0.05999847874045372,
-0.019829366356134415,
-0.0058883195742964745,
0.022740444168448448,
-0.004028725903481245,
-0.03827880322933197,
-0.03389327973127365,
0.02809002622961998,
0.020490974187850952,
-0.0068240235559642315,
-0.039847761392593384,
0.00038544629933312535,
-0.03020717389881611,
0.013676402159035206,
0.0013267622562125325,
-0.004385522101074457,
-0.02621861733496189,
0.028543701395392418,
0.025916168466210365,
-0.016218870878219604,
0.11742613464593887,
-0.0009711474413052201,
-0.07031957805156708,
0.04003679379820824,
-0.04238077998161316,
0.004385522101074457,
-0.005292871501296759,
-0.02175748348236084,
-0.04812732711434364,
-0.04234297201037407,
0.02370450273156166,
-0.028146734461188316,
-0.014177334494888783,
-0.005585869774222374,
0.0523616224527359,
-0.04616140201687813,
0.03515978902578354,
-0.026539970189332962,
0.028600409626960754,
0.03198406845331192,
0.03534882143139839,
-0.009163283742964268,
-0.009952489286661148,
0.014338010922074318,
0.03304264321923256,
-0.01517920009791851,
0.06888294219970703,
-0.008024371229112148,
0.0006415243842639029,
0.007830614224076271,
-0.013260534033179283,
-0.0011146928882226348,
0.038789186626672745,
-0.00364830088801682,
0.0019257545936852694,
-0.015557262115180492,
0.005363758187741041,
-0.025311268866062164,
0.0014921644469723105,
0.059128936380147934,
-0.028279056772589684,
0.03011265955865383,
0.023836825042963028,
0.038335513323545456,
-0.030415108427405357,
0.05871306732296944,
-0.02723938599228859,
0.04672849550843239,
0.04472476616501808,
0.05667153373360634,
0.00941847637295723,
-0.014564848504960537,
-0.04521624743938446,
0.01528316643089056,
0.0061576892621815205,
-0.054289739578962326,
-0.051567692309617996,
0.005146372597664595,
0.04389302805066109,
-0.03916725143790245,
-0.03542443364858627,
-0.06854268908500671,
0.027504028752446175,
-0.009432652965188026,
0.007750276476144791,
0.0008246483048424125,
0.034157924354076385,
0.0012865931494161487,
-0.03788184002041817,
-0.008166144602000713,
0.06789997965097427,
0.013988303951919079,
-0.0523616224527359,
0.03064194694161415,
-0.01712622120976448,
0.03650191053748131,
-0.023439859971404076,
0.03835441544651985,
0.0182698592543602,
-0.009219992905855179,
-0.026124101132154465,
-0.05466780066490173,
0.04132220521569252,
-0.0008151967194862664,
-0.015963679179549217,
0.028222346678376198,
0.003872775239869952,
0.04733339324593544,
-0.03145477920770645,
0.0023522560950368643,
0.02695583924651146,
-0.025311268866062164,
-0.0023286272771656513,
0.013723660260438919,
0.013827627524733543,
-0.012296474538743496,
0.004980970174074173,
0.031360264867544174,
0.07723812013864517,
-0.04895906150341034,
-0.016105452552437782,
0.04733339324593544,
-0.014867298305034637,
-0.043250322341918945,
-0.06324981898069382,
0.07534781098365784,
0.0031048362143337727,
0.008189774118363857,
-0.04793829470872879,
-0.029866918921470642,
0.03973434492945671,
-0.019621431827545166,
0.001305496203713119,
0.03185174614191055,
0.005637853406369686,
0.018742436543107033,
0.011918412521481514,
0.04396864026784897,
0.02260812371969223,
0.015349327586591244,
-0.016833221539855003,
-0.05659592151641846,
-0.012986438348889351,
0.022834960371255875,
-0.005302323028445244,
-0.037371452897787094,
-0.025178946554660797,
-0.007868420332670212,
-0.06582064181566238,
-0.012636731378734112,
-0.001060937182046473,
-0.01700334995985031,
-0.03413902223110199,
-0.017787829041481018,
-0.031889550387859344,
0.03697448968887329,
0.028751634061336517,
0.06067899242043495,
0.00803382322192192,
-0.0004843922797590494,
-0.002343985950574279,
-0.02041536197066307,
-0.02865711972117424,
-0.08052726089954376,
0.05330677703022957,
0.02342095598578453,
0.03190845623612404,
-0.003480535699054599,
0.0047517698258161545,
-0.006625541020184755,
-0.02016962133347988,
0.006913813762366772,
0.043250322341918945,
0.04347715899348259,
-0.03232432156801224,
0.01402611006051302,
-0.008657625876367092,
0.007376939989626408,
0.08022481203079224,
0.047030944377183914,
-0.055877603590488434,
-0.019111046567559242,
-0.022910572588443756,
-0.017277445644140244,
0.024876495823264122,
-0.06619869917631149,
0.013562983833253384,
-0.010387260466814041,
-0.038619060069322586,
0.02207883633673191,
0.005637853406369686,
-0.024101469665765762,
0.005377935711294413,
-0.011615962721407413,
-0.04638823866844177,
0.008189774118363857,
-0.053079940378665924,
-0.008974253199994564,
-0.001520519144833088,
-0.01089764479547739,
0.02585945837199688,
0.05833500623703003,
-0.03194626048207283,
0.007721921429038048,
0.08491278439760208,
-0.015037426725029945,
0.025991780683398247,
-0.055877603590488434,
0.03007485345005989,
0.02756073884665966,
-0.014772783033549786,
0.031246846541762352,
-0.00762268016114831,
0.08430788666009903,
0.0036341233644634485,
0.012457150965929031,
0.0320785827934742,
-0.010727516375482082,
-0.042758841067552567,
-0.02013181522488594,
0.027674157172441483,
-0.02102026157081127,
0.016332289204001427,
-0.03973434492945671,
-0.05825939401984215,
0.08914708346128464,
-0.021984320133924484,
-0.014942910522222519,
0.004205942619591951,
-0.02419598400592804,
-0.02211664244532585,
-0.0848371684551239,
-0.009725651703774929,
0.030415108427405357,
-0.008189774118363857,
0.008804124779999256,
0.008794673718512058,
0.014262398704886436,
-0.024460628628730774,
0.024177081882953644,
0.012891923077404499,
0.050735954195261,
-0.046539463102817535,
-0.013166017830371857,
0.013487370684742928,
0.006025367416441441,
-0.031965162605047226,
-0.015604519285261631,
-0.07001712918281555,
0.040188018232584,
0.0194891095161438,
-0.0665767639875412,
-0.00019242778944317251,
-0.021587355062365532,
0.04306128993630409,
0.0033553026150912046,
0.022986184805631638,
0.02066110260784626,
0.007863694801926613,
-0.03181393817067146,
0.019678140059113503,
-0.06461083889007568,
0.022513607516884804,
-0.0178634412586689,
-0.033628638833761215,
-0.036879971623420715,
-0.00808108039200306,
0.043212514370679855,
0.009016784839332104,
0.04578334093093872,
-0.027617447078227997,
-0.03999898582696915,
-0.03425244241952896,
-0.031927358359098434,
-0.018865305930376053,
0.009527169167995453,
-0.010094262659549713,
0.00858673918992281,
-0.015009071677923203,
0.05727643147110939,
-0.003837331896647811,
-0.00460763368755579,
-0.00952244270592928,
0.026974741369485855,
-0.009092397056519985,
0.07893940061330795,
-0.02236238308250904,
-0.03799525648355484,
0.025424687191843987,
0.033553026616573334,
0.010141519829630852,
-0.020226331427693367,
-0.03604823723435402,
-0.015169748105108738,
0.04196491092443466,
-0.006994151975959539,
0.0002448543964419514,
0.013449564576148987,
-0.007079215720295906,
-0.026332035660743713,
-0.0365397185087204,
-0.012532764114439487,
-0.060943637043237686,
-0.04623701423406601,
0.0019375691190361977,
0.03962092474102974,
-0.019829366356134415,
0.033137157559394836,
0.015046877786517143,
0.04173807427287102,
-0.0373525507748127,
-0.030377302318811417,
0.11462847888469696,
0.00403817743062973,
0.012164153158664703,
0.06056557223200798,
-0.04684191197156906,
0.040452662855386734,
-0.0462748222053051,
-0.03232432156801224,
0.038902606815099716,
-0.0637034922838211,
0.05946919322013855,
0.025065528228878975,
-0.0848371684551239,
0.01798631250858307,
0.04846758022904396,
0.03916725143790245,
0.0012192507274448872,
0.04457354173064232,
-0.038335513323545456,
0.043212514370679855,
-0.03088768571615219,
-0.049337126314640045,
0.025065528228878975,
0.01809973083436489,
-0.029885821044445038,
0.03843002766370773,
0.04200271517038345,
-0.01234373264014721,
-0.031681615859270096,
0.04132220521569252,
-0.021095873787999153,
-0.03901602327823639,
0.04419547691941261,
-0.016455160453915596,
-0.003995645325630903,
-0.004083072301000357,
-0.006025367416441441,
0.05221039801836014,
0.010207680985331535,
-0.0029654258396476507,
0.04903467372059822,
0.03234322741627693,
0.02678571082651615,
0.0150185227394104,
0.037976354360580444,
0.02102026157081127,
-0.010264390148222446,
0.04457354173064232,
-0.019508011639118195,
0.05633127689361572,
0.0036175833083689213,
-0.02512223646044731,
-0.003374205669388175,
-0.02568932995200157,
0.011171739548444748,
-0.04033924266695976,
-0.043250322341918945,
-0.02497101202607155,
-0.01036835741251707,
0.03402560204267502,
-0.044875990599393845,
-0.00414923345670104,
-0.015803001821041107,
0.03778732195496559,
-0.01737195998430252,
-0.0479004867374897,
0.041057560592889786,
-0.08014919608831406,
0.015424939803779125,
0.003523067571222782,
0.001971831079572439,
-0.056369081139564514,
-0.04566992074251175,
0.0241581778973341,
0.01209799200296402,
0.03625617176294327,
-0.04389302805066109,
0.02236238308250904,
-0.009999746456742287,
0.023477666079998016,
-0.04207833111286163,
0.013988303951919079,
-0.06952565163373947,
0.014734976924955845,
-0.0381464809179306,
-0.07451607286930084,
0.020793424919247627,
-0.04234297201037407,
-0.05009324848651886,
0.029413243755698204,
-0.016228321939706802,
0.01652132160961628,
0.0006034228135831654,
0.016861576586961746,
-0.026974741369485855,
0.01822260022163391,
0.01891256496310234,
-0.02894066646695137,
-0.026521068066358566,
-0.04128439724445343,
0.036426298320293427,
-0.028430281206965446,
0.07946868985891342,
0.028260154649615288,
-0.0031213765032589436,
0.02366669662296772,
0.02264592982828617,
-0.05103840306401253,
0.025160042569041252,
0.015056329779326916,
-0.01595422811806202,
-0.054781220853328705,
-0.06529135257005692,
0.01838327758014202,
0.03710681200027466,
0.04083072394132614,
0.06839146465063095,
-0.03011265955865383,
0.04638823866844177,
-0.03463050350546837,
-0.003565599676221609,
-0.025783846154808998,
0.033912185579538345,
0.03912944346666336,
-0.06918539106845856,
0.04230516776442528,
-0.00953662022948265,
-0.019753752276301384,
-0.06517793238162994,
-0.06105705350637436,
-0.004803753457963467,
-0.021209292113780975,
0.09806934744119644,
0.045934565365314484,
0.013128211721777916,
-0.0544031597673893,
0.024309402331709862,
-0.008841930888593197,
0.021322710439562798,
0.04086853191256523,
-0.0310578141361475,
0.004326450172811747,
0.012617828324437141,
-0.010188777931034565,
0.031227942556142807,
-0.008440240286290646,
-0.010472324676811695,
-0.055953215807676315,
0.05962041765451431,
0.07909062504768372,
0.003705010050907731,
-0.02345876395702362,
0.04196491092443466,
-0.03088768571615219,
-0.030736461281776428,
-0.012287023477256298,
0.006020641420036554,
-0.013014793395996094,
0.0377495177090168,
0.008194499649107456,
0.0341012142598629,
0.0442332848906517,
0.0010520763462409377,
0.060943637043237686,
-0.025311268866062164,
-0.009555523283779621,
0.012476054951548576,
-0.027125967666506767,
0.003010320710018277,
0.06366568058729172,
-0.04200271517038345,
-0.02992362715303898,
0.012088540941476822,
-0.02809002622961998,
-0.04207833111286163,
-0.017882345244288445,
0.011956218630075455,
0.003513616044074297,
0.028071122244000435,
0.05470560863614082,
0.01843053475022316,
0.03950750455260277,
-0.011880606412887573,
0.03640739619731903,
0.036634232848882675,
0.03754158318042755,
-0.013846530579030514,
0.02561371773481369,
0.036917779594659805,
0.02342095598578453,
-0.025972876697778702,
-0.014583751559257507,
0.07678444683551788,
-0.05009324848651886,
0.0479004867374897,
0.018732985481619835,
0.005859964992851019,
0.0007348585058934987,
0.0046785203740000725,
-0.038581252098083496,
0.03275909647345543,
0.022721542045474052,
-0.009546072222292423,
0.019375691190361977,
-0.004713963717222214,
-0.036029331386089325
] |
17,562 | imodels.algebraic.marginal_shrinkage_linear_model | _fit_main | null | def _fit_main(self, X, y, sample_weight, coef_marginal_):
# constrain main effects to be same sign as marginal effects by flipping sign
# of X appropriately and refitting with a non-negative least squares
est_main_ = self._get_est_from_name(
self.est_main_name,
alphas=self.alphas,
marginal_sign_constraint=self.marginal_sign_constraint,
)
if self.marginal_sign_constraint:
assert self.est_marginal_name is not None, "must have marginal effects"
coef_signs = np.sign(coef_marginal_)
X = X * coef_signs
est_main_.fit(X, y, sample_weight=sample_weight)
est_main_.coef_ = est_main_.coef_ * coef_signs
# check that signs do not disagree
coef_final_signs = np.sign(est_main_.coef_)
assert np.all(
(coef_final_signs == coef_signs) | (coef_final_signs == 0)
), "signs should agree but" + str(np.sign(est_main_.coef_), coef_signs)
elif est_main_ is None:
# fit dummy clf and override coefs
est_main_ = ElasticNetCV(fit_intercept=False)
est_main_.fit(X[:5], y[:5])
est_main_.coef_ = coef_marginal_
else:
# fit main estimator
# predicting residuals is the same as setting a prior over coef_marginal
# because we do solve change of variables ridge(prior = coef = coef - coef_marginal)
preds_marginal = X @ coef_marginal_
residuals = y - preds_marginal
est_main_.fit(X, residuals, sample_weight=sample_weight)
est_main_.coef_ = est_main_.coef_ + coef_marginal_
return est_main_
| (self, X, y, sample_weight, coef_marginal_) | [
0.03135334700345993,
-0.014738674275577068,
0.049779012799263,
0.021694734692573547,
-0.023329269140958786,
-0.07838337123394012,
-0.01342918910086155,
-0.04015754908323288,
0.04684428125619888,
0.03830012306571007,
-0.020858893170952797,
-0.029087288305163383,
0.021267525851726532,
-0.0006802822463214397,
-0.07823477685451508,
0.04847881570458412,
-0.005516554694622755,
0.0018028640188276768,
-0.01585312932729721,
0.016958298161625862,
-1.133682800968927e-7,
-0.006853901315480471,
-0.06850186735391617,
0.05390249937772751,
-0.010438733734190464,
0.023812199011445045,
-0.0660129189491272,
-0.0034106983803212643,
0.06281813979148865,
-0.08410424739122391,
-0.014794397167861462,
-0.036275528371334076,
-0.02306922897696495,
0.00360804982483387,
-0.027842814102768898,
-0.014552931301295757,
0.030461784452199936,
0.021527566015720367,
0.011274575255811214,
0.023607883602380753,
-0.0038634457159787416,
-0.026189705356955528,
0.06426693499088287,
-0.02357073500752449,
-0.025316715240478516,
0.007842980325222015,
-0.028994418680667877,
0.09108816832304001,
0.02702554687857628,
-0.03655414283275604,
-0.025260992348194122,
-0.05888039991259575,
0.0573573112487793,
0.02654261514544487,
0.003928455524146557,
0.008692753501236439,
0.06044063717126846,
0.05639144778251648,
0.04275794327259064,
-0.0604034885764122,
0.003758965525776148,
-0.014738674275577068,
-0.05126495286822319,
-0.010884515941143036,
-0.024350853636860847,
-0.017385507002472878,
-0.029774537310004234,
-0.0019514580490067601,
-0.023775050416588783,
0.04101196303963661,
0.003050822066143155,
-0.02455517090857029,
-0.053865350782871246,
0.020858893170952797,
-0.006909624207764864,
-0.0318734273314476,
0.02074744738638401,
-0.04491255804896355,
-0.02306922897696495,
0.013466337695717812,
-0.007559723220765591,
0.001485940651036799,
-0.03986036032438278,
-0.01890859566628933,
-0.04650994390249252,
-0.039748914539813995,
0.011330298148095608,
-0.04119770601391792,
0.05969766899943352,
0.011906099505722523,
-0.005191505420953035,
0.089527927339077,
0.05639144778251648,
-0.005953049752861261,
0.07682313770055771,
0.04792158678174019,
0.02938447706401348,
-0.005024337209761143,
0.03315505012869835,
-0.00047683605225756764,
-0.05048483610153198,
0.0424979031085968,
-0.004174564499408007,
0.03818867728114128,
-0.02540958672761917,
0.02358930930495262,
-0.010726634413003922,
0.005131138954311609,
-0.00921283196657896,
0.006408119108527899,
-0.03334079310297966,
-0.05457117408514023,
-0.07559723407030106,
0.03137192130088806,
-0.03036891296505928,
-0.00485252495855093,
-0.0290687158703804,
0.01882501132786274,
-0.0222333874553442,
0.001098203007131815,
0.05182218179106712,
0.05041053891181946,
-0.05876895412802696,
-0.07069362699985504,
-0.002449480351060629,
-0.02787996269762516,
0.025316715240478516,
0.005405109375715256,
0.017496950924396515,
-0.052528005093336105,
-0.00017558479157742113,
0.002978846663609147,
-0.04201497510075569,
0.0001745690096868202,
-0.01757124811410904,
-0.01518445648252964,
0.004555337131023407,
-0.010067247785627842,
-0.025651050731539726,
-0.00025771785294637084,
0.05739445984363556,
0.06385830044746399,
0.01568596065044403,
0.05026194453239441,
-0.01186895091086626,
0.012379743158817291,
-0.0010773070389404893,
-0.028084279969334602,
-0.01842566393315792,
-0.015574515797197819,
-0.01972586289048195,
-0.0036498417612165213,
-0.07500285655260086,
0.01186895091086626,
0.010095109231770039,
-0.029570220038294792,
-0.011293149553239346,
-0.03698134794831276,
0.03621980547904968,
0.008042654022574425,
-0.039080239832401276,
-0.05130210146307945,
0.06749885529279709,
0.020301664248108864,
0.01445077359676361,
-0.0017192797968164086,
-0.009575030766427517,
-0.002369378926232457,
-0.031910575926303864,
0.01618746668100357,
-0.00832591112703085,
-0.028808675706386566,
-0.07749180495738983,
-0.013809961266815662,
0.047215767204761505,
0.005600139033049345,
0.03547683358192444,
-0.07986931502819061,
0.005818386562168598,
-0.005405109375715256,
0.08284119516611099,
0.003320148680359125,
0.03230063617229462,
-0.006895693484693766,
-0.011906099505722523,
0.01052231714129448,
-0.014014278538525105,
0.030127447098493576,
-0.021769031882286072,
-0.029421625658869743,
-0.003900594310835004,
-0.016280338168144226,
-0.0036869903560727835,
0.021286100149154663,
0.009992951527237892,
0.034102339297533035,
0.02851148694753647,
0.011859663762152195,
0.06222376599907875,
-0.07362835854291916,
-0.02325497195124626,
-0.042906537652015686,
0.05089347064495087,
-0.0327092707157135,
-0.04268364608287811,
0.07121370732784271,
-0.006872475612908602,
0.043240875005722046,
-0.10327287763357162,
-0.0338422991335392,
-0.013837822712957859,
0.007123228162527084,
0.008813485503196716,
-0.0290687158703804,
0.016447506844997406,
-0.024499448016285896,
0.030628953129053116,
-0.026969823986291885,
-0.012138278223574162,
0.007146446034312248,
-0.005214723292738199,
-0.02652404084801674,
-0.016410358250141144,
0.048553112894296646,
0.06623580306768417,
-0.007248604670166969,
0.03289501368999481,
0.011971109546720982,
0.021193228662014008,
-0.02773136831820011,
0.015778832137584686,
-0.014255743473768234,
0.049704715609550476,
-0.08061227947473526,
-0.057840242981910706,
0.008404851891100407,
-0.009602892212569714,
-0.005177574697881937,
-0.0071603767573833466,
0.0008433874463662505,
0.004643564578145742,
-0.01499871350824833,
-0.02373790182173252,
0.04428103193640709,
-0.03350796177983284,
0.044726815074682236,
0.025353863835334778,
0.010503743775188923,
0.010865941643714905,
-0.017664119601249695,
0.032114893198013306,
0.00954716932028532,
-0.048701707273721695,
0.018564971163868904,
0.014469347894191742,
-0.0034594556782394648,
0.02786138840019703,
0.031111882999539375,
0.019465822726488113,
0.006110931281000376,
-0.012296159751713276,
0.03306218236684799,
-0.01802631840109825,
0.018797149881720543,
-0.07905204594135284,
-0.005386535078287125,
-0.01660538651049137,
-0.002126752631738782,
-0.015128733590245247,
0.04699287563562393,
0.02999742701649666,
0.06252095848321915,
0.04301798343658447,
0.013568496331572533,
-0.006607792340219021,
0.035736873745918274,
-0.009287129156291485,
-0.020301664248108864,
0.0366470143198967,
0.0029579508118331432,
-0.0012375100050121546,
-0.022530576214194298,
-0.0007423898787237704,
0.0816524401307106,
0.0020710297394543886,
-0.0427950918674469,
0.011144555173814297,
-0.012426178902387619,
0.015128733590245247,
-0.03967461735010147,
-0.011896812357008457,
0.0349753275513649,
0.10030099749565125,
0.0004373657575342804,
-0.006891049910336733,
-0.03934027999639511,
0.0268583782017231,
-0.02639402262866497,
0.003909881692379713,
-0.02072887308895588,
-0.01103310938924551,
0.0033410447649657726,
-0.018880734220147133,
-0.04197782650589943,
0.038745902478694916,
0.023310694843530655,
0.03256067633628845,
-0.02286491170525551,
-0.0031274408102035522,
-0.0016147996066138148,
0.0057069407775998116,
0.0684647187590599,
0.00840949546545744,
0.0017633936367928982,
-0.05691152811050415,
0.012342594563961029,
0.09829498082399368,
-0.007815119810402393,
0.08313838392496109,
0.06898479908704758,
0.006366327404975891,
0.021527566015720367,
0.015964575111865997,
-0.03417663648724556,
0.045544084161520004,
-0.05423683673143387,
0.051339250057935715,
0.013577783480286598,
-0.029440199956297874,
-0.01011368352919817,
-0.0037821833975613117,
-0.02806570567190647,
-0.0013408293016254902,
-0.03488245978951454,
-0.02438800223171711,
0.05297378450632095,
-0.0020176288671791553,
-0.009356782771646976,
0.05605711415410042,
-0.01559309009462595,
-0.008943505585193634,
-0.03322934731841087,
0.010680198669433594,
0.01850924827158451,
-0.03038748726248741,
-0.05107920989394188,
0.037389982491731644,
0.012026832439005375,
0.018147051334381104,
-0.03601548820734024,
-0.05074487626552582,
0.025985388085246086,
0.06712736934423447,
-0.000458261783933267,
-0.004258148837834597,
0.04565552622079849,
-0.019985903054475784,
0.009649327024817467,
0.03267212212085724,
-0.0032481735106557608,
-0.003180841915309429,
-0.0060134162195026875,
-0.06657014042139053,
-0.006974634248763323,
-0.041903529316186905,
-0.05171073600649834,
-0.008316623978316784,
0.000652420858386904,
0.04197782650589943,
-0.049036044627428055,
0.0040399013087153435,
-0.06500990688800812,
-0.05041053891181946,
0.011274575255811214,
0.003777539823204279,
0.023106377571821213,
-0.05943762883543968,
-0.000021857404135516845,
0.04528404399752617,
0.007016426417976618,
0.025818219408392906,
-0.002672371454536915,
-0.01725548692047596,
0.009370713494718075,
0.01974443718791008,
-0.034585271030664444,
0.0648241639137268,
-0.035588279366493225,
0.02789853699505329,
0.026319725438952446,
0.09287129342556,
-0.03352653607726097,
0.012463327497243881,
0.017515525221824646,
-0.02373790182173252,
-0.029235882684588432,
-0.0010204233694821596,
0.012082555331289768,
-0.10148975253105164,
0.014125723391771317,
-0.0137728126719594,
0.04777299240231514,
-0.01765483245253563,
-0.027657071128487587,
0.03222633898258209,
-0.013986417092382908,
-0.018583545461297035,
0.012676931917667389,
-0.02039453573524952,
0.08908214420080185,
-0.05954907462000847,
0.053865350782871246,
0.03651699423789978,
0.03126047924160957,
0.0014325396623462439,
0.04814447835087776,
0.051673587411642075,
0.036275528371334076,
0.020784595981240273,
-0.049036044627428055,
0.05278804525732994,
-0.010865941643714905,
0.04509830102324486,
0.008613812737166882,
0.012463327497243881,
-0.029588794335722923,
-0.053122378885746,
-0.06664443761110306,
-0.0012375100050121546,
-0.028232872486114502,
-0.05605711415410042,
-0.04963041841983795,
-0.06341251730918884,
0.006004129070788622,
0.002744346624240279,
0.01792415976524353,
-0.01884358562529087,
0.01733907125890255,
-0.04026899114251137,
0.019354376941919327,
-0.007819763384759426,
-0.04268364608287811,
0.006041277665644884,
-0.03287643939256668,
-0.10327287763357162,
0.0019143095705658197,
0.01675398088991642,
0.03181770443916321,
-0.08507010340690613,
-0.021508991718292236,
0.0898251160979271,
0.015490931458771229,
0.025112397968769073,
0.04097481444478035,
-0.06735026091337204,
-0.011683208867907524,
0.045544084161520004,
-0.03373085334897041,
0.01336417905986309,
-0.004959327168762684,
-0.02089604176580906,
-0.007165020331740379,
0.011321010999381542,
-0.008284118957817554,
0.0066774459555745125,
0.03534681349992752,
0.020171644166111946,
-0.014627228491008282,
0.00007748948701191694,
-0.004074728116393089,
0.028752952814102173,
-0.006733168847858906,
0.03830012306571007,
-0.012324020266532898,
0.014190733432769775,
0.02321782335639,
0.0018597476882860065,
-0.02308780327439308,
-0.002742024837061763,
0.014367189258337021,
0.028307169675827026,
-0.01326202042400837,
0.009602892212569714,
0.01637320965528488,
0.0016484655207023025,
-0.03971176594495773,
-0.029403051361441612,
-0.009751485660672188,
-0.0021348788868635893,
0.03035033866763115,
-0.004954683594405651,
0.05702297389507294,
0.045544084161520004,
0.05475691333413124,
-0.051673587411642075,
0.00012755292118526995,
0.028232872486114502,
-0.028734378516674042,
0.035253942012786865,
-0.034752439707517624,
0.05375390499830246,
-0.03532823920249939,
-0.055982816964387894,
-0.04335232079029083,
-0.014543644152581692,
0.0458412691950798,
-0.09361426532268524,
0.006245594471693039,
-0.0012758193770423532,
0.0033828369341790676,
0.006747099570930004,
0.008005505427718163,
-0.02271631918847561,
0.024183684960007668,
0.04896174743771553,
0.04197782650589943,
0.03646127134561539,
0.0696534737944603,
0.0792006403207779,
-0.048033032566308975,
0.02204764448106289,
0.001004751306027174,
0.02208479307591915,
-0.03882019966840744,
0.07645165175199509,
0.05048483610153198,
-0.051190655678510666,
-0.008558089844882488,
0.025762496516108513,
0.03155766427516937,
-0.025446735322475433,
-0.012398317456245422,
0.011014535091817379,
0.028604358434677124,
-0.014032852835953236,
-0.06055208295583725,
0.019948754459619522,
-0.0684647187590599,
-0.03534681349992752,
-0.003062431002035737,
-0.042572200298309326,
-0.04045473411679268,
0.0001256664691027254,
-0.017766278237104416,
0.0478101409971714,
-0.023607883602380753,
-0.019317228347063065,
0.025279566645622253,
-0.06616151332855225,
-0.02256772480905056,
-0.02503810077905655,
-0.0019119877833873034,
-0.016475368291139603,
0.040566179901361465,
0.04186638072133064,
-0.0008311980636790395,
-0.04528404399752617,
0.05182218179106712,
-0.03471529111266136,
0.04732721298933029,
-0.02256772480905056,
0.011311723850667477,
0.08291549235582352,
-0.07355406135320663,
0.010169406421482563,
0.027972834184765816,
-0.035588279366493225,
0.0646384209394455,
-0.05862035974860191,
-0.03919168561697006,
-0.029755963012576103,
0.04457822069525719,
-0.008414139039814472,
0.03670273348689079,
-0.04376095533370972,
0.05263945087790489,
0.014915130101144314,
-0.02607825957238674,
-0.05026194453239441,
0.035253942012786865,
0.04394669458270073,
-0.04231216013431549,
0.03844871744513512,
-0.03196629881858826,
-0.0005290761473588645,
-0.0025469951797276735,
0.017209051176905632,
0.03963746875524521,
-0.020951764658093452,
-0.00246805464848876,
-0.06597577035427094,
0.03205917030572891,
-0.016057446599006653,
-0.04528404399752617,
0.030461784452199936,
0.009435723535716534,
-0.029774537310004234,
0.03220776468515396,
0.06185228005051613,
-0.01633606106042862,
-0.0500762015581131,
-0.007086079567670822,
-0.003977213054895401,
-0.004348698537796736,
0.004963970743119717,
0.027285587042570114,
-0.012063981033861637,
-0.006570644211024046,
-0.018583545461297035,
-0.04127200320363045,
-0.009918654337525368,
0.021806180477142334,
0.009807208552956581,
-0.05390249937772751,
0.009640039876103401,
-0.048850301653146744,
-0.05156214162707329,
0.005470119416713715,
0.07087936997413635,
0.04799588397145271,
0.014330040663480759,
-0.03291358798742294,
-0.04234930872917175,
0.02984883449971676,
-0.07652594894170761,
0.032932162284851074,
0.037910062819719315,
-0.07570867985486984,
0.011831803247332573,
0.03452954813838005,
0.03530966490507126,
0.04212641716003418,
0.0008352611912414432,
-0.0162060409784317,
0.09287129342556,
0.03380515053868294,
0.01120027806609869,
0.004996475763618946,
0.010420159436762333,
0.008483792655169964,
0.018304932862520218,
-0.019168635830283165,
0.024518022313714027,
0.0032876438926905394,
-0.006575287785381079,
0.016363922506570816,
-0.025743922218680382,
-0.00033520732540637255,
0.03516107052564621,
-0.02804713137447834,
-0.011971109546720982,
-0.03003457561135292,
-0.027006972581148148,
-0.006552069913595915,
0.033433664590120316,
-0.03618265688419342,
0.0016368565848097205,
-0.002950985450297594,
0.05494265630841255,
0.009301059879362583,
0.004357985686510801,
-0.014227882027626038,
0.10193553566932678,
-0.008664892055094242,
0.04513544961810112,
0.016475368291139603,
-0.047512952238321304,
-0.0757458284497261,
0.003940064460039139,
-0.0752628967165947,
-0.0036498417612165213,
0.034603845328092575,
-0.047215767204761505,
-0.00501969363540411,
0.015695247799158096,
-0.025762496516108513,
0.02358930930495262,
-0.0029068714939057827,
0.020524555817246437,
0.011859663762152195,
0.07622876018285751,
0.048701707273721695,
0.03400946781039238,
-0.025298140943050385,
0.05999485403299332,
-0.061146460473537445,
-0.04591556638479233,
0.03005314990878105,
-0.014580792747437954,
-0.0248895063996315,
0.0021940842270851135,
-0.0789034515619278,
0.00564193120226264,
-0.0517478846013546,
0.011228139512240887,
-0.00028398301219567657,
-0.08001790940761566,
-0.03934027999639511,
-0.02340356633067131,
0.016531091183423996,
-0.002755955560132861,
0.02321782335639,
-0.04294368624687195,
0.006765673868358135,
-0.041717786341905594,
-0.0003212766314391047,
-0.05728301405906677,
0.05055913329124451,
0.0013617253862321377,
-0.10111826658248901,
0.010373723693192005,
-0.005056841764599085,
-0.02319924905896187,
-0.02984883449971676,
0.059846263378858566,
0.031743407249450684,
-0.038708753883838654,
0.008646317757666111,
0.032263487577438354,
0.00954716932028532,
0.0005035365466028452,
-0.004005074501037598,
0.0004594226775225252,
0.011608911678195,
0.025781070813536644,
-0.04186638072133064,
0.01989303156733513,
-0.05512839928269386,
0.0035871537402272224,
-0.013652079738676548,
0.04695572704076767,
0.009537882171571255,
-0.018704278394579887,
-0.014506496489048004,
-0.017097605392336845,
0.01003938727080822,
-0.03752000257372856,
-0.0010865941876545548,
0.01077307015657425,
-0.005939119029790163,
-0.06552998721599579,
0.0008445483399555087,
-0.03348938748240471,
-0.009393931366503239,
-0.032783567905426025,
0.030443210154771805,
0.00036510027712211013,
0.011478891596198082,
0.03087041713297367,
0.0142650306224823,
-0.008999228477478027,
0.007847623899579048,
0.01832350715994835,
0.022660596296191216,
0.057988837361335754,
0.041383448988199234,
0.02520526945590973,
-0.030591804534196854,
0.033749427646398544,
-0.021026061847805977,
0.059326183050870895,
-0.06352396309375763,
0.023366417735815048,
0.02585536800324917,
-0.011172416619956493,
0.039563171565532684,
0.016781842336058617,
0.10371866077184677
] |
17,563 | imodels.algebraic.marginal_shrinkage_linear_model | _fit_marginal | null | def _fit_marginal(self, X, y, sample_weight):
# initialize marginal estimator
ALPHAS_MARGINAL = np.logspace(-1, 3, num=5).tolist()
est_marginal = self._get_est_from_name(
self.est_marginal_name,
alphas=ALPHAS_MARGINAL,
marginal_sign_constraint=False,
)
# fit marginal estimator to each feature
if est_marginal is None:
coef_marginal_ = np.zeros(X.shape[1])
else:
coef_marginal_ = []
for i in range(X.shape[1]):
est_marginal.fit(X[:, i].reshape(-1, 1), y,
sample_weight=sample_weight)
coef_marginal_.append(deepcopy(est_marginal.coef_))
coef_marginal_ = np.vstack(coef_marginal_).squeeze()
# evenly divide effects among features
if self.marginal_divide_by_d:
coef_marginal_ /= X.shape[1]
return coef_marginal_
| (self, X, y, sample_weight) | [
0.033446937799453735,
-0.0033878658432513475,
0.059731870889663696,
-0.005489660892635584,
0.008838899433612823,
-0.07107474654912949,
0.022176774218678474,
-0.01547829806804657,
-0.026339463889598846,
0.08783457428216934,
-0.010379457846283913,
0.00010778798605315387,
0.02163144387304783,
0.023412857204675674,
-0.04373550787568092,
0.031320150941610336,
-0.01049761287868023,
-0.013442397117614746,
-0.028629852458834648,
0.036773454397916794,
0.023830944672226906,
-0.012569868937134743,
-0.062276747077703476,
0.0211951807141304,
-0.024194497615098953,
0.00031129285343922675,
-0.08485343307256699,
0.022776639088988304,
0.04257213696837425,
-0.052642572671175,
-0.0032151779159903526,
-0.07554645836353302,
-0.01625085063278675,
-0.013760507106781006,
-0.05060667172074318,
0.0038218582049012184,
0.04937059059739113,
-0.03406498208642006,
-0.0625312328338623,
-0.024358097463846207,
0.02137695625424385,
-0.021213358268141747,
0.0263212863355875,
0.014987500384449959,
-0.05762325972318649,
-0.0034946599043905735,
-0.02035900577902794,
0.09779594093561172,
-0.05507838353514671,
-0.016378093510866165,
0.0016359916189685464,
-0.028320832177996635,
0.032138146460056305,
-0.017077933996915817,
0.05464211851358414,
-0.01005225908011198,
0.04315382242202759,
0.030665753409266472,
0.0833992138504982,
-0.012079071253538132,
0.0402817502617836,
-0.00664394348859787,
-0.002708474872633815,
-0.03366507217288017,
-0.02126789093017578,
-0.0381731353700161,
0.002202908042818308,
0.010552145540714264,
-0.017923196777701378,
0.020577138289809227,
0.0017121105920523405,
-0.020686205476522446,
-0.004592137411236763,
0.04678935930132866,
-0.03999090567231178,
-0.026848439127206802,
-0.014678480103611946,
-0.02099522575736046,
0.010543056763708591,
0.025248803198337555,
-0.01579640805721283,
-0.004080890212208033,
-0.0402817502617836,
-0.04529878869652748,
0.00641217827796936,
-0.042063161730766296,
-0.0017348327673971653,
-0.00775732658803463,
0.05464211851358414,
0.030047712847590446,
-0.02417632006108761,
0.07147465646266937,
0.09248805791139603,
0.03262894228100777,
0.041190631687641144,
0.04282662272453308,
0.022631216794252396,
0.06038626655936241,
0.0265030637383461,
0.09416040778160095,
-0.07009314745664597,
0.01448761485517025,
0.053660523146390915,
0.07823675125837326,
-0.06558508425951004,
0.02830265462398529,
0.003481026506051421,
0.0074755726382136345,
-0.018259484320878983,
-0.014478525146842003,
-0.06271301209926605,
-0.04140876606106758,
0.02953873760998249,
0.005721426103264093,
0.02653941884636879,
-0.014378548599779606,
-0.03308338671922684,
0.0037718694657087326,
-0.02141331136226654,
0.008025447838008404,
0.027339236810803413,
-0.012324470095336437,
0.0007986819837242365,
-0.051042936742305756,
-0.04649851471185684,
-0.021140646189451218,
0.007725515868514776,
-0.03995455056428909,
0.015914563089609146,
-0.013460575602948666,
-0.05166097730398178,
-0.02081344835460186,
-0.00745739508420229,
0.01164280716329813,
-0.004385366570204496,
-0.052279021590948105,
-0.0017087023006752133,
-0.04631673917174339,
0.027993634343147278,
-0.020268118008971214,
0.014369459822773933,
0.03550101816654205,
0.04184503108263016,
0.026757551357150078,
0.01031583547592163,
0.0392274409532547,
0.03553737327456474,
0.02194046415388584,
0.007461939472705126,
-0.0742013081908226,
-0.041226986795663834,
-0.04409906268119812,
-0.017123378813266754,
-0.02972051315009594,
-0.007184729911386967,
0.019450122490525246,
-0.041045211255550385,
-0.022703927010297775,
0.030974773690104485,
-0.018468527123332024,
-0.023630989715456963,
-0.05529651418328285,
-0.014342192560434341,
0.07042034715414047,
0.025012493133544922,
0.02901158481836319,
0.02099522575736046,
0.017059756442904472,
-0.019104747101664543,
0.0007356281857937574,
0.032774366438388824,
-0.013487841933965683,
-0.028248121961951256,
-0.003983185160905123,
0.0321563221514225,
0.03679163381457329,
-0.01826857216656208,
-0.05177004635334015,
0.018813902512192726,
0.007902747951447964,
0.06096795201301575,
0.009379684925079346,
0.028357187286019325,
-0.017150646075606346,
-0.040899790823459625,
-0.029102472588419914,
0.010188591666519642,
0.05816859006881714,
-0.036409903317689896,
0.032774366438388824,
0.008979775942862034,
-0.026593951508402824,
0.027484659105539322,
0.007030219305306673,
-0.015805495902895927,
0.03930015489459038,
-0.004771641921252012,
-0.05805952474474907,
0.020722560584545135,
-0.0413360558450222,
0.029247894883155823,
-0.05460576340556145,
-0.0008810496074147522,
0.0056305378675460815,
-0.013915017247200012,
0.04268120229244232,
-0.03630083426833153,
0.05573277920484543,
-0.081290602684021,
-0.05925925076007843,
-0.026303108781576157,
0.014096793718636036,
0.032392632216215134,
-0.03237445652484894,
0.02204953134059906,
-0.012733467854559422,
0.02159508876502514,
-0.033919557929039,
-0.06493068486452103,
-0.04293569177389145,
0.0664212554693222,
-0.00906611979007721,
-0.07154736667871475,
0.0865984857082367,
0.07122016698122025,
-0.025703245773911476,
0.05129742622375488,
-0.031392861157655716,
-0.012642579153180122,
-0.01653260365128517,
0.02201317623257637,
-0.008039080537855625,
0.049988631159067154,
-0.058677565306425095,
-0.031120195984840393,
-0.039772775024175644,
0.008311745710670948,
0.000513803621288389,
-0.014224037528038025,
0.022594861686229706,
-0.02294023707509041,
-0.02639399841427803,
0.022885704413056374,
0.062422167509794235,
0.008979775942862034,
0.03491933271288872,
0.012515335343778133,
0.006812087260186672,
0.006793909706175327,
0.022522151470184326,
-0.031211083754897118,
0.022849349305033684,
-0.04246307164430618,
-0.02537604793906212,
0.004753464367240667,
-0.037082474678754807,
-0.006875709164887667,
0.06791182607412338,
-0.0008980912389233708,
-0.0025516925379633904,
-0.019831852987408638,
-0.012124515138566494,
-0.03268347680568695,
0.023194724693894386,
-0.04126334190368652,
0.0025835034903138876,
0.025848666206002235,
0.0008486706647090614,
-0.02084980346262455,
0.0335741825401783,
-0.010424901731312275,
0.06918426603078842,
0.07670982927083969,
-0.023740055039525032,
-0.015605541877448559,
-0.016378093510866165,
0.036028169095516205,
-0.03691887855529785,
-0.0005674845888279378,
0.0314473956823349,
-0.014987500384449959,
-0.07605542987585068,
0.04031810536980629,
0.07918199151754379,
-0.016950691118836403,
0.005216995254158974,
-0.0025789588689804077,
0.009084297344088554,
0.012815267778933048,
0.03141103684902191,
0.005671437364071608,
0.020013630390167236,
0.05387865751981735,
0.048388995230197906,
-0.027648257091641426,
-0.022213129326701164,
0.026757551357150078,
0.028847984969615936,
-0.006716654170304537,
-0.0006810951163060963,
-0.01681435853242874,
0.0353374183177948,
0.02163144387304783,
-0.003528743050992489,
0.05140649154782295,
0.02957509271800518,
0.0487525500357151,
-0.0392274409532547,
-0.005557827185839415,
0.005262439604848623,
0.031247438862919807,
0.10172232240438461,
0.011433763429522514,
-0.006112246308475733,
-0.0038014082238078117,
-0.01791410706937313,
0.0282662995159626,
0.00767552712932229,
0.025885023176670074,
0.042208582162857056,
0.03642807900905609,
0.004430810455232859,
0.04882526025176048,
-0.0037923194468021393,
0.015114744193851948,
-0.031647346913814545,
0.05816859006881714,
0.038209494203329086,
-0.027539191767573357,
-0.008843443356454372,
-0.034646667540073395,
-0.021249713376164436,
-0.0001020364579744637,
0.006930242292582989,
-0.0015155643923208117,
0.04151783138513565,
-0.028575319796800613,
-0.02286752685904503,
0.030084067955613136,
-0.011597362346947193,
-0.021122468635439873,
-0.051042936742305756,
-0.014224037528038025,
-0.00035219264100305736,
0.036628033965826035,
-0.03222903609275818,
0.048388995230197906,
0.05518744885921478,
-0.024285385385155678,
0.0015360143734142184,
-0.013433308340609074,
0.046134963631629944,
0.0879799947142601,
0.021104291081428528,
-0.027448303997516632,
0.014705746434628963,
-0.0033719604834914207,
-0.010024992749094963,
-0.03690069913864136,
0.045916829258203506,
0.004944330081343651,
0.04904339089989662,
-0.04035446047782898,
-0.011179275810718536,
-0.011297430843114853,
0.018532149493694305,
-0.04438990354537964,
0.015769140794873238,
0.059913646429777145,
-0.017359688878059387,
0.029484203085303307,
-0.011860938742756844,
-0.07976368069648743,
0.051042936742305756,
0.008548055775463581,
0.01710520125925541,
-0.07249260693788528,
-0.008429900743067265,
0.04409906268119812,
0.03784593939781189,
0.004744375590234995,
-0.028211766853928566,
0.04802544042468071,
-0.020468072965741158,
-0.014478525146842003,
-0.012833445332944393,
0.08448987454175949,
-0.04653487354516983,
-0.03099295124411583,
0.0008600316941738129,
0.04017268121242523,
-0.0004339922161307186,
-0.053478747606277466,
0.01136105228215456,
-0.052497152239084244,
-0.043699152767658234,
0.02399454265832901,
0.012578957714140415,
-0.05922289565205574,
-0.003426493378356099,
0.01897750236093998,
0.015823673456907272,
-0.09372413903474808,
-0.010743011720478535,
-0.054896607995033264,
-0.006780276075005531,
-0.051079291850328445,
0.044862523674964905,
-0.01390592847019434,
0.08107247203588486,
-0.03402862325310707,
0.07361961901187897,
0.03619176894426346,
0.009815949946641922,
0.04827992990612984,
-0.01830492727458477,
0.018850259482860565,
0.010297657921910286,
0.019141102209687233,
-0.025012493133544922,
0.04315382242202759,
-0.029447847977280617,
0.031647346913814545,
0.0027880023699253798,
-0.014769368804991245,
-0.03170188143849373,
-0.05820494517683983,
-0.04580776393413544,
0.03244716674089432,
-0.05656895413994789,
-0.01844125986099243,
0.014969322830438614,
-0.05678708478808403,
0.004374005366116762,
0.04446261748671532,
-0.043699152767658234,
-0.024921605363488197,
0.035391952842473984,
-0.022376729175448418,
0.008925243280827999,
-0.007693704683333635,
-0.03328334167599678,
0.06304021179676056,
-0.01625993847846985,
-0.0710020363330841,
0.005121562629938126,
-0.008166324347257614,
0.0025971366558223963,
-0.037446029484272,
-0.053406037390232086,
0.09226992726325989,
0.009615994989871979,
0.05380594730377197,
0.03617359325289726,
-0.007816404104232788,
-0.015232899226248264,
0.021740511059761047,
-0.04060894623398781,
0.055878203362226486,
0.02781185694038868,
-0.03331969678401947,
-0.0005555554525926709,
0.0029152461793273687,
-0.01834128424525261,
-0.027466481551527977,
0.003578731557354331,
0.018395816907286644,
-0.0021983636543154716,
0.029429670423269272,
0.03442853316664696,
0.05751419439911842,
0.005157917737960815,
0.010279480367898941,
-0.04177231714129448,
0.008734377101063728,
-0.009506928734481335,
0.005471482872962952,
-0.028629852458834648,
0.01579640805721283,
0.026248576119542122,
0.02481253817677498,
0.02477618306875229,
0.04758917912840843,
-0.016514426097273827,
-0.03095659613609314,
-0.016105428338050842,
-0.03766416013240814,
0.012397180311381817,
0.03571914881467819,
0.0012144965585321188,
-0.01654169335961342,
0.09910473227500916,
0.0328652523458004,
-0.035700973123311996,
-0.05140649154782295,
-0.0270302165299654,
0.03211996704339981,
0.010570323094725609,
0.04904339089989662,
-0.015060211531817913,
-0.005657804198563099,
-0.023721877485513687,
-0.022322196513414383,
-0.024212675169110298,
-0.06627583503723145,
0.028357187286019325,
0.00038513969047926366,
0.019286522641777992,
0.004269483499228954,
-0.01780504174530506,
0.026521241292357445,
-0.02841171994805336,
-0.06743920594453812,
0.02294023707509041,
-0.009047942236065865,
0.014069527387619019,
-0.01908656768500805,
0.0985957607626915,
0.03259258717298508,
-0.005048851948231459,
0.01975914277136326,
-0.008616222068667412,
-0.00926152989268303,
-0.049915920943021774,
0.016369003802537918,
0.00018149281095247716,
-0.011470118537545204,
-0.024321742355823517,
-0.03010224550962448,
-0.004042262677103281,
-0.027266526594758034,
-0.02346738986670971,
0.01622358337044716,
0.014442170038819313,
-0.03900931030511856,
-0.04638944938778877,
0.02194046415388584,
-0.05129742622375488,
-0.04562598839402199,
-0.000143291283166036,
-0.03890024498105049,
-0.07947283238172531,
-0.008048169314861298,
0.028502609580755234,
0.0012985683279111981,
-0.01671438105404377,
-0.02777550183236599,
-0.01540558785200119,
-0.02204953134059906,
0.020049985498189926,
-0.006630310323089361,
-0.020304473116993904,
-0.07670982927083969,
0.039627350866794586,
0.03137468174099922,
0.004230855964124203,
-0.015696430578827858,
0.002869801828637719,
0.00929334107786417,
0.031083840876817703,
-0.036100879311561584,
-0.02664848603308201,
0.08485343307256699,
-0.04319017753005028,
0.04151783138513565,
0.005376050248742104,
-0.05685979500412941,
0.03021131083369255,
-0.0759827196598053,
-0.011042943224310875,
0.006834809202700853,
0.06707565486431122,
-0.032065436244010925,
0.048643484711647034,
-0.03077481873333454,
0.04039081558585167,
-0.001598500064574182,
-0.028193587437272072,
-0.011615539900958538,
0.04199045151472092,
-0.024685295298695564,
-0.019595542922616005,
0.048679839819669724,
-0.011370141990482807,
-0.02275846153497696,
0.01390592847019434,
-0.047334689646959305,
0.0007293795933946967,
0.021049758419394493,
0.00021685409592464566,
-0.06932968646287918,
-0.006580321583896875,
0.012160871177911758,
-0.03806407004594803,
0.04926152527332306,
0.03504657372832298,
-0.03900931030511856,
0.012397180311381817,
0.012978866696357727,
-0.03308338671922684,
-0.00391274644061923,
0.0470074899494648,
0.0026039532385766506,
0.03331969678401947,
0.01501476764678955,
0.024249030277132988,
0.0164326261729002,
-0.014842079021036625,
0.005553282331675291,
-0.020049985498189926,
-0.06144057214260101,
0.016987046226859093,
0.017505109310150146,
0.03653714433312416,
-0.04693477973341942,
-0.030483976006507874,
-0.020522605627775192,
0.012969777919352055,
0.0423903614282608,
-0.0038286747876554728,
-0.007516472600400448,
-0.06344012171030045,
-0.03095659613609314,
0.03513746336102486,
-0.03700976446270943,
-0.020013630390167236,
-0.014460347592830658,
-0.09779594093561172,
0.03190183639526367,
0.07307428866624832,
0.02017723023891449,
0.036700744181871414,
0.0027993633411824703,
-0.019122924655675888,
0.04322653263807297,
0.04002726078033447,
-0.009047942236065865,
-0.042172227054834366,
0.017923196777701378,
0.030538510531187057,
0.014233127236366272,
0.024848895147442818,
0.02859349735081196,
-0.0020427173003554344,
-0.01852305978536606,
0.02657577395439148,
-0.04798908531665802,
0.000012230882930452935,
0.047407399863004684,
-0.0206680279225111,
-0.0004339922161307186,
-0.09067028760910034,
-0.02639399841427803,
-0.02003180794417858,
0.07336513698101044,
-0.08361734449863434,
-0.03424675762653351,
0.06674845516681671,
0.019850030541419983,
-0.04249942675232887,
0.04177231714129448,
-0.03915473073720932,
0.0639490932226181,
-0.00595319177955389,
0.02912065014243126,
0.02392183244228363,
-0.04802544042468071,
-0.08230855315923691,
-0.02859349735081196,
-0.05282435193657875,
0.014178593643009663,
0.056059978902339935,
-0.034192223101854324,
-0.006634854711592197,
-0.007280162535607815,
-0.034610312432050705,
0.017441488802433014,
0.004912519361823797,
0.004024084657430649,
0.03919108584523201,
0.10063166171312332,
0.03926379978656769,
0.022267663851380348,
-0.01678709127008915,
0.021049758419394493,
-0.04159054160118103,
-0.03522835299372673,
-0.012851622886955738,
-0.029447847977280617,
-0.004046807065606117,
-0.01355146337300539,
-0.06264030188322067,
0.017259711399674416,
0.005089751444756985,
-0.009157008491456509,
0.025285158306360245,
-0.02081344835460186,
-0.023376502096652985,
0.008257213048636913,
-0.0019665982108563185,
0.005007951986044645,
0.02208588644862175,
-0.061258796602487564,
0.05162462219595909,
-0.03553737327456474,
-0.031538281589746475,
-0.027866389602422714,
0.07358326762914658,
0.010697566904127598,
-0.013278798200190067,
0.01735059916973114,
0.04904339089989662,
-0.0346284881234169,
-0.03317427262663841,
0.05642353370785713,
0.0413360558450222,
-0.052279021590948105,
-0.004610314965248108,
0.022631216794252396,
-0.030865708366036415,
0.03186548128724098,
0.008525334298610687,
-0.02010451816022396,
0.012188137508928776,
-0.010752100497484207,
-0.03141103684902191,
0.06311292201280594,
-0.002947057131677866,
0.024848895147442818,
-0.06496704369783401,
0.057332415133714676,
-0.0013371958630159497,
-0.018595771864056587,
0.003381049260497093,
0.007071119267493486,
0.004767097532749176,
-0.07750964909791946,
-0.003808224806562066,
0.03226539120078087,
-0.010652123019099236,
-0.07830946147441864,
0.04529878869652748,
0.041045211255550385,
0.031320150941610336,
-0.025394225493073463,
0.006153146270662546,
-0.00971597246825695,
-0.011733694933354855,
0.044935233891010284,
-0.0018427626928314567,
-0.002892524003982544,
-0.014214948751032352,
-0.01954101026058197,
0.049915920943021774,
0.06987501680850983,
-0.012969777919352055,
0.014660302549600601,
-0.021922286599874496,
0.026812084019184113,
-0.049697790294885635,
-0.018032262101769447,
-0.08412632346153259,
0.028084522113204002,
-0.01688706874847412,
-0.03032037802040577,
0.031392861157655716,
0.038318559527397156,
0.06583957374095917
] |
17,565 | imodels.algebraic.marginal_shrinkage_linear_model | _get_est_from_name | null | def _get_est_from_name(self, est_name, alphas, marginal_sign_constraint):
L1_RATIOS = {
"ridge": 1e-6,
"lasso": 1,
"elasticnet": self.elasticnet_ratio,
}
if est_name not in L1_RATIOS:
return None
else:
if est_name == "ridge" and not marginal_sign_constraint:
# this implementation is better than ElasticNetCV with l1_ratio close to 0
return RidgeCV(
alphas=alphas,
fit_intercept=False,
)
return ElasticNetCV(
l1_ratio=L1_RATIOS[est_name],
alphas=alphas,
max_iter=10000,
fit_intercept=False,
positive=bool(marginal_sign_constraint),
)
| (self, est_name, alphas, marginal_sign_constraint) | [
0.08010383695363998,
-0.07108651846647263,
-0.014343170449137688,
0.0007849058019928634,
-0.009557416662573814,
-0.0382484532892704,
0.005823683924973011,
-0.039037469774484634,
0.03779758885502815,
0.033401645720005035,
0.01927451603114605,
0.051962289959192276,
-0.02455340325832367,
0.0073594460263848305,
-0.009778153151273727,
0.002145135309547186,
0.03420944884419441,
-0.0038300114683806896,
-0.04039006680250168,
-0.014089558273553848,
0.01605270244181156,
-0.023144448176026344,
-0.0009011446381919086,
-0.021096764132380486,
0.026995593681931496,
0.015150971710681915,
0.06312122195959091,
-0.0277282502502203,
-0.02769067883491516,
-0.030339514836668968,
-0.032424770295619965,
-0.08408648520708084,
-0.028799057006835938,
0.026018716394901276,
0.01470949873328209,
0.015207329764962196,
-0.005156778264790773,
0.005302370525896549,
0.011346790939569473,
-0.01891757920384407,
0.019030297175049782,
-0.03413430228829384,
0.007655326742678881,
-0.035956550389528275,
-0.02404617890715599,
0.03499846160411835,
-0.027709463611245155,
-0.009956620633602142,
0.011365576647222042,
-0.004553275648504496,
-0.024478258565068245,
-0.06680329144001007,
0.014033200219273567,
0.0032899118959903717,
-0.037966661155223846,
0.015338832512497902,
0.04234381765127182,
0.07371656596660614,
0.009374252520501614,
0.018015848472714424,
0.01650356873869896,
-0.06661543250083923,
-0.022580865770578384,
0.010726850479841232,
-0.0868668183684349,
0.027803394943475723,
-0.02722102589905262,
-0.00817664060741663,
-0.035599615424871445,
0.013742015697062016,
0.027709463611245155,
-0.006706629414111376,
-0.04414728283882141,
-0.02333230897784233,
-0.011750691570341587,
0.04764149338006973,
-0.04054035618901253,
-0.020119888707995415,
0.018692146986722946,
-0.010858352296054363,
0.01609027571976185,
-0.000615831115283072,
0.0033486182801425457,
-0.08581480383872986,
0.021002834662795067,
-0.10167025029659271,
-0.049595244228839874,
-0.08814427256584167,
0.045762885361909866,
0.006227584555745125,
0.021247053518891335,
-0.01212641317397356,
0.005565375555306673,
-0.023088088259100914,
0.06669057160615921,
0.02973836101591587,
0.032838065177202225,
-0.012276701629161835,
0.08551422506570816,
-0.007420500740408897,
0.004738788120448589,
0.06214434280991554,
-0.04444785788655281,
0.035599615424871445,
-0.032368410378694534,
-0.000495482818223536,
0.0195750929415226,
0.024158895015716553,
-0.004074230324476957,
-0.009270928800106049,
-0.03911261260509491,
-0.02132219821214676,
-0.014249240048229694,
0.016015131026506424,
0.006561037618666887,
-0.05008368194103241,
-0.006861614994704723,
-0.012915427796542645,
-0.058725278824567795,
0.004797494504600763,
0.011290432885289192,
0.06274549663066864,
-0.05819926783442497,
0.05215015262365341,
-0.002601871732622385,
0.002726329490542412,
0.00792302843183279,
-0.003945076372474432,
-0.0011559308040887117,
-0.05173685774207115,
0.07014721632003784,
-0.01268999557942152,
-0.020645899698138237,
-0.0053963009268045425,
0.012849677354097366,
0.023670457303524017,
0.009862690232694149,
0.059025853872299194,
-0.025699354708194733,
0.013422652147710323,
0.020589541643857956,
-0.016127847135066986,
-0.02639443799853325,
0.0015216722385957837,
0.0012586672091856599,
-0.016005737707018852,
0.010388701222836971,
-0.021829422563314438,
0.004332539159804583,
0.013648085296154022,
-0.023557741194963455,
-0.007645933423191309,
-0.05260101705789566,
-0.00635908730328083,
0.04696519300341606,
-0.08814427256584167,
-0.0020171550568193197,
-0.06037845462560654,
-0.03792909160256386,
-0.016682036221027374,
-0.02656351402401924,
-0.010773815214633942,
-0.012830890715122223,
-0.06868189573287964,
0.041855379939079285,
-0.028066400438547134,
-0.022637223824858665,
0.020570755004882812,
-0.010905317962169647,
-0.027089523151516914,
-0.024534616619348526,
-0.011215288192033768,
-0.09378010034561157,
0.0068334355019032955,
-0.05429176241159439,
0.03518632426857948,
0.014953717589378357,
0.023651670664548874,
-0.008195426315069199,
-0.022111212834715843,
0.046627044677734375,
0.022261502221226692,
-0.000736179412342608,
-0.013197218999266624,
0.011929159052670002,
-0.0027826877776533365,
0.029569284990429878,
0.03543054312467575,
-0.043658845126628876,
0.013695050030946732,
0.004363066516816616,
0.017696484923362732,
-0.0033251356799155474,
0.002951762406155467,
0.035881407558918,
-0.022543292492628098,
-0.02404617890715599,
0.05361546576023102,
0.0046166786924004555,
-0.010980462655425072,
-0.013619906269013882,
0.01722683385014534,
0.0121545922011137,
0.04110393673181534,
0.009900262579321861,
-0.012304880656301975,
0.04189295321702957,
-0.025943573564291,
0.018025241792201996,
0.014098950661718845,
-0.06424838304519653,
0.04839293658733368,
-0.01933087408542633,
0.03116610273718834,
0.012643029913306236,
-0.0375157967209816,
0.01933087408542633,
0.010867745615541935,
0.009238053113222122,
-0.005274191033095121,
-0.028385762125253677,
-0.016888683661818504,
0.13601119816303253,
0.011994910426437855,
0.046777334064245224,
-0.05594493821263313,
0.003301653079688549,
-0.010050551034510136,
0.017405301332473755,
0.02558663673698902,
0.0203077495098114,
-0.060115449130535126,
0.023088088259100914,
-0.07288998365402222,
-0.007993475534021854,
0.056733954697847366,
-0.040991220623254776,
-0.005602947436273098,
0.01604331098496914,
-0.053653035312891006,
0.027559176087379456,
0.01906786859035492,
-0.06094203516840935,
0.07585818320512772,
0.01504764799028635,
-0.08942172676324844,
-0.010623526759445667,
-0.013572940602898598,
-0.05538135766983032,
-0.0007003684295341372,
0.06469924747943878,
0.001654348918236792,
0.008679167367517948,
-0.017292583361268044,
-0.032781705260276794,
-0.002660578116774559,
-0.06342180073261261,
0.03522389382123947,
0.041442085057497025,
-0.03937561810016632,
-0.031391534954309464,
0.004959524609148502,
0.0020735133439302444,
0.023463809862732887,
-0.03744065389037132,
-0.018842436373233795,
0.05361546576023102,
-0.018419748172163963,
0.046364039182662964,
-0.026018716394901276,
-0.01896454580128193,
0.05136113613843918,
0.00548553466796875,
-0.03172968327999115,
0.05331488698720932,
-0.010792601853609085,
0.03372100740671158,
-0.015808483585715294,
-0.014061379246413708,
0.04463572055101395,
0.020890118554234505,
-0.0029822897631675005,
-0.05609522759914398,
0.043395839631557465,
-0.003797136014327407,
0.006748898420482874,
-0.0036186680663377047,
-0.11286675184965134,
0.009313197806477547,
-0.002662926446646452,
0.021754277870059013,
0.008655685000121593,
-0.0011365576647222042,
-0.03092188388109207,
-0.002104040700942278,
0.00001135603724833345,
0.04193052649497986,
-0.009613774716854095,
0.03907503932714462,
0.01304693054407835,
0.07063565403223038,
-0.026544727385044098,
0.017903132364153862,
-0.039037469774484634,
-0.021547630429267883,
-0.040465209633111954,
-0.040728215128183365,
-0.003372100880369544,
-0.0013842991320416331,
0.03866174817085266,
-0.03567476198077202,
-0.004856200888752937,
-0.025849642232060432,
-0.00479514617472887,
0.010708063840866089,
0.03434094786643982,
0.07315298914909363,
-0.014051985926926136,
0.05414147675037384,
0.03249991312623024,
0.018109777942299843,
0.0388496071100235,
-0.09580899775028229,
-0.04895651713013649,
0.012643029913306236,
-0.06045359745621681,
-0.01158161647617817,
0.04110393673181534,
-0.0025032449048012495,
0.006523465272039175,
-0.04501144215464592,
-0.056921813637018204,
0.028010040521621704,
-0.026788946241140366,
-0.042005669325590134,
0.04260682314634323,
0.05609522759914398,
0.05023397132754326,
-0.026732588186860085,
-0.015028862282633781,
0.01953751966357231,
-0.03732793405652046,
-0.020326536148786545,
0.030640091747045517,
-0.010191447101533413,
-0.01276513934135437,
0.06616456806659698,
-0.02060832642018795,
0.03869931772351265,
-0.07672233879566193,
-0.07822522521018982,
-0.02199849672615528,
-0.003588140709325671,
0.025981144979596138,
0.018532466143369675,
0.10151996463537216,
-0.0038840214256197214,
0.01938723213970661,
0.04670218750834465,
-0.07435529679059982,
-0.0008553536026738584,
-0.040690645575523376,
-0.04208081215620041,
-0.035242680460214615,
-0.026976807042956352,
-0.007847883738577366,
0.034472450613975525,
0.006701933220028877,
0.07544488459825516,
-0.06616456806659698,
-0.018025241792201996,
-0.018494892865419388,
-0.021265840157866478,
-0.028385762125253677,
-0.01665385812520981,
-0.04504901543259621,
0.009073675610125065,
-0.025906000286340714,
0.049858249723911285,
-0.016428424045443535,
0.02096526324748993,
0.04580045863986015,
0.040277350693941116,
0.05868770554661751,
0.02896813116967678,
-0.04797964170575142,
0.026169005781412125,
0.0277282502502203,
0.057598114013671875,
-0.048468079417943954,
0.030583733692765236,
0.007495644968003035,
0.03409672901034355,
0.04906923323869705,
0.006434231530874968,
0.005081634037196636,
-0.04260682314634323,
-0.016005737707018852,
-0.11219045519828796,
0.07210096716880798,
-0.06131775677204132,
0.06845646351575851,
-0.0042315637692809105,
-0.011412542313337326,
-0.04666461795568466,
-0.02983229048550129,
0.050722409039735794,
0.061242613941431046,
0.0013572940370067954,
0.05414147675037384,
-0.05643337592482567,
0.020627113059163094,
-0.040465209633111954,
-0.038323596119880676,
0.0028320010751485825,
0.0444854311645031,
0.03306349739432335,
0.026638658717274666,
-0.01609966903924942,
-0.06075417622923851,
-0.043959420174360275,
0.001036169589497149,
-0.020645899698138237,
0.03024558536708355,
0.009477576240897179,
0.016212385147809982,
-0.04794206842780113,
-0.01671021617949009,
-0.03210540488362312,
-0.03644499182701111,
-0.0652252584695816,
0.00016437817248515785,
0.006739505100995302,
-0.07315298914909363,
0.04317040741443634,
0.00301751377992332,
-0.0655258372426033,
-0.009712401777505875,
-0.019913241267204285,
-0.07172524183988571,
0.027390100061893463,
0.005701574496924877,
-0.014089558273553848,
-0.011459507048130035,
-0.04425999894738197,
-0.017001399770379066,
-0.002881314605474472,
0.019518734887242317,
-0.02804761379957199,
-0.12496498972177505,
0.06864432990550995,
0.0037431258242577314,
0.007645933423191309,
0.046890050172805786,
0.02752160280942917,
-0.015395190566778183,
0.0415172316133976,
0.006424838677048683,
0.015554872341454029,
0.050271544605493546,
-0.05215015262365341,
0.011684940196573734,
0.04681490361690521,
0.015939986333251,
0.013685657642781734,
0.03918775916099548,
0.07044778764247894,
-0.0077774361707270145,
0.02393346279859543,
-0.03990162909030914,
-0.01189158670604229,
-0.031053386628627777,
0.023463809862732887,
-0.013244184665381908,
-0.028517264872789383,
0.019913241267204285,
0.034735456109046936,
-0.008655685000121593,
0.04812993109226227,
0.06116746738553047,
0.03644499182701111,
-0.04125422611832619,
0.016954435035586357,
0.039037469774484634,
0.010642312467098236,
0.019293300807476044,
-0.08047955483198166,
0.04335826635360718,
-0.04658947139978409,
-0.012708781287074089,
-0.04471086338162422,
0.022956587374210358,
0.016531748697161674,
0.09347952157258987,
-0.027333742007613182,
0.004553275648504496,
0.035881407558918,
-0.015855450183153152,
0.015921199694275856,
0.010764422826468945,
-0.002324777189642191,
-0.03800423443317413,
-0.020570755004882812,
-0.0249103382229805,
0.04854322224855423,
-0.04343340918421745,
-0.0661269947886467,
0.0244594719260931,
0.011684940196573734,
0.00892338715493679,
0.007899545133113861,
0.015526693314313889,
-0.0040554446168243885,
0.007800918538123369,
-0.009388342499732971,
0.03075280785560608,
0.05628308653831482,
0.005100420210510492,
-0.014662533067166805,
0.004283225629478693,
0.02378317341208458,
0.01527308113873005,
-0.010473238304257393,
-0.007636540569365025,
0.011750691570341587,
0.018598217517137527,
0.0014300901675596833,
0.001615602639503777,
0.02122826687991619,
0.04779178276658058,
0.008735526353120804,
-0.03152303770184517,
-0.020946476608514786,
0.0388496071100235,
0.016221778467297554,
0.049707960337400436,
-0.02532363310456276,
-0.0017259708838537335,
-0.021209482103586197,
-0.01276513934135437,
-0.013976841233670712,
-0.03295078128576279,
0.030583733692765236,
0.032274480909109116,
0.016334494575858116,
-0.011365576647222042,
0.015564264729619026,
0.057898689061403275,
0.015169757418334484,
-0.019255729392170906,
0.03225569427013397,
0.02977593243122101,
-0.03689585626125336,
-0.04843050613999367,
0.014051985926926136,
0.04275711253285408,
-0.04527444764971733,
-0.023088088259100914,
-0.023708030581474304,
0.011356184259057045,
-0.002458627801388502,
-0.008491306565701962,
0.06289578974246979,
0.042005669325590134,
-0.0029118419624865055,
0.014841001480817795,
-0.016682036221027374,
0.012492741458117962,
0.04782935231924057,
0.0026417921762913465,
0.0019443590426817536,
-0.027051951736211777,
0.031598180532455444,
-0.00046906486386433244,
-0.036163199692964554,
0.04444785788655281,
0.00022425879433285445,
0.009256839752197266,
-0.039338044822216034,
0.023670457303524017,
0.020025959238409996,
-0.06811831891536713,
-0.013178433291614056,
-0.040465209633111954,
-0.026488369330763817,
0.031128529459238052,
-0.028667554259300232,
0.01927451603114605,
-0.03383372724056244,
0.005443266127258539,
-0.019462376832962036,
-0.002512637758627534,
0.020364107564091682,
0.02256207913160324,
-0.0403149239718914,
-0.002723981160670519,
-0.0551559217274189,
0.013704443350434303,
-0.005570071749389172,
-0.010529596358537674,
-0.01666325144469738,
-0.04110393673181534,
0.0039004592690616846,
0.019105440005660057,
0.022468147799372673,
0.03813573718070984,
-0.003024558536708355,
-0.019255729392170906,
0.011196502484381199,
-0.008824760094285011,
0.07153738290071487,
0.010520203039050102,
-0.04497386887669563,
-0.007288997992873192,
0.02917477861046791,
-0.02414011023938656,
-0.002079383935779333,
0.05019639804959297,
-0.03169211372733116,
0.02363288588821888,
0.043658845126628876,
0.03122246079146862,
-0.008646291680634022,
0.01479403581470251,
-0.03323256969451904,
-0.05199986323714256,
0.055757079273462296,
-0.07950267940759659,
0.007927725091576576,
-0.060979608446359634,
0.007350052706897259,
-0.013084502890706062,
-0.05504320561885834,
-0.0655258372426033,
-0.014540423639118671,
-0.003097354434430599,
0.07965296506881714,
0.01125286053866148,
-0.028667554259300232,
0.03899989649653435,
-0.008463127538561821,
0.04208081215620041,
0.014502852223813534,
0.005955186672508717,
0.0011899805394932628,
0.04737848788499832,
-0.005142688751220703,
-0.0026370955165475607,
0.03377736732363701,
0.01829763874411583,
0.014662533067166805,
0.02917477861046791,
0.021247053518891335,
-0.03858660161495209,
0.014296204783022404,
-0.013422652147710323,
-0.008580541238188744,
0.02769067883491516,
-0.02137855626642704,
0.006950848735868931,
-0.03629470244050026,
-0.03507360816001892,
0.05917614325881004,
0.05891313776373863,
0.04012706130743027,
0.03018922731280327,
-0.023745601996779442,
-0.031053386628627777,
-0.012304880656301975,
-0.04125422611832619,
-0.10738121718168259,
0.008899903856217861,
0.03670799359679222,
-0.014136523008346558,
0.0468524768948555,
-0.011459507048130035,
0.049444954842329025,
0.04249410703778267,
0.047340914607048035,
0.025286059826612473,
0.042418964207172394,
0.030734023079276085,
0.041855379939079285,
0.008312839083373547,
0.038624174892902374,
-0.05346517637372017,
-0.035036034882068634,
-0.022524507716298103,
0.03603169694542885,
0.01938723213970661,
-0.05038426071405411,
-0.028122758492827415,
0.026187792420387268,
-0.005199046805500984,
0.015000683255493641,
-0.011064999736845493,
-0.020721042528748512,
0.031598180532455444,
-0.021059192717075348,
0.05320217087864876,
0.04598831757903099,
-0.03469788655638695,
-0.07950267940759659,
-0.005570071749389172,
-0.01040748693048954,
0.015010075643658638,
0.012239129282534122,
0.0063778734765946865,
0.013197218999266624,
-0.07724834978580475,
-0.020627113059163094,
-0.013028144836425781,
0.02066468447446823,
0.0376472994685173,
0.06484954059123993,
0.09145062416791916,
0.00045321413199417293,
0.016062095761299133,
-0.0277282502502203,
-0.012323666363954544,
0.007242032792419195,
-0.010520203039050102,
0.08634081482887268,
0.031053386628627777,
-0.03234962373971939,
-0.0187578983604908,
-0.026225363835692406,
-0.04162994772195816,
0.03336407244205475,
0.06342180073261261,
-0.029287494719028473,
0.05650852248072624,
0.002935324562713504,
-0.0052131363190710545,
-0.05481777340173721,
-0.02368924394249916,
0.045950744301080704,
-0.021547630429267883,
0.015320045873522758,
0.004240957088768482,
-0.01412713062018156,
0.042832255363464355,
-0.00607729610055685,
-0.03841752931475639,
0.008585236966609955,
0.021303411573171616,
0.025248488411307335,
-0.00953393429517746,
0.002681712619960308,
0.0203077495098114,
0.0388496071100235,
0.007401714567095041,
0.06199405714869499,
0.060679029673337936,
0.03327014297246933,
-0.09919048845767975,
0.06439867615699768,
-0.008599326945841312,
0.032988350838422775,
-0.009289715439081192,
0.023614099249243736,
-0.00768820196390152,
-0.033852510154247284,
-0.014230453409254551,
-0.0687946155667305,
-0.00804983451962471,
0.021453700959682465,
0.013422652147710323
] |
17,573 | imodels.algebraic.marginal_shrinkage_linear_model | fit | null | def fit(self, X, y, sample_weight=None):
# checks
X, y = check_X_y(X, y, accept_sparse=False, multi_output=False)
sample_weight = _check_sample_weight(sample_weight, X, dtype=None)
if isinstance(self, ClassifierMixin):
check_classification_targets(y)
self.classes_, y = np.unique(y, return_inverse=True)
# preprocess X and y
self.scalar_X_ = StandardScaler()
X = self.scalar_X_.fit_transform(X)
if isinstance(self, RegressorMixin):
self.scalar_y_ = StandardScaler()
y = self.scalar_y_.fit_transform(y.reshape(-1, 1)).squeeze()
# fit marginal
self.coef_marginal_ = self._fit_marginal(X, y, sample_weight)
# fit main
self.est_main_ = self._fit_main(
X, y, sample_weight, self.coef_marginal_)
return self
| (self, X, y, sample_weight=None) | [
0.009525724686682224,
-0.01779097504913807,
0.07366560399532318,
-0.003985890187323093,
0.0030116685666143894,
-0.023881664499640465,
0.009872114285826683,
-0.003038128837943077,
0.03309948742389679,
0.03960392251610756,
0.003228162182494998,
-0.014038416557013988,
0.022669300436973572,
0.025902273133397102,
-0.021360715851187706,
0.047994256019592285,
-0.03331116959452629,
-0.04726298898458481,
-0.032041072845458984,
0.018589595332741737,
-0.015972428023815155,
-0.04322177171707153,
-0.03319570794701576,
0.08898373693227768,
-0.017993034794926643,
0.00452712457627058,
-0.03410017117857933,
0.00939582847058773,
0.009025383740663528,
-0.059963956475257874,
0.014615733176469803,
0.013326392509043217,
-0.02792288176715374,
0.003819911740720272,
-0.024766884744167328,
-0.01706932857632637,
-0.010035688057541847,
0.0037910458631813526,
0.027326321229338646,
-0.007471439428627491,
-0.01203705184161663,
-0.022476861253380775,
0.015375866554677486,
0.004072487819939852,
-0.017771730199456215,
0.06573712080717087,
-0.03704448416829109,
0.08559681475162506,
-0.018012279644608498,
-0.04137435927987099,
-0.011036369949579239,
-0.037390872836112976,
-0.028615660965442657,
0.004288981668651104,
0.015395110473036766,
-0.005239148624241352,
0.020283058285713196,
0.04510767385363579,
0.040335189551115036,
-0.02863490581512451,
0.01609751209616661,
0.0055181849747896194,
-0.04895645007491112,
0.015010233037173748,
-0.015577927231788635,
-0.05457566678524017,
-0.04395303875207901,
0.01901296153664589,
0.011671418324112892,
0.05315161868929863,
0.012431551702320576,
-0.04175923764705658,
0.007875560782849789,
0.015712633728981018,
0.00020987864991184324,
-0.005859763827174902,
-0.06219624727964401,
0.009241877123713493,
-0.029019782319664955,
-0.02418956719338894,
-0.007553225848823786,
0.051188740879297256,
-0.03298402577638626,
-0.046916600316762924,
-0.04164377227425575,
-0.02303493395447731,
0.01918615587055683,
0.005792410112917423,
0.004875920247286558,
0.003993107005953789,
-0.008996517397463322,
0.05742376297712326,
0.08713632822036743,
0.04657020792365074,
0.07351165264844894,
0.04272143170237541,
-0.020764155313372612,
0.021803325042128563,
-0.004500664304941893,
0.015481707639992237,
-0.07347316294908524,
0.014278965070843697,
0.04549255222082138,
0.060002442449331284,
-0.016001293435692787,
0.05807805433869362,
0.012421930208802223,
0.010285858064889908,
-0.028865832835435867,
0.010728467255830765,
-0.015347001142799854,
-0.02494007907807827,
-0.010516785085201263,
0.018560729920864105,
-0.02001364342868328,
-0.053382545709609985,
-0.04968772083520889,
0.012614368461072445,
-0.03327268362045288,
-0.013095465488731861,
-0.004024378024041653,
0.05753922462463379,
-0.020648691803216934,
-0.047955770045518875,
-0.021553155034780502,
-0.016443902626633644,
0.015510573983192444,
-0.007923671044409275,
-0.0021144221536815166,
-0.03787197172641754,
-0.048994939774274826,
0.01421161089092493,
0.011507845483720303,
0.032002586871385574,
-0.04329874739050865,
0.0023573762737214565,
-0.03375377878546715,
-0.010882418602705002,
0.004361146129667759,
-0.02647959068417549,
0.08013155311346054,
0.026710515841841698,
0.06673780083656311,
0.014692708849906921,
0.0762057974934578,
0.033157218247652054,
0.02921222150325775,
0.03456202149391174,
-0.024805372580885887,
-0.02878885716199875,
-0.02975105121731758,
-0.011036369949579239,
0.0762442871928215,
-0.03812214359641075,
-0.0054893190972507,
-0.00988173671066761,
-0.044183965772390366,
-0.018098875880241394,
0.025883030146360397,
-0.003168025054037571,
-0.008332603611052036,
-0.05584576353430748,
0.022688543424010277,
0.058886297047138214,
0.017983414232730865,
0.045723479241132736,
0.02576756663620472,
0.014384806156158447,
-0.0030164795462042093,
0.004274548497051001,
0.03438882902264595,
-0.07689857482910156,
-0.02232290990650654,
-0.0018979284213855863,
0.00829892698675394,
0.010199260897934437,
0.027691954746842384,
-0.032464440912008286,
0.011575198732316494,
0.045761965215206146,
0.04564650356769562,
0.010382077656686306,
-0.024632176384329796,
-0.03236822038888931,
-0.031425267457962036,
-0.0010337575804442167,
-0.017223279923200607,
0.019994400441646576,
-0.04322177171707153,
0.017098193988204002,
0.03712145984172821,
0.020283058285713196,
0.0012093581026419997,
0.000717436196282506,
-0.0008058378007262945,
0.02601773664355278,
0.009544968605041504,
-0.04383757710456848,
-0.00035059958463534713,
0.02012910693883896,
0.004192762076854706,
-0.08582773804664612,
0.059463612735271454,
0.001021730131469667,
-0.036428678780794144,
0.014779306016862392,
-0.04864854738116264,
0.08959954231977463,
-0.046377770602703094,
-0.06442853808403015,
-0.009386206045746803,
0.009968333877623081,
-0.03565892577171326,
0.0010686371242627501,
0.04945679381489754,
0.025132518261671066,
0.038757190108299255,
-0.03165619447827339,
-0.02241913042962551,
-0.020032888278365135,
0.040450651198625565,
-0.02055247314274311,
-0.0720876082777977,
0.04191318899393082,
0.04002728685736656,
-0.04837913438677788,
0.05315161868929863,
-0.049110401421785355,
0.00430341437458992,
-0.06335087865591049,
0.04591591656208038,
-0.052304886281490326,
0.04264445602893829,
-0.025171006098389626,
-0.04129738360643387,
-0.0203023012727499,
0.005258392542600632,
0.006105123553425074,
-0.000778776069637388,
0.04164377227425575,
-0.02494007907807827,
-0.0347929485142231,
-0.008428823202848434,
-0.028981296345591545,
-0.00955940131098032,
0.0687776580452919,
0.03773726522922516,
0.016001293435692787,
0.05195849761366844,
-0.029058270156383514,
-0.003158403094857931,
0.04021972790360451,
-0.03891114145517349,
-0.042452018707990646,
-0.013990306295454502,
-0.00830373726785183,
0.031136611476540565,
-0.011007503606379032,
-0.017867950722575188,
0.0017632212257012725,
-0.04352967441082001,
0.031136611476540565,
-0.03007819689810276,
0.058809321373701096,
-0.08144013583660126,
-0.020821886137127876,
-0.0045583960600197315,
0.024035615846514702,
-0.005359422881156206,
0.030636269599199295,
-0.09183183312416077,
0.06246566027402878,
0.036813557147979736,
0.04949527978897095,
-0.012527771294116974,
0.046339280903339386,
-0.01126729603856802,
-0.02867339365184307,
0.059886980801820755,
0.006581409834325314,
0.0184356439858675,
-0.02896205149590969,
0.08475008606910706,
-0.00014260021271184087,
0.016848023980855942,
0.0043731736950576305,
-0.006643952336162329,
-0.005378666799515486,
0.024766884744167328,
-0.014057660475373268,
-0.0032690553925931454,
0.006032959092408419,
0.03766028955578804,
0.03373453766107559,
-0.010757333599030972,
-0.011382759548723698,
-0.031021147966384888,
0.008630883879959583,
0.02232290990650654,
-0.02863490581512451,
-0.06235019862651825,
0.04984166845679283,
-0.01785832829773426,
0.031021147966384888,
0.03086719661951065,
-0.0054845078848302364,
0.059348151087760925,
-0.014625354669988155,
-0.032464440912008286,
0.0014228449435904622,
0.05268976464867592,
0.09136997908353806,
0.0003698434738907963,
-0.040412165224552155,
-0.03244519606232643,
-0.051150254905223846,
0.06846975535154343,
0.027768930420279503,
0.012065918184816837,
0.041451334953308105,
-0.005441209301352501,
-0.019878936931490898,
0.049610745161771774,
0.002333321375772357,
0.009366962127387524,
0.02465142123401165,
0.0011107331374660134,
0.03425412252545357,
-0.045338600873947144,
-0.028942808508872986,
0.005917495582252741,
-0.00703364098444581,
0.015972428023815155,
0.011652174405753613,
-0.021187521517276764,
-0.010988259688019753,
-0.012191003188490868,
-0.05034201219677925,
0.0014625354669988155,
0.05215093493461609,
-0.04710903763771057,
0.016617096960544586,
-0.030058953911066055,
-0.016232220456004143,
-0.018839767202734947,
-0.032830074429512024,
0.007413707673549652,
-0.0005189835792407393,
0.019936667755246162,
-0.009607511572539806,
-0.03679431229829788,
0.046339280903339386,
0.05692341923713684,
0.017059706151485443,
-0.0203023012727499,
0.018127743154764175,
-0.033407390117645264,
0.018705058842897415,
-0.010988259688019753,
-0.010074174962937832,
0.018127743154764175,
-0.003752558259293437,
-0.0691625326871872,
0.023092666640877724,
-0.022630812600255013,
0.0036659606266766787,
-0.023015690967440605,
0.017223279923200607,
0.0434911884367466,
-0.016790293157100677,
0.033041756600141525,
-0.028557930141687393,
-0.10653416812419891,
0.048032745718955994,
0.0005475487560033798,
0.022380642592906952,
-0.044222455471754074,
0.007466628681868315,
0.07297282665967941,
0.005874196998775005,
0.05492205545306206,
0.016520878300070763,
-0.008924352936446667,
-0.03752558305859566,
-0.010988259688019753,
-0.01976347342133522,
0.03094417229294777,
-0.0542677640914917,
-0.010622626170516014,
-0.01333601400256157,
0.02821153961122036,
0.018964851275086403,
-0.02676824852824211,
-0.02932768501341343,
-0.03090568445622921,
0.0029058270156383514,
0.022072739899158478,
0.07201062887907028,
-0.07135633379220963,
-0.012114027515053749,
-0.014952501282095909,
-0.006138800177723169,
-0.048456110060214996,
0.013210928998887539,
-0.006182099226862192,
0.023843176662921906,
-0.01696348749101162,
0.013307148590683937,
-0.011844612658023834,
0.03998880088329315,
-0.023554518818855286,
0.04506918415427208,
0.04195167496800423,
0.03844928741455078,
-0.039045847952365875,
-0.0011149427155032754,
0.030232148244976997,
0.049033425748348236,
0.04272143170237541,
0.012797185219824314,
0.0067113060504198074,
0.005999282002449036,
-0.00750992726534605,
-0.013489965349435806,
0.01634768210351467,
-0.03028987906873226,
-0.04006577655673027,
-0.08005457371473312,
0.052843715995550156,
-0.026864467188715935,
-0.05049596354365349,
-0.000050853479478973895,
-0.07774531096220016,
0.019859692081809044,
0.0024920834694057703,
-0.027614979073405266,
0.01771399937570095,
0.02336207963526249,
-0.02034078910946846,
-0.0010938947089016438,
-0.014394428580999374,
-0.08274871855974197,
0.027942124754190445,
0.015500951558351517,
-0.05580727383494377,
-0.023920152336359024,
-0.019878936931490898,
0.02961634285748005,
-0.10029914230108261,
0.005383477546274662,
0.09398715198040009,
-0.025421176105737686,
0.04029669985175133,
0.04861006140708923,
-0.007293433416634798,
-0.03061702661216259,
0.056115176528692245,
-0.03540875390172005,
0.055499374866485596,
-0.017329121008515358,
-0.04826367273926735,
-0.02166861854493618,
0.0037405306939035654,
-0.023516030982136726,
-0.046300794929265976,
0.05434473976492882,
-0.012623990885913372,
-0.01775248721241951,
0.041566796600818634,
0.01489476952701807,
0.031964097172021866,
-0.00032023031963035464,
-0.0007228485192172229,
0.00022160539811011404,
-0.018993716686964035,
0.03512009605765343,
0.03321494907140732,
-0.01955178938806057,
-0.007928482256829739,
-0.021841812878847122,
0.017165549099445343,
0.016876889392733574,
0.05542239919304848,
-0.010160773061215878,
0.009939468465745449,
-0.030212903395295143,
0.011315406300127506,
-0.0356396809220314,
0.035197071731090546,
0.055076006799936295,
-0.018156608566641808,
0.08297964185476303,
0.06985531747341156,
-0.0225730799138546,
-0.08167105913162231,
-0.038507018238306046,
-0.014394428580999374,
0.010507162660360336,
0.002271981444209814,
0.014779306016862392,
0.03184863552451134,
-0.003966646268963814,
-0.04895645007491112,
-0.0034903602208942175,
-0.016126377508044243,
0.05484507977962494,
-0.017781352624297142,
0.020706424489617348,
-0.02594076097011566,
0.028808100149035454,
-0.03179090470075607,
0.007784152869135141,
-0.00844325590878725,
0.025421176105737686,
-0.009891358204185963,
0.015856964513659477,
0.01742534153163433,
0.0989905595779419,
0.0029058270156383514,
0.004447743762284517,
0.0003157200408168137,
0.03887265548110008,
0.03061702661216259,
-0.009775894694030285,
0.039334505796432495,
0.061003126204013824,
-0.007173159159719944,
-0.00905424915254116,
0.022919470444321632,
-0.004238466266542673,
-0.0003066994540859014,
-0.0542677640914917,
-0.035235557705163956,
0.01566452533006668,
-0.028942808508872986,
-0.057308297604322433,
0.0009736204519867897,
-0.04664718359708786,
-0.02486310340464115,
-0.028480954468250275,
-0.03725616633892059,
-0.00752917118370533,
0.005287258420139551,
0.014721574261784554,
-0.0024211215786635876,
-0.01085355319082737,
-0.011074857786297798,
0.00988173671066761,
-0.048494599759578705,
0.027903636917471886,
-0.029423905536532402,
-0.06408214569091797,
0.004209600389003754,
0.11253825575113297,
0.07189516723155975,
0.004866298288106918,
-0.019503680989146233,
0.07990062236785889,
0.0069037447683513165,
0.03231048956513405,
-0.036063045263290405,
0.010824686847627163,
0.06004093214869499,
-0.07185667753219604,
0.05927117541432381,
-0.00018116316641680896,
-0.06188834458589554,
0.03554346039891243,
-0.07258794456720352,
-0.03438882902264595,
-0.019253509119153023,
0.0650443434715271,
-0.038545507937669754,
0.0567694716155529,
-0.04318328574299812,
0.08374939858913422,
-0.027018418535590172,
-0.03931526467204094,
-0.061580441892147064,
0.05657703056931496,
-0.010670735500752926,
-0.03298402577638626,
0.04868703708052635,
-0.023419812321662903,
0.010593760758638382,
-0.06031034514307976,
0.005513373762369156,
-0.031078878790140152,
-0.05295918136835098,
-0.018021902069449425,
-0.008991707116365433,
-0.009015761315822601,
0.008780024014413357,
-0.0008804078679531813,
0.056654006242752075,
-0.019359352067112923,
-0.04726298898458481,
-0.04718601331114769,
0.0451461598277092,
-0.03737163171172142,
-0.005051520653069019,
0.04791728034615517,
0.019388217478990555,
-0.0058645750395953655,
0.027749687433242798,
0.029635587707161903,
-0.014856281690299511,
-0.013528453186154366,
0.00017770528211258352,
-0.06993228942155838,
-0.037679534405469894,
0.00499378889799118,
0.03442731499671936,
-0.009318852797150612,
-0.023920152336359024,
-0.001015716465190053,
-0.03252217173576355,
0.0122198686003685,
0.02986651472747326,
-0.010256992653012276,
0.037929702550172806,
-0.039834849536418915,
-0.0200906191021204,
0.05838595703244209,
-0.060926150530576706,
0.036428678780794144,
-0.04868703708052635,
-0.08536588400602341,
0.03833382576704025,
0.03690977767109871,
0.009694108739495277,
-0.016953865066170692,
0.0236122515052557,
0.01738685369491577,
0.07024019211530685,
0.012614368461072445,
-0.019205400720238686,
0.009405449964106083,
-0.0019400244345888495,
-0.02026381343603134,
-0.031675439327955246,
-0.008385524153709412,
0.07027868181467056,
0.008332603611052036,
-0.014702330343425274,
-0.02062944881618023,
-0.02041776478290558,
0.008837755769491196,
-0.006562165915966034,
0.003978673834353685,
-0.0019905397202819586,
-0.056115176528692245,
-0.003908914979547262,
-0.03991182520985603,
0.07162575423717499,
0.006518866866827011,
0.01746382936835289,
0.021784082055091858,
0.0011516264639794827,
0.0018871037755161524,
-0.0017993035726249218,
0.02921222150325775,
0.09691222012042999,
0.02663354203104973,
0.012008186429738998,
0.060387320816516876,
-0.03877643495798111,
-0.03508160635828972,
-0.01223911251872778,
-0.040450651198625565,
-0.05930966138839722,
0.03794894739985466,
-0.04283689334988594,
-0.002504111034795642,
-0.04191318899393082,
-0.03752558305859566,
-0.014827415347099304,
-0.07574394345283508,
-0.028865832835435867,
-0.01562603749334812,
0.04626230522990227,
0.04083552956581116,
0.01414425764232874,
0.01020888239145279,
0.039296019822359085,
-0.022091982886195183,
-0.048456110060214996,
-0.01846451126039028,
-0.01223911251872778,
-0.046839624643325806,
0.02705690637230873,
-0.010757333599030972,
-0.00990098062902689,
-0.04880249872803688,
0.0042120059952139854,
0.041489820927381516,
-0.008428823202848434,
-0.06596805155277252,
0.016087889671325684,
0.004435716196894646,
-0.02145693451166153,
0.0005487515009008348,
-0.04707055166363716,
-0.002799985697492957,
0.02705690637230873,
0.0263063944876194,
-0.05411381274461746,
0.09691222012042999,
0.018926363438367844,
-0.054421715438365936,
0.027614979073405266,
0.016289951279759407,
-0.06893160939216614,
-0.02863490581512451,
0.03375377878546715,
0.013143575750291348,
-0.02386242151260376,
0.019465193152427673,
0.02353527583181858,
0.0014601299772039056,
0.03590909391641617,
-0.018089255318045616,
-0.016020536422729492,
0.004493447951972485,
0.02340056747198105,
0.0021168277598917484,
0.07655218988656998,
-0.0027061717119067907,
0.04791728034615517,
-0.042028650641441345,
0.06535224616527557,
-0.00022055300360079855,
-0.025921517983078957,
-0.007692744489759207,
-0.0027831473853439093,
-0.020610203966498375,
-0.049649231135845184,
-0.014519513584673405,
0.07878448069095612,
0.035485729575157166,
-0.019272753968834877,
0.004493447951972485,
0.04861006140708923,
0.029192978516221046,
-0.01013190671801567,
0.004724374506622553,
-0.024228055030107498,
-0.0034302230924367905,
0.04075855389237404,
0.0013458693865686655,
-0.04299084469676018,
-0.02080264315009117,
-0.008241195231676102,
0.05565332621335983,
0.06746907532215118,
-0.006922988686710596,
-0.036640364676713943,
-0.002198614180088043,
0.026421857997775078,
-0.030770977959036827,
-0.0010806645732373,
-0.1126922070980072,
0.02555588260293007,
0.02001364342868328,
-0.029058270156383514,
0.02037927694618702,
0.08028550446033478,
0.07058658450841904
] |
17,576 | imodels.algebraic.marginal_shrinkage_linear_model | predict | null | def predict(self, X):
X = self.scalar_X_.transform(X)
pred = self.est_main_.predict(X)
return self.scalar_y_.inverse_transform(pred.reshape(-1, 1)).squeeze()
| (self, X) | [
-0.003008583327755332,
-0.04144087806344032,
0.0264878049492836,
0.0017694326816126704,
0.06598285585641861,
-0.01786305196583271,
-0.015680570155382156,
-0.03796994313597679,
0.09557346999645233,
0.036392245441675186,
0.00923830084502697,
-0.04080979898571968,
0.0045928554609417915,
-0.015067020431160927,
0.01601363904774189,
0.02133398875594139,
0.008339889347553253,
-0.04424567520618439,
-0.032465528696775436,
-0.0026273061521351337,
0.04017871990799904,
-0.011210423894226551,
-0.026365093886852264,
0.011482139118015766,
-0.013953866437077522,
-0.048242513090372086,
-0.0057323044165968895,
-0.045472774654626846,
0.0044044083915650845,
-0.0322025790810585,
-0.044841695576906204,
0.005938281770795584,
-0.01994912140071392,
-0.02008935995399952,
-0.02147422917187214,
-0.010588109493255615,
-0.015829574316740036,
0.007419565226882696,
0.07327532768249512,
-0.04333411902189255,
-0.0571126826107502,
-0.06773585081100464,
-0.047471195459365845,
0.02580413408577442,
-0.04158112034201622,
0.01008850522339344,
-0.01840648241341114,
0.007266177795827389,
0.026890993118286133,
-0.013375377282500267,
-0.015084550715982914,
0.01170126348733902,
0.006464181002229452,
0.007796459831297398,
0.026207324117422104,
0.01097376924008131,
0.0371285043656826,
0.04666481539607048,
-0.04967997223138809,
-0.014716420322656631,
0.051853690296411514,
0.013305257074534893,
-0.012358637526631355,
0.03588387370109558,
0.049399491399526596,
-0.025120465084910393,
0.02031725086271763,
0.049013830721378326,
0.02732924371957779,
-0.006087286397814751,
-0.0342009961605072,
-0.06591273844242096,
-0.012656647711992264,
-0.0005872544134035707,
0.05679714307188988,
0.004286080598831177,
0.032377880066633224,
-0.008892083540558815,
0.010965004563331604,
0.032605767250061035,
-0.0548337884247303,
-0.0071653807535767555,
-0.028205743059515953,
0.020212071016430855,
-0.046840112656354904,
-0.10749385505914688,
0.006503623444586992,
-0.056621845811605453,
-0.05560510605573654,
0.05984736233949661,
0.018686961382627487,
0.05357162654399872,
-0.019843941554427147,
0.05830472335219383,
0.025471065193414688,
0.021982599049806595,
-0.00830921158194542,
0.05273018777370453,
0.04249268025159836,
0.0003043095348402858,
-0.002427902538329363,
0.13568206131458282,
-0.03625200316309929,
0.06174059957265854,
0.0044263205491006374,
0.056481603533029556,
-0.0002717147290240973,
0.03272847831249237,
-0.043474357575178146,
-0.02187741920351982,
0.006034696474671364,
0.056166063994169235,
-0.04932937026023865,
-0.01617140881717205,
-0.0395476408302784,
-0.07208328694105148,
-0.03705838322639465,
0.01725826784968376,
-0.09122603386640549,
0.04059943929314613,
-0.001538255950435996,
0.04606879502534866,
-0.03870620205998421,
-0.01949334144592285,
-0.09501250833272934,
0.026592984795570374,
0.0449819378554821,
-0.009089295752346516,
-0.032149989157915115,
-0.048382751643657684,
-0.032149989157915115,
-0.009387305937707424,
-0.012349872849881649,
0.036006584763526917,
-0.019423220306634903,
-0.026049554347991943,
0.04845287278294563,
0.01078093983232975,
0.04620903357863426,
-0.012533937580883503,
0.04073968157172203,
0.026435215026140213,
0.04848793148994446,
0.0491190105676651,
0.027539603412151337,
-0.05784894526004791,
0.04733095318078995,
0.023367466405034065,
0.03064241074025631,
-0.03148384764790535,
-0.008721166290342808,
-0.01412916649132967,
0.03516514599323273,
-0.08568655699491501,
0.02687346376478672,
-0.020650319755077362,
0.004693652968853712,
-0.058550141751766205,
0.03618188574910164,
-0.023051926866173744,
-0.0551142655313015,
-0.026996172964572906,
0.007182910572737455,
-0.025295766070485115,
0.0031992217991501093,
0.015645509585738182,
0.026610514149069786,
0.0374089851975441,
0.01617140881717205,
-0.0068366932682693005,
0.03435876592993736,
-0.04428073763847351,
-0.013261431828141212,
0.04603373631834984,
-0.03979306295514107,
0.003392051672562957,
0.02810056321322918,
0.023735597729682922,
-0.0007965185795910656,
0.055850524455308914,
0.06643863767385483,
-0.032675888389348984,
-0.029380250722169876,
-0.07769288122653961,
-0.017267033457756042,
-0.05991748347878456,
-0.002778502181172371,
0.04049425944685936,
-0.04890865087509155,
0.010106035508215427,
-0.002603202359750867,
-0.01870449259877205,
-0.004645445384085178,
0.006166171282529831,
-0.006315176375210285,
0.015426385216414928,
-0.03670778498053551,
0.0030655558221042156,
0.03632212430238724,
-0.058234602212905884,
-0.0076299249194562435,
-0.05010069161653519,
0.023297347128391266,
0.009089295752346516,
-0.09578382968902588,
-0.03870620205998421,
-0.016425594687461853,
0.014953075908124447,
-0.028223272413015366,
-0.06286251544952393,
-0.004345244728028774,
0.024068666622042656,
-0.01609252393245697,
-0.05876050144433975,
0.0414058193564415,
0.024506915360689163,
0.02054513990879059,
-0.035007376223802567,
0.004316758364439011,
-0.025926845148205757,
0.003874126123264432,
-0.03888150304555893,
-0.012341108173131943,
0.06230156123638153,
0.00248268386349082,
-0.039933301508426666,
0.018914852291345596,
-0.013612031936645508,
0.0034577890764921904,
-0.047856852412223816,
0.006919960957020521,
0.00034019123995676637,
-0.011604848317801952,
-0.05213417112827301,
0.0389866828918457,
0.04575325548648834,
-0.022841567173600197,
0.008151441812515259,
-0.039302222430706024,
0.027609722688794136,
0.005955811589956284,
-0.008423157036304474,
0.003192648058757186,
0.007472155150026083,
-0.006446651183068752,
0.03371015563607216,
-0.009387305937707424,
0.03002886101603508,
0.012639117427170277,
-0.008331124670803547,
0.03716356307268143,
0.007660602685064077,
0.02857387252151966,
0.011946683749556541,
0.02510293573141098,
-0.04003848135471344,
0.04634927585721016,
0.018669432029128075,
0.036146823316812515,
0.030291810631752014,
-0.0409850999712944,
-0.021982599049806595,
-0.008694871328771114,
0.017380978912115097,
-0.052940547466278076,
-0.0023051928728818893,
-0.04494687542319298,
0.034534066915512085,
0.07362592965364456,
0.023297347128391266,
0.11773136258125305,
0.027662312611937523,
-0.04929431155323982,
-0.07362592965364456,
0.05220428854227066,
0.02633003517985344,
0.006578125990927219,
-0.018914852291345596,
0.030221691355109215,
0.050240930169820786,
-0.0033131667878478765,
-0.06657887250185013,
0.003286871826276183,
-0.025278234854340553,
0.0038478311616927385,
0.01536502968519926,
0.0018833775538951159,
-0.05237958952784538,
0.047471195459365845,
-0.02687346376478672,
0.015443914569914341,
0.07285460829734802,
0.002034573582932353,
-0.03316672891378403,
-0.020439960062503815,
-0.03158902749419212,
-0.04403531551361084,
-0.02310451678931713,
0.06843705475330353,
0.017591338604688644,
-0.011236718855798244,
0.04186159744858742,
-0.028381042182445526,
-0.04119545966386795,
-0.04256279766559601,
-0.0032408556435257196,
0.03381533548235893,
0.004785685334354639,
-0.04519229754805565,
-0.03136114031076431,
0.00028705346630886197,
0.05273018777370453,
-0.01994912140071392,
-0.010561814531683922,
-0.07993672043085098,
-0.0055131795816123486,
0.06941873580217361,
-0.005592064466327429,
0.0741167664527893,
0.0184941329061985,
0.016118818894028664,
-0.010640699416399002,
0.005425529554486275,
0.0235602967441082,
0.06065374240279198,
-0.0132439024746418,
0.016811253502964973,
-0.02994121052324772,
0.0039464375004172325,
-0.020001711323857307,
0.051082368940114975,
-0.05364174768328667,
-0.028310922905802727,
0.05381704866886139,
-0.024506915360689163,
0.0004856353043578565,
-0.012323577888309956,
0.02110609970986843,
-0.0017694326816126704,
0.008918378502130508,
-0.07537892460823059,
-0.0591111034154892,
-0.020755499601364136,
0.0343412384390831,
-0.010149859823286533,
0.002916550962254405,
-0.0009016984840855002,
-0.007958612404763699,
0.00018159966566599905,
0.014453470706939697,
-0.041160400956869125,
-0.016600893810391426,
0.045998673886060715,
0.009098061360418797,
0.00993073545396328,
0.008046261966228485,
-0.012735532596707344,
0.002824518596753478,
-0.01979135163128376,
-0.04256279766559601,
0.0234901774674654,
-0.04080979898571968,
-0.03288624808192253,
-0.041300639510154724,
-0.05350150913000107,
-0.009027941152453423,
-0.016925198957324028,
0.020001711323857307,
0.013831156305968761,
0.04557795450091362,
-0.005570152308791876,
0.023384997621178627,
-0.07187292724847794,
0.06405455619096756,
0.012726767919957638,
0.009781730361282825,
-0.0005264473147690296,
-0.020141949877142906,
0.032149989157915115,
-0.0029932446777820587,
0.0020926417782902718,
0.02217542752623558,
-0.028310922905802727,
0.0013640518300235271,
0.023700537160038948,
0.026049554347991943,
0.048698291182518005,
-0.057638585567474365,
0.023367466405034065,
-0.029660731554031372,
-0.008821964263916016,
-0.05788400396704674,
-0.029275070875883102,
-0.05781388282775879,
-0.037303805351257324,
-0.05946170166134834,
0.014506060630083084,
0.06759561598300934,
-0.009176946245133877,
-0.00826976913958788,
-0.08077815920114517,
0.046314213424921036,
0.005876926705241203,
-0.015408854931592941,
-0.048628173768520355,
-0.038005001842975616,
-0.004825127776712179,
0.01647818461060524,
-0.021526819095015526,
0.04049425944685936,
-0.06770079582929611,
0.08919255435466766,
0.04571819677948952,
-0.03151891008019447,
0.015224790200591087,
0.038460783660411835,
0.029993800446391106,
0.04063450172543526,
-0.006564978510141373,
-0.016749897971749306,
-0.01725826784968376,
0.018108472228050232,
-0.023595357313752174,
-0.03232529014348984,
-0.008037497289478779,
0.020737970247864723,
-0.020229600369930267,
0.05003057047724724,
0.022140368819236755,
0.0371285043656826,
-0.03590140491724014,
-0.08358296006917953,
-0.0651063546538353,
-0.049013830721378326,
-0.028047973290085793,
0.002346826484426856,
0.010640699416399002,
-0.022000128403306007,
-0.03451653569936752,
0.03786476328969002,
-0.009510016068816185,
0.019002500921487808,
0.04603373631834984,
0.041616179049015045,
-0.019651111215353012,
-0.012139513157308102,
-0.05564016476273537,
-0.014830365777015686,
-0.005863779224455357,
-0.023367466405034065,
0.026908524334430695,
-0.0083880964666605,
0.07734228670597076,
-0.0030655558221042156,
0.013261431828141212,
-0.02203518897294998,
-0.03751416504383087,
-0.07986660301685333,
0.005977724213153124,
0.022298138588666916,
-0.04845287278294563,
0.009623960591852665,
0.017573807388544083,
-0.03905680030584335,
0.02895953133702278,
-0.03390298783779144,
-0.012963422574102879,
0.010710819624364376,
-0.032763537019491196,
-0.002842048415914178,
0.024541975930333138,
-0.016267824918031693,
0.027662312611937523,
0.012849477119743824,
-0.020580200478434563,
0.019984180107712746,
0.01917780190706253,
-0.004367156885564327,
0.013331552036106586,
0.010605639778077602,
-0.02026466093957424,
-0.0346217155456543,
-0.017845522612333298,
-0.016048699617385864,
0.004161179531365633,
0.021193750202655792,
0.0023117666132748127,
0.01785428822040558,
-0.0017595720710232854,
0.012025568634271622,
0.004588473122566938,
0.0902443528175354,
0.08105864375829697,
0.036392245441675186,
-0.07874467968940735,
-0.010079740546643734,
0.042387500405311584,
-0.0001073711464414373,
-0.02210530824959278,
0.010605639778077602,
0.011762619018554688,
-0.016285354271531105,
-0.022052718326449394,
-0.023157106712460518,
-0.024156317114830017,
0.0061398763209581375,
-0.03804006427526474,
0.009737905114889145,
0.011473373509943485,
0.023455116897821426,
-0.015478975139558315,
-0.008664194494485855,
-0.00936101097613573,
-0.025926845148205757,
0.02950296178460121,
0.06230156123638153,
0.031063130125403404,
0.05388716608285904,
-0.03518267720937729,
0.02008935995399952,
-0.010684524662792683,
0.0007833710988052189,
-0.027907732874155045,
-0.0036243239883333445,
0.007226735353469849,
0.11092973500490189,
-0.03479701653122902,
-0.026119675487279892,
0.03390298783779144,
0.04421061649918556,
-0.010956238955259323,
-0.059952542185783386,
0.008580926805734634,
0.06885777413845062,
-0.03309660777449608,
0.046840112656354904,
0.008055027574300766,
-0.022578617557883263,
-0.0037382689770311117,
-0.013866216875612736,
-0.038390662521123886,
-0.02941531129181385,
-0.003784285159781575,
0.06244179978966713,
0.02387583628296852,
-0.03157150000333786,
-0.04073968157172203,
0.08386343717575073,
-0.05953182280063629,
0.035007376223802567,
-0.047786734998226166,
-0.002215351676568389,
0.0551142655313015,
-0.019212860614061356,
0.05788400396704674,
0.04813733324408531,
0.009422365576028824,
0.07643072307109833,
-0.036532483994960785,
0.04210701957345009,
-0.00022501376224681735,
-0.07671120762825012,
0.09571370482444763,
0.00892714411020279,
-0.010307629592716694,
0.049469612538814545,
-0.03209739923477173,
0.03881138190627098,
0.008046261966228485,
-0.052484769374132156,
0.0354105643928051,
0.006950638256967068,
0.020036770030856133,
0.001596324029378593,
0.008519571274518967,
0.026820873841643333,
0.02017701044678688,
-0.06493105739355087,
-0.03996836021542549,
0.06349359452724457,
0.0027039998676627874,
-0.01397139672189951,
-0.010368985123932362,
-0.006109199021011591,
-0.03895162045955658,
-0.020650319755077362,
0.005114372354000807,
0.05718280375003815,
-0.026750754565000534,
-0.031308550387620926,
-0.055780407041311264,
0.02932766079902649,
0.0033526092302054167,
0.05055646970868111,
0.06885777413845062,
-0.06538683921098709,
-0.022420847788453102,
-0.003089659381657839,
0.04424567520618439,
-0.051468029618263245,
0.04137076064944267,
-0.008826346136629581,
0.009098061360418797,
0.016837548464536667,
0.022596148774027824,
-0.04003848135471344,
-0.06275733560323715,
-0.014216816052794456,
-0.003777711419388652,
-0.03744404390454292,
0.023928426206111908,
-0.032132457941770554,
-0.02909977175295353,
-0.008300446905195713,
0.025295766070485115,
0.009641490876674652,
0.012130748480558395,
0.04575325548648834,
-0.03818030282855034,
0.03518267720937729,
0.09788742661476135,
-0.009939500130712986,
-0.004086677450686693,
0.02610214427113533,
-0.02710135281085968,
0.021141160279512405,
0.042001839727163315,
-0.045858435332775116,
0.0284862220287323,
-0.015373795293271542,
0.033447206020355225,
0.006884900853037834,
-0.017214443534612656,
-0.005412382073700428,
0.04217714071273804,
0.00496536772698164,
-0.00823909230530262,
0.05542980507016182,
0.0432639978826046,
-0.053326208144426346,
-0.014023986645042896,
0.032921306788921356,
0.013349082320928574,
0.020965859293937683,
0.030624879524111748,
-0.03250058740377426,
-0.027627253904938698,
-0.0019743142183870077,
0.0415460579097271,
-0.0395476408302784,
0.004579707980155945,
-0.027679843828082085,
0.0016927389660850167,
0.041300639510154724,
0.014357056468725204,
-0.018686961382627487,
-0.017188148573040962,
0.06945379078388214,
-0.00931718572974205,
-0.002004991751164198,
-0.05560510605573654,
-0.0037579901982098818,
0.00947495549917221,
-0.011061418801546097,
0.05350150913000107,
0.03435876592993736,
-0.03642730414867401,
-0.049785152077674866,
-0.05073177069425583,
-0.03574363514780998,
-0.002438858849927783,
0.011201659217476845,
0.020895740017294884,
-0.019738761708140373,
0.1060914546251297,
-0.07650084793567657,
0.024506915360689163,
-0.00255061243660748,
0.01654830388724804,
-0.007559805177152157,
0.0063370889984071255,
0.01412916649132967,
0.029362721368670464,
-0.010912414640188217,
0.008423157036304474,
-0.06461551785469055,
-0.02086067944765091,
-0.01158731896430254,
-0.03635718300938606,
-0.006880518514662981,
0.0074414778500795364,
-0.02331487648189068,
0.023770656436681747,
-0.059777241200208664,
0.02233319915831089,
0.008992881514132023,
0.015338734723627567,
0.03309660777449608,
-0.023805717006325722,
0.04249268025159836,
-0.01085982471704483,
-0.03011651150882244,
-0.047611434012651443,
-0.012770592235028744,
0.006459798663854599,
0.05844496190547943,
-0.01894991099834442,
-0.0284161027520895,
0.03193962946534157,
-0.054483186453580856,
0.007051435764878988,
0.013585736975073814,
0.016986552625894547,
-0.02510293573141098,
0.0432639978826046,
0.07155738770961761,
-0.06331829726696014,
0.03958270326256752,
-0.03200975060462952,
0.06135493889451027,
-0.019230391830205917,
-0.023349937051534653,
0.038005001842975616,
0.052309468388557434,
-0.055710285902023315,
0.019598521292209625,
0.07004981487989426,
-0.031220899894833565,
-0.008523954078555107,
0.04003848135471344,
-0.0001987187861232087,
0.0323428176343441,
0.018126001581549644,
-0.005784894339740276,
-0.03958270326256752,
-0.00654306635260582,
-0.005995254032313824,
-0.07348568737506866,
0.04196678102016449,
-0.024577036499977112,
0.031308550387620926,
-0.006341471336781979,
0.0371285043656826,
-0.01817859150469303,
-0.004505205433815718,
-0.001576602808199823,
-0.025295766070485115,
-0.015803279355168343,
0.02063279040157795,
-0.036006584763526917,
-0.010184920392930508,
0.040143661201000214,
-0.01986147090792656,
-0.023928426206111908,
0.03933728113770485,
0.014620006084442139,
0.039933301508426666,
0.011114008724689484,
-0.017582572996616364,
-0.012674177996814251,
-0.010377749800682068,
-0.046769995242357254,
-0.052484769374132156,
0.006889283191412687,
-0.02101844921708107,
-0.013261431828141212,
0.03258823975920677,
0.03534044697880745
] |
17,577 | imodels.algebraic.marginal_shrinkage_linear_model | predict_proba | null | def predict_proba(self, X):
X = self.scalar_X_.transform(X)
return self.est_main_.predict_proba(X)
| (self, X) | [
0.021281694993376732,
-0.005481777247041464,
-0.021383602172136307,
0.001041898620314896,
0.03542986139655113,
-0.02075517177581787,
-0.020347541198134422,
-0.0651189312338829,
0.10707087069749832,
0.007664297241717577,
0.0072906361892819405,
-0.025205135345458984,
0.028856823220849037,
0.01633068546652794,
-0.03991379216313362,
-0.024321936070919037,
0.01696760766208172,
-0.027277255430817604,
-0.02123074047267437,
0.03182912617921829,
0.022317754104733467,
0.036754656583070755,
-0.03553176671266556,
0.02483147382736206,
-0.027532024309039116,
-0.03393521532416344,
0.0009893524693325162,
-0.03155737370252609,
0.02191012352705002,
-0.0007887220126576722,
-0.009052787907421589,
0.011566507630050182,
-0.040151577442884445,
-0.0379096120595932,
0.02744710072875023,
0.024016214534640312,
0.005685592535883188,
0.016984593123197556,
0.057713646441698074,
-0.06270711869001389,
-0.08268100023269653,
-0.06420175731182098,
-0.08465120941400528,
0.006466883700340986,
-0.01378299668431282,
-0.04283514246344566,
-0.010606878437101841,
0.0784008800983429,
0.01154952310025692,
0.0235576294362545,
-0.003509441390633583,
0.013664104975759983,
0.031064819544553757,
-0.005040178075432777,
-0.0008651526877656579,
0.05441863462328911,
0.010241709649562836,
0.021672340109944344,
-0.014564287848770618,
-0.03446173667907715,
0.0789443850517273,
0.019073696807026863,
0.0026687041390687227,
0.0003572072018869221,
0.0744604542851448,
-0.036279089748859406,
0.013799981214106083,
0.005923376884311438,
0.02262347750365734,
-0.008437096141278744,
-0.011158877052366734,
-0.045688554644584656,
-0.026190241798758507,
0.013655612245202065,
0.017579052597284317,
0.026597872376441956,
0.0036304567474871874,
-0.04297101870179176,
0.008789526298642159,
0.04585840180516243,
-0.02462765946984291,
-0.027990609407424927,
-0.03278026357293129,
-0.027616947889328003,
-0.05401100590825081,
-0.08220542967319489,
0.01227986067533493,
-0.036618780344724655,
0.007324605714529753,
0.03519207611680031,
0.005545469466596842,
0.06369221955537796,
0.026682794094085693,
0.07371313124895096,
0.017596038058400154,
0.014878503046929836,
0.020075788721442223,
0.04521298408508301,
0.011957152746617794,
-0.021655354648828506,
-0.007201467175036669,
0.08730080723762512,
-0.024882428348064423,
0.03733213618397713,
0.014853025786578655,
0.07955583184957504,
0.002331135328859091,
0.049561042338609695,
-0.01408871915191412,
-0.031200695782899857,
-0.013163059018552303,
0.026937562972307205,
-0.0288398377597332,
-0.04344658926129341,
-0.03459761664271355,
-0.0384531170129776,
-0.03906456381082535,
0.02055135741829872,
-0.03407109156250954,
0.04096683859825134,
0.02529005892574787,
0.044499631971120834,
-0.026784703135490417,
-0.009256603196263313,
-0.06240139156579971,
0.010853154584765434,
0.08098253607749939,
0.010148294270038605,
-0.0012080291053280234,
-0.00584269966930151,
-0.007812912575900555,
-0.0025667964946478605,
-0.025850549340248108,
0.026529934257268906,
-0.0023990736808627844,
-0.059853702783584595,
0.026326118037104607,
-0.015540902502834797,
0.0745963305234909,
-0.0567285381257534,
0.0578155517578125,
-0.0031463957857340574,
0.048711810261011124,
0.0032419341150671244,
0.055573586374521255,
-0.034342847764492035,
0.07887645065784454,
0.011659923009574413,
0.015039856545627117,
-0.025391966104507446,
0.016322193667292595,
0.0006586837116628885,
0.009205649606883526,
-0.0739169493317604,
0.016874192282557487,
0.01211850717663765,
0.005719561595469713,
-0.07350931316614151,
0.03400315344333649,
-0.0578155517578125,
-0.027022486552596092,
0.009392479434609413,
-0.025188149884343147,
-0.01227986067533493,
0.007052851840853691,
0.022453632205724716,
-0.00987654086202383,
0.057509832084178925,
0.024984335526823997,
-0.02129867859184742,
0.04973088577389717,
-0.04650381579995155,
0.007519928272813559,
0.03469952195882797,
0.011889214627444744,
0.03665275126695633,
0.020330557599663734,
0.012110014446079731,
-0.009664232842624187,
0.05251635983586311,
0.06168803945183754,
-0.014496349729597569,
-0.00411664042621851,
-0.07310168445110321,
-0.008594203740358353,
-0.019141634926199913,
0.011014508083462715,
0.032746292650699615,
-0.04137446731328964,
0.01968514360487461,
-0.0464358776807785,
-0.0288398377597332,
0.011634445749223232,
0.02924746833741665,
0.012865829281508923,
0.030130667611956596,
0.005821469239890575,
0.017799852415919304,
0.00122289068531245,
-0.016390131786465645,
0.014224596321582794,
-0.045620616525411606,
-0.019311482086777687,
0.025324027985334396,
-0.07255817949771881,
-0.05248239263892174,
-0.04742098227143288,
0.017714930698275566,
0.02168932557106018,
-0.09171680361032486,
0.014267058111727238,
-0.011940168216824532,
0.019464343786239624,
-0.05387512594461441,
0.03359552472829819,
0.04911944270133972,
0.07052002847194672,
-0.039098531007766724,
0.008161096833646297,
-0.02736217901110649,
0.020789140835404396,
-0.0282283928245306,
-0.03011368215084076,
0.03310297057032585,
0.04382024705410004,
-0.03216881677508354,
-0.013078136369585991,
0.020075788721442223,
0.01612687110900879,
-0.029587160795927048,
-0.005711069330573082,
0.01265352126210928,
-0.022674432024359703,
-0.05248239263892174,
0.055505648255348206,
0.03563367575407028,
-0.019736096262931824,
-0.004324702080339193,
-0.06956889480352402,
0.014470872469246387,
0.028534116223454475,
0.01988895796239376,
0.0052439928986132145,
-0.010683308355510235,
-0.012203429825603962,
0.040287453681230545,
0.025663718581199646,
0.021349633112549782,
0.014241580851376057,
0.017230868339538574,
0.025341011583805084,
0.007702512666583061,
-0.010904108174145222,
0.022538553923368454,
-0.00592762278392911,
-0.010386078618466854,
0.052176669239997864,
0.04613015428185463,
0.040559206157922745,
0.05166713148355484,
-0.02957017533481121,
-0.04205385223031044,
-0.01225438341498375,
0.01020774058997631,
0.007235436234623194,
0.036686718463897705,
-0.004984978120774031,
0.020942002534866333,
0.048643872141838074,
0.016143854707479477,
0.08288481086492538,
0.007269405759871006,
-0.027956638485193253,
-0.055505648255348206,
0.014148165471851826,
0.03974394500255585,
-0.022113939747214317,
0.017010070383548737,
0.07079178094863892,
0.023778429254889488,
0.012560105882585049,
-0.055233895778656006,
0.006590021774172783,
-0.01628822460770607,
-0.008263004012405872,
-0.01011432521045208,
0.023404767736792564,
-0.007736481726169586,
0.04708129167556763,
-0.009885032661259174,
-0.002256827661767602,
0.0472511351108551,
0.014903980307281017,
-0.013494258746504784,
0.030928943306207657,
-0.0011634445982053876,
0.010963554494082928,
-0.008704603649675846,
0.03970997780561447,
0.007248174864798784,
0.023914305493235588,
0.038283269852399826,
-0.03740007430315018,
-0.0664776936173439,
-0.04320880398154259,
0.016390131786465645,
0.07174292206764221,
-0.004551870748400688,
-0.05733998492360115,
-0.011405154131352901,
-0.0022780585568398237,
0.06012545898556709,
0.019073696807026863,
0.04524695500731468,
-0.0957251638174057,
-0.026665810495615005,
0.06664754450321198,
0.004127256106585264,
0.05088584125041962,
-0.020704219117760658,
-0.02984192967414856,
-0.010759739205241203,
0.02676771767437458,
-0.0006151607376523316,
0.04694541543722153,
0.014080227352678776,
-0.0023672275710850954,
-0.020704219117760658,
-0.04432978481054306,
-0.044363755732774734,
0.039098531007766724,
-0.03196500241756439,
-0.004001994617283344,
0.07106353342533112,
-0.054180849343538284,
0.029790975153446198,
-0.0117108765989542,
0.022181877866387367,
0.007328851614147425,
0.010827677324414253,
-0.06148422509431839,
-0.04979882389307022,
-0.03148943558335304,
0.0376378558576107,
-0.006284299306571484,
-0.04432978481054306,
-0.028805868700146675,
0.03865693137049675,
-0.011634445749223232,
-0.019345451146364212,
-0.012925274670124054,
-0.013638627715408802,
0.0389966256916523,
0.03549779951572418,
0.0010031524579972029,
-0.038690902292728424,
0.013502751477062702,
0.018666068091988564,
0.0029340884648263454,
-0.0004912262666039169,
0.026614855974912643,
-0.03892868757247925,
-0.030606236308813095,
-0.0021634125150740147,
-0.017850806936621666,
-0.0014564287848770618,
-0.055981218814849854,
0.047896552830934525,
-0.00023327275994233787,
0.028669992461800575,
0.012628044933080673,
0.030062729492783546,
-0.0758192241191864,
0.044771384447813034,
-0.0014988903421908617,
0.01578717865049839,
-0.01571924053132534,
-0.03920044004917145,
0.024067167192697525,
-0.018326375633478165,
-0.015354071743786335,
-0.03573558107018471,
-0.02736217901110649,
0.005074147135019302,
-0.008390388451516628,
0.03865693137049675,
0.052176669239997864,
-0.06922920048236847,
0.055030081421136856,
-0.03824930265545845,
-0.010301155038177967,
-0.02022865042090416,
-0.03920044004917145,
-0.04334468021988869,
-0.034546662122011185,
-0.03604130446910858,
0.020602310076355934,
0.029536206275224686,
0.021349633112549782,
-0.0020063049159944057,
-0.07282993197441101,
0.011294754222035408,
-0.009188664145767689,
-0.0195662509649992,
-0.038758840411901474,
-0.07425663620233536,
-0.009553832933306694,
0.013876412063837051,
-0.015710748732089996,
0.06603609770536423,
-0.07153910398483276,
0.07697417587041855,
0.03852105513215065,
-0.04674159735441208,
-0.02250458486378193,
0.054384663701057434,
0.015099302865564823,
-0.0052737160585820675,
0.002940457547083497,
-0.024882428348064423,
0.021043909713625908,
0.015965517610311508,
-0.04354849457740784,
-0.02269141562283039,
-0.004984978120774031,
0.017307300120592117,
0.013027182780206203,
0.03264438733458519,
0.049968671053647995,
0.03373140096664429,
-0.02330286055803299,
-0.0587666891515255,
-0.01975308172404766,
-0.04334468021988869,
-0.03162531182169914,
-0.02844919264316559,
-0.020789140835404396,
0.004171840380877256,
-0.007634574547410011,
0.02109486423432827,
0.01626274734735489,
0.03405410796403885,
0.04232560470700264,
0.04538283124566078,
0.012042076326906681,
-0.0031994725577533245,
-0.03337472304701805,
-0.052040793001651764,
-0.011082446202635765,
-0.007133529055863619,
0.006534821819514036,
-0.003554025897756219,
0.09246411919593811,
-0.0038831024430692196,
0.023116029798984528,
-0.008229034952819347,
-0.054112911224365234,
-0.09137710928916931,
-0.008568727411329746,
0.02141757123172283,
-0.010989031754434109,
0.005558208096772432,
0.02929842285811901,
-0.012560105882585049,
-0.011889214627444744,
-0.019600220024585724,
-0.018801944330334663,
0.03716228902339935,
-0.03369743004441261,
0.005103870294988155,
0.016806254163384438,
-0.010674816556274891,
0.013867920264601707,
-0.030215589329600334,
-0.007086821366101503,
0.018598128110170364,
0.015532409772276878,
0.010853154584765434,
0.04545076936483383,
0.008118635043501854,
-0.013545212335884571,
-0.014929456636309624,
0.030215589329600334,
0.021043909713625908,
0.015039856545627117,
-0.002012674231082201,
0.004755686037242413,
0.016712838783860207,
-0.022878246381878853,
-0.020992957055568695,
0.031931035220623016,
0.04117065295577049,
0.05458848178386688,
0.1157669797539711,
-0.07792530953884125,
-0.027752824127674103,
0.07255817949771881,
-0.024746552109718323,
-0.008959372527897358,
0.0006337375962175429,
0.015668286010622978,
0.035090167075395584,
-0.031217681244015694,
-0.03298407793045044,
-0.01915862038731575,
0.011158877052366734,
-0.052176669239997864,
0.024712583050131798,
-0.036279089748859406,
0.031217681244015694,
-0.04579045996069908,
-0.032287709414958954,
-0.016075916588306427,
-0.02722630277276039,
0.01515025645494461,
0.058325089514255524,
0.07269405573606491,
0.04392215609550476,
-0.031013866886496544,
-0.013061151839792728,
0.025137197226285934,
-0.010071863420307636,
0.00328864180482924,
-0.014360473491251469,
0.0045561171136796474,
0.10116023570299149,
0.018852896988391876,
-0.03553176671266556,
0.013163059018552303,
0.031744204461574554,
0.00012738443911075592,
-0.04894959554076195,
0.027515040710568428,
0.04585840180516243,
-0.022419661283493042,
0.03998173028230667,
0.009052787907421589,
-0.03838517889380455,
0.024016214534640312,
0.0010105832479894161,
0.006870267912745476,
-0.03559970483183861,
0.02275935374200344,
0.06542465090751648,
0.036211151629686356,
0.00297018070705235,
-0.05074996128678322,
0.05608312413096428,
-0.06440557539463043,
0.022810308262705803,
-0.024287967011332512,
-0.0032100880052894354,
0.021791232749819756,
0.021808216348290443,
0.07119940966367722,
0.02924746833741665,
0.022793322801589966,
0.03532795235514641,
-0.020942002534866333,
0.03359552472829819,
-0.014148165471851826,
-0.1120983138680458,
0.06134834885597229,
-0.023948276415467262,
-0.04691144451498985,
0.04225766658782959,
-0.05852890759706497,
0.08336038142442703,
0.005749284755438566,
-0.044567570090293884,
0.06739486008882523,
0.014861518517136574,
-0.04531489312648773,
-0.02843220718204975,
-0.013341397047042847,
-0.02136661671102047,
0.027990609407424927,
-0.04490726441144943,
-0.07887645065784454,
0.027277255430817604,
-0.020381510257720947,
0.011226816102862358,
-0.02790568582713604,
-0.024406859651207924,
-0.02517116628587246,
-0.006063499487936497,
-0.05465641990303993,
0.027073441073298454,
0.005787499714642763,
-0.06413382291793823,
-0.08098253607749939,
0.02309904620051384,
-0.02517116628587246,
-0.010717278346419334,
0.029943836852908134,
-0.016916655004024506,
-0.01742619276046753,
0.0016623670235276222,
0.014623734168708324,
-0.05696632340550423,
0.00985106360167265,
0.02002483420073986,
0.04745495319366455,
0.010717278346419334,
0.03407109156250954,
-0.029807960614562035,
-0.04979882389307022,
0.014216103591024876,
0.044363755732774734,
-0.0027578731533139944,
0.017460161820054054,
-0.004815131891518831,
-0.03378235548734665,
-0.00442024040967226,
-0.026818672195076942,
0.004772670567035675,
-0.03631306067109108,
0.013672596774995327,
-0.0015126903308555484,
0.016483547165989876,
0.030538298189640045,
-0.010292663238942623,
0.024661628529429436,
0.04650381579995155,
-0.018581144511699677,
-0.002140058670192957,
0.039098531007766724,
-0.08336038142442703,
0.03223675489425659,
-0.023659536615014076,
0.03328980132937431,
0.01781683787703514,
0.033340755850076675,
-0.011770322918891907,
0.05679647624492645,
-0.022793322801589966,
-0.0018173514399677515,
0.05251635983586311,
-0.015107794664800167,
-0.08302068710327148,
-0.08268100023269653,
-0.011872230097651482,
-0.014377458021044731,
-0.0068362983874976635,
0.046096183359622955,
-0.038555026054382324,
-0.0659341886639595,
0.02022865042090416,
0.06705517321825027,
-0.04354849457740784,
0.025086242705583572,
-0.09552134573459625,
-0.02802457846701145,
0.04517901688814163,
-0.00009208833944285288,
-0.010759739205241203,
-0.006534821819514036,
0.08349625766277313,
-0.019141634926199913,
-0.0053671314381062984,
-0.05421482026576996,
-0.035803522914648056,
-0.03182912617921829,
-0.01776588335633278,
0.0582231841981411,
0.026801686733961105,
-0.04966294765472412,
-0.048711810261011124,
-0.05482626333832741,
0.000769614358432591,
0.018207482993602753,
0.02535799704492092,
-0.013901889324188232,
-0.03933631628751755,
0.09905414283275604,
-0.05914035066962242,
-0.015260656364262104,
-0.006004053633660078,
-0.007893589325249195,
-0.0010158909717574716,
0.03689053654670715,
-0.013264967128634453,
0.027752824127674103,
-0.041680190712213516,
0.017969699576497078,
-0.05346749722957611,
0.018666068091988564,
0.01329044345766306,
-0.025782611221075058,
0.014445396140217781,
0.00881500355899334,
-0.03429189324378967,
0.020143726840615273,
-0.02050040289759636,
-0.019464343786239624,
0.014148165471851826,
0.0237614456564188,
0.015243671834468842,
-0.01177881471812725,
-0.01315456721931696,
-0.012721460312604904,
-0.022419661283493042,
-0.042699266225099564,
0.014105703681707382,
-0.028126485645771027,
0.08967864513397217,
-0.04239354282617569,
-0.038826778531074524,
0.017281822860240936,
-0.04497520253062248,
-0.030793067067861557,
0.009035803377628326,
0.006076238118112087,
-0.052448421716690063,
0.021332647651433945,
0.07996346056461334,
-0.03002876043319702,
0.017986683174967766,
-0.04528092220425606,
0.025086242705583572,
-0.03011368215084076,
-0.002150674117729068,
0.021468525752425194,
0.042631328105926514,
-0.05608312413096428,
0.004144240636378527,
0.06460939347743988,
-0.0651189312338829,
-0.01267899852246046,
0.03165927901864052,
0.025018304586410522,
0.02089104801416397,
-0.025188149884343147,
-0.03393521532416344,
-0.012143983505666256,
-0.027277255430817604,
-0.02957017533481121,
-0.06732692569494247,
0.024152090772986412,
-0.012483675964176655,
-0.006080484017729759,
-0.02483147382736206,
0.042087819427251816,
-0.03753595054149628,
-0.017375238239765167,
0.013867920264601707,
-0.03824930265545845,
-0.007065590471029282,
0.03780770301818848,
-0.05322971194982529,
-0.001549844047985971,
0.05995561182498932,
0.021587416529655457,
-0.01368958130478859,
0.0389966256916523,
0.015804164111614227,
0.03225374221801758,
-0.01088712364435196,
-0.03964203968644142,
-0.04205385223031044,
-0.06569640338420868,
0.0005785376997664571,
-0.03716228902339935,
0.012093029916286469,
0.029077623039484024,
-0.028856823220849037,
0.040559206157922745,
0.022725384682416916
] |
17,582 | sklearn.base | MetaEstimatorMixin | Mixin class for all meta estimators in scikit-learn.
This mixin defines the following functionality:
- define `_required_parameters` that specify the mandatory `estimator` parameter.
Examples
--------
>>> from sklearn.base import MetaEstimatorMixin
>>> from sklearn.datasets import load_iris
>>> from sklearn.linear_model import LogisticRegression
>>> class MyEstimator(MetaEstimatorMixin):
... def __init__(self, *, estimator=None):
... self.estimator = estimator
... def fit(self, X, y=None):
... if self.estimator is None:
... self.estimator_ = LogisticRegression()
... else:
... self.estimator_ = self.estimator
... return self
>>> X, y = load_iris(return_X_y=True)
>>> estimator = MyEstimator().fit(X, y)
>>> estimator.estimator_
LogisticRegression()
| class MetaEstimatorMixin:
"""Mixin class for all meta estimators in scikit-learn.
This mixin defines the following functionality:
- define `_required_parameters` that specify the mandatory `estimator` parameter.
Examples
--------
>>> from sklearn.base import MetaEstimatorMixin
>>> from sklearn.datasets import load_iris
>>> from sklearn.linear_model import LogisticRegression
>>> class MyEstimator(MetaEstimatorMixin):
... def __init__(self, *, estimator=None):
... self.estimator = estimator
... def fit(self, X, y=None):
... if self.estimator is None:
... self.estimator_ = LogisticRegression()
... else:
... self.estimator_ = self.estimator
... return self
>>> X, y = load_iris(return_X_y=True)
>>> estimator = MyEstimator().fit(X, y)
>>> estimator.estimator_
LogisticRegression()
"""
_required_parameters = ["estimator"]
| () | [
0.010456779040396214,
0.012162494473159313,
-0.03233443573117256,
0.004394072107970715,
0.01972697302699089,
0.011810227297246456,
-0.008672266267240047,
0.028496576473116875,
-0.015277279540896416,
0.0424204058945179,
0.045164383947849274,
0.04479357600212097,
0.019949456676840782,
0.018762871623039246,
-0.007610829081386328,
-0.020691072568297386,
0.05347047746181488,
-0.016065245494246483,
0.014702527783811092,
-0.030739963054656982,
0.0015318995574489236,
0.0023140721023082733,
-0.029367974027991295,
-0.003543531522154808,
0.02423228695988655,
0.04104841873049736,
0.04071469232439995,
-0.04060344770550728,
0.032816484570503235,
0.002201671013608575,
-0.08513745665550232,
-0.028070146217942238,
-0.003073069266974926,
0.037544284015893936,
0.022897379472851753,
-0.07141757011413574,
-0.015564655885100365,
0.06911856681108475,
-0.07182545959949493,
0.05895843356847763,
0.009678082540631294,
-0.026994803920388222,
0.016426783055067062,
-0.06974893808364868,
-0.005997815635055304,
0.03468906506896019,
-0.006818227469921112,
0.07249291241168976,
-0.029052788391709328,
-0.06889607757329941,
0.03800779581069946,
-0.052765943109989166,
0.025363249704241753,
0.0010087129194289446,
-0.020357346162199974,
0.09114454686641693,
0.07275248318910599,
0.021265825256705284,
0.00978932436555624,
0.054434578865766525,
-0.009585380554199219,
0.040232639759778976,
0.028923004865646362,
-0.03226027637720108,
0.0035968353040516376,
-0.07075011730194092,
-0.05873594805598259,
-0.0130617031827569,
-0.0032862836960703135,
0.021098962053656578,
-0.012709436006844044,
-0.022470949217677116,
0.027106046676635742,
0.022730514407157898,
0.019263463094830513,
-0.014127775095403194,
-0.05843930318951607,
-0.02502952329814434,
0.05929215997457504,
-0.0024658716283738613,
-0.002102016471326351,
-0.02908986806869507,
-0.0371178574860096,
-0.02651275508105755,
-0.028070146217942238,
-0.0477229580283165,
-0.03505987301468849,
-0.04991072416305542,
0.06073831021785736,
0.010113781318068504,
-0.07100968807935715,
0.06997141987085342,
0.0374886654317379,
0.039898913353681564,
-0.01391456089913845,
0.018002716824412346,
0.001570139080286026,
0.017224019393324852,
-0.023713156580924988,
-0.02651275508105755,
-0.03468906506896019,
0.038267359137535095,
0.015026983805000782,
0.038378603756427765,
-0.00019134259491693228,
-0.0314444974064827,
-0.021377066150307655,
-0.012171764858067036,
0.0352267362177372,
-0.024213746190071106,
-0.0011697825975716114,
-0.03513403609395027,
-0.0772763341665268,
0.05851346254348755,
-0.03505987301468849,
-0.05936632305383682,
-0.006614283192902803,
-0.010846126824617386,
-0.02226700633764267,
-0.045127302408218384,
-0.06181365251541138,
0.037321802228689194,
-0.027087505906820297,
-0.0004055709869135171,
0.008667631074786186,
-0.04564643278717995,
0.0666341558098793,
0.04056636989116669,
-0.018253011628985405,
-0.08395087718963623,
0.005460144020617008,
-0.025882381945848465,
-0.02643859200179577,
-0.02825555019080639,
-0.0055435760878026485,
0.021784955635666847,
0.026679618284106255,
0.018577467650175095,
-0.03250129893422127,
0.025585735216736794,
0.01889265514910221,
-0.00875106267631054,
-0.011012990027666092,
-0.008797413669526577,
0.012264466844499111,
-0.007031442131847143,
-0.006025625858455896,
0.024973902851343155,
0.005886572878807783,
-0.05662234500050545,
0.012190304696559906,
0.0170386154204607,
0.015212387777864933,
-0.02601216360926628,
-0.013339809142053127,
-0.030684340745210648,
-0.0005553425289690495,
-0.011819496750831604,
0.019893836230039597,
-0.014507853426039219,
0.03706223517656326,
-0.006257380824536085,
0.002908523427322507,
-0.019078059121966362,
0.014554204419255257,
0.05009612813591957,
-0.04746339097619057,
-0.06222154200077057,
-0.028681980445981026,
0.032853566110134125,
-0.04864997789263725,
-0.05728979781270027,
-0.005242294631898403,
-0.025511574000120163,
-0.014303908683359623,
0.0350227914750576,
0.0019409467931836843,
0.017094237729907036,
0.025326170027256012,
0.030313534662127495,
0.02608632482588291,
-0.03018375113606453,
-0.11309636384248734,
-0.03246421739459038,
-0.0029062058310955763,
0.007703531067818403,
0.02263781428337097,
-0.013043162412941456,
-0.011318907141685486,
0.047092583030462265,
0.05165351927280426,
0.010549481026828289,
-0.022600732743740082,
-0.012171764858067036,
0.004968823865056038,
0.00437553133815527,
0.020505668595433235,
-0.018725791946053505,
0.02059837058186531,
0.08135522156953812,
0.007939920760691166,
0.012412789277732372,
0.03563462570309639,
0.03450366109609604,
0.02703188546001911,
0.05480538681149483,
0.0071473196148872375,
0.007397614885121584,
-0.07319745421409607,
-0.027903283014893532,
0.018104689195752144,
-0.03791509196162224,
-0.015536844730377197,
0.07026807218790054,
0.04968823865056038,
0.01147649995982647,
0.04427444562315941,
-0.033076051622629166,
0.024825578555464745,
0.008097514510154724,
0.10441946238279343,
0.025326170027256012,
0.029126949608325958,
0.06908148527145386,
0.034633442759513855,
-0.038267359137535095,
0.04501606151461601,
-0.06622626632452011,
-0.02560427598655224,
-0.027106046676635742,
-0.01414631586521864,
-0.04256872832775116,
0.025530114769935608,
0.0496140792965889,
-0.022563651204109192,
0.02521492727100849,
0.02299008145928383,
-0.0040626623667776585,
-0.037433043122291565,
0.046944260597229004,
-0.03127763420343399,
0.06874775886535645,
0.00826437771320343,
-0.004023264162242413,
-0.011875118128955364,
-0.031945087015628815,
-0.01743723452091217,
0.0431620217859745,
0.017242560163140297,
-0.010271375067532063,
0.05502787232398987,
0.029145490378141403,
-0.03945394605398178,
0.02252657152712345,
-0.035616084933280945,
0.016918104141950607,
-0.0003939832386095077,
-0.032130490988492966,
-0.006785782054066658,
-0.02248948998749256,
-0.031259093433618546,
-0.01943032629787922,
-0.0011454483028501272,
0.08246764540672302,
-0.026902101933956146,
-0.024936821311712265,
0.0484645739197731,
0.020153401419520378,
-0.042160842567682266,
-0.0014635318657383323,
0.10612517595291138,
0.04675885662436485,
0.00023711417452432215,
0.019949456676840782,
0.0008244678610935807,
-0.07023099064826965,
-0.010160132311284542,
-0.04342158883810043,
-0.019745513796806335,
0.0050383503548800945,
0.03229735419154167,
-0.005538940895348787,
0.007805503439158201,
-0.005932923872023821,
-0.0179841760545969,
-0.00764791015535593,
0.007856489159166813,
0.003891163971275091,
-0.006549391895532608,
0.015008443966507912,
-0.030999528244137764,
-0.020691072568297386,
0.006257380824536085,
0.0012422059662640095,
0.014081424102187157,
-0.035690248012542725,
-0.07861124724149704,
0.056214455515146255,
0.01471179723739624,
-0.04568351432681084,
0.054175011813640594,
-0.0010533258318901062,
-0.0416417121887207,
-0.002579431515187025,
-0.011374527588486671,
-0.05024445056915283,
0.040306802839040756,
-0.01062364224344492,
-0.04623972624540329,
0.006414974108338356,
0.06444638967514038,
0.08780727535486221,
-0.047092583030462265,
-0.023194024339318275,
-0.03188946843147278,
-0.025344710797071457,
0.015481223352253437,
-0.017483586445450783,
0.03426263481378555,
0.05487954616546631,
-0.008018718101084232,
0.0032955538481473923,
0.003112467471510172,
-0.008157770149409771,
-0.012264466844499111,
-0.0168532133102417,
-0.027995985001325607,
-0.0308697447180748,
-0.03967642784118652,
0.009103330783545971,
-0.04979947954416275,
0.023194024339318275,
0.008542483672499657,
0.018716521561145782,
-0.06874775886535645,
0.03188946843147278,
0.011634093709290028,
-0.006113692652434111,
0.011439419351518154,
0.03680266812443733,
-0.031759683042764664,
-0.006850673351436853,
-0.008421971462666988,
0.01280213799327612,
-0.07660888135433197,
-0.03871233016252518,
0.003835542593151331,
0.020950637757778168,
0.05309966951608658,
-0.010308455675840378,
-0.024584554135799408,
-0.012672355398535728,
0.05324799194931984,
-0.015175307169556618,
0.03691391274333,
-0.02332380786538124,
-0.037544284015893936,
0.017057156190276146,
0.006952645257115364,
-0.020987719297409058,
0.01587057113647461,
-0.045609354972839355,
0.01634335145354271,
0.04438568651676178,
-0.015898382291197777,
-0.018327172845602036,
-0.004308322444558144,
0.006516946479678154,
0.04238332808017731,
-0.054471660405397415,
-0.015963273122906685,
-0.04245748743414879,
0.0007995542255230248,
0.03893481567502022,
0.02499244175851345,
0.014739608392119408,
-0.007193670608103275,
0.006285191513597965,
-0.010929558426141739,
-0.026382971554994583,
0.02389856055378914,
0.003131008008494973,
0.03889773413538933,
-0.041975438594818115,
-0.031518660485744476,
-0.009441692382097244,
0.021859116852283478,
0.040343884378671646,
-0.001264222664758563,
-0.050986066460609436,
-0.009177492000162601,
-0.033836208283901215,
-0.06526216119527817,
-0.05042985454201698,
-0.05547283962368965,
-0.09040293097496033,
0.014192666858434677,
-0.011522850953042507,
-0.03348394110798836,
-0.050541095435619354,
0.07705385237932205,
-0.06370477378368378,
0.0213956069201231,
-0.0032260273583233356,
0.03500425070524216,
0.05031861364841461,
-0.0025493032298982143,
0.0019699162803590298,
0.024825578555464745,
-0.02248948998749256,
-0.018614549189805984,
-0.034707605838775635,
0.02059837058186531,
-0.024473311379551888,
0.002356946701183915,
0.00965954177081585,
0.08432168513536453,
0.003972277976572514,
-0.0024102504830807447,
-0.00683676777407527,
0.04968823865056038,
0.012190304696559906,
-0.05213557183742523,
0.040084317326545715,
0.05550992116332054,
0.031147850677371025,
-0.07586726546287537,
-0.06748700886964798,
0.028941545635461807,
-0.026401512324810028,
-0.03643186017870903,
-0.02851511538028717,
-0.09403684735298157,
0.019282003864645958,
-0.028070146217942238,
-0.04420028254389763,
-0.057994332164525986,
0.017409423366189003,
-0.027217289432883263,
0.02866343967616558,
-0.008955007418990135,
-0.046944260597229004,
0.00857492908835411,
0.00033778269425965846,
-0.001953693339601159,
0.0012155541917309165,
0.013997992500662804,
0.03454074263572693,
-0.0026118771638721228,
-0.039973076432943344,
0.04968823865056038,
0.030053967610001564,
-0.03698807209730148,
0.06618918478488922,
0.014137045480310917,
-0.06296315789222717,
0.07112092524766922,
-0.0640014186501503,
0.011559931561350822,
-0.022600732743740082,
0.04853873327374458,
0.003423019079491496,
-0.01706642657518387,
-0.010076700709760189,
0.005687263794243336,
0.034930091351270676,
0.024862660095095634,
0.0009362895507365465,
-0.04234624654054642,
0.0062898267060518265,
0.04405196011066437,
-0.01802125759422779,
0.015286549925804138,
-0.047352150082588196,
-0.03737742081284523,
0.06948937475681305,
0.023527752608060837,
0.0017485902644693851,
-0.04293953627347946,
-0.025585735216736794,
0.00759228877723217,
-0.006605013273656368,
0.03461490198969841,
0.012978271581232548,
0.005084701348096132,
0.004461281001567841,
-0.059700049459934235,
-0.04972532019019127,
0.034448038786649704,
0.029330892488360405,
-0.028162848204374313,
0.05662234500050545,
0.036747049540281296,
0.013339809142053127,
0.013747697696089745,
0.04683301970362663,
0.07382782548666,
0.021636633202433586,
0.056251537054777145,
0.005404523108154535,
0.0008012923644855618,
-0.004092790652066469,
0.01980113424360752,
0.014507853426039219,
0.03268670290708542,
-0.09529758989810944,
-0.027903283014893532,
0.008153135888278484,
-0.03589418902993202,
0.007796233054250479,
0.0017891473835334182,
0.0005741726490668952,
0.00510324165225029,
0.043792396783828735,
0.014442961663007736,
-0.05354464054107666,
-0.07034222781658173,
0.03500425070524216,
0.01549049373716116,
0.0193190835416317,
0.06084955111145973,
0.009344355203211308,
0.07486608624458313,
-0.02465871535241604,
-0.0115506611764431,
0.025622814893722534,
0.01834571361541748,
0.00717512983828783,
0.00780086824670434,
0.04323618486523628,
0.016918104141950607,
-0.02582675963640213,
-0.08943883329629898,
0.0927760973572731,
-0.019300542771816254,
0.061257440596818924,
0.014211207628250122,
-0.00028476875741034746,
0.10612517595291138,
-0.013339809142053127,
0.03018375113606453,
-0.0026814036536961794,
0.026605457067489624,
0.03620937839150429,
0.021098962053656578,
-0.005376712419092655,
-0.013988722115755081,
0.019560109823942184,
-0.004674495197832584,
-0.0223411675542593,
-0.04764879494905472,
-0.012134683318436146,
-0.048798300325870514,
0.018688710406422615,
0.006224934943020344,
0.005246929824352264,
0.005334996618330479,
0.0193190835416317,
-0.020765233784914017,
0.014461502432823181,
0.01710350811481476,
0.019078059121966362,
0.03431825712323189,
0.005070796236395836,
0.01802125759422779,
0.026401512324810028,
0.014053613878786564,
0.00870007649064064,
-0.05821681767702103,
-0.06463178992271423,
0.01852184720337391,
-0.03609813377261162,
-0.02161809243261814,
0.013145134784281254,
-0.04790836200118065,
0.09455597400665283,
-0.004834406077861786,
0.01435025967657566,
-0.045349787920713425,
-0.011940009891986847,
0.009798594750463963,
-0.027903283014893532,
0.028997166082262993,
-0.005909748375415802,
-0.015564655885100365,
-0.031481578946113586,
-0.014461502432823181,
0.013877480290830135,
-0.0420495979487896,
-0.010929558426141739,
-0.02245241031050682,
-0.008829860016703606,
0.020468588918447495,
-0.023620454594492912,
0.028144309297204018,
-0.006173949223011732,
-0.034781768918037415,
-0.08454416692256927,
0.03287210687994957,
-0.040084317326545715,
-0.0022306405007839203,
0.059551727026700974,
-0.027013344690203667,
0.020505668595433235,
0.018169580027461052,
-0.03585711121559143,
-0.0477229580283165,
0.040195561945438385,
-0.025418872013688087,
-0.036635804921388626,
-0.027106046676635742,
0.0048529463820159435,
0.015759330242872238,
-0.03246421739459038,
0.0018320220988243818,
0.013441781513392925,
-0.059737130999565125,
0.009302639402449131,
0.06770949810743332,
-0.052803024649620056,
0.026457132771611214,
-0.07668304443359375,
-0.0006019832217134535,
0.03897189348936081,
-0.028923004865646362,
-0.0014774370938539505,
0.001097938627935946,
-0.10019225627183914,
-0.030424775555729866,
-0.041678790003061295,
0.03624645620584488,
-0.03366934508085251,
0.06726452708244324,
-0.06403850018978119,
0.052543457597494125,
0.0023152309004217386,
0.04049220681190491,
0.034707605838775635,
0.003969960380345583,
-0.041827116161584854,
-0.06444638967514038,
-0.015323630534112453,
0.027106046676635742,
-0.0044844564981758595,
-0.017372343689203262,
-0.04627680778503418,
-0.020468588918447495,
0.03261254355311394,
0.07126925140619278,
0.004132188856601715,
0.01295046042650938,
0.06607794016599655,
-0.041901275515556335,
0.0014670081436634064,
0.04942867532372475,
-0.03116639144718647,
0.03776676952838898,
0.032742325216531754,
0.04305078089237213,
-0.010790505446493626,
-0.052432216703891754,
0.045461028814315796,
0.09707746654748917,
0.0331316739320755,
0.01171752531081438,
0.008180946111679077,
-0.06036750227212906,
-0.04267997294664383,
0.04264289140701294,
0.00665599899366498,
-0.03934270143508911,
0.06066414713859558,
-0.025344710797071457,
-0.05209849029779434,
0.010948099195957184,
0.015592466108500957,
0.019189301878213882,
-0.08669485151767731,
-0.001862150151282549,
0.010326995514333248,
0.038156118243932724,
0.04813084751367569,
-0.03719201683998108,
0.009548299945890903,
-0.007768422365188599,
-0.02336088940501213,
0.008834494277834892,
0.021896198391914368,
-0.05662234500050545,
-0.05502787232398987,
0.04449693113565445,
-0.0028366793412715197,
0.05910675600171089,
-0.017641179263591766,
0.02847803570330143,
-0.02059837058186531,
-0.05547283962368965,
-0.0376926064491272,
0.026568375527858734,
-0.03437387943267822,
-0.005293280817568302,
0.010651452466845512,
-0.03745158389210701,
0.027884742245078087,
-0.019078059121966362,
0.04687010124325752,
-0.022508030757308006,
0.008491497486829758,
0.04612848535180092,
-0.0897354781627655,
0.016862481832504272,
0.00262809987179935,
0.006113692652434111,
-0.029757322743535042,
0.048835381865501404,
0.0081392303109169,
0.039898913353681564,
0.024176664650440216,
0.023453589528799057,
-0.015416332520544529,
0.024566013365983963,
-0.013219296000897884,
0.05291426554322243,
-0.002713849302381277,
0.0009658383205533028,
-0.01765972003340721,
0.003066116711124778,
-0.05002196505665779,
0.050986066460609436,
-0.00021654593001585454,
0.054397497326135635,
-0.04123382270336151,
-0.06459470838308334,
0.000822150323074311,
0.025511574000120163,
-0.057697687298059464,
-0.004941013175994158,
-0.022025980055332184,
0.0076061938889324665,
0.015444142743945122,
0.02121020294725895,
-0.0010938828345388174,
0.022767595946788788,
0.03331707790493965,
0.02643859200179577,
0.001697604195214808,
-0.0012839218834415078,
0.002001203130930662,
0.04238332808017731,
0.025530114769935608,
-0.017381614074110985,
-0.04305078089237213,
-0.005061525851488113,
0.016519485041499138,
0.02158101089298725,
-0.016111597418785095,
0.009270193986594677,
-0.032742325216531754,
0.006646729074418545,
-0.03244567662477493,
-0.01809541881084442,
-0.04842749238014221,
0.050874825567007065,
-0.029850024729967117,
0.03882357105612755,
-0.0034137489274144173,
0.029942726716399193,
0.03305751085281372
] |
17,583 | imodels.rule_list.one_r | OneRClassifier | null | class OneRClassifier(GreedyRuleListClassifier):
def __init__(self, max_depth=5, class_weight=None, criterion='gini'):
self.max_depth = max_depth
self.feature_names_ = None
self.class_weight = class_weight
self.criterion = criterion
self._estimator_type = 'classifier'
def fit(self, X, y, feature_names=None):
"""Fit oneR
"""
X, y, feature_names = check_fit_arguments(self, X, y, feature_names)
ms = []
accs = np.zeros(X.shape[1])
for col_idx in range(X.shape[1]):
x = X[:, col_idx].reshape(-1, 1)
m = GreedyRuleListClassifier(max_depth=self.max_depth, class_weight=self.class_weight,
criterion=self.criterion)
feat_names_single = [self.feature_names_[col_idx]]
m.fit(x, y, feature_names=feat_names_single)
accs[col_idx] = np.mean(m.predict(x) == y)
ms.append(m)
# print('acc', feat_names_single[0], f'{accs[col_idx]:0.2f}')
col_idx_best = np.argmax(accs)
self.rules_ = ms[col_idx_best].rules_
self.complexity_ = len(self.rules_)
# need to adjust index_col since was fitted with only 1 col
for rule in self.rules_:
if 'index_col' in rule:
rule['index_col'] += col_idx_best
self.depth = len(self.rules_)
return self
| (max_depth=5, class_weight=None, criterion='gini') | [
-0.027607440948486328,
-0.03164165839552879,
-0.02403799258172512,
0.015077194198966026,
0.017438234761357307,
-0.020040957257151604,
0.004468780010938644,
-0.030507614836096764,
0.019055640324950218,
0.01347837969660759,
-0.0030303115490823984,
0.034746333956718445,
0.015318876132369041,
0.028425438329577446,
0.002056614961475134,
-0.020784590393304825,
0.017205849289894104,
0.03000566177070141,
-0.014407923445105553,
0.03327765688300133,
-0.007282972801476717,
-0.010550318285822868,
-0.0026027215644717216,
0.03885491564869881,
-0.0015383943682536483,
-0.009843865409493446,
0.03543419763445854,
-0.006265122909098864,
-0.018953390419483185,
0.013106562197208405,
-0.09905214607715607,
-0.030526205897331238,
-0.08700526505708694,
0.002211151411756873,
-0.010680453851819038,
-0.05844969302415848,
0.007087768521159887,
0.05919332802295685,
-0.04978634789586067,
-0.029689617455005646,
-0.006664826534688473,
-0.040639638900756836,
-0.029131891205906868,
-0.03232952207326889,
-0.03985882177948952,
0.01474255882203579,
-0.005814294330775738,
0.0680425763130188,
0.012139837257564068,
-0.08588981628417969,
-0.025190627202391624,
-0.0390780046582222,
0.01134043000638485,
0.042907726019620895,
-0.007022700738161802,
0.06807976216077805,
0.010280750691890717,
0.0024168130476027727,
0.02970820851624012,
-0.04874525964260101,
0.0008238078444264829,
-0.03502519801259041,
0.031604476273059845,
0.006567224394530058,
0.005609794519841671,
-0.030191570520401,
-0.07376857101917267,
0.029206255450844765,
0.0002652103721629828,
0.014789036475121975,
-0.025227809324860573,
-0.04629126191139221,
0.05934205278754234,
0.007845346815884113,
-0.00794294849038124,
0.0170106440782547,
-0.05618160590529442,
-0.05015816539525986,
0.06376668065786362,
0.010448068380355835,
-0.01454735454171896,
0.03545278683304787,
0.0314185693860054,
-0.07741237431764603,
-0.036624010652303696,
-0.06376668065786362,
0.025357944890856743,
-0.019613366574048996,
0.03167884051799774,
-0.031028160825371742,
-0.02779334969818592,
0.007399166002869606,
0.020133910700678825,
0.008458845317363739,
0.02507908269762993,
0.074326291680336,
-0.024855991825461388,
-0.004921932704746723,
-0.005312340799719095,
-0.048968348652124405,
-0.0641384944319725,
0.04208972677588463,
-0.002516738837584853,
0.06915803253650665,
-0.04287054389715195,
-0.0025515968445688486,
-0.028016438707709312,
0.0195390023291111,
-0.031176887452602386,
0.0013001988409087062,
-0.09987014532089233,
0.022401997819542885,
0.032515428960323334,
0.027774758636951447,
-0.001680149813182652,
-0.02193722501397133,
-0.06146141141653061,
-0.0064370883628726006,
-0.011619293130934238,
0.00727367727085948,
0.061796046793460846,
0.03852028027176857,
-0.0365496464073658,
0.008672640658915043,
-0.0390780046582222,
-0.03035888820886612,
0.010224977508187294,
0.0201525017619133,
0.023573221638798714,
-0.041123002767562866,
-0.0032115725334733725,
0.0232943594455719,
-0.020226866006851196,
-0.021955816075205803,
0.023368721827864647,
-0.026120170950889587,
-0.007696619722992182,
-0.020561501383781433,
-0.02063586376607418,
-0.011349725537002087,
0.07845346629619598,
-0.025413718074560165,
0.05766887590289116,
-0.027737576514482498,
0.03554574027657509,
0.006269770674407482,
-0.00817998219281435,
0.04532453790307045,
0.012892767786979675,
-0.010215681977570057,
-0.02617594413459301,
-0.012995017692446709,
0.05064152553677559,
-0.012818404473364353,
0.0529467947781086,
0.015263102948665619,
-0.03673555701971054,
-0.0166667141020298,
-0.025841306895017624,
-0.03757214546203613,
-0.024874582886695862,
-0.04261027276515961,
-0.05190570652484894,
0.011833087541162968,
0.011303247883915901,
0.01701994054019451,
-0.057297058403491974,
-0.016592349857091904,
-0.021137818694114685,
0.004894046112895012,
0.024725856259465218,
-0.05127361789345741,
-0.044432178139686584,
0.013115857727825642,
-0.06272558867931366,
0.08246909081935883,
-0.012186314910650253,
0.04603099077939987,
0.02957807295024395,
0.05465715378522873,
0.03658682852983475,
-0.04238718003034592,
-0.01578364707529545,
-0.08722835779190063,
0.012167723849415779,
0.03658682852983475,
0.05105052515864372,
-0.010847771540284157,
-0.023108450695872307,
0.05316988378763199,
-0.0056051467545330524,
-0.034709151834249496,
0.004171326290816069,
0.0007546730921603739,
0.020208274945616722,
-0.018516505137085915,
0.011284657754004002,
0.05186852440237999,
0.05105052515864372,
0.03262697532773018,
-0.027012532576918602,
0.022959722205996513,
0.06465904414653778,
0.015188739635050297,
-0.04450653865933418,
0.03878055140376091,
-0.007966186851263046,
0.029001755639910698,
-0.018126096576452255,
-0.006525394972413778,
-0.013720061630010605,
0.018312005326151848,
-0.020059548318386078,
0.0503440722823143,
0.04309363290667534,
-0.009815978817641735,
-0.00829152762889862,
-0.007440995424985886,
0.017466120421886444,
-0.02665930613875389,
-0.02277381345629692,
-0.024242492392659187,
-0.009620774537324905,
0.01885114051401615,
0.02922484651207924,
-0.05391351878643036,
0.033352017402648926,
-0.003146504517644644,
0.020561501383781433,
0.0019717940595000982,
-0.005837532691657543,
-0.1032165065407753,
0.07763546705245972,
-0.028722891584038734,
-0.00813350547105074,
0.004031894728541374,
0.007924357429146767,
0.04197818040847778,
-0.07979200780391693,
0.016164761036634445,
-0.03166025131940842,
-0.00437117787078023,
-0.03193911164999008,
-0.01749400794506073,
0.0054052951745688915,
0.034393105655908585,
0.06279995292425156,
0.006293009035289288,
-0.0067810192704200745,
-0.02390785701572895,
-0.004155059345066547,
0.0007616446819156408,
-0.019780684262514114,
-0.018135393038392067,
-0.028462620452046394,
-0.10879376530647278,
-0.031158296391367912,
0.004501313902437687,
0.01924154907464981,
-0.030693523585796356,
0.01933450438082218,
0.047443896532058716,
-0.000845303584355861,
0.010057659819722176,
-0.0591561459004879,
0.025506671518087387,
0.02857416495680809,
0.018702413886785507,
0.03569446876645088,
0.012158428318798542,
0.052017249166965485,
0.010066955350339413,
-0.032645564526319504,
0.013775833882391453,
-0.04424626752734184,
0.05629315227270126,
-0.05636751279234886,
-0.00569345336407423,
-0.008342652581632137,
-0.01645291969180107,
0.03495083376765251,
-0.041680727154016495,
-0.02024545520544052,
0.02093331888318062,
-0.00936050247400999,
0.03550855815410614,
-0.024632900953292847,
-0.0019253168720752,
-0.01569998823106289,
0.02613876201212406,
0.02608298882842064,
-0.012753335759043694,
0.06016005203127861,
0.01992941088974476,
0.07023630291223526,
-0.008403073064982891,
0.04677462577819824,
-0.038111280649900436,
0.025134854018688202,
0.0025120910722762346,
0.007050586864352226,
-0.005981612019240856,
0.0012885795440524817,
-0.060085687786340714,
-0.03087943233549595,
-0.04257309064269066,
-0.006451031658798456,
0.01201899629086256,
0.006711303722113371,
0.017875120043754578,
0.024725856259465218,
0.07109148055315018,
-0.0042573087848722935,
-0.006808905862271786,
-0.06447312980890274,
-0.044915538281202316,
0.0028258119709789753,
0.0055772606283426285,
0.06547704339027405,
0.01963195763528347,
-0.06220504641532898,
0.039189551025629044,
-0.024614309892058372,
-0.03476492315530777,
-0.004419979173690081,
0.0030744648538529873,
0.04655153676867485,
0.01626701094210148,
-0.054285336285829544,
-0.007348041050136089,
-0.005005591548979282,
-0.0414576381444931,
0.013208812102675438,
0.009955409914255142,
-0.031734611839056015,
0.050715889781713486,
0.0640641301870346,
0.03093520551919937,
0.035527151077985764,
-0.01966913975775242,
0.0220673605799675,
0.028016438707709312,
-0.024484174326062202,
0.023963630199432373,
-0.02665930613875389,
-0.01866523176431656,
0.022476360201835632,
0.04591944441199303,
0.042721815407276154,
0.03327765688300133,
-0.0011386907426640391,
-0.06893493980169296,
0.05030689015984535,
0.03974727913737297,
0.040676821023225784,
0.017903007566928864,
-0.053764794021844864,
0.034132834523916245,
0.06856312602758408,
-0.07231847941875458,
0.0018242290243506432,
-0.07644565403461456,
-0.05763169378042221,
0.06146141141653061,
0.0074967676773667336,
0.004533848259598017,
-0.021732725203037262,
0.04502708464860916,
0.04049091041088104,
-0.07023630291223526,
-0.029596664011478424,
-0.03392833471298218,
-0.0033556518610566854,
-0.0067531331442296505,
0.00198573712259531,
0.023536039516329765,
0.00727367727085948,
0.03496942296624184,
0.04688617214560509,
-0.01937168464064598,
-0.002704971469938755,
0.026845214888453484,
0.01715007610619068,
-0.0182748232036829,
-0.023368721827864647,
-0.03061916120350361,
-0.009806683287024498,
-0.0023738215677440166,
0.05837532877922058,
-0.028760073706507683,
0.040156275033950806,
-0.011275362223386765,
-0.04301926866173744,
-0.03885491564869881,
-0.07904837280511856,
0.030916614457964897,
0.01683403179049492,
0.033705245703458786,
-0.06506804376840591,
-0.016908396035432816,
-0.03415142744779587,
-0.05346733704209328,
-0.00481968279927969,
0.013190221041440964,
-0.02286676876246929,
0.00935585517436266,
0.02896457351744175,
0.05369042977690697,
-0.026008624583482742,
0.03363088145852089,
-0.019055640324950218,
0.046216901391744614,
0.05242624878883362,
0.025283580645918846,
-0.06216786429286003,
0.029763981699943542,
0.046960536390542984,
0.025097673758864403,
0.04026782140135765,
0.04502708464860916,
0.033389199525117874,
0.028536982834339142,
-0.029280617833137512,
0.05807787552475929,
-0.015160853043198586,
-0.010178500786423683,
-0.028518393635749817,
-0.024484174326062202,
-0.033649470657110214,
-0.031214069575071335,
-0.0642872229218483,
-0.04829907789826393,
-0.07852783054113388,
-0.06952984631061554,
-0.07328520715236664,
-0.030340297147631645,
-0.05205443128943443,
0.03478351607918739,
-0.00976950116455555,
-0.01537464838474989,
-0.005303045269101858,
-0.00872376561164856,
0.009044457226991653,
0.03415142744779587,
0.010020478628575802,
-0.03866900876164436,
0.028295302763581276,
-0.015253807418048382,
-0.12916935980319977,
-0.042907726019620895,
0.0033905096352100372,
0.011563519947230816,
0.02922484651207924,
0.06703867018222809,
0.006887916941195726,
0.03411424532532692,
0.007705915253609419,
-0.0043363203294575214,
0.06101522967219353,
-0.0013559714425355196,
0.052240341901779175,
0.02660353295505047,
0.041123002767562866,
0.026770850643515587,
-0.08135364204645157,
-0.0067903148010373116,
0.02591567113995552,
0.03240388259291649,
-0.04175509139895439,
-0.01740105263888836,
0.020338410511612892,
-0.0351739227771759,
-0.0064370883628726006,
-0.061833228915929794,
-0.05937923491001129,
0.07681746780872345,
0.06309740990400314,
-0.044394996017217636,
0.04863371327519417,
-0.010940725915133953,
0.03126984089612961,
-0.006269770674407482,
0.03392833471298218,
-0.03097238764166832,
0.017112893983721733,
0.009090934880077839,
-0.03580601513385773,
-0.06462185829877853,
-0.04472963139414787,
0.009788092225790024,
-0.051199253648519516,
-0.007092416286468506,
0.0220301803201437,
0.07086839526891708,
-0.010308636352419853,
0.02028263732790947,
0.06224222853779793,
0.027012532576918602,
0.03703301027417183,
-0.020431363955140114,
0.029206255450844765,
-0.018377073109149933,
-0.0641384944319725,
-0.024484174326062202,
0.03833436965942383,
-0.041903819888830185,
-0.05592133477330208,
0.0018323624972254038,
-0.07696619629859924,
0.03446746990084648,
-0.008240402676165104,
-0.034709151834249496,
0.04335390776395798,
0.030172979459166527,
0.004433922003954649,
-0.009602183476090431,
0.0579291470348835,
0.005851475987583399,
-0.0028141927905380726,
0.0327199287712574,
0.024316856637597084,
-0.012046882882714272,
0.026882397010922432,
-0.021398089826107025,
0.003223191946744919,
0.08187418431043625,
0.039933186024427414,
0.01095002144575119,
0.08440254628658295,
0.016954872757196426,
0.0453617200255394,
0.005047420971095562,
-0.024874582886695862,
0.059527963399887085,
-0.0031441806349903345,
0.01832130178809166,
0.03926391527056694,
0.007236495614051819,
0.012855585664510727,
-0.028760073706507683,
0.018033143132925034,
-0.0015534994890913367,
0.03948700428009033,
-0.012288563884794712,
0.002516738837584853,
0.007208609487861395,
0.022401997819542885,
-0.003783241845667362,
-0.02866712026298046,
0.000288594193989411,
0.010001887567341328,
-0.00022744765738025308,
-0.022848177701234818,
0.011470566503703594,
0.04484117403626442,
0.020264046266674995,
-0.002581806853413582,
-0.0022913245484232903,
0.06064341217279434,
0.014696082100272179,
-0.009630070067942142,
-0.018860436975955963,
0.04052809253334999,
-0.017903007566928864,
0.02848121151328087,
-0.0011299762409180403,
0.0009481342858634889,
0.04874525964260101,
-0.06729894131422043,
0.022364815697073936,
-0.0029954537749290466,
0.0320320650935173,
-0.08232036978006363,
-0.021844271570444107,
-0.06462185829877853,
-0.0074224043637514114,
0.009815978817641735,
-0.024242492392659187,
-0.04703489691019058,
-0.014993535354733467,
-0.0076036653481423855,
-0.03584319353103638,
0.04339108616113663,
-0.08410508930683136,
0.000967887113802135,
0.003957531414926052,
-0.01095002144575119,
0.0642872229218483,
-0.08113054931163788,
0.012874176725745201,
-0.0017858853098005056,
0.023740539327263832,
-0.0008604086469858885,
-0.07942019402980804,
-0.0046198307536542416,
0.03922673314809799,
-0.05510333552956581,
-0.04941453039646149,
0.0030186923686414957,
0.01933450438082218,
-0.011321838945150375,
-0.007120302878320217,
-0.02565539814531803,
-0.0035973330959677696,
0.03158588707447052,
-0.02983834408223629,
-0.05357888340950012,
-0.0022797053679823875,
0.015160853043198586,
-0.016434328630566597,
-0.023870674893260002,
0.02740294113755226,
0.05789196491241455,
-0.00817998219281435,
-0.04584508389234543,
0.023443086072802544,
-0.03179038688540459,
0.019446048885583878,
0.032515428960323334,
-0.0007273677620105445,
0.011321838945150375,
0.007162132300436497,
0.0009707919089123607,
0.007877880707383156,
-0.028648529201745987,
-0.01210265513509512,
-0.016945576295256615,
-0.06878621131181717,
0.0150957852602005,
0.032348111271858215,
0.019204366952180862,
-0.026417624205350876,
0.009239661507308483,
-0.03346356377005577,
0.03084225207567215,
0.004571029916405678,
0.024707265198230743,
0.04383726790547371,
-0.01569998823106289,
-0.05911896377801895,
-0.0716492086648941,
-0.012455882504582405,
0.022662268951535225,
0.007515358738601208,
-0.02730998583137989,
-0.04837344214320183,
-0.030191570520401,
0.0339469276368618,
0.10358832031488419,
-0.0052891019731760025,
-0.015356057323515415,
0.020096728578209877,
-0.0239450391381979,
0.009142059832811356,
0.02613876201212406,
-0.002388926688581705,
0.009778796695172787,
0.02255072444677353,
-0.010996499098837376,
-0.02669648826122284,
-0.02591567113995552,
-0.014565945602953434,
0.10909121483564377,
-0.017047826200723648,
-0.03223656490445137,
0.022959722205996513,
0.04636562615633011,
-0.003653105814009905,
-0.03582460433244705,
0.028425438329577446,
-0.08179982006549835,
-0.0026979998219758272,
-0.013803720474243164,
0.019055640324950218,
0.02770039439201355,
-0.04197818040847778,
-0.03071211464703083,
-0.031734611839056015,
-0.002140273805707693,
-0.0025655399076640606,
0.07027348130941391,
0.05168261379003525,
-0.029373573139309883,
-0.006664826534688473,
0.0591561459004879,
0.01018779631704092,
-0.00046506221406161785,
0.027867712080478668,
-0.005163613706827164,
-0.03074929676949978,
-0.042944908142089844,
0.0022262565325945616,
0.08760017156600952,
-0.03257120028138161,
-0.0016615588683634996,
0.008830662816762924,
-0.060271598398685455,
-0.012855585664510727,
-0.011461270973086357,
-0.03612205758690834,
0.0053959996439516544,
0.009890342131257057,
-0.04855934903025627,
0.015021421946585178,
0.01042947731912136,
0.07830473780632019,
-0.02983834408223629,
0.03768369182944298,
0.019390275701880455,
-0.07328520715236664,
-0.0036786680575460196,
0.07402884215116501,
-0.010857067070901394,
0.02591567113995552,
-0.018135393038392067,
0.013106562197208405,
0.058784328401088715,
-0.009406979195773602,
-0.0195390023291111,
-0.0003590361448004842,
0.03496942296624184,
0.0005400066147558391,
0.022104542702436447,
0.021714134141802788,
-0.004963762126863003,
0.002433079993352294,
0.05216597765684128,
-0.050455618649721146,
0.0028513744473457336,
-0.04577071964740753,
0.04208972677588463,
-0.014194128103554249,
-0.018005255609750748,
0.018135393038392067,
0.00988104660063982,
-0.008082380518317223,
0.050753071904182434,
-0.054731518030166626,
0.05290961265563965,
0.05811505764722824,
-0.022792404517531395,
-0.027142668142914772,
-0.0010753655806183815,
0.0002718914474826306,
0.018042437732219696,
0.0503440722823143,
0.0076036653481423855,
0.04130890965461731,
0.012316450476646423,
-0.051496706902980804,
0.0208031814545393,
-0.020468546077609062,
0.0665924921631813,
0.03833436965942383,
0.017252326011657715,
-0.02325717732310295,
0.014147651381790638,
-0.04301926866173744,
-0.01134043000638485,
-0.03790678083896637,
0.019427457824349403,
-0.05357888340950012,
-0.004903341643512249,
0.01966913975775242,
0.007352688815444708,
0.012586018070578575,
0.06272558867931366,
0.01007625088095665
] |
17,585 | imodels.rule_list.one_r | __init__ | null | def __init__(self, max_depth=5, class_weight=None, criterion='gini'):
self.max_depth = max_depth
self.feature_names_ = None
self.class_weight = class_weight
self.criterion = criterion
self._estimator_type = 'classifier'
| (self, max_depth=5, class_weight=None, criterion='gini') | [
0.029857151210308075,
-0.01509434636682272,
-0.010305413976311684,
-0.019653040915727615,
-0.032841023057699203,
-0.022784266620874405,
-0.0208686925470829,
-0.008859524503350258,
0.006943951826542616,
0.007445868570357561,
-0.023907823488116264,
0.07780172675848007,
-0.03838513419032097,
0.0063637541607022285,
0.011686836369335651,
-0.005691461730748415,
0.03908505663275719,
0.0032463434617966413,
0.005456619895994663,
0.033798810094594955,
-0.019118892028927803,
-0.004360691178590059,
-0.030888613313436508,
0.05437279865145683,
0.002283952198922634,
0.022213278338313103,
-0.00547964358702302,
-0.013003792613744736,
-0.0016070551937445998,
-0.017295412719249725,
-0.09828362613916397,
-0.03606434538960457,
-0.06516631692647934,
0.012626203708350658,
0.00395086919888854,
-0.04144268482923508,
0.01428391132503748,
0.05492537096142769,
-0.07684394717216492,
0.01412735041230917,
-0.012423595413565636,
-0.06347177177667618,
-0.09555761516094208,
-0.017719049006700516,
-0.02153177559375763,
0.028586242347955704,
0.03759311884641647,
0.02269217185676098,
0.005659228656440973,
-0.062366634607315063,
-0.07551778107881546,
-0.01043434627354145,
0.0382746197283268,
0.033688295632600784,
-0.02856782265007496,
0.04615794122219086,
0.036819521337747574,
-0.014072093181312084,
0.027370590716600418,
0.01428391132503748,
-0.04888394847512245,
-0.011907864362001419,
0.03138592466711998,
-0.037556279450654984,
-0.045273829251527786,
0.004788932390511036,
-0.08222228288650513,
0.046821024268865585,
-0.010167271830141544,
0.053046632558107376,
0.02248956263065338,
-0.044279202818870544,
0.038200944662094116,
0.03278576582670212,
-0.01289327908307314,
0.028309958055615425,
-0.046747345477342606,
-0.013556362129747868,
0.021513357758522034,
0.03553019464015961,
0.016282370314002037,
0.026910115033388138,
-0.018695255741477013,
-0.06295604258775711,
-0.013814227655529976,
-0.07581248134374619,
-0.017074385657906532,
-0.04339509457349777,
0.054704342037439346,
-0.001283571938984096,
-0.0742284506559372,
0.04228995740413666,
0.038090430200099945,
-0.005981560796499252,
0.024368297308683395,
0.05190465971827507,
-0.0012168032117187977,
0.006593991536647081,
0.016798101365566254,
-0.015748219564557076,
-0.02976505644619465,
0.003810424590483308,
0.027039049193263054,
0.047447267919778824,
-0.060929954051971436,
-0.033264659345149994,
-0.036543235182762146,
-0.00929697509855032,
-0.017138851806521416,
-0.014440472237765789,
-0.03926924616098404,
0.03794308006763458,
0.024939285591244698,
0.06409801542758942,
0.0017935471842065454,
0.004349179565906525,
-0.032951537519693375,
-0.03188323602080345,
0.022784266620874405,
-0.005396758206188679,
-0.02329999767243862,
0.03597224876284599,
-0.028530985116958618,
0.04074276238679886,
-0.02899145893752575,
-0.004664604086428881,
0.009062133729457855,
0.011309247463941574,
0.00039255429874174297,
-0.06070892512798309,
0.05426228791475296,
-0.04932600259780884,
-0.044426556676626205,
0.0007379099843092263,
0.0320858471095562,
-0.0359354093670845,
-0.002689169719815254,
0.017645373940467834,
0.008638497442007065,
0.02698379196226597,
0.03790624067187309,
-0.03392774239182472,
0.020463475957512856,
-0.036819521337747574,
0.04560536891222,
0.00871677789837122,
-0.003948566969484091,
-0.018188733607530594,
-0.019082052633166313,
-0.058498650789260864,
-0.007745177019387484,
-0.018916282802820206,
0.0055441102012991905,
-0.017986124381422997,
0.03764837607741356,
-0.003964683506637812,
-0.0053046634420752525,
-0.07054465264081955,
0.03374355286359787,
-0.020242448896169662,
0.019818812608718872,
-0.002960849553346634,
-0.020702922716736794,
0.001384876319207251,
-0.005134287755936384,
0.039637625217437744,
-0.03276734799146652,
-0.04236363247036934,
-0.03293311968445778,
0.05278876796364784,
0.0012847231701016426,
-0.04542117938399315,
-0.038827188313007355,
0.011502646841108799,
-0.033725135028362274,
0.06549786031246185,
0.0463789664208889,
0.05275193229317665,
0.03315414488315582,
0.06151936203241348,
0.012681460939347744,
-0.006957766134291887,
-0.038716673851013184,
-0.0291756484657526,
0.002240207279101014,
-0.041184816509485245,
0.018879445269703865,
0.021863317117094994,
-0.020592408254742622,
0.025418179109692574,
0.020850274711847305,
-0.026928534731268883,
0.020739760249853134,
-0.0018488041823729873,
0.03532758355140686,
0.00026808236725628376,
0.026946954429149628,
0.0008179174037650228,
0.01634683646261692,
0.08450623601675034,
-0.006027608178555965,
-0.0016703703440725803,
0.04612110182642937,
-0.028088929131627083,
-0.02705746702849865,
0.04862608015537262,
-0.013998417183756828,
0.03451715037226677,
0.013998417183756828,
-0.016549445688724518,
-0.03989548981189728,
0.005000750534236431,
0.027296913787722588,
0.049804896116256714,
0.03702212870121002,
-0.04372663423418999,
0.0027098909486085176,
0.009679168462753296,
-0.004807351157069206,
-0.005111264064908028,
0.022139601409435272,
0.016088970005512238,
0.01712043210864067,
0.014523358084261417,
-0.009195670485496521,
-0.023668376728892326,
0.04089011251926422,
-0.021623870357871056,
0.020923949778079987,
-0.015665333718061447,
-0.015057507902383804,
-0.041958414018154144,
0.02276584692299366,
0.0004927074769511819,
-0.024607744067907333,
-0.009016086347401142,
-0.01205521635711193,
0.009370651096105576,
-0.06756078451871872,
-0.023373672738671303,
0.03022553026676178,
-0.018022961914539337,
-0.04486861079931259,
-0.0004558695072773844,
0.0017256272258237004,
0.023834148421883583,
0.009669959545135498,
-0.0018108150688931346,
0.06310339272022247,
-0.013270867988467216,
0.0041511752642691135,
-0.026725925505161285,
-0.07168663293123245,
0.005723694805055857,
-0.023631539195775986,
-0.02565762586891651,
-0.004013033118098974,
-0.020463475957512856,
0.005475039128214121,
-0.008016856387257576,
-0.022821104153990746,
-0.014652291312813759,
-0.012985373847186565,
0.10417769849300385,
-0.038090430200099945,
-0.004968517459928989,
0.04553169384598732,
-0.04586323723196983,
0.018105847761034966,
-0.024073593318462372,
0.1290801465511322,
0.06991840898990631,
0.015702171251177788,
0.010388298891484737,
-0.0560305081307888,
-0.05039430409669876,
-0.03416718915104866,
-0.03486711159348488,
-0.035732802003622055,
0.00493628391996026,
0.038827188313007355,
-0.042768847197294235,
-0.011852607131004333,
0.02129232883453369,
-0.03508813679218292,
0.0038702860474586487,
-0.024165688082575798,
0.02713114395737648,
-0.005327687133103609,
-0.02175280451774597,
-0.0312938317656517,
0.019339919090270996,
0.04726307839155197,
0.03420402854681015,
0.064945288002491,
-0.0927579328417778,
0.005028378684073687,
0.00009274238982470706,
0.009688378311693668,
0.02210276387631893,
0.016632329672574997,
-0.062403470277786255,
0.017921658232808113,
-0.038164105266332626,
-0.021458100527524948,
0.0031404343899339437,
0.04586323723196983,
-0.006322311703115702,
0.008477331139147282,
0.04722623899579048,
0.03831145912408829,
0.04298987612128258,
0.0011264351196587086,
0.012478852644562721,
-0.036303792148828506,
-0.06509263813495636,
0.009725215844810009,
-0.08111714571714401,
0.012690670788288116,
0.025491854175925255,
-0.03553019464015961,
0.012847231701016426,
-0.027720550075173378,
-0.04781564697623253,
-0.04004283994436264,
-0.009310789406299591,
0.062292955815792084,
0.00995545368641615,
-0.029544027522206306,
-0.013510314747691154,
-0.030280787497758865,
0.0009629667620174587,
0.07106038928031921,
-0.0047751180827617645,
-0.05057849362492561,
0.05794608220458031,
0.04770513251423836,
0.03471975773572922,
-0.00815499946475029,
-0.004779723007231951,
0.0158403143286705,
0.021587032824754715,
-0.02740742824971676,
0.05444647744297981,
-0.006630829069763422,
-0.03560386970639229,
0.00038535939529538155,
-0.019874069839715958,
0.04888394847512245,
-0.0016669167671352625,
0.004839584231376648,
-0.032288454473018646,
0.013519524596631527,
0.02702062949538231,
0.02392624318599701,
0.02698379196226597,
0.025215569883584976,
-0.007270888425409794,
0.0023323020432144403,
-0.01800454407930374,
0.031091222539544106,
-0.011272409930825233,
-0.049878571182489395,
0.03923240676522255,
0.054667502641677856,
-0.01774667762219906,
0.04575272276997566,
0.022397467866539955,
0.05418860912322998,
-0.029691379517316818,
0.0328594446182251,
-0.04962070658802986,
-0.028586242347955704,
0.02698379196226597,
-0.00033931195503100753,
0.032177940011024475,
-0.059898491948843,
-0.011935492977499962,
0.0413690060377121,
0.024681420996785164,
-0.004254782106727362,
0.013814227655529976,
0.017949286848306656,
-0.019413594156503677,
-0.028788849711418152,
-0.025326084345579147,
0.013768180273473263,
0.02825470082461834,
0.09231588244438171,
-0.023244740441441536,
-0.019818812608718872,
-0.022747429087758064,
-0.03674584627151489,
-0.002689169719815254,
-0.011392133310437202,
-0.0054243868216872215,
0.004834979772567749,
-0.0007643872522749007,
-0.031827978789806366,
-0.002721402794122696,
-0.01513118389993906,
-0.010056757368147373,
0.003474278375506401,
0.03742734715342522,
-0.004008428193628788,
0.004056778270751238,
0.010581698268651962,
0.06560837477445602,
0.02118181623518467,
-0.03908505663275719,
0.022084346041083336,
0.026799602434039116,
-0.01796770468354225,
0.023594701662659645,
-0.020537151023745537,
-0.007501125801354647,
0.05883019044995308,
-0.0037689819000661373,
0.039637625217437744,
-0.04324774071574211,
0.006382173392921686,
0.04726307839155197,
-0.00014181168808136135,
0.024920865893363953,
0.03459082543849945,
0.019026795402169228,
-0.008859524503350258,
-0.04615794122219086,
0.0374826043844223,
-0.013427428901195526,
-0.10896662622690201,
0.024073593318462372,
-0.0862007811665535,
-0.0002064939180854708,
0.005852628033608198,
0.012202567420899868,
-0.07455999404191971,
0.014237863942980766,
-0.016752053052186966,
-0.012451224029064178,
-0.04608426243066788,
-0.07039730250835419,
0.023336835205554962,
0.0077359676361083984,
-0.0024842587299644947,
-0.0102409478276968,
0.010323832742869854,
0.02129232883453369,
-0.03293311968445778,
-0.0591248944401741,
0.027996834367513657,
-0.03560386970639229,
-0.005967746488749981,
0.04777880758047104,
0.011834188364446163,
0.01812426745891571,
-0.03390932455658913,
0.033301498740911484,
0.07013943791389465,
-0.026265451684594154,
-0.00969758816063404,
0.0010504568926990032,
0.03072284162044525,
-0.0030368277803063393,
-0.0784648135304451,
0.06509263813495636,
0.07249706983566284,
0.01441284455358982,
0.006962370593100786,
-0.03197533264756203,
0.04147952049970627,
0.03155169636011124,
-0.0070866988971829414,
-0.060966793447732925,
-0.017636163160204887,
0.052273038774728775,
0.016107389703392982,
-0.04324774071574211,
0.0311096403747797,
-0.028973041102290154,
0.027223238721489906,
0.0013503407826647162,
0.04534750431776047,
0.008187232539057732,
-0.017295412719249725,
-0.008656916208565235,
-0.054593827575445175,
-0.029728218913078308,
0.041074302047491074,
-0.017921658232808113,
-0.04895762354135513,
0.03989548981189728,
0.03050181455910206,
0.04696837440133095,
0.04711572453379631,
0.0738232359290123,
0.0548885315656662,
0.042953040450811386,
0.015048298984766006,
0.02132916823029518,
0.010756678879261017,
0.022673752158880234,
-0.05897754430770874,
-0.03985865041613579,
0.00012368051102384925,
-0.057577699422836304,
-0.023705214262008667,
-0.015619286336004734,
-0.03560386970639229,
0.03694845363497734,
0.05584631860256195,
-0.024920865893363953,
0.0014263190096244216,
0.015573238953948021,
0.00260398187674582,
0.009135808795690536,
-0.027959996834397316,
0.02646806091070175,
-0.015241698361933231,
0.06196141615509987,
0.039563946425914764,
0.015527191571891308,
0.030022921040654182,
-0.06560837477445602,
0.015048298984766006,
0.03138592466711998,
0.03536442294716835,
0.035769641399383545,
0.07669658958911896,
0.05562528967857361,
0.03996916487812996,
-0.03483027219772339,
-0.027241656556725502,
0.10329358279705048,
-0.006138121709227562,
-0.0108211450278759,
0.040521733462810516,
0.02121865376830101,
0.029323000460863113,
-0.006897904444485903,
0.019376756623387337,
-0.0012547923251986504,
0.029396677389740944,
-0.007146560586988926,
0.007040651515126228,
-0.007455078419297934,
-0.007846481166779995,
0.022673752158880234,
0.011797350831329823,
-0.015287745743989944,
0.03715106472373009,
-0.002921709092333913,
-0.0796436294913292,
-0.035843316465616226,
0.047410428524017334,
0.0336146205663681,
-0.009946243837475777,
-0.013040631078183651,
0.03390932455658913,
0.005783556494861841,
-0.012432805262506008,
-0.01843738928437233,
0.04648948088288307,
0.010167271830141544,
0.021016044542193413,
-0.034885529428720474,
-0.028346795588731766,
0.05319398641586304,
-0.07949627935886383,
-0.020076677203178406,
0.02558394894003868,
-0.02779422700405121,
-0.049768056720495224,
0.05175730586051941,
-0.08170655369758606,
0.03331991657614708,
-0.01731383241713047,
0.02980189397931099,
-0.030207110568881035,
0.028530985116958618,
0.012184148654341698,
0.00457941647619009,
-0.0017981519922614098,
-0.04225311800837517,
-0.04416869208216667,
-0.006980789825320244,
-0.006713714450597763,
-0.00788792409002781,
-0.08259066194295883,
-0.020537151023745537,
0.05503588169813156,
0.03989548981189728,
0.005783556494861841,
-0.039637625217437744,
-0.0299492459744215,
-0.007123536895960569,
-0.04774197190999985,
-0.03768521174788475,
0.030483396723866463,
-0.013694504275918007,
-0.02188173681497574,
0.043431930243968964,
-0.03451715037226677,
0.05249406397342682,
0.00395317142829299,
-0.03645114228129387,
-0.011594741605222225,
0.02565762586891651,
-0.022010669112205505,
-0.0054289912804961205,
-0.009890986606478691,
-0.004830374848097563,
0.03624853491783142,
0.00958707369863987,
-0.05765137821435928,
0.010139643214643002,
0.003621630137786269,
-0.013390591368079185,
0.01774667762219906,
-0.04630529135465622,
-0.020297706127166748,
-0.025768140330910683,
0.012589366175234318,
0.04696837440133095,
-0.021310748532414436,
-0.08841105550527573,
-0.024865610525012016,
-0.1240701824426651,
0.007183398585766554,
0.018842605873942375,
0.03011501580476761,
-0.015821894630789757,
-0.015361420810222626,
-0.06767129898071289,
-0.021844899281859398,
0.004742885008454323,
0.01124478131532669,
0.02462616376578808,
0.0197082981467247,
-0.04262149706482887,
-0.07334434241056442,
0.009034505113959312,
0.03433296084403992,
0.0028825688641518354,
-0.01808742806315422,
-0.0637664720416069,
-0.025068217888474464,
0.06966054439544678,
0.03436980023980141,
-0.013952369801700115,
-0.008689149282872677,
0.008965433575212955,
0.0020456567872315645,
-0.002475049113854766,
-0.029967663809657097,
-0.016024503856897354,
0.02230537310242653,
0.055441100150346756,
0.06041422113776207,
-0.027738969773054123,
-0.07323382794857025,
0.015306164510548115,
0.09798891842365265,
0.02740742824971676,
0.0030575490090996027,
0.027702130377292633,
-0.003518023295328021,
-0.05440963804721832,
-0.01967146061360836,
-0.007188003044575453,
-0.053009796887636185,
0.030557071790099144,
0.025841815397143364,
-0.03589857369661331,
-0.04070592299103737,
0.011327667161822319,
0.0041051278822124004,
0.03236212953925133,
0.04089011251926422,
0.02051873318850994,
0.04951019212603569,
0.07087619602680206,
-0.030704423785209656,
-0.02554711140692234,
0.08568505197763443,
0.01727699488401413,
-0.10174639523029327,
0.04659999534487724,
0.0025441201869398355,
-0.0023403603117913008,
-0.03923240676522255,
-0.024073593318462372,
0.04479493573307991,
-0.020150354132056236,
0.019800392910838127,
0.023668376728892326,
-0.04413185268640518,
-0.08185390383005142,
0.016650749370455742,
-0.015425887890160084,
0.018225571140646935,
0.01847422681748867,
-0.09518923610448837,
-0.00002059543112409301,
0.023134225979447365,
0.0005894070491194725,
-0.033798810094594955,
0.050615329295396805,
0.053746555000543594,
-0.0653136670589447,
0.02013193443417549,
0.04416869208216667,
-0.012948536314070225,
-0.03715106472373009,
0.0018810373730957508,
0.08760062605142593,
0.00171756895724684,
0.0013641549739986658,
-0.07444947957992554,
-0.024681420996785164,
0.06527683138847351,
-0.01314193569123745,
0.008859524503350258,
0.026228614151477814,
0.0160429235547781,
0.00917725171893835,
-0.007298517040908337,
-0.02051873318850994,
0.03512497618794441,
-0.05326766148209572,
0.038127269595861435,
-0.0057513234205543995,
-0.06225612014532089,
-0.05794608220458031,
-0.03702212870121002,
-0.06266133487224579,
0.03915873169898987,
-0.039711300283670425,
0.038716673851013184,
0.05160995572805405,
-0.004139663651585579,
-0.00844509806483984,
-0.006354544777423143,
0.00917725171893835,
-0.009204880334436893,
-0.0022666845470666885,
0.014136559329926968,
-0.010333042591810226,
0.03050181455910206,
-0.02304213121533394,
0.003269367152824998,
-0.01766379177570343,
0.0583512969315052,
0.02346576750278473,
0.0262838713824749,
-0.023355254903435707,
0.014808852225542068,
-0.03540126234292984,
-0.000014398814528249204,
-0.06048789992928505,
-0.005051402375102043,
-0.06612410396337509,
0.03107280284166336,
-0.056914616376161575,
-0.007109722588211298,
0.041074302047491074,
0.08200125396251678,
-0.00981731154024601
] |
17,607 | imodels.rule_list.one_r | fit | Fit oneR
| def fit(self, X, y, feature_names=None):
"""Fit oneR
"""
X, y, feature_names = check_fit_arguments(self, X, y, feature_names)
ms = []
accs = np.zeros(X.shape[1])
for col_idx in range(X.shape[1]):
x = X[:, col_idx].reshape(-1, 1)
m = GreedyRuleListClassifier(max_depth=self.max_depth, class_weight=self.class_weight,
criterion=self.criterion)
feat_names_single = [self.feature_names_[col_idx]]
m.fit(x, y, feature_names=feat_names_single)
accs[col_idx] = np.mean(m.predict(x) == y)
ms.append(m)
# print('acc', feat_names_single[0], f'{accs[col_idx]:0.2f}')
col_idx_best = np.argmax(accs)
self.rules_ = ms[col_idx_best].rules_
self.complexity_ = len(self.rules_)
# need to adjust index_col since was fitted with only 1 col
for rule in self.rules_:
if 'index_col' in rule:
rule['index_col'] += col_idx_best
self.depth = len(self.rules_)
return self
| (self, X, y, feature_names=None) | [
-0.03502005711197853,
-0.022939065471291542,
0.004785148426890373,
0.013544795103371143,
0.012182904407382011,
-0.0130815664306283,
-0.005183524452149868,
-0.02377287484705448,
0.03185157850384712,
0.012395989149808884,
-0.012090258300304413,
0.0073745944537222385,
0.02169761247932911,
0.027330469340085983,
0.007911939173936844,
-0.004189899656921625,
0.00448404997587204,
0.023365234956145287,
-0.027108119800686836,
0.03274097666144371,
0.0020451529417186975,
-0.019566763192415237,
-0.0025199619121849537,
0.02538491040468216,
-0.001313252141699195,
-0.008078700862824917,
0.048842791467905045,
0.004831471014767885,
-0.02027086913585663,
-0.0013838944723829627,
-0.07811881601810455,
-0.026663420721888542,
-0.07604355365037918,
-0.001411688164807856,
-0.021808788180351257,
-0.05358624830842018,
0.013609646819531918,
0.04787927493453026,
-0.012155110016465187,
-0.07393123209476471,
-0.019900286570191383,
-0.031740400940179825,
-0.013544795103371143,
0.010320725850760937,
-0.04780516028404236,
-0.0008523400756530464,
-0.023420821875333786,
0.07848940044641495,
0.0025871300604194403,
-0.07708118855953217,
-0.0373176708817482,
-0.04635988548398018,
0.01628710702061653,
0.038503535091876984,
0.007203199900686741,
0.056180328130722046,
0.015953581780195236,
0.03055453859269619,
0.033259790390729904,
-0.05825559049844742,
0.011488061398267746,
-0.021882904693484306,
0.004947278182953596,
0.022105254232883453,
0.015508882701396942,
-0.03055453859269619,
-0.06537077575922012,
0.02762693539261818,
0.012423782609403133,
0.03127717226743698,
-0.02544049732387066,
-0.025607259944081306,
0.04995453730225563,
0.010561604984104633,
-0.005507784429937601,
0.02753428928554058,
-0.06036791205406189,
-0.034705061465501785,
0.04524813964962959,
-0.015119771473109722,
-0.018121490254998207,
0.05054746940732002,
-0.007235625758767128,
-0.07296772301197052,
-0.05595797672867775,
-0.04380286857485771,
0.03429742157459259,
0.008745750412344933,
0.0297207273542881,
-0.03891117498278618,
-0.014230373315513134,
0.02910926565527916,
0.020585864782333374,
0.029442789033055305,
0.02317994274199009,
0.05125157907605171,
-0.03741031512618065,
0.018556924536824226,
0.007138347718864679,
-0.03809589520096779,
-0.060071446001529694,
0.02532932348549366,
0.010153964161872864,
0.09968672692775726,
-0.03681738302111626,
-0.0028720153495669365,
0.0015078081050887704,
-0.00298319011926651,
-0.029350144788622856,
0.007457975298166275,
-0.10272550582885742,
0.017324738204479218,
0.04724928364157677,
0.015017861500382423,
-0.01677812822163105,
-0.02471786178648472,
-0.06818720698356628,
-0.0048777940683066845,
-0.03931881859898567,
0.022827889770269394,
0.0673719197511673,
0.03798472136259079,
-0.025533143430948257,
-0.01641681045293808,
-0.015305062755942345,
-0.01196055393666029,
0.036910030990839005,
0.017148710787296295,
0.048138681799173355,
-0.06381432712078094,
-0.002770105144008994,
0.029424261301755905,
-0.006309169344604015,
0.013896849006414413,
-0.008889351040124893,
-0.03403801470994949,
-0.006049761548638344,
-0.051177460700273514,
0.011395416222512722,
-0.050325121730566025,
0.0667419284582138,
-0.0055865333415567875,
0.052585676312446594,
-0.031054824590682983,
0.03965234011411667,
-0.0003691350284498185,
0.0022049667313694954,
0.016944890841841698,
0.015138300135731697,
-0.0019548232667148113,
-0.020622923970222473,
-0.014461986720561981,
0.04758280888199806,
-0.047953393310308456,
0.00033352436730638146,
0.04843514785170555,
-0.03335243836045265,
-0.001248400192707777,
-0.00875964667648077,
-0.027460172772407532,
-0.026348425075411797,
-0.05614326894283295,
-0.06629723310470581,
0.023680230602622032,
0.022216428071260452,
0.012062464840710163,
-0.03653944656252861,
0.012859216891229153,
-0.008852292783558369,
0.012164374813437462,
0.03498300164937973,
-0.06444431841373444,
-0.045062847435474396,
0.01264613214880228,
-0.033778607845306396,
0.059293221682310104,
-0.016333429142832756,
0.03133276104927063,
0.015332856215536594,
0.07152244448661804,
0.05877440422773361,
-0.05025100335478783,
-0.013164947740733624,
-0.09605501592159271,
0.006790926679968834,
0.032370392233133316,
0.03748443350195885,
-0.009866762906312943,
-0.028090164065361023,
0.05058452859520912,
-0.004451623652130365,
-0.03968939930200577,
0.0003323662967886776,
0.011367621831595898,
-0.00335145671851933,
-0.01748223602771759,
-0.004435410723090172,
0.044284623116254807,
0.03737325966358185,
0.005540210288017988,
-0.048138681799173355,
0.016963420435786247,
0.044432856142520905,
0.006545415613800287,
-0.03559446334838867,
0.03681738302111626,
-0.019640879705548286,
0.017417384311556816,
-0.015796083956956863,
-0.016972685232758522,
0.007763706147670746,
0.004602172877639532,
-0.04080114886164665,
0.0446922667324543,
0.04713810980319977,
0.015879465267062187,
0.004595224745571613,
-0.022123783826828003,
0.03233333304524422,
-0.015082713216543198,
-0.00858825258910656,
-0.052548617124557495,
-0.010821012780070305,
0.012006876990199089,
0.054735053330659866,
-0.06915071606636047,
0.03288920968770981,
-0.0074162851087749004,
0.023680230602622032,
-0.02970219776034355,
-0.00033699857885949314,
-0.09294212609529495,
0.06492608040571213,
-0.03650238737463951,
-0.006253581959754229,
0.004430778790265322,
0.014082140289247036,
0.04324699193239212,
-0.06774250417947769,
0.008597517386078835,
-0.021308500319719315,
-0.0005390819278545678,
-0.04339522495865822,
-0.013313180766999722,
0.003335243556648493,
0.054068006575107574,
0.053252723067998886,
0.01155291311442852,
-0.014054345898330212,
-0.019566763192415237,
-0.025625789538025856,
0.00823619868606329,
-0.00617946544662118,
-0.041357021778821945,
-0.03522387892007828,
-0.12110640108585358,
-0.02471786178648472,
0.008991261012852192,
0.016203725710511208,
-0.019548233598470688,
0.026255778968334198,
0.061516717076301575,
-0.01417478546500206,
0.011173066683113575,
-0.049546897411346436,
0.04313581809401512,
0.011812320910394192,
0.02536638081073761,
0.0048777940683066845,
0.00403240229934454,
-0.011024833656847477,
0.015666380524635315,
-0.021753201261162758,
0.008277889341115952,
-0.030221013352274895,
0.08545635640621185,
-0.028053104877471924,
-0.025792550295591354,
0.010033524595201015,
0.006670487113296986,
0.04635988548398018,
-0.04194995388388634,
-0.004099570214748383,
0.026404011994600296,
-0.027960458770394325,
0.04043056443333626,
-0.026626361533999443,
0.005711604841053486,
-0.028942503035068512,
-0.006689016241580248,
0.03450124338269234,
-0.003212488256394863,
0.07163362205028534,
0.023420821875333786,
0.06492608040571213,
0.001717418897897005,
0.060886725783348083,
-0.03294479474425316,
0.02684871107339859,
0.010876600630581379,
-0.007532091811299324,
0.015508882701396942,
0.01002425979822874,
-0.05273390933871269,
-0.019937345758080482,
-0.06122025102376938,
0.00007925546378828585,
0.005785721354186535,
0.002170224441215396,
0.021919962018728256,
0.027348998934030533,
0.07885998487472534,
0.009505444206297398,
-0.00785635132342577,
-0.06329551339149475,
-0.02532932348549366,
0.018121490254998207,
0.017000477761030197,
0.06411079317331314,
0.022086724638938904,
-0.04232053458690643,
-0.006614899728447199,
0.015110506676137447,
-0.06507430970668793,
0.002582497661933303,
0.02017822489142418,
0.03820706903934479,
0.0015251791337504983,
-0.04673046991229057,
-0.028627507388591766,
0.021160267293453217,
-0.05795912444591522,
0.021919962018728256,
0.015305062755942345,
-0.02747870236635208,
0.03440859541296959,
0.045099906623363495,
0.027793698012828827,
0.04043056443333626,
-0.00048291549319401383,
-0.010348520241677761,
0.0259963721036911,
-0.036242980509996414,
0.018325310200452805,
-0.018121490254998207,
-0.0015819246182218194,
0.0065176221542060375,
0.03674326837062836,
0.04673046991229057,
0.02914632298052311,
-0.023346705362200737,
-0.04684164375066757,
0.06203553080558777,
0.04028233140707016,
0.04784221574664116,
0.03805883601307869,
-0.05918204411864281,
0.03272244706749916,
0.042950525879859924,
-0.07163362205028534,
-0.006230420432984829,
-0.06466666609048843,
-0.05836676433682442,
0.05080687999725342,
-0.0019965139217674732,
0.008500238880515099,
-0.03231480345129967,
0.060886725783348083,
0.03865176811814308,
-0.08323285728693008,
-0.029553964734077454,
-0.011673352681100368,
-0.023587584495544434,
0.012006876990199089,
-0.01571270264685154,
0.03440859541296959,
0.012294079177081585,
0.036187395453453064,
0.033296849578619,
-0.014267431572079659,
-0.022920535877346992,
0.034000955522060394,
0.00969073548913002,
-0.01040410716086626,
-0.01524947490543127,
-0.01927029713988304,
-0.028942503035068512,
-0.04724928364157677,
0.04194995388388634,
-0.010209551081061363,
0.07044775784015656,
-0.006809455808252096,
-0.0336303748190403,
-0.023420821875333786,
-0.06815014779567719,
0.027089590206742287,
0.03737325966358185,
0.04839809238910675,
-0.09197860956192017,
-0.002170224441215396,
-0.03566857799887657,
-0.042098186910152435,
-0.02325405925512314,
0.020344985648989677,
-0.05514269694685936,
0.01611107960343361,
0.025903725996613503,
0.037688251584768295,
-0.031703345477581024,
0.058626171201467514,
-0.041987013071775436,
0.04554460570216179,
0.05299331620335579,
0.008481710217893124,
-0.07556179910898209,
0.05058452859520912,
0.041468195617198944,
0.03214804455637932,
0.06033085286617279,
0.0447663813829422,
0.045878130942583084,
-0.006790926679968834,
-0.04109761491417885,
0.04535931348800659,
-0.022846419364213943,
-0.0077173830941319466,
-0.047953393310308456,
-0.03450124338269234,
-0.033241260796785355,
-0.033926840871572495,
-0.08419637382030487,
-0.05725501477718353,
-0.048768673092126846,
-0.07170774042606354,
-0.062146708369255066,
-0.027423115447163582,
-0.03972645848989487,
0.026292838156223297,
-0.015620057471096516,
-0.020382044836878777,
0.021067623049020767,
-0.012581280432641506,
0.017454441636800766,
0.020993506535887718,
-0.01927029713988304,
-0.044432856142520905,
0.007295845542103052,
-0.0112101249396801,
-0.14297078549861908,
-0.03407507389783859,
0.03679885342717171,
0.025051385164260864,
0.04298758506774902,
0.037595607340335846,
0.009097803384065628,
0.021845845505595207,
0.0005399504443630576,
-0.01448051631450653,
0.05910792946815491,
0.01816781423985958,
0.03928175941109657,
0.013127889484167099,
0.04539637267589569,
0.03509417548775673,
-0.08063878118991852,
-0.009343314915895462,
-0.004882426001131535,
0.02453256957232952,
-0.02686724066734314,
-0.030091309919953346,
0.006248949561268091,
-0.042135246098041534,
-0.01225702092051506,
-0.05910792946815491,
-0.04328405112028122,
0.06107201799750328,
0.05736619234085083,
-0.002960028825327754,
0.05280802398920059,
-0.006841881666332483,
0.02251289412379265,
-0.030221013352274895,
0.035390641540288925,
-0.03409360349178314,
0.04624871164560318,
0.03055453859269619,
-0.019752053543925285,
-0.07589532434940338,
-0.06018261983990669,
0.026570774614810944,
-0.024791978299617767,
-0.0008812918094918132,
0.03133276104927063,
0.03279656171798706,
-0.019826170057058334,
0.01829751767218113,
0.05595797672867775,
0.02380993403494358,
0.01490668673068285,
-0.017834288999438286,
0.0074162851087749004,
-0.021938491612672806,
-0.08730927109718323,
-0.01379493810236454,
0.01740811951458454,
-0.021067623049020767,
-0.0522521510720253,
0.00016849928942974657,
-0.08604928851127625,
0.03861470893025398,
-0.04339522495865822,
-0.0522892102599144,
0.022772302851080894,
0.045841071754693985,
0.021252913400530815,
0.023698758333921432,
0.05747736617922783,
0.016574308276176453,
-0.021289972588419914,
0.026311365887522697,
0.012544222176074982,
0.008602148853242397,
0.035279467701911926,
-0.01411919854581356,
0.0034765282180160284,
0.08701280504465103,
0.045174021273851395,
0.014730659313499928,
0.07804470509290695,
0.0028534862212836742,
0.04547048732638359,
0.0025963946245610714,
-0.014758452773094177,
0.054809171706438065,
0.006508357357233763,
0.010904394090175629,
0.03268538787961006,
-0.021475262939929962,
0.0011308561079204082,
-0.008120391517877579,
0.00822693482041359,
-0.00577645655721426,
0.042839352041482925,
0.0007764864130876958,
-0.009046848863363266,
-0.008129656314849854,
0.01717650517821312,
-0.012118051759898663,
-0.0027330468874424696,
-0.001717418897897005,
-0.02001146227121353,
-0.008365903049707413,
-0.001913132844492793,
0.03429742157459259,
0.04799044877290726,
-0.00289980904199183,
-0.005016762297600508,
0.00968147162348032,
0.04639694467186928,
0.01802884414792061,
-0.011312034912407398,
-0.022160841152071953,
0.06996600329875946,
-0.029405731707811356,
0.012006876990199089,
-0.00047220333362929523,
-0.010997039265930653,
0.0375400185585022,
-0.056291501969099045,
0.00632306607440114,
-0.016935626044869423,
0.05725501477718353,
-0.07133715599775314,
-0.009922349825501442,
-0.04839809238910675,
0.0054105063900351524,
0.018482808023691177,
-0.03496447205543518,
-0.07055893540382385,
0.008430754765868187,
-0.015008596703410149,
-0.034779179841279984,
0.02455109916627407,
-0.06800191104412079,
0.005887631326913834,
0.007925836369395256,
-0.02905367873609066,
0.04776810109615326,
-0.05655090883374214,
0.015305062755942345,
-0.01578681915998459,
0.0059293219819664955,
0.011339828372001648,
-0.057847946882247925,
-0.009913085028529167,
0.044284623116254807,
-0.05076982080936432,
-0.04624871164560318,
0.003048042068257928,
-0.004993600770831108,
-0.021382616832852364,
-0.0026890402659773827,
-0.010626456700265408,
-0.010552340187132359,
0.013711557723581791,
-0.013285387307405472,
-0.07067010551691055,
0.012924069538712502,
0.02230907417833805,
-0.019585292786359787,
-0.015193887986242771,
0.015369914472103119,
0.039022352546453476,
-0.008375167846679688,
-0.055439162999391556,
0.025736963376402855,
-0.011358357965946198,
0.03965234011411667,
0.01155291311442852,
-0.002760840579867363,
0.026978416368365288,
-0.005155730992555618,
-0.003680348629131913,
0.0035599092952907085,
-0.016972685232758522,
0.012006876990199089,
-0.013507736846804619,
-0.05669914186000824,
0.006587106268852949,
0.042802292853593826,
-0.019010888412594795,
-0.021771728992462158,
0.009774116799235344,
-0.025514613837003708,
0.0523262657225132,
0.007105921860784292,
0.006448137573897839,
0.03429742157459259,
-0.01795472763478756,
-0.05736619234085083,
-0.0667048767209053,
0.013331710360944271,
0.0519556850194931,
0.016314899548888206,
-0.03596504405140877,
-0.022846419364213943,
-0.034000955522060394,
0.01491595059633255,
0.10598663240671158,
-0.006971585564315319,
-0.016203725710511208,
0.009028319269418716,
-0.0333709642291069,
0.017704585567116737,
0.07015129178762436,
0.0038586915470659733,
-0.04009703919291496,
0.021123209968209267,
-0.010709838010370731,
-0.050362180918455124,
-0.01155291311442852,
-0.024273162707686424,
0.0972408801317215,
-0.0375400185585022,
-0.03679885342717171,
0.03188863396644592,
0.021067623049020767,
-0.027386056259274483,
-0.04535931348800659,
0.03876294195652008,
-0.08805043250322342,
-0.001390842953696847,
-0.005419771187007427,
0.018455015495419502,
0.014452722854912281,
-0.033204205334186554,
-0.03587239980697632,
-0.04839809238910675,
0.0037452008109539747,
0.017908405512571335,
0.04187583550810814,
0.04028233140707016,
0.002177173038944602,
0.013063037768006325,
0.04613753780722618,
0.017352530732750893,
-0.012599809095263481,
0.028201337903738022,
0.009227507747709751,
-0.014545368030667305,
-0.020511748269200325,
-0.015684910118579865,
0.0817505270242691,
-0.027423115447163582,
-0.017000477761030197,
0.03516829013824463,
-0.04821280017495155,
-0.017565617337822914,
0.0058088828809559345,
-0.00966294202953577,
0.0028928606770932674,
0.023643171414732933,
-0.04376580938696861,
0.01761193946003914,
-0.0013202006230130792,
0.06262846291065216,
-0.030295129865407944,
0.066593699157238,
0.0017834289465099573,
-0.06440725922584534,
-0.0023740450851619244,
0.05903381109237671,
-0.010441165417432785,
0.048916906118392944,
-0.014499044977128506,
-0.004090305883437395,
0.0595155693590641,
0.010876600630581379,
-0.0014672755496576428,
0.020993506535887718,
0.05006571486592293,
0.006804823409765959,
0.03653944656252861,
0.007958262227475643,
-0.006304536946117878,
0.0026473496109247208,
0.058403823524713516,
-0.047360461205244064,
0.014230373315513134,
-0.06533371657133102,
0.04269111901521683,
-0.002953080227598548,
-0.006888204719871283,
0.05347507447004318,
0.0012148162350058556,
0.0025848138611763716,
0.047434575855731964,
-0.04528519883751869,
0.05803323909640312,
0.03954116627573967,
-0.04031939059495926,
-0.018455015495419502,
0.012766571715474129,
-0.0007208990282379091,
0.023346705362200737,
0.03598357364535332,
-0.005762559827417135,
0.03954116627573967,
-0.008055539801716805,
-0.03059159591794014,
0.021882904693484306,
-0.0032310173846781254,
0.06941012293100357,
0.05366036295890808,
0.029405731707811356,
-0.0065176221542060375,
-0.003772994503378868,
-0.04031939059495926,
0.0014313753927126527,
-0.03159216791391373,
0.0012194485170766711,
-0.030295129865407944,
-0.030906591564416885,
0.03503858670592308,
-0.01603696309030056,
-0.003520535072311759,
0.08323285728693008,
0.02023381181061268
] |
17,617 | imodels.rule_list.corels_wrapper | OptimalRuleListClassifier | Certifiably Optimal RulE ListS classifier.
This class implements the CORELS algorithm, designed to produce human-interpretable, optimal
rulelists for binary feature data and binary classification. As an alternative to other
tree based algorithms such as CART, CORELS provides a certificate of optimality for its
rulelist given a training set, leveraging multiple algorithmic bounds to do so.
In order to use run the algorithm, create an instance of the `CorelsClassifier` class,
providing any necessary parameters in its constructor, and then call `fit` to generate
a rulelist. `printrl` prints the generated rulelist, while `predict` provides
classification predictions for a separate test dataset with the same features. To determine
the algorithm's accuracy, run `score` on an evaluation dataset with labels.
To save a generated rulelist to a file, call `save`. To load it back from the file, call `load`.
Attributes
----------
c : float, optional (default=0.01)
Regularization parameter. Higher values penalize longer rulelists.
n_iter : int, optional (default=10000)
Maximum number of nodes (rulelists) to search before exiting.
map_type : str, optional (default="prefix")
The type of prefix map to use. Supported maps are "none" for no map,
"prefix" for a map that uses rule prefixes for keys, "captured" for
a map with a prefix's captured vector as keys.
policy : str, optional (default="lower_bound")
The search policy for traversing the tree (i.e. the criterion with which
to order nodes in the queue). Supported criteria are "bfs", for breadth-first
search; "curious", which attempts to find the most promising node;
"lower_bound" which is the objective function evaluated with that rulelist
minus the default prediction error; "objective" for the objective function
evaluated at that rulelist; and "dfs" for depth-first search.
verbosity : list, optional (default=["rulelist"])
The verbosity levels required. A list of strings, it can contain any
subset of ["rulelist", "rule", "label", "minor", "samples", "progress", "mine", "loud"].
An empty list ([]) indicates 'silent' mode.
- "rulelist" prints the generated rulelist at the end.
- "rule" prints a summary of each rule generated.
- "label" prints a summary of the class labels.
- "minor" prints a summary of the minority bound.
- "samples" produces a complete dump of the rules, label, and/or minor data. You must also provide at least one of "rule", "label", or "minor" to specify which data you want to dump, or "loud" for all data. The "samples" option often spits out a lot of output.
- "progress" prints periodic messages as corels runs.
- "mine" prints debug information while mining rules, including each rule as it is generated.
- "loud" is the equivalent of ["progress", "label", "rule", "mine", "minor"].
ablation : int, optional (default=0)
Specifies addition parameters for the bounds used while searching. Accepted
values are 0 (all bounds), 1 (no antecedent support bound), and 2 (no
lookahead bound).
max_card : int, optional (default=2)
Maximum cardinality allowed when mining rules. Can be any value greater than
or equal to 1. For instance, a value of 2 would only allow rules that combine
at most two features in their antecedents.
min_support : float, optional (default=0.01)
The fraction of samples that a rule must capture in order to be used. 1 minus
this value is also the maximum fraction of samples a rule can capture.
Can be any value between 0.0 and 0.5.
References
----------
Elaine Angelino, Nicholas Larus-Stone, Daniel Alabi, Margo Seltzer, and Cynthia Rudin.
Learning Certifiably Optimal Rule Lists for Categorical Data. KDD 2017.
Journal of Machine Learning Research, 2018; 19: 1-77. arXiv:1704.01701, 2017
Examples
--------
| class OptimalRuleListClassifier(GreedyRuleListClassifier if not corels_supported else CorelsClassifier):
"""Certifiably Optimal RulE ListS classifier.
This class implements the CORELS algorithm, designed to produce human-interpretable, optimal
rulelists for binary feature data and binary classification. As an alternative to other
tree based algorithms such as CART, CORELS provides a certificate of optimality for its
rulelist given a training set, leveraging multiple algorithmic bounds to do so.
In order to use run the algorithm, create an instance of the `CorelsClassifier` class,
providing any necessary parameters in its constructor, and then call `fit` to generate
a rulelist. `printrl` prints the generated rulelist, while `predict` provides
classification predictions for a separate test dataset with the same features. To determine
the algorithm's accuracy, run `score` on an evaluation dataset with labels.
To save a generated rulelist to a file, call `save`. To load it back from the file, call `load`.
Attributes
----------
c : float, optional (default=0.01)
Regularization parameter. Higher values penalize longer rulelists.
n_iter : int, optional (default=10000)
Maximum number of nodes (rulelists) to search before exiting.
map_type : str, optional (default="prefix")
The type of prefix map to use. Supported maps are "none" for no map,
"prefix" for a map that uses rule prefixes for keys, "captured" for
a map with a prefix's captured vector as keys.
policy : str, optional (default="lower_bound")
The search policy for traversing the tree (i.e. the criterion with which
to order nodes in the queue). Supported criteria are "bfs", for breadth-first
search; "curious", which attempts to find the most promising node;
"lower_bound" which is the objective function evaluated with that rulelist
minus the default prediction error; "objective" for the objective function
evaluated at that rulelist; and "dfs" for depth-first search.
verbosity : list, optional (default=["rulelist"])
The verbosity levels required. A list of strings, it can contain any
subset of ["rulelist", "rule", "label", "minor", "samples", "progress", "mine", "loud"].
An empty list ([]) indicates 'silent' mode.
- "rulelist" prints the generated rulelist at the end.
- "rule" prints a summary of each rule generated.
- "label" prints a summary of the class labels.
- "minor" prints a summary of the minority bound.
- "samples" produces a complete dump of the rules, label, and/or minor data. You must also provide at least one of "rule", "label", or "minor" to specify which data you want to dump, or "loud" for all data. The "samples" option often spits out a lot of output.
- "progress" prints periodic messages as corels runs.
- "mine" prints debug information while mining rules, including each rule as it is generated.
- "loud" is the equivalent of ["progress", "label", "rule", "mine", "minor"].
ablation : int, optional (default=0)
Specifies addition parameters for the bounds used while searching. Accepted
values are 0 (all bounds), 1 (no antecedent support bound), and 2 (no
lookahead bound).
max_card : int, optional (default=2)
Maximum cardinality allowed when mining rules. Can be any value greater than
or equal to 1. For instance, a value of 2 would only allow rules that combine
at most two features in their antecedents.
min_support : float, optional (default=0.01)
The fraction of samples that a rule must capture in order to be used. 1 minus
this value is also the maximum fraction of samples a rule can capture.
Can be any value between 0.0 and 0.5.
References
----------
Elaine Angelino, Nicholas Larus-Stone, Daniel Alabi, Margo Seltzer, and Cynthia Rudin.
Learning Certifiably Optimal Rule Lists for Categorical Data. KDD 2017.
Journal of Machine Learning Research, 2018; 19: 1-77. arXiv:1704.01701, 2017
Examples
--------
"""
def __init__(self, c=0.01, n_iter=10000, map_type="prefix", policy="lower_bound",
verbosity=[], ablation=0, max_card=2, min_support=0.01, random_state=0):
if corels_supported:
super().__init__(c, n_iter, map_type, policy, verbosity, ablation, max_card, min_support)
else:
warnings.warn("Should install corels with pip install corels. Using GreedyRuleList instead.")
super().__init__()
self.fit = super().fit
self.predict = super().predict
self.predict_proba = super().predict_proba
self.__str__ = super().__str__
self.random_state = random_state
self.discretizer = None
self.str_print = None
self._estimator_type = 'classifier'
def fit(self, X, y, feature_names=None, prediction_name="prediction"):
"""
Build a CORELS classifier from the training set (X, y).
Parameters
----------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8.
y : array-line, shape = [n_samples]
The target values for the training input. Must be binary.
feature_names : list, optional(default=None)
A list of strings of length n_features. Specifies the names of each
of the features. If an empty list is provided, the feature names
are set to the default of ["feature1", "feature2"... ].
prediction_name : string, optional(default="prediction")
The name of the feature that is being predicted.
Returns
-------
self : obj
"""
if isinstance(X, pd.DataFrame):
if feature_names is None:
feature_names = X.columns.tolist()
X = X.values
elif feature_names is None:
feature_names = ['X_' + str(i) for i in range(X.shape[1])]
# check if any non-binary values
if not np.isin(X, [0, 1]).all().all():
self.discretizer = KBinsDiscretizer(encode='onehot-dense')
self.discretizer.fit(X, y)
"""
feature_names = [f'{col}_{b}'
for col, bins in zip(feature_names, self.discretizer.n_bins_)
for b in range(bins)]
"""
feature_names = self.discretizer.get_feature_names_out()
X = self.discretizer.transform(X)
np.random.seed(self.random_state)
# feature_names = feature_names.tolist()
super().fit(X, y, features=feature_names, prediction_name=prediction_name)
# try:
self._traverse_rule(X, y, feature_names)
# except:
# self.str_print = None
self.complexity_ = self._get_complexity()
return self
def predict(self, X):
"""
Predict classifications of the input samples X.
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features must be the same
as those of the data used to train the model.
Returns
-------
p : array[int] of shape = [n_samples].
The classifications of the input samples.
"""
if self.discretizer is not None:
X = self.discretizer.transform(X)
return super().predict(X).astype(int)
def predict_proba(self, X):
"""
Predict probabilities of the input samples X.
todo: actually calculate these from training set
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features mu | (c=0.01, n_iter=10000, map_type='prefix', policy='lower_bound', verbosity=[], ablation=0, max_card=2, min_support=0.01, random_state=0) | [
0.007951325736939907,
-0.00915271881967783,
-0.012825398705899715,
-0.010138072073459625,
0.01971760205924511,
-0.035430558025836945,
-0.039097972214221954,
-0.021150842308998108,
0.029592210426926613,
-0.05922657623887062,
-0.04040474817156792,
0.022130927070975304,
0.013931944966316223,
0.023606320843100548,
-0.000567763636354357,
0.005377288442105055,
0.0018666383111849427,
-0.0006962020415812731,
-0.0009030208457261324,
0.02640957199037075,
-0.0040336246602237225,
0.012108778581023216,
-0.012256317771971226,
0.05290345475077629,
-0.0038650082424283028,
-0.017662586644291878,
0.033891934901475906,
-0.014026791788637638,
-0.025123871862888336,
0.008214789442718029,
-0.06993372738361359,
0.030161291360855103,
-0.07157774269580841,
-0.015913190320134163,
0.003103598952293396,
-0.04910958185791969,
0.026852190494537354,
0.03163668513298035,
-0.026936499401926994,
-0.005843618419021368,
-0.047676339745521545,
-0.06715155392885208,
-0.03151022270321846,
-0.015070106834173203,
-0.03484040126204491,
0.03696918487548828,
-0.03823380917310715,
0.0829593613743782,
0.02895989827811718,
-0.07861748337745667,
-0.0396459735929966,
-0.06668785959482193,
0.010296150110661983,
0.03595748543739319,
-0.03184745833277702,
0.04940465837717056,
0.006623470224440098,
0.010348842479288578,
0.0405522882938385,
-0.042955074459314346,
0.022868623957037926,
0.008462444879114628,
0.00881548598408699,
-0.016260961070656776,
-0.0027110385708510876,
-0.01576565019786358,
-0.02415432594716549,
0.008278020657598972,
0.008183173835277557,
0.012804321944713593,
-0.025166025385260582,
-0.05964811518788338,
0.04556863009929657,
0.013120478019118309,
0.04078413546085358,
-0.008999910205602646,
-0.03519871085882187,
-0.07233651727437973,
0.03129945322871208,
-0.010896846652030945,
-0.009547914378345013,
0.05058497563004494,
0.038339197635650635,
-0.07107189297676086,
-0.0320582278072834,
-0.05265052989125252,
0.0660133957862854,
0.014743412844836712,
0.0032985620200634003,
0.011234079487621784,
-0.04847726970911026,
0.023163702338933945,
0.037390727549791336,
0.03857104480266571,
-0.008926140144467354,
0.03895043209195137,
-0.03188960999250412,
-0.027041884139180183,
0.018611054867506027,
-0.036653030663728714,
0.006855317857116461,
0.059395190328359604,
-0.04019397869706154,
0.05214468017220497,
-0.0292549766600132,
-0.0071925511583685875,
-0.041922297328710556,
0.04915173351764679,
-0.019970526918768883,
-0.024660175666213036,
-0.10724014788866043,
0.01689327321946621,
0.037327494472265244,
-0.003364427713677287,
-0.025692952796816826,
-0.03328069671988487,
-0.06807894259691238,
-0.025524334982037544,
-0.023079395294189453,
0.005200767889618874,
-0.02066607028245926,
-0.0017717914888635278,
-0.054926853626966476,
-0.007666785269975662,
-0.02187800221145153,
-0.002384343883022666,
0.00549584673717618,
0.04272322729229927,
0.04219629988074303,
-0.051175132393836975,
0.014364025555551052,
-0.005922657437622547,
-0.020813610404729843,
0.006718317046761513,
0.022805392742156982,
-0.07157774269580841,
-0.01754666306078434,
0.013447172939777374,
0.002489729318767786,
0.005387826822698116,
0.10985370725393295,
-0.03066714107990265,
0.04459908604621887,
-0.025988031178712845,
0.003978297580033541,
-0.0193276759237051,
0.031552378088235855,
-0.007582476828247309,
-0.03441885858774185,
0.020897917449474335,
0.008794408291578293,
-0.009874608367681503,
0.012414395809173584,
-0.041837990283966064,
0.03159453347325325,
0.02708403952419758,
-0.025334641337394714,
-0.07090327143669128,
0.0030772527679800987,
-0.017789049074053764,
-0.03148914873600006,
-0.04236491769552231,
-0.03876073658466339,
-0.021055996417999268,
-0.0082464050501585,
0.0058910418301820755,
-0.018547823652625084,
-0.04160614311695099,
-0.011276233941316605,
0.03469286113977432,
-0.002808519871905446,
-0.0773528590798378,
-0.03414485976099968,
0.029212823137640953,
-0.028180046007037163,
0.09198034554719925,
0.02689434587955475,
0.04074198380112648,
0.007419129833579063,
0.06209305673837662,
0.02189907804131508,
-0.018442438915371895,
-0.0556434728205204,
-0.04112137109041214,
0.014553719200193882,
0.030793603509664536,
0.028601588681340218,
0.01443779468536377,
0.013837098143994808,
0.04835080727934837,
-0.012087701819837093,
-0.05614932253956795,
0.01860051602125168,
0.010343573987483978,
0.0018310707528144121,
-0.030603909865021706,
0.009769223630428314,
0.0320582278072834,
0.06019612029194832,
-0.0016176654025912285,
-0.006323121953755617,
0.03479824587702751,
0.04472554847598076,
-0.005611770786345005,
-0.04185906797647476,
0.024407250806689262,
-0.03199499845504761,
0.04771849513053894,
-0.04036259651184082,
-0.02733696438372135,
-0.020961148664355278,
-0.0037042954936623573,
0.0003293292538728565,
0.02771635167300701,
0.07339036464691162,
-0.052692681550979614,
0.030793603509664536,
0.010981154628098011,
-0.033997319638729095,
-0.039856746792793274,
-0.0028901936020702124,
-0.00380704621784389,
-0.04358738660812378,
0.0025951145216822624,
-0.02347985841333866,
-0.018094666302204132,
0.06302044540643692,
0.026936499401926994,
0.0546739287674427,
-0.01716727577149868,
-0.006897472310811281,
-0.08515137434005737,
0.05539054796099663,
0.018927210941910744,
0.04776064679026604,
-0.007150397170335054,
0.021625077351927757,
0.06913279742002487,
-0.09965240210294724,
0.02425971068441868,
-0.026767883449792862,
-0.026051262393593788,
-0.006338929757475853,
-0.0537886917591095,
-0.007266320753842592,
0.0556434728205204,
0.09695453941822052,
0.021835846826434135,
0.008641599677503109,
-0.008968294598162174,
0.003314369823783636,
-0.04206983745098114,
-0.017620433121919632,
-0.022847546264529228,
-0.020918995141983032,
-0.10530105978250504,
0.0025042197667062283,
-0.0025213449262082577,
0.06331552565097809,
-0.012530320324003696,
-0.03233223035931587,
0.035325173288583755,
-0.01136054191738367,
0.06019612029194832,
-0.029212823137640953,
0.009584799408912659,
-0.007371706422418356,
0.013415557332336903,
0.02149861492216587,
0.0037332766223698854,
0.07229436188936234,
0.004038894083350897,
-0.05505331605672836,
0.034903634339571,
-0.042385995388031006,
0.03496686369180679,
-0.04982620105147362,
-0.016461193561553955,
0.007877555675804615,
0.015902651473879814,
0.046833254396915436,
-0.0330488495528698,
-0.016577117145061493,
-0.006628739647567272,
0.0027716350741684437,
-0.014764489606022835,
-0.0453157052397728,
0.003569929162040353,
-0.007998749613761902,
0.006439046002924442,
-0.019380368292331696,
0.014943644404411316,
0.043165843933820724,
0.02039206773042679,
0.10066410154104233,
0.01141323521733284,
0.01576565019786358,
-0.048435114324092865,
0.034292396157979965,
-0.023943554610013962,
0.008810216560959816,
-0.01613449864089489,
0.08097811788320541,
-0.05024774372577667,
-0.04139536991715431,
-0.04700187221169472,
0.04358738660812378,
-0.010617575608193874,
-0.011708313599228859,
0.02320585772395134,
0.04346092417836189,
0.041247833520174026,
0.03176314756274223,
-0.005422077141702175,
-0.04670679196715355,
-0.007139858324080706,
0.013921407051384449,
-0.005343038123100996,
0.08418183028697968,
0.037222109735012054,
-0.0716620460152626,
0.005833080038428307,
-0.0023026701528578997,
0.006006965879350901,
0.03214253485202789,
-0.0368005707859993,
0.055221930146217346,
-0.0032221574801951647,
-0.0013390528038144112,
-0.037496112287044525,
0.011645082384347916,
-0.04375600442290306,
-0.007013395894318819,
0.00714512774720788,
-0.0077879782766103745,
0.024870947003364563,
0.028980975970625877,
0.022489236667752266,
-0.012340626679360867,
-0.04594801738858223,
0.03235330805182457,
0.05724532902240753,
-0.04405108094215393,
0.04299722984433174,
-0.005411538295447826,
-0.024407250806689262,
0.019591139629483223,
0.03157345578074455,
0.00431289616972208,
0.05454746633768082,
0.0010867866221815348,
-0.045231398195028305,
0.04169045016169548,
0.08506706357002258,
0.05197606235742569,
-0.029866212978959084,
-0.04204875975847244,
-0.028032507747411728,
0.03325962275266647,
-0.053915154188871384,
0.03195284307003021,
-0.04818218946456909,
-0.029950520023703575,
0.07006019353866577,
0.0036726798862218857,
-0.010090649127960205,
-0.03496686369180679,
0.012720013968646526,
0.04944681376218796,
-0.04074198380112648,
-0.012045547366142273,
-0.03878181427717209,
-0.0026570286136120558,
-0.03846566006541252,
0.014090023003518581,
0.0278217364102602,
-0.005332499276846647,
0.02933928556740284,
-0.004223318304866552,
0.03262731060385704,
0.024027863517403603,
0.014996337704360485,
-0.030688218772411346,
0.003909796942025423,
-0.013194248080253601,
-0.051638830453157425,
-0.012878092005848885,
-0.001150017837062478,
0.07444421947002411,
-0.028137892484664917,
0.01595534384250641,
0.0032485038973391056,
0.005859426222741604,
-0.04940465837717056,
-0.03876073658466339,
-0.007877555675804615,
0.017219968140125275,
0.052313294261693954,
-0.03612610325217247,
-0.0320582278072834,
-0.03614718094468117,
-0.016387423500418663,
0.03897150978446007,
0.010122264735400677,
-0.009305527433753014,
0.018094666302204132,
0.08085165172815323,
0.038444582372903824,
-0.042786456644535065,
0.07983995229005814,
0.014732873998582363,
0.03376547247171402,
-0.005340403411537409,
-0.024575866758823395,
-0.07562454044818878,
0.00854148343205452,
0.020297221839427948,
0.03292238712310791,
0.045231398195028305,
0.011866392567753792,
0.037032417953014374,
0.025798337534070015,
0.06382137537002563,
0.03252192214131355,
0.008578368462622166,
0.02510279417037964,
-0.019886218011379242,
0.009147449396550655,
-0.04582155495882034,
-0.03829704225063324,
-0.07381191104650497,
-0.007429668214172125,
-0.0782802477478981,
-0.041922297328710556,
-0.04910958185791969,
-0.040151823312044144,
-0.034903634339571,
0.004413011949509382,
-0.02963436394929886,
-0.03669518232345581,
-0.007745824288576841,
-0.032395459711551666,
0.04329230636358261,
0.04662248492240906,
0.010412073694169521,
0.009405643679201603,
-0.03779119253158569,
-0.040615521371364594,
-0.07212574034929276,
-0.011086540296673775,
-0.03129945322871208,
-0.0037596228066831827,
0.0278217364102602,
0.0641164556145668,
-0.02263677679002285,
0.019875679165124893,
0.024027863517403603,
-0.018178975209593773,
0.018084129318594933,
-0.027653120458126068,
0.032690539956092834,
0.014227024279534817,
0.04006751626729965,
0.034756094217300415,
-0.03604179620742798,
0.04742341488599777,
0.0301823690533638,
0.05935303866863251,
-0.04074198380112648,
-0.0160291139036417,
0.010348842479288578,
-0.015776189044117928,
0.018337054178118706,
-0.04451477900147438,
-0.042765382677316666,
0.06723586469888687,
-0.000036637880839407444,
-0.024091094732284546,
0.01630311645567417,
-0.02668357454240322,
0.06651924550533295,
-0.026388496160507202,
0.024301866069436073,
-0.007361167576164007,
-0.006043850909918547,
-0.06011181324720383,
0.01736750826239586,
-0.04818218946456909,
-0.032479770481586456,
-0.006570777390152216,
-0.04346092417836189,
-0.004779226146638393,
0.0367794930934906,
0.03996213153004646,
0.006412699352949858,
0.03545163571834564,
0.030920065939426422,
0.0016097615007311106,
0.011887469328939915,
-0.03226899728178978,
-0.004939938895404339,
0.011276233941316605,
-0.055137623101472855,
-0.012793783098459244,
0.058805033564567566,
0.0065233539789915085,
-0.05433669313788414,
0.01376332901418209,
-0.048435114324092865,
0.01856890134513378,
-0.03172099590301514,
-0.03349146991968155,
0.0830015167593956,
-0.006660355255007744,
-0.015786727890372276,
0.021962309256196022,
0.03222684562206268,
0.025692952796816826,
-0.02045529894530773,
0.009447798132896423,
0.01783120445907116,
0.0026886442210525274,
0.000025872930564219132,
-0.03766473010182381,
0.017040813341736794,
0.07954487204551697,
0.015828881412744522,
-0.017978742718696594,
0.08043011277914047,
0.03311208263039589,
0.020212912932038307,
-0.02017075940966606,
0.003293292596936226,
0.08725908398628235,
-0.002230217680335045,
0.059395190328359604,
0.0035936408676207066,
-0.02470232918858528,
0.06179797649383545,
-0.021530229598283768,
0.011107617057859898,
0.015133338049054146,
0.012266856618225574,
-0.001929869526065886,
-0.016197729855775833,
0.012878092005848885,
0.0013871348928660154,
0.031172990798950195,
-0.042491380125284195,
-0.0046843793243169785,
0.0033960433211177588,
0.011855853721499443,
-0.008083057589828968,
-0.010032686404883862,
0.08350736647844315,
0.0072873979806900024,
0.05370438098907471,
0.032859157770872116,
0.03163668513298035,
0.03140483796596527,
-0.05387299880385399,
-0.021572384983301163,
0.032964542508125305,
-0.08658461272716522,
0.05707671493291855,
0.030140213668346405,
-0.02017075940966606,
0.05222898721694946,
-0.07204143702983856,
-0.01952790841460228,
0.05037420615553856,
-0.0018534651026129723,
-0.03989889845252037,
0.03945628181099892,
-0.081104576587677,
0.009305527433753014,
0.01678788848221302,
-0.02480771578848362,
-0.017019735649228096,
-0.006143966689705849,
0.004025720991194248,
0.018347591161727905,
0.024449404329061508,
-0.0717463567852974,
0.025587566196918488,
-0.010733499191701412,
-0.003519871272146702,
0.044767703860998154,
-0.05429454147815704,
-0.03526194393634796,
-0.05159667506814003,
0.0509643629193306,
-0.01452210359275341,
-0.07410699129104614,
-0.02425971068441868,
0.020792532712221146,
-0.03640010580420494,
-0.012994015589356422,
0.04213307052850723,
0.036927033215761185,
-0.03762257471680641,
0.006497007794678211,
-0.002850674092769623,
0.0017006563721224666,
0.06622416526079178,
-0.024765560403466225,
-0.016840580850839615,
-0.0073137441650033,
-0.00027482525911182165,
-0.016724657267332077,
-0.025903722271323204,
0.025819415226578712,
0.03047744743525982,
-0.053830843418836594,
-0.033891934901475906,
-0.03292238712310791,
-0.0031088683754205704,
0.011950700543820858,
0.03941412642598152,
-0.03446101397275925,
0.02065553143620491,
-0.005345672834664583,
0.014869875274598598,
0.03157345578074455,
-0.03907689452171326,
0.003764892229810357,
-0.045231398195028305,
-0.05408376827836037,
0.0021366882137954235,
-0.008241135627031326,
0.035514868795871735,
-0.013752790167927742,
0.015575956553220749,
-0.02727373316884041,
0.037327494472265244,
0.02687326818704605,
0.02413324825465679,
0.05349361151456833,
0.008288558572530746,
-0.015976421535015106,
-0.05821487680077553,
-0.023353395983576775,
0.009842992760241032,
-0.008214789442718029,
-0.04586371034383774,
-0.026198802515864372,
-0.0011427724966779351,
0.007977671921253204,
0.10867338627576828,
0.024470482021570206,
-0.018178975209593773,
0.03612610325217247,
-0.05526408553123474,
0.00511645944789052,
-0.0019180136732757092,
0.019264444708824158,
0.01671411842107773,
0.034861478954553604,
-0.011054924689233303,
-0.04780280217528343,
-0.05897365137934685,
0.013900329358875751,
0.06719370931386948,
-0.015491648577153683,
-0.005833080038428307,
0.004631686955690384,
0.039097972214221954,
-0.006006965879350901,
-0.003554121358320117,
0.011149771511554718,
-0.04864588379859924,
0.00011411259038140997,
-0.0013647404266521335,
0.024280788376927376,
-0.00045710901031270623,
-0.052776992321014404,
-0.03433455154299736,
-0.01547057181596756,
0.033238545060157776,
-0.017093505710363388,
0.0763833150267601,
0.042681071907281876,
-0.017799587920308113,
-0.025039562955498695,
0.07014449685811996,
0.02575618401169777,
-0.022109849378466606,
-0.010296150110661983,
-0.050795745104551315,
-0.035135481506586075,
-0.02809573896229267,
0.035325173288583755,
0.03547271341085434,
-0.038908276706933975,
0.0006385694723576307,
0.013362864032387733,
-0.09670161455869675,
-0.01915905997157097,
0.02914959192276001,
-0.03631579503417015,
0.007108242716640234,
0.006660355255007744,
-0.03161561116576195,
0.015702418982982635,
0.008615253493189812,
0.07098758220672607,
-0.08978833258152008,
-0.01725158467888832,
-0.0024778733495622873,
-0.05952165275812149,
0.041943375021219254,
0.08173689246177673,
0.007687862496823072,
-0.03471393883228302,
-0.01867428608238697,
-0.011866392567753792,
0.0007067405967973173,
-0.014121638610959053,
-0.03515655919909477,
0.013046707957983017,
0.04206983745098114,
0.001479347120039165,
0.038802891969680786,
0.016102883964776993,
-0.020602839067578316,
-0.006307314150035381,
0.03252192214131355,
-0.047887109220027924,
0.0386553518474102,
-0.023142626509070396,
0.02141430601477623,
0.04375600442290306,
-0.050036970525979996,
-0.006280967965722084,
0.0003194493765477091,
-0.05028989538550377,
0.036948107182979584,
-0.055306240916252136,
0.025355719029903412,
0.0537886917591095,
0.007951325736939907,
-0.05037420615553856,
-0.014111100696027279,
0.03462963178753853,
-0.016176654025912285,
0.07115619629621506,
0.0012507925275713205,
0.026725728064775467,
0.02453371323645115,
-0.03056175634264946,
0.027315886691212654,
-0.035514868795871735,
0.01651388593018055,
0.010823076590895653,
0.02291077747941017,
-0.018474053591489792,
0.025545412674546242,
-0.01914852112531662,
-0.017578279599547386,
-0.05821487680077553,
-0.006944895721971989,
-0.04095275327563286,
0.01367902010679245,
0.05024774372577667,
0.038718584924936295,
0.03998320922255516,
0.020413145422935486,
0.009389836341142654
] |
17,619 | imodels.rule_list.corels_wrapper | __init__ | null | def __init__(self, c=0.01, n_iter=10000, map_type="prefix", policy="lower_bound",
verbosity=[], ablation=0, max_card=2, min_support=0.01, random_state=0):
if corels_supported:
super().__init__(c, n_iter, map_type, policy, verbosity, ablation, max_card, min_support)
else:
warnings.warn("Should install corels with pip install corels. Using GreedyRuleList instead.")
super().__init__()
self.fit = super().fit
self.predict = super().predict
self.predict_proba = super().predict_proba
self.__str__ = super().__str__
self.random_state = random_state
self.discretizer = None
self.str_print = None
self._estimator_type = 'classifier'
| (self, c=0.01, n_iter=10000, map_type='prefix', policy='lower_bound', verbosity=[], ablation=0, max_card=2, min_support=0.01, random_state=0) | [
-0.017097167670726776,
-0.005052914842963219,
-0.030698664486408234,
-0.008595068007707596,
0.006126717198640108,
-0.017208730801939964,
-0.04853029549121857,
-0.034826528280973434,
-0.003544477978721261,
-0.04897655174136162,
-0.028913643211126328,
0.11565457284450531,
-0.045778386294841766,
0.08701983839273453,
-0.016028013080358505,
-0.03529137745499611,
0.009227263741195202,
0.005285339429974556,
-0.025603914633393288,
-0.02711002714931965,
-0.00576413469389081,
0.007976818829774857,
-0.039010174572467804,
0.05317879095673561,
-0.01785952039062977,
0.03170274198055267,
0.025139063596725464,
-0.029285522177815437,
-0.04205958917737007,
0.017831629142165184,
-0.03616529703140259,
0.028132695704698563,
-0.058385103940963745,
0.02750050090253353,
0.013713061809539795,
-0.06552519649267197,
0.007804824039340019,
0.012476562522351742,
-0.06827710568904877,
0.007391108199954033,
-0.010570678859949112,
-0.04942280426621437,
-0.06649208068847656,
-0.03404558077454567,
-0.010514897294342518,
0.04417930170893669,
0.0008466072613373399,
0.06604582816362381,
0.014893780462443829,
-0.07668158411979675,
-0.043584294617176056,
-0.030642883852124214,
0.011388814076781273,
0.018463823944330215,
-0.010914667509496212,
0.06396330147981644,
0.03716937080025673,
0.036462798714637756,
0.024971717968583107,
-0.013303994201123714,
-0.022071057930588722,
-0.007228410802781582,
-0.0009790894109755754,
-0.020974012091755867,
0.0027054245583713055,
-0.02973177842795849,
-0.029638808220624924,
-0.012987896800041199,
-0.003930303268134594,
0.0321304015815258,
0.02880207821726799,
-0.047451842576265335,
0.0032121106050908566,
-0.005471279378980398,
0.020193064585328102,
0.01511690765619278,
-0.03160976991057396,
-0.04343554377555847,
0.02893223613500595,
-0.011649129912257195,
0.01543300598859787,
0.030958980321884155,
0.027593469247221947,
-0.06448393315076828,
-0.027463313192129135,
-0.06775647401809692,
0.06589707732200623,
-0.037076402455568314,
-0.0028611491434276104,
0.04696840047836304,
-0.07950787246227264,
0.009520119056105614,
0.0073353261686861515,
0.014819404110312462,
0.005062211770564318,
0.08344979584217072,
-0.014745027758181095,
-0.03380386158823967,
0.029583025723695755,
-0.006986688822507858,
0.021587613970041275,
0.03878704831004143,
-0.017227325588464737,
0.02374451607465744,
-0.038824234157800674,
-0.0115933483466506,
-0.010477709583938122,
0.05206315219402313,
-0.012588126584887505,
-0.03276259824633598,
-0.05916605144739151,
0.03521700203418732,
0.03012225218117237,
0.027816597372293472,
-0.03571904078125954,
0.018352260813117027,
-0.030512725934386253,
-0.04388180002570152,
0.02006290666759014,
0.00968746468424797,
-0.0422455295920372,
0.003072655526921153,
-0.04641057923436165,
0.018277885392308235,
-0.026589395478367805,
0.027946755290031433,
-0.010096532292664051,
0.017078572884202003,
0.011816475540399551,
-0.02305653877556324,
0.02755628153681755,
-0.03690905496478081,
0.005578194744884968,
0.007391108199954033,
0.024897342547774315,
-0.03493809327483177,
-0.020974012091755867,
0.011751396581530571,
-0.021754959598183632,
0.03086601197719574,
0.07370654493570328,
-0.01805475726723671,
0.051021888852119446,
-0.019653839990496635,
0.010691540315747261,
-0.013982675038278103,
0.02130870334804058,
-0.01824069768190384,
-0.02424655295908451,
0.0036792843602597713,
0.005094751249998808,
0.014224397018551826,
-0.0010191826149821281,
0.005643273703753948,
0.0031633013859391212,
0.003286486491560936,
-0.006782155018299818,
-0.07831785827875137,
0.007051767781376839,
-0.01781303621828556,
-0.03162836283445358,
0.0014305745717138052,
-0.022498719394207,
-0.04068363457918167,
-0.005127290729433298,
0.0009000649442896247,
-0.017524829134345055,
-0.0693555548787117,
-0.018965862691402435,
0.0021383080165833235,
-0.028076913207769394,
-0.08025162667036057,
0.008864681236445904,
-0.009891998954117298,
0.016464971005916595,
0.0725909098982811,
0.01893797144293785,
0.04477430880069733,
0.0007118008797988296,
0.0016444053035229445,
0.022814815863966942,
-0.008037248626351357,
-0.04834435507655144,
-0.008650850504636765,
0.01562824286520481,
0.00596866849809885,
0.038712672889232635,
0.013155242428183556,
0.015451599843800068,
0.05016656592488289,
0.016028013080358505,
-0.0075166174210608006,
0.0004785045166499913,
-0.010449818335473537,
0.0309961698949337,
-0.01600012183189392,
-0.005406200420111418,
0.016083795577287674,
0.010784509591758251,
0.06920680403709412,
-0.05169127136468887,
0.05871979519724846,
0.0073446230962872505,
-0.017078572884202003,
-0.01559105422347784,
0.05660008266568184,
-0.01769217476248741,
0.037076402455568314,
-0.0031958408653736115,
-0.010068641975522041,
-0.03765281289815903,
0.0045508770272135735,
0.02556672692298889,
0.0167531780898571,
0.030382568016648293,
-0.03406417742371559,
0.011388814076781273,
0.016074497252702713,
-0.014335960149765015,
-0.041204266250133514,
0.05247221887111664,
0.018593981862068176,
-0.0011667724465951324,
-0.012244137935340405,
-0.011370220221579075,
0.012039603665471077,
0.03631404787302017,
0.008437019772827625,
-0.015767697244882584,
0.0032585954759269953,
-0.011435299180448055,
-0.05767853558063507,
0.030085064470767975,
0.002325410023331642,
0.02893223613500595,
-0.04317522794008255,
0.033394791185855865,
0.05916605144739151,
-0.11617520451545715,
0.010068641975522041,
-0.037466876208782196,
0.015879260376095772,
-0.0500921905040741,
-0.023725921288132668,
-0.013145945966243744,
0.02194090001285076,
0.021531831473112106,
0.02261028252542019,
0.013034381903707981,
0.029880529269576073,
0.017645688727498055,
-0.07195871323347092,
-0.052397843450307846,
-0.030773041769862175,
-0.027537688612937927,
-0.04585276171565056,
0.007493374869227409,
-0.0027658548206090927,
0.036462798714637756,
-0.026459237560629845,
-0.018017569556832314,
0.02973177842795849,
-0.038024693727493286,
0.027760816738009453,
-0.014270881190896034,
-0.024711402133107185,
0.012411483563482761,
0.002435811795294285,
0.020713696256279945,
0.015228471718728542,
0.07117776572704315,
0.04094395041465759,
-0.0301036573946476,
0.03616529703140259,
-0.04704277589917183,
-0.004255697596818209,
-0.0238746739923954,
0.015879260376095772,
-0.0022626551799476147,
-0.009403906762599945,
0.055447254329919815,
0.0007350433734245598,
-0.030085064470767975,
0.010254581458866596,
-0.030531318858265877,
-0.035012468695640564,
-0.043398354202508926,
0.013331885449588299,
0.003391077509149909,
-0.011611942201852798,
-0.022833410650491714,
0.03555169329047203,
0.03400839492678642,
0.0014247639337554574,
0.1193733662366867,
-0.048009663820266724,
0.039902687072753906,
-0.038340792059898376,
0.00555960088968277,
0.007167980074882507,
0.04518337920308113,
-0.08657358586788177,
0.03460340201854706,
-0.006786803714931011,
-0.01008723583072424,
-0.04559244588017464,
0.05161689594388008,
-0.030271003022789955,
-0.005815268028527498,
0.0628848522901535,
0.03800610080361366,
0.07203308492898941,
-0.019337741658091545,
0.009111051447689533,
-0.005238854791969061,
0.021029794588685036,
-0.00465546827763319,
-0.03504965826869011,
0.05734384059906006,
0.05303004011511803,
-0.05987262353301048,
0.012941411696374416,
-0.002882067346945405,
0.01661372371017933,
-0.03759703412652016,
-0.07675596326589584,
0.016464971005916595,
0.008855383843183517,
-0.022015275433659554,
-0.07504531741142273,
-0.029099583625793457,
-0.012067494913935661,
0.0029122824780642986,
-0.00980832614004612,
-0.03473355993628502,
0.08590419590473175,
0.021569019183516502,
-0.00927839707583189,
-0.03676030412316322,
-0.08575544506311417,
0.07106620073318481,
0.060318879783153534,
-0.03449183702468872,
0.05998418852686882,
-0.07061994820833206,
-0.012383592315018177,
0.05005500093102455,
-0.011295844800770283,
0.0004869299300480634,
0.004478825721889734,
-0.026459237560629845,
-0.022331373766064644,
0.05860823392868042,
0.09029237926006317,
0.08025162667036057,
0.017227325588464737,
-0.013127352111041546,
-0.010765915736556053,
0.005578194744884968,
-0.04559244588017464,
0.07006212323904037,
-0.05228627845644951,
-0.01911461353302002,
0.04886498674750328,
0.0013538743369281292,
-0.011007637716829777,
0.010050047188997269,
-0.016446378082036972,
0.05585632473230362,
-0.008683389984071255,
-0.013768844306468964,
-0.07452468574047089,
-0.047340281307697296,
-0.012141870334744453,
0.01559105422347784,
-0.008130218833684921,
-0.03387823700904846,
0.014633464626967907,
-0.011370220221579075,
0.04034894332289696,
0.041762083768844604,
0.020732291042804718,
0.00996637437492609,
-0.0019756106194108725,
-0.051207829266786575,
-0.04343554377555847,
0.014047753997147083,
0.041650522500276566,
0.07154964655637741,
-0.03486371785402298,
0.020825261250138283,
-0.009613089263439178,
-0.014270881190896034,
-0.050129376351833344,
-0.026217514649033546,
0.0014817080227658153,
0.023818891495466232,
0.014605573378503323,
-0.050835948437452316,
-0.007339974399656057,
-0.0022184946574270725,
-0.0015421384014189243,
0.03179571032524109,
0.007786230184137821,
-0.006159256678074598,
-0.026384862139821053,
0.06396330147981644,
0.02729596570134163,
-0.02417217753827572,
0.05481506139039993,
0.00008795825124252588,
0.03912173956632614,
-0.008488153107464314,
-0.03332041576504707,
-0.04972030967473984,
-0.029750371351838112,
0.015172690153121948,
-0.011611942201852798,
-0.010235987603664398,
0.013341182842850685,
0.04124145209789276,
0.025585319846868515,
0.04343554377555847,
0.06381455063819885,
0.05771572142839432,
0.02580844797194004,
0.005062211770564318,
-0.02054635062813759,
0.00641957251355052,
-0.04369585961103439,
-0.07277684658765793,
0.025473756715655327,
-0.0954986959695816,
-0.043584294617176056,
-0.006466057617217302,
-0.021345892921090126,
-0.06091388687491417,
0.024971717968583107,
-0.008883275091648102,
-0.04187364876270294,
-0.008079085499048233,
-0.04406774044036865,
0.03179571032524109,
0.02660798840224743,
0.04142739251255989,
0.029397087171673775,
-0.011044825427234173,
-0.013034381903707981,
-0.04897655174136162,
-0.041576143354177475,
-0.019653839990496635,
-0.04752621799707413,
0.029527245089411736,
0.05310441553592682,
0.02874629758298397,
0.031219296157360077,
-0.004581092391163111,
0.0018361557740718126,
0.005206315312534571,
-0.013480637222528458,
0.010440520942211151,
-0.0036792843602597713,
0.06065357103943825,
-0.01462416723370552,
-0.02962021343410015,
0.089994877576828,
0.014373148791491985,
0.05660008266568184,
-0.02917395904660225,
-0.00877636019140482,
0.0023637600243091583,
0.001764104119502008,
0.02017447166144848,
-0.025213440880179405,
-0.06143451854586601,
0.036518581211566925,
-0.006149959750473499,
-0.03599794954061508,
0.015618945471942425,
-0.0016188386362046003,
0.06251297146081924,
-0.007776933256536722,
0.04849310591816902,
0.015274956822395325,
-0.016855444759130478,
-0.05771572142839432,
-0.014038456603884697,
-0.004513689316809177,
-0.01786881685256958,
0.033710889518260956,
-0.0734834223985672,
0.052397843450307846,
0.051765646785497665,
0.021531831473112106,
0.009910592809319496,
0.052769724279642105,
0.060951076447963715,
0.016967009752988815,
0.0301036573946476,
-0.02867192029953003,
-0.01187225803732872,
0.024711402133107185,
-0.05619101598858833,
-0.0027542337775230408,
0.051877211779356,
-0.0056944070383906364,
-0.05042688176035881,
-0.021754959598183632,
-0.02962021343410015,
0.05708352476358414,
0.010691540315747261,
-0.028709109872579575,
0.09564744681119919,
-0.0006664780667051673,
-0.048381540924310684,
-0.03581200912594795,
0.012439374811947346,
0.0027077486738562584,
-0.06950430572032928,
-0.012578829191625118,
0.05905449017882347,
0.005104048177599907,
0.005262096878141165,
-0.03724374622106552,
0.027407530695199966,
0.028076913207769394,
0.06783084571361542,
0.0016188386362046003,
0.07288841158151627,
0.03332041576504707,
0.04484868422150612,
-0.00314005883410573,
-0.026198921725153923,
0.06228984147310257,
-0.012179058976471424,
0.05715790390968323,
0.01393618993461132,
-0.010338254272937775,
0.06102545186877251,
-0.02893223613500595,
0.016028013080358505,
-0.006233632564544678,
0.06262453645467758,
0.01831507310271263,
0.008697335608303547,
0.014475415460765362,
-0.00445325905457139,
0.008130218833684921,
-0.036834679543972015,
-0.016474269330501556,
0.027537688612937927,
-0.023075131699442863,
-0.03438027203083038,
-0.04053488373756409,
0.03856391832232475,
-0.0034886959474533796,
0.041018325835466385,
-0.03144242614507675,
0.022666065022349358,
0.016213953495025635,
-0.015033234842121601,
-0.019635245203971863,
0.020453380420804024,
0.013517824932932854,
0.06002137437462807,
0.0160652007907629,
0.00023649221111554652,
0.024042019620537758,
-0.051579706370830536,
-0.017208730801939964,
0.07921036332845688,
0.0012794984504580498,
-0.03690905496478081,
0.06597144901752472,
-0.07556594163179398,
0.013099460862576962,
0.0051923696883022785,
-0.008929760195314884,
-0.003319025970995426,
-0.017794441431760788,
0.024822967126965523,
0.00521561224013567,
0.02443249337375164,
-0.08188790082931519,
0.040200188755989075,
-0.004532283172011375,
-0.04053488373756409,
0.02486015483736992,
-0.037336718291044235,
-0.04172489792108536,
-0.024042019620537758,
0.04492306336760521,
-0.04153895750641823,
-0.06202952563762665,
-0.034398868680000305,
-0.014382445253431797,
-0.04648495465517044,
-0.031516801565885544,
-0.022201215848326683,
0.018900783732533455,
-0.0693555548787117,
0.04867904633283615,
-0.022703252732753754,
0.022089650854468346,
0.04681964963674545,
-0.04953436926007271,
-0.005373660940676928,
0.04611307755112648,
0.023539982736110687,
0.006466057617217302,
-0.010394035838544369,
0.006024450529366732,
0.005025023594498634,
-0.06537644565105438,
-0.011546863242983818,
-0.062327031046152115,
-0.0033934018574655056,
0.0035816659219563007,
0.05593070015311241,
-0.04655933380126953,
-0.008390534669160843,
0.00045613362453877926,
-0.020639320835471153,
0.058199167251586914,
-0.04287772253155708,
-0.011305141262710094,
-0.0394936203956604,
-0.05265815928578377,
0.03893579915165901,
0.016846148297190666,
0.06407486647367477,
-0.0167531780898571,
-0.00434401910752058,
-0.05355066806077957,
0.012634610757231712,
0.03062428906559944,
0.04529494047164917,
0.07980537414550781,
0.0031772467773407698,
0.024283740669488907,
-0.052583783864974976,
0.004299858585000038,
0.02935989759862423,
-0.023205289617180824,
-0.044513992965221405,
-0.03012225218117237,
-0.002190603641793132,
0.017292404547333717,
0.11818335205316544,
0.018965862691402435,
-0.01168631762266159,
0.08040037751197815,
-0.024153582751750946,
0.01462416723370552,
-0.021587613970041275,
-0.01256023533642292,
0.0211227647960186,
0.026515020057559013,
0.02192230522632599,
-0.04629901796579361,
-0.05771572142839432,
0.018352260813117027,
0.08032600581645966,
0.024413898587226868,
0.0007681638817302883,
-0.016083795577287674,
0.0463733933866024,
-0.03856391832232475,
-0.04250584542751312,
0.015553866513073444,
-0.06504175066947937,
0.0073725138790905476,
0.0028936886228621006,
0.001152826938778162,
-0.027388935908675194,
-0.026347672566771507,
-0.01496815588325262,
-0.00013495163875631988,
0.03244649991393089,
0.008511395193636417,
0.07742534577846527,
0.03441746160387993,
-0.022944973781704903,
-0.0454808808863163,
0.06675239652395248,
0.012402186170220375,
-0.05061282217502594,
0.014735731296241283,
-0.035402942448854446,
-0.021885117515921593,
-0.010115126147866249,
0.018287181854248047,
0.02448827587068081,
-0.04559244588017464,
0.015721213072538376,
0.030159439891576767,
-0.08776360005140305,
-0.06686396151781082,
0.03425011411309242,
-0.015851370990276337,
0.035328567028045654,
0.028820673003792763,
-0.05329035595059395,
0.019412117078900337,
-0.02543656900525093,
0.02186652272939682,
-0.05027812719345093,
0.0017338888719677925,
0.03538434952497482,
-0.06221546605229378,
0.0707315132021904,
0.07214464992284775,
-0.0238746739923954,
-0.008613662794232368,
-0.007056416478008032,
0.008818196132779121,
0.041464582085609436,
0.02242434211075306,
-0.015033234842121601,
-0.014057050459086895,
0.02567829005420208,
-0.039902687072753906,
0.021141357719898224,
0.0353657566010952,
0.0037908481899648905,
0.00983621645718813,
-0.020843854174017906,
-0.02837441675364971,
0.046075887978076935,
-0.01719013601541519,
0.01868695206940174,
-0.019653839990496635,
-0.06965305656194687,
-0.04778653383255005,
0.007637478411197662,
-0.04116707667708397,
0.012476562522351742,
-0.031014762818813324,
0.036462798714637756,
0.005415497347712517,
-0.012662502005696297,
-0.024506868794560432,
-0.002137145958840847,
0.013796734623610973,
-0.02543656900525093,
0.04555525630712509,
-0.028634732589125633,
-0.0036118810530751944,
0.039270490407943726,
0.013731656596064568,
0.01900305040180683,
-0.015237769111990929,
0.0342315211892128,
-0.007790878880769014,
-0.003202813444659114,
-0.05262096971273422,
0.0034212928730994463,
-0.019523682072758675,
-0.03791312873363495,
-0.05500100180506706,
-0.018157023936510086,
-0.03240931034088135,
0.0204347874969244,
-0.004037218634039164,
0.050947513431310654,
0.012113980017602444,
0.049459993839263916,
-0.02816988341510296
] |
17,623 | imodels.rule_list.corels_wrapper | __str__ | null | def __str__(self):
if corels_supported:
if self.str_print is not None:
return 'OptimalRuleList:\n\n' + self.str_print
else:
return 'OptimalRuleList:\n\n' + self.rl_.__str__()
else:
return super().__str__()
| (self) | [
0.011749138124287128,
-0.020922169089317322,
0.01619640365242958,
-0.0039250822737813,
0.031853217631578445,
-0.053227946162223816,
0.007985061965882778,
-0.023602712899446487,
0.02515185810625553,
-0.07303611934185028,
-0.017458349466323853,
-0.004294962622225285,
-0.009025078266859055,
0.009320982731878757,
0.0034333590883761644,
0.021357322111725807,
-0.03357642516493797,
-0.08703064918518066,
0.0015937488060444593,
0.024612268432974815,
0.010582927614450455,
0.03791055083274841,
0.022941280156373978,
0.023393839597702026,
0.006344534456729889,
0.03808461129665375,
0.04936378449201584,
-0.04254058375954628,
-0.06750097125768661,
0.02254093810915947,
-0.04066072031855583,
0.008507246151566505,
-0.037109870463609695,
-0.004499484784901142,
-0.013559375889599323,
0.025795884430408478,
-0.010139070451259613,
-0.0010846195509657264,
-0.058171287178993225,
-0.015552377328276634,
0.012149479240179062,
-0.005343682132661343,
0.010426271706819534,
-0.018659371882677078,
-0.07119107246398926,
-0.020069267600774765,
-0.001879862044006586,
0.07693509757518768,
0.024246739223599434,
-0.08556853979825974,
0.019059712067246437,
0.008785744197666645,
-0.05594330281019211,
-0.006135661154985428,
-0.06718765944242477,
-0.008624737150967121,
0.019825583323836327,
-0.03458598256111145,
0.04198358580470085,
-0.016344357281923294,
-0.023707149550318718,
-0.014090262353420258,
0.016318246722221375,
-0.021548788994550705,
-0.007723970338702202,
-0.04508187621831894,
-0.05173102021217346,
0.010313131846487522,
0.04636993259191513,
0.05810166150331497,
0.017797768115997314,
-0.03818904981017113,
-0.027919432148337364,
0.006248800549656153,
0.013837873935699463,
-0.014220808632671833,
-0.04932897165417671,
-0.03347199037671089,
-0.009216546081006527,
-0.05879790708422661,
0.0027001260314136744,
0.050268903374671936,
0.042714644223451614,
-0.03336755186319351,
-0.033123865723609924,
-0.09677808731794357,
0.030948098748922348,
-0.025795884430408478,
-0.010870127938687801,
0.021618414670228958,
-0.032253559678792953,
0.017684629186987877,
-0.03181840479373932,
0.016709884628653526,
-0.04595218226313591,
0.0004585427523124963,
-0.029294516891241074,
-0.07032077014446259,
0.01989520713686943,
-0.038119424134492874,
0.01017388328909874,
0.034203045070171356,
-0.03641362488269806,
0.007114755921065807,
-0.020521827042102814,
-0.03599587827920914,
-0.01928599178791046,
0.025117045268416405,
0.009721323847770691,
0.034864477813243866,
-0.03641362488269806,
0.043793823570013046,
0.00596595136448741,
-0.011418421752750874,
0.024908171966671944,
0.023115340620279312,
-0.05319313332438469,
-0.03329792618751526,
0.046439554542303085,
-0.019442647695541382,
-0.010522006079554558,
-0.001851577078923583,
-0.0472402386367321,
-0.013324392959475517,
-0.03227096423506737,
0.04020816087722778,
-0.04525594040751457,
0.00915562454611063,
0.04856310412287712,
-0.08222655951976776,
0.07303611934185028,
0.013716030865907669,
-0.028859363868832588,
-0.006140012294054031,
0.07714396715164185,
-0.05643067508935928,
-0.028232743963599205,
0.014734289608895779,
0.0419139601290226,
0.0734538733959198,
0.03448154404759407,
-0.03167915716767311,
0.008106905035674572,
-0.0012597687309607863,
-0.02391602285206318,
0.015117224305868149,
0.0017297342419624329,
0.05023409053683281,
0.012280024588108063,
-0.00009403390140505508,
0.03025185503065586,
0.012210400775074959,
-0.005030371714383364,
-0.021705444902181625,
0.004529945552349091,
0.05677879601716995,
-0.02121807262301445,
-0.06450711935758591,
0.037457991391420364,
-0.048632729798555374,
-0.0395815409719944,
-0.04487300291657448,
-0.009025078266859055,
-0.028023870661854744,
0.0059441933408379555,
-0.0016981855733320117,
-0.029642639681696892,
-0.04779723286628723,
0.004738818854093552,
0.020417390391230583,
-0.010043337009847164,
-0.09155624359846115,
-0.0609910823404789,
0.03965116664767265,
0.01820681244134903,
0.06972895562648773,
0.007919789291918278,
0.09364498406648636,
-0.030634788796305656,
-0.004886771086603403,
0.018224218860268593,
-0.01400323212146759,
-0.047100987285375595,
0.00196254113689065,
0.020800326019525528,
-0.0029002963565289974,
0.011888386681675911,
-0.009120812639594078,
-0.005474227946251631,
0.0233590267598629,
-0.010417569428682327,
0.006231394596397877,
-0.010504599660634995,
-0.005143511574715376,
-0.05120883509516716,
-0.04591737315058708,
0.024003053084015846,
-0.02381158620119095,
0.012506304308772087,
-0.019268585368990898,
-0.016031045466661453,
0.06913714855909348,
-0.017058007419109344,
0.0216706320643425,
0.003446413902565837,
-0.0016796916024759412,
-0.0072278957813978195,
0.022871654480695724,
-0.006361940409988165,
0.05479449778795242,
0.019111931324005127,
0.02489076554775238,
-0.03402898460626602,
0.014142480678856373,
0.04978153109550476,
-0.023794179782271385,
-0.019077118486166,
0.027379842475056648,
-0.07770096510648727,
-0.0014860483352094889,
0.015595892444252968,
-0.05858903378248215,
0.01815459318459034,
-0.025569604709744453,
-0.06938083469867706,
-0.004188349936157465,
0.0467180535197258,
-0.003914203494787216,
0.00803292915225029,
0.04233171045780182,
0.01216688472777605,
-0.0752641037106514,
-0.01186227798461914,
0.05844978615641594,
-0.04267983138561249,
0.07352349162101746,
-0.05493374541401863,
0.054550811648368835,
-0.08995488286018372,
0.0009083824115805328,
-0.05284501239657402,
0.008851016871631145,
-0.002249742392450571,
-0.02642250619828701,
0.02581329084932804,
-0.020782919600605965,
0.04104365408420563,
0.011740434914827347,
-0.039198607206344604,
-0.006627384107559919,
0.06095626950263977,
-0.03152250126004219,
-0.003141806460916996,
-0.03336755186319351,
-0.026283256709575653,
-0.05778835341334343,
-0.04452488198876381,
-0.020434796810150146,
0.019442647695541382,
-0.014603743329644203,
-0.02356790006160736,
0.030338885262608528,
-0.02851124107837677,
0.023741962388157845,
0.0024085731711238623,
0.00778924347832799,
-0.041078466922044754,
0.02193172462284565,
-0.0008926081354729831,
0.02811090089380741,
0.04449006915092468,
-0.019808176904916763,
-0.06948526948690414,
0.04824979230761528,
-0.015900500118732452,
0.015761250630021095,
-0.018885651603341103,
0.01714503765106201,
-0.04497744143009186,
-0.008498542942106724,
0.04146140068769455,
0.013698624446988106,
-0.02927711047232151,
-0.023028310388326645,
-0.015065005980432034,
-0.04361976310610771,
0.005361088085919619,
-0.0181023757904768,
-0.04066072031855583,
0.02248872071504593,
0.020869949832558632,
0.04539518803358078,
0.014064153656363487,
0.022889060899615288,
0.11209548264741898,
0.023341620340943336,
0.08278355747461319,
-0.020469609647989273,
0.03954672813415527,
0.0033746135886758566,
-0.020835138857364655,
-0.04330645129084587,
0.0715043842792511,
-0.03369826823472977,
-0.0467180535197258,
-0.07651735097169876,
-0.006557759363204241,
-0.023219777271151543,
0.028319774195551872,
0.03954672813415527,
-0.008354942314326763,
0.031644344329833984,
0.06896308809518814,
0.027014315128326416,
0.01522166095674038,
0.08508116751909256,
-0.03456857427954674,
0.0207655131816864,
0.03392454981803894,
0.05778835341334343,
-0.06718765944242477,
0.014499306678771973,
-0.0157003290951252,
0.0015273878816515207,
0.03469041734933853,
-0.11195623129606247,
-0.0018254679162055254,
0.011888386681675911,
0.03686618432402611,
-0.010165180079638958,
-0.022836843505501747,
-0.048180170357227325,
0.00841586384922266,
-0.015743844211101532,
0.03039110265672207,
0.027519091963768005,
0.07213100045919418,
0.008881477639079094,
-0.053332384675741196,
-0.020017050206661224,
0.0793023332953453,
0.02111363597214222,
-0.028841957449913025,
0.026004759594798088,
-0.023237183690071106,
0.03801498934626579,
-0.006966803688555956,
0.029190080240368843,
0.0021757662761956453,
-0.007288816850632429,
-0.04543000087141991,
-0.018241625279188156,
-0.007919789291918278,
0.011914496310055256,
0.014055450446903706,
-0.004316720180213451,
-0.0386764220893383,
0.022976091131567955,
0.0036161234602332115,
0.005221839062869549,
0.010295726358890533,
-0.026457317173480988,
-0.013881389051675797,
0.08215693384408951,
-0.03808461129665375,
-0.025778479874134064,
0.03284536674618721,
-0.019755957648158073,
0.09601221233606339,
-0.017327802255749702,
-0.08800539374351501,
-0.004203580319881439,
0.013385314494371414,
-0.09169549494981766,
-0.009521152824163437,
0.0925309881567955,
0.021914318203926086,
0.00743241747841239,
-0.02610919624567032,
-0.07296650111675262,
0.026892472058534622,
0.029190080240368843,
0.03075663186609745,
0.003418128937482834,
-0.02285424992442131,
-0.0026544348802417517,
-0.038537170737981796,
0.044907815754413605,
0.03704024478793144,
0.00823309924453497,
0.013811764307320118,
0.02306312322616577,
0.02182728797197342,
-0.010408866219222546,
-0.036239564418792725,
0.019460054114460945,
0.02938154712319374,
0.014734289608895779,
-0.07373236864805222,
-0.014673368073999882,
0.002930757123976946,
-0.03155731409788132,
-0.022227628156542778,
0.010626442730426788,
-0.04563887417316437,
0.010243508033454418,
0.07679584622383118,
0.042714644223451614,
-0.03752761706709862,
0.024368582293391228,
0.013794357888400555,
-0.029573015868663788,
-0.027867214754223824,
-0.04306276515126228,
-0.012454085983335972,
0.033628642559051514,
-0.005979005713015795,
0.05423750355839729,
0.01557848695665598,
0.027118751779198647,
-0.013454938307404518,
0.021461758762598038,
0.0495726577937603,
0.08403679728507996,
0.02299349755048752,
0.005117402411997318,
-0.001432742108590901,
0.032357994467020035,
0.026613973081111908,
-0.038780856877565384,
-0.015735141932964325,
0.0314006581902504,
0.01216688472777605,
-0.013002379797399044,
-0.0011036574142053723,
-0.05810166150331497,
0.017615003511309624,
-0.00607038801535964,
-0.0424361452460289,
-0.011635998263955116,
0.07867570966482162,
-0.05134808272123337,
-0.004310193005949259,
0.06551667302846909,
0.008250505663454533,
0.0310177244246006,
-0.04375901073217392,
-0.028580866754055023,
-0.04877197742462158,
0.021548788994550705,
-0.009608183987438679,
0.023080529645085335,
-0.01892046444118023,
0.007071240339428186,
-0.008759635500609875,
-0.031069941818714142,
0.04685730114579201,
-0.015735141932964325,
-0.023828992620110512,
0.008085147477686405,
0.0010895149316638708,
0.05427231267094612,
0.04330645129084587,
0.058728285133838654,
-0.0300429817289114,
0.010730879381299019,
0.017240772023797035,
0.06906752288341522,
-0.04978153109550476,
-0.02309793420135975,
0.006718766409903765,
0.0037662514951080084,
-0.009094703011214733,
-0.039303041994571686,
-0.0020506596192717552,
0.08236581087112427,
-0.012071151286363602,
0.008946751244366169,
-0.01540442556142807,
-0.013350501656532288,
-0.05702248215675354,
-0.06715285032987595,
0.022558344528079033,
-0.005857162643224001,
-0.009521152824163437,
-0.002258445369079709,
-0.02081773243844509,
0.014159887097775936,
-0.01637916825711727,
0.0024760221131145954,
0.018171999603509903,
0.03314127027988434,
-0.06882383674383163,
-0.025221481919288635,
0.007893679663538933,
0.03662249818444252,
-0.007963304407894611,
-0.038537170737981796,
-0.03263649344444275,
0.04257539287209511,
0.0020919993985444307,
-0.04452488198876381,
0.021096229553222656,
-0.00015556729340460151,
0.06311462819576263,
-0.007458526641130447,
-0.003154861042276025,
0.033332739025354385,
-0.027571311220526695,
0.018380872905254364,
0.0011749138357117772,
-0.03735355660319328,
0.06165251508355141,
0.019111931324005127,
-0.02509964071214199,
-0.01101808063685894,
0.0025935133453458548,
0.054655250161886215,
0.020591452717781067,
0.028023870661854744,
-0.024055272340774536,
0.005530797876417637,
-0.03305424004793167,
-0.06610848009586334,
0.0008893444901332259,
0.00526535464450717,
-0.02678803540766239,
0.0009083824115805328,
0.0005749462288804352,
0.05879790708422661,
0.03155731409788132,
0.0004963466781191528,
-0.013515859842300415,
0.033332739025354385,
-0.013454938307404518,
0.12720400094985962,
-0.06725728511810303,
0.024803735315799713,
0.032671306282281876,
-0.023271996527910233,
0.02943376637995243,
-0.0014980151318013668,
0.01231483742594719,
-0.06715285032987595,
-0.005056480877101421,
-0.015360910445451736,
0.026962095871567726,
0.0481453575193882,
0.017249474301934242,
-0.04222727194428444,
0.010817909613251686,
0.004151361994445324,
-0.0034855776466429234,
-0.035021133720874786,
0.010417569428682327,
0.037980176508426666,
0.032723523676395416,
0.0008893444901332259,
0.019668927416205406,
0.002495603868737817,
-0.019877800717949867,
0.014568931423127651,
0.01410766877233982,
-0.00855946447700262,
0.07352349162101746,
0.009120812639594078,
-0.007206137757748365,
0.028807146474719048,
-0.012532413937151432,
-0.023324213922023773,
0.03059997782111168,
-0.0548989363014698,
-0.01664896309375763,
0.00024762938846834004,
-0.04462931677699089,
0.017762955278158188,
0.04480338096618652,
0.06116514280438423,
0.0016329125501215458,
0.021496571600437164,
-0.02626585029065609,
0.03080885112285614,
0.008407160639762878,
-0.059146031737327576,
0.028580866754055023,
0.005774483550339937,
-0.010844019241631031,
0.00933838915079832,
-0.024525238201022148,
-0.03489929065108299,
-0.056709174066782,
0.020225923508405685,
-0.017162444069981575,
-0.028946394100785255,
0.00837669987231493,
-0.005861514247953892,
-0.021862098947167397,
0.0016176822828128934,
0.02259315736591816,
0.05824091285467148,
-0.028023870661854744,
0.031487688422203064,
0.01984298788011074,
0.034046389162540436,
0.0686497762799263,
0.013254768215119839,
-0.003409425728023052,
-0.00046724581625312567,
-0.04880679026246071,
0.053471632301807404,
-0.025430357083678246,
0.04375901073217392,
-0.00890323519706726,
-0.06715285032987595,
-0.02906823717057705,
-0.06450711935758591,
0.0367269366979599,
-0.010617739520967007,
0.024873360991477966,
-0.018328655511140823,
0.0310177244246006,
0.08849276602268219,
-0.032514650374650955,
0.02085254341363907,
-0.038885295391082764,
0.058832719922065735,
-0.033123865723609924,
-0.019320804625749588,
0.04602180793881416,
-0.0615132637321949,
0.02111363597214222,
-0.004551703110337257,
0.00841586384922266,
-0.03968597576022148,
-0.04515150189399719,
-0.021688038483262062,
0.023846399039030075,
0.04024297371506691,
-0.00778924347832799,
0.00926006119698286,
-0.00589197501540184,
-0.007449823897331953,
-0.029398953542113304,
-0.02544776163995266,
-0.04003410041332245,
0.04198358580470085,
-0.038780856877565384,
-0.012018932960927486,
0.05479449778795242,
0.005082590039819479,
-0.052253201603889465,
0.009973712265491486,
-0.016849134117364883,
0.031244004145264626,
0.03070441447198391,
0.028737520799040794,
0.014603743329644203,
-0.0082722632214427,
0.00593113899230957,
-0.015839578583836555,
-0.045882560312747955,
-0.029903732240200043,
0.028267554938793182,
-0.05702248215675354,
0.04946822300553322,
0.01759759709239006,
-0.00771526712924242,
0.029103050008416176,
0.019216367974877357,
-0.0424361452460289,
-0.05124364793300629,
-0.021618414670228958,
-0.0013489751145243645,
0.0276409350335598,
-0.05207914113998413,
0.020730700343847275,
-0.03392454981803894,
-0.0020082322880625725,
0.039860039949417114,
-0.0695548951625824,
0.009938900358974934,
-0.02626585029065609,
-0.05193989351391792,
-0.057823166251182556,
-0.008807501755654812,
0.05702248215675354,
-0.037109870463609695,
0.046439554542303085,
0.0015698153292760253,
-0.06401974707841873,
-0.08891051262617111,
-0.02462967485189438,
-0.014951866120100021,
0.0007120195077732205,
0.07463748753070831,
-0.0005754901794716716,
-0.029660046100616455,
-0.04316720366477966,
0.041078466922044754,
-0.00771526712924242,
0.040939219295978546,
0.03284536674618721,
-0.0030613031703978777,
0.030182229354977608,
-0.006083442363888025,
0.018554935231804848,
-0.013916200958192348,
-0.02544776163995266,
-0.019216367974877357,
-0.04532556235790253,
0.05075627565383911,
0.10555077344179153,
0.004377641715109348,
-0.05712692067027092,
-0.019721144810318947,
-0.07338424772024155,
0.04964228346943855,
0.0017852162709459662,
0.003659638809040189,
-0.014977974817156792,
-0.0006685042171739042,
0.009869275614619255,
0.057823166251182556,
-0.008746580220758915,
0.046648427844047546,
0.07366274297237396,
-0.03291499242186546,
-0.007458526641130447,
0.009190436452627182,
0.015273879282176495,
-0.003539971774443984,
0.039964474737644196,
-0.02779759094119072,
-0.014159887097775936,
0.05991189926862717,
0.011392312124371529,
0.02748427912592888,
0.015456643886864185,
0.04835423082113266,
0.019599303603172302,
0.04494262859225273,
0.02356790006160736,
0.016213810071349144,
-0.0069755068980157375,
0.0015524092596024275,
0.04452488198876381,
0.012993676587939262,
0.0461958684027195,
-0.0028371992520987988,
0.02443820610642433,
0.05249688774347305,
-0.03432488813996315,
0.04156583920121193,
0.024716705083847046,
0.053784944117069244,
-0.05110440030694008,
0.006536001805216074,
0.013611594215035439,
0.012158182449638844,
-0.01646619848906994,
-0.00016535824397578835,
-0.030060386285185814,
0.050825901329517365,
0.06426343321800232,
-0.01129657868295908,
0.012158182449638844,
-0.04219245910644531,
-0.04532556235790253
] |
17,628 | imodels.rule_list.corels_wrapper | _get_complexity | null | def _get_complexity(self):
return sum([len(corule['antecedents']) for corule in self.rl_.rules])
| (self) | [
-0.04993564635515213,
0.017010090872645378,
0.032682307064533234,
0.034020181745290756,
0.05337589234113693,
0.005894456524401903,
0.0036748049315065145,
-0.08353883028030396,
0.014012908563017845,
-0.048371899873018265,
0.0039397734217345715,
0.03798167407512665,
-0.006702392362058163,
-0.03026718832552433,
-0.016089217737317085,
-0.015602718107402325,
-0.004093976225703955,
-0.026931194588541985,
-0.02255270443856716,
0.0022696047089993954,
-0.01784408837556839,
0.037668924778699875,
-0.004111350979655981,
-0.027956318110227585,
-0.02661844529211521,
0.022431079298257828,
0.043645910918712616,
-0.014925094321370125,
0.024776699021458626,
-0.008361701853573322,
-0.07429534941911697,
0.05469638854265213,
-0.049344900995492935,
-0.027035444974899292,
0.007736202795058489,
-0.0032426028046756983,
0.033655308187007904,
0.014256158843636513,
-0.013144160620868206,
0.03474992886185646,
-0.06484336405992508,
0.024255450814962387,
-0.035479675978422165,
0.01207560021430254,
-0.042394913733005524,
-0.0758938416838646,
0.018139462918043137,
0.051082395017147064,
-0.024046950042247772,
-0.11175577342510223,
0.008487669751048088,
-0.0322653092443943,
-0.002988494001328945,
-0.014204033650457859,
0.046738654375076294,
0.021701330319046974,
-0.019164586439728737,
0.010676915757358074,
0.04013616964221001,
-0.0041765072382986546,
0.004000585526227951,
0.03447192907333374,
0.00018053673557005823,
-0.039406418800354004,
0.000016670803233864717,
-0.010494478978216648,
-0.040379416197538376,
0.02755669318139553,
0.05716363340616226,
0.007484266068786383,
0.01571565493941307,
-0.018556462600827217,
0.051082395017147064,
-0.009234793484210968,
-0.010590041056275368,
-0.03784267231822014,
0.03415917977690697,
-0.01779196411371231,
0.04632165655493736,
-0.029415814206004143,
-0.007471234537661076,
0.003944117110222578,
0.045001156628131866,
-0.02329982817173004,
0.032074183225631714,
-0.027643568813800812,
0.023108702152967453,
-0.0074755786918103695,
-0.0569898821413517,
0.015185719355940819,
-0.001569176441989839,
0.03233480826020241,
0.011458788998425007,
-0.019373085349798203,
-0.037112925201654434,
0.057858631014823914,
-0.05973512679338455,
-0.04750315472483635,
0.030510438606142998,
-0.035479675978422165,
0.006932610645890236,
0.11043527722358704,
-0.032525934278964996,
0.046217404305934906,
0.009147918783128262,
0.022848078981041908,
0.010668228380382061,
-0.030701562762260437,
0.0110244145616889,
0.014864281751215458,
-0.05281989276409149,
0.0679013580083847,
0.027313444763422012,
0.010642166249454021,
-0.0032968996092677116,
0.015376843512058258,
-0.03787742182612419,
-0.038190171122550964,
-0.04371540993452072,
0.03541017696261406,
0.01886921189725399,
0.021753456443548203,
0.01566353067755699,
0.02630569599568844,
0.046495404094457626,
0.032856058329343796,
-0.03638317435979843,
0.01284878607839346,
-0.0063592372462153435,
-0.012084287591278553,
0.06599011272192001,
0.00681967381387949,
0.06838785856962204,
0.04034466668963432,
0.005234207957983017,
-0.0028712127823382616,
0.04705140367150307,
-0.05441838875412941,
-0.006463486701250076,
-0.016732091084122658,
0.0332556813955307,
0.02078045718371868,
0.004093976225703955,
-0.05243764445185661,
0.0007297485135495663,
0.03504530340433121,
-0.004878021311014891,
0.03600092604756355,
-0.03339468315243721,
-0.01906033605337143,
0.02821694314479828,
-0.043750159442424774,
-0.0063809556886553764,
-0.016063155606389046,
0.02573232166469097,
0.03386380523443222,
-0.006454799324274063,
-0.03236955776810646,
-0.01914721168577671,
-0.050978146493434906,
-0.07790934294462204,
0.00632883096113801,
-0.05872737988829613,
-0.016697341576218605,
0.011389289051294327,
0.004752052947878838,
0.046495404094457626,
-0.07415635138750076,
-0.0335858054459095,
-0.007592859677970409,
-0.015203094109892845,
-0.026097197085618973,
-0.03508005291223526,
0.032769184559583664,
0.0353059284389019,
0.0036096489056944847,
-0.030632061883807182,
0.03666117414832115,
-0.034871552139520645,
0.01674077846109867,
-0.008240076713263988,
-0.027678318321704865,
-0.008635357022285461,
-0.02830381691455841,
0.028946690261363983,
0.018156837671995163,
0.025541197508573532,
-0.011337164789438248,
0.0013107238337397575,
0.025019949302077293,
-0.04910165071487427,
-0.012979098595678806,
-0.0002625248453114182,
0.00014266475045587867,
-0.0007558109355159104,
-0.042394913733005524,
0.0021371205803006887,
0.03613992780447006,
-0.07016010582447052,
-0.044306159019470215,
-0.056121136993169785,
0.04451465979218483,
-0.027487194165587425,
0.05139514431357384,
0.0117020383477211,
0.05573888495564461,
-0.051777392625808716,
0.030614687129855156,
0.013908659107983112,
-0.00568595714867115,
-0.037912171334028244,
-0.010025354102253914,
0.005998706445097923,
-0.010433666408061981,
0.012179850600659847,
-0.017505276948213577,
0.013422160409390926,
-0.00661117397248745,
-0.020432958379387856,
-0.013995533809065819,
0.014012908563017845,
0.008982856757938862,
0.03130968660116196,
-0.04993564635515213,
0.009573605842888355,
-0.06039537861943245,
-0.007410422433167696,
0.06779710948467255,
-0.022292079403996468,
-0.02858181670308113,
-0.016428029164671898,
-0.008852544240653515,
0.02097158133983612,
0.030857937410473824,
0.027521943673491478,
0.0502483993768692,
-0.039684418588876724,
0.009295606054365635,
-0.061924371868371964,
-0.011241601780056953,
-0.08430332690477371,
-0.04124816507101059,
0.005607769824564457,
0.012536036781966686,
-0.07130685448646545,
0.031796183437108994,
0.05132564529776573,
0.02329982817173004,
-0.002564979251474142,
-0.008887294679880142,
-0.05118664726614952,
-0.08194033056497574,
-0.022587453946471214,
-0.037251923233270645,
-0.026079822331666946,
-0.0488584004342556,
0.015246530994772911,
0.046356406062841415,
0.021266955882310867,
-0.03461093083024025,
0.04465365782380104,
0.030718937516212463,
-0.01151091419160366,
0.0123796621337533,
-0.013630659319460392,
0.031188061460852623,
0.028842441737651825,
0.005325426813215017,
-0.06282787024974823,
-0.010007979348301888,
0.0800638347864151,
-0.0349758043885231,
-0.01704484038054943,
-0.03693917393684387,
-0.04510540887713432,
-0.012883536517620087,
0.03342943266034126,
0.08270483464002609,
-0.014664470218122005,
0.037390924990177155,
-0.00558170722797513,
0.009200043976306915,
-0.04260341450572014,
-0.019042961299419403,
-0.06275837123394012,
-0.02965906448662281,
-0.011893163435161114,
-0.05983937904238701,
-0.04124816507101059,
0.026792194694280624,
0.005273301620036364,
-0.02031133323907852,
0.02210095524787903,
0.04573090746998787,
0.12975624203681946,
-0.02489832416176796,
0.050283148884773254,
-0.06338386982679367,
0.02583657205104828,
0.05337589234113693,
-0.03652217611670494,
0.014429908245801926,
0.022830704227089882,
-0.08527632802724838,
-0.017192527651786804,
-0.03944116830825806,
0.03620942682027817,
-0.03205680847167969,
0.0733223482966423,
0.03474992886185646,
-0.011250289157032967,
0.024272825568914413,
0.06508661806583405,
0.03714767470955849,
0.0037768830079585314,
-0.010268604382872581,
-0.05587788671255112,
-0.011337164789438248,
0.03582717850804329,
0.07478184998035431,
0.018052587285637856,
0.019095085561275482,
0.046912405639886856,
-0.0045913346111774445,
0.002588869770988822,
-0.02946794033050537,
0.042429663240909576,
-0.020658832043409348,
0.07050760835409164,
-0.0745733454823494,
-0.03388117998838425,
-0.06550361961126328,
0.009521480649709702,
-0.004730334039777517,
-0.029554814100265503,
0.009790792129933834,
0.08117583394050598,
-0.021075831726193428,
-0.042811911553144455,
-0.04555715620517731,
0.043506912887096405,
0.0072540477849543095,
0.002819088054820895,
0.047850653529167175,
0.026635820046067238,
-0.03301243111491203,
0.024533450603485107,
-0.014082408510148525,
0.0009197872132062912,
0.01687977835536003,
-0.035896677523851395,
-0.021458081901073456,
0.020902082324028015,
0.017218589782714844,
-0.03045831248164177,
0.024880949407815933,
0.016992716118693352,
-0.013760971836745739,
0.0024042606819421053,
0.046634405851364136,
0.03978866711258888,
-0.01296172384172678,
0.002471588784828782,
0.036591675132513046,
-0.0028516659513115883,
-0.0034228679724037647,
0.008982856757938862,
-0.010225166566669941,
0.09014131873846054,
-0.05650338530540466,
-0.020519834011793137,
0.004024476278573275,
0.024185949936509132,
0.00632883096113801,
0.015646155923604965,
0.067171610891819,
0.02957218885421753,
-0.007023829501122236,
0.012770598754286766,
0.009851604700088501,
-0.06449586898088455,
0.005590395070612431,
-0.021840330213308334,
0.002764791250228882,
-0.08214883506298065,
0.02237895503640175,
-0.07888233661651611,
-0.024324949830770493,
0.018330587074160576,
0.05928337946534157,
0.025767073035240173,
0.005134302191436291,
-0.008661420084536076,
-0.06612911820411682,
-0.0468776561319828,
0.05674663558602333,
0.03433293104171753,
-0.009052356705069542,
-0.015924155712127686,
0.009104480966925621,
-0.008735263720154762,
-0.05539138615131378,
0.09201781451702118,
0.018903961405158043,
-0.03690442442893982,
0.00735829770565033,
0.031883060932159424,
0.0529588907957077,
-0.005573019850999117,
-0.008426858112215996,
-0.07519884407520294,
-0.0002636107965372503,
0.02368207648396492,
-0.007692765444517136,
-0.06286261975765228,
-0.08722232282161713,
0.05441838875412941,
-0.02008545957505703,
0.08055033534765244,
-0.021683955565094948,
0.05935287848114967,
-0.025072073563933372,
0.01803521253168583,
0.03593142703175545,
0.006146393716335297,
0.022830704227089882,
-0.002918994054198265,
0.02050245739519596,
-0.02885981649160385,
-0.007353953551501036,
-0.02429020032286644,
0.044167160987854004,
-0.00546442624181509,
-0.08200982958078384,
-0.038363922387361526,
-0.03212631121277809,
0.003839867189526558,
0.03483680263161659,
0.03172668442130089,
-0.0032208841294050217,
0.03815542161464691,
0.08937681466341019,
0.038607172667980194,
0.038190171122550964,
0.05445313826203346,
0.00690220482647419,
0.008635357022285461,
-0.0372866727411747,
-0.03266493231058121,
-0.03634842485189438,
0.01662784069776535,
0.0010267518227919936,
0.011832350865006447,
-0.0012227630941197276,
-0.05792813003063202,
0.07360035181045532,
-0.004098319914191961,
-0.026913819834589958,
-0.019876958802342415,
-0.003044962650164962,
0.059526629745960236,
0.05466163903474808,
0.04381966218352318,
0.038468170911073685,
-0.06460011750459671,
-0.0895853191614151,
-0.03367268294095993,
0.027817318215966225,
0.013317910023033619,
0.026409946382045746,
0.03798167407512665,
0.023004453629255295,
-0.05132564529776573,
-0.050005149096250534,
0.009113169275224209,
0.023560451343655586,
0.04882365092635155,
-0.025819197297096252,
0.02495044842362404,
0.0027865099254995584,
0.0011174273677170277,
-0.0032165402080863714,
-0.033325180411338806,
-0.010511853732168674,
0.0069152358919382095,
-0.009026293642818928,
-0.11314576864242554,
-0.01770508848130703,
-0.020189708098769188,
-0.02891194075345993,
-0.014777407050132751,
-0.025002574548125267,
-0.0011641226010397077,
-0.03638317435979843,
0.015802530571818352,
0.022900203242897987,
0.07373934984207153,
-0.004652146715670824,
-0.023560451343655586,
0.04027516767382622,
-0.03504530340433121,
0.01228410005569458,
-0.001513793831691146,
-0.017036153003573418,
-0.0271396953612566,
0.014699219726026058,
-0.012536036781966686,
-0.04218641296029091,
-0.00542967626824975,
0.018017837777733803,
-0.004133069887757301,
0.004908427596092224,
0.058588381856679916,
0.003746476722881198,
-0.015515843406319618,
0.010911477729678154,
0.03923267126083374,
0.03759942203760147,
-0.02074570767581463,
0.015376843512058258,
-0.010920165106654167,
-0.04503590986132622,
0.01298778597265482,
-0.004406725522130728,
0.007996827363967896,
0.0577196329832077,
-0.02825169265270233,
-0.03433293104171753,
-0.024099076166749,
0.009312980808317661,
0.053827639669179916,
-0.03704342618584633,
-0.012014787644147873,
0.026548946276307106,
-0.0220488291233778,
0.03280393406748772,
0.01198003813624382,
-0.0638008713722229,
-0.015324718318879604,
0.08520682901144028,
0.0037182425148785114,
-0.053271640092134476,
0.05184689536690712,
0.014751344919204712,
0.036174677312374115,
0.038607172667980194,
0.06348811835050583,
-0.046078406274318695,
-0.002336932811886072,
-0.0004593506164383143,
0.0073452661745250225,
0.050700146704912186,
0.0011901850812137127,
-0.018156837671995163,
0.07686684280633926,
-0.003331649350002408,
0.04034466668963432,
-0.07485134899616241,
0.013352660462260246,
0.008778700605034828,
0.0014356063911691308,
-0.07269684970378876,
-0.034124430269002914,
-0.02625357173383236,
-0.04163041338324547,
-0.011736788786947727,
0.02783469296991825,
0.05076964572072029,
-0.048649899661540985,
0.0346456803381443,
-0.02741769328713417,
0.04527915641665459,
0.0144125334918499,
-0.021423330530524254,
0.035618677735328674,
-0.026913819834589958,
-0.04899739846587181,
0.019459960982203484,
0.0019090742571279407,
-0.0021794720087200403,
-0.014977219514548779,
-0.00575545709580183,
-0.03264755755662918,
0.006324487272650003,
0.034680429846048355,
0.049761898815631866,
-0.02111058123409748,
0.025436948984861374,
0.008157545700669289,
-0.004098319914191961,
-0.0468081533908844,
-0.04361116141080856,
-0.03634842485189438,
-0.027626194059848785,
-0.031969934701919556,
0.038085922598838806,
-0.056816134601831436,
0.010616103187203407,
-0.03370743244886398,
0.006706736516207457,
-0.03871142119169235,
-0.0028060567565262318,
-0.013917346484959126,
0.07158485054969788,
0.010424979031085968,
0.01615871675312519,
0.03240430727601051,
0.03078843653202057,
0.008661420084536076,
-0.002395573304966092,
-0.00047292481758631766,
-0.011875788681209087,
0.029641689732670784,
-0.05758063122630119,
-0.01859121210873127,
-0.050005149096250534,
0.001691887155175209,
0.04190841317176819,
0.012805349193513393,
0.009226106107234955,
-0.01972058415412903,
0.03308193385601044,
0.014586282894015312,
-0.005003989674150944,
-0.022900203242897987,
0.051916394382715225,
-0.013239722698926926,
-0.026357822120189667,
-0.009000231511890888,
-0.03881566971540451,
-0.007770952768623829,
0.02816481702029705,
-0.008444232866168022,
-0.03233480826020241,
0.03476730361580849,
0.007562453392893076,
0.014082408510148525,
0.002428151201456785,
-0.0036682893987745047,
-0.0010848493548110127,
-0.0922958105802536,
0.07095935195684433,
-0.012874849140644073,
-0.02312607690691948,
-0.030614687129855156,
-0.011788913048803806,
-0.018938710913062096,
0.0025519479531794786,
0.03282130882143974,
0.008974169380962849,
-0.017757214605808258,
0.02269170433282852,
0.04774640128016472,
0.0009100137976929545,
0.058032382279634476,
0.007180204149335623,
0.01657571643590927,
0.0015300827799364924,
0.01640196703374386,
-0.05389713868498802,
0.007384359836578369,
-0.038329172879457474,
0.012040850706398487,
-0.0332556813955307,
0.011198164895176888,
-0.032856058329343796,
0.010868039913475513,
-0.004061398096382618,
0.008057639934122562,
0.018660711124539375,
0.01999858394265175,
0.00011246217036386952,
0.05038739740848541,
0.03381168097257614,
-0.0047042714431881905,
0.04937965050339699,
-0.0062636747024953365,
0.030614687129855156,
0.08715282380580902,
-0.03909366950392723,
0.018469586968421936,
0.01588071696460247,
-0.023855825886130333,
-0.0909058153629303,
0.07770083844661713,
-0.014872970059514046,
-0.014985906891524792,
0.013048598542809486,
0.045939404517412186,
-0.003433727426454425,
-0.06268887221813202,
-0.02821694314479828,
0.026184070855379105,
0.016150029376149178,
0.06689361482858658,
0.02960694022476673,
-0.02821694314479828,
0.08235733211040497,
0.05306314304471016,
0.008965482003986835,
0.004339397419244051,
0.010616103187203407,
0.027313444763422012,
-0.004500115755945444,
-0.04468840733170509,
-0.0020437301136553288,
0.0018547774525359273,
-0.022917577996850014,
0.017574775964021683,
-0.03370743244886398,
-0.0200333334505558,
0.037251923233270645,
-0.010103542357683182,
-0.04319416359066963,
-0.05184689536690712,
-0.016584403812885284,
0.04937965050339699,
0.07123735547065735,
-0.03638317435979843,
-0.0447579100728035,
0.020710958167910576,
0.03195255994796753,
0.07116785645484924,
0.010980977676808834,
-0.014516782946884632,
0.040101416409015656,
0.054348889738321304,
-0.004280756693333387,
-0.012718474492430687,
-0.0664418637752533,
-0.023994825780391693,
-0.010233853943645954,
-0.044028159230947495,
-0.056642383337020874,
-0.031639810651540756,
0.03975391760468483,
-0.03474992886185646,
-0.03092743642628193,
-0.02634044550359249,
-0.011085227131843567,
0.028460191562771797,
0.031744059175252914,
-0.027521943673491478,
-0.009139231406152248,
0.0400666669011116,
0.007419109810143709,
-0.040935415774583817,
0.034124430269002914,
0.03419392928481102,
-0.05254189297556877,
-0.000970283173955977,
0.01789621263742447,
0.05073489621281624,
-0.05483538657426834,
-0.019929084926843643,
0.009999291971325874,
0.018278462812304497,
-0.07227985560894012,
-0.018521713092923164,
0.011641226708889008,
-0.009191356599330902,
-0.03565342724323273,
0.0015637468313798308,
0.055182889103889465,
0.017053527757525444,
-0.02708756923675537,
0.0002607602218631655,
-0.03690442442893982
] |
17,638 | imodels.rule_list.corels_wrapper | _traverse_rule | Traverse rule and build up string representation
Parameters
----------
df_features
Returns
-------
| def _traverse_rule(self, X: np.ndarray, y: np.ndarray, feature_names: List[str], print_colors=False):
"""Traverse rule and build up string representation
Parameters
----------
df_features
Returns
-------
"""
str_print = f''
df = pd.DataFrame(X, columns=feature_names)
df.loc[:, 'y'] = y
o = 'y'
str_print += f' {df[o].sum()} / {df.shape[0]} (positive class / total)\n'
if print_colors:
color_start = '\033[96m'
color_end = '\033[00m'
else:
color_start = ''
color_end = ''
if len(self.rl_.rules) > 1:
str_print += f'\t\u2193 \n'
else:
str_print += ' No rules learned\n'
for j, rule in enumerate(self.rl_.rules[:-1]):
antecedents = rule['antecedents']
query = ''
for i, feat_idx in enumerate(antecedents):
if i > 0:
query += ' & '
if feat_idx < 0:
query += f'(`{feature_names[-feat_idx - 1]}` == 0)'
else:
query += f'(`{feature_names[feat_idx - 1]}` == 1)'
df_rhs = df.query(query)
idxs_satisfying_rule = df_rhs.index
df.drop(index=idxs_satisfying_rule, inplace=True)
computed_prob = 100 * df_rhs[o].sum() / (df_rhs.shape[0] + 1e-10)
# add to str_print
query_print = query.replace('== 1', '').replace('(', '').replace(')', '').replace('`', '')
str_print += f'{color_start}If {query_print:<35}{color_end} \u2192 {df_rhs[o].sum():>3} / {df_rhs.shape[0]:>4} ({computed_prob:0.1f}%)\n\t\u2193 \n {df[o].sum():>3} / {df.shape[0]:>5}\t \n'
if not (j == len(self.rl_.rules) - 2 and i == len(antecedents) - 1):
str_print += '\t\u2193 \n'
self.str_print = str_print
| (self, X: numpy.ndarray, y: numpy.ndarray, feature_names: List[str], print_colors=False) | [
-0.020581357181072235,
-0.004054336808621883,
-0.021477028727531433,
0.00672229053452611,
0.028070684522390366,
-0.010538417845964432,
-0.04360198602080345,
0.003718460677191615,
0.03454999998211861,
-0.057818371802568436,
0.007012906949967146,
0.022906288504600525,
0.03390207141637802,
0.007660838775336742,
-0.0320345014333725,
-0.002706067403778434,
0.017274999991059303,
0.033539991825819016,
0.05080546438694,
0.016455557197332382,
-0.0157790407538414,
0.00196642498485744,
0.043754443526268005,
-0.003839947748929262,
0.003930467646569014,
-0.020981550216674805,
0.0037017858121544123,
-0.003349234815686941,
-0.0416581928730011,
0.0019390307134017348,
-0.057589687407016754,
-0.02953805960714817,
-0.057208552956581116,
-0.00675087608397007,
-0.032815832644701004,
-0.0525968037545681,
-0.0011582969455048442,
0.0002440165262669325,
0.017313115298748016,
-0.016360273584723473,
-0.03254903480410576,
0.000809914548881352,
-0.00955699197947979,
-0.00702719995751977,
-0.10237319767475128,
-0.04611748829483986,
-0.0477563738822937,
0.04615560173988342,
-0.014807143248617649,
-0.09353083372116089,
-0.01263466663658619,
-0.05503607541322708,
0.027460867539048195,
0.048518646508455276,
0.027670491486787796,
-0.016093477606773376,
-0.03853287547826767,
-0.012034377083182335,
0.0736355260014534,
-0.0556458942592144,
0.042839713394641876,
0.028470877557992935,
-0.04550766944885254,
0.04600314795970917,
0.012777592986822128,
-0.054883621633052826,
-0.018561335280537605,
0.020486073568463326,
0.03136751428246498,
-0.02620311826467514,
-0.046079374849796295,
0.016093477606773376,
0.10183960944414139,
0.0008093190263025463,
-0.03628417104482651,
-0.03782777488231659,
-0.02488819696009159,
-0.05747534707188606,
0.03893306851387024,
-0.030567128211259842,
0.012053433805704117,
0.031519968062639236,
0.04402123764157295,
-0.06117236986756325,
0.025764811784029007,
-0.037465695291757584,
0.053854554891586304,
0.04897600784897804,
-0.005040526855736971,
-0.006827102974057198,
-0.016665183007717133,
0.0004954771138727665,
-0.00892335269600153,
0.0037398994900286198,
-0.012024848721921444,
0.04752768948674202,
-0.017741892486810684,
0.004849958699196577,
0.009880957193672657,
-0.043335191905498505,
0.04024798795580864,
0.0451265312731266,
-0.02012399397790432,
0.08202052116394043,
-0.014530819840729237,
-0.003928085323423147,
-0.06147727742791176,
0.021496085450053215,
0.0022534681484103203,
-0.02446894720196724,
-0.07927633821964264,
0.03792305663228035,
0.05000507831573486,
-0.035979263484478,
0.03956194221973419,
-0.03380678594112396,
-0.064907506108284,
-0.029061639681458473,
-0.04184876009821892,
-0.004635569639503956,
0.06231577694416046,
-0.02681293524801731,
-0.02075286954641342,
0.023382708430290222,
-0.05271114408969879,
-0.0021558019798249006,
0.01760849542915821,
0.03327319398522377,
0.06220143660902977,
-0.05705609917640686,
0.021896278485655785,
0.012196360155940056,
-0.007794236298650503,
0.04741334915161133,
0.029004469513893127,
-0.019704744219779968,
-0.01866614818572998,
-0.010862383060157299,
0.03472151234745979,
-0.03956194221973419,
0.07942879945039749,
-0.06936679780483246,
-0.03176770731806755,
-0.06323050707578659,
0.009666568599641323,
0.011224462650716305,
-0.01718924567103386,
0.06650827825069427,
-0.016226876527071,
-0.025421788915991783,
0.001472138799726963,
0.006098180077970028,
0.021610425785183907,
-0.06037198379635811,
0.06734677404165268,
0.06719432026147842,
-0.0341879203915596,
-0.025307446718215942,
0.0186470914632082,
-0.013311184011399746,
0.0008932881173677742,
-0.08186806738376617,
-0.07493139058351517,
0.027670491486787796,
0.003365909680724144,
0.017456039786338806,
0.0017032026080414653,
-0.007031964138150215,
-0.016284046694636345,
0.014635631814599037,
0.017122546210885048,
-0.050614893436431885,
-0.046384282410144806,
0.060028959065675735,
-0.027537094429135323,
0.06361164152622223,
-0.0059409611858427525,
0.051339052617549896,
-0.0175132118165493,
0.05156773701310158,
0.02728935517370701,
-0.011005309410393238,
-0.04078157991170883,
-0.0643739104270935,
0.01440695021301508,
0.0004576612845994532,
0.021591369062662125,
-0.02618406154215336,
-0.007265409920364618,
0.06456448137760162,
-0.04318273812532425,
-0.04790882766246796,
0.03264432027935982,
0.033235080540180206,
0.03258714824914932,
-0.06334484368562698,
-0.013463638722896576,
0.036379456520080566,
0.018913887441158295,
-0.0534353032708168,
0.009614162147045135,
0.0394476018846035,
-0.0014638014836236835,
0.03264432027935982,
-0.05732289329171181,
-0.012282115407288074,
-0.035655297338962555,
0.0705864354968071,
-0.07881897687911987,
-0.027060674503445625,
-0.009104392491281033,
-0.030109765008091927,
0.017456039786338806,
0.02357327751815319,
0.026336515322327614,
0.022334584966301918,
0.024602346122264862,
0.037789661437273026,
-0.033730559051036835,
-0.018113501369953156,
-0.0071415407583117485,
-0.06772791594266891,
-0.005631288047879934,
-0.016407916322350502,
0.012891934253275394,
-0.044859737157821655,
0.04710844159126282,
0.02105777896940708,
0.024602346122264862,
-0.0320345014333725,
0.010166809894144535,
-0.06376409530639648,
0.052939824759960175,
0.012148718349635601,
0.04882355406880379,
-0.00497859250754118,
0.0008700626203790307,
0.08324015885591507,
-0.013844774104654789,
0.04287783056497574,
-0.05633193999528885,
-0.023382708430290222,
0.001593625987879932,
-0.029099753126502037,
0.003549331333488226,
0.06620337069034576,
0.10709928721189499,
-0.025059709325432777,
-0.03481679782271385,
-0.010738514363765717,
-0.03224412724375725,
-0.03014787845313549,
-0.005731336306780577,
-0.04047666862607002,
-0.046765416860580444,
-0.08255411684513092,
-0.008356412872672081,
0.0003710123128257692,
0.047489576041698456,
-0.022182129323482513,
-0.003401641035452485,
0.008423111401498318,
0.01345410943031311,
-0.006426909938454628,
-0.0008766133687458932,
0.016893863677978516,
-0.006798517890274525,
-0.019314080476760864,
0.03115788847208023,
-0.02073381282389164,
-0.04935714602470398,
0.01627451740205288,
-0.03611265867948532,
0.048099394887685776,
-0.01899964176118374,
0.05545532703399658,
-0.00956652034074068,
0.009090099483728409,
-0.009166327305138111,
0.017989631742239,
0.04074346646666527,
-0.03428320586681366,
-0.037884943187236786,
0.033539991825819016,
-0.037389468401670456,
-0.01720830239355564,
-0.01102436613291502,
0.003382584312930703,
0.004547432065010071,
-0.023916300386190414,
-0.004599838051944971,
-0.0368177630007267,
0.07744688540697098,
0.021477028727531433,
0.08758511394262314,
0.02618406154215336,
0.050424326211214066,
-0.060829345136880875,
0.0005988007760606706,
0.001330403727479279,
0.0010737322736531496,
-0.010938610881567001,
0.11822846531867981,
-0.03209167346358299,
-0.06871886551380157,
-0.03308262676000595,
-0.00235113431699574,
-0.01536931935697794,
0.04146762564778328,
-0.046765416860580444,
0.019742857664823532,
0.017856232821941376,
0.060028959065675735,
0.0012672781012952328,
-0.0402861014008522,
-0.026355572044849396,
-0.04531710222363472,
-0.01702726259827614,
0.059228572994470596,
0.048289962112903595,
-0.039485715329647064,
-0.0034326084423810244,
0.024316493421792984,
0.0007878800970502198,
0.043144624680280685,
-0.013072974048554897,
0.03933326154947281,
-0.02101966366171837,
0.01953323371708393,
-0.04600314795970917,
0.018961528316140175,
-0.02012399397790432,
0.040514785796403885,
-0.01486431434750557,
0.0019878637976944447,
-0.025307446718215942,
0.0026584253646433353,
0.04268725961446762,
-0.013530337251722813,
-0.011538900434970856,
0.008342119865119457,
0.03454999998211861,
-0.0049404785968363285,
0.03279677405953407,
0.05667496100068092,
-0.015016768127679825,
-0.048099394887685776,
0.017722835764288902,
0.03285394608974457,
0.05149150639772415,
0.029595229774713516,
-0.005393078085035086,
-0.007913341745734215,
0.05671307444572449,
-0.0013875741278752685,
0.010805212892591953,
-0.01481667160987854,
-0.021172119304537773,
0.012710894457995892,
-0.008937644772231579,
0.04794694110751152,
-0.03033844567835331,
-0.03529321774840355,
0.060028959065675735,
0.010405019856989384,
-0.028261253610253334,
-0.010157281532883644,
0.034245092421770096,
0.020047767087817192,
-0.01351128052920103,
-0.030509958043694496,
0.00958081241697073,
0.044859737157821655,
-0.018732847645878792,
-0.04200121387839317,
0.052558690309524536,
0.04238235205411911,
-0.011415030807256699,
0.05888555198907852,
-0.02134362980723381,
0.011376917362213135,
0.05656062066555023,
-0.014635631814599037,
0.047070328146219254,
-0.007446449715644121,
-0.058809325098991394,
-0.05389266833662987,
-0.009671332314610481,
0.03531227260828018,
-0.01655084267258644,
0.03571246564388275,
0.009390244260430336,
0.0499669648706913,
-0.05160585045814514,
-0.006984321866184473,
-0.022029675543308258,
-0.005778978578746319,
0.0521775521337986,
-0.053740210831165314,
0.00716059748083353,
-0.05652250722050667,
-0.03538850322365761,
-0.009504585526883602,
-0.0201430507004261,
-0.06502184271812439,
0.03475962579250336,
0.05705609917640686,
0.041620079427957535,
-0.041810646653175354,
0.06909999996423721,
0.0017639462603256106,
0.01831359788775444,
-0.010023883543908596,
-0.007289230823516846,
-0.04897600784897804,
-0.006946208421140909,
0.040705353021621704,
0.03106260485947132,
0.03668436408042908,
0.051834531128406525,
0.00022778846323490143,
-0.03230129927396774,
0.042954057455062866,
0.020181164145469666,
0.00874707754701376,
0.011072007939219475,
-0.06029575690627098,
-0.016893863677978516,
-0.0036732007283717394,
0.042534805834293365,
-0.06189652904868126,
-0.04756580665707588,
-0.020390789955854416,
-0.04200121387839317,
0.017579909414052963,
-0.025860095396637917,
-0.016512729227542877,
0.042420465499162674,
0.019295023754239082,
0.019047284498810768,
0.04219178482890129,
-0.016103006899356842,
0.0586949847638607,
0.043640103191137314,
-0.02822314016520977,
0.0030085942707955837,
0.001180926919914782,
-0.05469305440783501,
-0.11449333280324936,
0.019075870513916016,
0.004242523107677698,
0.057704027742147446,
0.032720547169446945,
-0.0020795746240764856,
-0.032453753054142,
0.03975251317024231,
0.017875289544463158,
0.009080571122467518,
0.009056750684976578,
0.05797082558274269,
0.052444349974393845,
0.04619371518492699,
-0.0066603561863303185,
0.0636497512459755,
-0.058199506253004074,
-0.05252057686448097,
-0.0006556734442710876,
0.018446994945406914,
-0.07912388443946838,
-0.023306481540203094,
-0.028242196887731552,
-0.04329707846045494,
-0.015397904440760612,
-0.04215367138385773,
-0.021515142172574997,
0.06559354811906815,
-0.026851048693060875,
-0.013806660659611225,
-0.0039376141503453255,
0.005116754211485386,
-0.04588880389928818,
-0.03822796791791916,
-0.011453144252300262,
-0.008037210442125797,
0.020009653642773628,
0.04398312419652939,
-0.0038613867945969105,
-0.021896278485655785,
0.008737548254430294,
-0.022830061614513397,
-0.001916400738991797,
-0.03123411536216736,
0.008108673617243767,
0.022067788988351822,
0.0010248991893604398,
0.007732301950454712,
0.05286359786987305,
-0.004156767390668392,
-0.007494091521948576,
-0.0225632656365633,
0.007570318877696991,
-0.00820872187614441,
-0.043945010751485825,
-0.00632209749892354,
0.04447860270738602,
-0.01829454116523266,
0.008804247714579105,
0.030814865604043007,
-0.047375235706567764,
-0.004514082334935665,
-0.014197325333952904,
-0.02681293524801731,
0.041810646653175354,
0.0014399804640561342,
-0.0390283539891243,
0.008789954707026482,
-0.0022284560836851597,
0.03956194221973419,
0.0034230800811201334,
0.029995422810316086,
-0.01972380094230175,
-0.022887231782078743,
-0.029881082475185394,
-0.027155958116054535,
0.001455464051105082,
0.08910965919494629,
0.05107225850224495,
0.025955379009246826,
0.031805820763111115,
-0.05945725739002228,
0.010757571086287498,
-0.004104360938072205,
0.03963816910982132,
0.04135328531265259,
0.0032610970083624125,
0.03801834210753441,
0.039295148104429245,
-0.06243011727929115,
0.020981550216674805,
0.024430833756923676,
0.0679565966129303,
0.017922932282090187,
-0.007608432322740555,
-0.03367338702082634,
-0.01087191142141819,
-0.009995298460125923,
0.04104837402701378,
-0.007031964138150215,
0.0023011101875454187,
0.017008205875754356,
-0.003970963414758444,
0.03782777488231659,
-0.015493188984692097,
0.03918080776929855,
0.0872039720416069,
0.09116779267787933,
0.011291161179542542,
0.051643963903188705,
0.017646608874201775,
-0.006760404445230961,
-0.02305874414741993,
-0.07218720763921738,
0.03300639986991882,
-0.06627959758043289,
0.000008811914995021652,
-0.011376917362213135,
0.009623690508306026,
0.023439880460500717,
-0.07874274998903275,
-0.0077180094085633755,
-0.0022344111930578947,
0.00316104874946177,
-0.0037065499927848577,
-0.016331689432263374,
-0.05854252725839615,
-0.04958582669496536,
0.02517404966056347,
0.008870946243405342,
0.003611265914514661,
0.005116754211485386,
-0.03472151234745979,
0.018913887441158295,
-0.0020235953852534294,
-0.04310651123523712,
0.016160177066922188,
0.02517404966056347,
0.007613196503371,
0.05492173507809639,
0.016398387029767036,
-0.05938103049993515,
-0.05530286952853203,
-0.014302138239145279,
0.0008259937167167664,
-0.0705864354968071,
-0.030014479532837868,
0.019857199862599373,
-0.005731336306780577,
0.012005791999399662,
0.01359703578054905,
0.028661446645855904,
-0.044249918311834335,
0.024659516289830208,
0.02498348243534565,
-0.0008831641753204167,
0.020886266604065895,
-0.018075386062264442,
0.042725373059511185,
-0.004552196245640516,
-0.03552189841866493,
-0.03449283167719841,
-0.010843326337635517,
0.04836619272828102,
0.03542661666870117,
-0.03115788847208023,
-0.031386569142341614,
-0.04611748829483986,
-0.0071320123970508575,
0.025860095396637917,
-0.022487038746476173,
-0.022067788988351822,
-0.0035683882888406515,
-0.0016686621820554137,
-0.024602346122264862,
0.03879966959357262,
0.008270656690001488,
0.05160585045814514,
0.017922932282090187,
-0.07927633821964264,
-0.0005550296627916396,
-0.03454999998211861,
-0.04360198602080345,
0.0013315947726368904,
-0.007875228300690651,
-0.03277771919965744,
-0.02702256105840206,
-0.010452661663293839,
0.04036232829093933,
0.02164853923022747,
-0.04409746453166008,
-0.06391654908657074,
-0.06231577694416046,
-0.01319684274494648,
0.005545532330870628,
-0.006012424360960722,
-0.012682309374213219,
0.01385430246591568,
-0.004540285561233759,
-0.008022918365895748,
0.09093911200761795,
0.030986377969384193,
-0.005831384565681219,
0.06445013731718063,
-0.027842003852128983,
0.013463638722896576,
0.020695699378848076,
0.05027187243103981,
-0.005578882060945034,
0.00959034077823162,
0.013720905408263206,
-0.031805820763111115,
0.0009951229440048337,
-0.00851363129913807,
0.03014787845313549,
-0.015045354142785072,
0.007327344734221697,
0.01669376716017723,
0.09314969927072525,
0.026260288432240486,
0.006812810432165861,
0.008318298496305943,
-0.030872037634253502,
0.005602702964097261,
-0.01918068155646324,
0.004445001482963562,
0.005798035301268101,
-0.01087191142141819,
0.008504102937877178,
-0.023744788020849228,
0.04447860270738602,
-0.062048982828855515,
-0.019990596920251846,
0.026831991970539093,
-0.017427455633878708,
-0.03893306851387024,
0.021381743252277374,
0.049928851425647736,
0.014435535296797752,
-0.0064888447523117065,
0.024144981056451797,
-0.0705864354968071,
-0.09444556385278702,
0.02486914023756981,
0.04379255697131157,
-0.0067365835420787334,
-0.007770415395498276,
-0.007470270618796349,
-0.033330366015434265,
-0.008813776075839996,
0.058923665434122086,
-0.023687617853283882,
0.02852804958820343,
-0.023001573979854584,
-0.0022344111930578947,
0.027136901393532753,
0.016055364161729813,
0.04836619272828102,
-0.018275482580065727,
0.0022510860580950975,
-0.011214934289455414,
-0.03449283167719841,
-0.015264507383108139,
0.056598734110593796,
0.00591237610206008,
-0.009390244260430336,
-0.04882355406880379,
-0.01481667160987854,
-0.024011583998799324,
-0.012510797940194607,
-0.03517887741327286,
-0.022372698411345482,
0.05854252725839615,
0.04508841782808304,
0.02761332131922245,
0.023420823737978935,
-0.040819693356752396,
0.019009171053767204,
-0.0175132118165493,
-0.03336847946047783,
0.011072007939219475,
-0.05381643772125244,
0.0050071775913238525,
0.0661652535200119,
-0.002434507943689823,
0.030700525268912315,
-0.03836136311292648,
0.006407853215932846,
0.005550296511501074,
-0.0644882544875145,
0.03982874006032944,
0.047184668481349945,
-0.006717526353895664,
0.02324931137263775,
-0.017627552151679993,
-0.03906646743416786,
0.013130144216120243,
0.07043398171663284,
-0.009399772621691227,
0.07317816466093063,
0.01279664970934391,
-0.04794694110751152,
0.07089134305715561,
-0.010910025797784328,
0.011662769131362438,
0.039409488439559937,
0.06140105053782463,
0.012958632782101631,
0.054883621633052826,
-0.05080546438694,
-0.028165969997644424,
-0.0481756217777729,
-0.007822821848094463,
0.002980009187012911,
-0.007427392993122339,
0.05774214118719101,
0.01805632933974266,
-0.010176338255405426,
0.018094444647431374,
0.015512245707213879
] |
17,642 | imodels.rule_list.corels_wrapper | fit |
Build a CORELS classifier from the training set (X, y).
Parameters
----------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8.
y : array-line, shape = [n_samples]
The target values for the training input. Must be binary.
feature_names : list, optional(default=None)
A list of strings of length n_features. Specifies the names of each
of the features. If an empty list is provided, the feature names
are set to the default of ["feature1", "feature2"... ].
prediction_name : string, optional(default="prediction")
The name of the feature that is being predicted.
Returns
-------
self : obj
| def fit(self, X, y, feature_names=None, prediction_name="prediction"):
"""
Build a CORELS classifier from the training set (X, y).
Parameters
----------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8.
y : array-line, shape = [n_samples]
The target values for the training input. Must be binary.
feature_names : list, optional(default=None)
A list of strings of length n_features. Specifies the names of each
of the features. If an empty list is provided, the feature names
are set to the default of ["feature1", "feature2"... ].
prediction_name : string, optional(default="prediction")
The name of the feature that is being predicted.
Returns
-------
self : obj
"""
if isinstance(X, pd.DataFrame):
if feature_names is None:
feature_names = X.columns.tolist()
X = X.values
elif feature_names is None:
feature_names = ['X_' + str(i) for i in range(X.shape[1])]
# check if any non-binary values
if not np.isin(X, [0, 1]).all().all():
self.discretizer = KBinsDiscretizer(encode='onehot-dense')
self.discretizer.fit(X, y)
"""
feature_names = [f'{col}_{b}'
for col, bins in zip(feature_names, self.discretizer.n_bins_)
for b in range(bins)]
"""
feature_names = self.discretizer.get_feature_names_out()
X = self.discretizer.transform(X)
np.random.seed(self.random_state)
# feature_names = feature_names.tolist()
super().fit(X, y, features=feature_names, prediction_name=prediction_name)
# try:
self._traverse_rule(X, y, feature_names)
# except:
# self.str_print = None
self.complexity_ = self._get_complexity()
return self
| (self, X, y, feature_names=None, prediction_name='prediction') | [
-0.02658756636083126,
-0.05145728588104248,
0.01328402291983366,
-0.002337636658921838,
-0.015704622492194176,
-0.051769621670246124,
-0.04770926013588905,
0.027524571865797043,
0.07074400782585144,
-0.026197146624326706,
-0.034220267087221146,
0.01593887433409691,
0.003201439743861556,
-0.003569897962734103,
0.002020420739427209,
0.004497144371271133,
-0.001465293113142252,
-0.034200746566057205,
-0.02578720636665821,
0.01243485976010561,
-0.0015055551193654537,
0.021141214296221733,
-0.030042778700590134,
0.04423452541232109,
0.003694344311952591,
0.014884741976857185,
0.023932714015245438,
0.01622192934155464,
-0.022195346653461456,
-0.00312823592685163,
-0.03667990863323212,
0.03781212493777275,
-0.08354976773262024,
0.007178837899118662,
0.005607399623841047,
-0.037421707063913345,
0.027173195034265518,
-0.005895333830267191,
0.03129212185740471,
-0.02174636535346508,
-0.060749270021915436,
-0.07624892145395279,
-0.007237400859594345,
-0.0008625829941593111,
-0.05633753165602684,
0.0152068380266428,
-0.050325069576501846,
0.05059836432337761,
0.00838425848633051,
-0.049349021166563034,
-0.03562577813863754,
-0.07468724250793457,
0.00999473873525858,
0.008696593344211578,
-0.02077031508088112,
0.05235525220632553,
0.03707033023238182,
0.014406478963792324,
0.02174636535346508,
-0.003994479309767485,
0.0036650628317147493,
-0.0013567076530307531,
0.018876781687140465,
0.025455350056290627,
-0.009057731367647648,
0.0014018499059602618,
-0.029105771332979202,
0.01928672194480896,
0.02242959849536419,
0.03937380388379097,
0.012210369110107422,
-0.03068697080016136,
-0.014416239224374294,
0.055088188499212265,
0.009301743470132351,
0.012981447391211987,
-0.06199861317873001,
-0.047045547515153885,
0.018095942214131355,
-0.025162534788250923,
-0.005392668768763542,
0.033185653388500214,
-0.01439671777188778,
-0.0872197076678276,
-0.02406936138868332,
-0.05625944584608078,
0.04806063696742058,
0.01672947406768799,
0.013889173045754433,
0.03552817180752754,
-0.0466160848736763,
0.060632143169641495,
0.023483730852603912,
0.039783746004104614,
0.02561151795089245,
0.02084839902818203,
-0.028012597933411598,
0.026997506618499756,
0.03587954863905907,
-0.01782264932990074,
0.009267582558095455,
0.029398586601018906,
-0.0005728185642510653,
0.08620461821556091,
-0.021961094811558723,
-0.002442561788484454,
-0.0067932987585663795,
0.005778208374977112,
-0.03131164237856865,
-0.05778208002448082,
-0.0674254447221756,
-0.014377197250723839,
0.05387788638472557,
-0.00624671159312129,
-0.07296939939260483,
-0.042907100170850754,
-0.05044219642877579,
-0.015402047894895077,
-0.06672269105911255,
-0.022175826132297516,
-0.024537863209843636,
-0.006334555801004171,
-0.03443499654531479,
-0.018193546682596207,
-0.018164265900850296,
0.02803211845457554,
0.03140924498438835,
0.037382666021585464,
0.04712362959980965,
-0.08269084244966507,
0.03357607498764992,
-0.0072715627029538155,
-0.006637130863964558,
0.02018468640744686,
0.031194515526294708,
-0.06539525836706161,
0.007183718495070934,
-0.001277403673157096,
0.028246847912669182,
-0.00966776255518198,
0.09221708029508591,
-0.030081819742918015,
0.03783164545893669,
0.024264570325613022,
0.035040147602558136,
0.02976948395371437,
0.042907100170850754,
-0.027524571865797043,
-0.032717153429985046,
0.02647043950855732,
-0.004531306214630604,
0.01687588170170784,
0.01411366369575262,
-0.07800581306219101,
-0.03056984394788742,
0.01853516511619091,
-0.02006756141781807,
-0.04353177174925804,
0.014601687900722027,
0.011331925168633461,
-0.0014713933924213052,
-0.01863276958465576,
-0.04017416387796402,
-0.027524571865797043,
-0.0029842688236385584,
0.0384172759950161,
-0.018798697739839554,
-0.026294751092791557,
-0.0016251211054623127,
0.03763643652200699,
0.016631869599223137,
-0.04259476438164711,
-0.008794198743999004,
0.021394986659288406,
-0.02170732244849205,
0.037538833916187286,
0.009506714530289173,
0.020457981154322624,
0.01278623752295971,
0.08073874562978745,
0.04907572641968727,
-0.01248366292566061,
-0.0756242498755455,
-0.052003875374794006,
0.015187317505478859,
0.029496191069483757,
-0.012142045423388481,
0.026138583198189735,
0.00026246558991260827,
0.039061468094587326,
0.02805163897573948,
-0.01688564196228981,
0.02963283844292164,
0.04115021228790283,
0.012571507133543491,
-0.04036937281489372,
-0.004968087654560804,
0.013625639490783215,
0.00879907887428999,
0.005168177653104067,
0.004160407464951277,
0.052589502185583115,
0.04977848380804062,
-0.029379066079854965,
-0.02096552588045597,
0.03837823495268822,
-0.016544025391340256,
0.03384936973452568,
-0.0420091338455677,
-0.044585902243852615,
0.015421569347381592,
-0.018183786422014236,
-0.04368793964385986,
0.03931524232029915,
0.044663988053798676,
0.0038895539473742247,
0.014162465929985046,
-0.046811293810606,
-0.03474733233451843,
-0.033380866050720215,
0.040564581751823425,
0.014611449092626572,
-0.028324931859970093,
-0.00016043800860643387,
-0.018915822729468346,
-0.0289105623960495,
0.05048123747110367,
-0.012151805683970451,
0.04423452541232109,
-0.059851303696632385,
-0.03464972972869873,
-0.08753204345703125,
0.02645091898739338,
-0.013332825154066086,
0.012766717001795769,
-0.013518273830413818,
0.050403155386447906,
0.053370341658592224,
-0.04173584282398224,
0.013996537774801254,
0.0031038348097354174,
0.0000851754957693629,
-0.015558215789496899,
-0.054229263216257095,
0.007344766519963741,
0.023913193494081497,
0.052667587995529175,
0.020282290875911713,
0.006744496524333954,
-0.002801259746775031,
-0.016631869599223137,
-0.04767021909356117,
-0.00805240124464035,
-0.03626997023820877,
0.004706994630396366,
-0.10892703384160995,
0.019052470102906227,
-0.03377128392457962,
0.052823755890131,
-0.0008253711857832968,
-0.026177626103162766,
0.04177488386631012,
-0.019628338515758514,
0.09440343081951141,
-0.05235525220632553,
-0.0015702183591201901,
-0.015655821189284325,
0.016387857496738434,
0.034239787608385086,
-0.007901114411652088,
-0.02166828140616417,
0.029047207906842232,
-0.024654990062117577,
0.02248816192150116,
-0.011595458723604679,
0.021883010864257812,
-0.050403155386447906,
-0.07304748147726059,
0.012991207651793957,
0.015216599218547344,
0.04899764433503151,
-0.0452105738222599,
0.014562645927071571,
0.004797279369086027,
0.008198808878660202,
-0.02006756141781807,
-0.05938280001282692,
-0.026802297681570053,
-0.007095873821526766,
-0.03472781181335449,
-0.004826560616493225,
0.05465872585773468,
0.05403405427932739,
0.03859296441078186,
0.05399501323699951,
-0.012971687130630016,
0.02578720636665821,
-0.053487468510866165,
0.030784575268626213,
-0.015528934076428413,
-0.01287408173084259,
0.0026524122804403305,
0.0014884741976857185,
-0.052823755890131,
-0.006559046916663647,
-0.08112916350364685,
0.050129860639572144,
-0.013157135806977749,
-0.05711836740374565,
0.05797729268670082,
0.046303749084472656,
0.054971061646938324,
0.03468877077102661,
-0.04278997331857681,
-0.05778208002448082,
-0.02976948395371437,
0.05778208002448082,
0.014572407118976116,
0.06926041096448898,
0.014552885666489601,
-0.025123493745923042,
-0.032560985535383224,
-0.010775577276945114,
-0.010111864656209946,
-0.0014933544443920255,
0.016661150380969048,
0.04849009960889816,
0.004314135294407606,
-0.02098504640161991,
-0.0323072113096714,
0.04435165226459503,
-0.03591858968138695,
0.023151874542236328,
0.013811089098453522,
0.01408438291400671,
0.006241831462830305,
0.0289105623960495,
0.02244911901652813,
0.004433701280504465,
-0.014582167379558086,
-0.011390487663447857,
0.015323963947594166,
-0.054229263216257095,
0.029359543696045876,
-0.02580672688782215,
-0.0011157456319779158,
0.0340055376291275,
0.011566177010536194,
0.0452105738222599,
0.060046516358852386,
-0.03461068496108055,
-0.04809967800974846,
0.051066868007183075,
0.06395070999860764,
0.03476685285568237,
0.003159957705065608,
-0.054971061646938324,
0.0011883393162861466,
0.04247763752937317,
-0.07609275728464127,
0.028637267649173737,
-0.03205343708395958,
-0.028695831075310707,
0.02959379553794861,
-0.02652900293469429,
0.0021961096208542585,
-0.06738640367984772,
0.050286028534173965,
0.0010998848592862487,
-0.026353314518928528,
-0.0031867988873273134,
0.013069291599094868,
-0.02658756636083126,
0.014630969613790512,
0.00958967860788107,
0.04118925333023071,
-0.022780975326895714,
0.006846981588751078,
-0.003469852963462472,
0.045366741716861725,
-0.018125224858522415,
0.02100456692278385,
-0.026685170829296112,
0.006476082839071751,
-0.006427280604839325,
-0.018076421692967415,
-0.026802297681570053,
-0.040486499667167664,
0.09690210968255997,
-0.01919887773692608,
0.025884810835123062,
-0.0034210507292300463,
-0.016446420922875404,
-0.019852830097079277,
-0.06195956841111183,
-0.05395597219467163,
0.05294087901711464,
0.050286028534173965,
-0.009189498610794544,
-0.035001106560230255,
-0.0338103249669075,
0.017110133543610573,
0.011644260957837105,
0.013840369880199432,
-0.031721580773591995,
0.06016363948583603,
0.0496223159134388,
-0.032385293394327164,
-0.023717982694506645,
0.050949741154909134,
0.00036845836439169943,
0.04427356645464897,
0.015763185918331146,
-0.022780975326895714,
-0.07839623093605042,
0.02504540979862213,
0.003694344311952591,
0.021180257201194763,
0.062310948967933655,
0.02397175505757332,
0.010043540969491005,
0.018086181953549385,
0.028461579233407974,
0.02344468981027603,
-0.01683684065937996,
0.041423507034778595,
-0.021473070606589317,
-0.02812972292304039,
0.021941574290394783,
-0.06344316154718399,
-0.11931218951940536,
-0.004728955682367086,
-0.11002020537853241,
0.0026621727738529444,
-0.045366741716861725,
-0.030355114489793777,
-0.034103140234947205,
0.012639830820262432,
-0.046850334852933884,
-0.0007912094588391483,
-0.029300982132554054,
-0.07484341412782669,
0.041423507034778595,
0.011370967142283916,
-0.03689464181661606,
-0.04251668229699135,
-0.0370117649435997,
-0.01241533923894167,
-0.07691263407468796,
-0.013801327906548977,
0.021414507180452347,
-0.009936175309121609,
-0.0005886793369427323,
0.04122829809784889,
-0.004153087269514799,
0.016407378017902374,
0.04720171540975571,
-0.013977017253637314,
0.06570759415626526,
-0.00272317579947412,
-0.003482053754851222,
0.013967256993055344,
0.04731883853673935,
0.0420091338455677,
-0.03363463655114174,
0.016456181183457375,
0.024615947157144547,
0.024498822167515755,
-0.0042994944378733635,
-0.02088744193315506,
0.04442973434925079,
-0.022214867174625397,
0.0608273521065712,
-0.014260071329772472,
-0.0104534812271595,
0.058289628475904465,
-0.01756887696683407,
0.0218049269169569,
0.015245880000293255,
-0.042907100170850754,
0.030765054747462273,
-0.023464210331439972,
0.018662050366401672,
-0.004565467592328787,
-0.00038980942917987704,
-0.0546196848154068,
0.004411740228533745,
-0.03228769078850746,
-0.013947735540568829,
0.012337255291640759,
-0.016241449862718582,
0.052823755890131,
0.016592826694250107,
0.018105702474713326,
0.007652221713215113,
0.029418107122182846,
0.04349273070693016,
0.0015092152170836926,
-0.00580748962238431,
-0.0014738334575667977,
-0.01677827723324299,
0.02557247504591942,
-0.06199861317873001,
-0.004560587462037802,
0.027602655813097954,
0.011146475560963154,
-0.03187774866819382,
-0.003762667765840888,
-0.049505189061164856,
-0.00931638479232788,
-0.07285227626562119,
-0.05130111798644066,
0.0416187159717083,
0.020906962454319,
-0.010951266624033451,
0.015763185918331146,
0.013830609619617462,
0.03213152289390564,
-0.04122829809784889,
0.023581335321068764,
0.012015159241855145,
0.0339079312980175,
0.038222067058086395,
-0.026236187666654587,
-0.00017843389650806785,
0.06305274367332458,
0.048724349588155746,
-0.01526540145277977,
0.06559047102928162,
0.048724349588155746,
-0.022351514548063278,
-0.024362174794077873,
0.0030623527709394693,
0.08534569293260574,
-0.004494704306125641,
0.01617312617599964,
-0.018095942214131355,
-0.02155115455389023,
0.06078831106424332,
-0.00682746060192585,
0.0003532076079864055,
0.019062230363488197,
0.0340055376291275,
0.033400386571884155,
-0.02647043950855732,
-0.04927093908190727,
0.0044263806194067,
0.04603045433759689,
-0.006729855667799711,
0.00881859939545393,
-0.02740744687616825,
-0.009921534918248653,
0.004870482720434666,
0.008272012695670128,
0.042985182255506516,
0.006798178888857365,
0.015402047894895077,
0.0544244758784771,
0.014377197250723839,
0.023854630067944527,
-0.0628184899687767,
0.026977986097335815,
0.11220655590295792,
-0.06195956841111183,
0.02582624740898609,
0.046303749084472656,
-0.037538833916187286,
0.03749978914856911,
-0.03705080971121788,
-0.041345421224832535,
0.03921763598918915,
0.010961026884615421,
-0.042985182255506516,
0.0718371793627739,
-0.0690261647105217,
0.07769347727298737,
0.0005868492880836129,
-0.02504540979862213,
-0.0642240047454834,
-0.0008247611112892628,
-0.008779557421803474,
-0.008398898877203465,
0.014162465929985046,
-0.06769873946905136,
0.004626470617949963,
-0.036484699696302414,
-0.06625418365001678,
0.00033124652691185474,
-0.04400027543306351,
-0.02260528691112995,
-0.014142945408821106,
0.007808389607816935,
-0.003970078192651272,
-0.03960805386304855,
0.0011004948755726218,
0.011419769376516342,
-0.05547860637307167,
-0.012903363443911076,
0.02344468981027603,
-0.012288453057408333,
-0.031077390536665916,
0.018037378787994385,
0.00808656308799982,
0.021336423233151436,
0.03193631395697594,
-0.022312473505735397,
-0.05536147952079773,
0.012961926870048046,
0.021199777722358704,
-0.014689533039927483,
-0.014552885666489601,
0.02803211845457554,
0.035762425512075424,
0.0024193807039409876,
-0.036660388112068176,
0.019101273268461227,
0.017080852761864662,
-0.03316613286733627,
0.01914031431078911,
-0.040681708604097366,
0.018837738782167435,
-0.06363837420940399,
-0.007315484806895256,
0.0322096049785614,
-0.05067644640803337,
0.007530215661972761,
-0.03053080290555954,
-0.06274040788412094,
0.018213069066405296,
0.01243485976010561,
0.027719782665371895,
-0.004916845355182886,
0.017080852761864662,
-0.02080935798585415,
0.07332077622413635,
0.04072074964642525,
0.018876781687140465,
0.06680077314376831,
-0.0015726584242656827,
-0.010199708864092827,
-0.041345421224832535,
0.0014726134249940515,
0.014757855795323849,
0.022058699280023575,
-0.05731358006596565,
-0.058328669518232346,
-0.007291083689779043,
-0.001985039096325636,
0.09838570654392242,
0.003037951420992613,
-0.03461068496108055,
0.013937975279986858,
-0.02656804583966732,
0.004921725485473871,
0.03517679497599602,
0.0065200054086744785,
-0.002962307771667838,
0.0321120023727417,
-0.002728056162595749,
-0.04013512283563614,
-0.05126207694411278,
0.006183268502354622,
0.09096773713827133,
-0.016553785651922226,
-0.0037211854942142963,
0.030296551063656807,
0.019647859036922455,
-0.02416696585714817,
-0.03232673183083534,
-0.0225076824426651,
-0.04677225276827812,
0.028617747128009796,
-0.0241084024310112,
-0.014552885666489601,
-0.009604318998754025,
-0.03939332440495491,
-0.05391692742705345,
-0.03843679651618004,
0.04720171540975571,
0.029945174232125282,
0.059968430548906326,
0.04118925333023071,
0.013030249625444412,
0.012259171344339848,
0.0416187159717083,
-0.0012389718322083354,
-0.04185296595096588,
-0.004909524694085121,
-0.044585902243852615,
-0.03156541287899017,
0.017315102741122246,
0.034317873418331146,
0.046303749084472656,
-0.04247763752937317,
-0.016456181183457375,
0.05895334109663963,
-0.08839096873998642,
-0.06426304578781128,
0.013469471596181393,
0.0075643775053322315,
0.0024230408016592264,
0.04993465170264244,
-0.04278997331857681,
0.03445451706647873,
0.005378028377890587,
0.055869027972221375,
-0.0690261647105217,
0.02565055899322033,
0.0006557827000506222,
-0.028481099754571915,
0.07039263099431992,
0.07441394776105881,
-0.027700262144207954,
-0.015031149610877037,
-0.014435759745538235,
0.0009229760617017746,
-0.02563103847205639,
-0.012259171344339848,
-0.01932576298713684,
0.03349798917770386,
0.06664460152387619,
0.011644260957837105,
0.0448201559484005,
0.007066592574119568,
-0.03751930966973305,
-0.004348296672105789,
0.05208195745944977,
-0.018369236961007118,
0.05680603161454201,
-0.017500553280115128,
0.050325069576501846,
0.03626997023820877,
-0.055010102689266205,
0.0266070868819952,
-0.003123355796560645,
-0.06996317207813263,
0.03621140494942665,
-0.04442973434925079,
0.07761538773775101,
0.01411366369575262,
-0.0339079312980175,
-0.03617236390709877,
0.026782775297760963,
0.06344316154718399,
-0.030003735795617104,
0.07316461205482483,
-0.011429529637098312,
0.016417138278484344,
0.03632853180170059,
-0.001304245088249445,
-0.016319533810019493,
-0.008545306511223316,
0.015118993818759918,
-0.0012444620952010155,
0.04278997331857681,
-0.027056070044636726,
-0.036601826548576355,
-0.023464210331439972,
-0.011292883194983006,
-0.01403557974845171,
0.021297382190823555,
-0.02650948241353035,
0.004406859632581472,
0.0232104379683733,
0.01766648143529892,
0.04169679805636406,
0.05231620743870735,
0.04232146963477135
] |
17,646 | imodels.rule_list.corels_wrapper | predict |
Predict classifications of the input samples X.
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features must be the same
as those of the data used to train the model.
Returns
-------
p : array[int] of shape = [n_samples].
The classifications of the input samples.
| def predict(self, X):
"""
Predict classifications of the input samples X.
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features must be the same
as those of the data used to train the model.
Returns
-------
p : array[int] of shape = [n_samples].
The classifications of the input samples.
"""
if self.discretizer is not None:
X = self.discretizer.transform(X)
return super().predict(X).astype(int)
| (self, X) | [
-0.007996155880391598,
-0.04593035578727722,
0.04151118919253349,
-0.00016583193792030215,
0.04799504578113556,
-0.020646926015615463,
-0.011020749807357788,
0.02198716439306736,
0.06360702216625214,
-0.00031326955650001764,
-0.007837682031095028,
-0.03260041028261185,
0.007851265370845795,
-0.0092186713591218,
0.019451577216386795,
0.005179842934012413,
0.02086426131427288,
-0.03341541811823845,
-0.03455643355846405,
0.015086744911968708,
0.006837030407041311,
0.033614642918109894,
-0.025229094550013542,
0.029430923983454704,
-0.0268228929489851,
0.007996155880391598,
0.02182416245341301,
-0.04890061169862747,
0.017495552077889442,
-0.0013345791958272457,
-0.06951131671667099,
0.04397432878613472,
-0.03069871850311756,
0.021932831034064293,
-0.009327339008450508,
0.0018813152564689517,
-0.004274275619536638,
0.04955262318253517,
0.017495552077889442,
-0.02899625338613987,
-0.07541561126708984,
-0.09403406828641891,
-0.056253816932439804,
0.015267858281731606,
-0.03164050728082657,
0.00491270050406456,
-0.005483207758516073,
-0.0010815864661708474,
0.017857778817415237,
-0.04408299922943115,
-0.025591321289539337,
-0.021135931834578514,
0.019614579156041145,
0.0050168405286967754,
-0.006972865201532841,
0.026044104248285294,
0.03167673200368881,
0.020665036514401436,
-0.05067552626132965,
0.007629401050508022,
0.024504641070961952,
0.034429654479026794,
0.04390188306570053,
-0.013040163554251194,
0.023309292271733284,
-0.0036539623979479074,
0.01115658413618803,
0.04886439070105553,
0.005143620073795319,
0.020737482234835625,
-0.0133299445733428,
-0.06574416160583496,
-0.004072787240147591,
0.07016332447528839,
0.07845831662416458,
0.015648195520043373,
0.039410270750522614,
-0.020266586914658546,
0.01643604040145874,
0.020755594596266747,
-0.02504798024892807,
-0.00061125768115744,
0.00797351635992527,
-0.004650086164474487,
-0.02504798024892807,
-0.09041180461645126,
0.021298933774232864,
-0.029032476246356964,
-0.05426156893372536,
0.04161985591053963,
-0.01668054237961769,
0.05810117349028587,
0.03995361179113388,
0.04766904190182686,
0.02271161787211895,
0.025247205048799515,
-0.004527834709733725,
0.03930160403251648,
0.05161731317639351,
-0.008765887469053268,
-0.006877780891954899,
0.1244611144065857,
-0.02329118177294731,
0.007996155880391598,
-0.009046613238751888,
0.0268228929489851,
-0.008571190759539604,
0.04919039458036423,
-0.04390188306570053,
-0.0023091956973075867,
-0.04122140631079674,
0.02995615266263485,
-0.018392063677310944,
-0.013465779833495617,
-0.0367116816341877,
-0.07005465775728226,
-0.01418117806315422,
0.021063486114144325,
-0.0796898901462555,
0.042489200830459595,
-0.013674060814082623,
0.04049695283174515,
-0.025265317410230637,
-0.014326068572700024,
-0.06896797567605972,
0.024269193410873413,
0.054478906095027924,
0.025192871689796448,
-0.019542133435606956,
-0.034846216440200806,
-0.03231062740087509,
-0.000030669005354866385,
-0.027004005387425423,
0.05176220461726189,
0.003246457315981388,
-0.023562850430607796,
0.043938107788562775,
0.016888823360204697,
0.059079185128211975,
-0.01542180497199297,
0.06063676252961159,
-0.017060881480574608,
0.09193315356969833,
0.030807387083768845,
0.04165607690811157,
-0.038468483835458755,
0.07614006847143173,
0.020991040393710136,
-0.00910094752907753,
0.0010759267024695873,
-0.005935991182923317,
0.0006435184623114765,
0.08092145621776581,
-0.08338460326194763,
0.01143730990588665,
0.0368746854364872,
0.02224072255194187,
-0.089542455971241,
0.004201830364763737,
-0.033795759081840515,
-0.03767158463597298,
-0.007167561911046505,
-0.006877780891954899,
0.005505846813321114,
0.01779438927769661,
0.040967848151922226,
0.005320205818861723,
0.00318306777626276,
0.019831916317343712,
0.0012496823910623789,
0.03678412735462189,
-0.05092908442020416,
0.035154107958078384,
0.01400911994278431,
-0.037744030356407166,
0.051110196858644485,
0.022584838792681694,
0.023870743811130524,
0.030952276661992073,
0.08570285141468048,
0.09323716908693314,
-0.02673233486711979,
-0.06849708408117294,
-0.05053063482046127,
0.0015609710244461894,
-0.023816410452127457,
-0.0019198018126189709,
0.03549822419881821,
-0.038214925676584244,
0.032183848321437836,
0.009191503748297691,
-0.018546011298894882,
0.02383452095091343,
0.0076792072504758835,
-0.009861623868346214,
-0.024051858112215996,
-0.03473754599690437,
0.00842177215963602,
0.013239388354122639,
-0.0019820595625787973,
0.012596435844898224,
-0.03437532112002373,
0.022113943472504616,
0.02964826114475727,
-0.061180099844932556,
-0.002829896518960595,
-0.023798298090696335,
0.020248476415872574,
-0.019469689577817917,
-0.08736909925937653,
0.010577021166682243,
-0.004555001389235258,
0.03203895688056946,
-0.026152772828936577,
0.05422534793615341,
0.014552460052073002,
0.03182161971926689,
-0.03607778623700142,
-0.03263663128018379,
-0.03461076691746712,
0.014643017202615738,
0.015566695481538773,
-0.04679969698190689,
0.042561646550893784,
0.009508452378213406,
-0.05074796825647354,
-0.025989770889282227,
0.006465747952461243,
0.007353203371167183,
-0.03738180175423622,
-0.00820896402001381,
-0.021697383373975754,
-0.0007827493827790022,
-0.028289910405874252,
0.07114133983850479,
0.03544389083981514,
0.02336362563073635,
0.0043376656249165535,
-0.07197445631027222,
0.03135072812438011,
0.010567965917289257,
0.023055734112858772,
0.02191471867263317,
-0.05121886357665062,
0.005175314843654633,
0.017033712938427925,
0.023218736052513123,
0.006216716952621937,
0.023218736052513123,
-0.002714436734095216,
-0.021697383373975754,
-0.07030821591615677,
-0.008630053140223026,
-0.02271161787211895,
0.04440900310873985,
-0.04292387142777443,
0.019614579156041145,
0.027927683666348457,
0.027167007327079773,
0.05056685581803322,
-0.047813933342695236,
0.02972070686519146,
0.011201863177120686,
0.036277011036872864,
-0.038540929555892944,
-0.0008727401145733893,
-0.031223947182297707,
0.02109970897436142,
0.05281266197562218,
0.0007250194903463125,
0.06672216951847076,
0.005415290128439665,
-0.05719560757279396,
-0.04067806527018547,
0.025881102308630943,
0.004206358455121517,
-0.027348121628165245,
-0.005311150103807449,
-0.004401055164635181,
0.038540929555892944,
0.003160428488627076,
-0.07288002222776413,
0.0322381816804409,
-0.0011087534949183464,
-0.009417896158993244,
0.02329118177294731,
-0.012587380595505238,
-0.006424997467547655,
0.02312817983329296,
-0.022602951154112816,
0.023743964731693268,
0.07168467342853546,
-0.008562135510146618,
-0.005673376843333244,
0.006578943692147732,
-0.020502034574747086,
0.00035345408832654357,
-0.01356539223343134,
0.016091924160718918,
0.020520146936178207,
-0.02166116051375866,
-0.006108048837631941,
-0.026714224368333817,
-0.034121762961149216,
-0.028941918164491653,
0.0006463484023697674,
0.044264111667871475,
0.007910126820206642,
-0.044662561267614365,
0.014706406742334366,
0.035806115716695786,
0.045640572905540466,
0.018872015178203583,
-0.02329118177294731,
-0.08476106077432632,
-0.06933020055294037,
0.0661788284778595,
0.026080327108502388,
0.046437472105026245,
0.020918596535921097,
-0.01892634853720665,
0.003814700525254011,
0.001893766806460917,
0.025591321289539337,
0.0460752435028553,
0.009354506619274616,
0.043467212468385696,
-0.012813772074878216,
-0.024993646889925003,
-0.0023250430822372437,
0.0278009045869112,
-0.040714289993047714,
-0.01698843576014042,
0.02046581171452999,
-0.032998859882354736,
-0.012415322475135326,
-0.011708980426192284,
0.013148831203579903,
-0.03602345287799835,
0.026641778647899628,
-0.04618391394615173,
-0.04629258066415787,
-0.02988370880484581,
0.04727059230208397,
0.01245154533535242,
0.01176331378519535,
-0.020972929894924164,
0.016934100538492203,
0.009417896158993244,
0.07614006847143173,
-0.03397687152028084,
-0.03667546063661575,
0.073097363114357,
0.05346466973423958,
0.031948402523994446,
-0.044264111667871475,
-0.009372617118060589,
0.013719338923692703,
0.007307924795895815,
-0.02448652870953083,
0.016943156719207764,
-0.031133390963077545,
0.013366167433559895,
-0.014661128632724285,
-0.04375699162483215,
0.026116549968719482,
-0.06436769664287567,
0.040388286113739014,
-0.0040841070003807545,
0.029340367764234543,
-0.015403693541884422,
0.012360988184809685,
-0.11359431594610214,
0.02497553639113903,
0.034103650599718094,
-0.0014568307669833302,
-0.04422788694500923,
0.03533522039651871,
-0.0018111338140442967,
0.034755658358335495,
-0.05889807268977165,
-0.014362291432917118,
-0.05009596049785614,
0.007498093880712986,
-0.014498126693069935,
-0.002798201749101281,
0.020592590793967247,
-0.04397432878613472,
0.039989836513996124,
-0.018672790378332138,
-0.06722928583621979,
-0.028289910405874252,
-0.05886184796690941,
-0.0681348517537117,
-0.043865662068128586,
-0.0444452241063118,
0.00797804445028305,
0.056253816932439804,
0.021787939593195915,
-0.03173106536269188,
-0.06063676252961159,
0.029919931665062904,
0.018962571397423744,
-0.010477408766746521,
-0.027656013146042824,
0.04310498386621475,
0.013502002693712711,
-0.016979379579424858,
-0.02617088332772255,
0.006112576462328434,
-0.00449161184951663,
0.0974389985203743,
0.0592602975666523,
-0.02794579416513443,
-0.009159808978438377,
0.0218966081738472,
-0.006465747952461243,
0.01901690475642681,
0.006429525092244148,
-0.014688295312225819,
0.010423075407743454,
0.03562500327825546,
0.011002638377249241,
-0.025808656588196754,
0.003599628573283553,
0.019922472536563873,
0.0022922162897884846,
0.05726805329322815,
0.00894247367978096,
0.027674125507473946,
-0.06277389824390411,
-0.038939379155635834,
-0.038794487714767456,
-0.02649688720703125,
-0.01988624967634678,
0.004136176779866219,
-0.005125508643686771,
-0.022530505433678627,
-0.055456917732954025,
0.011093194596469402,
0.00479497667402029,
0.007484510540962219,
0.054732464253902435,
0.041112739592790604,
0.03799758851528168,
-0.04219941794872284,
-0.04267031326889992,
-0.058282285928726196,
-0.027257563546299934,
-0.0529937744140625,
-0.010685689747333527,
-0.05426156893372536,
0.07067044079303741,
0.00489006144925952,
0.01441662572324276,
0.0037128243129700422,
-0.046437472105026245,
-0.034194204956293106,
0.004405583254992962,
-0.004251636564731598,
-0.026460666209459305,
0.007860320620238781,
-0.01502335537225008,
-0.009508452378213406,
0.01885390281677246,
-0.03263663128018379,
-0.01691599003970623,
-0.0033256944734603167,
-0.004419166594743729,
-0.011518810875713825,
0.06244789436459541,
-0.013628781773149967,
0.02296517789363861,
-0.005025896243751049,
-0.056253816932439804,
0.057231828570365906,
-0.0002873759949579835,
0.016291148960590363,
0.013583503663539886,
0.011355808936059475,
0.030481383204460144,
0.002630671951919794,
0.0066695003770291805,
-0.03490054979920387,
-0.010287240147590637,
-0.05306622013449669,
-0.011011693626642227,
0.017377829179167747,
-0.0312601700425148,
-0.008181797340512276,
0.010196683928370476,
0.031459394842386246,
0.06063676252961159,
0.01558480691164732,
-0.016979379579424858,
-0.011401087045669556,
0.059151630848646164,
0.0006118236342445016,
-0.016553763300180435,
0.011066027916967869,
0.01128336414694786,
0.0006950225797481835,
-0.029666371643543243,
-0.048284828662872314,
-0.0133299445733428,
0.03421231731772423,
-0.009571841917932034,
0.02819935418665409,
-0.0021224224474281073,
0.056652266532182693,
-0.05074796825647354,
-0.001315335975959897,
0.028326133266091347,
-0.013375223614275455,
0.031133390963077545,
0.035806115716695786,
0.024939313530921936,
0.044662561267614365,
-0.06527326256036758,
0.0184373427182436,
0.025953548029065132,
0.008077656850218773,
0.016481317579746246,
-0.011645590886473656,
-0.006012964528053999,
0.10251017659902573,
0.0066695003770291805,
-0.03897560015320778,
0.04596657678484917,
0.05998475104570389,
-0.02624332904815674,
-0.05386311933398247,
0.01852789893746376,
0.089542455971241,
-0.030264046043157578,
0.04792260006070137,
0.0112743079662323,
-0.004505195189267397,
0.03035460226237774,
-0.0007131339516490698,
-0.014570571482181549,
-0.025337763130664825,
-0.010024625808000565,
0.019922472536563873,
0.022132055833935738,
-0.008045962080359459,
-0.057557832449674606,
0.04846594110131264,
-0.05100153014063835,
0.006823446601629257,
-0.042489200830459595,
-0.014887520112097263,
0.03283585608005524,
0.01015140488743782,
0.12525801360607147,
0.05165353789925575,
0.0441192202270031,
0.05252288281917572,
0.025573208928108215,
0.05165353789925575,
-0.04198208078742027,
-0.08396416157484055,
0.09461363404989243,
-0.04292387142777443,
-0.042489200830459595,
0.041040293872356415,
-0.06208566948771477,
0.04560434818267822,
-0.04886439070105553,
-0.05248665809631348,
0.06639616936445236,
-0.008159157820045948,
-0.047234371304512024,
0.04277897998690605,
-0.030897943302989006,
0.0197413582354784,
0.0013017524033784866,
-0.03759913891553879,
-0.031115278601646423,
0.04267031326889992,
-0.036367569118738174,
0.01787589117884636,
-0.002472197636961937,
-0.0454232357442379,
-0.042163196951150894,
-0.04679969698190689,
-0.02215016633272171,
0.0012632658472284675,
-0.038287367671728134,
-0.030553827062249184,
-0.06538192927837372,
-0.02215016633272171,
0.010730967856943607,
0.0017952864291146398,
0.023381737992167473,
-0.0391567125916481,
-0.03011915646493435,
-0.007258119061589241,
0.029503369703888893,
-0.05936896800994873,
0.04259786754846573,
-0.008684386499226093,
0.009241309948265553,
-0.006796279922127724,
0.06951131671667099,
-0.05161731317639351,
-0.06904042512178421,
0.0112743079662323,
0.01666243188083172,
-0.024613309651613235,
-0.005338316783308983,
-0.011446366086602211,
0.013583503663539886,
0.004650086164474487,
-0.01373745035380125,
0.0130039406940341,
0.010531743057072163,
0.014787907712161541,
-0.04089540243148804,
0.032419294118881226,
0.03479187935590744,
0.00223561841994524,
0.05567425489425659,
0.017350662499666214,
-0.02546454221010208,
0.004989673849195242,
-0.012379099614918232,
-0.07135867327451706,
0.022765953093767166,
-0.026044104248285294,
0.049987293779850006,
0.012415322475135326,
0.023001398891210556,
-0.031296391040086746,
0.026605555787682533,
0.004281067755073309,
-0.02504798024892807,
0.05147242173552513,
0.04372077062726021,
-0.028471024706959724,
-0.03020971268415451,
0.020248476415872574,
-0.018066059798002243,
-0.012523990124464035,
0.011066027916967869,
-0.06741040199995041,
-0.026315774768590927,
-0.0056914882734417915,
0.04219941794872284,
-0.03086172044277191,
-0.02376207523047924,
-0.02778279222548008,
-0.01474262960255146,
0.005836378782987595,
-0.010785302147269249,
-0.006791751831769943,
0.006434052716940641,
0.0954105332493782,
-0.039917390793561935,
-0.0327271893620491,
-0.07219179719686508,
0.02044770121574402,
0.004224469885230064,
-0.01730538345873356,
0.03864959627389908,
0.059405189007520676,
-0.009354506619274616,
-0.04665480926632881,
-0.048538386821746826,
-0.031205836683511734,
-0.013601615093648434,
0.0539717897772789,
0.011401087045669556,
-0.009309227578341961,
0.06081787496805191,
-0.0608903206884861,
-0.0274749007076025,
-0.051834650337696075,
0.016318315640091896,
-0.016381705179810524,
0.031115278601646423,
-0.0076475124806165695,
0.03173106536269188,
0.01558480691164732,
0.0375266931951046,
-0.019035017117857933,
-0.029738817363977432,
-0.018138505518436432,
-0.07168467342853546,
-0.007588650565594435,
0.0266598891466856,
0.002510684309527278,
0.05962252616882324,
-0.04846594110131264,
0.005827323067933321,
0.04614768922328949,
-0.05944141373038292,
0.027982017025351524,
-0.013556336984038353,
-0.008756832219660282,
-0.014661128632724285,
-0.02731189876794815,
-0.046365026384592056,
0.01585647650063038,
-0.043938107788562775,
0.07679207623004913,
-0.06969243288040161,
-0.020954817533493042,
0.0013323152670636773,
-0.003149108961224556,
0.0023069316521286964,
0.06396924704313278,
0.0042289975099265575,
-0.05056685581803322,
-0.016091924160718918,
0.04832104966044426,
-0.03310752660036087,
0.022023387253284454,
-0.01627303659915924,
0.06143365800380707,
-0.013492947444319725,
-0.006515554152429104,
0.021063486114144325,
0.07085155695676804,
-0.10642222315073013,
-0.008308576419949532,
0.05458757281303406,
-0.042416755110025406,
0.00507570244371891,
0.010776245966553688,
-0.005220593418926001,
0.014760741032660007,
-0.022675395011901855,
-0.05100153014063835,
-0.042634088546037674,
-0.01413589995354414,
0.015720641240477562,
-0.07186578959226608,
0.05897051841020584,
-0.016254926100373268,
0.01682543382048607,
-0.009327339008450508,
0.03368708863854408,
0.045713018625974655,
0.012252320535480976,
0.017921168357133865,
-0.014072509482502937,
0.013085441663861275,
0.01239721104502678,
-0.04890061169862747,
0.018392063677310944,
0.030173489823937416,
0.005098341964185238,
-0.05274021625518799,
0.05212443321943283,
-0.0015326719731092453,
0.008838333189487457,
-0.019270464777946472,
-0.00013809895608574152,
0.005881656892597675,
-0.033469751477241516,
-0.05744916573166847,
-0.041764747351408005,
-0.0018224534578621387,
-0.020067362114787102,
0.03875826299190521,
0.04995107278227806,
0.0266598891466856
] |
17,647 | imodels.rule_list.corels_wrapper | predict_proba |
Predict probabilities of the input samples X.
todo: actually calculate these from training set
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features must be the same
as those of the data used to train the model.
Returns
-------
p : array[float] of shape = [n_samples, 2].
The probabilities of the input samples.
| def predict_proba(self, X):
"""
Predict probabilities of the input samples X.
todo: actually calculate these from training set
Arguments
---------
X : array-like, shape = [n_samples, n_features]
The training input samples. All features must be binary, and the matrix
is internally converted to dtype=np.uint8. The features must be the same
as those of the data used to train the model.
Returns
-------
p : array[float] of shape = [n_samples, 2].
The probabilities of the input samples.
"""
preds = self.predict(X)
return np.vstack((1 - preds, preds)).transpose()
| (self, X) | [
0.028880145400762558,
-0.0025347406044602394,
-0.018334917724132538,
-0.012355756014585495,
0.05080079287290573,
-0.01624177023768425,
-0.002426550490781665,
-0.025347406044602394,
0.07708437740802765,
0.03288980573415756,
-0.010783687233924866,
-0.03092913329601288,
0.021320082247257233,
0.03008127585053444,
-0.049211058765649796,
-0.006504656746983528,
0.03702310845255852,
-0.044936444610357285,
-0.03928406164050102,
0.03170633688569069,
0.024976467713713646,
0.066980741918087,
-0.029304074123501778,
0.06055115535855293,
-0.036139924079179764,
-0.02266252413392067,
-0.018776509910821915,
-0.033048778772354126,
0.028403224423527718,
0.00040847298805601895,
0.02151438407599926,
0.01624177023768425,
-0.01524377055466175,
-0.004954667296260595,
0.016453733667731285,
0.03946070000529289,
0.032995786517858505,
0.019783340394496918,
-0.004296694416552782,
-0.07224452495574951,
-0.03151203691959381,
-0.08789455890655518,
-0.05935002118349075,
0.017071964219212532,
-0.0006016697152517736,
-0.0442298986017704,
-0.003848477965220809,
0.07892140001058578,
-0.004307734314352274,
0.017875662073493004,
-0.0009786792797967792,
0.012302764691412449,
0.029127437621355057,
-0.01808762550354004,
-0.013088800013065338,
0.043664660304784775,
-0.011552058160305023,
0.015367416664958,
-0.014581382274627686,
-0.002032429212704301,
0.07040749490261078,
0.03543337807059288,
0.036245908588171005,
-0.014148621819913387,
0.06765195727348328,
-0.03156502544879913,
0.008721450343728065,
0.006774027831852436,
0.014652037061750889,
-0.010130130685865879,
-0.006875594146549702,
-0.027343403548002243,
-0.02393431030213833,
0.048787131905555725,
-0.004967914894223213,
0.03893078863620758,
0.02176167443394661,
-0.03552169352769852,
0.026018626987934113,
0.04680879786610603,
-0.019624367356300354,
-0.019571376964449883,
-0.01042158156633377,
-0.0412270687520504,
-0.02471151202917099,
-0.06662746518850327,
0.003914717119187117,
-0.015729522332549095,
0.020984472706913948,
0.025418059900403023,
-0.01659504324197769,
0.05539335310459137,
0.07206788659095764,
0.0617169588804245,
0.026142271235585213,
-0.011772854253649712,
0.013424409553408623,
0.053379692137241364,
0.017628369852900505,
-0.01325660478323698,
-0.047939274460077286,
0.0697009488940239,
-0.02875649929046631,
0.02181466668844223,
0.002870350843295455,
0.05027088150382042,
-0.00924694538116455,
0.03465617448091507,
-0.026000961661338806,
-0.025082450360059738,
-0.032448213547468185,
0.008452079258859158,
0.013733524829149246,
-0.041368380188941956,
-0.02223859541118145,
-0.04129772260785103,
-0.024605529382824898,
0.04560766741633415,
-0.02381066419184208,
0.020949145779013634,
0.020684190094470978,
0.05299109220504761,
-0.01376885175704956,
0.0069948239251971245,
-0.04557234048843384,
-0.0158708319067955,
0.06599157303571701,
-0.011622712947428226,
-0.011348925530910492,
0.018529217690229416,
-0.01923576556146145,
0.0202425979077816,
-0.03288980573415756,
0.03168867155909538,
-0.0014859585789963603,
-0.06415455043315887,
0.021849993616342545,
-0.01838790811598301,
0.09531331062316895,
-0.03677581623196602,
0.0624588318169117,
-0.014422409236431122,
0.06009189784526825,
-0.0054934099316596985,
0.045784302055835724,
-0.03857751563191414,
0.10612349212169647,
0.002382391132414341,
0.013397914357483387,
-0.01599447801709175,
0.02218560315668583,
-0.02260953187942505,
0.014696195721626282,
-0.0912153348326683,
0.012567720375955105,
0.025894980877637863,
0.009485405869781971,
-0.07814420014619827,
0.011746359057724476,
-0.06524969637393951,
-0.012497065588831902,
0.02820892445743084,
-0.027343403548002243,
0.0027356650680303574,
0.021408401429653168,
0.06775794178247452,
0.013662870042026043,
0.060727789998054504,
0.06026853621006012,
-0.04539570212364197,
0.06606222689151764,
-0.027255084365606308,
0.02393431030213833,
0.013177118264138699,
-0.007167045027017593,
0.027202093973755836,
0.01253239344805479,
-0.007564478553831577,
0.020719517022371292,
0.04532504826784134,
0.07051347941160202,
-0.015597044490277767,
-0.034567855298519135,
-0.05811356380581856,
0.00004139928933000192,
0.0051533835940063,
0.02133774571120739,
0.049034424126148224,
-0.06754598021507263,
0.032819148153066635,
-0.04338204115629196,
-0.030646514147520065,
0.0359809510409832,
0.04419457167387009,
0.0069639128632843494,
0.030593523755669594,
-0.011075138114392757,
0.004663215950131416,
0.006645966321229935,
-0.009829847142100334,
0.042286891490221024,
-0.0659562423825264,
-0.024305246770381927,
0.029268747195601463,
-0.03603394329547882,
-0.05164865031838417,
-0.05027088150382042,
0.0034819564316421747,
0.01708962768316269,
-0.09750360995531082,
0.02898612804710865,
-0.03091146983206272,
0.07312770932912827,
-0.05267314612865448,
0.034020282328128815,
0.049634989351034164,
0.07051347941160202,
-0.03591029718518257,
-0.013874834403395653,
-0.01731925457715988,
0.02109045535326004,
0.002737873001024127,
-0.042710818350315094,
0.04182763397693634,
0.044936444610357285,
-0.022856824100017548,
-0.020224932581186295,
0.032448213547468185,
0.0061778780072927475,
-0.0056258877739310265,
-0.007613053545355797,
-0.0011061890982091427,
-0.00026343748322688043,
-0.04719739779829979,
0.07227984815835953,
0.02615993656218052,
-0.01564120315015316,
0.0015003102598711848,
-0.0731983631849289,
0.015340921469032764,
0.04970564320683479,
0.01656854897737503,
0.030328568071126938,
-0.027467049658298492,
0.0018867036560550332,
0.023475052788853645,
0.03716441988945007,
-0.018847165629267693,
0.010130130685865879,
0.0010614778148010373,
-0.018900156021118164,
0.01211729645729065,
-0.0032214168459177017,
0.006835850887000561,
0.016497893258929253,
-0.030999789014458656,
0.03455019369721413,
0.047091417014598846,
0.01971268653869629,
0.05419222265481949,
-0.022256258875131607,
-0.01711612194776535,
-0.005586144048720598,
0.00970620196312666,
0.023192433640360832,
0.02363402768969536,
-0.0005522665451280773,
0.0164890605956316,
0.050412192940711975,
0.016886495053768158,
0.09609051048755646,
-0.02465852163732052,
-0.014360586181282997,
-0.033719997853040695,
0.015411576256155968,
0.01244407519698143,
0.007900089025497437,
0.002196922432631254,
0.04857516661286354,
0.028473880141973495,
0.006027736701071262,
-0.05504008010029793,
0.033119432628154755,
0.014484231360256672,
0.003952252212911844,
0.009547227993607521,
-0.009926998056471348,
0.0040604425594210625,
0.05154266953468323,
0.00257669179700315,
0.03790629282593727,
0.027149103581905365,
-0.011984818615019321,
0.00904381275177002,
0.013601046986877918,
0.01603863760828972,
0.03170633688569069,
-0.007326018530875444,
0.02313944324851036,
0.00641633803024888,
0.03216559439897537,
0.020207269117236137,
-0.023881318047642708,
-0.05412156879901886,
-0.05069481208920479,
0.028915472328662872,
0.07030151784420013,
-0.0015566133661195636,
-0.05726570636034012,
-0.015614707954227924,
0.024022627621889114,
0.03493879362940788,
0.03815358504652977,
0.044335879385471344,
-0.09630247950553894,
-0.05556999146938324,
0.06341267377138138,
0.015340921469032764,
0.03018725849688053,
-0.03553935885429382,
-0.043488021939992905,
0.009220450185239315,
0.044512517750263214,
0.009653210639953613,
0.04490111768245697,
0.02128475531935692,
0.020507551729679108,
-0.018061131238937378,
-0.043594006448984146,
-0.008465327322483063,
0.009556060656905174,
-0.011772854253649712,
-0.007326018530875444,
0.07227984815835953,
-0.06885309517383575,
0.027696676552295685,
-0.03603394329547882,
0.024057956412434578,
-0.002316152211278677,
0.012691366486251354,
-0.038365550339221954,
-0.06440184265375137,
-0.02903911843895912,
0.02796163223683834,
0.0016504516825079918,
-0.03949602693319321,
-0.030717169865965843,
0.05977395176887512,
-0.007913336157798767,
0.011048642918467522,
0.005890842992812395,
-0.012558888643980026,
0.049034424126148224,
0.07708437740802765,
0.010986819863319397,
-0.061469666659832,
0.01515545230358839,
0.017054298892617226,
0.014157453551888466,
0.019324084743857384,
0.020101288333535194,
-0.006323603447526693,
-0.013495064340531826,
-0.02084316313266754,
-0.024746840819716454,
0.016471397131681442,
-0.059985917061567307,
0.058254875242710114,
-0.009087972342967987,
0.03485047444701195,
0.022945143282413483,
0.01731925457715988,
-0.07341032475233078,
0.05058882758021355,
0.006434001959860325,
0.0038065267726778984,
-0.022556541487574577,
-0.012232109904289246,
0.008235698565840721,
-0.012126128189265728,
-0.034567855298519135,
-0.04352334886789322,
-0.027855651453137398,
0.020931480452418327,
-0.014122125692665577,
0.0239873006939888,
0.04815123975276947,
-0.05627654120326042,
0.04995293542742729,
-0.028049951419234276,
-0.05235520005226135,
-0.002426550490781665,
-0.057053741067647934,
-0.03953135386109352,
-0.01631242409348488,
-0.03928406164050102,
0.027996961027383804,
0.04090912267565727,
0.026795828714966774,
-0.0011503483401611447,
-0.023192433640360832,
-0.007392257452011108,
-0.04751534387469292,
-0.03409093618392944,
-0.04105043411254883,
-0.02658386528491974,
-0.013813011348247528,
-0.003581314580515027,
-0.02965734712779522,
0.055004753172397614,
-0.043488021939992905,
0.08626949787139893,
0.04815123975276947,
-0.05652382969856262,
-0.009741528891026974,
0.04539570212364197,
-0.028420889750123024,
-0.019182775169610977,
-0.006654798053205013,
-0.02066652663052082,
0.021744010969996452,
0.025471052154898643,
-0.015438071452081203,
-0.028191260993480682,
-0.00658414326608181,
0.020260261371731758,
0.013344923034310341,
0.05012957379221916,
0.04910507798194885,
0.03290746733546257,
-0.021708684042096138,
-0.055358026176691055,
-0.012037809938192368,
-0.03815358504652977,
-0.023298416286706924,
-0.021655693650245667,
-0.02513544075191021,
-0.00009618435433367267,
-0.031847644597291946,
-0.006102807354182005,
0.013795347884297371,
0.025029459968209267,
0.0667334496974945,
0.059456005692481995,
0.03091146983206272,
-0.010041811503469944,
-0.029392391443252563,
-0.07482342422008514,
-0.0034620845690369606,
-0.02363402768969536,
-0.019271094352006912,
-0.006756364367902279,
0.09679706394672394,
-0.009096804074943066,
0.03520374745130539,
0.00578486081212759,
-0.06341267377138138,
-0.05154266953468323,
-0.010492236353456974,
0.011331262066960335,
0.019129784777760506,
0.013071135617792606,
0.014811010099947453,
0.0056567988358438015,
0.003574690781533718,
-0.062953419983387,
-0.00045732417493127286,
0.03515075892210007,
-0.014334090054035187,
0.03488580137491226,
0.010342095047235489,
0.013159454800188541,
0.006535567808896303,
-0.01064237765967846,
-0.022044293582439423,
0.020030632615089417,
0.000632581184618175,
0.02880948968231678,
0.04320540279150009,
-0.014952319674193859,
0.004400468431413174,
-0.006910921540111303,
0.020383907482028008,
0.02688414789736271,
-0.01356571912765503,
-0.04415924474596977,
0.00798399094492197,
0.007626301143318415,
-0.03288980573415756,
-0.05458082631230354,
0.02230924926698208,
0.006049816496670246,
0.03405560925602913,
0.09234581142663956,
-0.06828785687685013,
-0.03580431267619133,
0.058961421251297,
-0.020896153524518013,
-0.002099771983921528,
0.006142550613731146,
0.01781383901834488,
0.009785688482224941,
-0.011013315059244633,
-0.04532504826784134,
-0.03465617448091507,
0.017955148592591286,
-0.025170769542455673,
0.009856343269348145,
-0.027096111327409744,
0.03334905952215195,
-0.05157799646258354,
-0.03861284255981445,
-0.017955148592591286,
-0.017857998609542847,
0.02013661526143551,
0.050836119800806046,
0.0731983631849289,
0.033119432628154755,
-0.04483046382665634,
-0.019624367356300354,
0.041191741824150085,
0.0077146198600530624,
0.012452906928956509,
-0.0008495134534314275,
-0.017257431522011757,
0.07086675614118576,
0.022468222305178642,
-0.057760290801525116,
-0.001710066688247025,
0.03303111344575882,
-0.00798399094492197,
-0.04995293542742729,
0.03085847944021225,
0.02748471312224865,
-0.015411576256155968,
0.04419457167387009,
-0.004892844241112471,
-0.050659485161304474,
0.03193596377968788,
0.009715033695101738,
0.01941240392625332,
-0.040591176599264145,
0.02001296915113926,
0.03170633688569069,
0.03585730493068695,
0.014166285283863544,
-0.055711302906274796,
0.020472224801778793,
-0.06489642709493637,
0.025771334767341614,
-0.02308645285665989,
-0.02158503793179989,
-0.007299522869288921,
0.025153104215860367,
0.07256247103214264,
0.007211204618215561,
0.01781383901834488,
0.020101288333535194,
0.010898501612246037,
0.024994131177663803,
-0.048539839684963226,
-0.12145557999610901,
0.045784302055835724,
-0.01114579290151596,
-0.06655681133270264,
0.029992958530783653,
-0.060975082218647,
0.06581493467092514,
-0.030328568071126938,
-0.020295588299632072,
0.07425818592309952,
0.01210846472531557,
-0.0739755630493164,
-0.029622020199894905,
-0.016586212441325188,
-0.04090912267565727,
0.01452839095145464,
-0.056205883622169495,
-0.037447039037942886,
0.032024282962083817,
-0.03677581623196602,
0.00925577711313963,
-0.019518384709954262,
-0.03410859778523445,
-0.03970799222588539,
-0.01350389700382948,
-0.050341539084911346,
-0.002488373313099146,
0.0119936503469944,
-0.054863445460796356,
-0.08379658311605453,
0.003570274915546179,
0.005678878631442785,
-0.02393431030213833,
0.014510727487504482,
-0.027467049658298492,
-0.004371765069663525,
-0.012850339524447918,
-0.009556060656905174,
-0.04543102905154228,
0.035892631858587265,
0.026901811361312866,
0.04165099933743477,
0.001198923448100686,
0.042710818350315094,
-0.04094444960355759,
-0.04769198223948479,
0.022644860669970512,
0.05020022764801979,
-0.008513902314007282,
-0.006226453464478254,
-0.018352581188082695,
-0.01244407519698143,
0.009397086687386036,
-0.0444771908223629,
0.003903676988556981,
-0.03350803256034851,
0.002437590155750513,
-0.004135513212531805,
0.02578899823129177,
-0.0001933346939040348,
-0.0075821420177817345,
0.052107907831668854,
0.04663215950131416,
-0.033719997853040695,
-0.03910742700099945,
0.0035216996911913157,
-0.07878009229898453,
0.0202425979077816,
-0.0304875411093235,
0.03864816948771477,
0.015022974461317062,
0.0377296581864357,
-0.014157453551888466,
0.04331138730049133,
-0.004475539084523916,
-0.02633657306432724,
0.02338673546910286,
0.0032346646767109632,
-0.05913805961608887,
-0.06365996599197388,
-0.02321009896695614,
-0.004786862060427666,
-0.013989647850394249,
0.05207258090376854,
-0.018847165629267693,
-0.06404856592416763,
-0.002215689979493618,
0.05829020217061043,
-0.03267784044146538,
0.019677359610795975,
-0.10025914758443832,
-0.013821843080222607,
0.03170633688569069,
-0.01981866918504238,
-0.02199130319058895,
0.013866002671420574,
0.08676408231258392,
-0.05334436520934105,
-0.009785688482224941,
-0.06828785687685013,
-0.020684190094470978,
-0.029675010591745377,
-0.02363402768969536,
0.02843855321407318,
0.05189594253897667,
-0.030452214181423187,
-0.03326074033975601,
-0.04952900856733322,
0.00031987851252779365,
0.02543572336435318,
0.05899674817919731,
-0.004945835098624229,
-0.022980470210313797,
0.09206318855285645,
-0.0342322438955307,
-0.04108576104044914,
-0.02603629045188427,
-0.012497065588831902,
-0.0056214714422822,
0.05277912691235542,
-0.026672182604670525,
0.034196916967630386,
-0.05609990283846855,
0.02506478689610958,
-0.016126954928040504,
0.01651555672287941,
0.006535567808896303,
-0.044689152389764786,
0.006076311692595482,
0.0021914024837315083,
-0.017275096848607063,
0.0344795361161232,
-0.019253430888056755,
-0.02778499573469162,
0.03018725849688053,
0.008491822518408298,
0.012364587746560574,
-0.009021732956171036,
-0.05440418794751167,
-0.029816320165991783,
-0.028668180108070374,
-0.030028285458683968,
0.029392391443252563,
-0.040520522743463516,
0.08789455890655518,
-0.060657136142253876,
-0.03331373259425163,
-0.014766850508749485,
-0.002642930718138814,
-0.03566300496459007,
0.04002593830227852,
0.0026142271235585213,
-0.07069011777639389,
0.015782512724399567,
0.07510603964328766,
-0.006058648228645325,
0.0057495334185659885,
-0.032342229038476944,
0.020631197839975357,
-0.027696676552295685,
0.02338673546910286,
0.008098805323243141,
0.03092913329601288,
-0.08697604387998581,
-0.030222585424780846,
0.029074445366859436,
-0.058678802102804184,
-0.015782512724399567,
-0.0019474226282909513,
-0.009732697159051895,
0.001187883666716516,
-0.0404851958155632,
-0.018546883016824722,
-0.017672529444098473,
-0.033719997853040695,
-0.020348578691482544,
-0.07051347941160202,
0.0369877815246582,
-0.010271440260112286,
-0.00928227324038744,
-0.014378249645233154,
0.058466836810112,
0.016674529761075974,
-0.025294413790106773,
0.01271786168217659,
-0.02850920706987381,
-0.015809008851647377,
0.019447730854153633,
-0.07061946392059326,
0.006509072612971067,
0.0189884752035141,
0.007114054169505835,
-0.023245425894856453,
0.046490851789712906,
-0.00662830239161849,
0.033719997853040695,
-0.02638956345617771,
-0.04843385890126228,
-0.030999789014458656,
-0.09326431900262833,
-0.009485405869781971,
-0.0018116330029442906,
0.005899674724787474,
0.014033807441592216,
-0.004267991054803133,
0.036316562443971634,
0.022273922339081764
] |
17,649 | sklearn.utils._metadata_requests | set_fit_request | Request metadata passed to the ``fit`` method.
Note that this method is only relevant if
``enable_metadata_routing=True`` (see :func:`sklearn.set_config`).
Please see :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.
The options for each parameter are:
- ``True``: metadata is requested, and passed to ``fit`` if provided. The request is ignored if metadata is not provided.
- ``False``: metadata is not requested and the meta-estimator will not pass it to ``fit``.
- ``None``: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
- ``str``: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (``sklearn.utils.metadata_routing.UNCHANGED``) retains the
existing request. This allows you to change the request for some
parameters and not others.
.. versionadded:: 1.3
.. note::
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
:class:`~sklearn.pipeline.Pipeline`. Otherwise it has no effect.
Parameters
----------
feature_names : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED
Metadata routing for ``feature_names`` parameter in ``fit``.
prediction_name : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED
Metadata routing for ``prediction_name`` parameter in ``fit``.
Returns
-------
self : object
The updated object.
| def __get__(self, instance, owner):
# we would want to have a method which accepts only the expected args
def func(**kw):
"""Updates the request for provided parameters
This docstring is overwritten below.
See REQUESTER_DOC for expected functionality
"""
if not _routing_enabled():
raise RuntimeError(
"This method is only available when metadata routing is enabled."
" You can enable it using"
" sklearn.set_config(enable_metadata_routing=True)."
)
if self.validate_keys and (set(kw) - set(self.keys)):
raise TypeError(
f"Unexpected args: {set(kw) - set(self.keys)}. Accepted arguments"
f" are: {set(self.keys)}"
)
requests = instance._get_metadata_request()
method_metadata_request = getattr(requests, self.name)
for prop, alias in kw.items():
if alias is not UNCHANGED:
method_metadata_request.add_request(param=prop, alias=alias)
instance._metadata_request = requests
return instance
# Now we set the relevant attributes of the function so that it seems
# like a normal method to the end user, with known expected arguments.
func.__name__ = f"set_{self.name}_request"
params = [
inspect.Parameter(
name="self",
kind=inspect.Parameter.POSITIONAL_OR_KEYWORD,
annotation=owner,
)
]
params.extend(
[
inspect.Parameter(
k,
inspect.Parameter.KEYWORD_ONLY,
default=UNCHANGED,
annotation=Optional[Union[bool, None, str]],
)
for k in self.keys
]
)
func.__signature__ = inspect.Signature(
params,
return_annotation=owner,
)
doc = REQUESTER_DOC.format(method=self.name)
for metadata in self.keys:
doc += REQUESTER_DOC_PARAM.format(metadata=metadata, method=self.name)
doc += REQUESTER_DOC_RETURN
func.__doc__ = doc
return func
| (self: imodels.rule_list.corels_wrapper.OptimalRuleListClassifier, *, feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', prediction_name: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_list.corels_wrapper.OptimalRuleListClassifier | [
0.043759483844041824,
-0.05829524248838425,
-0.01917807012796402,
0.0047041443176567554,
-0.002920469967648387,
-0.01725645735859871,
-0.011548698879778385,
0.010045655071735382,
0.05700148269534111,
0.010863767005503178,
-0.021404094994068146,
0.006511601619422436,
0.05125567317008972,
-0.005327241495251656,
-0.019901052117347717,
0.03757607936859131,
0.029927682131528854,
0.023763302713632584,
0.03015599213540554,
-0.03365674987435341,
0.019206607714295387,
-0.04280818998813629,
-0.028786130249500275,
0.014982867054641247,
0.008499803952872753,
0.06552506983280182,
0.03797562047839165,
-0.045319605618715286,
0.08995427936315536,
-0.006554409395903349,
-0.025114137679338455,
-0.014183780178427696,
0.014649913646280766,
0.06293755024671555,
0.028995415195822716,
-0.03158293291926384,
-0.010816202498972416,
0.022792983800172806,
-0.06263314187526703,
-0.015287280082702637,
-0.037233613431453705,
-0.026693284511566162,
0.04859205335378647,
-0.09665138274431229,
0.059474844485521317,
0.031925398856401443,
-0.005346267484128475,
0.10509886592626572,
-0.019206607714295387,
-0.017675025388598442,
0.013222974725067616,
-0.011168180964887142,
0.01507799606770277,
-0.005136983003467321,
-0.005855209194123745,
0.0573820024728775,
0.055631622672080994,
0.04410194978117943,
0.059512898325920105,
0.028025096282362938,
0.027187958359718323,
0.03472219780087471,
0.03247714787721634,
-0.00838564895093441,
-0.04353117197751999,
-0.03873665630817413,
-0.04642310366034508,
-0.013879366219043732,
0.008613958954811096,
0.03175416588783264,
0.02869100123643875,
-0.0179128497838974,
0.005460422486066818,
0.026750363409519196,
0.021556302905082703,
-0.026350820437073708,
-0.04048703610897064,
-0.05243527516722679,
0.05300605297088623,
-0.04166663810610771,
0.017075711861252785,
-0.01714230142533779,
-0.02705477550625801,
-0.08105017244815826,
-0.009065823629498482,
-0.032210785895586014,
-0.008452239446341991,
-0.049276985228061676,
0.03938353434205055,
0.003046516329050064,
-0.08546417206525803,
0.05152203515172005,
-0.016248086467385292,
-0.0030132210813462734,
0.009560495615005493,
-0.030631639063358307,
0.0018407522002235055,
-0.058485500514507294,
0.002388934837654233,
-0.026560103520751,
0.0006890929653309286,
0.03593985363841057,
0.06640025973320007,
0.07572293281555176,
0.037119459360837936,
-0.050532691180706024,
-0.016666656360030174,
-0.008690062910318375,
-0.011215745471417904,
-0.0038432241417467594,
0.011510646902024746,
-0.010882792994379997,
-0.05958900228142738,
0.01910196617245674,
0.0013211083132773638,
0.0010250182822346687,
-0.019691767171025276,
-0.04334091395139694,
-0.05087515711784363,
-0.015020918101072311,
-0.026788413524627686,
0.011082564480602741,
-0.02538049966096878,
-0.06362248212099075,
0.0007122807437554002,
0.004285575356334448,
0.009617573581635952,
0.013327616266906261,
0.044824931770563126,
-0.07252658903598785,
-0.03162098303437233,
-0.006816015113145113,
-0.03907912224531174,
0.09284620732069016,
0.04398779571056366,
0.01623857393860817,
0.04748855158686638,
0.020433776080608368,
-0.011948241852223873,
0.059018224477767944,
-0.0030179773457348347,
0.020129362121224403,
0.03679601848125458,
-0.0213850699365139,
-0.0014435873599722981,
-0.05072294920682907,
0.026997698470950127,
-0.00013050551933702081,
0.025684913620352745,
-0.034056294709444046,
0.02595127560198307,
-0.018331417813897133,
0.002858635736629367,
-0.012661711312830448,
-0.0026683772448450327,
0.0019073426956310868,
0.023002266883850098,
-0.004899159539490938,
0.011253797449171543,
-0.018217263743281364,
-0.004808786790817976,
-0.005645924713462591,
-0.012148013338446617,
-0.09140024334192276,
0.03525492176413536,
0.02146117202937603,
-0.00612157117575407,
-0.04855399951338768,
-0.038337111473083496,
0.03550225868821144,
-0.06084470823407173,
-0.02773970738053322,
-0.03378993272781372,
0.006863580085337162,
0.03529297560453415,
0.03934548422694206,
0.01714230142533779,
0.005565064959228039,
0.008552124723792076,
0.028101198375225067,
0.013803263194859028,
-0.05262553691864014,
-0.08546417206525803,
-0.03586374968290329,
0.006416472140699625,
0.07123282551765442,
0.006354637909680605,
0.0019763114396482706,
-0.04360727593302727,
0.04558596760034561,
0.029452035203576088,
-0.008399918675422668,
0.05369098484516144,
0.03439876064658165,
-0.03129754215478897,
-0.04802127555012703,
-0.05905627831816673,
0.048744261264801025,
0.013774724677205086,
0.07686448097229004,
0.05833329260349274,
0.009051553905010223,
0.018797552213072777,
0.04897256940603256,
0.00613108417019248,
0.049961913377046585,
0.03651063144207001,
-0.00014819363423157483,
-0.05243527516722679,
-0.013080280274152756,
0.013156384229660034,
-0.026560103520751,
0.01807457022368908,
-0.008452239446341991,
0.0039193276315927505,
-0.010958896949887276,
0.01775112934410572,
-0.015591694042086601,
-0.011995806358754635,
-0.022907137870788574,
0.09277010709047318,
0.048173483461141586,
0.033675774931907654,
0.01971079409122467,
0.025970302522182465,
-0.031145336106419563,
0.05547941476106644,
-0.05194060504436493,
-0.03668186441063881,
-0.07907148450613022,
0.0047041443176567554,
0.0007170371827669442,
0.01868339627981186,
0.04387363791465759,
-0.03472219780087471,
-0.019939104095101357,
0.036206215620040894,
0.03848931938409805,
-0.01348933670669794,
-0.00671137310564518,
-0.005964607931673527,
0.049429189413785934,
0.05007607117295265,
0.03312402591109276,
-0.055022794753313065,
-0.0170186348259449,
-0.0045519378036260605,
0.06777012348175049,
0.04288429394364357,
-0.0017717834562063217,
0.0427701398730278,
-0.025761017575860023,
-0.05190255120396614,
-0.0028134493622928858,
-0.03108825907111168,
-0.03401824086904526,
-0.04219936206936836,
0.00027171309920959175,
0.04296039789915085,
-0.015315819531679153,
-0.030745793133974075,
0.01224314235150814,
0.0018716691993176937,
0.041438329964876175,
0.018093595281243324,
0.011786521412432194,
0.043150655925273895,
0.013822289183735847,
-0.05570772662758827,
0.004842082038521767,
-0.009684164077043533,
0.04501518979668617,
-0.0014959084801375866,
0.017694052308797836,
-0.018264828249812126,
-0.05235917493700981,
-0.0000900012455531396,
-0.024372130632400513,
-0.04330286383628845,
-0.012347784824669361,
0.05019022524356842,
-0.02366817370057106,
0.04334091395139694,
0.006126327905803919,
-0.014345500618219376,
-0.030650664120912552,
-0.004525776952505112,
0.05369098484516144,
0.012195577844977379,
-0.020871371030807495,
0.0110540259629488,
0.007748282514512539,
-0.005807644687592983,
-0.042617931962013245,
0.03211565688252449,
-0.003481732914224267,
-0.07313541322946548,
0.0012949478114023805,
0.0016944909002631903,
-0.011482108384370804,
0.02092844806611538,
-0.0011861436069011688,
-0.0329718180000782,
-0.01771307736635208,
0.052777741104364395,
-0.021556302905082703,
0.08105017244815826,
-0.007986105978488922,
-0.01174847036600113,
0.005741054192185402,
0.003912192769348621,
0.045319605618715286,
-0.033561620861291885,
-0.04452051967382431,
-0.0012039804132655263,
-0.0026374601293355227,
-0.01386985369026661,
0.018188724294304848,
0.04018262028694153,
0.1041095182299614,
-0.014440629631280899,
0.04737439751625061,
-0.03426557779312134,
-0.007372521795332432,
-0.01397449616342783,
-0.012186065316200256,
-0.0036125355400145054,
-0.004042995627969503,
-0.038337111473083496,
0.0009298890363425016,
-0.031316570937633514,
-0.0038836542516946793,
0.022621750831604004,
0.024752646684646606,
-0.08607300370931625,
0.03125949203968048,
-0.004064399749040604,
-0.02349694073200226,
0.014573810622096062,
-0.012395349331200123,
0.035064663738012314,
-0.017475254833698273,
-0.006197674665600061,
-0.01279489230364561,
-0.03643452748656273,
-0.011215745471417904,
0.05194060504436493,
-0.002348504960536957,
0.0791475847363472,
-0.02342083677649498,
0.021404094994068146,
-0.03810880333185196,
0.052168913185596466,
0.04908672347664833,
0.08432262390851974,
-0.006635269615799189,
-0.013765211217105389,
-0.04589037969708443,
-0.0075057027861475945,
-0.0709284171462059,
0.028424639254808426,
-0.04843984544277191,
-0.0035530799068510532,
0.0061596231535077095,
0.010835228487849236,
-0.0009191869758069515,
-0.025475630536675453,
0.003686260897666216,
0.025818094611167908,
-0.056582916527986526,
0.0034175205510109663,
-0.09824955463409424,
-0.05429981276392937,
0.023896483704447746,
0.019206607714295387,
0.002143976977095008,
-0.03999236226081848,
-0.017941389232873917,
-0.05068489909172058,
0.028710026293992996,
0.032210785895586014,
0.022184155881404877,
-0.005046609789133072,
0.011377465911209583,
0.010369095019996166,
-0.04577622562646866,
0.025722965598106384,
0.016143444925546646,
0.03848931938409805,
-0.01770356483757496,
0.021898766979575157,
-0.052777741104364395,
-0.014240858145058155,
0.01067350897938013,
-0.018987810239195824,
-0.06982491165399551,
0.02619861252605915,
-0.010378607548773289,
0.0072060455568134785,
-0.042655982077121735,
0.054528120905160904,
-0.05646875873208046,
0.012994663789868355,
0.024543361738324165,
0.034417785704135895,
0.009665138088166714,
0.038337111473083496,
0.027035750448703766,
0.015601207502186298,
0.019292224198579788,
-0.048858415335416794,
-0.04893451929092407,
0.02011033706367016,
-0.024105768650770187,
-0.0016695194644853473,
0.01653347536921501,
0.02869100123643875,
-0.004711279179900885,
0.02937593124806881,
0.006492575630545616,
0.056164346635341644,
0.008604446426033974,
0.019472969695925713,
0.03468414768576622,
0.051712293177843094,
0.0068730926141142845,
-0.04509129375219345,
-0.042617931962013245,
-0.0025732479989528656,
0.04128612205386162,
0.008866052143275738,
0.029433010146021843,
-0.041438329964876175,
-0.008552124723792076,
-0.03630134463310242,
-0.015468026511371136,
-0.05646875873208046,
-0.025114137679338455,
0.013270539231598377,
0.05117956921458244,
-0.05639265477657318,
-0.04463467374444008,
-0.01766551285982132,
-0.022127078846096992,
-0.042617931962013245,
-0.05403345078229904,
0.01046422403305769,
0.03881276026368141,
0.05681122466921806,
-0.06640025973320007,
0.05319631099700928,
0.03080287203192711,
0.005446153227239847,
0.04166663810610771,
-0.02349694073200226,
-0.052245017141103745,
0.035312000662088394,
-0.050494637340307236,
-0.0061120581813156605,
0.03877470642328262,
0.03426557779312134,
0.002739724237471819,
-0.06255703419446945,
-0.02092844806611538,
-0.027929965406656265,
0.03472219780087471,
0.016837887465953827,
0.01058789249509573,
-0.06655246764421463,
-0.03255325183272362,
0.030213069170713425,
-0.06978686153888702,
-0.02851976826786995,
-0.010292991995811462,
-0.023287655785679817,
0.021689483895897865,
-0.013327616266906261,
0.02060500904917717,
-0.07123282551765442,
-0.022012922912836075,
0.016942530870437622,
-0.024505311623215675,
0.040943656116724014,
0.05129372701048851,
-0.017170840874314308,
-0.06624805182218552,
-0.013308591209352016,
-0.001983446069061756,
-0.02281200885772705,
-0.007496189791709185,
-0.009493905119597912,
0.06503039598464966,
0.05407150089740753,
0.028139250352978706,
-0.017437202855944633,
0.05319631099700928,
0.0452815517783165,
0.01552510354667902,
-0.018864141777157784,
-0.01438355166465044,
-0.01873096078634262,
-0.032990846782922745,
0.020224491134285927,
0.04181884601712227,
0.015553642995655537,
-0.05015217512845993,
-0.04691777750849724,
-0.015724875032901764,
0.0018122134497389197,
-0.007091890089213848,
-0.024790698662400246,
-0.004240388981997967,
-0.004932454787194729,
0.06088275834918022,
-0.004442539066076279,
-0.017351586371660233,
-0.07739720493555069,
0.008128799498081207,
-0.05570772662758827,
-0.014012548141181469,
0.0684550553560257,
0.01281391829252243,
0.05361488088965416,
-0.051712293177843094,
0.011634314432740211,
-0.0009453475358895957,
0.012899534776806831,
-0.018740475177764893,
-0.012928073294460773,
0.028900284320116043,
-0.01115866843611002,
-0.006216700654476881,
-0.010188349522650242,
0.01730402186512947,
0.01579146645963192,
0.06149158626794815,
-0.02427699975669384,
-0.011415517888963223,
0.046537257730960846,
0.005260650999844074,
0.024752646684646606,
0.04025872424244881,
-0.06506844609975815,
0.03165903687477112,
-0.006054980680346489,
-0.04402584582567215,
0.023515965789556503,
-0.013432258740067482,
0.022735904902219772,
-0.09140024334192276,
-0.0627472922205925,
0.03843224048614502,
0.0417046919465065,
0.015591694042086601,
-0.012385836802423,
0.010331043042242527,
0.05361488088965416,
-0.01819823682308197,
0.030270148068666458,
0.01640980690717697,
-0.020053258165717125,
-0.026902569457888603,
0.025570759549736977,
0.029033465310931206,
-0.037880491465330124,
0.0773591548204422,
0.053348518908023834,
0.015601207502186298,
-0.04672751948237419,
-0.09413997083902359,
-0.008599690161645412,
0.0076198577880859375,
-0.003189210081472993,
0.027606526389718056,
-0.035768620669841766,
0.05833329260349274,
0.016999607905745506,
-0.018065055832266808,
-0.032629355788230896,
-0.060045622289180756,
0.026826465502381325,
-0.046575311571359634,
0.021727534011006355,
-0.022127078846096992,
-0.06742765754461288,
0.0030536509584635496,
-0.014678453095257282,
0.04292234405875206,
-0.016961555927991867,
0.007391547784209251,
-0.031525854021310806,
-0.07012932747602463,
-0.035235896706581116,
-0.03643452748656273,
0.024619465693831444,
0.044824931770563126,
-0.05589798465371132,
-0.03226786106824875,
0.034208498895168304,
-0.027492370456457138,
-0.040296778082847595,
0.020053258165717125,
0.011910189874470234,
0.009988578036427498,
-0.007676935289055109,
0.002708807121962309,
-0.046004533767700195,
0.02277395687997341,
0.016581039875745773,
-0.02231733687222004,
-0.004097694996744394,
-0.02081429399549961,
0.011862625367939472,
-0.024505311623215675,
0.026921594515442848,
0.021156759932637215,
-0.030993130058050156,
0.05426175892353058,
0.04977165535092354,
-0.09824955463409424,
-0.020205466076731682,
-0.03228688985109329,
0.008637741208076477,
0.005917043425142765,
-0.05692537873983383,
0.014516732655465603,
0.009051553905010223,
-0.0702054351568222,
-0.010502276010811329,
-0.05243527516722679,
0.012195577844977379,
-0.025190241634845734,
0.04284624382853508,
0.0019656093791127205,
0.0923134833574295,
-0.01689496636390686,
0.07073815912008286,
0.024657517671585083,
-0.06571532785892487,
0.01672373339533806,
0.002077386248856783,
0.009479636326432228,
-0.021118707954883575,
0.028310483321547508,
-0.06617195159196854,
0.037804387509822845,
-0.004009700380265713,
-0.04284624382853508,
0.08782338351011276,
-0.012347784824669361,
-0.03772828355431557,
0.07724500447511673,
-0.037157509475946426,
0.004975263029336929,
0.0588279664516449,
-0.015924647450447083,
-0.015068482607603073,
-0.0033390389289706945,
0.03068871609866619,
-0.04554791375994682,
-0.02492387965321541,
-0.004813543055206537,
0.05852355435490608,
-0.031925398856401443,
-0.0019810679368674755,
0.021651431918144226,
-0.03820393234491348,
-0.054452016949653625,
0.07408671081066132,
0.05601213872432709,
0.015724875032901764,
0.008709088899195194,
-0.0029228480998426676,
0.015696337446570396,
0.021156759932637215,
-0.01853119023144245,
0.03047943115234375,
-0.0474124476313591,
-0.027264060452580452,
0.03447486460208893,
-0.006896875333040953,
0.04223741590976715,
-0.04866815730929375,
0.05152203515172005,
0.00010657456004992127,
-0.007662666030228138,
0.02713087946176529,
0.0002669566310942173,
-0.011453568935394287,
-0.053805138915777206,
0.00027959098224528134,
-0.08203952014446259,
0.05768641456961632,
0.02456238865852356,
-0.009070579893887043,
0.00032938524964265525,
-0.08386600017547607,
-0.07671228051185608,
0.03044137917459011,
-0.007101403083652258,
-0.0026564861182123423,
0.01803651824593544,
0.0057981316931545734,
-0.01438355166465044,
0.007714987266808748,
0.0077197435311973095,
0.007087133824825287,
-0.020053258165717125,
0.004680362064391375,
-0.029737422242760658,
0.040981706231832504,
0.007586562540382147,
0.04128612205386162,
-0.04307455196976662,
0.0802130326628685,
0.009646112099289894,
-0.006516357883810997,
-0.007144211325794458,
0.010197862051427364,
0.02880515530705452,
0.014412091113626957,
-0.008190633729100227,
0.040410932153463364,
-0.03892691433429718,
-0.006992004346102476,
-0.000463160831714049,
-0.02235538884997368,
-0.03287668898701668,
-0.001297325943596661,
-0.019406380131840706,
0.08394210785627365,
0.006644782610237598,
-0.012423887848854065,
-0.0052130864933133125,
0.03692919760942459,
-0.08135458827018738,
0.006116814911365509,
-0.006035954691469669,
0.02492387965321541,
0.05015217512845993,
-0.042579881846904755,
0.058980174362659454,
-0.037519000470638275,
0.0438355877995491,
0.020833319053053856,
0.022260259836912155,
0.008162095211446285,
0.005669706966727972,
0.0741628110408783,
-0.01350836269557476,
0.028044121339917183,
0.015943672508001328,
0.006002659443765879,
0.003731447272002697,
0.021651431918144226,
-0.054375916719436646,
0.0036101574078202248,
0.014916276559233665,
0.033770907670259476,
-0.026065431535243988,
-0.05121762305498123,
-0.020433776080608368,
0.002348504960536957,
-0.015068482607603073,
0.021251888945698738,
0.02713087946176529,
0.02011033706367016,
0.05635460466146469
] |
17,652 | imodels.tree.gosdt.pygosdt | OptimalTreeClassifier | null | class OptimalTreeClassifier(GreedyTreeClassifier if not gosdt_supported else BaseEstimator):
def __init__(self,
balance=False,
cancellation=True,
look_ahead=True,
similar_support=True,
feature_exchange=True,
continuous_feature_exchange=True,
rule_list=False,
diagnostics=False,
verbose=False,
regularization=0.05,
uncertainty_tolerance=0.0,
upperbound=0.0,
model_limit=1,
precision_limit=0,
stack_limit=0,
tile_limit=0,
time_limit=0,
worker_limit=1,
random_state=None,
costs="",
model="",
profile="",
timing="",
trace="",
tree=""):
super().__init__()
self.balance = balance
self.cancellation = cancellation
self.look_ahead = look_ahead
self.similar_support = similar_support
self.feature_exchange = feature_exchange
self.continuous_feature_exchange = continuous_feature_exchange
self.rule_list = rule_list
self.diagnostics = diagnostics
self.verbose = verbose
self.regularization = regularization
self.uncertainty_tolerance = uncertainty_tolerance
self.upperbound = upperbound
self.model_limit = model_limit
self.precision_limit = precision_limit
self.stack_limit = stack_limit
self.tile_limit = tile_limit
self.time_limit = time_limit
self.worker_limit = worker_limit
self.costs = costs
self.model = model
self.profile = profile
self.timing = timing
self.trace = trace
self.tree = tree
self.tree_type = 'gosdt'
self.random_state = random_state
if random_state is not None:
np.random.seed(random_state)
def load(self, path):
"""
Parameters
---
path : string
path to a JSON file representing a model
"""
with open(path, 'r') as model_source:
result = model_source.read()
result = json.loads(result)
self.tree_ = TreeClassifier(result[0])
def fit(self, X, y, feature_names=None):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
matrix containing the training samples and features
y : array-like, shape = [n_samples, 1]
column containing the correct label for each sample in X
Modifies
---
trains the model so that this model instance is ready for prediction
"""
try:
import gosdt
if not isinstance(X, pd.DataFrame):
self.feature_names_ = list(rule.get_feature_dict(X.shape[1], feature_names).keys())
X = pd.DataFrame(X, columns=self.feature_names_)
else:
self.feature_names_ = X.columns
if not isinstance(y, pd.DataFrame):
y = pd.DataFrame(y, columns=['target'])
# gosdt extension expects serialized CSV, which we generate via pandas
dataset_with_target = pd.concat((X, y), axis=1)
# Perform C++ extension calls to train the model
configuration = self._get_configuration()
gosdt.configure(json.dumps(configuration, separators=(',', ':')))
result = gosdt.fit(dataset_with_target.to_csv(index=False))
result = json.loads(result)
self.tree_ = TreeClassifier(result[0])
# Record the training time, number of iterations, and graph size required
self.time_ = gosdt.time()
self.iterations_ = gosdt.iterations()
self.size_ = gosdt.size()
except ImportError:
warnings.warn(
"Should install gosdt extension. On x86_64 linux or macOS: "
"'pip install gosdt-deprecated'. On other platforms, see "
"https://github.com/keyan3/GeneralizedOptimalSparseDecisionTrees. "
"Defaulting to Non-optimal DecisionTreeClassifier."
)
# dtree = DecisionTreeClassifierWithComplexity()
# dtree.fit(X, y)
# self.tree_ = dtree
super().fit(X, y, feature_names=feature_names)
self.tree_type = 'dt'
return self
def predict(self, X):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
a matrix where each row is a sample to be predicted and each column is a feature to
be used for prediction
Returns
---
array-like, shape = [n_samples, 1] : a column where each element is the prediction
associated with each row
"""
validation.check_is_fitted(self)
if self.tree_type == 'gosdt':
if type(self.tree_) is TreeClassifier and not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
return self.tree_.predict(X)
else:
return super().predict(X)
def predict_proba(self, X):
validation.check_is_fitted(self)
if self.tree_type == 'gosdt':
if type(self.tree_) is TreeClassifier and not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
probs = np.expand_dims(self.tree_.confidence(X), axis=1)
return np.hstack((1 - probs, probs))
else:
return super().predict_proba(X)
def score(self, X, y, weight=None):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
an n-by-m matrix of sample and their features
y : array-like, shape = [n_samples,]
an n-by-1 column of labels associated with each sample
weight : shape = [n_samples,]
an n-by-1 column of weights to apply to each sample's misclassification
Returns
---
real number : the accuracy produced by applying this model over the given dataset, with
optionals for weighted accuracy
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
if not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
return self.tree_.score(X, y, weight=weight)
else:
return self.tree_.score(X, y, sample_weight=weight)
def __len__(self):
"""
Returns
---
natural number : The number of terminal nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return len(self.tree_)
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
def leaves(self):
"""
Returns
---
natural number : The number of terminal nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.leaves()
else:
return self.tree_.get_n_leaves()
def nodes(self):
"""
Returns
---
natural number : The number of nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.nodes()
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
def max_depth(self):
"""
Returns
---
natural number : the length of the longest decision path in this tree. A single-node tree
| (balance=False, cancellation=True, look_ahead=True, similar_support=True, feature_exchange=True, continuous_feature_exchange=True, rule_list=False, diagnostics=False, verbose=False, regularization=0.05, uncertainty_tolerance=0.0, upperbound=0.0, model_limit=1, precision_limit=0, stack_limit=0, tile_limit=0, time_limit=0, worker_limit=1, random_state=None, costs='', model='', profile='', timing='', trace='', tree='') | [
0.0438908226788044,
-0.01276184618473053,
0.002299769315868616,
0.007808098569512367,
0.02221429906785488,
-0.04682790860533714,
-0.06560871005058289,
-0.002474288223311305,
0.028440093621611595,
-0.03276298940181732,
0.001967537449672818,
-0.006024129223078489,
0.0034153966698795557,
0.0173226036131382,
-0.011003730818629265,
0.01968054473400116,
0.011334669776260853,
0.007047972176223993,
0.05460498109459877,
0.041119206696748734,
-0.006779084447771311,
-0.01839815452694893,
-0.045793723315000534,
0.0187497790902853,
-0.029784534126520157,
-0.023600107058882713,
0.007911517284810543,
-0.018263710662722588,
0.015740299597382545,
-0.024923864752054214,
-0.06507093459367752,
-0.0161022637039423,
-0.07826714217662811,
-0.010243604891002178,
-0.015450727194547653,
-0.03851305693387985,
0.03342486545443535,
0.0510060153901577,
-0.05212293565273285,
-0.020063193514943123,
-0.07830850780010223,
-0.07404766231775284,
-0.060024112462997437,
-0.030508464202284813,
-0.006277504377067089,
0.012865263968706131,
-0.026619927957654,
0.09158744663000107,
-0.017239868640899658,
-0.0349554605782032,
0.004617637023329735,
-0.0489790141582489,
-0.013754663988947868,
0.045793723315000534,
-0.05075781047344208,
0.06163743883371353,
0.034272897988557816,
0.029184706509113312,
0.0672634094953537,
-0.03605169802904129,
0.054977286607027054,
0.04521457850933075,
0.02198677882552147,
0.000745259749237448,
-0.02784026600420475,
0.008294165134429932,
-0.0352657176554203,
-0.009286983869969845,
-0.03226657956838608,
0.034272897988557816,
-0.06180290877819061,
-0.05431540682911873,
0.06589828431606293,
0.04637286439538002,
0.036610156297683716,
0.010259117931127548,
-0.01629875972867012,
-0.10068827122449875,
0.012213727459311485,
-0.017767302691936493,
-0.029763851314783096,
-0.004255672451108694,
0.05319849029183388,
-0.04885490983724594,
-0.0198149885982275,
-0.03259751945734024,
0.07545415312051773,
0.023806944489479065,
-0.006851477082818747,
-0.0025738284457474947,
-0.05663198232650757,
0.02657856047153473,
0.050344135612249374,
0.03023957647383213,
0.028315991163253784,
0.02198677882552147,
-0.020073534920811653,
-0.00813386682420969,
-0.04558688402175903,
-0.05890719220042229,
0.02085951529443264,
0.03588622808456421,
-0.012213727459311485,
0.05319849029183388,
-0.026226937770843506,
-0.01728123612701893,
-0.046993378549814224,
0.03923698887228966,
-0.00035614753141999245,
-0.04554551839828491,
-0.13460955023765564,
0.052908916026353836,
0.051543790847063065,
-0.013951159082353115,
0.013216887600719929,
-0.06933178007602692,
-0.023806944489479065,
-0.003655844833701849,
-0.05315712094306946,
-0.010848603211343288,
0.0019390973029658198,
0.044925007969141006,
-0.019194478169083595,
0.02213156409561634,
-0.03520366549491882,
-0.015533462166786194,
0.060975562781095505,
0.05654924735426903,
-0.015574829652905464,
-0.04666243866086006,
0.009705828502774239,
0.005194195546209812,
-0.00043920555617660284,
0.029619066044688225,
0.024013781920075417,
-0.035162296146154404,
0.0016934783197939396,
0.015430043451488018,
0.002802642062306404,
-0.0004838047898374498,
0.04839986935257912,
-0.06329213827848434,
0.02566847763955593,
-0.05911402776837349,
0.08670608699321747,
0.015316283330321312,
-0.007585748564451933,
-0.007327202241867781,
-0.051626525819301605,
0.007575406692922115,
-0.0015112031251192093,
-0.022896861657500267,
0.033135294914245605,
-0.03843032196164131,
0.004697786644101143,
0.010155699215829372,
-0.018811829388141632,
-0.08811258524656296,
-0.004550415091216564,
-0.018325762823224068,
-0.04538004845380783,
-0.030508464202284813,
0.0004602124390657991,
0.014044235460460186,
0.00035420843050815165,
0.026475142687559128,
-0.042318858206272125,
-0.015026711858808994,
-0.04310484230518341,
0.01638149470090866,
0.013713296502828598,
-0.010171211324632168,
-0.03915425390005112,
0.012358513660728931,
-0.02444813959300518,
0.06234068423509598,
0.061016928404569626,
0.04769662395119667,
0.02192472666501999,
0.054067205637693405,
0.02659924514591694,
-0.008294165134429932,
-0.03584485873579979,
0.015492094680666924,
-0.00805113185197115,
0.007544381078332663,
0.021676521748304367,
0.007280664052814245,
-0.021200796589255333,
0.03735477104783058,
-0.0026177812833338976,
-0.023496689274907112,
0.036444686353206635,
0.03394195809960365,
0.06047915294766426,
0.01037804875522852,
0.020145928487181664,
0.009762709029018879,
0.025916682556271553,
0.06924904137849808,
0.004904623609036207,
0.0020657849963754416,
0.05493592098355293,
-0.02792300097644329,
-0.05299165099859238,
0.010109161026775837,
-0.03317666053771973,
0.042360227555036545,
-0.006753229536116123,
-0.027261123061180115,
-0.02430335246026516,
-0.0018227514810860157,
-0.030818719416856766,
0.05232977122068405,
0.051667895168066025,
-0.08343806117773056,
0.0207250714302063,
0.014799190685153008,
-0.034024693071842194,
-0.05683882161974907,
-0.0049227215349674225,
0.019990799948573112,
-0.02339326962828636,
0.005832804832607508,
0.02649582549929619,
-0.05654924735426903,
0.043394412845373154,
0.01853260025382042,
0.03975408151745796,
-0.07317894697189331,
0.025089334696531296,
-0.06573281437158585,
0.04091236740350723,
-0.016898587346076965,
0.03925767168402672,
-0.017177816480398178,
0.0151404719799757,
-0.0016986492555588484,
-0.042442962527275085,
-0.01211030874401331,
-0.02806778810918331,
-0.049227215349674225,
-0.026454458013176918,
-0.050261400640010834,
0.007875320501625538,
0.01510944589972496,
0.0556805320084095,
0.007254809606820345,
0.02649582549929619,
-0.010993389412760735,
-0.0030275771860033274,
-0.07185518741607666,
-0.02550300769507885,
-0.00804079044610262,
-0.0483585000038147,
-0.0922493264079094,
0.04496637359261513,
0.03714793547987938,
0.05220567062497139,
-0.004889110568910837,
-0.031873587518930435,
-0.020270030945539474,
-0.06651879101991653,
0.10738979279994965,
-0.05232977122068405,
-0.021149087697267532,
0.041388094425201416,
-0.043477147817611694,
0.016733117401599884,
-0.005744899157434702,
0.044594068080186844,
0.06614648550748825,
-0.07847397774457932,
0.002422578865662217,
-0.028626248240470886,
0.001259120530448854,
-0.05456361174583435,
-0.008702668361365795,
0.0064326319843530655,
-0.0032163159921765327,
0.01501636952161789,
-0.07954952865839005,
0.015636879950761795,
0.02786095067858696,
-0.0786394476890564,
-0.004697786644101143,
-0.04200860485434532,
-0.035369135439395905,
0.01509910449385643,
0.014302781783044338,
-0.05448087677359581,
0.04273253306746483,
0.012089625000953674,
0.023476004600524902,
0.06829759478569031,
-0.029743166640400887,
-0.009550700895488262,
-0.022938229143619537,
-0.0016353053506463766,
0.026247620582580566,
0.04281526803970337,
0.020600968971848488,
0.044676803052425385,
-0.0345417857170105,
-0.01612294837832451,
0.032039057463407516,
0.07065553218126297,
-0.03007410652935505,
0.01862567663192749,
0.02444813959300518,
-0.010326339863240719,
0.01638149470090866,
0.056425146758556366,
0.029432911425828934,
-0.029639748856425285,
-0.048110298812389374,
0.007244467735290527,
-0.05654924735426903,
0.06478136032819748,
0.024696342647075653,
-0.07413040101528168,
0.05261934548616409,
0.008061474189162254,
0.002652685157954693,
0.016867561265826225,
-0.027426593005657196,
0.062009748071432114,
0.007327202241867781,
-0.02442745491862297,
0.005315712187439203,
0.004017809871584177,
-0.04513184353709221,
0.06047915294766426,
0.01611260510981083,
0.007792585529386997,
0.037747759371995926,
0.04072621464729309,
-0.0052122934721410275,
-0.008831941522657871,
0.010621082037687302,
0.04029185697436333,
0.05017866939306259,
-0.02568916045129299,
0.029681116342544556,
0.021511053666472435,
-0.03946450725197792,
0.02552369236946106,
0.026164885610342026,
0.0280471034348011,
0.07094510644674301,
-0.02320711687207222,
0.03903014957904816,
0.009493820369243622,
0.07628150284290314,
0.011996548622846603,
-0.028646931052207947,
0.019101401790976524,
0.03783049434423447,
0.03338349983096123,
-0.011241593398153782,
0.004196206573396921,
-0.01743636280298233,
-0.021262848749756813,
0.03985749930143356,
0.048110298812389374,
-0.047034744173288345,
-0.02192472666501999,
0.01849123276770115,
0.04786209389567375,
-0.044800903648138046,
0.007937371730804443,
-0.0417603999376297,
-0.005972419865429401,
0.013196203857660294,
0.0160505548119545,
0.04645559936761856,
-0.04248432815074921,
-0.0024135299026966095,
0.0002764829550869763,
0.01332030538469553,
0.03381785750389099,
-0.010920995846390724,
-0.001972708385437727,
0.018822170794010162,
-0.005682847928255796,
-0.06875263154506683,
0.046993378549814224,
-0.005455327220261097,
0.0440976582467556,
-0.0810801237821579,
0.003927318379282951,
-0.02879171632230282,
-0.011593216098845005,
0.011386379599571228,
-0.022483186796307564,
-0.004054006189107895,
-0.00231269677169621,
0.014333806931972504,
-0.04273253306746483,
-0.0133616728708148,
-0.02079746499657631,
-0.03133581206202507,
0.023868994787335396,
-0.0007943835225887597,
0.007492672186344862,
-0.016939954832196236,
0.05807984247803688,
0.020001143217086792,
-0.037623658776283264,
0.06143060326576233,
-0.011831078678369522,
0.045793723315000534,
-0.024613607674837112,
0.048110298812389374,
-0.0443044938147068,
-0.014716455712914467,
0.013444407843053341,
0.06891810148954391,
0.054025836288928986,
0.005956906825304031,
0.010331510566174984,
0.051626525819301605,
0.00993852037936449,
0.02684744819998741,
0.04744841903448105,
0.025792580097913742,
-0.03681699559092522,
0.010827919468283653,
-0.035472553223371506,
0.02775753103196621,
-0.02083883248269558,
0.006334384437650442,
-0.06134786829352379,
-0.03710656613111496,
0.010259117931127548,
-0.017798328772187233,
-0.03361102193593979,
-0.020580286160111427,
-0.007673654239624739,
0.010631424374878407,
-0.029557013884186745,
0.003929903730750084,
0.06912494450807571,
-0.025813262909650803,
0.034334950149059296,
-0.022545238956809044,
-0.0022118636406958103,
-0.03280435502529144,
-0.05543232709169388,
-0.04682790860533714,
0.00868198461830616,
0.014881925657391548,
0.04269116744399071,
0.0534466914832592,
-0.04500774294137955,
-0.006205111276358366,
0.007565064821392298,
-0.027261123061180115,
-0.036610156297683716,
0.009566213004291058,
-0.016484912484884262,
-0.006018958054482937,
0.03445905074477196,
0.04947542026638985,
-0.006013787351548672,
-0.012968682684004307,
0.04968225955963135,
0.011872446164488792,
-0.044676803052425385,
-0.024055149406194687,
0.042442962527275085,
-0.020083878189325333,
0.0007310396758839488,
-0.026516510173678398,
-0.06180290877819061,
0.028646931052207947,
-0.00815972127020359,
-0.029494963586330414,
0.00926112849265337,
-0.019008325412869453,
0.08505139499902725,
-0.030880771577358246,
0.05448087677359581,
0.016640041023492813,
-0.020187295973300934,
-0.0035110588651150465,
0.004010053351521492,
-0.037540923804044724,
0.0003328783786855638,
-0.043518513441085815,
-0.07164835184812546,
-0.03137718141078949,
0.020621653646230698,
0.025875315070152283,
-0.009033608250319958,
0.0371893011033535,
0.006215453147888184,
-0.00046926154755055904,
0.0030224062502384186,
-0.03758229315280914,
0.016774484887719154,
0.02090088278055191,
-0.0220488291233778,
-0.019421998411417007,
0.029639748856425285,
-0.0066291275434195995,
0.011396721005439758,
0.030694616958498955,
-0.05878308787941933,
0.011924155987799168,
-0.01110714953392744,
-0.04054006189107895,
0.060934193432331085,
0.03026025928556919,
0.01980464719235897,
0.003469691378995776,
0.04426312819123268,
0.02649582549929619,
0.02202814631164074,
0.018170634284615517,
0.0035963791888207197,
-0.013196203857660294,
0.03733408823609352,
-0.0419672355055809,
0.022234981879591942,
0.04157424718141556,
0.0018602407071739435,
0.042401593178510666,
0.07222750037908554,
0.02533753775060177,
0.06391264498233795,
-0.0322045274078846,
0.03338349983096123,
0.06593964993953705,
-0.004630564246326685,
-0.013651245273649693,
0.02081814967095852,
-0.03745818883180618,
0.002048979513347149,
-0.038926731795072556,
0.008831941522657871,
-0.04839986935257912,
-0.00027341273380443454,
0.022648656740784645,
-0.005178682506084442,
0.027199070900678635,
0.04525594413280487,
0.005837975535541773,
-0.0032550981268286705,
0.0007930907886475325,
0.004718469921499491,
0.015585171058773994,
0.013041076250374317,
0.018191318958997726,
0.06341623514890671,
0.02077678218483925,
-0.015740299597382545,
0.03574144095182419,
0.06043778359889984,
-0.011210568249225616,
-0.05017866939306259,
-0.03015684150159359,
0.02649582549929619,
-0.04314620792865753,
0.040105704218149185,
0.011345012113451958,
-0.06614648550748825,
0.07293074578046799,
-0.05898992717266083,
-0.010765868239104748,
0.0436839833855629,
0.015543804503977299,
-0.035451870411634445,
0.014457909390330315,
-0.05886582285165787,
0.002942257095128298,
-0.049227215349674225,
0.03594828024506569,
-0.07504048198461533,
0.009126684628427029,
0.01155184954404831,
0.021490368992090225,
0.0016353053506463766,
0.0032266578637063503,
-0.0071410490199923515,
-0.0015887670451775193,
0.004573684185743332,
0.04984772950410843,
-0.007694337982684374,
-0.038864679634571075,
-0.03812006860971451,
0.027116337791085243,
0.0075030140578746796,
-0.04035390913486481,
-0.008619934320449829,
0.02424130216240883,
-0.058741722255945206,
-0.015243890695273876,
0.050385504961013794,
-0.024055149406194687,
-0.00779775669798255,
0.05253661051392555,
0.007078997790813446,
0.0077201928943395615,
0.04571098834276199,
-0.03582417592406273,
0.0026242451276630163,
0.0110761234536767,
0.0014220046577975154,
-0.009685144759714603,
0.0029629406053572893,
0.020373448729515076,
0.03809938579797745,
-0.05485318601131439,
-0.04049869254231453,
-0.015874743461608887,
-0.03139786422252655,
-0.01635046862065792,
0.013961500488221645,
-0.061968378722667694,
-0.004604709800332785,
0.03359033539891243,
0.012637743726372719,
-0.00021168478997424245,
-0.03218384459614754,
-0.0581212118268013,
-0.01505773700773716,
-0.08529959619045258,
-0.008144209161400795,
-0.05199883505702019,
0.03036367893218994,
-0.057624801993370056,
-0.010672791860997677,
-0.04550414904952049,
0.027240438386797905,
-0.01639183610677719,
0.00039234402356669307,
0.010817577131092548,
-0.012472273781895638,
-0.004203963093459606,
-0.05940359830856323,
0.0038523399271070957,
-0.014220046810805798,
0.015874743461608887,
-0.0049459910951554775,
-0.05816257745027542,
-0.052784815430641174,
0.047158848494291306,
0.05501865595579147,
0.020414816215634346,
-0.015347308479249477,
0.028502145782113075,
-0.016040213406085968,
-0.05460498109459877,
-0.04022980481386185,
0.009364547207951546,
0.0009449867648072541,
0.014375174418091774,
0.029681116342544556,
0.011210568249225616,
-0.04380808770656586,
0.011624242179095745,
0.06250615417957306,
0.036424003541469574,
0.004540073219686747,
0.007606432307511568,
0.03232863172888756,
-0.01339269895106554,
0.002189887221902609,
0.029825901612639427,
-0.05187473073601723,
0.004077275283634663,
0.020394133403897285,
-0.0011421283707022667,
0.010336681269109249,
-0.054977286607027054,
0.03373512253165245,
0.032059744000434875,
0.02788163349032402,
-0.0007607724983245134,
0.0812869593501091,
0.10606604069471359,
-0.014592353254556656,
-0.030012056231498718,
0.03346623480319977,
-0.005656993016600609,
-0.020694047212600708,
-0.004465094767510891,
-0.0011602265294641256,
-0.044469963759183884,
-0.041346725076436996,
0.025027282536029816,
0.0324113667011261,
0.014995685778558254,
-0.019473707303404808,
-0.018925590440630913,
-0.050509605556726456,
-0.0015331796603277326,
-0.019380630925297737,
-0.04765525460243225,
0.0220488291233778,
-0.021283531561493874,
-0.05013730004429817,
0.029577698558568954,
0.007078997790813446,
0.08124559372663498,
-0.06957998126745224,
0.008997411467134953,
0.00037101394264027476,
-0.09241479635238647,
0.03356965258717537,
0.03481067344546318,
-0.006194769404828548,
-0.03601032868027687,
-0.014623379334807396,
-0.008542370051145554,
-0.00872852373868227,
0.004542658571153879,
-0.030839404091238976,
-0.021738573908805847,
-0.010838260874152184,
-0.021511053666472435,
0.06192701309919357,
0.021324899047613144,
-0.014385516755282879,
0.04624876379966736,
0.044676803052425385,
-0.05841078236699104,
0.044676803052425385,
-0.034293580800294876,
0.018201660364866257,
0.03245273232460022,
-0.016805510967969894,
-0.07322031259536743,
-0.03348691761493683,
-0.064202219247818,
0.02769548073410988,
-0.005023554898798466,
0.024717027321457863,
0.050509605556726456,
-0.003583451732993126,
-0.004346163477748632,
-0.021262848749756813,
-0.0133616728708148,
0.026433775201439857,
0.02451018989086151,
-0.0221522469073534,
0.029494963586330414,
0.012089625000953674,
-0.03915425390005112,
0.06738750636577606,
-0.034210845828056335,
0.033155977725982666,
-0.006846306379884481,
0.058534882962703705,
0.031935639679431915,
0.0038368271198123693,
-0.021655838936567307,
-0.014416541904211044,
-0.05948633328080177,
-0.0087647195905447,
-0.06267162412405014,
-0.026123518124222755,
-0.008521686308085918,
0.05241250619292259,
0.05332259088754654,
0.006748058833181858,
0.034293580800294876
] |
17,654 | imodels.tree.gosdt.pygosdt | __init__ | null | def __init__(self,
balance=False,
cancellation=True,
look_ahead=True,
similar_support=True,
feature_exchange=True,
continuous_feature_exchange=True,
rule_list=False,
diagnostics=False,
verbose=False,
regularization=0.05,
uncertainty_tolerance=0.0,
upperbound=0.0,
model_limit=1,
precision_limit=0,
stack_limit=0,
tile_limit=0,
time_limit=0,
worker_limit=1,
random_state=None,
costs="",
model="",
profile="",
timing="",
trace="",
tree=""):
super().__init__()
self.balance = balance
self.cancellation = cancellation
self.look_ahead = look_ahead
self.similar_support = similar_support
self.feature_exchange = feature_exchange
self.continuous_feature_exchange = continuous_feature_exchange
self.rule_list = rule_list
self.diagnostics = diagnostics
self.verbose = verbose
self.regularization = regularization
self.uncertainty_tolerance = uncertainty_tolerance
self.upperbound = upperbound
self.model_limit = model_limit
self.precision_limit = precision_limit
self.stack_limit = stack_limit
self.tile_limit = tile_limit
self.time_limit = time_limit
self.worker_limit = worker_limit
self.costs = costs
self.model = model
self.profile = profile
self.timing = timing
self.trace = trace
self.tree = tree
self.tree_type = 'gosdt'
self.random_state = random_state
if random_state is not None:
np.random.seed(random_state)
| (self, balance=False, cancellation=True, look_ahead=True, similar_support=True, feature_exchange=True, continuous_feature_exchange=True, rule_list=False, diagnostics=False, verbose=False, regularization=0.05, uncertainty_tolerance=0.0, upperbound=0.0, model_limit=1, precision_limit=0, stack_limit=0, tile_limit=0, time_limit=0, worker_limit=1, random_state=None, costs='', model='', profile='', timing='', trace='', tree='') | [
0.02013564109802246,
-0.016015293076634407,
-0.023864464834332466,
0.0032207705080509186,
-0.017870381474494934,
-0.048064522445201874,
-0.09911210089921951,
-0.01431867852807045,
-0.04985435679554939,
-0.06689507514238358,
-0.031396687030792236,
0.06749168783426285,
-0.0035004322417080402,
0.032030586153268814,
-0.04564078897237778,
0.0646577849984169,
0.0286373570561409,
0.01006782054901123,
0.037101782858371735,
0.013106810860335827,
-0.0030506430193781853,
0.0014950247714295983,
-0.04034585878252983,
0.06271879374980927,
-0.01231443602591753,
0.03533059358596802,
-0.024666160345077515,
-0.01219324953854084,
-0.006418235599994659,
0.010692398995161057,
-0.04933232069015503,
0.0010201825061812997,
-0.06260693073272705,
0.04019670560956001,
-0.0010096952319145203,
-0.0638001561164856,
0.018597502261400223,
0.033186521381139755,
-0.10858331620693207,
0.02069496549665928,
0.022969547659158707,
-0.055932339280843735,
0.015372070483863354,
-0.014458509162068367,
-0.025561079382896423,
0.007807222194969654,
0.002165047684684396,
0.06670863181352615,
-0.01972547173500061,
-0.03320516645908356,
-0.013917829841375351,
-0.0033815759234130383,
0.012090707197785378,
0.03672890365123749,
-0.03818314149975777,
0.045379769057035446,
0.054366230964660645,
0.03892890736460686,
0.05992217734456062,
-0.014924611896276474,
-0.024740736931562424,
0.04411197081208229,
0.026306843385100365,
0.00005487632370204665,
-0.01194155402481556,
-0.007839849218726158,
-0.09866464138031006,
-0.01701275259256363,
0.004838147200644016,
0.037605173885822296,
0.057983189821243286,
-0.00348644913174212,
-0.000608846778050065,
0.03611364588141441,
0.008879258297383785,
-0.021571237593889236,
-0.038089923560619354,
-0.0719662755727768,
-0.024405144155025482,
-0.03829500824213028,
0.017189871519804,
0.02887973003089428,
0.006516117602586746,
-0.028115322813391685,
0.01059917826205492,
-0.042433999478816986,
0.06104082614183426,
0.00607331981882453,
0.0032813637517392635,
0.013796643353998661,
-0.0835256278514862,
0.006786457262933254,
-0.01890513114631176,
0.022317003458738327,
0.07338322699069977,
-0.0017222499009221792,
-0.012752573005855083,
-0.032701775431632996,
-0.031117023900151253,
-0.02723904885351658,
-0.01399240642786026,
0.003227761946618557,
-0.032608553767204285,
0.032347533851861954,
-0.023137344047427177,
-0.04802723601460457,
-0.03788483887910843,
0.0015055120456963778,
-0.007788578048348427,
-0.07241373509168625,
-0.06685778498649597,
0.05794590339064598,
0.001197884208522737,
0.012202572077512741,
-0.036952629685401917,
0.00484746927395463,
-0.014878001995384693,
-0.012594098225235939,
0.007667391560971737,
-0.03344753757119179,
0.05280012637376785,
0.010822907090187073,
-0.02643735148012638,
0.04821367561817169,
-0.010123752988874912,
0.0006065163179300725,
0.03769839555025101,
0.03803398832678795,
0.015558511950075626,
-0.0384814478456974,
0.0031089058611541986,
-0.02103055827319622,
-0.018271230161190033,
0.04053230211138725,
0.018858520314097404,
-0.03503228724002838,
0.02955091930925846,
0.011307653971016407,
-0.027686506509780884,
0.025430569425225258,
0.06242049112915993,
-0.01321867574006319,
0.013675456866621971,
-0.051345884799957275,
0.017478855326771736,
0.015567834489047527,
-0.044895023107528687,
-0.029923800379037857,
-0.04597638174891472,
0.012090707197785378,
0.0051271310076117516,
-0.006805100943893194,
-0.050935715436935425,
0.01419749204069376,
0.017879704013466835,
0.02030343934893608,
-0.0039012806955724955,
-0.026325486600399017,
0.0027080574072897434,
0.019352588802576065,
-0.06443405151367188,
0.02226107008755207,
0.002160386648029089,
-0.02928990125656128,
-0.0220932736992836,
0.024498363956809044,
-0.04362722486257553,
-0.05835607275366783,
-0.042023830115795135,
0.024032261222600937,
-0.018056822940707207,
-0.05145775154232979,
-0.044149257242679596,
0.037195004522800446,
-0.041278064250946045,
0.05966116115450859,
0.05190521106123924,
0.029756003990769386,
-0.024200057610869408,
0.008832648396492004,
0.025020400062203407,
-0.034417033195495605,
-0.02839498408138752,
-0.035796698182821274,
0.0051877242513000965,
-0.021067846566438675,
0.011531383730471134,
0.01980004832148552,
0.015726309269666672,
0.05321029946208,
0.021627170965075493,
-0.017161905765533447,
0.040122129023075104,
-0.005318233277648687,
-0.004355730954557657,
-0.022522088140249252,
0.013032235205173492,
0.002010068390518427,
0.030389903113245964,
0.031862787902355194,
0.002673099748790264,
0.023267852142453194,
0.06525439769029617,
-0.060183197259902954,
0.011783079244196415,
-0.0016266988823190331,
-0.050040800124406815,
0.005360182374715805,
-0.03134075179696083,
0.03150855004787445,
-0.027444133535027504,
-0.01541868131607771,
0.037344157695770264,
0.06909508258104324,
0.027313625440001488,
-0.05354589223861694,
0.030222106724977493,
0.028618713840842247,
0.012715284712612629,
-0.0020275472197681665,
0.07897645980119705,
-0.030017022043466568,
-0.020191574469208717,
-0.018522925674915314,
0.034976355731487274,
0.010972060263156891,
0.03523737192153931,
0.002010068390518427,
-0.010431380942463875,
-0.04858655855059624,
-0.008366545662283897,
-0.08151206374168396,
-0.00957375206053257,
-0.00981612503528595,
0.03657975047826767,
-0.012006809003651142,
0.007606797851622105,
0.021701747551560402,
-0.06473235785961151,
-0.004386027343571186,
-0.003570347558706999,
0.015614444389939308,
0.018224619328975677,
-0.03382042050361633,
0.009224174544215202,
-0.02315598726272583,
0.02889837510883808,
0.008487732149660587,
-0.016956821084022522,
-0.020005133002996445,
-0.013675456866621971,
-0.036859411746263504,
-0.04437298700213432,
-0.0032161094713956118,
-0.024032261222600937,
-0.10276634991168976,
0.014999188482761383,
-0.017087329179048538,
0.03631873056292534,
-0.015194951556622982,
0.005392809398472309,
-0.057237427681684494,
-0.03197465464472771,
0.068759486079216,
-0.03698991984128952,
0.009778836742043495,
-0.0073038311675190926,
-0.03870517760515213,
0.022540733218193054,
-0.011000026948750019,
0.06506795436143875,
0.026903454214334488,
-0.03881704434752464,
0.03676619008183479,
-0.06212218478322029,
-0.051681481301784515,
-0.02421870268881321,
-0.02365937829017639,
-0.038332294672727585,
0.007392390631139278,
0.02528141625225544,
-0.04813909903168678,
0.023193275555968285,
0.03508821874856949,
-0.029811935499310493,
-0.02438649907708168,
-0.05007808655500412,
-0.01702207513153553,
-0.0016080547356978059,
-0.007527560461312532,
-0.06838660687208176,
0.05925099179148674,
0.04482044652104378,
0.005942810792475939,
0.11820367723703384,
-0.041539084166288376,
-0.0011734138242900372,
-0.01596868224442005,
0.0360204242169857,
0.04437298700213432,
0.04131535440683365,
-0.017488177865743637,
0.028917018324136734,
0.005346199497580528,
-0.0417255237698555,
-0.0005934071377851069,
0.0670442283153534,
-0.010664432309567928,
0.059437431395053864,
0.028208542615175247,
0.05294927954673767,
0.04769163951277733,
0.07371882349252701,
0.027705151587724686,
0.021067846566438675,
-0.02380853146314621,
-0.04269501939415932,
-0.04649841785430908,
0.0360204242169857,
0.05488826707005501,
-0.06592558324337006,
0.025393281131982803,
-0.0011198120191693306,
-0.028376339003443718,
-0.024200057610869408,
-0.022522088140249252,
0.018709367141127586,
-0.014589018188416958,
-0.04321705177426338,
-0.005686454474925995,
-0.05917641520500183,
-0.016080547124147415,
0.05280012637376785,
0.016649192199110985,
-0.04019670560956001,
0.03993568941950798,
0.0001470408751629293,
-0.00034520740155130625,
0.006856372579932213,
-0.029644139111042023,
0.09523412585258484,
0.05500013381242752,
-0.02725769206881523,
0.024647517129778862,
-0.008580952882766724,
-0.05802047997713089,
0.04713231697678566,
-0.02308141067624092,
0.040308572351932526,
0.05910183861851692,
-0.015064443461596966,
0.010375448502600193,
0.006954254116863012,
0.1014985516667366,
0.04821367561817169,
-0.02030343934893608,
-0.021011915057897568,
-0.0036752207670360804,
0.05115944519639015,
-0.03933907672762871,
0.00892120786011219,
-0.023864464834332466,
-0.0360204242169857,
0.058878108859062195,
0.012053418904542923,
-0.06622388958930969,
-0.012249181978404522,
0.00834324024617672,
0.026232266798615456,
-0.027630575001239777,
-0.013955118134617805,
-0.06048149988055229,
-0.007336458191275597,
0.009401293471455574,
0.013955118134617805,
-0.004800858907401562,
-0.05746115371584892,
-0.001392482197843492,
-0.005947472061961889,
0.03410008177161217,
0.025971248745918274,
0.0368221215903759,
0.007485611364245415,
0.04317976534366608,
-0.021571237593889236,
-0.039898402988910675,
0.024442432448267937,
0.015204274095594883,
0.10925450176000595,
-0.03493906557559967,
0.031228888779878616,
-0.025561079382896423,
0.009037734009325504,
-0.0012759565142914653,
-0.029905157163739204,
-0.010664432309567928,
0.06480693817138672,
0.019613606855273247,
-0.0515323281288147,
-0.010328838601708412,
-0.008273324929177761,
-0.005667810328304768,
-0.0007113894098438323,
-0.004190264269709587,
0.0070940847508609295,
-0.05201707407832146,
0.0605560764670372,
0.04493231326341629,
-0.007369085680693388,
0.05582047253847122,
-0.001695448998361826,
-0.014868679456412792,
-0.0179915688931942,
0.010300871916115284,
-0.06659676879644394,
-0.04780350625514984,
0.009429260157048702,
0.009182225912809372,
0.014188169501721859,
-0.0004203664720989764,
0.052240803837776184,
0.04165094718337059,
0.0009665807010605931,
0.011484773829579353,
0.04776621609926224,
0.03143397346138954,
-0.01488732360303402,
0.02062038891017437,
-0.025822095572948456,
0.004474587272852659,
-0.05678996816277504,
0.008711461909115314,
-0.06394930928945541,
-0.004201916977763176,
0.051681481301784515,
-0.007201288361102343,
-0.031881432980298996,
-0.022932259365916252,
-0.00756950955837965,
0.018392417579889297,
0.004926706664264202,
-0.05335944890975952,
0.08128833025693893,
-0.021478017792105675,
-0.04247128963470459,
-0.0384814478456974,
-0.010366126894950867,
-0.03231024742126465,
-0.03411872684955597,
-0.023342428728938103,
0.026400063186883926,
0.009308073669672012,
0.0059241666458547115,
0.011223755776882172,
-0.03551703318953514,
-0.02365937829017639,
0.02013564109802246,
-0.0036985259503126144,
-0.02078818529844284,
-0.007830527611076832,
-0.00243538711220026,
-0.004379035905003548,
-0.019110215827822685,
0.032440755516290665,
-0.018476314842700958,
0.007639425341039896,
0.06764084100723267,
0.020359370857477188,
-0.047989945858716965,
-0.015446647070348263,
-0.007061457727104425,
-0.008772054687142372,
-0.014057661406695843,
-0.029718715697526932,
-0.022000053897500038,
0.025840740650892258,
-0.0286373570561409,
-0.04310518875718117,
-0.017544109374284744,
-0.027444133535027504,
0.04362722486257553,
-0.06335269659757614,
0.04761706292629242,
0.03960009664297104,
-0.019296657294034958,
-0.01733902469277382,
0.004963994957506657,
-0.014290712773799896,
0.014589018188416958,
-0.015698343515396118,
-0.0859120711684227,
-0.013255964033305645,
0.016229700297117233,
0.06667134910821915,
0.011708502657711506,
0.06853576004505157,
-0.0016744743334129453,
0.021291576325893402,
0.058952685445547104,
-0.03052041307091713,
0.0065953549928963184,
0.010077143087983131,
-0.03393228352069855,
-0.01321867574006319,
0.013955118134617805,
-0.0108415512368083,
-0.06435947865247726,
-0.005854251328855753,
-0.032049231231212616,
0.004148315172642469,
0.043328918516635895,
-0.007951714098453522,
0.041203487664461136,
0.04112891107797623,
0.0024773364420980215,
0.008333918638527393,
-0.021328864619135857,
0.006217811722308397,
0.004111026879400015,
0.004437298979610205,
0.017087329179048538,
0.032366178929805756,
0.05287470296025276,
-0.05451538413763046,
0.028432272374629974,
0.0019832674879580736,
0.022969547659158707,
0.014393255114555359,
0.08277986198663712,
0.04780350625514984,
0.04034585878252983,
-0.03533059358596802,
0.008077561855316162,
0.06253235042095184,
0.00884197000414133,
0.014188169501721859,
0.0063995919190347195,
-0.05932556837797165,
-0.03454754129052162,
-0.053061146289110184,
0.017413601279258728,
0.0005878721713088453,
0.0074669672176241875,
-0.03346618264913559,
-0.03486448898911476,
0.002061339793726802,
0.006562727503478527,
0.0458272285759449,
-0.029644139111042023,
-0.029998376965522766,
0.04560349881649017,
0.011876299977302551,
0.004185603465884924,
-0.006600015796720982,
0.05962387099862099,
-0.009983922354876995,
0.015428002923727036,
0.03918992355465889,
0.07189169526100159,
0.01972547173500061,
-0.04888486489653587,
-0.011344942264258862,
0.014467831701040268,
-0.003367592813447118,
-0.0005368921556510031,
-0.007252559997141361,
-0.02257801964879036,
0.02110513485968113,
-0.024032261222600937,
0.029811935499310493,
0.0302780382335186,
-0.011158501729369164,
-0.003155515994876623,
0.055857762694358826,
-0.07845442742109299,
-0.02356615848839283,
-0.0013621854595839977,
0.0556340329349041,
-0.043254341930150986,
-0.01783309318125248,
0.043254341930150986,
-0.0031368720810860395,
-0.03510686382651329,
-0.08442053943872452,
-0.011083925142884254,
0.03411872684955597,
-0.025878028944134712,
0.034491609781980515,
0.005868234671652317,
-0.04385095462203026,
-0.019986487925052643,
0.027593286707997322,
0.0023468276485800743,
-0.018634790554642677,
-0.04731875658035278,
0.03158312663435936,
-0.06667134910821915,
-0.03527466207742691,
0.035479746758937836,
0.04228484630584717,
-0.0450068898499012,
0.04612553492188454,
0.029159393161535263,
0.01815936528146267,
0.03395092859864235,
-0.0327390618622303,
-0.01922208070755005,
-0.00834324024617672,
-0.0245542973279953,
-0.012407656759023666,
0.0376424640417099,
-0.005905522499233484,
0.023044124245643616,
-0.03810856491327286,
-0.012342402711510658,
-0.06525439769029617,
-0.037847548723220825,
0.004150645807385445,
0.03904077038168907,
-0.04508146643638611,
0.007066118530929089,
0.028749221935868263,
-0.03258990868926048,
0.038742467761039734,
-0.05693912133574486,
-0.03458482772111893,
0.03160177171230316,
-0.11589180678129196,
-0.03428652510046959,
-0.04191196709871292,
0.0409424714744091,
-0.04452214017510414,
-0.013908508233726025,
-0.05194249749183655,
-0.000435806141467765,
0.0014787111431360245,
0.05369504541158676,
0.04765435308218002,
0.01116782333701849,
-0.0072712041437625885,
-0.0062364558689296246,
0.03754924237728119,
-0.0018550892127677798,
-0.0024120821617543697,
-0.04858655855059624,
-0.03889162093400955,
-0.05164419114589691,
-0.016733091324567795,
0.07867815345525742,
0.05227809026837349,
-0.0450068898499012,
0.08255612850189209,
-0.03810856491327286,
0.006791118066757917,
-0.021496662870049477,
0.006506795529276133,
-0.03639330714941025,
0.03398821875452995,
0.06857305020093918,
-0.03262719884514809,
-0.06883406639099121,
0.028003457933664322,
0.02986786887049675,
0.025971248745918274,
0.005504674278199673,
-0.0053648436442017555,
0.017320381477475166,
0.0011681702453643084,
-0.03704585134983063,
0.04015941917896271,
-0.02241022326052189,
-0.012230537831783295,
0.002812930615618825,
0.03042719140648842,
0.008273324929177761,
-0.010161041282117367,
-0.018299195915460587,
0.017655974254012108,
0.0319000780582428,
-0.002377124270424247,
0.08270528167486191,
0.06510524451732635,
-0.006809762213379145,
-0.020191574469208717,
0.041203487664461136,
0.02537463791668415,
-0.06484422087669373,
0.029849223792552948,
-0.0072292545810341835,
-0.012472911737859249,
-0.030576344579458237,
0.00472628278657794,
0.0004378453304525465,
0.01399240642786026,
-0.027537355199456215,
-0.025393281131982803,
-0.0956815853714943,
-0.0753222182393074,
0.03624415397644043,
-0.04452214017510414,
0.04437298700213432,
0.024666160345077515,
-0.022074628621339798,
0.04575265198945999,
-0.011195790022611618,
0.03264584019780159,
-0.04623739793896675,
-0.008450443856418133,
0.029569562524557114,
-0.07457645237445831,
0.07465102523565292,
0.05816963315010071,
0.043067898601293564,
-0.04206111654639244,
-0.0151390191167593,
0.03018481843173504,
0.022205138579010963,
0.0076953573152422905,
-0.04769163951277733,
-0.011960198171436787,
-0.01214663963764906,
-0.0069589149206876755,
0.04638655111193657,
0.002156890695914626,
0.015754275023937225,
0.021384797990322113,
-0.0008308282704092562,
-0.024442432448267937,
0.044969599694013596,
-0.056901831179857254,
0.04150179401040077,
0.04787808284163475,
-0.01546529121696949,
-0.0016465082298964262,
0.030986515805125237,
-0.047095030546188354,
0.02651192806661129,
0.009648328647017479,
0.05410521477460861,
0.07867815345525742,
0.0023654717952013016,
0.002172039123252034,
-0.03402550518512726,
0.005812302231788635,
-0.03633737564086914,
0.07323407381772995,
-0.00842713937163353,
-0.002570556942373514,
0.04493231326341629,
-0.04329162836074829,
0.025393281131982803,
-0.02815261110663414,
0.047579776495695114,
0.00397119577974081,
0.02889837510883808,
-0.009927989915013313,
0.023603446781635284,
-0.006273744162172079,
-0.023510226979851723,
-0.06894592940807343,
-0.009955956600606441,
-0.05820691958069801,
0.02291361428797245,
0.016220377758145332,
0.047989945858716965,
0.047020453959703445,
0.02830176241695881,
0.03428652510046959
] |
17,655 | imodels.tree.gosdt.pygosdt | __len__ |
Returns
---
natural number : The number of terminal nodes present in this tree
| def __len__(self):
"""
Returns
---
natural number : The number of terminal nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return len(self.tree_)
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
| (self) | [
-0.017339486628770828,
-0.0003475408593658358,
0.030063237994909286,
0.0006210557767190039,
0.00652734562754631,
0.03873733431100845,
0.010729406028985977,
-0.02598745748400688,
0.04305696487426758,
0.007224060129374266,
0.036298833787441254,
-0.035323433578014374,
0.016111526638269424,
-0.032501738518476486,
0.008399765938520432,
-0.015362557955086231,
0.05131303519010544,
0.012288304977118969,
0.028042765334248543,
0.0510343499481678,
-0.04068813472986221,
0.056573230773210526,
0.006736360024660826,
-0.028826570138335228,
-0.04852617532014847,
-0.008917947299778461,
0.034435123205184937,
-0.0248030424118042,
0.021598154678940773,
0.020831769332289696,
-0.09844578057527542,
-0.0005075675435364246,
-0.031160563230514526,
0.0279556754976511,
0.007206642534583807,
0.0260222926735878,
0.022991584613919258,
0.0496060848236084,
-0.018306177109479904,
0.004633152391761541,
-0.07155259698629379,
-0.03971273452043533,
-0.05058148503303528,
-0.03668202832341194,
-0.01330725010484457,
-0.022817404940724373,
0.03159600868821144,
0.03730906918644905,
-0.08541721850633621,
-0.060823190957307816,
-0.004937964957207441,
0.009588535875082016,
0.002924024360254407,
0.021093036979436874,
-0.040165599435567856,
0.06287849694490433,
0.04995444044470787,
0.01518837921321392,
0.015867676585912704,
0.018044909462332726,
0.0012889221543446183,
0.06012647598981857,
0.004689760506153107,
-0.04706307500600815,
-0.015292886644601822,
0.005055535584688187,
-0.039782408624887466,
0.04483358934521675,
-0.0018974588019773364,
0.03257140889763832,
-0.04918805509805679,
-0.006866993848234415,
0.017940402030944824,
0.07893776893615723,
0.0255171749740839,
-0.04535612463951111,
0.03183985874056816,
-0.032884933054447174,
0.058384690433740616,
-0.016904039308428764,
-0.01239281240850687,
0.016189906746149063,
0.06726779788732529,
0.013202742673456669,
0.02213810756802559,
-0.03988691419363022,
0.03974756971001625,
0.012558281421661377,
-0.014631007798016071,
0.035323433578014374,
-0.07656893879175186,
0.03424352407455444,
0.055981021374464035,
-0.010511682368814945,
-0.02077951468527317,
0.05507529526948929,
0.0024232605937868357,
-0.024646280333399773,
-0.018027491867542267,
-0.08980651944875717,
-0.0057478961534798145,
0.11035960167646408,
0.007150034420192242,
0.04239508882164955,
-0.029993565753102303,
-0.015031618997454643,
-0.023409612476825714,
0.010738114826381207,
-0.02018730714917183,
-0.0063096219673752785,
-0.04469424486160278,
0.03352939337491989,
0.04483358934521675,
0.030934130772948265,
0.033599063754081726,
-0.06434159725904465,
-0.018027491867542267,
-0.03208370879292488,
-0.05197491496801376,
-0.037727098912000656,
0.01785331405699253,
0.04566964507102966,
-0.02163298986852169,
-0.030916713178157806,
0.02565651759505272,
0.032658498734235764,
0.0248030424118042,
0.010337503626942635,
-0.02417599968612194,
-0.009283723309636116,
0.07259766757488251,
0.010172033682465553,
0.002954505616798997,
0.04775978997349739,
0.051347870379686356,
-0.031926948577165604,
0.016686316579580307,
-0.008822149597108364,
-0.0498150996863842,
-0.006440256256610155,
0.01882871426641941,
-0.02468111738562584,
0.017478829249739647,
-0.032048873603343964,
0.017644299194216728,
0.053472850471735,
-0.02758990041911602,
-0.0004795356362592429,
-0.016216034069657326,
-0.009179215878248215,
-0.004920547362416983,
-0.03912052884697914,
0.048421669751405716,
-0.010572644881904125,
-0.0009824765147641301,
0.03279784321784973,
0.011278068646788597,
-0.0996301993727684,
0.0020422448869794607,
-0.08200331777334213,
-0.048317160457372665,
0.009466610848903656,
-0.040757808834314346,
-0.006705878768116236,
-0.015745751559734344,
0.02443726733326912,
-0.008900529704988003,
-0.04542579501867294,
-0.043091803789138794,
0.05005894973874092,
0.011870276182889938,
-0.013333376497030258,
-0.0260222926735878,
0.016459884122014046,
-0.03595047816634178,
0.05542365089058876,
0.01567607931792736,
0.0437188446521759,
0.005055535584688187,
0.036542683839797974,
-0.014308777637779713,
-0.014308777637779713,
-0.013167907483875751,
-0.0015567218651995063,
0.017922984436154366,
0.013707861304283142,
0.005011991132050753,
0.021807169541716576,
-0.03950371965765953,
0.030951548367738724,
-0.01773138903081417,
-0.022381959483027458,
0.0137252788990736,
0.012253468856215477,
0.04013076424598694,
-0.043440159410238266,
0.01318532507866621,
0.03231014311313629,
-0.017252396792173386,
0.013943002559244633,
-0.00699327327311039,
-0.01730464957654476,
0.028025347739458084,
0.0065404088236391544,
-0.015928639099001884,
0.04950157552957535,
-0.03244948387145996,
0.08137626945972443,
-0.03877216950058937,
-0.035654373466968536,
-0.024402430281043053,
-0.01957768201828003,
-0.019525429233908653,
0.0770566388964653,
0.03366873785853386,
-0.06232112646102905,
-0.010189452208578587,
-0.03330296277999878,
-0.046714719384908676,
-0.059847790747880936,
0.04608767479658127,
0.07294602692127228,
0.044554904103279114,
0.008373639546334743,
-0.01367302518337965,
-0.08249101787805557,
0.0057609593495726585,
0.02029181458055973,
0.028251780197024345,
-0.03380807861685753,
-0.0015697851777076721,
-0.026091964915394783,
0.025255907326936722,
0.033372633159160614,
0.023670880123972893,
-0.010833913460373878,
0.02468111738562584,
-0.007768368348479271,
-0.03452221304178238,
-0.01581542193889618,
-0.08430247753858566,
-0.07433945685625076,
-0.04800364002585411,
-0.02285224013030529,
-0.021458812057971954,
0.017452701926231384,
-0.005969973746687174,
0.01754850149154663,
0.02185942232608795,
-0.02224261499941349,
-0.04967575520277023,
-0.10757274180650711,
-0.045042604207992554,
-0.05751379579305649,
0.0062965587712824345,
-0.07245832681655884,
-0.01306340005248785,
0.01785331405699253,
0.0272415429353714,
-0.004881357308477163,
0.033128783106803894,
-0.017557209357619286,
-0.02259097248315811,
0.09329009056091309,
-0.053890880197286606,
-0.016207324340939522,
0.050825335085392,
-0.01707821898162365,
-0.019873784855008125,
-0.006209469400346279,
0.0025299452245235443,
0.03438286855816841,
-0.024576609954237938,
-0.031299907714128494,
-0.023653462529182434,
-0.05859370157122612,
-0.028025347739458084,
0.04117583483457565,
0.0032114190980792046,
0.02189425751566887,
0.008704578503966331,
-0.040792644023895264,
-0.03450479358434677,
0.006631852593272924,
-0.10332278162240982,
0.005948201287537813,
-0.01384720392525196,
-0.024594027549028397,
-0.044554904103279114,
-0.005630325525999069,
-0.009449192322790623,
0.032135963439941406,
0.013768823817372322,
0.05197491496801376,
0.041524194180965424,
-0.03366873785853386,
-0.029575537890195847,
-0.010381048545241356,
0.007620316464453936,
0.03453962877392769,
-0.0062965587712824345,
-0.05277613550424576,
-0.06395840644836426,
-0.06462028622627258,
0.006549117621034384,
0.023879894986748695,
0.07092555612325668,
0.007629025727510452,
0.04546063020825386,
0.047585610300302505,
-0.03075995296239853,
0.04312663897871971,
0.0473765954375267,
0.056120365858078,
0.029575537890195847,
-0.020013129338622093,
0.0014674552949145436,
-0.04706307500600815,
0.0171827245503664,
0.050024114549160004,
-0.032867513597011566,
0.06500347703695297,
-0.014604881405830383,
-0.005273259244859219,
-0.04789913445711136,
-0.006614434998482466,
0.05915107578039169,
-0.003398661268875003,
0.006853930652141571,
0.005064244847744703,
-0.033355213701725006,
-0.03358164802193642,
0.07106489688158035,
-0.007437428925186396,
-0.04403236508369446,
0.022503884509205818,
0.0697411373257637,
0.00189854740165174,
-0.03187469765543938,
-0.004946674220263958,
0.024750787764787674,
0.011060344986617565,
-0.02043115720152855,
0.03380807861685753,
0.0359853133559227,
-0.004171579144895077,
0.030585773289203644,
-0.005068599246442318,
0.0868106484413147,
0.06075351685285568,
-0.036403339356184006,
0.029923895373940468,
0.01779235154390335,
0.012114126235246658,
0.00020670109370257705,
-0.000007292881036846666,
0.04291762411594391,
0.09440483897924423,
0.01234055869281292,
0.02502947486937046,
0.026771260425448418,
-0.0011669970117509365,
-0.024611445143818855,
0.02236454002559185,
0.032641083002090454,
-0.03063802793622017,
-0.013167907483875751,
0.02941877581179142,
0.024019237607717514,
-0.04096682369709015,
0.0033877750393003225,
-0.039434049278497696,
-0.028460793197155,
-0.03570662811398506,
0.02590036764740944,
0.06918376684188843,
-0.043823353946208954,
-0.0063096219673752785,
-0.009257595986127853,
-0.016390211880207062,
-0.03758775442838669,
0.009362103417515755,
-0.00308513967320323,
-0.03234497830271721,
-0.03643817827105522,
-0.035915639251470566,
-0.053647030144929886,
0.0036555747501552105,
-0.003794917603954673,
-0.012418938800692558,
0.003875475376844406,
0.0001391388213960454,
-0.040653299540281296,
-0.010842622257769108,
-0.05361219495534897,
0.024245670065283775,
0.005909011233597994,
-0.030794788151979446,
-0.005194878671318293,
-0.0025168817956000566,
0.030063237994909286,
-0.004672342911362648,
0.020448574796319008,
0.0374135784804821,
-0.00161877297796309,
0.044554904103279114,
0.020762097090482712,
0.01428265031427145,
-0.04072297364473343,
-0.016747279092669487,
0.025412667542696,
0.030916713178157806,
0.0023405258543789387,
0.017295941710472107,
-0.014918402768671513,
-0.046854060143232346,
0.07008949667215347,
0.0520445853471756,
0.07824105769395828,
-0.032014038413763046,
-0.00394950108602643,
0.03393000364303589,
0.021963929757475853,
0.08952783793210983,
0.04605283960700035,
0.03257140889763832,
-0.013350795023143291,
-0.02116270735859871,
0.00674071442335844,
0.01373398769646883,
-0.06266948580741882,
-0.003030708758160472,
-0.028965912759304047,
-0.042116399854421616,
-0.008687160909175873,
-0.028530465438961983,
-0.05692158639431,
-0.023252852261066437,
-0.02781633287668228,
0.04803847521543503,
-0.01355110015720129,
0.046958569437265396,
0.047202419489622116,
0.024158580228686333,
0.06089286133646965,
-0.04009592905640602,
0.03612465411424637,
-0.037518084049224854,
-0.050755664706230164,
-0.07120423763990402,
-0.030411595478653908,
-0.03149150311946869,
0.012723751366138458,
0.025813277810811996,
-0.027171872556209564,
0.005917720030993223,
-0.04044428467750549,
-0.021232379600405693,
-0.01870678924024105,
-0.008094953373074532,
-0.0061267344281077385,
0.06089286133646965,
0.012906638905405998,
0.030916713178157806,
-0.026910603046417236,
-0.03950371965765953,
0.020344067364931107,
0.014805186539888382,
-0.006061417516320944,
-0.022416794672608376,
0.07109972834587097,
-0.00811237096786499,
-0.018184252083301544,
-0.05423923581838608,
-0.006183342542499304,
0.04556513950228691,
0.017522374168038368,
-0.023879894986748695,
-0.0255171749740839,
-0.019264159724116325,
0.017191434279084206,
0.0010815405985340476,
0.034086763858795166,
-0.014073636382818222,
-0.04190738871693611,
-0.01391687523573637,
-0.08430247753858566,
0.0025364768225699663,
0.014918402768671513,
-0.0016361908055841923,
-0.038946349173784256,
-0.04385818913578987,
-0.01390816643834114,
-0.025325577706098557,
0.04361433908343315,
0.011487082578241825,
0.05521463602781296,
0.007872875779867172,
-0.021911676973104477,
-0.011574172414839268,
-0.01720014400780201,
0.02177233248949051,
0.043335653841495514,
-0.009989146143198013,
-0.022556137293577194,
-0.011391284875571728,
0.017165306955575943,
0.014622299000620842,
0.0016721151769161224,
0.015562864020466805,
0.01160900853574276,
-0.0039756279438734055,
0.032501738518476486,
0.040792644023895264,
0.06054450571537018,
0.038354143500328064,
0.029714880511164665,
0.008978909812867641,
0.0372045636177063,
0.05047697573900223,
0.0005911188200116158,
-0.024088909849524498,
0.046018004417419434,
-0.0549011155962944,
-0.0011125662131235003,
0.039434049278497696,
-0.021005947142839432,
0.017339486628770828,
0.039329543709754944,
0.0408623144030571,
0.07033334672451019,
-0.024715952575206757,
0.012079290114343166,
0.043335653841495514,
-0.022416794672608376,
-0.008256068453192711,
-0.006043999921530485,
-0.01445682905614376,
0.034086763858795166,
0.02832145057618618,
0.002854352816939354,
-0.11502759158611298,
0.016067981719970703,
0.037518084049224854,
-0.01780976913869381,
0.04828232526779175,
0.04789913445711136,
-0.028147272765636444,
0.011530627496540546,
0.0020400676876306534,
-0.05406505614519119,
0.020605336874723434,
-0.0008986530592665076,
-0.021545901894569397,
0.07768368721008301,
0.052183929830789566,
0.008578299544751644,
-0.00583498552441597,
0.06664075702428818,
-0.011548045091331005,
-0.018637116998434067,
-0.06075351685285568,
0.03352939337491989,
-0.004685406107455492,
0.047202419489622116,
-0.03222305327653885,
-0.05434374511241913,
0.032014038413763046,
-0.004746368620544672,
0.0018691548611968756,
0.011504501104354858,
0.012436356395483017,
-0.05580684542655945,
-0.006522991228848696,
-0.0004852508718613535,
0.013838495127856731,
-0.054378580302000046,
0.06117154657840729,
-0.041245508939027786,
-0.029558120295405388,
-0.01654697395861149,
0.004637506790459156,
0.013655607588589191,
0.016799531877040863,
-0.027415722608566284,
-0.003130861558020115,
-0.041977059096097946,
0.0009530839161016047,
-0.05619003623723984,
0.007790140807628632,
-0.034330613911151886,
0.0069627920165658,
0.0020672830287367105,
-0.036298833787441254,
0.010189452208578587,
0.0007701962604187429,
-0.04730692505836487,
-0.029627790674567223,
0.015109999105334282,
-0.03075995296239853,
0.027520230039954185,
0.028983330354094505,
-0.028391122817993164,
0.051347870379686356,
0.040757808834314346,
-0.04748110473155975,
0.004742014221847057,
0.05929041653871536,
0.008926657028496265,
-0.02431534230709076,
0.009501446038484573,
-0.007550645153969526,
0.06280882656574249,
-0.06517765671014786,
-0.04424137994647026,
-0.011591590009629726,
-0.008608780801296234,
-0.034208688884973526,
0.015763169154524803,
0.022190362215042114,
-0.01355110015720129,
0.025377832353115082,
0.028495630249381065,
-0.00023432473244611174,
-0.06113671138882637,
-0.00379709480330348,
-0.02720670774579048,
-0.05563266575336456,
-0.022799987345933914,
-0.04305696487426758,
0.031526338309049606,
-0.05667773634195328,
0.003030708758160472,
-0.0583498515188694,
-0.02760731801390648,
-0.03828446939587593,
-0.018689371645450592,
0.0060222274623811245,
0.003215773729607463,
0.0039451466873288155,
-0.05521463602781296,
0.025447502732276917,
-0.04995444044470787,
0.001213807612657547,
0.017757514491677284,
-0.06054450571537018,
-0.025604264810681343,
0.04664504528045654,
0.033738408237695694,
-0.015170961618423462,
-0.0016122412635013461,
0.026823515072464943,
0.019838949665427208,
-0.024472102522850037,
0.004330517258495092,
-0.01907256431877613,
0.054517921060323715,
0.021232379600405693,
-0.014988074079155922,
-0.01343788392841816,
-0.020587917417287827,
-0.031282488256692886,
0.059255581349134445,
0.028634972870349884,
0.055249471217393875,
0.009536282159388065,
0.02407149225473404,
-0.03912052884697914,
-0.024001820012927055,
-0.044311054050922394,
-0.03222305327653885,
0.05622487515211105,
0.04305696487426758,
-0.025447502732276917,
-0.021232379600405693,
0.0016144184628501534,
-0.004589607939124107,
0.014378448948264122,
0.0683128759264946,
0.0040823123417794704,
0.03365131840109825,
0.06158957630395889,
-0.060579340904951096,
-0.04253442957997322,
0.032170798629522324,
-0.009553699754178524,
-0.039677899330854416,
0.009684333577752113,
0.06158957630395889,
-0.05106918513774872,
-0.04877002537250519,
-0.028408540412783623,
0.059360090643167496,
0.047933969646692276,
0.0014228220097720623,
0.00811237096786499,
-0.03974756971001625,
0.044554904103279114,
0.0242979247123003,
-0.017391739413142204,
0.05894206091761589,
-0.020378904417157173,
-0.031056055799126625,
-0.007733532693237066,
-0.04389302432537079,
0.014988074079155922,
-0.06719812750816345,
0.003407370066270232,
-0.0024014883674681187,
-0.03063802793622017,
-0.018759042024612427,
0.0768476277589798,
0.0025734896771609783,
-0.07343372702598572,
-0.07475748658180237,
0.02576102502644062,
0.014361031353473663,
0.03765742853283882,
-0.006226887460798025,
-0.02590036764740944,
-0.0007179426611401141,
-0.0386328287422657,
0.06514281779527664,
0.05333350598812103,
-0.021667826920747757,
0.06462028622627258,
0.027049947530031204,
-0.02199876494705677,
0.01980411447584629,
-0.04023527354001999,
0.029122672975063324,
0.0013455301523208618,
-0.03243206813931465,
-0.059847790747880936,
-0.04667988419532776,
0.002632274990901351,
0.018201669678092003,
0.0002533755323383957,
0.015954766422510147,
-0.009762714616954327,
0.07287635654211044,
0.0023165761958807707,
0.02588295005261898,
-0.010485555976629257,
0.0949622094631195,
-0.027189290151000023,
-0.008216878399252892,
0.08381477743387222,
0.017922984436154366,
-0.044554904103279114,
0.049048710614442825,
-0.008364930748939514,
0.05685191601514816,
-0.05650356039404869,
0.04009592905640602,
0.031770188361406326,
0.017757514491677284,
-0.03363389894366264,
-0.021458812057971954,
-0.0031395703554153442,
0.01427394151687622,
-0.060091640800237656,
-0.019960874691605568,
0.025447502732276917,
0.02407149225473404,
0.045147109776735306,
0.015319013968110085,
0.004998927935957909
] |
17,664 | imodels.tree.gosdt.pygosdt | _get_configuration | null | def _get_configuration(self):
return {
"balance": self.balance,
"cancellation": self.cancellation,
"look_ahead": self.look_ahead,
"similar_support": self.similar_support,
"feature_exchange": self.feature_exchange,
"continuous_feature_exchange": self.continuous_feature_exchange,
"rule_list": self.rule_list,
"diagnostics": self.diagnostics,
"verbose": self.verbose,
"regularization": self.regularization,
"uncertainty_tolerance": self.uncertainty_tolerance,
"upperbound": self.upperbound,
"model_limit": self.model_limit,
"precision_limit": self.precision_limit,
"stack_limit": self.stack_limit,
"tile_limit": self.tile_limit,
"time_limit": self.time_limit,
"worker_limit": self.worker_limit,
"costs": self.costs,
"model": self.model,
"profile": self.profile,
"timing": self.timing,
"trace": self.trace,
"tree": self.tree
}
| (self) | [
0.045833222568035126,
-0.031186094507575035,
0.028572626411914825,
-0.04450698569417,
-0.0025183893740177155,
-0.008479146286845207,
-0.052659448236227036,
-0.04949988052248955,
0.014510602690279484,
-0.034248143434524536,
-0.029333261772990227,
-0.013320889323949814,
-0.008362124674022198,
0.01235546637326479,
0.0054122209548950195,
-0.012872309423983097,
-0.01772868074476719,
-0.033116940408945084,
0.019240202382206917,
-0.010229584760963917,
0.04520910978317261,
-0.05086512491106987,
-0.03896798938512802,
0.013369648717343807,
-0.024340366944670677,
0.006733582820743322,
0.023033631965517998,
-0.029937870800495148,
0.0368226058781147,
0.013574435375630856,
-0.09268062561750412,
0.02748042903840542,
-0.010219833813607693,
0.021648883819580078,
-0.033253464847803116,
-0.001248223939910531,
0.00556337321177125,
0.018820876255631447,
-0.06108495965600014,
0.020537184551358223,
-0.02999638207256794,
-0.022038953378796577,
-0.039006996899843216,
-0.020303143188357353,
-0.01100972481071949,
0.02408682182431221,
-0.010034549981355667,
0.06459558755159378,
0.03928004577755928,
-0.01730935461819172,
0.0429467037320137,
-0.01533950213342905,
-0.06705302745103836,
0.07142180949449539,
-0.02814354933798313,
-0.06412750482559204,
0.003968962002545595,
0.030444961041212082,
0.017504390329122543,
0.030054891481995583,
-0.05379065126180649,
0.025335045531392097,
0.05375164374709129,
-0.035028282552957535,
-0.007177287712693214,
-0.02724638767540455,
-0.07524450123310089,
0.03212226182222366,
0.02939177304506302,
0.006821348797529936,
0.07891115546226501,
-0.06724806129932404,
-0.03498927503824234,
-0.01770917698740959,
-0.025140009820461273,
-0.07337216287851334,
-0.016665739938616753,
-0.017280099913477898,
-0.006533672101795673,
-0.0111267464235425,
-0.028416598215699196,
0.05172327905893326,
-0.03748572617769241,
-0.028572626411914825,
0.06268424540758133,
0.0023964925203472376,
-0.013905994594097137,
-0.021512359380722046,
0.022077960893511772,
-0.008966733701527119,
-0.04571620002388954,
0.012062913738191128,
0.02047867327928543,
0.014110781252384186,
0.0029157730750739574,
-0.00815733801573515,
-0.04493606090545654,
-0.0013810915406793356,
0.032024744898080826,
-0.031205598264932632,
-0.05968070775270462,
0.009863894432783127,
-0.02432086318731308,
0.006694575771689415,
-0.00432733865454793,
-0.06451757252216339,
-0.013252627104520798,
-0.026037171483039856,
0.014179043471813202,
-0.03522332012653351,
-0.009995543397963047,
0.05176228657364845,
-0.017796942964196205,
-0.009225155226886272,
0.04626229777932167,
0.02769496850669384,
-0.05039704218506813,
-0.021200302988290787,
0.0429857112467289,
0.0030791149474680424,
-0.025510575622320175,
0.03822685778141022,
0.006972501054406166,
0.036627572029829025,
0.01844055764377117,
0.053517602384090424,
-0.05617007613182068,
-0.016538966447114944,
0.04848569631576538,
-0.025140009820461273,
0.06541473418474197,
0.0005098336259834468,
0.0038568167947232723,
-0.02484745718538761,
-0.0008910660981200635,
-0.019259704276919365,
0.0406452901661396,
0.05492185428738594,
0.029898863285779953,
0.03941657021641731,
0.02278008684515953,
0.03623750060796738,
-0.006182609125971794,
-0.02385277859866619,
-0.004042100161314011,
-0.03629601001739502,
0.023053135722875595,
-0.030035387724637985,
-0.03198573738336563,
-0.04411691427230835,
0.03965061157941818,
0.016022123396396637,
-0.029898863285779953,
0.0002060057013295591,
-0.033097438514232635,
-0.020595693960785866,
-0.018011480569839478,
0.03703714534640312,
0.000680184515658766,
-0.016402442008256912,
-0.06373743712902069,
0.00148104690015316,
0.007620992138981819,
-0.043531809002161026,
-0.025666603818535805,
-0.002737803617492318,
0.016880277544260025,
-0.08807779848575592,
0.033487506210803986,
-0.02599816396832466,
-0.041074369102716446,
-0.053595613688230515,
-0.03229779377579689,
0.016821768134832382,
-0.057535320520401,
0.052893489599227905,
0.024379372596740723,
0.009741997346282005,
0.006567803211510181,
0.0006606810493394732,
0.005514614284038544,
-0.010717172175645828,
-0.02999638207256794,
-0.008298738859593868,
0.021902428939938545,
-0.02003009244799614,
0.039085011929273605,
0.007435708772391081,
-0.010336854495108128,
0.0061874850653111935,
0.03284389153122902,
-0.02408682182431221,
0.004281017929315567,
0.04158145934343338,
-0.03344849869608879,
-0.022038953378796577,
0.0372321791946888,
-0.002348952693864703,
-0.027714472264051437,
0.05301050841808319,
-0.008883844129741192,
-0.05730127915740013,
-0.019727788865566254,
-0.015593047253787518,
0.0020308017265051603,
-0.010502634570002556,
-0.026056675240397453,
-0.028670143336057663,
-0.038870472460985184,
0.06638991087675095,
-0.06697501242160797,
-0.0020649328362196684,
0.007991558872163296,
0.012570004910230637,
0.016197655349969864,
-0.02233150601387024,
0.07165585458278656,
0.031946729868650436,
-0.022877603769302368,
0.026134688407182693,
0.04255663603544235,
-0.03736870363354683,
0.06888635456562042,
-0.028884680941700935,
-0.019210945814847946,
0.005319579504430294,
-0.022058457136154175,
-0.019210945814847946,
-0.009834639728069305,
-0.04204954206943512,
-0.002952342154458165,
0.002679293043911457,
-0.014432589523494244,
0.007382074370980263,
0.0483296699821949,
-0.0015736885834485292,
-0.0203421488404274,
-0.016538966447114944,
0.005968070589005947,
0.009629852138459682,
0.05176228657364845,
-0.009620101191103458,
0.004198127891868353,
0.0013408655067905784,
0.0033009671606123447,
-0.051216188818216324,
-0.00707489438354969,
0.0498899482190609,
0.062333181500434875,
0.002808503806591034,
0.03738820552825928,
-0.011906886473298073,
-0.012267700396478176,
0.019074421375989914,
-0.031420137733221054,
-0.010541641153395176,
-0.02913822792470455,
0.02047867327928543,
0.012687025591731071,
-0.012560253031551838,
0.07497145235538483,
-0.02463291957974434,
-0.017845701426267624,
0.00864492543041706,
-0.015007941983640194,
0.03389707952737808,
0.008854588493704796,
-0.022312002256512642,
-0.03773926943540573,
0.02478894777595997,
0.16320528090000153,
0.03307793289422989,
-0.041152384132146835,
-0.03928004577755928,
-0.03266835957765579,
-0.030893541872501373,
0.030796024948358536,
-0.004032348282635212,
-0.004671087954193354,
0.02816305309534073,
-0.007772144395858049,
-0.034950271248817444,
0.0406452901661396,
-0.015183473937213421,
0.023833274841308594,
-0.021843919530510902,
-0.06319133937358856,
-0.0038616927340626717,
0.029879359528422356,
0.03255134075880051,
-0.035866934806108475,
-0.018469814211130142,
-0.03315594792366028,
-0.007577109150588512,
0.1043047085404396,
-0.029060212895274162,
-0.03060098923742771,
-0.07146082073450089,
0.07029061019420624,
0.05617007613182068,
0.022526541724801064,
0.023501716554164886,
-0.0021819539833813906,
0.055350929498672485,
-0.03342899680137634,
0.03338998928666115,
0.0959572121500969,
-0.02853361889719963,
0.0483296699821949,
0.04411691427230835,
-0.031030066311359406,
-0.02999638207256794,
0.1335599571466446,
0.04111337661743164,
-0.028982199728488922,
-0.03715416416525841,
-0.029274752363562584,
-0.0020039845257997513,
0.004978267941623926,
0.046535346657037735,
-0.030015883967280388,
0.0629182904958725,
0.011438801884651184,
-0.020985765382647514,
0.06178708374500275,
-0.01331113837659359,
0.004020158667117357,
0.020595693960785866,
-0.015115211717784405,
-0.0023550475016236305,
-0.08799978345632553,
-0.05168427154421806,
-0.0066019343212246895,
0.02508150041103363,
0.010843945667147636,
0.05823744833469391,
0.031166590750217438,
0.03580842539668083,
-0.02463291957974434,
-0.05429774150252342,
0.04150344431400299,
-0.010590399615466595,
-0.02278008684515953,
0.015154218301177025,
-0.048836760222911835,
-0.04965590685606003,
0.0034643090330064297,
-0.020732218399643898,
-0.027792485430836678,
-0.014764148741960526,
-0.038558416068553925,
-0.0028548245318233967,
0.0009684705873951316,
0.07504945993423462,
0.019464490935206413,
-0.04918782413005829,
-0.045833222568035126,
-0.0544537678360939,
-0.029411276802420616,
0.053829655051231384,
0.0345211923122406,
0.01077568344771862,
-0.009537210687994957,
0.07267003506422043,
-0.0001753791148075834,
0.0422055721282959,
-0.0159246064722538,
0.017504390329122543,
0.0467693917453289,
-0.036861613392829895,
-0.02008860372006893,
-0.008191469125449657,
0.017592156305909157,
-0.02086874283850193,
0.04700343310832977,
0.03323396295309067,
-0.058354467153549194,
0.01581733673810959,
-0.04204954206943512,
0.031127583235502243,
0.0009258067002519965,
0.0014944556169211864,
-0.016119642183184624,
0.03573041036725044,
-0.03643253445625305,
-0.01903541572391987,
-0.008323118090629578,
-0.06096793711185455,
0.030405955389142036,
0.01945473998785019,
-0.055819012224674225,
-0.02562759816646576,
-0.06198211759328842,
0.06284027546644211,
-0.02285810001194477,
-0.009161768481135368,
0.02047867327928543,
0.0414254330098629,
-0.01637318730354309,
0.015495529398322105,
0.0066506932489573956,
-0.06931543350219727,
0.02500348538160324,
0.007523474749177694,
0.01699730008840561,
-0.07173386961221695,
0.062489211559295654,
0.10063805431127548,
0.03153715655207634,
-0.00863029807806015,
-0.007942799478769302,
-0.002554958453401923,
-0.025569086894392967,
0.029060212895274162,
-0.04228358715772629,
-0.012043410912156105,
-0.0031205597333610058,
0.008269483223557472,
0.03153715655207634,
-0.0051976824179291725,
0.019620519131422043,
-0.016148896887898445,
0.04700343310832977,
-0.019318215548992157,
0.05460979789495468,
0.04700343310832977,
-0.01537850871682167,
0.04072330519556999,
-0.03399460017681122,
-0.01752389408648014,
-0.03711515665054321,
0.06814522296190262,
-0.026056675240397453,
-0.04797860607504845,
0.02769496850669384,
-0.003159566782414913,
0.04786158725619316,
-0.057496313005685806,
0.0026378482580184937,
-0.023131148889660835,
-0.018898891285061836,
0.01047337893396616,
0.019786300137639046,
0.033331479877233505,
0.002092969138175249,
-0.024457387626171112,
-0.07192890346050262,
-0.050982147455215454,
0.01673400215804577,
-0.00746496394276619,
-0.03062049299478531,
-0.046145278960466385,
0.029255248606204987,
-0.04251762852072716,
-0.006567803211510181,
0.020673708990216255,
-0.0010830536484718323,
-0.03619849309325218,
-0.029801346361637115,
0.027909506112337112,
0.03383857011795044,
-0.034248143434524536,
-0.009717618115246296,
0.00945432111620903,
-0.01652921549975872,
-0.0010464845690876245,
0.0491098091006279,
0.048212647438049316,
-0.0414254330098629,
0.04817364364862442,
-0.011077987030148506,
0.08402107656002045,
-0.059797726571559906,
0.002969407709315419,
-0.02824106626212597,
-0.004395600873976946,
0.01710456795990467,
0.03957260027527809,
-0.007684378419071436,
-0.062879279255867,
0.007255301345139742,
-0.021375834941864014,
-0.060889922082424164,
-0.028884680941700935,
0.018967153504490852,
-0.05199632793664932,
-0.00993703305721283,
-0.016743753105401993,
-0.024496395140886307,
-0.0020478672813624144,
-0.04579421505331993,
-0.014081526547670364,
0.012384722009301186,
0.0027256140019744635,
0.002927962690591812,
0.08355298638343811,
0.0394945852458477,
0.026895325630903244,
0.03612047806382179,
0.050514061003923416,
0.01637318730354309,
-0.022155974060297012,
0.007240673992782831,
0.013145358301699162,
-0.026953835040330887,
-0.025354549288749695,
-0.0882338285446167,
0.000878266931977123,
-0.00038184193545021117,
0.020732218399643898,
0.010141819715499878,
0.041308410465717316,
0.012911316007375717,
0.01903541572391987,
-0.03643253445625305,
-0.0383828841149807,
-0.03514530509710312,
0.01369145605713129,
0.010200330056250095,
0.010580647736787796,
-0.028904184699058533,
0.05913460999727249,
0.025666603818535805,
0.0017016802448779345,
-0.016880277544260025,
0.07017359137535095,
0.053673628717660904,
-0.032336801290512085,
-0.04204954206943512,
0.01707531325519085,
0.02625170908868313,
-0.011107242666184902,
-0.010843945667147636,
0.11218412220478058,
-0.040840327739715576,
0.0015736885834485292,
0.0020880934316664934,
0.00040347862523049116,
-0.05496085807681084,
0.016724249348044395,
0.023501716554164886,
-0.037544235587120056,
0.023735757917165756,
0.013896242715418339,
-0.0053634620271623135,
0.01469588652253151,
0.021999945864081383,
0.03945557773113251,
-0.012335962615907192,
-0.0644785687327385,
0.08316291868686676,
-0.008479146286845207,
0.01196539681404829,
-0.07937923818826675,
0.031127583235502243,
-0.06190410628914833,
0.05691120773553848,
-0.023267673328518867,
0.028865179046988487,
0.008562035858631134,
0.017670169472694397,
-0.0280070248991251,
-0.06931543350219727,
0.015056701377034187,
-0.024808449670672417,
-0.018294282257556915,
-0.011038980446755886,
0.0851132720708847,
-0.07653173059225082,
-0.0003562436031643301,
0.015729572623968124,
0.026875821873545647,
0.0399041585624218,
-0.007699006237089634,
-0.0034423675388097763,
-0.03541835397481918,
0.0016041627386584878,
0.0387534536421299,
-0.02100526914000511,
0.005933939479291439,
0.03666657954454422,
0.051606256514787674,
0.017670169472694397,
0.009995543397963047,
-0.019074421375989914,
0.012599260546267033,
-0.014188795350492,
0.013671952299773693,
0.044389963150024414,
-0.01086344849318266,
-0.004597949795424938,
0.03506729006767273,
-0.0016492645954713225,
0.016178151592612267,
0.013262378983199596,
0.03627650812268257,
-0.0759076178073883,
-0.02625170908868313,
0.022058457136154175,
0.014978687278926373,
-0.023287177085876465,
0.0021782969124615192,
0.012745536863803864,
0.05078710988163948,
0.0020344587974250317,
0.033799562603235245,
0.020225128158926964,
-0.0022416834253817797,
-0.041620466858148575,
-0.044858045876026154,
-0.011594830080866814,
-0.03945557773113251,
0.029118724167346954,
-0.09080828726291656,
0.006353264674544334,
-0.0376027449965477,
0.01484216284006834,
-0.008771698921918869,
-0.0353013314306736,
-0.04942186549305916,
0.020595693960785866,
0.041074369102716446,
-0.0013798725558444858,
0.05476582422852516,
-0.016431698575615883,
-0.016519462689757347,
-0.03904600441455841,
-0.05055306851863861,
-0.036783598363399506,
0.01499819103628397,
0.04228358715772629,
-0.008835084736347198,
0.03580842539668083,
-0.0163146760314703,
-0.0675211101770401,
0.024574408307671547,
0.050748102366924286,
0.005348834674805403,
0.015349254012107849,
0.01844055764377117,
0.026193199679255486,
0.048368677496910095,
-0.02026413567364216,
-0.005187930539250374,
-0.001765066641382873,
-0.00894235447049141,
-0.03329247236251831,
-0.009108133614063263,
0.020595693960785866,
-0.023501716554164886,
-0.042400605976581573,
0.011887382715940475,
0.00006951930845389143,
-0.010385612957179546,
-0.058315459638834,
-0.014120533131062984,
-0.04228358715772629,
0.043687839061021805,
0.001869897940196097,
-0.06576579809188843,
-0.08448915928602219,
0.033877577632665634,
-0.0590565949678421,
-0.05839347466826439,
0.03450169041752815,
0.014968935400247574,
-0.08636149019002914,
0.002141728065907955,
0.03161517158150673,
-0.03543785586953163,
0.10609903186559677,
-0.011828872375190258,
0.021882925182580948,
0.0394945852458477,
-0.04786158725619316,
0.029801346361637115,
-0.011936141178011894,
0.053439587354660034,
0.029157729819417,
-0.03668608143925667,
0.055506955832242966,
0.04111337661743164,
-0.012989330105483532,
0.028904184699058533,
0.06303530931472778,
-0.008415759541094303,
-0.023599233478307724,
0.00006151982233859599,
-0.020595693960785866,
0.09026218950748444,
-0.022799590602517128,
0.010921959765255451,
-0.017640914767980576,
0.046145278960466385,
0.04723747447133064,
-0.02991836704313755,
0.010902456007897854,
-0.027714472264051437,
0.02463291957974434,
-0.031244605779647827,
0.011672844178974628,
-0.02094675786793232,
0.0015785644063726068,
-0.0084450151771307,
0.023657744750380516,
-0.04801761358976364,
0.018850130960345268,
-0.01948399469256401,
-0.006879859138280153,
-0.034033603966236115,
0.02892368845641613,
0.07660974562168121,
0.05893957242369652,
-0.03450169041752815,
-0.024730436503887177,
0.08035441488027573,
0.007562481798231602,
-0.014374078251421452,
-0.03565239533782005,
0.007391826249659061,
-0.03138113021850586,
0.023287177085876465,
0.01786520518362522,
0.022429022938013077,
-0.0074113295413553715,
0.06841827183961868,
0.03276587650179863,
-0.013876738958060741,
0.005456103943288326,
-0.021453848108649254,
-0.031498149037361145,
-0.016548719257116318,
-0.04396088793873787,
0.0016663301503285766,
0.02892368845641613,
0.0034911262337118387,
0.02853361889719963,
0.009351927787065506,
0.013320889323949814,
0.06572679430246353,
0.02309214323759079,
0.04134741798043251,
-0.02539355494081974,
0.07774094492197037,
-0.06732607632875443,
-0.011770361103117466,
-0.006167981307953596,
0.017114320769906044,
0.04006018489599228,
-0.03635452315211296,
-0.03015240840613842,
0.0186160895973444,
0.010034549981355667,
-0.02523752674460411,
-0.057652343064546585,
-0.009386058896780014,
-0.0029328386299312115,
-0.02847510762512684,
0.007903792895376682,
-0.020966261625289917,
-0.029118724167346954,
-0.02018612064421177,
0.018684351816773415,
0.07684378325939178,
-0.008679056540131569,
-0.005421972833573818,
0.03676409646868706,
-0.020381156355142593
] |
17,680 | imodels.tree.gosdt.pygosdt | fit |
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
matrix containing the training samples and features
y : array-like, shape = [n_samples, 1]
column containing the correct label for each sample in X
Modifies
---
trains the model so that this model instance is ready for prediction
| def fit(self, X, y, feature_names=None):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
matrix containing the training samples and features
y : array-like, shape = [n_samples, 1]
column containing the correct label for each sample in X
Modifies
---
trains the model so that this model instance is ready for prediction
"""
try:
import gosdt
if not isinstance(X, pd.DataFrame):
self.feature_names_ = list(rule.get_feature_dict(X.shape[1], feature_names).keys())
X = pd.DataFrame(X, columns=self.feature_names_)
else:
self.feature_names_ = X.columns
if not isinstance(y, pd.DataFrame):
y = pd.DataFrame(y, columns=['target'])
# gosdt extension expects serialized CSV, which we generate via pandas
dataset_with_target = pd.concat((X, y), axis=1)
# Perform C++ extension calls to train the model
configuration = self._get_configuration()
gosdt.configure(json.dumps(configuration, separators=(',', ':')))
result = gosdt.fit(dataset_with_target.to_csv(index=False))
result = json.loads(result)
self.tree_ = TreeClassifier(result[0])
# Record the training time, number of iterations, and graph size required
self.time_ = gosdt.time()
self.iterations_ = gosdt.iterations()
self.size_ = gosdt.size()
except ImportError:
warnings.warn(
"Should install gosdt extension. On x86_64 linux or macOS: "
"'pip install gosdt-deprecated'. On other platforms, see "
"https://github.com/keyan3/GeneralizedOptimalSparseDecisionTrees. "
"Defaulting to Non-optimal DecisionTreeClassifier."
)
# dtree = DecisionTreeClassifierWithComplexity()
# dtree.fit(X, y)
# self.tree_ = dtree
super().fit(X, y, feature_names=feature_names)
self.tree_type = 'dt'
return self
| (self, X, y, feature_names=None) | [
0.02419593371450901,
-0.032901763916015625,
-0.004833304323256016,
-0.012882276438176632,
-0.010313663631677628,
-0.020009685307741165,
-0.0646662786602974,
0.05454869195818901,
0.027686109766364098,
-0.03394097462296486,
-0.0005998738924972713,
-0.018588123843073845,
-0.012794041074812412,
0.004137230105698109,
0.000439335621194914,
0.018980279564857483,
0.020882228389382362,
0.003267137333750725,
-0.009681315161287785,
0.0166175477206707,
0.005622515454888344,
-0.029176296666264534,
-0.0545094795525074,
0.05596045032143593,
-0.021293990314006805,
0.0029975310899317265,
0.011911693960428238,
-0.011392088606953621,
0.008700928650796413,
-0.022490061819553375,
-0.05447026342153549,
-0.0007512210286222398,
-0.06584274023771286,
0.01338227279484272,
-0.02064693532884121,
-0.013597957789897919,
0.02676454558968544,
0.04290170595049858,
-0.01679401658475399,
-0.045176200568675995,
-0.057725146412849426,
-0.08282303810119629,
-0.020548896864056587,
0.004980362486094236,
-0.011264638975262642,
0.0012187426909804344,
-0.0673721432685852,
0.08658771961927414,
-0.0015085694612935185,
-0.04419581592082977,
-0.012725413776934147,
-0.05874474719166756,
-0.02450965717434883,
0.02450965717434883,
-0.08352891355752945,
0.04627423360943794,
0.04627423360943794,
0.04462718591094017,
0.04843108355998993,
0.010519544593989849,
0.02960766665637493,
0.03601939231157303,
0.019176356494426727,
0.04670560359954834,
-0.0460781566798687,
0.002131114713847637,
-0.02978413552045822,
-0.027666501700878143,
-0.018058715388178825,
0.06352902948856354,
-0.043097782880067825,
-0.03886251151561737,
0.05748985335230827,
0.055058494210243225,
0.027980225160717964,
0.02096065878868103,
-0.040784068405628204,
-0.06529372930526733,
-0.007352897431701422,
-0.027019446715712547,
-0.037960559129714966,
0.019117532297968864,
-0.009009750559926033,
-0.07270544767379761,
-0.06094081327319145,
-0.011088169179856777,
0.06039179489016533,
0.0372350700199604,
-0.01714695617556572,
-0.005779377184808254,
-0.04009779915213585,
0.03615664690732956,
0.030960598960518837,
0.032548826187849045,
0.03878408297896385,
-0.00465193297713995,
-0.025823375210165977,
0.011127384379506111,
-0.05345066264271736,
-0.035254690796136856,
0.01202933955937624,
0.020450858399271965,
0.0015208242693915963,
0.07270544767379761,
-0.030548837035894394,
-0.03474489226937294,
-0.027490030974149704,
0.007377407047897577,
-0.010323467664420605,
-0.054391831159591675,
-0.108156219124794,
0.03425469622015953,
0.05929376184940338,
-0.020450858399271965,
-0.009676412679255009,
-0.05529378727078438,
-0.015323437750339508,
0.008593086153268814,
-0.05748985335230827,
-0.029352765530347824,
-0.015597946010529995,
0.06886233389377594,
-0.03576449304819107,
-0.017931265756487846,
-0.0323331393301487,
-0.0044730124063789845,
0.09466610103845596,
0.0438820905983448,
0.025509651750326157,
-0.07278387993574142,
-0.0017524404684081674,
-0.005578398238867521,
0.007024467922747135,
0.04999970272183418,
0.03521547466516495,
-0.03805859759449959,
-0.003590664826333523,
-0.010294056497514248,
-0.0033798818476498127,
-0.0013320998987182975,
0.04682324826717377,
-0.040391914546489716,
0.029137080535292625,
-0.02290182374417782,
0.06584274023771286,
0.027058660984039307,
-0.008053873665630817,
-0.01697048731148243,
-0.035470377653837204,
0.03199980780482292,
-0.012048947624862194,
-0.013480311259627342,
0.026293961331248283,
-0.04635266587138176,
-0.03911741450428963,
0.01457834430038929,
-0.029097866266965866,
-0.06619568169116974,
0.026784153655171394,
0.015088144689798355,
-0.030156683176755905,
-0.03166647627949715,
-0.0385487899184227,
0.01378423161804676,
0.009298964403569698,
0.03598017618060112,
-0.05250949040055275,
0.004105367697775364,
-0.051960475742816925,
0.02117634378373623,
0.00950484536588192,
-0.018666554242372513,
0.004529384896159172,
0.01590186543762684,
0.030235113576054573,
0.025411613285541534,
0.05698005110025406,
0.032627254724502563,
0.035999786108732224,
0.08156813681125641,
0.061568260192871094,
0.010343075729906559,
-0.05623495951294899,
-0.02335280179977417,
-0.018313616514205933,
0.015303829684853554,
-0.016892055049538612,
0.015607750043272972,
-0.023235155269503593,
0.053725168108940125,
0.02503906562924385,
-0.001961998175829649,
0.04066642373800278,
0.04113700985908508,
0.02078418992459774,
0.028568455949425697,
-0.002432583598420024,
0.01621558889746666,
-0.013862662017345428,
0.06858782470226288,
0.006264668423682451,
0.011990124359726906,
0.07435249537229538,
-0.04266641288995743,
-0.04796049743890762,
0.01715676113963127,
-0.012499925680458546,
0.034588027745485306,
-0.042117394506931305,
-0.04470561444759369,
0.010901895351707935,
-0.043176211416721344,
-0.061607476323843,
0.054783985018730164,
0.0323527492582798,
-0.03137236088514328,
-0.02286260761320591,
-0.011980320326983929,
-0.02282339334487915,
-0.07415641844272614,
0.033784110099077225,
0.024293972179293633,
-0.039764467626810074,
-0.00034007150679826736,
0.036980170756578445,
-0.07596033066511154,
0.04968597739934921,
-0.022568492218852043,
0.000007147054475353798,
-0.11325422674417496,
0.008847986347973347,
-0.06592117249965668,
0.044156599789857864,
-0.02096065878868103,
0.04580364748835564,
-0.008254853077232838,
0.03158804774284363,
0.00946072768419981,
-0.011245030909776688,
-0.00694603705778718,
-0.01076464168727398,
-0.022411631420254707,
-0.028725318610668182,
-0.06498000025749207,
-0.0040391916409134865,
0.028391987085342407,
0.03841153532266617,
0.001588225830346346,
0.003933799918740988,
-0.02384299412369728,
-0.030960598960518837,
-0.04596050828695297,
-0.0159606896340847,
-0.024176325649023056,
-0.051685966551303864,
-0.09725432097911835,
0.057725146412849426,
0.0038406632374972105,
0.048627160489559174,
-0.009367590770125389,
-0.05015656352043152,
0.020862620323896408,
-0.053725168108940125,
0.11646988987922668,
-0.051999688148498535,
-0.02033321186900139,
0.010568564757704735,
-0.0008976662065833807,
0.013392076827585697,
0.0024889556225389242,
-0.010607779957354069,
0.07796031981706619,
-0.06447020173072815,
-0.008490145206451416,
0.011784243397414684,
0.03164687007665634,
-0.05082322657108307,
-0.06231335178017616,
0.029588058590888977,
0.010156801901757717,
0.0314507931470871,
-0.10094057023525238,
0.032195884734392166,
0.015980295836925507,
-0.05490163341164589,
-0.003340666415169835,
-0.0358821377158165,
-0.00966170709580183,
0.004482816439121962,
-0.0164018627256155,
-0.03611743077635765,
0.06945056468248367,
0.04694089666008949,
0.019784195348620415,
0.021548891440033913,
-0.014294032007455826,
0.0004901931388303638,
-0.02339201793074608,
0.021078305318951607,
0.019156748428940773,
0.014382267370820045,
0.03256843239068985,
0.01777440309524536,
-0.024784166365861893,
-0.002536749467253685,
-0.015695985406637192,
0.060156501829624176,
-0.019127337262034416,
-0.011539146304130554,
0.003031844738870859,
-0.006597999949008226,
0.0549408495426178,
0.05411732196807861,
-0.015794023871421814,
-0.039097804576158524,
-0.003992623183876276,
0.013235215097665787,
-0.029666488990187645,
0.07078389078378677,
0.03247039392590523,
-0.039058588445186615,
0.02796061709523201,
0.01635284349322319,
-0.026705723255872726,
-0.009362689219415188,
-0.00846563559025526,
0.07901913672685623,
0.010352879762649536,
-0.032803725451231,
-0.023254763334989548,
0.06199963018298149,
-0.048195790499448776,
0.0789014920592308,
0.014235208742320538,
0.011284246109426022,
0.013127372600138187,
0.024450834840536118,
0.0013651879271492362,
0.012196005322039127,
0.030411582440137863,
0.037646833807229996,
0.026999838650226593,
-0.05109773576259613,
0.007808777038007975,
0.020686151459813118,
-0.017490090802311897,
0.0312351081520319,
0.013637172989547253,
0.053058505058288574,
0.05901925638318062,
-0.047568343579769135,
0.042470335960388184,
0.02441161870956421,
0.05666632950305939,
0.012284240685403347,
0.004723011050373316,
-0.013039138168096542,
0.0206077191978693,
0.021333206444978714,
-0.042156610637903214,
-0.01621558889746666,
0.005455849692225456,
-0.03347038850188255,
0.030058644711971283,
0.009735235944390297,
-0.04878402128815651,
-0.019264589995145798,
0.02919590473175049,
0.051254596561193466,
-0.030372368171811104,
0.006965644657611847,
-0.020548896864056587,
-0.008671516552567482,
0.060823164880275726,
0.010470525361597538,
0.04701932519674301,
-0.04027426987886429,
0.004970558453351259,
-0.007764659356325865,
0.015882257372140884,
0.031117461621761322,
-0.0026176313403993845,
-0.0049386960454285145,
0.01054895669221878,
0.022529277950525284,
-0.04713697358965874,
0.0323331393301487,
-0.014862656593322754,
0.04847029969096184,
-0.061254534870386124,
0.03843114152550697,
-0.03199980780482292,
-0.017646953463554382,
0.05043107271194458,
-0.038215458393096924,
-0.02468612790107727,
0.005269576329737902,
0.033293917775154114,
-0.058117300271987915,
-0.005289183929562569,
-0.02380377985537052,
-0.0243724025785923,
-0.01733323000371456,
0.037960559129714966,
-0.010107782669365406,
0.023097900673747063,
0.03523508459329605,
-0.032686080783605576,
-0.04878402128815651,
0.05325458198785782,
-0.010460722260177135,
0.02321554720401764,
-0.00381125183776021,
0.0279214009642601,
-0.06682313233613968,
0.036450762301683426,
0.0014816088369116187,
0.06148982793092728,
0.07717601209878922,
0.039686039090156555,
0.029705705121159554,
0.02827434055507183,
0.0002090980124194175,
0.014705794863402843,
0.03243117779493332,
0.04035269841551781,
-0.05101930350065231,
-0.008220539428293705,
-0.0007916619651950896,
0.003480371320620179,
-0.07992108911275864,
-0.003492626128718257,
-0.07592111825942993,
-0.03164687007665634,
-0.009362689219415188,
-0.017931265756487846,
-0.0016335686668753624,
-0.037548795342445374,
-0.02578415907919407,
0.0403134860098362,
-0.03570567071437836,
-0.04435267671942711,
0.05462712422013283,
-0.016862643882632256,
-0.019470471888780594,
-0.027705715969204903,
-0.015303829684853554,
0.004914186429232359,
-0.06368589401245117,
-0.029391981661319733,
0.03966642916202545,
0.0199410580098629,
0.07325446605682373,
0.023058686405420303,
-0.024254757910966873,
-0.036627233028411865,
0.0380978100001812,
-0.028333164751529694,
-0.0005998738924972713,
0.02937237359583378,
-0.011460715904831886,
0.004693599417805672,
0.040705639868974686,
0.02676454558968544,
-0.03088216856122017,
0.0005009161541238427,
0.041450731456279755,
-0.0033700778149068356,
-0.016803821548819542,
-0.032097846269607544,
0.04576443135738373,
-0.016078336164355278,
0.03935270756483078,
-0.035293906927108765,
-0.05788200721144676,
0.03021550551056862,
-0.01415677834302187,
0.021156735718250275,
0.01630382426083088,
-0.037293896079063416,
0.05286242812871933,
-0.05427418649196625,
0.05752906948328018,
0.03266647085547447,
-0.004997519310563803,
0.0274704247713089,
0.02796061709523201,
-0.04529384523630142,
0.008347989059984684,
-0.007107800804078579,
-0.021470459178090096,
0.009715627878904343,
0.030960598960518837,
-0.036313507705926895,
0.0037083111237734556,
0.027235131710767746,
0.029921390116214752,
0.023156724870204926,
-0.013352861627936363,
-0.010029352270066738,
0.010024449788033962,
0.01535284984856844,
-0.03264686465263367,
-0.029882173985242844,
0.00799995195120573,
0.03472528234124184,
0.01946066878736019,
0.020705759525299072,
-0.09121514111757278,
0.00579408323392272,
-0.059842780232429504,
-0.041725240647792816,
0.02799983322620392,
0.04290170595049858,
0.019303806126117706,
0.003428901080042124,
0.020705759525299072,
0.044509537518024445,
0.0003057579742744565,
0.0005735259619541466,
0.0031592948362231255,
0.03813702613115311,
0.07062702625989914,
-0.0633721724152565,
0.006548980250954628,
0.05086244270205498,
0.0035661552101373672,
0.04439189285039902,
0.07364661991596222,
0.04945068433880806,
0.05921533331274986,
-0.010490133427083492,
0.020313603803515434,
0.07070545852184296,
0.017794011160731316,
-0.014646971598267555,
0.020048899576067924,
-0.0376664400100708,
0.007269564550369978,
-0.042509548366069794,
-0.000906857312656939,
-0.05529378727078438,
0.0070097618736326694,
0.01753911003470421,
0.0031029225792735815,
0.008847986347973347,
0.03403901308774948,
0.028431203216314316,
0.01338227279484272,
0.01007837150245905,
-0.0412154383957386,
-0.006357805337756872,
0.006798978894948959,
0.0319213792681694,
0.03035276010632515,
0.001390923047438264,
-0.01706852577626705,
0.04360758140683174,
0.04321542754769325,
-0.0022267024032771587,
-0.04098014906048775,
0.012235221453011036,
0.053646739572286606,
-0.03035276010632515,
0.030509620904922485,
0.030156683176755905,
-0.06109767407178879,
0.03984289988875389,
-0.0673721432685852,
-0.02721552364528179,
0.029274335131049156,
0.022666530683636665,
-0.02960766665637493,
0.02858806401491165,
-0.028391987085342407,
0.05282321199774742,
-0.025941021740436554,
0.008999946527183056,
-0.08172500133514404,
0.016607744619250298,
-0.013205802999436855,
-0.0017132250359281898,
-0.002833316335454583,
0.0093087675049901,
0.015803826972842216,
-0.01826459728181362,
-0.026882192119956017,
0.0219410452991724,
-0.01391168124973774,
-0.028862573206424713,
-0.02609788253903389,
0.03658801689743996,
0.002401946345344186,
-0.026862584054470062,
0.0015012165531516075,
-0.006490157451480627,
-0.08784261345863342,
-0.028744926676154137,
0.04764677584171295,
-0.03917623683810234,
-0.04803892970085144,
0.048980098217725754,
0.00434066029265523,
0.016597939655184746,
0.038313496857881546,
-0.049607545137405396,
-0.0514114573597908,
0.023941032588481903,
0.014009720645844936,
-0.03774487227201462,
0.0033284113742411137,
0.0006415402749553323,
0.03399979695677757,
-0.03225471079349518,
-0.04529384523630142,
-0.0059999641962349415,
0.002072291448712349,
-0.025960629805922508,
0.04807814583182335,
-0.05748985335230827,
0.018156753852963448,
0.005093106999993324,
0.014656775631010532,
-0.0039681135676801205,
-0.04188210144639015,
-0.023431232199072838,
-0.0186077319085598,
-0.06596039235591888,
0.006642117165029049,
-0.032019417732954025,
0.012970510870218277,
-0.04423502832651138,
-0.007014663890004158,
-0.027901794761419296,
0.07670542597770691,
-0.0159606896340847,
-0.02033321186900139,
0.02827434055507183,
0.002487730234861374,
-0.008455831557512283,
-0.05250949040055275,
0.030686091631650925,
0.014078347012400627,
0.009671511128544807,
-0.03305862471461296,
-0.057842791080474854,
-0.02609788253903389,
0.024882204830646515,
0.08603870123624802,
0.014303836040198803,
-0.016646958887577057,
0.017607737332582474,
-0.022921431809663773,
-0.0412154383957386,
0.03492135927081108,
0.030823344364762306,
-0.053725168108940125,
0.0023296428844332695,
0.05988199636340141,
-0.019019493833184242,
-0.007039173506200314,
0.007808777038007975,
0.08172500133514404,
0.010882288217544556,
-0.01327443029731512,
0.019558707252144814,
0.0065538822673261166,
-0.031490009278059006,
-0.017646953463554382,
-0.0006170306005515158,
-0.08447008579969406,
-0.0032940979581326246,
-0.012950902804732323,
-0.011068561114370823,
-0.012764629907906055,
-0.04576443135738373,
0.0015061184531077743,
-0.0042401705868542194,
0.02680376172065735,
0.013833250850439072,
0.049921270459890366,
0.0749015137553215,
0.007926423102617264,
0.008357793092727661,
-0.0004062475636601448,
-0.009642099030315876,
-0.02743120864033699,
-0.01976458728313446,
-0.0022156729828566313,
-0.04999970272183418,
0.0015097948489710689,
0.031215500086545944,
0.03815663605928421,
0.004090661648660898,
-0.01378423161804676,
0.002367632929235697,
-0.041058577597141266,
-0.05070557817816734,
-0.02092144452035427,
-0.017254799604415894,
0.021823398768901825,
0.003571056993678212,
-0.04682324826717377,
0.026333175599575043,
0.007504857145249844,
0.047215405851602554,
-0.086823008954525,
0.048195790499448776,
-0.00149018713273108,
-0.07364661991596222,
0.05592123419046402,
0.011784243397414684,
-0.0208234041929245,
-0.01218620128929615,
0.003340666415169835,
-0.023725347593426704,
-0.030940990895032883,
0.02074497379362583,
0.010509741492569447,
0.021411636844277382,
0.0281370859593153,
-0.01561755407601595,
0.06897997856140137,
0.028901787474751472,
-0.020039096474647522,
0.01941164955496788,
0.03299980238080025,
-0.006416628137230873,
0.06137218326330185,
-0.03805859759449959,
0.02149006724357605,
0.01843126304447651,
-0.03521547466516495,
-0.02960766665637493,
-0.014637167565524578,
-0.05043107271194458,
0.022137122228741646,
-0.0071519180200994015,
0.07662699371576309,
0.031842947006225586,
-0.04509776830673218,
0.02552925981581211,
-0.013303842395544052,
0.006186237558722496,
0.04129387065768242,
0.027235131710767746,
-0.0257057286798954,
0.0025759648997336626,
0.016254805028438568,
0.004235269036144018,
0.05047028511762619,
-0.029940998181700706,
0.01794106885790825,
0.0021384675055742264,
0.0890975072979927,
0.010068567469716072,
-0.0372350700199604,
-0.029901782050728798,
-0.01715676113963127,
-0.05419575423002243,
-0.004553894512355328,
-0.06094081327319145,
-0.01897047460079193,
-0.008235245011746883,
0.015274418517947197,
0.04325464367866516,
0.05223498120903969,
0.049176175147295
] |
17,685 | imodels.tree.gosdt.pygosdt | json |
Returns
---
string : A JSON string representing the model
| def json(self):
"""
Returns
---
string : A JSON string representing the model
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.json()
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
| (self) | [
0.03096969984471798,
-0.022726884111762047,
0.048365138471126556,
-0.03637393191456795,
0.022690491750836372,
-0.02691197767853737,
-0.017331751063466072,
-0.0006959994207136333,
0.06506912410259247,
-0.020415984094142914,
0.05225909501314163,
-0.039048753678798676,
-0.0408683605492115,
-0.022090021520853043,
0.007760621141642332,
-0.024055195972323418,
0.026602644473314285,
-0.02736688032746315,
0.03278930485248566,
0.02210821770131588,
-0.005049407482147217,
-0.030805936083197594,
-0.022017236799001694,
0.04527180641889572,
-0.011263363063335419,
-0.01943339593708515,
0.034991029649972916,
-0.014065557159483433,
0.002020900370553136,
0.014293007552623749,
-0.08435694873332977,
-0.03948545828461647,
-0.009334580972790718,
0.0373019315302372,
-0.03155197575688362,
0.03937628120183945,
0.0030228211544454098,
0.06186661496758461,
-0.10764791071414948,
-0.047855645418167114,
-0.07598675787448883,
-0.0026338801253587008,
-0.1097586527466774,
-0.03528216853737831,
-0.014911673963069916,
-0.01835072971880436,
-0.004239683039486408,
0.08828730136156082,
-0.027821781113743782,
-0.07209280133247375,
0.002277919789776206,
-0.00614117132499814,
-0.031115269288420677,
0.04221486672759056,
-0.07562284171581268,
-0.030460210517048836,
0.033207815140485764,
0.014584144577383995,
0.05426065996289253,
0.027421467006206512,
0.00042448003659956157,
0.047382548451423645,
0.028422251343727112,
-0.024892214685678482,
-0.048729058355093,
0.01965174823999405,
-0.06925421953201294,
0.0032229777425527573,
-0.003407212905585766,
0.03455432504415512,
-0.07107382267713547,
-0.04854709655046463,
0.03733832389116287,
0.08406581729650497,
0.03688342124223709,
-0.04683666676282883,
0.002827213378623128,
-0.08042660355567932,
0.0011804696405306458,
-0.0025428999215364456,
-0.026475273072719574,
0.009025247767567635,
0.02896813303232193,
-0.04894741252064705,
-0.02909550629556179,
-0.0448714941740036,
0.0009945286437869072,
-0.008556698448956013,
-0.020088454708456993,
0.008897875435650349,
-0.04720059037208557,
0.016067124903202057,
-0.009998736903071404,
0.05280497670173645,
-0.0015864692395552993,
0.03240719065070152,
-0.0035641540307551622,
-0.00682352390140295,
0.0030273699667304754,
-0.039121538400650024,
-0.0010110187577083707,
0.08806894719600677,
-0.04432561248540878,
0.033790089190006256,
-0.045854080468416214,
-0.03197048231959343,
-0.016367359086871147,
0.03864843770861626,
0.004380702506750822,
-0.03617377579212189,
-0.044980667531490326,
0.050439488142728806,
0.02070712111890316,
-0.017213476821780205,
0.07758801430463791,
-0.06033814698457718,
-0.0468730591237545,
-0.02098006196320057,
-0.024946803227066994,
-0.015657713636755943,
-0.011672774329781532,
0.04796482250094414,
-0.021762492135167122,
0.027421467006206512,
-0.02023402228951454,
0.04279714077711105,
0.01637645810842514,
0.026020370423793793,
0.029805151745676994,
-0.05760873854160309,
0.018869318068027496,
-0.0012100382009521127,
-0.02225378528237343,
0.019160455092787743,
0.039922162890434265,
-0.021889865398406982,
-0.0162945743650198,
-0.015985241159796715,
0.01770476996898651,
0.06470520049333572,
0.013510577380657196,
-0.027112135663628578,
0.009534737095236778,
-0.030714955180883408,
0.035919029265642166,
-0.0041509768925607204,
-0.012154970318078995,
-0.018559984862804413,
-0.03955824300646782,
-0.04141424223780632,
0.05069423466920853,
0.00810179766267538,
0.043706946074962616,
-0.043706946074962616,
-0.0052677602507174015,
0.014147439040243626,
-0.006596073042601347,
-0.08442973345518112,
0.03564608842134476,
-0.024200765416026115,
-0.019961081445217133,
-0.013301322236657143,
0.00121117546223104,
0.017167985439300537,
0.04596325755119324,
0.031188052147626877,
-0.0036460361443459988,
-0.04188733920454979,
-0.03109707310795784,
-0.002868154551833868,
-0.03846647962927818,
-0.007792464457452297,
-0.07591398060321808,
0.03661048039793968,
0.016694888472557068,
0.05771791189908981,
0.0530233308672905,
0.12264146655797958,
0.014693321660161018,
0.05833657830953598,
0.010308070108294487,
0.016758574172854424,
-0.048911020159721375,
0.052768584340810776,
0.029313858598470688,
-0.061029598116874695,
0.015666810795664787,
-0.01488437969237566,
-0.015584928914904594,
0.036865223199129105,
0.014129243791103363,
0.028076525777578354,
0.017240770161151886,
0.0034504286013543606,
0.028385858982801437,
-0.04567211866378784,
0.031333621591329575,
-0.004146427847445011,
-0.034154012799263,
0.03995855525135994,
-0.002094821771606803,
-0.060774851590394974,
0.015712300315499306,
0.028021937236189842,
-0.0490201935172081,
0.030842328444123268,
-0.006637013982981443,
0.01639465242624283,
0.0071146609261631966,
-0.02691197767853737,
-0.00821097381412983,
0.0009569991962052882,
-0.059501126408576965,
0.04854709655046463,
0.06536026298999786,
-0.04319745674729347,
-0.007214738987386227,
-0.010626501403748989,
-0.07642346620559692,
-0.03284389525651932,
-0.003928075078874826,
0.04083196818828583,
0.03846647962927818,
0.01827794499695301,
-0.04010412469506264,
-0.05120372399687767,
0.011791049502789974,
-0.017813947051763535,
-0.017959514632821083,
-0.05447901412844658,
-0.01652202568948269,
-0.052513837814331055,
0.03480906784534454,
0.017686573788523674,
-0.011618186719715595,
0.040322475135326385,
0.002486037090420723,
-0.041050318628549576,
-0.0026770958211272955,
0.01662210375070572,
0.004639996215701103,
-0.05262301489710808,
-0.04196012392640114,
-0.026475273072719574,
0.028713388368487358,
0.013173949904739857,
0.038794007152318954,
0.011008618399500847,
0.028986329212784767,
-0.03748388960957527,
0.0293684471398592,
-0.03810255602002144,
-0.01694963313639164,
0.011954814195632935,
-0.04083196818828583,
-0.06121155619621277,
0.03187950327992439,
0.026784606277942657,
0.06758017838001251,
0.017368143424391747,
0.002965958323329687,
-0.05255023017525673,
-0.026584448292851448,
0.10582830756902695,
-0.0670342966914177,
-0.07081907987594604,
0.01594884879887104,
0.009680305607616901,
-0.00935277622193098,
0.0057135638780891895,
0.07926205545663834,
0.011126892641186714,
-0.033790089190006256,
-0.03673785179853439,
0.007455836981534958,
-0.07627789676189423,
-0.027803584933280945,
0.0272940956056118,
-0.012728146277368069,
0.016431044787168503,
0.006900857202708721,
-0.06299477070569992,
0.03726553916931152,
0.03109707310795784,
-0.06794410198926926,
-0.04432561248540878,
0.005181329324841499,
0.00037699969834648073,
0.0046445452608168125,
-0.006314034108072519,
0.003350350307300687,
0.02809472195804119,
-0.03562789410352707,
-0.01569410413503647,
0.046036042273044586,
-0.06717986613512039,
-0.010262579657137394,
-0.06317673623561859,
0.04749172553420067,
0.0374474972486496,
0.03584624454379082,
0.012473401613533497,
0.024400921538472176,
-0.03247997164726257,
-0.012300538830459118,
0.00009275727643398568,
0.01684955507516861,
-0.03864843770861626,
-0.011681872420012951,
0.031588368117809296,
-0.04461674764752388,
0.006263995077461004,
0.0564441904425621,
0.06525108218193054,
-0.04396168887615204,
-0.009189012460410595,
0.00570901483297348,
-0.016130810603499413,
0.07591398060321808,
0.05615305155515671,
-0.05433344468474388,
0.04403447359800339,
0.022544922307133675,
-0.02298162877559662,
-0.014556851238012314,
-0.046727489680051804,
0.03777502849698067,
0.014611438848078251,
0.02471025474369526,
0.024419117718935013,
-0.004125957377254963,
-0.0224357470870018,
0.08828730136156082,
0.04760090261697769,
-0.008133640512824059,
0.024346332997083664,
0.04752811789512634,
-0.03897596895694733,
-0.038721222430467606,
-0.01614900678396225,
0.03217064216732979,
0.004392074886709452,
-0.00341403647325933,
0.030532995238900185,
-0.033389776945114136,
0.042324043810367584,
0.02864060364663601,
0.0451626293361187,
0.06725265085697174,
0.024655666202306747,
-0.10138846933841705,
0.009266345761716366,
0.015985241159796715,
0.04909297823905945,
-0.07642346620559692,
-0.013974577188491821,
0.023855039849877357,
0.05062144994735718,
-0.0051039960235357285,
0.007273876573890448,
0.03602820634841919,
-0.0037188204005360603,
-0.018942102789878845,
0.0530233308672905,
0.04461674764752388,
-0.024928607046604156,
0.019287826493382454,
0.029459426179528236,
0.11434406042098999,
-0.05553438514471054,
-0.014693321660161018,
0.025783821940422058,
-0.027021154761314392,
-0.028786173090338707,
-0.026002174243330956,
0.07882534712553024,
-0.007000935263931751,
-0.013292224146425724,
-0.01945159211754799,
-0.022563118487596512,
-0.020816296339035034,
-0.0043579572811722755,
-0.017659280449151993,
0.0029477623756974936,
0.007246582303196192,
-0.03675604984164238,
0.016794966533780098,
0.012591675855219364,
-0.05062144994735718,
-0.03397205099463463,
-0.014502262696623802,
-0.047455333173274994,
-0.039121538400650024,
0.03408122807741165,
-0.04829235374927521,
-0.025856606662273407,
-0.019597159698605537,
0.0003966173098888248,
-0.08130001276731491,
0.04312467202544212,
-0.006486896891146898,
-0.025146959349513054,
0.007201092317700386,
-0.014729713089764118,
-0.02310900017619133,
0.0044716824777424335,
0.03162475675344467,
0.03137001395225525,
-0.000895587494596839,
-0.033790089190006256,
0.007437640801072121,
0.0047719175927340984,
-0.058773286640644073,
-0.012928303331136703,
0.017995906993746758,
0.04869266599416733,
0.05462458357214928,
0.03149738535284996,
0.0060456423088908195,
0.009516540914773941,
0.00862493459135294,
0.07325734943151474,
0.02743966318666935,
0.046727489680051804,
0.019560769200325012,
0.041450634598731995,
-0.02463747002184391,
0.03460891172289848,
0.021798884496092796,
0.0510217621922493,
-0.00363011471927166,
-0.000408274179790169,
-0.05047588050365448,
-0.09498345106840134,
0.008183679543435574,
-0.011090501211583614,
-0.00958932563662529,
-0.03941267356276512,
-0.02671182155609131,
0.047236982733011246,
-0.012828225269913673,
0.02591119520366192,
0.010926736518740654,
-0.004082741681486368,
0.02909550629556179,
-0.012073088437318802,
-0.01990649290382862,
0.018687358126044273,
-0.0330076590180397,
-0.06328590959310532,
0.03602820634841919,
0.030878720805048943,
0.032734718173742294,
-0.017495514824986458,
-0.003762036096304655,
-0.01045363862067461,
0.03893957659602165,
-0.02942303568124771,
0.015130027197301388,
0.02909550629556179,
-0.02236296236515045,
0.005577093455940485,
0.04960246756672859,
0.05120372399687767,
0.0023086254950612783,
-0.03242538496851921,
0.015794184058904648,
0.0302236620336771,
-0.06725265085697174,
-0.024182569235563278,
0.07041876763105392,
0.009680305607616901,
-0.029113702476024628,
-0.04912937059998512,
-0.05993783473968506,
0.09607521444559097,
0.03726553916931152,
-0.010053325444459915,
0.0010496854083612561,
-0.032934874296188354,
-0.00509489793330431,
-0.05535242706537247,
-0.010180697776377201,
0.019888296723365784,
-0.012200460769236088,
-0.0035959971137344837,
-0.03513659909367561,
-0.008647679351270199,
0.012564381584525108,
-0.008797796443104744,
-0.04439839348196983,
0.009698501788079739,
-0.008415679447352886,
-0.007633248809725046,
0.010198893956840038,
0.06084763631224632,
0.01997927762567997,
-0.001953802304342389,
-0.03897596895694733,
0.026548055931925774,
0.033262405544519424,
0.012609872035682201,
0.02003386616706848,
-0.004264702554792166,
-0.019360611215233803,
-0.054442621767520905,
0.041923731565475464,
0.01602163352072239,
-0.015293791890144348,
0.001434077275916934,
-0.02150774747133255,
0.012691753916442394,
0.03317142277956009,
0.0433066301047802,
-0.005827289540320635,
0.023454725742340088,
0.033662717789411545,
0.026657233014702797,
-0.008720463141798973,
0.02529252879321575,
-0.01374712586402893,
-0.011427127756178379,
0.05618944391608238,
-0.02723950706422329,
-0.002399605931714177,
0.059355560690164566,
-0.02723950706422329,
0.04356137663125992,
0.015075438655912876,
0.05309611186385155,
0.08028103411197662,
-0.01737724058330059,
0.0070646218955516815,
0.06481438130140305,
-0.04880184307694435,
-0.0008193915127776563,
0.012400616891682148,
0.005149486009031534,
-0.02010665088891983,
-0.020961865782737732,
0.021926255896687508,
-0.08755946159362793,
0.0014522733399644494,
0.02263590320944786,
0.03428138419985771,
0.026074958965182304,
0.03475448116660118,
0.014502262696623802,
0.0010536657646298409,
-0.016212692484259605,
-0.024400921538472176,
-0.001430665492080152,
-0.0214349627494812,
-0.017668377608060837,
0.059100814163684845,
0.034154012799263,
0.004749172367155552,
0.03893957659602165,
0.030078092589974403,
-0.024291744455695152,
-0.02003386616706848,
-0.004162349738180637,
-0.005731760058552027,
0.002925017150118947,
0.003404938383027911,
0.027257703244686127,
-0.04581768810749054,
0.08741389214992523,
-0.032534562051296234,
-0.0510217621922493,
0.03670145943760872,
0.0009422149159945548,
0.028476839885115623,
0.009653011336922646,
0.0009012738009914756,
0.028076525777578354,
-0.0048674470745027065,
0.05225909501314163,
-0.048110391944646835,
0.027184918522834778,
-0.008747757412493229,
-0.0013647048035636544,
0.005799995269626379,
0.0015307439025491476,
-0.005577093455940485,
-0.03260734677314758,
0.0005325191887095571,
0.023927822709083557,
0.008115444332361221,
-0.012218656949698925,
-0.0014261164469644427,
0.026202332228422165,
0.03575526550412178,
-0.015130027197301388,
0.046909451484680176,
-0.011445323936641216,
-0.05961030349135399,
-0.0350092276930809,
-0.010044227354228497,
-0.060956813395023346,
0.0009723521652631462,
0.025128763169050217,
0.019524376839399338,
-0.011381637305021286,
0.0373019315302372,
-0.004123683087527752,
-0.023472921922802925,
0.024473706260323524,
-0.01115418691188097,
0.009889560751616955,
-0.020798100158572197,
-0.0073421117849648,
-0.004712780471891165,
-0.06233971565961838,
-0.026402488350868225,
0.0025292527861893177,
-0.012673558667302132,
-0.054369837045669556,
-0.018887514248490334,
-0.028203899040818214,
0.08311961591243744,
0.04894741252064705,
0.01045363862067461,
-0.0007477444596588612,
-0.01977912150323391,
-0.047782864421606064,
-0.00948924757540226,
-0.07009124010801315,
-0.0214349627494812,
-0.0651782974600792,
0.03890318423509598,
-0.03883039951324463,
0.003050115192309022,
-0.045126236975193024,
-0.020561551675200462,
-0.0003806957683991641,
-0.015421164222061634,
0.0033185069914907217,
0.010808461345732212,
-0.004726427607238293,
-0.05848214775323868,
0.009616619907319546,
-0.0491657629609108,
-0.015493948012590408,
-0.024983195587992668,
-0.01201849989593029,
-0.044252827763557434,
0.026329703629016876,
0.05538881570100784,
-0.036938007920980453,
-0.058227404952049255,
0.025001391768455505,
-0.029550407081842422,
-0.024983195587992668,
0.004442113917320967,
0.016540221869945526,
0.01750461384654045,
0.030460210517048836,
-0.005531603470444679,
0.02904091775417328,
-0.06481438130140305,
0.007392150815576315,
0.02538350783288479,
0.005640779621899128,
0.046581923961639404,
0.045126236975193024,
-0.035318560898303986,
-0.033662717789411545,
0.02103464864194393,
-0.037665851414203644,
-0.07504056394100189,
0.040322475135326385,
0.04869266599416733,
-0.035664286464452744,
-0.0588824599981308,
0.014747909270226955,
0.022726884111762047,
0.030933307483792305,
0.06419571489095688,
0.001538704615086317,
0.029750563204288483,
0.04221486672759056,
-0.027112135663628578,
0.04767368733882904,
0.022490333765745163,
0.013137557543814182,
-0.02756703644990921,
0.01321944035589695,
0.00020371061691548675,
-0.0293684471398592,
-0.06219414621591568,
-0.023345548659563065,
-0.018741944804787636,
0.010135207325220108,
0.08981577306985855,
0.0014625085750594735,
-0.012109479866921902,
0.0030182721093297005,
-0.012691753916442394,
0.020143043249845505,
0.05520685762166977,
-0.0314427986741066,
-0.016594810411334038,
0.0009842932922765613,
0.026002174243330956,
0.008543051779270172,
-0.017813947051763535,
0.006250347942113876,
-0.005035760812461376,
-0.11754657328128815,
-0.01001693308353424,
0.0723111554980278,
0.005486113019287586,
-0.0025247037410736084,
-0.050184741616249084,
0.0008688620291650295,
-0.012473401613533497,
0.052040740847587585,
0.00614117132499814,
-0.04254239797592163,
-0.03440875560045242,
-0.0026634489186108112,
0.030532995238900185,
0.0008404306718148291,
0.045781295746564865,
0.07795193791389465,
-0.00736030749976635,
-0.03488185256719589,
0.02703935094177723,
-0.019160455092787743,
0.028858955949544907,
0.026074958965182304,
-0.04246961325407028,
-0.06408653408288956,
-0.023600295186042786,
-0.042578790336847305,
0.00657787686213851,
-0.004949329420924187,
-0.0002954017254523933,
-0.00690995529294014,
0.02929566241800785,
0.04447117820382118,
-0.004730976652354002,
-0.01055371668189764,
0.05695367977023125,
-0.009844070300459862,
0.021489551290869713,
0.03773863613605499,
-0.013610655441880226,
-0.042178474366664886,
0.04388890415430069,
0.0014227046631276608,
0.0254380963742733,
-0.002790821250528097,
0.06557860970497131,
-0.0035004676319658756,
0.011345245875418186,
0.015084536746144295,
0.023727666586637497,
-0.013565164990723133,
-0.02949581854045391,
-0.04050443693995476,
-0.015857869759202003,
-0.01569410413503647,
0.001984508242458105,
0.03564608842134476,
0.01965174823999405,
-0.02370947040617466
] |
17,686 | imodels.tree.gosdt.pygosdt | latex |
Note
---
This method doesn't work well for label headers that contain underscores due to underscore
being a reserved character in LaTeX
Returns
---
string : A LaTeX string representing the model
| def latex(self):
"""
Note
---
This method doesn't work well for label headers that contain underscores due to underscore
being a reserved character in LaTeX
Returns
---
string : A LaTeX string representing the model
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.latex()
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
| (self) | [
0.03907404839992523,
-0.034198690205812454,
0.09103043377399445,
-0.031707629561424255,
0.01012437790632248,
-0.0384334921836853,
-0.00098363496363163,
-0.02649419754743576,
0.06957173347473145,
-0.0013467291137203574,
0.03426986187696457,
-0.05423392727971077,
0.022277189418673515,
-0.012312951497733593,
-0.03512394055724144,
-0.021245179697871208,
0.05216990411281586,
-0.03775734454393387,
0.010293413884937763,
0.000054804699175292626,
-0.004401613492518663,
0.03636946901679039,
-0.005880679935216904,
-0.01612071320414543,
-0.018896466121077538,
-0.007344177458435297,
-0.012784473598003387,
-0.017303967848420143,
0.0017103792633861303,
-0.04765041172504425,
-0.03154749050736427,
0.006049715913832188,
-0.04181421548128128,
-0.0008307239040732384,
-0.03558656573295593,
0.02483942173421383,
0.00047013189760036767,
0.030568860471248627,
-0.010747143067419529,
-0.05302398279309273,
-0.032650671899318695,
-0.026102745905518532,
-0.03133397176861763,
-0.0414227619767189,
-0.06647570431232452,
-0.025266461074352264,
-0.01449262909591198,
0.04402058199048042,
-0.040141645818948746,
-0.02953684888780117,
0.004423854872584343,
-0.004684081766754389,
-0.0299283005297184,
-0.01731286384165287,
-0.08099502325057983,
0.011165284551680088,
0.012677714228630066,
0.020782554522156715,
0.056547053158283234,
0.000298871542327106,
0.007704491261392832,
0.08761412650346756,
0.0012722196988761425,
-0.008665328845381737,
-0.020764760673046112,
0.02654757723212242,
0.002871390897780657,
0.002902529202401638,
-0.032704055309295654,
-0.025124115869402885,
-0.07273893803358078,
-0.03651181608438492,
0.01686803251504898,
0.05010588467121124,
0.05309515446424484,
-0.057543475180864334,
-0.046867504715919495,
-0.10120819509029388,
0.023771826177835464,
-0.006063060835003853,
-0.04359354078769684,
-0.011530047282576561,
0.052063144743442535,
-0.03957226127386093,
0.016939204186201096,
-0.09587020426988602,
0.06110213324427605,
0.006045267917215824,
0.0189676396548748,
0.03217025473713875,
-0.011610116809606552,
-0.017188310623168945,
0.022188223898410797,
0.03348695859313011,
-0.03932315483689308,
0.03686768189072609,
0.04999912530183792,
0.013691931031644344,
-0.011592323891818523,
-0.03996371105313301,
0.03432324156165123,
0.07708050310611725,
-0.002399869030341506,
0.04156510904431343,
-0.04234801232814789,
-0.003469690214842558,
-0.021974703297019005,
0.026316264644265175,
0.02129855938255787,
-0.03925198316574097,
-0.06508782505989075,
0.02533763460814953,
0.04419851303100586,
-0.011165284551680088,
0.07049698382616043,
-0.10789846628904343,
-0.06416257470846176,
-0.03346916288137436,
-0.07729402184486389,
-0.015035323798656464,
-0.02405651845037937,
0.007442040368914604,
-0.062383249402046204,
-0.000029643886591657065,
-0.045372869819402695,
0.04864683374762535,
0.05113789439201355,
0.03642284870147705,
0.025462187826633453,
-0.06661804765462875,
0.026102745905518532,
0.015408982522785664,
-0.00000420939704781631,
0.019590403884649277,
0.05434068664908409,
-0.03186776861548424,
0.022366156801581383,
-0.008647534996271133,
0.011494460515677929,
0.04373588785529137,
0.007019449956715107,
-0.06462520360946655,
0.01634312979876995,
-0.018398255109786987,
0.01870073936879635,
0.017686523497104645,
-0.0063788918778300285,
0.008282773196697235,
-0.02126297354698181,
-0.03181438893079758,
0.02279319427907467,
-0.032846398651599884,
0.03960784897208214,
-0.024608109146356583,
0.0010153291514143348,
0.03273963928222656,
0.0010414631105959415,
-0.056902918964624405,
0.025871433317661285,
0.03323785215616226,
0.03736589476466179,
-0.010747143067419529,
-0.048219796270132065,
0.04825538396835327,
0.02015978842973709,
0.019394678995013237,
-0.04565756395459175,
-0.07451827079057693,
0.005960749462246895,
0.01483959797769785,
0.0038878321647644043,
-0.029857128858566284,
-0.06416257470846176,
0.05661822482943535,
0.014030002988874912,
0.045871082693338394,
0.03330902382731438,
0.12960627675056458,
-0.009599476121366024,
0.054376270622015,
0.03329123184084892,
0.05519476160407066,
-0.04576432332396507,
0.021814564242959023,
0.0017993457149714231,
-0.01836266741156578,
0.022490710020065308,
0.046226948499679565,
-0.009119057096540928,
-0.003371827071532607,
0.044981420040130615,
-0.011654600501060486,
0.005048844031989574,
0.00641003018245101,
0.011974879540503025,
-0.018736327067017555,
0.02564012072980404,
-0.01886088028550148,
-0.0025288702454417944,
0.0014501524856314063,
0.028647184371948242,
-0.010925075970590115,
0.03725913539528847,
0.044981420040130615,
-0.04067544266581535,
0.03526628762483597,
0.01830928772687912,
0.039287567138671875,
-0.09900182485580444,
-0.032899778336286545,
0.03188556432723999,
-0.004608460236340761,
-0.05836196616292,
0.050461750477552414,
0.03786410391330719,
-0.01017775759100914,
-0.04779275879263878,
0.013442824594676495,
-0.09345032274723053,
-0.022366156801581383,
0.005965197924524546,
0.021316353231668472,
0.05135141313076019,
0.012508677318692207,
0.015133187174797058,
-0.05971425771713257,
0.040283992886543274,
0.0031405144836753607,
0.006263235583901405,
-0.042988572269678116,
0.026761097833514214,
-0.05402040481567383,
0.01052472647279501,
0.01670789159834385,
0.005244569852948189,
0.009964237920939922,
-0.0018349322490394115,
-0.011538944207131863,
0.02284657582640648,
0.02090710774064064,
-0.022383948788046837,
0.010284516960382462,
-0.001512428978458047,
-0.05199197307229042,
0.03535525128245354,
0.016476579010486603,
0.032152462750673294,
0.0177043154835701,
-0.015062013640999794,
-0.018789706751704216,
-0.0009380396222695708,
-0.05124465376138687,
0.014795114286243916,
-0.028522631153464317,
-0.014288006350398064,
-0.0394299142062664,
0.00005838420838699676,
0.02629847265779972,
0.03354033827781677,
0.04370030388236046,
-0.034750282764434814,
0.007032794877886772,
-0.04854007437825203,
0.05647587776184082,
-0.009368163533508778,
-0.01855839416384697,
-0.016939204186201096,
0.017908938229084015,
0.0006160924094729125,
-0.002344264881685376,
0.05017705634236336,
0.04234801232814789,
-0.029412295669317245,
-0.005208983551710844,
0.02654757723212242,
-0.04565756395459175,
-0.025017354637384415,
0.03466131538152695,
-0.011405494064092636,
0.030319754034280777,
0.037792932242155075,
-0.07601290196180344,
0.014795114286243916,
0.041138067841529846,
-0.030942518264055252,
-0.01686803251504898,
-0.02854042500257492,
-0.030070647597312927,
0.013211512006819248,
-0.0011565634049475193,
-0.007188486400991678,
0.05622677132487297,
0.009421543218195438,
0.00017960094555746764,
0.01861177384853363,
-0.056653812527656555,
0.035248491913080215,
-0.04519493877887726,
-0.01483959797769785,
0.01930571161210537,
0.00039173022378236055,
0.012215088121592999,
0.02813117951154709,
-0.04316650331020355,
-0.04825538396835327,
0.010613692924380302,
0.028166767209768295,
0.003349585458636284,
0.026974616572260857,
0.023131268098950386,
-0.027259308844804764,
0.052917223423719406,
0.06181386485695839,
0.024963974952697754,
-0.012054949067533016,
0.00975071918219328,
0.020444482564926147,
-0.012490884400904179,
0.07572820782661438,
0.006049715913832188,
-0.05451861768960953,
0.026974616572260857,
-0.01152115035802126,
-0.026476403698325157,
0.0030915827956050634,
-0.024981768801808357,
0.025764673948287964,
-0.03288198634982109,
0.021565457805991173,
0.025978192687034607,
-0.009590579196810722,
-0.02120959199965,
0.05558621510863304,
-0.030017267912626266,
-0.023931965231895447,
-0.0090434355661273,
0.058041688054800034,
0.017766593024134636,
-0.054055992513895035,
-0.06259676814079285,
0.010622589848935604,
0.014768424443900585,
-0.01891425997018814,
0.02912760339677334,
0.021512078121304512,
0.018896466121077538,
-0.03651181608438492,
0.023326992988586426,
0.05039057508111,
0.05067526921629906,
-0.0718492716550827,
0.01389655377715826,
0.03886052966117859,
-0.009973134845495224,
-0.04167186841368675,
-0.00983078870922327,
0.001172132440842688,
0.06576397269964218,
-0.012989096343517303,
0.0010119929211214185,
0.040782202035188675,
-0.020266549661755562,
-0.0349104218184948,
0.04765041172504425,
0.018451634794473648,
-0.045728735625743866,
-0.040034886449575424,
0.07900217175483704,
0.07779223471879959,
0.004692978225648403,
-0.005822851788252592,
0.019981855526566505,
-0.02884291112422943,
-0.019679371267557144,
-0.020729174837470055,
0.07316597551107407,
-0.012997993268072605,
-0.011654600501060486,
-0.0409245491027832,
-0.07409122586250305,
0.020818140357732773,
-0.017579764127731323,
-0.001033122418448329,
-0.009866375476121902,
-0.03128059208393097,
-0.06818386167287827,
0.018051285296678543,
0.042739465832710266,
0.005329088307917118,
-0.027668554335832596,
0.04046192392706871,
-0.04668957367539406,
0.015551328659057617,
0.004773048218339682,
-0.02734827622771263,
-0.0493941530585289,
0.008153771981596947,
-0.002573353471234441,
-0.04864683374762535,
-0.001674792729318142,
0.027757521718740463,
0.005195638630539179,
-0.05483889579772949,
-0.03613815829157829,
0.0026778890751302242,
0.07345066964626312,
0.040390752255916595,
0.005360226612538099,
-0.03588905185461044,
0.018896466121077538,
0.0012477539712563157,
0.04245477169752121,
-0.04256153106689453,
-0.023362580686807632,
-0.027508415281772614,
0.03122721053659916,
0.038291145116090775,
0.03206349536776543,
0.004228128585964441,
-0.013976623304188251,
-0.026672130450606346,
0.038931701332330704,
0.0001342141767963767,
0.04409175366163254,
0.040639858692884445,
0.04601342976093292,
-0.018647359684109688,
-0.009421543218195438,
0.03925198316574097,
0.06092419847846031,
-0.08006977289915085,
-0.037294719368219376,
-0.03761500120162964,
-0.04160069301724434,
0.022739814594388008,
-0.03932315483689308,
-0.03697444126009941,
0.008060356602072716,
-0.059251632541418076,
0.031013691797852516,
0.022472916170954704,
0.022170430049300194,
0.032454948872327805,
-0.004973222501575947,
0.02763296850025654,
0.01565808802843094,
-0.017499692738056183,
-0.012401917949318886,
-0.08512306213378906,
-0.03377164900302887,
0.03410972282290459,
0.07750754058361053,
0.03900287672877312,
0.024910595268011093,
0.027419447898864746,
-0.05298839509487152,
0.030444307252764702,
-0.061386823654174805,
-0.004666288383305073,
0.039536673575639725,
-0.03647622838616371,
0.038540251553058624,
0.07014112174510956,
0.0757993832230568,
0.005369123071432114,
-0.07088843733072281,
0.049073874950408936,
0.03526628762483597,
-0.036689747124910355,
-0.05024823173880577,
0.0399281270802021,
-0.04320209100842476,
-0.003979022614657879,
-0.010969558730721474,
-0.060746267437934875,
0.05067526921629906,
-0.016352027654647827,
-0.019021019339561462,
-0.013878760859370232,
-0.03209908306598663,
0.010533623397350311,
-0.033807236701250076,
0.014288006350398064,
-0.02195691131055355,
-0.007971391081809998,
0.028362492099404335,
0.0009880831930786371,
0.005444744601845741,
-0.015702571719884872,
-0.02884291112422943,
-0.023878585547208786,
0.06711626052856445,
-0.0041925422847270966,
-0.04035516455769539,
0.02254408970475197,
0.013531791046261787,
0.007126209791749716,
0.022526295855641365,
-0.058148447424173355,
0.0098485816270113,
0.02140531875193119,
-0.013407238759100437,
0.03825555741786957,
-0.02099607326090336,
0.03307771310210228,
-0.012811163440346718,
0.04668957367539406,
0.028148973360657692,
0.005720540415495634,
-0.013887656852602959,
-0.04135159030556679,
-0.03204570338129997,
0.014421455562114716,
0.04615577682852745,
0.0010325664188712835,
0.014821804128587246,
-0.0016102921217679977,
0.041636280715465546,
0.022971127182245255,
0.06117330491542816,
-0.0022953334264457226,
-0.04167186841368675,
-0.014368075877428055,
-0.05622677132487297,
-0.003434103447943926,
0.0748029574751854,
-0.016627822071313858,
0.05811285972595215,
0.0056449188850820065,
0.029358915984630585,
0.03996371105313301,
-0.056902918964624405,
0.024821629747748375,
0.036654163151979446,
-0.04950091242790222,
0.04483907297253609,
-0.054305098950862885,
0.0014212384121492505,
0.0061564757488667965,
-0.0027001306880265474,
0.007931355386972427,
-0.0563691183924675,
-0.00627213204279542,
0.004915394354611635,
0.06700950115919113,
0.03261508792638779,
0.01791783608496189,
0.01623637042939663,
0.0013178150402382016,
0.02604936622083187,
-0.04384264722466469,
-0.018932051956653595,
-0.04309533163905144,
-0.010622589848935604,
0.030373133718967438,
0.06676039844751358,
0.0025333187077194452,
0.08206261694431305,
0.04565756395459175,
0.00918133370578289,
-0.034305449575185776,
-0.06462520360946655,
0.0698208436369896,
-0.027810901403427124,
0.02987492084503174,
0.029074223712086678,
-0.0668315663933754,
0.043522369116544724,
-0.01381648425012827,
-0.057258784770965576,
0.016449889168143272,
0.0189498458057642,
0.020391101017594337,
0.015782641246914864,
-0.07053257524967194,
0.03113824501633644,
-0.0026067160069942474,
0.051707278937101364,
-0.05811285972595215,
0.06512341648340225,
-0.0189676396548748,
-0.008305015042424202,
-0.007677801419049501,
0.012535367161035538,
-0.006868206895887852,
-0.045621976256370544,
0.01778438687324524,
-0.006432271562516689,
-0.012295158579945564,
-0.029412295669317245,
-0.06629776954650879,
-0.0016403181944042444,
0.02179677039384842,
0.0063788918778300285,
0.04295298457145691,
-0.017277278006076813,
-0.03186776861548424,
-0.014715044759213924,
0.006819275673478842,
-0.047081027179956436,
0.0067703439854085445,
0.0404263399541378,
0.008976710960268974,
0.031849976629018784,
0.030070647597312927,
0.0063966852612793446,
0.057650234550237656,
0.01601395383477211,
-0.018789706751704216,
-0.04754365235567093,
-0.028451459482312202,
0.0070594847202301025,
0.009759615175426006,
-0.030568860471248627,
-0.043522369116544724,
0.01921674609184265,
0.0003049879742320627,
-0.08490954339504242,
-0.03882494196295738,
-0.04569315165281296,
-0.008313911035656929,
0.030462099239230156,
-0.01767762564122677,
-0.011885913088917732,
-0.014154556207358837,
0.007931355386972427,
0.022917747497558594,
-0.08021211624145508,
0.017473002895712852,
-0.03288198634982109,
0.04056868329644203,
-0.01459049154073,
-0.02174339070916176,
-0.01291792280972004,
0.014750631526112556,
0.03603139892220497,
-0.019839510321617126,
0.03918080776929855,
-0.008220496587455273,
-0.004848669748753309,
-0.07821927219629288,
-0.00215409928932786,
-0.045621976256370544,
-0.01855839416384697,
0.011049628257751465,
0.02201029099524021,
-0.07309480756521225,
-0.028504839166998863,
0.04508817940950394,
-0.014750631526112556,
-0.03896728903055191,
0.016503268852829933,
-0.012321848422288895,
-0.03113824501633644,
0.008914434351027012,
0.03950108587741852,
-0.03588905185461044,
0.007864630781114101,
0.01781107671558857,
-0.025106322020292282,
-0.032401569187641144,
-0.055301520973443985,
0.041387174278497696,
0.0035986914299428463,
0.05298839509487152,
0.013371651992201805,
-0.011645703576505184,
-0.0341808944940567,
-0.03263287991285324,
-0.06700950115919113,
-0.04900269955396652,
0.04508817940950394,
-0.0331844724714756,
-0.07700932770967484,
-0.04633370786905289,
0.004848669748753309,
0.04654722660779953,
-0.042881812900304794,
0.0913151279091835,
0.00447278656065464,
0.04270387813448906,
0.02635185234248638,
-0.01604064367711544,
-0.023238027468323708,
0.013033579103648663,
-0.03686768189072609,
0.014804011210799217,
0.006823723670095205,
-0.019537024199962616,
-0.06875324249267578,
-0.07099519670009613,
0.04768599569797516,
0.025853639468550682,
0.02110283263027668,
0.06270352751016617,
-0.001344504882581532,
-0.0027090273797512054,
-0.018843086436390877,
0.012686610221862793,
0.0032539465464651585,
0.029768161475658417,
-0.013691931031644344,
-0.016939204186201096,
0.007926907390356064,
-0.031458523124456406,
0.003850021632388234,
0.014955254271626472,
0.03064003214240074,
-0.03871818259358406,
-0.05661822482943535,
0.013309375382959843,
0.048718009144067764,
0.023629479110240936,
0.008127082139253616,
0.004857566207647324,
-0.041387174278497696,
-0.025657912716269493,
0.0289318785071373,
0.01886088028550148,
-0.02959022857248783,
0.002851373516023159,
-0.011814739555120468,
0.04469672590494156,
0.03122721053659916,
0.002196358283981681,
0.06850413978099823,
-0.04266829043626785,
-0.04494583234190941,
0.025230875238776207,
-0.0009541647741571069,
0.05110230669379234,
0.06846854835748672,
-0.03583567216992378,
-0.05124465376138687,
-0.03565773740410805,
-0.027027996256947517,
-0.01623637042939663,
-0.0037944174837321043,
-0.011040732264518738,
-0.006365546956658363,
0.009052332490682602,
0.026921236887574196,
-0.001381203532218933,
0.002871390897780657,
0.07309480756521225,
0.0035786740481853485,
-0.00855856854468584,
0.08063915371894836,
0.0344122089445591,
-0.00912795402109623,
0.0354086309671402,
-0.008144875057041645,
0.021867943927645683,
-0.009706235490739346,
0.07515882700681686,
-0.007891320623457432,
0.022935541346669197,
-0.022383948788046837,
0.016352027654647827,
0.03136955574154854,
0.014634975232183933,
-0.05444744601845741,
-0.017819972708821297,
0.02779310755431652,
-0.000939707737416029,
-0.024661488831043243,
0.004750806372612715,
0.026654336601495743
] |
17,687 | imodels.tree.gosdt.pygosdt | leaves |
Returns
---
natural number : The number of terminal nodes present in this tree
| def leaves(self):
"""
Returns
---
natural number : The number of terminal nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.leaves()
else:
return self.tree_.get_n_leaves()
| (self) | [
0.0007060675416141748,
0.016765622422099113,
0.04741688445210457,
0.013105642981827259,
0.005335685331374407,
0.0369940847158432,
-0.0030985544435679913,
-0.021891308948397636,
0.043234050273895264,
0.011374223046004772,
0.019902748987078667,
-0.04217119887471199,
0.000013886642591387499,
-0.016782766208052635,
0.019097037613391876,
-0.015531343407928944,
0.022697018459439278,
-0.01784561760723591,
0.03361696004867554,
0.033205531537532806,
-0.052868280559778214,
0.01610562577843666,
0.04446832835674286,
-0.0417940579354763,
-0.030548404902219772,
-0.049131158739328384,
0.034165527671575546,
-0.01664562337100506,
0.05108543485403061,
0.03610266000032425,
-0.11513079702854156,
-0.020999884232878685,
-0.05523398518562317,
-0.02821698784828186,
0.008515668101608753,
0.039565496146678925,
0.0021867738105356693,
0.044365473091602325,
0.01139136590063572,
-0.010945654474198818,
-0.047862596809864044,
-0.02581700123846531,
-0.06575964391231537,
-0.015882769599556923,
-0.0033235533628612757,
-0.026279855519533157,
0.05410256236791611,
-0.01027708686888218,
-0.03353124484419823,
-0.03737122565507889,
-0.021634167060256004,
0.01569419912993908,
0.03507409244775772,
0.008845665492117405,
-0.03545123338699341,
0.01529991626739502,
0.039428357034921646,
-0.029622694477438927,
-0.001936060842126608,
0.00025807894417084754,
-0.01554848626255989,
0.05334828048944473,
0.027325564995408058,
-0.02129131183028221,
0.012291361577808857,
0.00820709764957428,
-0.04974829778075218,
0.04830830544233322,
-0.01051708497107029,
0.054411131888628006,
-0.006981390528380871,
-0.03915407136082649,
0.02734270691871643,
0.0782395750284195,
0.005871396511793137,
-0.04453689977526665,
0.0031221257522702217,
0.02249130606651306,
0.01801704429090023,
0.008039955981075764,
-0.021822737529873848,
0.017408477142453194,
0.039016928523778915,
0.04169119894504547,
0.051462575793266296,
-0.03361696004867554,
0.020862743258476257,
0.03365124389529228,
-0.0007778528961353004,
0.03963406756520271,
-0.04151977226138115,
0.0484454482793808,
0.03586266189813614,
-0.018942752853035927,
-0.0366855151951313,
0.0239141546189785,
-0.0060342526994645596,
-0.000567318347748369,
-0.0029356982558965683,
-0.08475381880998611,
0.010568513534963131,
0.12953071296215057,
-0.011134224943816662,
0.036856941878795624,
-0.045634035021066666,
0.012162790633738041,
-0.0511540062725544,
-0.018857039511203766,
0.003542123595252633,
0.003964263945817947,
-0.04556546360254288,
-0.0012439218116924167,
0.02998269349336624,
0.031679827719926834,
0.00796709954738617,
-0.022919874638319016,
-0.011991363018751144,
-0.020759886130690575,
-0.03946264088153839,
-0.047862596809864044,
0.0454283244907856,
0.049542587250471115,
-0.012179933488368988,
-0.04018263891339302,
0.01722847670316696,
0.0451197549700737,
0.03353124484419823,
0.025474146008491516,
-0.01338849775493145,
-0.03059983253479004,
0.08399953693151474,
0.0036964083556085825,
-0.007817099802196026,
0.019902748987078667,
0.01616562530398369,
-0.05067401006817818,
0.041005488485097885,
-0.00816852692514658,
-0.040285494178533554,
-0.018205614760518074,
0.031679827719926834,
0.006561392918229103,
0.026177000254392624,
-0.0009224949753843248,
-0.05094829201698303,
0.04361119121313095,
-0.0267769955098629,
-0.009385663084685802,
-0.005571397952735424,
-0.007435673847794533,
0.021068455651402473,
-0.058148253709077835,
0.02382844127714634,
-0.0016617766814306378,
0.016851335763931274,
0.006762820295989513,
0.0014442778192460537,
-0.0811881273984909,
0.00013794568076264113,
-0.05588540807366371,
-0.05156543105840683,
0.02749699167907238,
-0.010105659253895283,
-0.012822787277400494,
-0.026108428835868835,
0.035999804735183716,
-0.04841116443276405,
-0.023177016526460648,
-0.034234099090099335,
0.03617123141884804,
0.025714145973324776,
0.025731287896633148,
-0.06706248968839645,
0.01159707922488451,
-0.033822670578956604,
0.02758270688354969,
0.0034542668145149946,
0.03473123908042908,
-0.021068455651402473,
0.04121120274066925,
-0.025491289794445038,
-0.023931298404932022,
0.012865643948316574,
-0.023691298440098763,
0.04138262942433357,
-0.012582788243889809,
-0.033754102885723114,
0.03229696676135063,
-0.03740550950169563,
-0.008498525246977806,
-0.032708391547203064,
-0.03457695245742798,
0.02535414695739746,
0.015197060070931911,
0.018359899520874023,
-0.023228444159030914,
0.036479800939559937,
0.047142598778009415,
-0.01858275569975376,
-0.025611288845539093,
-0.04878830537199974,
-0.000242007605265826,
0.0174513328820467,
-0.013079928234219551,
-0.00029999835533089936,
0.025388432666659355,
-0.05218257009983063,
0.046834029257297516,
-0.044845469295978546,
-0.04162263125181198,
-0.014682777225971222,
0.0127885015681386,
-0.012754215858876705,
0.07570244371891022,
0.03514266386628151,
-0.07193103432655334,
-0.0475197397172451,
-0.013157070614397526,
-0.017074191942811012,
-0.032948389649391174,
-0.007444244809448719,
0.04638831689953804,
0.04223977029323578,
-0.025079863145947456,
-0.022217022255063057,
-0.0710396096110344,
0.0369940847158432,
0.0303769763559103,
0.03819407522678375,
-0.008189954794943333,
-0.017159905284643173,
-0.021702738478779793,
-0.017965616658329964,
-0.013294213451445103,
-0.005687111523002386,
0.02201130799949169,
-0.004889973439276218,
-0.03894835710525513,
-0.04049120843410492,
-0.021651310846209526,
-0.049302589148283005,
-0.05194257199764252,
-0.045874033123254776,
-0.021942736580967903,
0.02055417373776436,
0.021634167060256004,
0.021582739427685738,
0.0342855267226696,
-0.0012996357399970293,
-0.005408541765064001,
-0.012334218248724937,
-0.06713106483221054,
0.012968500144779682,
-0.01299421489238739,
0.047691166400909424,
-0.039016928523778915,
-0.019028468057513237,
0.026999851688742638,
0.03229696676135063,
0.026485569775104523,
0.04748545587062836,
-0.032879821956157684,
-0.018702754750847816,
0.08564524352550507,
-0.020691314712166786,
0.011854221113026142,
0.04014835134148598,
-0.021548453718423843,
-0.024565579369664192,
-0.005301399622112513,
0.06185109168291092,
-0.0008207097998820245,
-0.03166268393397331,
-0.043474048376083374,
-0.01227421872317791,
-0.07830814272165298,
-0.007594244088977575,
0.033754102885723114,
0.004525689408183098,
0.01913132332265377,
-0.00026999853434972465,
-0.041656915098428726,
-0.04793116822838783,
0.013457069173455238,
-0.054239705204963684,
-0.0011207081843167543,
-0.016954192891716957,
-0.024822721257805824,
-0.056159693747758865,
-0.032005541026592255,
0.028662700206041336,
-0.008455667644739151,
-0.02278273180127144,
0.03027411922812462,
0.07892528176307678,
-0.05156543105840683,
-0.006857105530798435,
-0.02039988897740841,
0.021548453718423843,
0.052799712866544724,
-0.01015708688646555,
-0.06185109168291092,
-0.04059406369924545,
-0.07213674485683441,
0.002485700650140643,
0.04138262942433357,
0.05300542339682579,
0.01259136013686657,
0.0366855151951313,
0.042616911232471466,
-0.03507409244775772,
0.04090263321995735,
0.04607974737882614,
0.01673133671283722,
-0.036136943846940994,
-0.03373695909976959,
0.042205482721328735,
-0.02581700123846531,
0.0068785338662564754,
0.01563419960439205,
-0.0038035507313907146,
0.05763396993279457,
-0.012737073004245758,
0.007864242419600487,
-0.006111395079642534,
0.01904560998082161,
0.045462608337402344,
0.008249955251812935,
0.02852555736899376,
-0.0010157087817788124,
-0.01967989280819893,
-0.04916544631123543,
0.05269685387611389,
-0.02670842595398426,
-0.07234246283769608,
0.004525689408183098,
0.07721100747585297,
0.048994019627571106,
-0.03562266379594803,
-0.021891308948397636,
0.002965698018670082,
0.005708540324121714,
-0.033359818160533905,
0.028182702139019966,
0.017657047137618065,
0.031594112515449524,
0.024291295558214188,
0.030634118244051933,
0.0592796765267849,
0.105873703956604,
-0.03898264467716217,
0.05722254514694214,
0.019645607098937035,
-0.005579969380050898,
0.0013178499648347497,
-0.014511349610984325,
0.024977006018161774,
0.054479703307151794,
0.010594227351248264,
0.03241696581244469,
0.03541694954037666,
-0.018771326169371605,
-0.02494272030889988,
0.026279855519533157,
0.005828539375215769,
-0.0188056118786335,
-0.010371372103691101,
0.051462575793266296,
0.04789688065648079,
-0.0607539527118206,
0.0035185522865504026,
-0.031508397310972214,
-0.03337696194648743,
-0.01721990667283535,
0.03548552095890045,
0.06010252982378006,
-0.039085499942302704,
-0.014477063901722431,
0.015437058173120022,
0.007795671466737986,
-0.07439959049224854,
-0.033119820058345795,
0.008498525246977806,
-0.04655974358320236,
-0.0000798879555077292,
0.0014217778807505965,
-0.03005126491189003,
-0.057359687983989716,
-0.002432129578664899,
0.008301382884383202,
0.008704238571226597,
0.031594112515449524,
-0.061336807906627655,
-0.00213213125243783,
-0.04878830537199974,
0.04748545587062836,
0.006462821736931801,
-0.03258839249610901,
0.023725584149360657,
-0.016534196212887764,
0.012865643948316574,
0.01299421489238739,
0.009822803549468517,
0.02033131755888462,
0.021805595606565475,
0.024205582216382027,
0.011982792057096958,
0.018308471888303757,
-0.004337118938565254,
-0.031919825822114944,
0.013559926301240921,
0.02024560421705246,
-0.015385630540549755,
0.004015692509710789,
0.0026506998110562563,
-0.06658249348402023,
0.08653666824102402,
0.04357690364122391,
0.07165674865245819,
-0.08077669888734818,
-0.012617073953151703,
0.018634183332324028,
0.030805544927716255,
0.07378245145082474,
0.039668355137109756,
0.009299948811531067,
-0.0355198048055172,
-0.009882803075015545,
0.015008489601314068,
0.02009131945669651,
-0.056399691849946976,
-0.05475398525595665,
-0.01139993779361248,
-0.03274267911911011,
-0.02727413736283779,
-0.02797698974609375,
-0.032502681016922,
-0.04439975693821907,
-0.029674123972654343,
0.05245685577392578,
0.01247136015444994,
0.059828244149684906,
0.056228265166282654,
0.007367102429270744,
0.06353107839822769,
-0.022748446092009544,
0.010868512094020844,
0.002601414453238249,
-0.04793116822838783,
-0.04700545594096184,
-0.03394267335534096,
-0.05537112429738045,
0.009882803075015545,
0.010894225910305977,
-0.017914187163114548,
-0.00014665098569821566,
-0.0715881809592247,
-0.014391349628567696,
0.0017164192395284772,
0.008464239537715912,
0.024257009848952293,
0.049131158739328384,
-0.007842814549803734,
0.0866738110780716,
-0.016354195773601532,
-0.05684540420770645,
0.026828425005078316,
-0.013628496788442135,
0.02057131566107273,
-0.016397053375840187,
0.06774820387363434,
-0.018068471923470497,
-0.06174823269248009,
-0.060376811772584915,
0.03217696771025658,
0.04566832259297371,
0.0278227049857378,
-0.06517678499221802,
-0.012342789210379124,
-0.03275981917977333,
-0.003132839919999242,
-0.012051362544298172,
0.0002836591738741845,
-0.03737122565507889,
-0.036239802837371826,
-0.00513854343444109,
-0.10361085832118988,
-0.0054128277115523815,
0.013422783464193344,
-0.01594276912510395,
-0.06774820387363434,
-0.0559539794921875,
-0.018137043341994286,
0.009068521670997143,
-0.008061384782195091,
-0.0014132065698504448,
0.06747391819953918,
-0.01889132522046566,
-0.023074159398674965,
-0.010928511619567871,
0.0007842814084142447,
0.045085467398166656,
0.05180542916059494,
-0.0069942474365234375,
-0.04429690167307854,
-0.0001726329792290926,
0.02264559082686901,
-0.005331399384886026,
0.01562562957406044,
-0.004945687018334866,
0.0242227241396904,
-0.03476552292704582,
0.05187400057911873,
0.06185109168291092,
-0.032091252505779266,
0.035348378121852875,
0.06366822123527527,
0.04662831500172615,
0.0835881158709526,
0.08441096544265747,
-0.016285624355077744,
-0.045874033123254776,
0.04703974351286888,
-0.038776930421590805,
-0.002969983732327819,
0.06582821160554886,
-0.007152818143367767,
0.00018522220489103347,
0.02312558703124523,
0.06774820387363434,
0.029622694477438927,
-0.024342723190784454,
0.015479915775358677,
0.014134208671748638,
-0.059039678424596786,
-0.017074191942811012,
0.004735688213258982,
-0.009342806413769722,
0.016877051442861557,
0.022697018459439278,
0.017245620489120483,
-0.11574793606996536,
0.02144559659063816,
0.04155405983328819,
-0.007504244800657034,
0.027291279286146164,
0.0652453601360321,
-0.0352112352848053,
0.03905121609568596,
0.003882835851982236,
-0.006685677915811539,
0.011099939234554768,
-0.013379926793277264,
-0.056468263268470764,
0.07693672180175781,
0.054719701409339905,
0.018205614760518074,
0.005892824847251177,
0.034079812467098236,
0.003314981935545802,
-0.019577035680413246,
-0.024291295558214188,
0.05365685001015663,
-0.011502793990075588,
0.042205482721328735,
-0.01374849583953619,
-0.06209108978509903,
0.030428405851125717,
-0.0012021362781524658,
0.025388432666659355,
-0.007709957659244537,
0.021428454667329788,
-0.010465657338500023,
-0.053279709070920944,
0.017914187163114548,
0.017742760479450226,
-0.04902830347418785,
0.0421026274561882,
-0.042274054139852524,
-0.03593123331665993,
-0.0011571365175768733,
0.00965137593448162,
-0.017639903351664543,
-0.0008314240258187056,
-0.01577991433441639,
0.046594031155109406,
-0.029759837314486504,
0.035896945744752884,
-0.07954242080450058,
0.049062587320804596,
-0.020691314712166786,
0.0022414163686335087,
0.000420801283326,
0.013988494873046875,
0.019114181399345398,
-0.009351377375423908,
-0.03155982866883278,
-0.023811297491192818,
-0.03138839825987816,
-0.01546277292072773,
0.03651408478617668,
0.01770847477018833,
-0.04453689977526665,
0.04943972826004028,
0.021239884197711945,
-0.03147411346435547,
0.027068423107266426,
0.059896815568208694,
-0.021548453718423843,
-0.013988494873046875,
0.02765127643942833,
-0.0054471129551529884,
0.018668469041585922,
-0.08756523579359055,
-0.050262581557035446,
0.0015932056121528149,
0.0017549904296174645,
-0.020674172788858414,
0.005125686060637236,
0.02679413929581642,
-0.007547101471573114,
-0.023177016526460648,
0.008425667881965637,
-0.007744243368506432,
-0.0314226858317852,
-0.007534244563430548,
-0.023382728919386864,
-0.0433369055390358,
-0.012008505873382092,
-0.021582739427685738,
0.02741127833724022,
-0.016251340508461,
-0.0037842649035155773,
-0.07021676003932953,
-0.003402838483452797,
-0.010628513060510159,
0.018874183297157288,
-0.03898264467716217,
-0.003550694789737463,
-0.01793133094906807,
-0.09106235951185226,
0.023468442261219025,
-0.04457118362188339,
-0.03253696486353874,
0.02701699547469616,
-0.03402838483452797,
-0.019542749971151352,
0.05307399481534958,
0.028079846873879433,
-0.0472111701965332,
0.023965584114193916,
0.0033835528884083033,
0.03402838483452797,
-0.0042599765583872795,
0.00767138646915555,
0.00017919544188771397,
0.04079977795481682,
0.03719979524612427,
-0.021497026085853577,
-0.03027411922812462,
-0.011742793023586273,
-0.0626053735613823,
0.0008099955739453435,
0.030222691595554352,
0.044365473091602325,
-0.002774984808638692,
0.0018042759038507938,
-0.0029999834951013327,
-0.0015760627575218678,
-0.03461124002933502,
-0.0051728286780416965,
0.00872566644102335,
0.04374833032488823,
-0.03166268393397331,
-0.027291279286146164,
-0.010731370188295841,
-0.007422816473990679,
0.03162840008735657,
0.09874231368303299,
0.0035785518120974302,
-0.005738540086895227,
0.0722053200006485,
-0.04998829960823059,
-0.03253696486353874,
0.06342822313308716,
0.011734221130609512,
-0.043954044580459595,
0.05077686533331871,
0.06452535837888718,
0.00016446338850073516,
-0.04628546163439751,
-0.04998829960823059,
0.05975967273116112,
0.07529101520776749,
-0.022817017510533333,
0.03449124097824097,
-0.02295416034758091,
0.02295416034758091,
-0.036479800939559937,
-0.0033535531256347895,
0.026399856433272362,
0.0025242718402296305,
-0.04817116633057594,
-0.012719930149614811,
-0.017879901453852654,
0.012239933013916016,
-0.04103977605700493,
0.015154202468693256,
-0.04079977795481682,
-0.03514266386628151,
-0.05283399671316147,
0.051291149109601974,
0.0046242605894804,
-0.06833105534315109,
-0.07357674092054367,
0.03306839242577553,
0.04789688065648079,
0.026005571708083153,
-0.024359866976737976,
-0.02502843365073204,
0.003897835733368993,
0.007062818389385939,
0.060856811702251434,
0.05458255857229233,
-0.03531409427523613,
0.022971302270889282,
0.011228510178625584,
-0.03771407902240753,
-0.00020450781448744237,
-0.029296983033418655,
0.024102725088596344,
0.01919989474117756,
-0.018154187127947807,
-0.03449124097824097,
-0.026468425989151,
-0.0052842567674815655,
0.02614271454513073,
-0.009231378324329853,
-0.01736561954021454,
-0.04357690364122391,
0.09030807763338089,
0.005824253894388676,
0.0046028317883610725,
-0.009771374985575676,
0.05636540427803993,
-0.010174229741096497,
-0.0034906952641904354,
0.09140521287918091,
0.01616562530398369,
-0.031182685866951942,
0.03346267342567444,
0.01738276146352291,
0.07131389528512955,
-0.05149685963988304,
0.003062126226723194,
0.035279806703329086,
0.027514135465025902,
-0.04038834944367409,
-0.029536981135606766,
0.006719963159412146,
0.03125125914812088,
-0.05437684431672096,
-0.0373026542365551,
0.024497009813785553,
0.027685562148690224,
0.05135972052812576,
-0.011888506822288036,
0.0027471277862787247
] |
17,688 | imodels.tree.gosdt.pygosdt | load |
Parameters
---
path : string
path to a JSON file representing a model
| def load(self, path):
"""
Parameters
---
path : string
path to a JSON file representing a model
"""
with open(path, 'r') as model_source:
result = model_source.read()
result = json.loads(result)
self.tree_ = TreeClassifier(result[0])
| (self, path) | [
0.02476983144879341,
0.0038474879693239927,
-0.021695315837860107,
0.0012039684224873781,
0.011316651478409767,
-0.0006079552113078535,
-0.0016849044477567077,
0.04464128240942955,
0.03849225118756294,
0.013844008557498455,
0.03350701555609703,
0.010621845722198486,
-0.04293900728225708,
-0.000744745135307312,
-0.04026400297880173,
-0.01048288494348526,
0.02046203427016735,
0.024040285497903824,
-0.025221455842256546,
0.008315959013998508,
-0.05325687676668167,
-0.011499037966132164,
-0.000758858397603035,
0.0672224760055542,
0.025898892432451248,
-0.05516759306192398,
-0.00003134768849122338,
0.01661454699933529,
0.037658482789993286,
-0.05127668008208275,
-0.026037853211164474,
0.0062445686198771,
-0.05416012182831764,
0.04394647479057312,
-0.04495394602417946,
0.0018249512650072575,
0.01966300792992115,
0.0318915918469429,
-0.09220074862241745,
-0.027062691748142242,
-0.029824545606970787,
-0.007742743939161301,
-0.030171947553753853,
-0.0019823682960122824,
-0.005658325739204884,
-0.01806495524942875,
0.0071738711558282375,
0.021903757005929947,
-0.00446412805467844,
-0.043286409229040146,
-0.0573909692466259,
0.002431820845231414,
-0.027670646086335182,
0.0451623871922493,
-0.05058187246322632,
-0.001157286111265421,
-0.016423474997282028,
0.03751952201128006,
0.048810116946697235,
0.03911757469177246,
0.019628267735242844,
0.01585894636809826,
0.016188979148864746,
0.01926349475979805,
-0.037484779953956604,
0.024613501504063606,
-0.03343753516674042,
0.010231017135083675,
-0.013427125290036201,
0.010413404554128647,
-0.0443633608520031,
0.00065843720221892,
0.07469163835048676,
0.07062702625989914,
0.059649091213941574,
0.013852693140506744,
-0.06829942762851715,
-0.06979325413703918,
0.006036126520484686,
0.06878578662872314,
-0.05270102992653847,
-0.028052790090441704,
0.022633302956819534,
-0.0328122116625309,
-0.06944585591554642,
-0.037866923958063126,
0.05825947970151901,
-0.050720833241939545,
-0.016397420316934586,
0.025360416620969772,
-0.062150392681360245,
0.05124193802475929,
-0.05610558018088341,
0.024509279057383537,
0.03279484063386917,
0.02567308023571968,
0.0796942412853241,
-0.02487405203282833,
0.005419486202299595,
-0.02516934461891651,
-0.005480282008647919,
0.04113251343369484,
-0.03720685839653015,
-0.02787908911705017,
-0.04286952689290047,
0.0073302024975419044,
-0.006531175691634417,
0.027826977893710136,
0.0213826522231102,
0.02437031827867031,
-0.05951013043522835,
0.023606032133102417,
0.023501811549067497,
0.06409584730863571,
0.039777640253305435,
-0.06517279893159866,
0.010561049915850163,
-0.00993572548031807,
-0.017196446657180786,
0.009605691768229008,
-0.0015090316301211715,
0.026750028133392334,
-0.019089793786406517,
0.04662147909402847,
0.0062011429108679295,
0.03995134308934212,
0.03388915956020355,
-0.031075196340680122,
0.025725189596414566,
-0.06558968126773834,
0.01875976100564003,
-0.009049847722053528,
-0.003593449480831623,
-0.010960564017295837,
0.04672570154070854,
-0.04255686327815056,
-0.04203575849533081,
-0.029859285801649094,
0.01057842094451189,
0.05728675052523613,
0.01343580987304449,
-0.013678992167115211,
0.07031436264514923,
-0.05530655384063721,
0.005575817544013262,
0.012506507337093353,
-0.03480977937579155,
-0.03949971869587898,
-0.0656244233250618,
0.011820386163890362,
0.011142950505018234,
-0.0031005714554339647,
0.035070329904556274,
0.007451793644577265,
0.013618196360766888,
-0.031370487064123154,
-0.0329338014125824,
-0.07163449376821518,
0.017283298075199127,
0.01867290958762169,
0.00737797049805522,
0.03317698463797569,
0.018238656222820282,
0.01283654011785984,
-0.03524403274059296,
0.012358861044049263,
-0.05103349685668945,
-0.03640783205628395,
-0.09101957827806473,
-0.006092579569667578,
-0.01655375212430954,
-0.028521783649921417,
-0.07538644224405289,
0.02046203427016735,
0.0017337579047307372,
-0.00735191535204649,
0.032846949994564056,
0.06260201334953308,
0.03609516844153404,
0.05568869784474373,
-0.018638169392943382,
0.02476983144879341,
-0.004157979506999254,
-0.0035435103345662355,
0.0074083684012293816,
0.0019508848199620843,
0.02145213447511196,
0.02991139516234398,
0.05409064143896103,
0.04523186758160591,
0.037172116339206696,
0.013062351383268833,
0.042800046503543854,
0.005849397741258144,
0.044988684356212616,
-0.04665621742606163,
0.027132172137498856,
-0.028643375262618065,
-0.054715968668460846,
0.08956048637628555,
0.024109765887260437,
-0.03128363937139511,
0.05669616535305977,
-0.011073470115661621,
-0.023501811549067497,
0.02556885965168476,
-0.03369808942079544,
0.0674656555056572,
-0.01711828075349331,
-0.028712855651974678,
-0.007938157767057419,
-0.012272009626030922,
0.027965938672423363,
0.03953445702791214,
0.05940590798854828,
-0.051832523196935654,
-0.07274617999792099,
0.011516408994793892,
-0.00312228430993855,
-0.06871630996465683,
0.029963506385684013,
0.09400724619626999,
-0.047802649438381195,
-0.006548546254634857,
-0.054542265832424164,
-0.05033868923783302,
-0.0009466730989515781,
-0.025916261598467827,
-0.018725020810961723,
-0.01575472392141819,
0.024908792227506638,
-0.05909324437379837,
0.03157893195748329,
-0.042105238884687424,
-0.004798503592610359,
-0.005180646665394306,
0.015059919096529484,
0.028157010674476624,
-0.05436856672167778,
-0.01955878734588623,
0.0164669007062912,
-0.05488967150449753,
-0.04123673215508461,
-0.09928777068853378,
0.023692883551120758,
0.03088412433862686,
0.03564354404807091,
-0.04815005138516426,
-0.008871803060173988,
-0.03811010718345642,
0.029077628627419472,
0.03239532560110092,
0.002062705112621188,
0.060830261558294296,
0.007686290889978409,
-0.08893515914678574,
0.03401074931025505,
-0.06395688652992249,
0.03491399809718132,
0.013678992167115211,
-0.04342537000775337,
-0.06294941902160645,
0.04154939576983452,
0.12416182458400726,
-0.05867636203765869,
-0.04245264455676079,
-0.01619766280055046,
0.011299281381070614,
0.04453705996274948,
-0.0677783191204071,
0.0717734545469284,
0.0401250422000885,
0.01756121963262558,
-0.030276170000433922,
-0.0011247171787545085,
-0.06923741102218628,
-0.05384746193885803,
0.0032156486995518208,
-0.013713732361793518,
0.05478544905781746,
0.010291812941432,
-0.06274097412824631,
0.017448313534259796,
0.014521444216370583,
-0.05951013043522835,
-0.045891933143138885,
-0.008220423012971878,
0.0019009456736966968,
-0.0451623871922493,
-0.022911226376891136,
0.018985573202371597,
0.011394817382097244,
-0.03482714667916298,
-0.0068221259862184525,
0.04234842211008072,
-0.08511372655630112,
-0.04693414270877838,
0.012002772651612759,
0.025447268038988113,
0.02298070676624775,
-0.0034436320420354605,
-0.02890392765402794,
0.05732148885726929,
-0.05996175482869148,
0.009093272499740124,
-0.0050416854210197926,
0.005727806594222784,
-0.02417924627661705,
-0.05002602934837341,
0.04818479344248772,
0.0021365282591432333,
0.03239532560110092,
0.03567828610539436,
0.05568869784474373,
-0.027149543166160583,
0.0025946658570319414,
0.019228754565119743,
-0.0050416854210197926,
0.06176824867725372,
-0.014478018507361412,
-0.05224940553307533,
0.050616614520549774,
-0.049018558114767075,
0.003964736592024565,
0.008315959013998508,
0.0019432853441685438,
0.06392214447259903,
0.0337328277528286,
-0.0006046983180567622,
0.002848704345524311,
0.017804402858018875,
0.0021636690944433212,
0.05620980262756348,
0.0038431454449892044,
-0.025134604424238205,
0.009779393672943115,
0.01867290958762169,
-0.007716688327491283,
0.004164493177086115,
0.008893515914678574,
0.07448320090770721,
-0.03310750424861908,
-0.018117064610123634,
0.02338021993637085,
0.01499912329018116,
0.020844178274273872,
0.03314224258065224,
0.00534566305577755,
0.0473162867128849,
-0.002336285077035427,
-0.06479065120220184,
0.026541586965322495,
0.007495219353586435,
0.053430575877428055,
-0.0717734545469284,
-0.01585894636809826,
-0.0010199534008279443,
0.031075196340680122,
-0.01445196382701397,
-0.05645298212766647,
-0.0009645860409364104,
-0.018916090950369835,
-0.08004164695739746,
0.0022516055032610893,
0.029963506385684013,
-0.02608996257185936,
0.00627062376588583,
0.025308307260274887,
0.034566596150398254,
0.00323519017547369,
0.012975500896573067,
-0.012315435335040092,
-0.022303270176053047,
0.0361299104988575,
0.02266804315149784,
0.02638525515794754,
-0.008255163207650185,
-0.0013244738802313805,
-0.009588321670889854,
0.031040456146001816,
-0.010856342501938343,
0.00842452235519886,
0.01924612559378147,
-0.03689419478178024,
0.030623571947216988,
-0.05207570642232895,
0.02928606979548931,
0.012254639528691769,
-0.026923730969429016,
-0.028452303260564804,
0.0008723071659915149,
-0.04877537861466408,
-0.019940931349992752,
0.001674048020504415,
-0.0031700520776212215,
0.005601873155683279,
-0.0038692005909979343,
0.017613330855965614,
-0.02296333573758602,
0.02718428336083889,
-0.0056626684963703156,
-0.03390653058886528,
0.014226151630282402,
0.040576666593551636,
-0.02016674168407917,
0.022650673985481262,
0.019437195733189583,
0.05134616047143936,
-0.0172659270465374,
-0.037971146404743195,
0.042591605335474014,
0.043286409229040146,
-0.02306755818426609,
0.013956914655864239,
-0.03699841722846031,
0.05096401646733284,
0.06333155930042267,
-0.0337328277528286,
-0.009753338061273098,
0.007373628206551075,
-0.018082324415445328,
0.09039425104856491,
0.02146950364112854,
-0.01710091158747673,
0.0068177832290530205,
0.030224058777093887,
0.01093450840562582,
0.034861888736486435,
0.04394647479057312,
0.03804062679409981,
-0.04220946133136749,
-0.012185159139335155,
-0.0069176615215837955,
-0.06854260712862015,
-0.0003186336543876678,
-0.0022668044548481703,
-0.030779903754591942,
-0.039986081421375275,
0.00013991112064104527,
0.026333145797252655,
-0.03904809430241585,
0.027114801108837128,
0.04707310348749161,
-0.027948569506406784,
-0.026333145797252655,
-0.03468818590044975,
-0.027618536725640297,
0.04061140865087509,
0.005749518983066082,
-0.061142921447753906,
-0.027375353500247,
0.022007977589964867,
0.06232409179210663,
-0.0172659270465374,
0.020496774464845657,
-0.02398817613720894,
0.017005374655127525,
0.004459785763174295,
0.048427972942590714,
0.026124702766537666,
-0.034566596150398254,
-0.02459613047540188,
0.08372411876916885,
-0.02457875944674015,
0.009431990794837475,
-0.01651032641530037,
0.028869187459349632,
0.041688356548547745,
-0.0337328277528286,
-0.054820187389850616,
0.03946497663855553,
-0.01565050333738327,
-0.019801968708634377,
-0.042070500552654266,
-0.043390631675720215,
0.04783738777041435,
0.03678997606039047,
-0.06326208263635635,
-0.004320824518799782,
-0.05857213959097862,
0.03142260015010834,
-0.08330723643302917,
0.01575472392141819,
0.023536551743745804,
0.003682471578940749,
0.008389782160520554,
-0.0056930663995444775,
-0.018394988030195236,
0.04787212982773781,
-0.06948059797286987,
-0.042278941720724106,
0.03239532560110092,
-0.015085973776876926,
0.02067047730088234,
0.029824545606970787,
0.014443278312683105,
-0.024717722088098526,
0.018499208614230156,
-0.012567302212119102,
-0.014660404995083809,
0.027653276920318604,
-0.00769931823015213,
0.008064091205596924,
-0.025725189596414566,
-0.01013548206537962,
0.06107344105839729,
0.01846446841955185,
-0.009423305280506611,
-0.02596837282180786,
-0.00046980823390185833,
-0.01038734894245863,
0.01671876758337021,
0.0086329635232687,
0.020739957690238953,
-0.0076949759386479855,
0.04286952689290047,
0.00034957422758452594,
0.06503383815288544,
-0.013079721480607986,
0.04582245275378227,
0.0209831390529871,
-0.056939348578453064,
0.0717039704322815,
-0.05325687676668167,
-0.020340444520115852,
0.024804571643471718,
-0.011360077187418938,
0.007312832400202751,
0.05530655384063721,
0.07663709670305252,
0.04422440007328987,
-0.0409240685403347,
-0.004351222421973944,
0.035574063658714294,
-0.0013212169287726283,
-0.011099524796009064,
0.04464128240942955,
-0.016423474997282028,
-0.022511713206768036,
-0.029042888432741165,
0.02035781368613243,
-0.07184293121099472,
-0.014217467047274113,
0.04867115616798401,
0.048810116946697235,
-0.006005729082971811,
-0.006531175691634417,
-0.0015502857277169824,
0.00529355276376009,
0.027531685307621956,
0.011038729920983315,
-0.03289906308054924,
-0.0733715072274208,
-0.004937464836984873,
0.07406631112098694,
-0.007768799085170031,
-0.00764720793813467,
-0.04919226095080376,
0.03553932532668114,
-0.008672046475112438,
0.025238826870918274,
-0.003519626334309578,
0.0013689848128706217,
0.03904809430241585,
0.03501822054386139,
0.04266108572483063,
-0.0818481370806694,
0.059544868767261505,
-0.030623571947216988,
-0.04905330017209053,
0.05756467208266258,
0.00632273405790329,
0.014365113340318203,
0.01766544207930565,
-0.03491399809718132,
0.019280865788459778,
-0.004253515042364597,
0.045405566692352295,
-0.03197844326496124,
0.005901508033275604,
0.01294076070189476,
0.008011980913579464,
0.00036287325201556087,
0.025308307260274887,
-0.010673956014215946,
-0.03491399809718132,
0.02167794480919838,
0.04735102504491806,
0.04613511636853218,
-0.011238486506044865,
0.02235538139939308,
-0.012914705090224743,
0.0028117927722632885,
0.02035781368613243,
0.023414960131049156,
-0.004184034653007984,
-0.030171947553753853,
-0.0531526543200016,
-0.030258798971772194,
-0.018690280616283417,
-0.025620969012379646,
-0.012723634019494057,
-0.014278261922299862,
0.003306841943413019,
-0.033263836055994034,
-0.00030859155231155455,
0.007338888011872768,
0.0055627902038395405,
-0.01581552065908909,
0.01966300792992115,
0.02758379653096199,
-0.03599094972014427,
0.008693759329617023,
-0.02457875944674015,
-0.00426437146961689,
0.0015817692037671804,
0.01579814963042736,
-0.05165882036089897,
-0.006327076815068722,
-0.0024535334669053555,
0.03640783205628395,
0.001288647879846394,
0.038388028740882874,
-0.0017294153803959489,
-0.03352438658475876,
-0.006222855765372515,
-0.010951878502964973,
-0.05506337061524391,
-0.014295632019639015,
-0.02787908911705017,
0.055514995008707047,
-0.08511372655630112,
-0.015337841585278511,
-0.02708006091415882,
-0.011620629578828812,
-0.03609516844153404,
0.010899768210947514,
-0.0077905114740133286,
0.010074686259031296,
-0.015789465978741646,
-0.10533258318901062,
-0.035452473908662796,
-0.06093448027968407,
-0.0029138424433767796,
-0.03359386697411537,
-0.03599094972014427,
-0.055341292172670364,
0.04703836143016815,
0.030363019555807114,
0.016545066609978676,
-0.013566086068749428,
-0.004112382885068655,
-0.008767582476139069,
0.03010246716439724,
0.03418445214629173,
0.003437118139117956,
0.03710263594985008,
-0.005271839909255505,
0.026124702766537666,
0.03981238231062889,
-0.03831854835152626,
0.013583456166088581,
0.026558957993984222,
0.047802649438381195,
0.038770172744989395,
-0.01585894636809826,
-0.006500778254121542,
-0.025325676426291466,
0.00612297747284174,
0.014625664800405502,
-0.049122780561447144,
-0.01264546811580658,
0.0344102643430233,
-0.029737694188952446,
-0.020514145493507385,
-0.02047940529882908,
0.02047940529882908,
-0.03571302443742752,
0.09810660034418106,
0.03831854835152626,
-0.014295632019639015,
0.07955528050661087,
0.03491399809718132,
-0.010196276940405369,
0.008368069306015968,
0.06923741102218628,
-0.019332975149154663,
0.04887959733605385,
0.0393260158598423,
-0.01815180480480194,
-0.05680038779973984,
0.029320809990167618,
-0.011299281381070614,
-0.008398466743528843,
-0.010265758261084557,
0.02329336851835251,
0.005532392300665379,
-0.045197125524282455,
-0.02006252110004425,
0.01098661869764328,
0.054125383496284485,
-0.04029874503612518,
-0.03168315067887306,
-0.04262634366750717,
-0.003960393834859133,
0.016188979148864746,
-0.052214667201042175,
0.030449870973825455,
-0.053534798324108124,
-0.08650334179401398,
0.024804571643471718,
0.018846610561013222,
0.03008509799838066,
-0.005180646665394306,
0.03498347848653793,
0.06486013531684875,
-0.04658673703670502,
0.028417563065886497,
-0.010613161139190197,
-0.03585198521614075,
-0.0047898185439407825,
-0.016927210614085197,
0.004928779788315296,
0.058537401258945465,
0.03338542580604553,
0.012775744311511517,
-0.00027955081895925105,
-0.03776270151138306,
0.006379187107086182,
-0.0050720833241939545,
0.0127496886998415,
0.027444835752248764,
-0.05548025295138359,
-0.05680038779973984,
-0.058537401258945465,
-0.0733715072274208,
0.006743960082530975,
0.03814484551548958,
0.04943544417619705,
0.026107333600521088,
0.003969078883528709,
-0.0017706694779917598,
-0.03243006765842438,
0.0104307746514678,
-0.013062351383268833,
-0.023328108713030815,
0.03682471439242363,
0.03402812033891678,
-0.0329338014125824,
0.031335748732089996,
0.021191582083702087,
0.01670139841735363,
0.034149713814258575,
0.05485492944717407,
0.030536720529198647,
-0.00446412805467844,
0.014191411435604095,
-0.010865028016269207,
0.011472983285784721,
-0.06468643248081207,
-0.019298234954476357,
-0.10602738708257675,
-0.002349312650039792,
-0.03423656150698662,
0.06360948085784912,
0.03619939088821411,
0.04054192826151848,
0.008042379282414913
] |
17,689 | imodels.tree.gosdt.pygosdt | max_depth |
Returns
---
natural number : the length of the longest decision path in this tree. A single-node tree
will return 1.
| def max_depth(self):
"""
Returns
---
natural number : the length of the longest decision path in this tree. A single-node tree
will return 1.
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.maximum_depth()
else:
return self.tree_.get_depth()
| (self) | [
0.031173333525657654,
0.03051159344613552,
0.030654672533273697,
0.022678019478917122,
-0.008361178450286388,
0.0023540963884443045,
0.016910146921873093,
-0.010981312021613121,
0.006952744442969561,
0.004963052459061146,
0.020424526184797287,
-0.030797751620411873,
-0.054942332208156586,
-0.024806318804621696,
0.03421376273036003,
0.0034786078613251448,
0.01704428344964981,
-0.024108808487653732,
0.028132906183600426,
0.052509989589452744,
0.0006198226474225521,
0.054441556334495544,
-0.0010971252340823412,
-0.04149290546774864,
-0.026415957137942314,
-0.0077933333814144135,
0.03467876836657524,
0.01838565059006214,
0.019941633567214012,
-0.004180589225143194,
-0.11975711584091187,
-0.022463401779532433,
-0.031334299594163895,
0.012260080315172672,
-0.009908219799399376,
0.02487785927951336,
-0.022213011980056763,
0.04721606522798538,
-0.0781211256980896,
-0.0800526961684227,
-0.07568878680467606,
-0.012125943787395954,
-0.07411491870880127,
0.0006958333542570472,
-0.02020990662276745,
-0.030332745984196663,
0.010113895870745182,
0.023518608883023262,
-0.055156949907541275,
-0.05544310808181763,
-0.0008277343004010618,
-0.03235373646020889,
0.01564926467835903,
0.006255234591662884,
-0.05390501022338867,
0.02167646586894989,
0.010838232934474945,
-0.03339105844497681,
0.024859974160790443,
-0.04263753816485405,
-0.012295850552618504,
0.008392476476728916,
0.01978066936135292,
-0.03169199451804161,
-0.034160107374191284,
0.016471968963742256,
-0.04997033625841141,
0.060379333794116974,
-0.028061365708708763,
0.06527978926897049,
-0.05129381641745567,
-0.028168676421046257,
0.01738409698009491,
0.03684283792972565,
0.0005309571861289442,
-0.020317215472459793,
-0.024931512773036957,
-0.014531459659337997,
0.05694543570280075,
0.018367765471339226,
-0.04446179419755936,
0.002910763258114457,
0.06728289276361465,
-0.024484392255544662,
-0.008951378986239433,
-0.02058548852801323,
0.05390501022338867,
0.010552075691521168,
0.023303989320993423,
0.01620369590818882,
-0.03140583634376526,
0.029062919318675995,
0.04199368134140968,
0.007189719006419182,
-0.025199785828590393,
0.034321073442697525,
0.014495689421892166,
0.01458511408418417,
0.012099117040634155,
-0.09564830362796783,
-0.009523695334792137,
0.08520353585481644,
0.00464112451300025,
0.015327336266636848,
-0.04399678856134415,
-0.0032774030696600676,
-0.029688889160752296,
0.02074645273387432,
-0.018636038526892662,
-0.007538474164903164,
-0.050864581018686295,
-0.0014095515944063663,
0.03449992090463638,
0.0657447949051857,
0.017607657238841057,
-0.007511646952480078,
-0.043674860149621964,
-0.038237858563661575,
-0.009398501366376877,
-0.009559464640915394,
0.020853761583566666,
0.03433895856142044,
-0.029778314754366875,
-0.0656374841928482,
-0.0185108445584774,
0.05555041506886482,
0.02723866142332554,
0.003854190232232213,
-0.02074645273387432,
-0.0034942571073770523,
0.05433424562215805,
0.0015895181568339467,
-0.0010552075691521168,
0.027936171740293503,
0.03877440467476845,
-0.030243320390582085,
0.01699957251548767,
-0.0021931326482445,
-0.03934672102332115,
-0.005262624006718397,
0.014549344778060913,
-0.0072746723890304565,
0.047752611339092255,
-0.050399571657180786,
0.013413654640316963,
0.05644465982913971,
0.011678822338581085,
0.020013174042105675,
-0.01670447178184986,
0.009720428846776485,
-0.002579892985522747,
-0.04403255879878998,
0.03888171538710594,
-0.017276788130402565,
0.06077279895544052,
0.014093279838562012,
-0.024502277374267578,
-0.06406361609697342,
0.020639143884181976,
-0.06388476490974426,
-0.03253258392214775,
0.003867603838443756,
-0.038702864199876785,
-0.0082896389067173,
0.014933869242668152,
0.01310961227864027,
-0.043031007051467896,
-0.010900829918682575,
-0.03891748562455177,
0.053511541336774826,
0.006349130067974329,
0.03088717721402645,
-0.039418261498212814,
-0.007525060325860977,
-0.03641360253095627,
0.05043534189462662,
0.011580455116927624,
0.02516401745378971,
0.008097376674413681,
0.09865295886993408,
-0.03762977197766304,
0.0057410444132983685,
0.020192021504044533,
-0.00797218270599842,
0.04403255879878998,
0.022409746423363686,
0.011133333668112755,
0.0404198132455349,
-0.04954110085964203,
0.016489854082465172,
-0.03101237118244171,
0.009139169938862324,
0.07032332569360733,
-0.021515503525733948,
0.020925302058458328,
-0.018707577139139175,
0.05308230593800545,
0.03387394919991493,
0.049898795783519745,
0.015524069778621197,
-0.029116574674844742,
0.015971191227436066,
0.0345178060233593,
-0.007663668133318424,
0.010820348747074604,
0.061595503240823746,
-0.04006211459636688,
0.035376280546188354,
-0.01699957251548767,
0.002165187383070588,
-0.05644465982913971,
0.03244316205382347,
0.005727630574256182,
0.040348272770643234,
0.010337457060813904,
-0.07962345331907272,
-0.026290763169527054,
-0.0008310877019539475,
-0.027220778167247772,
-0.0003903932520188391,
-0.001051295199431479,
0.04188637435436249,
0.05379769951105118,
0.008660749532282352,
-0.005866238381713629,
-0.08370120823383331,
0.004169411025941372,
0.024842089042067528,
0.011043909005820751,
-0.0390605628490448,
-0.02718500792980194,
-0.047037217766046524,
0.021068381145596504,
0.024055154994130135,
0.02012048289179802,
0.03639571741223335,
-0.01628417707979679,
-0.023554379120469093,
-0.07264835387468338,
0.00799900945276022,
-0.03206757828593254,
-0.061380885541439056,
-0.038953255861997604,
-0.010748809203505516,
-0.022874753922224045,
0.008808299899101257,
0.02155127190053463,
-0.005817055236548185,
0.04878993332386017,
-0.025700563564896584,
-0.02428765781223774,
-0.046572212129831314,
-0.045892585068941116,
-0.017983241006731987,
0.0112138157710433,
-0.02718500792980194,
-0.019709130749106407,
-0.0141379926353693,
0.008741231635212898,
0.018797002732753754,
0.011410549283027649,
-0.0044846320524811745,
-0.05458463355898857,
0.11110083013772964,
-0.05590811371803284,
-0.03047582507133484,
0.02664846181869507,
-0.057088516652584076,
-0.020943187177181244,
0.002132771071046591,
0.12211791425943375,
0.028776761144399643,
-0.015050120651721954,
-0.04642913118004799,
-0.02723866142332554,
-0.0918567106127739,
0.005432530306279659,
0.024108808487653732,
-0.027256546542048454,
0.014674538746476173,
-0.016141097992658615,
-0.055621955543756485,
-0.023286106064915657,
0.013136439956724644,
-0.08563277125358582,
0.01687437854707241,
-0.02711346745491028,
-0.031155450269579887,
-0.05390501022338867,
0.01906527578830719,
0.01696380227804184,
0.005155314691364765,
0.0010881827911362052,
0.06095165014266968,
0.0847027599811554,
-0.07397183775901794,
0.03312278538942337,
-0.031334299594163895,
0.031709879636764526,
0.024842089042067528,
-0.02046029455959797,
-0.041314058005809784,
0.017437752336263657,
-0.054691944271326065,
0.0334983691573143,
0.0364493727684021,
0.014209532178938389,
-0.02723866142332554,
0.04138559848070145,
0.06570902466773987,
-0.030457939952611923,
0.03669976070523262,
0.023464953526854515,
0.005052476655691862,
-0.03022543527185917,
-0.03038639947772026,
0.023178795352578163,
-0.06535132974386215,
-0.002828045515343547,
0.03233585134148598,
-0.020388755947351456,
0.06127357482910156,
-0.01233161985874176,
-0.031244874000549316,
-0.03269354999065399,
-0.010426880791783333,
0.04743068292737007,
0.010507362894713879,
0.018206801265478134,
-0.01481761783361435,
-0.04317408427596092,
-0.014763963408768177,
0.06789097934961319,
-0.00424095056951046,
-0.03364144638180733,
0.03187084570527077,
0.07161103188991547,
0.016606105491518974,
-0.006062971893697977,
-0.0004063219530507922,
0.017106881365180016,
0.021372424438595772,
-0.01931566372513771,
0.004278955981135368,
0.009550522081553936,
0.03573397547006607,
0.04628605395555496,
0.03140583634376526,
0.04914763197302818,
0.06821290403604507,
-0.042315609753131866,
-0.02711346745491028,
0.0009233065648004413,
-0.014021740294992924,
-0.07511647045612335,
-0.013726640492677689,
0.025324979797005653,
0.05079304054379463,
0.007399866357445717,
0.028544258326292038,
-0.007587657310068607,
-0.003407068317756057,
-0.043746400624513626,
0.04413986578583717,
0.026111915707588196,
-0.008307524025440216,
-0.0037848863285034895,
0.01826045662164688,
0.06306206434965134,
-0.05122227594256401,
-0.016221581026911736,
-0.019762784242630005,
0.03677130118012428,
0.006899090018123388,
0.03163834288716316,
0.09035438299179077,
-0.03038639947772026,
0.015094833448529243,
0.039418261498212814,
0.008379063569009304,
-0.029098689556121826,
-0.020943187177181244,
0.00744010740891099,
-0.05236690863966942,
0.0008098494145087898,
-0.02301783114671707,
-0.03959710896015167,
-0.025396520271897316,
-0.0224812850356102,
-0.020907416939735413,
0.0165792778134346,
-0.00041470551514066756,
-0.035215314477682114,
-0.01733938418328762,
-0.03841670975089073,
0.03877440467476845,
0.005973547697067261,
0.00615686783567071,
0.0011189223732799292,
-0.011052851565182209,
0.007645783480256796,
0.03473242372274399,
0.008173387497663498,
-0.0010239089606329799,
0.02945638634264469,
0.027810977771878242,
0.05097188800573349,
0.0786934420466423,
-0.03399914503097534,
-0.05884123221039772,
0.012698260135948658,
0.012474698945879936,
-0.03412433713674545,
0.015139545314013958,
0.004721606615930796,
-0.05812583863735199,
0.06467170268297195,
0.05744621157646179,
0.0781211256980896,
-0.05623004212975502,
-0.0049049267545342445,
0.02870522253215313,
-0.0032371620181947947,
0.021122034639120102,
0.009335903450846672,
0.003963734954595566,
-0.0282759852707386,
0.012295850552618504,
-0.001002111821435392,
0.02689884975552559,
-0.07064525038003922,
-0.02512824721634388,
-0.009845622815191746,
-0.028937725350260735,
-0.03480396419763565,
-0.02024567686021328,
-0.04385371133685112,
-0.014495689421892166,
-0.02917022816836834,
0.016060616821050644,
0.004415328148752451,
0.0156134944409132,
0.017616599798202515,
0.03873863443732262,
0.04664374887943268,
-0.030583133921027184,
0.03305124491453171,
-0.029223883524537086,
-0.023840535432100296,
-0.0455348864197731,
0.0036015664227306843,
-0.04002634808421135,
0.01102602481842041,
0.024055154994130135,
-0.000548283162061125,
0.00951475277543068,
-0.05150843411684036,
0.01784016191959381,
0.023804767057299614,
-0.01519319973886013,
0.019136814400553703,
0.03784439340233803,
0.051150739192962646,
0.05344000086188316,
-0.049934566020965576,
-0.027256546542048454,
0.015139545314013958,
-0.006943801883608103,
0.006273119244724512,
-0.07583186030387878,
0.0736856758594513,
0.011580455116927624,
-0.0663171112537384,
-0.028758876025676727,
-0.0023585676681250334,
0.021372424438595772,
0.05884123221039772,
-0.045177191495895386,
0.012966533191502094,
-0.016015904024243355,
0.025575369596481323,
-0.02335764467716217,
-0.013708755373954773,
-0.043746400624513626,
-0.039883267134428024,
-0.022087818011641502,
-0.1196855753660202,
0.017983241006731987,
-0.007574243936687708,
0.003728996030986309,
-0.04149290546774864,
-0.037772852927446365,
-0.017732851207256317,
0.029474271461367607,
0.0112406425178051,
0.007560830097645521,
0.06281167268753052,
-0.02071068249642849,
-0.011777189560234547,
-0.009622061625123024,
-0.019977403804659843,
0.004035274498164654,
0.026022490113973618,
-0.026845194399356842,
-0.02951004169881344,
0.01906527578830719,
0.022409746423363686,
-0.01256412360817194,
-0.0020791166462004185,
0.03222854062914848,
0.023679573088884354,
-0.026880964636802673,
0.028061365708708763,
0.03551935777068138,
0.010561017319560051,
0.05447732284665108,
0.07254104316234589,
0.004605354741215706,
0.09693601727485657,
0.048933014273643494,
-0.0030091300141066313,
-0.04771684110164642,
0.05379769951105118,
-0.06996562331914902,
0.03462511673569679,
0.023876305669546127,
0.014531459659337997,
0.042744848877191544,
0.047037217766046524,
0.059198930859565735,
0.07604648172855377,
-0.0016141098458319902,
0.03723630681633949,
0.06728289276361465,
-0.007368567865341902,
-0.025181902572512627,
-0.04070597141981125,
0.020388755947351456,
-0.04700144752860069,
0.013583561405539513,
0.008128674700856209,
-0.0924290269613266,
0.008423775434494019,
0.05819737911224365,
0.004290134180337191,
-0.013315288349986076,
0.061309345066547394,
-0.018743347376585007,
0.037558235228061676,
-0.007292557042092085,
-0.007766506168991327,
0.050399571657180786,
-0.0263444185256958,
-0.051579974591732025,
0.05422693490982056,
0.06899984180927277,
0.019011620432138443,
0.029867738485336304,
0.05365461856126785,
-0.03888171538710594,
-0.022499170154333115,
-0.0020299330353736877,
0.01755400374531746,
-0.029742544516921043,
0.034410495311021805,
-0.028633682057261467,
-0.05150843411684036,
0.0598427876830101,
-0.024555930867791176,
0.03147737681865692,
-0.009013975970447063,
0.033444713801145554,
-0.013789237476885319,
-0.015470415353775024,
0.00957734975963831,
0.027936171740293503,
-0.03439261019229889,
0.04124251753091812,
-0.03106602467596531,
0.031584687530994415,
0.040169425308704376,
-0.011669879779219627,
0.01598907634615898,
0.01599801890552044,
-0.04260176792740822,
0.01523791253566742,
0.006899090018123388,
0.02593306638300419,
-0.07990961521863937,
-0.007914056070148945,
-0.01298441831022501,
-0.006791780702769756,
0.01250152662396431,
0.0012910643126815557,
0.02310725674033165,
0.02171223610639572,
-0.056337352842092514,
0.006823079194873571,
0.008258339948952198,
-0.0031566801480948925,
0.016105327755212784,
0.02024567686021328,
-0.044175636023283005,
0.0756172463297844,
0.020442409440875053,
-0.059413548558950424,
0.030690442770719528,
0.013932316564023495,
-0.010006587021052837,
0.001207228982821107,
0.03891748562455177,
0.0007209839532151818,
0.02705981396138668,
-0.05905585363507271,
-0.0657447949051857,
-0.009568407200276852,
0.009854565374553204,
-0.03902479261159897,
-0.02798982709646225,
-0.02437708154320717,
-0.02718500792980194,
0.014620884321630001,
0.04152867570519447,
-0.0416717566549778,
-0.030118126422166824,
0.012251138687133789,
-0.04864685609936714,
-0.07093140482902527,
-0.03834516927599907,
-0.02723866142332554,
0.01927989348769188,
-0.012349504977464676,
-0.03934672102332115,
-0.04811030998826027,
-0.027256546542048454,
-0.016632933169603348,
0.0015649264678359032,
-0.016936974599957466,
-0.009478982537984848,
-0.012072289362549782,
-0.10494843870401382,
0.04524872824549675,
-0.0306010190397501,
-0.006451968103647232,
-0.010516305454075336,
-0.04163598641753197,
-0.012760857120156288,
0.06431400775909424,
0.0020209907088428736,
-0.022373976185917854,
-0.0031432665418833494,
0.002722972072660923,
0.031423721462488174,
-0.03984749689698219,
0.006599518470466137,
-0.017571888864040375,
0.0696079283952713,
0.030833521857857704,
-0.0107309240847826,
-0.022695904597640038,
-0.016382543370127678,
-0.05243844911456108,
0.022463401779532433,
-0.002250140532851219,
0.018707577139139175,
0.006393842399120331,
-0.001706887618638575,
-0.030833521857857704,
0.001497858203947544,
-0.057052746415138245,
-0.0423513799905777,
-0.009125757031142712,
0.05047111213207245,
-0.021318769082427025,
-0.028776761144399643,
0.003230455331504345,
-0.015676092356443405,
0.0273638553917408,
0.07078833132982254,
0.023464953526854515,
0.007364096585661173,
0.08305735141038895,
-0.057267364114522934,
-0.0102480323985219,
0.08169810473918915,
0.03317644074559212,
-0.025736331939697266,
0.058268915861845016,
0.03995480760931969,
0.0060227313078939915,
-0.04306677356362343,
-0.05834045633673668,
0.03657456487417221,
0.02273167483508587,
0.010954485274851322,
-0.004524873103946447,
-0.012304793111979961,
0.05333269387483597,
-0.02155127190053463,
-0.022588595747947693,
0.024770550429821014,
-0.0043415529653429985,
-0.04317408427596092,
-0.020800108090043068,
-0.00542805902659893,
0.014111164957284927,
-0.032639894634485245,
0.027131352573633194,
-0.03464299812912941,
-0.05104342848062515,
-0.03741515427827835,
0.040849052369594574,
0.02550382912158966,
-0.06735443323850632,
-0.06502939760684967,
0.05308230593800545,
-0.0017538353567942977,
0.0403125062584877,
-0.026630576699972153,
-0.03568032383918762,
-0.012894993647933006,
-0.0020288152154535055,
0.02121146023273468,
0.0032863453961908817,
-0.0028123962692916393,
0.03371298685669899,
0.02276744320988655,
-0.037772852927446365,
0.0146477110683918,
-0.045177191495895386,
0.011714591644704342,
-0.010194377973675728,
-0.041779063642024994,
-0.07082410156726837,
-0.030332745984196663,
0.0010451473062857985,
0.04020519554615021,
-0.0036820482928305864,
0.012903936207294464,
-0.03439261019229889,
0.03662822023034096,
0.057303134351968765,
-0.007542945444583893,
-0.0038966666907072067,
0.03328374773263931,
-0.010408996604382992,
-0.008602623827755451,
0.07035908848047256,
-0.014093279838562012,
-0.05644465982913971,
0.050113413482904434,
-0.011321124620735645,
0.08291427046060562,
-0.019297778606414795,
0.023929961025714874,
0.01208123192191124,
0.013207978568971157,
-0.02528921142220497,
-0.0071360645815730095,
0.00562032125890255,
0.01620369590818882,
-0.07726265490055084,
-0.009098929353058338,
0.013216921128332615,
-0.013494136743247509,
0.024555930867791176,
0.02428765781223774,
-0.0007086881087161601
] |
17,690 | imodels.tree.gosdt.pygosdt | nodes |
Returns
---
natural number : The number of nodes present in this tree
| def nodes(self):
"""
Returns
---
natural number : The number of nodes present in this tree
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
return self.tree_.nodes()
else:
warnings.warn("Using DecisionTreeClassifier due to absence of gosdt package. "
"DecisionTreeClassifier does not have this method.")
return None
| (self) | [
-0.006636215839534998,
-0.0075035495683550835,
0.03284304216504097,
-0.009811991825699806,
0.008121803402900696,
0.07269591838121414,
0.0005370798171497881,
-0.02551295794546604,
0.06682473421096802,
0.027950389310717583,
0.03697066009044647,
-0.05088358744978905,
0.017426738515496254,
-0.030014198273420334,
0.02106509357690811,
-0.04373141750693321,
0.030797023326158524,
0.005920109339058399,
0.02081601321697235,
0.022879822179675102,
-0.046008724719285965,
0.02823505364358425,
0.014491147361695766,
-0.030174322426319122,
-0.040493372827768326,
-0.017764776945114136,
0.045724060386419296,
-0.025103755295276642,
0.014846976846456528,
0.036863911896944046,
-0.12724454700946808,
0.00603575399145484,
-0.046008724719285965,
-0.017328886315226555,
-0.01718655414879322,
0.04953143373131752,
0.03786023333668709,
0.0469694621860981,
-0.016110170632600784,
0.0067740995436906815,
-0.05401488393545151,
-0.03435531631112099,
-0.054121632128953934,
-0.027060816064476967,
-0.03444427251815796,
-0.012978872284293175,
0.04358908534049988,
0.02827063575387001,
-0.05835600197315216,
-0.06170079484581947,
0.011608930304646492,
-0.018823368474841118,
-0.008713369257748127,
0.01684851571917534,
-0.01691078580915928,
0.05102591589093208,
0.04383816570043564,
0.0027999316807836294,
0.0173110943287611,
0.024000683799386024,
0.016706183552742004,
0.06255478411912918,
-0.000691087159793824,
-0.04319767281413078,
-0.024303140118718147,
0.00444564176723361,
-0.030441194772720337,
0.02311111055314541,
-0.026722777634859085,
0.03369703143835068,
-0.043660253286361694,
-0.029373707249760628,
0.049638181924819946,
0.07693029195070267,
0.03654366731643677,
-0.05216456949710846,
0.03065469115972519,
-0.0054352921433746815,
0.034515440464019775,
0.002061585895717144,
-0.019463861361145973,
0.024338722229003906,
0.05269831418991089,
0.011502181179821491,
0.03431973233819008,
-0.058249250054359436,
0.03230929747223854,
0.015825506299734116,
-0.0020093233324587345,
0.03638354316353798,
-0.06689590215682983,
0.009865366853773594,
0.034800101071596146,
0.00871781725436449,
-0.023377982899546623,
0.06027747690677643,
0.001617911271750927,
-0.0092693530023098,
-0.025744248181581497,
-0.0560431107878685,
-0.011235308833420277,
0.0997033640742302,
0.001984860049560666,
0.051737576723098755,
-0.0352448895573616,
-0.04305534064769745,
-0.058000169694423676,
0.009340518154203892,
0.005275168921798468,
-0.007890514098107815,
-0.05586519464850426,
0.02682952769100666,
0.04334000498056412,
0.018681036308407784,
0.05205782130360603,
-0.09329843521118164,
-0.015487468801438808,
-0.03472893685102463,
-0.056683603674173355,
-0.02216816321015358,
-0.005542040802538395,
0.0539792999625206,
0.002793259685859084,
-0.00046507996739819646,
-0.00045090241474099457,
0.030974937602877617,
0.057964589446783066,
0.016572749242186546,
-0.028697630390524864,
-0.05373021960258484,
0.08369104564189911,
-0.010808314196765423,
-0.008731160312891006,
0.042877428233623505,
0.010114447213709354,
-0.028448550030589104,
0.024534428492188454,
-0.007058763410896063,
-0.01343255490064621,
-0.00752134108915925,
0.00214498327113688,
-0.028501924127340317,
-0.004527927376329899,
-0.01119083072990179,
0.012667521834373474,
0.03835839405655861,
-0.01466906163841486,
0.008940210565924644,
-0.020175520330667496,
-0.02764793485403061,
0.006249251775443554,
-0.04554614797234535,
0.055936362594366074,
-0.01981968991458416,
-0.030547942966222763,
0.019677359610795975,
0.0276123508810997,
-0.10681995004415512,
-0.02435651421546936,
-0.06689590215682983,
-0.04846394807100296,
0.006106920074671507,
-0.01242733746767044,
0.003487126901745796,
0.004552390892058611,
0.01769361086189747,
-0.022203747183084488,
-0.05999281629920006,
-0.03478231281042099,
0.03382157161831856,
0.003046788042411208,
-0.0018113934202119708,
-0.05312531068921089,
0.01386844553053379,
-0.00745907099917531,
0.03214917331933975,
0.03293199837207794,
0.022185955196619034,
0.0120537169277668,
0.06614866107702255,
-0.014517834410071373,
0.00726336520165205,
-0.022933196276426315,
0.008130698464810848,
-0.0032780771143734455,
-0.010843897238373756,
0.005301855970174074,
0.004456761758774519,
-0.051239416003227234,
0.026349157094955444,
0.01941048726439476,
0.005448635667562485,
0.021243007853627205,
0.030725857242941856,
0.03821606561541557,
-0.014170900918543339,
0.004701394122093916,
0.030103156343102455,
-0.03305653855204582,
0.019143614917993546,
0.02917800098657608,
-0.04220135137438774,
0.028288427740335464,
0.029533829540014267,
-0.016394833102822304,
0.05518912151455879,
-0.029693953692913055,
0.05088358744978905,
-0.04398049786686897,
-0.033768199384212494,
-0.010390214622020721,
-0.011795740574598312,
-0.03757557272911072,
0.06657565385103226,
0.012311693280935287,
-0.03981729596853256,
-0.04301976040005684,
-0.03882097452878952,
-0.05579403042793274,
-0.06002839654684067,
0.0065606022253632545,
0.05778667330741882,
0.050385426729917526,
-0.012836541049182415,
-0.003331451676785946,
-0.07529347389936447,
0.012720896862447262,
0.006249251775443554,
0.0037962535861879587,
-0.038998886942863464,
0.007143272552639246,
-0.009856470860540867,
0.0007366777863353491,
0.025939954444766045,
0.027558976784348488,
0.00033942775917239487,
0.0290534608066082,
-0.01490035094320774,
-0.017079805955290794,
-0.002710974309593439,
-0.07977692037820816,
-0.05187990888953209,
-0.02617124281823635,
-0.02996082417666912,
-0.0005381917580962181,
0.011644513346254826,
-0.015354033559560776,
0.00739680090919137,
0.003028996754437685,
-0.026242408901453018,
-0.025335043668746948,
-0.12219177186489105,
-0.005097254179418087,
-0.049638181924819946,
-0.020673681050539017,
-0.06280386447906494,
-0.00123873061966151,
0.03917680308222771,
0.03351911902427673,
0.00616029417142272,
0.026509281247854233,
-0.017328886315226555,
-0.04309092462062836,
0.08454503864049911,
-0.03903447091579437,
-0.013485928997397423,
0.033928319811820984,
-0.0035783080384135246,
-0.04867744445800781,
-0.010363527573645115,
0.0609891377389431,
0.03743324056267738,
-0.03277187421917915,
-0.03291420638561249,
0.0026753912679851055,
-0.08660884201526642,
-0.03490685299038887,
0.042877428233623505,
-0.02006877027451992,
0.017800359055399895,
0.010870584286749363,
-0.049104440957307816,
-0.02576204016804695,
0.018769994378089905,
-0.10233649611473083,
-0.019730733707547188,
-0.019748523831367493,
-0.010532546788454056,
-0.04978051409125328,
-0.01871662028133869,
-0.01580771617591381,
0.02426755614578724,
-0.020335642620921135,
-0.001411085482686758,
0.018485330045223236,
-0.03190009295940399,
-0.04536823183298111,
-0.022737490013241768,
-0.005159524269402027,
0.07636096328496933,
0.023128902539610863,
-0.04853511229157448,
-0.05216456949710846,
-0.050207510590553284,
0.016136856749653816,
0.027185356244444847,
0.08525669574737549,
0.02101171761751175,
0.02072705514729023,
0.04013754054903984,
-0.04764553904533386,
0.02764793485403061,
0.061167050153017044,
0.010114447213709354,
-0.01875220239162445,
-0.07052536308765411,
0.00864220317453146,
-0.017044221982359886,
0.031063895672559738,
0.03988846018910408,
-0.031099477782845497,
0.06408485025167465,
-0.021367548033595085,
0.008188521489501,
-0.05081241950392723,
0.02896450273692608,
0.03753998875617981,
0.009162603877484798,
0.0009896501433104277,
0.028662048280239105,
-0.023929517716169357,
-0.03359028324484825,
0.059245575219392776,
0.006044649984687567,
-0.02823505364358425,
0.01691078580915928,
0.058284834027290344,
-0.009313831105828285,
-0.015113848261535168,
-0.005613206885755062,
-0.00019389914814382792,
0.005448635667562485,
-0.040564537048339844,
0.027790267020463943,
0.012249422259628773,
0.024552220478653908,
0.03264733403921127,
0.0122583182528615,
0.05920999124646187,
0.05351672321557999,
-0.05052775517106056,
0.056398939341306686,
0.009287144057452679,
0.005759986117482185,
-0.01211598701775074,
0.022079207003116608,
0.048606280237436295,
0.08767633140087128,
0.02254178375005722,
0.045510563999414444,
0.038322813808918,
-0.006227012258023024,
0.004392267670482397,
0.01605679653584957,
0.02085159532725811,
-0.027790267020463943,
0.007863827049732208,
0.046542469412088394,
0.06614866107702255,
-0.07429715245962143,
0.01120862178504467,
-0.019677359610795975,
-0.07529347389936447,
-0.018823368474841118,
0.00606688903644681,
0.048606280237436295,
-0.016635019332170486,
-0.008864596486091614,
0.017738088965415955,
-0.018823368474841118,
-0.03197126090526581,
-0.008708921261131763,
-0.012018133886158466,
-0.034177400171756744,
-0.04640013724565506,
-0.04554614797234535,
-0.020175520330667496,
-0.001315456349402666,
-0.019392695277929306,
-0.030138738453388214,
0.006609528791159391,
-0.014108630828559399,
-0.07105910778045654,
0.010292361490428448,
-0.05077683553099632,
-0.002650927985087037,
0.036614831537008286,
-0.017275510355830193,
-0.016101274639368057,
-0.04373141750693321,
0.031828928738832474,
-0.008993584662675858,
-0.0031668804585933685,
0.020780429244041443,
-0.0011303139617666602,
0.044656574726104736,
-0.001806945540010929,
0.010728252120316029,
-0.0033536909613758326,
-0.024836882948875427,
0.010354631580412388,
0.030547942966222763,
0.0004397827433422208,
-0.00469694659113884,
-0.005457531660795212,
-0.037931401282548904,
0.05465537682175636,
0.07650329172611237,
0.08383337408304214,
-0.04170319065451622,
0.014179796911776066,
0.00482148677110672,
-0.0014388846466317773,
0.08952664583921432,
0.057003848254680634,
0.02558412402868271,
-0.01119083072990179,
-0.015709862112998962,
-0.0009073646506294608,
0.036365751177072525,
-0.03700624406337738,
-0.0044523137621581554,
-0.02245282754302025,
-0.04928235337138176,
0.012169361114501953,
-0.047360874712467194,
-0.04145411029458046,
-0.015505260787904263,
-0.04686271399259567,
0.056968268007040024,
-0.018823368474841118,
0.04647130146622658,
0.05091916769742966,
-0.021705586463212967,
0.05216456949710846,
-0.030067574232816696,
0.01875220239162445,
-0.022470617666840553,
-0.06927996128797531,
-0.0589253269135952,
-0.018965700641274452,
-0.028377383947372437,
0.03547617793083191,
0.012720896862447262,
-0.028590882197022438,
0.023680437356233597,
-0.055367033928632736,
-0.02889333665370941,
-0.01069267001003027,
-0.0016779573634266853,
-0.005026088561862707,
0.029444871470332146,
-0.0022950987331569195,
0.037646736949682236,
-0.012480711564421654,
-0.06394252181053162,
0.035832006484270096,
-0.0066406638361513615,
0.0044056111946702,
-0.026064494624733925,
0.07899409532546997,
-0.01219604816287756,
-0.0395682156085968,
-0.08596835285425186,
-0.02974732778966427,
0.05077683553099632,
0.008006158284842968,
-0.02216816321015358,
-0.015211701393127441,
-0.017764776945114136,
0.004056453704833984,
-0.027879223227500916,
0.048570696264505386,
-0.0064182705245912075,
-0.03786023333668709,
-0.012658626772463322,
-0.0791364312171936,
-0.008886836469173431,
-0.01192917674779892,
-0.030974937602877617,
-0.007708151824772358,
-0.06365785747766495,
-0.010256778448820114,
-0.04173877462744713,
0.015140535309910774,
0.011680095456540585,
0.059316739439964294,
-0.01213377807289362,
-0.017978273332118988,
0.020993927493691444,
-0.003140193410217762,
0.04109828174114227,
0.05483328923583031,
0.014277649112045765,
-0.0012631939025595784,
-0.022933196276426315,
0.042343683540821075,
0.021171841770410538,
0.016795141622424126,
0.021420922130346298,
0.022595159709453583,
-0.00472808163613081,
0.040778033435344696,
0.032754085958004,
0.03597433865070343,
0.03602771461009979,
0.01569207012653351,
0.049638181924819946,
0.04355350136756897,
0.05792900547385216,
0.014170900918543339,
-0.036116670817136765,
0.07105910778045654,
-0.0222571212798357,
0.0022472841665148735,
0.063479945063591,
-0.044193994253873825,
0.022363869473338127,
0.012658626772463322,
0.05508236959576607,
0.08675117790699005,
-0.04358908534049988,
0.0018380805850028992,
0.03942588344216347,
-0.04330442100763321,
-0.01697305589914322,
0.038465145975351334,
-0.01684851571917534,
0.004060901701450348,
0.019108032807707787,
0.009616286493837833,
-0.09671439975500107,
0.026153450831770897,
0.06269712001085281,
0.0059734839014709,
0.03159764036536217,
0.052022241055965424,
-0.025032589212059975,
0.009945427998900414,
-0.007948336191475391,
-0.010150030255317688,
-0.007663672789931297,
-0.005368574056774378,
-0.031046103686094284,
0.10276349633932114,
0.0473964586853981,
0.0119469678029418,
-0.003838508389890194,
0.02780805714428425,
-0.027416644617915154,
0.0004962150123901665,
-0.05739526078104973,
0.02047797478735447,
-0.002622016938403249,
0.012658626772463322,
-0.04198785498738289,
-0.04664921760559082,
0.028092721477150917,
-0.0031157301273196936,
0.001634590676985681,
0.026313574984669685,
0.027719100937247276,
-0.03086818940937519,
-0.006974253803491592,
0.01056812983006239,
0.0251393374055624,
-0.046506885439157486,
0.05451304465532303,
-0.05013634264469147,
-0.018930116668343544,
-0.0058000171557068825,
-0.018236249685287476,
0.025993328541517258,
0.020015396177768707,
-0.020549140870571136,
0.015914464369416237,
-0.044692154973745346,
0.00033331193844787776,
-0.028626464307308197,
0.017711402848362923,
-0.012774270959198475,
-0.014802497811615467,
0.011840218678116798,
-0.008104011416435242,
-0.009055854752659798,
0.0005698828026652336,
-0.05945907160639763,
-0.023253442719578743,
0.0026753912679851055,
-0.04188110679388046,
0.04035104066133499,
0.035209305584430695,
-0.00048398340004496276,
0.02686510980129242,
0.02835959382355213,
-0.0461510568857193,
0.00007008863758528605,
0.039781711995601654,
0.008023950271308422,
-0.0150426821783185,
0.011600034311413765,
-0.021954666823148727,
0.04647130146622658,
-0.07162842899560928,
-0.03415961191058159,
0.014909246936440468,
-0.006591737270355225,
-0.01866324618458748,
0.006747412495315075,
0.008815670385956764,
0.000008756735951465089,
0.02229270339012146,
0.024445470422506332,
0.01834299974143505,
-0.019677359610795975,
-0.022221537306904793,
-0.022897614166140556,
-0.07970575988292694,
-0.015469677746295929,
-0.006436062045395374,
0.04095594957470894,
-0.04853511229157448,
0.003202463500201702,
-0.051203832030296326,
-0.031793344765901566,
-0.028110511600971222,
-0.004114275798201561,
-0.013984090648591518,
-0.009562911465764046,
0.00005500759289134294,
-0.055936362594366074,
0.03271850198507309,
-0.045510563999414444,
-0.031793344765901566,
0.021830126643180847,
-0.05999281629920006,
-0.03556513413786888,
0.037148576229810715,
0.0647253468632698,
-0.02229270339012146,
-0.024783508852124214,
0.01102181151509285,
0.010683774016797543,
-0.024338722229003906,
0.0028644255362451077,
-0.012035924941301346,
0.012640834785997868,
0.03985287994146347,
-0.004011975135654211,
-0.024303140118718147,
-0.03353690728545189,
-0.023520315065979958,
0.06753639876842499,
0.044443074613809586,
0.05187990888953209,
0.02595774456858635,
0.02154546231031418,
-0.03679274767637253,
-0.03782465308904648,
-0.004140963312238455,
-0.05052775517106056,
0.049673765897750854,
0.05373021960258484,
-0.02592216245830059,
-0.025406209751963615,
0.00365169788710773,
-0.001984860049560666,
0.022523993626236916,
0.05896091088652611,
0.009945427998900414,
0.04515473544597626,
0.07522230595350266,
-0.055331453680992126,
-0.00317355222068727,
0.024000683799386024,
-0.00745907099917531,
-0.048357199877500534,
-0.0026753912679851055,
0.04743204265832901,
-0.01903686672449112,
-0.04355350136756897,
-0.00939389318227768,
0.07771310955286026,
0.06372902542352676,
0.017364468425512314,
0.04454982653260231,
-0.02407184988260269,
0.04412283003330231,
0.011884697712957859,
0.006898640189319849,
0.047609955072402954,
-0.03369703143835068,
-0.0346221886575222,
-0.00040531178819946945,
-0.04017312452197075,
0.002922247862443328,
-0.03447985649108887,
0.022968780249357224,
-0.019232572987675667,
-0.01875220239162445,
-0.04092036560177803,
0.0445142425596714,
-0.0074813105165958405,
-0.04643572121858597,
-0.06863946467638016,
0.030725857242941856,
0.014153108932077885,
0.029071250930428505,
-0.009006928652524948,
-0.01834299974143505,
-0.0031980155035853386,
-0.043375588953495026,
0.05465537682175636,
0.0630529448390007,
-0.008535454981029034,
0.07792661339044571,
0.03853631019592285,
-0.04508356750011444,
0.020015396177768707,
-0.009482850320637226,
0.04618664085865021,
0.005346335005015135,
-0.02216816321015358,
-0.0642983466386795,
-0.0515240803360939,
-0.016394833102822304,
0.030387820675969124,
0.020424600690603256,
-0.0001823625061661005,
-0.018947908654808998,
0.07038302719593048,
0.0028799930587410927,
0.017177658155560493,
-0.02282644808292389,
0.10326165705919266,
-0.026918483898043633,
-0.010683774016797543,
0.06664682179689407,
0.010007698088884354,
-0.03597433865070343,
0.04501240327954292,
0.005626550409942865,
0.06237687170505524,
-0.04846394807100296,
0.035671886056661606,
0.011368745006620884,
0.019926439970731735,
-0.03362586721777916,
0.0021005047019571066,
-0.020122146233916283,
-0.005208450835198164,
-0.04995843023061752,
-0.03853631019592285,
0.02056693285703659,
0.01683961972594261,
0.023929517716169357,
0.02257736772298813,
0.011795740574598312
] |
17,691 | imodels.tree.gosdt.pygosdt | predict |
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
a matrix where each row is a sample to be predicted and each column is a feature to
be used for prediction
Returns
---
array-like, shape = [n_samples, 1] : a column where each element is the prediction
associated with each row
| def predict(self, X):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
a matrix where each row is a sample to be predicted and each column is a feature to
be used for prediction
Returns
---
array-like, shape = [n_samples, 1] : a column where each element is the prediction
associated with each row
"""
validation.check_is_fitted(self)
if self.tree_type == 'gosdt':
if type(self.tree_) is TreeClassifier and not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
return self.tree_.predict(X)
else:
return super().predict(X)
| (self, X) | [
0.04927651211619377,
-0.020370787009596825,
0.03972029685974121,
-0.00052118074381724,
0.006232512183487415,
-0.038297805935144424,
-0.023671692237257957,
0.030820617452263832,
0.05886920168995857,
0.0013529612915590405,
0.03403033688664436,
-0.03012760914862156,
-0.016650427132844925,
-0.022121543064713478,
0.02230391465127468,
-0.000055031727242749184,
0.02852274850010872,
0.003088900586590171,
0.0011118901893496513,
0.04916708916425705,
0.01186320185661316,
0.0028313021175563335,
-0.05759260803461075,
-0.0034240062814205885,
-0.014726419001817703,
0.0016356355044990778,
0.002648931695148349,
-0.048437606543302536,
0.05120963975787163,
0.0047370740212500095,
-0.05292392149567604,
-0.00914132222533226,
-0.053726352751255035,
0.0014760612975805998,
-0.036309968680143356,
-0.02483886480331421,
-0.006579016335308552,
0.027775028720498085,
0.030857089906930923,
-0.05613364279270172,
-0.07688740640878677,
-0.10541015863418579,
-0.049568306654691696,
0.00878114067018032,
-0.03229781612753868,
-0.01559267845004797,
-0.00475987046957016,
0.02761089615523815,
-0.012957424856722355,
-0.03074766881763935,
-0.006300901062786579,
-0.004937681835144758,
0.00042258668690919876,
-0.0009996183216571808,
-0.02120969071984291,
0.0201701782643795,
0.0324072390794754,
0.027829740196466446,
0.014753774739801884,
-0.000703836209140718,
0.08389043807983398,
0.05186617374420166,
0.00886776577681303,
0.018620029091835022,
-0.013714262284338474,
-0.017306961119174957,
0.01845589652657509,
0.007732509635388851,
-0.019896622747182846,
0.03826133534312248,
-0.08308800309896469,
-0.04821876436471939,
0.010158037766814232,
0.0748448595404625,
0.04515494033694267,
0.01696045696735382,
0.034577447921037674,
-0.04887529835104942,
0.028468037024140358,
0.028468037024140358,
-0.06310019642114639,
-0.008854088373482227,
0.002145133214071393,
-0.00595439737662673,
-0.046285636723041534,
-0.06156828626990318,
0.023525796830654144,
0.012738579884171486,
-0.015857115387916565,
0.024528833106160164,
-0.026261353865265846,
0.022905737161636353,
0.026881413534283638,
0.053215716034173965,
0.02438293769955635,
0.013750736601650715,
0.01189055759459734,
0.034778058528900146,
-0.029835816472768784,
-0.014708181843161583,
0.02744676172733307,
0.10584784299135208,
0.00555774150416255,
0.0581761933863163,
-0.015373834408819675,
0.034577447921037674,
0.0007568376022391021,
0.021355587989091873,
-0.010230985470116138,
-0.015820642933249474,
-0.10533720999956131,
0.08666247129440308,
0.036729421466588974,
-0.001722261542454362,
-0.04621268808841705,
-0.08753784745931625,
-0.01644982025027275,
0.025604819878935814,
-0.12860769033432007,
-0.009009103290736675,
0.029762867838144302,
0.05463820695877075,
-0.0009523160406388342,
-0.019313037395477295,
-0.0760120302438736,
0.02219449169933796,
0.06977495551109314,
0.007427039090543985,
-0.03280845656991005,
-0.05883272737264633,
-0.015738574787974358,
0.005653486121445894,
-0.02383582666516304,
0.008580532856285572,
-0.0002070190239464864,
-0.03346499055624008,
0.062151871621608734,
-0.014544048346579075,
0.03707592561841011,
-0.025641294196248055,
0.054236989468336105,
-0.03638291731476784,
0.06390263140201569,
-0.023471085354685783,
0.03767774626612663,
-0.009268981404602528,
0.05890567600727081,
0.038917869329452515,
-0.005316100548952818,
-0.017954377457499504,
-0.01833735592663288,
-0.025604819878935814,
0.04387834668159485,
-0.09308190643787384,
-0.01271122507750988,
0.060656432062387466,
-0.0001111320307245478,
-0.09468676894903183,
0.02115497924387455,
-0.03796954080462456,
-0.04088746756315231,
-0.02812153287231922,
-0.04172637313604355,
0.01851060800254345,
0.01911243051290512,
0.060583483427762985,
-0.028741592541337013,
0.011817608959972858,
-0.019185377284884453,
0.001069147139787674,
0.02649843506515026,
0.032006025314331055,
0.001168311107903719,
0.0237993523478508,
-0.02638901397585869,
0.045884422957897186,
0.047270435839891434,
0.04398776963353157,
0.019787199795246124,
0.0760120302438736,
0.06284487992525101,
-0.009455910883843899,
-0.025130657479166985,
-0.02857745997607708,
-0.015765931457281113,
-0.04300296679139137,
-0.021592669188976288,
0.03877197206020355,
-0.0456291027367115,
0.0712703987956047,
0.010249222628772259,
0.0004989543231204152,
0.03195131570100784,
0.013978700153529644,
0.005320659838616848,
0.0006582435453310609,
-0.011033415794372559,
0.008398162201046944,
-0.001888674683868885,
0.028176244348287582,
0.013541010208427906,
-0.056388963013887405,
0.03760480135679245,
0.024984760209918022,
-0.08024302870035172,
0.01965954154729843,
0.0005690529942512512,
0.023471085354685783,
-0.016832798719406128,
-0.06036464124917984,
0.0025531870778650045,
-0.026881413534283638,
-0.02170209027826786,
0.0036246138624846935,
0.05668075382709503,
-0.02015194110572338,
-0.018665622919797897,
-0.04037683084607124,
-0.039975617080926895,
-0.04136163368821144,
0.0043358588591217995,
0.00357902143150568,
-0.024765916168689728,
0.026316065341234207,
0.02120969071984291,
-0.06988438218832016,
0.03246195241808891,
-0.014352559112012386,
-0.006811538711190224,
-0.04533730819821358,
-0.009127643890678883,
-0.06306372582912445,
0.009455910883843899,
-0.0548570491373539,
0.040522728115320206,
0.01690574735403061,
0.05237681046128273,
-0.0005103524890728295,
-0.00951062235981226,
0.024127619341015816,
-0.007787221111357212,
0.008015183731913567,
0.0011090406915172935,
-0.05657133460044861,
0.015264412388205528,
0.014370796270668507,
0.038881395012140274,
0.006410323549062014,
0.006132208276540041,
-0.02325224131345749,
-0.004937681835144758,
-0.04238290712237358,
0.009656518697738647,
0.007299379911273718,
0.0031481708865612745,
-0.10117916017770767,
0.08389043807983398,
0.05875977873802185,
0.04836466163396835,
0.0434771291911602,
-0.0432947613298893,
-0.028686881065368652,
0.01582976058125496,
0.06558043509721756,
-0.06025521829724312,
-0.014689944684505463,
-0.020389024168252945,
0.008174758404493332,
0.05875977873802185,
-0.010212748311460018,
0.033191435039043427,
0.048401135951280594,
-0.07367768883705139,
-0.042565278708934784,
0.04431603476405144,
0.0027902687434107065,
-0.027082020416855812,
-0.021337350830435753,
-0.023051632568240166,
0.018620029091835022,
-0.008767462335526943,
-0.1046077236533165,
0.028449799865484238,
0.02852274850010872,
-0.07313057780265808,
-0.013094202615320683,
-0.029945237562060356,
-0.04088746756315231,
0.0301640834659338,
-0.0037591122090816498,
-0.02480239048600197,
0.07965943962335587,
-0.053653404116630554,
0.009346488863229752,
-0.016249213367700577,
-0.04694217070937157,
-0.022048594430088997,
-0.024072907865047455,
0.028413325548171997,
0.03246195241808891,
0.005749230273067951,
0.009241625666618347,
0.014708181843161583,
-0.033118486404418945,
-0.006186919752508402,
0.03072943165898323,
0.0666017085313797,
-0.014516692608594894,
-0.038188386708498,
-0.006387527100741863,
0.0013210463803261518,
0.07105155289173126,
0.02170209027826786,
-0.02956226095557213,
-0.07309409976005554,
-0.03530693054199219,
0.05708197131752968,
-0.017024287953972816,
0.07710625231266022,
0.01673249527812004,
-0.04442545771598816,
0.016531886532902718,
0.009911837056279182,
-0.009720348753035069,
0.05467468127608299,
0.017708176746964455,
0.05040720850229263,
-0.03133125230669975,
-0.0343768410384655,
0.03337380290031433,
0.042674701660871506,
-0.025130657479166985,
0.050589580088853836,
0.021939173340797424,
-0.026334302499890327,
0.014516692608594894,
-0.013003017753362656,
0.01569298282265663,
-0.02432822622358799,
0.040923941880464554,
-0.036784131079912186,
-0.0343768410384655,
-0.004627652000635862,
-0.00019818545843008906,
0.04657742753624916,
0.01006685197353363,
0.012373839505016804,
0.04803639277815819,
0.01898477040231228,
0.09446792304515839,
-0.050042469054460526,
0.008986307308077812,
0.030930038541555405,
0.04165342450141907,
-0.016787204891443253,
-0.02602427266538143,
-0.011452868580818176,
0.04085099324584007,
0.0009682734380476177,
0.002865496790036559,
0.04829171299934387,
-0.02746499888598919,
0.010969586670398712,
-0.00515652634203434,
0.016796324402093887,
-0.02697259932756424,
-0.07309409976005554,
0.06762298941612244,
0.04716101288795471,
-0.008416399359703064,
0.016057724133133888,
0.017480213195085526,
-0.06729471683502197,
0.04756223037838936,
0.047854021191596985,
0.02970815636217594,
-0.036255259066820145,
-0.004044066183269024,
0.008626124821603298,
-0.00675682770088315,
-0.00015957419236656278,
0.0005260249599814415,
-0.00594071950763464,
-0.011206667870283127,
-0.005411845166236162,
-0.029361652210354805,
0.04176284745335579,
-0.025714242830872536,
0.0332096703350544,
-0.0760120302438736,
-0.03957439959049225,
-0.015483256429433823,
-0.06043758988380432,
-0.017817599698901176,
-0.0718904584646225,
-0.05299687013030052,
-0.014772011898458004,
0.0026831261347979307,
-0.030857089906930923,
-0.008316094987094402,
-0.06186007708311081,
0.014753774739801884,
-0.020498445257544518,
-0.023580506443977356,
-0.0324072390794754,
0.009255304001271725,
0.0060866158455610275,
-0.018729452043771744,
-0.0380060151219368,
0.013923988677561283,
-0.026316065341234207,
0.08914270997047424,
0.014954381622374058,
-0.011835846118628979,
0.001990118296816945,
0.022358624264597893,
0.05201207101345062,
0.07550138980150223,
0.029762867838144302,
-0.0044566793367266655,
-0.008443755097687244,
0.03592699021100998,
-0.03742242977023125,
0.020480208098888397,
0.050954319536685944,
0.0444619320333004,
-0.026352539658546448,
0.014744656160473824,
-0.014945263974368572,
0.03858960047364235,
-0.0421275869011879,
-0.05128258839249611,
-0.06196950003504753,
-0.012154994532465935,
-0.002198704518377781,
-0.010623082518577576,
-0.03667471185326576,
-0.024218803271651268,
-0.024638256058096886,
0.029379889369010925,
-0.0015056965639814734,
0.004901207517832518,
0.060583483427762985,
-0.021410297602415085,
0.024072907865047455,
-0.03649234026670456,
-0.028249192982912064,
-0.04708806797862053,
-0.04398776963353157,
-0.07586613297462463,
0.007404242642223835,
-0.008881444111466408,
0.06908194720745087,
0.02533126436173916,
-0.006465034559369087,
-0.017343435436487198,
-0.013750736601650715,
-0.05930688977241516,
0.00278115039691329,
0.03280845656991005,
-0.04074157401919365,
-0.005457437597215176,
0.05565948039293289,
0.007727950345724821,
0.018711214885115623,
-0.06408499926328659,
0.008238587528467178,
-0.012419432401657104,
-0.008740106597542763,
-0.03665647283196449,
0.06127649173140526,
-0.04241938143968582,
-0.002851818921044469,
-0.02108203060925007,
-0.04081452265381813,
0.040449779480695724,
0.004262910690158606,
-0.012164113111793995,
-0.00553950434550643,
-0.00674314983189106,
-0.01163523830473423,
-0.027118494734168053,
0.03711239993572235,
-0.003403489710763097,
-0.015857115387916565,
-0.01779024302959442,
-0.026717280969023705,
-0.0023936128709465265,
-0.0037499936297535896,
-0.038407228887081146,
-0.024765916168689728,
0.03581756725907326,
0.056790176779031754,
0.03164128586649895,
-0.021847987547516823,
0.021337350830435753,
0.05018836632370949,
0.021811513230204582,
-0.029215756803750992,
0.01582976058125496,
0.013778092339634895,
0.006674760952591896,
-0.01739814691245556,
-0.01790878362953663,
-0.04026740789413452,
-0.014772011898458004,
0.039501454681158066,
0.02115497924387455,
-0.027939163148403168,
0.017088117077946663,
-0.039428506046533585,
-0.023671692237257957,
0.030474113300442696,
0.021501483395695686,
0.02533126436173916,
0.05649838596582413,
0.0393555574119091,
0.04293001815676689,
-0.02640725113451481,
0.03587228059768677,
0.0060820565558969975,
-0.03848017752170563,
0.013030373491346836,
-0.04927651211619377,
0.010668675415217876,
0.07105155289173126,
0.018273524940013885,
0.026771990582346916,
0.034085050225257874,
0.03136772662401199,
0.028340376913547516,
-0.04216406121850014,
0.0432947613298893,
0.048948246985673904,
-0.015465019270777702,
0.02903338521718979,
0.01949540711939335,
-0.018948296085000038,
0.004919444676488638,
0.006861690431833267,
-0.01951364427804947,
-0.08651657402515411,
-0.016650427132844925,
0.028705118224024773,
-0.0025281112175434828,
-0.037276532500982285,
-0.01676896959543228,
0.01322186179459095,
-0.002174768364056945,
0.005917923059314489,
-0.006975672207772732,
0.005334337707608938,
0.03869902342557907,
0.032498426735401154,
0.07196340709924698,
0.05223091319203377,
-0.004796344321221113,
0.06419441848993301,
0.0332096703350544,
-0.005899685900658369,
-0.03426741808652878,
-0.06134944036602974,
0.08637067675590515,
0.010513660497963428,
0.017270486801862717,
0.02753794752061367,
-0.08950744569301605,
0.0707232877612114,
-0.04023093357682228,
-0.05040720850229263,
0.06182360276579857,
0.009802415035665035,
-0.013039492070674896,
0.03297258913516998,
0.007974150590598583,
0.02863217145204544,
-0.006848012562841177,
0.002847259631380439,
-0.09023693203926086,
0.030984750017523766,
-0.014863196760416031,
-0.008525821380317211,
-0.001506836386397481,
0.016003012657165527,
-0.04278412088751793,
-0.02970815636217594,
-0.02689965069293976,
0.03913671150803566,
-0.03284493088722229,
-0.04705159366130829,
-0.041507527232170105,
-0.022376861423254013,
0.00553950434550643,
0.02387230098247528,
0.0442795604467392,
-0.023981722071766853,
-0.06824304908514023,
-0.036328207701444626,
0.019367748871445656,
-0.08731900155544281,
0.025458924472332,
0.027775028720498085,
0.015410308726131916,
-0.003886771621182561,
0.04085099324584007,
-0.07378710806369781,
-0.04070509970188141,
0.019422460347414017,
0.0221397802233696,
0.0008286460069939494,
0.013550128787755966,
-0.003879932686686516,
0.004841937217861414,
-0.0037568325642496347,
-0.021282639354467392,
0.003848017891868949,
-0.008202114142477512,
0.00792399886995554,
-0.007618528325110674,
-0.009911837056279182,
0.038297805935144424,
-0.0038206621538847685,
0.01667778380215168,
0.0071170092560350895,
-0.022103305906057358,
-0.02007899433374405,
0.030984750017523766,
-0.07783573865890503,
0.017534924671053886,
-0.05230386182665825,
0.04745280742645264,
-0.04008504003286362,
-0.01713370904326439,
-0.043659500777721405,
0.03661999851465225,
-0.006889046169817448,
-0.010158037766814232,
0.012091165408492088,
0.009975667111575603,
-0.006519746035337448,
-0.04384187236428261,
-0.0016436142614111304,
-0.011379919946193695,
0.01245590578764677,
0.01701516844332218,
-0.06521569192409515,
-0.03072943165898323,
0.008981747552752495,
0.05394519865512848,
0.01186320185661316,
-0.005352574400603771,
-0.00915044080466032,
-0.05175675079226494,
0.008521262556314468,
0.024492360651493073,
0.006884486880153418,
-0.006191479042172432,
0.05069900304079056,
-0.012483261525630951,
0.0012401194544509053,
-0.05617011711001396,
-0.009077492170035839,
0.025623057037591934,
-0.007696035783737898,
0.02429175190627575,
0.046832747757434845,
0.00514284847304225,
-0.028996910899877548,
-0.028796304017305374,
0.016741612926125526,
-0.06357435882091522,
0.010905756615102291,
0.0009762521367520094,
-0.033592648804187775,
0.07426127046346664,
-0.050917848944664,
0.025221841409802437,
-0.020480208098888397,
0.03235252946615219,
-0.004965037107467651,
0.0328996405005455,
0.059999898076057434,
0.012848002836108208,
0.03931908309459686,
0.018027326092123985,
-0.032042499631643295,
-0.016632189974188805,
0.0095015037804842,
-0.011215786449611187,
-0.04110631346702576,
0.007828254252672195,
-0.00554406363517046,
0.05872330442070961,
0.010604845359921455,
-0.017708176746964455,
0.06412146985530853,
-0.04570205137133598,
0.01008508913218975,
-0.030565297231078148,
0.02224920317530632,
0.026662569493055344,
-0.02965344488620758,
-0.040923941880464554,
0.03160481154918671,
-0.006396645680069923,
0.043695975095033646,
-0.061130594462156296,
0.010696030221879482,
0.011334327049553394,
-0.02534950152039528,
0.0060820565558969975,
0.03807896375656128,
0.00952885951846838,
-0.0393555574119091,
0.006806979421526194,
0.029325177893042564,
-0.04110631346702576,
0.038297805935144424,
-0.012975662015378475,
0.01431608572602272,
-0.019987808540463448,
-0.04398776963353157,
0.057373762130737305,
0.04832818731665611,
-0.04220053553581238,
0.018410302698612213,
0.043586552143096924,
-0.047926969826221466,
0.007586613297462463,
0.0119452690705657,
0.024127619341015816,
0.03605465218424797,
0.00909572932869196,
-0.036875318735837936,
-0.039537928998470306,
-0.04610326513648033,
-0.0019319875864312053,
-0.03377502039074898,
0.05762908235192299,
0.0006838894332759082,
0.011534934863448143,
-0.008512143976986408,
0.012574447318911552,
0.004201360512524843,
0.08089955896139145,
0.010823690332472324,
-0.03811543807387352,
0.0253677386790514,
0.018729452043771744,
-0.040559202432632446,
0.03972029685974121,
-0.005653486121445894,
0.027227917686104774,
-0.017334317788481712,
0.025750717148184776,
0.044097188860177994,
0.00030974490800872445,
-0.029489312320947647,
0.02124616503715515,
-0.007249227724969387,
-0.00796047318726778,
-0.03641939163208008,
-0.06627344340085983,
-0.010139800608158112,
-0.012629157863557339,
0.004139810800552368,
0.03443155437707901,
0.050078943371772766
] |
17,693 | imodels.tree.gosdt.pygosdt | predict_proba | null | def predict_proba(self, X):
validation.check_is_fitted(self)
if self.tree_type == 'gosdt':
if type(self.tree_) is TreeClassifier and not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
probs = np.expand_dims(self.tree_.confidence(X), axis=1)
return np.hstack((1 - probs, probs))
else:
return super().predict_proba(X)
| (self, X) | [
0.036646582186222076,
0.00856720469892025,
0.0025933037977665663,
-0.023705020546913147,
0.01695290021598339,
-0.03644692152738571,
-0.01726146601140499,
-0.04632098600268364,
0.10629142075777054,
-0.006389101967215538,
0.0357934907078743,
-0.04210998862981796,
0.005585926119238138,
-0.033306822180747986,
-0.018495723605155945,
-0.013531464152038097,
0.024594411253929138,
-0.019312512129545212,
0.029967065900564194,
0.05176624655723572,
0.0220351405441761,
0.04073052480816841,
-0.07144177705049515,
-0.009674406610429287,
-0.03221777081489563,
-0.028750957921147346,
-0.01001927349716425,
-0.04181957617402077,
0.02855129912495613,
0.0034191678278148174,
-0.025992028415203094,
0.01945771835744381,
-0.039641473442316055,
-0.031110569834709167,
0.004283602349460125,
0.009220635518431664,
0.020310809835791588,
0.01829606480896473,
0.06309238076210022,
-0.04552235081791878,
-0.09540090709924698,
-0.08988304436206818,
-0.10890514403581619,
-0.00576743483543396,
0.00036840568645857275,
-0.03430512174963951,
-0.01197956595569849,
0.0816788598895073,
0.005200220737606287,
0.007650586310774088,
-0.0006466243066824973,
0.0013737929984927177,
0.017833217978477478,
0.00922517292201519,
-0.02101869322359562,
0.0547792874276638,
0.017361294478178024,
0.03650137409567833,
-0.00012542525655589998,
-0.024594411253929138,
0.08371175080537796,
0.0673033818602562,
0.014103216119110584,
-0.0200385469943285,
0.012660223059356213,
-0.023668717592954636,
0.01642652601003647,
-0.003963693510740995,
-0.02368686906993389,
0.013377182185649872,
-0.05470668524503708,
-0.05710259824991226,
-0.029513293877243996,
0.05180254578590393,
0.0157549437135458,
0.011117399670183659,
0.03258078917860985,
-0.06113208830356598,
0.03851611912250519,
0.027099229395389557,
-0.04290862753987312,
0.0012682911474257708,
0.015491756610572338,
-0.01949402131140232,
-0.019294360652565956,
-0.03847981616854668,
0.011435040272772312,
0.01523764431476593,
0.017923971638083458,
0.031001664698123932,
-0.02083718404173851,
0.037898991256952286,
0.05931700021028519,
0.055614225566387177,
0.030802004039287567,
0.04279972240328789,
0.007101522758603096,
0.0458853654563427,
-0.015210418030619621,
-0.033361274749040604,
0.012996014207601547,
0.0810980275273323,
-0.00361428945325315,
0.045050427317619324,
-0.01856832765042782,
0.04886210709810257,
0.014620515517890453,
0.038443516939878464,
-0.02441290393471718,
-0.02276117540895939,
-0.0737287849187851,
0.03757227584719658,
0.03650137409567833,
-0.04537714272737503,
-0.02365056797862053,
-0.07492674142122269,
-0.0336516909301281,
0.016027206555008888,
-0.06127729266881943,
0.01266929879784584,
0.022543365135788918,
0.061059482395648956,
0.0003837204712908715,
-0.007950075902044773,
-0.06817462295293808,
0.0273896437138319,
0.0737287849187851,
0.02806122601032257,
-0.023214945569634438,
-0.01963922753930092,
0.0019353351090103388,
0.0036710109561681747,
-0.0428360216319561,
0.016961976885795593,
0.008131584152579308,
-0.05474298447370529,
0.03686439245939255,
-0.02408618852496147,
0.07703223824501038,
-0.06541568785905838,
0.054271064698696136,
-0.02949514240026474,
0.05256488174200058,
-0.03537601977586746,
0.07187739759683609,
0.004544520750641823,
0.0771048441529274,
0.017025504261255264,
-0.006588761229068041,
-0.021672124043107033,
-0.00217243074439466,
-0.012723751366138458,
0.015065211802721024,
-0.07216780632734299,
0.01945771835744381,
0.03285305202007294,
0.00048184854676947,
-0.09982971847057343,
0.025592708960175514,
-0.04592166841030121,
-0.03909694775938988,
-0.005508785136044025,
-0.037009596824645996,
-0.0025887659285217524,
0.02257966622710228,
0.02873280644416809,
-0.023995433002710342,
0.03123762458562851,
0.007618822157382965,
-0.007777642458677292,
0.04127505049109459,
-0.00783209502696991,
0.011725453659892082,
0.038443516939878464,
0.01860462874174118,
0.039822980761528015,
0.030820155516266823,
0.01900394819676876,
-0.010591025464236736,
0.06864654272794724,
0.07231301814317703,
-0.0030879145488142967,
-0.006035160273313522,
-0.034069158136844635,
-0.009107192978262901,
-0.010944967158138752,
0.0007084506214596331,
0.040585316717624664,
-0.059462208300828934,
0.043126437813043594,
-0.04054901376366615,
-0.02267041988670826,
0.0253930501639843,
0.03537601977586746,
0.03993188589811325,
0.031092418357729912,
0.012251828797161579,
0.030820155516266823,
-0.03056604415178299,
-0.022906381636857986,
0.019875189289450645,
-0.05064089223742485,
0.0002399316435912624,
0.03011227212846279,
-0.0670129656791687,
-0.008403846994042397,
-0.03092906065285206,
0.026355044916272163,
0.024685166776180267,
-0.10324207693338394,
0.0019659646786749363,
-0.009665331803262234,
-0.017760613933205605,
-0.04730113595724106,
0.03595684841275215,
0.009438445791602135,
0.0514032281935215,
-0.04595797136425972,
-0.027553001418709755,
-0.03617465868592262,
0.002086214255541563,
-0.008562667295336723,
-0.019838886335492134,
0.03140098229050636,
0.025011882185935974,
-0.03680993989109993,
0.002341460669413209,
0.029368087649345398,
0.0443606935441494,
-0.03020302578806877,
-0.015155965462327003,
-0.02811567857861519,
-0.03503115475177765,
-0.05281899496912956,
0.04795456677675247,
0.048753201961517334,
0.008993749506771564,
-0.011217229999601841,
-0.055033400654792786,
0.02408618852496147,
0.015546209178864956,
-0.004524101037532091,
-0.00961995404213667,
-0.0064480919390916824,
0.011516719125211239,
-0.01249686535447836,
0.0483538843691349,
-0.0031786689069122076,
0.021853631362318993,
0.016971051692962646,
0.009329540655016899,
-0.04163806512951851,
-0.010591025464236736,
-0.018305139616131783,
-0.020147452130913734,
-0.06447184830904007,
0.03390580043196678,
0.046466194093227386,
0.0440702810883522,
0.04094833508133888,
-0.030275629833340645,
-0.008335781283676624,
-0.013286427594721317,
0.06926367431879044,
-0.031655095517635345,
0.033887650817632675,
0.019820736721158028,
-0.01744297333061695,
0.019439568743109703,
0.011226304806768894,
0.004045372363179922,
0.01673508994281292,
-0.018150856718420982,
-0.04171067103743553,
0.005368115846067667,
0.02426769584417343,
-0.017606331035494804,
0.0029359012842178345,
0.029476992785930634,
0.021563218906521797,
0.01344978529959917,
-0.07964596152305603,
0.034740742295980453,
-0.00812250841408968,
-0.040004488080739975,
-0.029840009286999702,
-0.004900731611996889,
-0.039024341851472855,
0.029567746445536613,
0.00661598751321435,
-0.04112984240055084,
0.0768144279718399,
-0.004737373907119036,
0.011598397977650166,
0.02570161409676075,
-0.021272804588079453,
0.026609156280755997,
-0.008698798716068268,
0.032235924154520035,
0.028442393988370895,
0.011516719125211239,
0.03459553420543671,
0.0049143447540700436,
-0.04163806512951851,
-0.018323291093111038,
0.010209857486188412,
0.10012012720108032,
-0.032816749066114426,
-0.0455949530005455,
-0.009356766939163208,
-0.011126475408673286,
0.06559719890356064,
0.05281899496912956,
0.024921126663684845,
-0.07296644896268845,
-0.0376448780298233,
0.07412809878587723,
-0.008685185573995113,
0.053653933107852936,
0.015246720053255558,
-0.045268237590789795,
-0.006411790382117033,
0.030892759561538696,
-0.016254093497991562,
0.05358133092522621,
0.027153681963682175,
0.02802492305636406,
-0.019512170925736427,
-0.03377874568104744,
-0.016508204862475395,
0.016753241419792175,
-0.02873280644416809,
0.03771748021245003,
0.02717183344066143,
-0.037862688302993774,
0.037318162620067596,
0.0005916045047342777,
0.011199078522622585,
-0.012397035956382751,
0.013776500709354877,
-0.055396415293216705,
-0.036120206117630005,
-0.022634118795394897,
0.02918657846748829,
0.025719765573740005,
-0.038879137486219406,
-0.018305139616131783,
0.05107651278376579,
0.018767986446619034,
0.038661327213048935,
-0.046647701412439346,
0.01954847387969494,
0.02114574797451496,
0.06399992108345032,
-0.005617690272629261,
-0.05684848502278328,
0.019076550379395485,
0.036301713436841965,
0.029912613332271576,
0.012079395353794098,
0.03720925748348236,
-0.013604067265987396,
-0.005572312977164984,
0.018187159672379494,
0.01963922753930092,
-0.006439016666263342,
-0.050568290054798126,
0.06900955736637115,
0.0032036262564361095,
0.004705609753727913,
0.001953486120328307,
0.03782638534903526,
-0.07950075715780258,
0.019312512129545212,
0.010699930600821972,
0.03234482929110527,
-0.021653972566127777,
-0.05474298447370529,
0.029023220762610435,
-0.014003386721014977,
-0.013776500709354877,
-0.028569448739290237,
-0.03582979366183281,
0.01673508994281292,
-0.016662487760186195,
-0.009610879234969616,
0.047591548413038254,
-0.05376283824443817,
0.05768342316150665,
-0.0526374876499176,
0.0029427078552544117,
-0.03132838010787964,
-0.04298122972249985,
-0.002709015505388379,
-0.05855466425418854,
-0.0339602530002594,
0.012415186502039433,
0.004512757062911987,
0.0016925674863159657,
0.01722516305744648,
-0.06207593157887459,
-0.009374917484819889,
-0.003761765081435442,
-0.04127505049109459,
-0.024975579231977463,
-0.02316049300134182,
0.0011457728687673807,
0.01967552863061428,
-0.04149286076426506,
0.03735446557402611,
-0.06657734513282776,
0.0859624594449997,
0.03448662906885147,
-0.005082239862531424,
-0.01658080890774727,
0.02159951999783516,
0.012315357103943825,
0.01615426316857338,
0.030820155516266823,
-0.033706143498420715,
0.01133520994335413,
0.018677232787013054,
-0.03443217650055885,
0.007255805190652609,
0.02762560546398163,
0.048390187323093414,
0.008040829561650753,
0.038661327213048935,
0.02882356196641922,
0.04512302950024605,
-0.025066334754228592,
-0.023033438250422478,
-0.029059521853923798,
-0.05314571037888527,
-0.02276117540895939,
-0.02855129912495613,
-0.036519523710012436,
-0.004782750736922026,
0.0003167891700286418,
0.034341420978307724,
-0.012878033332526684,
0.05724780261516571,
0.07688703387975693,
0.029640350490808487,
0.04065791890025139,
-0.01291433535516262,
-0.024485506117343903,
-0.0706794410943985,
-0.06185812130570412,
-0.044868919998407364,
-0.010518421418964863,
-0.005944405682384968,
0.09474747627973557,
0.025356747210025787,
-0.01052749715745449,
0.0029064060654491186,
-0.04661140218377113,
-0.06661364436149597,
-0.018895043060183525,
0.02016560174524784,
-0.01325012557208538,
-0.01441178098320961,
0.034159913659095764,
0.014348252676427364,
-0.004637544043362141,
-0.05855466425418854,
-0.015273946337401867,
-0.014466233551502228,
-0.03559383004903793,
-0.004449228756129742,
0.03993188589811325,
-0.03011227212846279,
0.027226286008954048,
-0.025193389505147934,
-0.04417918622493744,
0.05089500546455383,
0.02860575169324875,
-0.0119341891258955,
0.04501412436366081,
0.00710606062784791,
0.004133857786655426,
-0.01774246245622635,
0.03811680153012276,
0.015673264861106873,
-0.016353921964764595,
-0.02083718404173851,
-0.03207256644964218,
-0.0032308525405824184,
-0.03372429311275482,
-0.03989558294415474,
-0.003378328401595354,
0.013703897595405579,
0.03105611726641655,
0.09402143955230713,
-0.029912613332271576,
0.010917740873992443,
0.06810201704502106,
-0.017143484205007553,
-0.03811680153012276,
0.0025025494396686554,
0.014148592948913574,
0.02552010491490364,
-0.00827679131180048,
-0.03797159343957901,
-0.027952320873737335,
-0.015927378088235855,
-0.008313092403113842,
0.03699144721031189,
-0.03975037857890129,
0.018858740106225014,
-0.04744634032249451,
-0.031037965789437294,
0.012369809672236443,
0.006411790382117033,
0.011888811364769936,
0.04969704896211624,
0.06476225703954697,
0.021653972566127777,
-0.010091876611113548,
0.011117399670183659,
0.005581388715654612,
-0.021926235407590866,
0.021472463384270668,
-0.04054901376366615,
0.026391346007585526,
0.06367320567369461,
0.030711250379681587,
0.00986499059945345,
0.01168915256857872,
0.01829606480896473,
0.05379914119839668,
-0.05779232829809189,
0.056013546884059906,
0.031092418357729912,
-0.021762877702713013,
0.019911490380764008,
0.01072715688496828,
-0.020292658358812332,
0.021563218906521797,
0.007786717731505632,
0.005263748578727245,
-0.07086094468832016,
0.022634118795394897,
0.05837315693497658,
0.02735334262251854,
0.015310248360037804,
-0.02591942436993122,
0.02325124852359295,
-0.03771748021245003,
0.005177531857043505,
-0.039060644805431366,
0.006393639370799065,
0.026264291256666183,
0.035539377480745316,
0.06988079845905304,
0.04073052480816841,
0.019076550379395485,
0.05339982360601425,
0.021744726225733757,
0.0020873486064374447,
-0.02016560174524784,
-0.09060908108949661,
0.06483486294746399,
-0.033615387976169586,
-0.038044195622205734,
0.02855129912495613,
-0.08973783999681473,
0.10186260938644409,
-0.021127598360180855,
-0.04309013485908508,
0.04515933245420456,
0.009583652950823307,
-0.05681218206882477,
-0.015528058633208275,
0.006479856092482805,
-0.01719793677330017,
-0.011516719125211239,
-0.0013079961063340306,
-0.11384217441082001,
0.013840029016137123,
-0.02441290393471718,
-0.012605770491063595,
-0.015518982894718647,
-0.012533167377114296,
-0.010663628578186035,
-0.01759725622832775,
-0.027371492236852646,
0.03236297890543938,
0.0005989783094264567,
-0.05913549289107323,
-0.07950075715780258,
-0.002180371666327119,
0.011208154261112213,
-0.003521266393363476,
0.04087572917342186,
-0.013531464152038097,
-0.06156770884990692,
-0.01271467562764883,
-0.016689714044332504,
-0.07499933987855911,
0.048971012234687805,
0.030330082401633263,
0.028478695079684258,
0.00010784161713672802,
0.029150277376174927,
-0.04363466054201126,
-0.018804287537932396,
0.031092418357729912,
0.02319679595530033,
-0.009665331803262234,
0.03837091103196144,
0.03568458557128906,
-0.008054442703723907,
0.005050476174801588,
-0.029840009286999702,
0.0014668161747977138,
-0.04809977114200592,
-0.0076596615836024284,
-0.0045422520488500595,
0.02435845136642456,
0.022507062181830406,
-0.01976628415286541,
0.0413113497197628,
0.03394210338592529,
-0.028133828192949295,
-0.022561514750123024,
0.023414606228470802,
-0.0869063064455986,
0.01887689158320427,
-0.06694035977125168,
0.06744858622550964,
-0.0032966495491564274,
0.003745883237570524,
-0.03481334447860718,
0.02610093355178833,
0.005172994453459978,
-0.012850807048380375,
0.006511620245873928,
-0.01793304644525051,
-0.042727116495370865,
-0.0752897560596466,
-0.03956886753439903,
-0.014529760926961899,
0.004630737472325563,
0.024921126663684845,
-0.0694451779127121,
-0.06632323563098907,
0.009629029780626297,
0.034268818795681,
-0.011253531090915203,
0.02047416754066944,
-0.07870211452245712,
-0.02971295267343521,
-0.0030765703413635492,
-0.01084513682872057,
0.023886527866125107,
0.00799999013543129,
0.07391028851270676,
-0.03494039922952652,
-0.0006851948564872146,
-0.06879174709320068,
-0.04929772764444351,
-0.0018264299724251032,
0.015056136064231396,
0.06614172458648682,
0.04849909245967865,
-0.019657379016280174,
-0.05931700021028519,
-0.02316049300134182,
0.0004903567605651915,
-0.02245260961353779,
0.03626541420817375,
-0.01008280087262392,
-0.021563218906521797,
0.052673786878585815,
-0.043888773769140244,
-0.008181499317288399,
0.03160064294934273,
0.03913324698805809,
-0.0017095839139074087,
0.040222298353910446,
0.02187178283929825,
0.02101869322359562,
-0.012034018523991108,
0.05002376437187195,
-0.05198405683040619,
0.010990343987941742,
0.008517289534211159,
-0.006230281665921211,
-0.0038071423768997192,
0.008893920108675957,
-0.018804287537932396,
0.04047641158103943,
-0.0018570595420897007,
-0.019421417266130447,
0.003768571652472019,
-0.01639929972589016,
0.02610093355178833,
-0.008993749506771564,
-0.019475869834423065,
0.026736212894320488,
-0.03739076480269432,
-0.0440702810883522,
0.020873485133051872,
-0.011208154261112213,
0.08204187452793121,
-0.04494152218103409,
-0.023432757705450058,
-0.014783873222768307,
-0.04073052480816841,
-0.03552122786641121,
0.036918845027685165,
-0.008562667295336723,
-0.06265676021575928,
-0.002260916167870164,
0.05379914119839668,
-0.018949495628476143,
0.025011882185935974,
-0.022743023931980133,
-0.007278493605554104,
-0.03847981616854668,
0.014802023768424988,
0.03524896502494812,
0.04399767890572548,
-0.027734510600566864,
0.034559231251478195,
0.07877472043037415,
-0.06033344939351082,
-0.015555284917354584,
-0.016508204862475395,
0.04142025485634804,
0.015473606064915657,
-0.02655470371246338,
-0.05586833879351616,
-0.021163899451494217,
-0.03497670218348503,
-0.024648863822221756,
-0.03337942808866501,
0.03390580043196678,
-0.011652850545942783,
-0.013132145628333092,
-0.01896764524281025,
0.026972174644470215,
-0.0014668161747977138,
0.04737373813986778,
-0.01294156163930893,
-0.027553001418709755,
0.0006999424076639116,
0.02695402316749096,
-0.06214853376150131,
0.04287232458591461,
0.031382832676172256,
0.018414044752717018,
-0.039024341851472855,
0.04218259081244469,
0.03711850196123123,
0.024703316390514374,
-0.025665313005447388,
-0.003963693510740995,
-0.028224583715200424,
-0.011444115079939365,
-0.014629591256380081,
-0.05604984611272812,
0.01923990808427334,
0.018341440707445145,
0.010218932293355465,
0.01927621103823185,
0.035630133002996445
] |
17,694 | imodels.tree.gosdt.pygosdt | score |
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
an n-by-m matrix of sample and their features
y : array-like, shape = [n_samples,]
an n-by-1 column of labels associated with each sample
weight : shape = [n_samples,]
an n-by-1 column of weights to apply to each sample's misclassification
Returns
---
real number : the accuracy produced by applying this model over the given dataset, with
optionals for weighted accuracy
| def score(self, X, y, weight=None):
"""
Parameters
---
X : matrix-like, shape = [n_samples, m_features]
an n-by-m matrix of sample and their features
y : array-like, shape = [n_samples,]
an n-by-1 column of labels associated with each sample
weight : shape = [n_samples,]
an n-by-1 column of weights to apply to each sample's misclassification
Returns
---
real number : the accuracy produced by applying this model over the given dataset, with
optionals for weighted accuracy
"""
validation.check_is_fitted(self)
if type(self.tree_) is TreeClassifier:
if not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X, columns=self.feature_names_)
return self.tree_.score(X, y, weight=weight)
else:
return self.tree_.score(X, y, sample_weight=weight)
| (self, X, y, weight=None) | [
0.028568370267748833,
0.010717676021158695,
0.0598592646420002,
0.02943957783281803,
0.04036598280072212,
-0.06080307438969612,
-0.014937590807676315,
0.04780755192041397,
0.05528542026877403,
0.019874436780810356,
0.007232843432575464,
-0.018023120239377022,
0.03895026817917824,
-0.014021007344126701,
-0.014048232696950436,
0.020164839923381805,
-0.010554324835538864,
-0.011561659164726734,
-0.022941816598176956,
0.042616602033376694,
-0.023177769035100937,
-0.0534341037273407,
0.03457607701420784,
0.06915215402841568,
-0.02820536680519581,
-0.02622699737548828,
0.004385535139590502,
-0.03419492393732071,
0.027515659108757973,
-0.0170883871614933,
-0.04733564704656601,
-0.002638581208884716,
-0.06933365762233734,
0.02417602762579918,
-0.005694616120308638,
-0.033795617520809174,
-0.015954000875353813,
-0.0075958468951284885,
-0.011271256022155285,
-0.0689343512058258,
-0.034793879836797714,
-0.046682242304086685,
-0.003155861049890518,
0.022560663521289825,
-0.031526848673820496,
0.049041762948036194,
-0.008612256497144699,
0.019021378830075264,
-0.008970722556114197,
-0.06817204505205154,
-0.018086645752191544,
-0.05299850180745125,
-0.018422424793243408,
0.016925035044550896,
0.004755344707518816,
0.020872697234153748,
0.0053906007669866085,
-0.012578069232404232,
0.04704524576663971,
-0.03804275766015053,
0.05619293078780174,
-0.002370866248384118,
-0.0005464903078973293,
0.023522622883319855,
-0.022851066663861275,
-0.04290700703859329,
-0.04450422152876854,
0.05499501898884773,
-0.000872909789904952,
0.04479462280869484,
-0.019692935049533844,
-0.021762056276202202,
0.048896562308073044,
0.022851066663861275,
0.025882143527269363,
0.05151018500328064,
-0.02283291518688202,
0.0191302802413702,
0.00889358390122652,
0.03297886252403259,
-0.0003232999297324568,
0.01822277158498764,
0.04250770062208176,
-0.04493982344865799,
-0.04722674563527107,
-0.04214469715952873,
0.03016558475792408,
-0.0074279578402638435,
0.008049600757658482,
0.013158874586224556,
-0.022760314866900444,
0.04947736859321594,
0.05909695848822594,
0.0036209591198712587,
0.017070235684514046,
0.00643877312541008,
-0.016952259466052055,
-0.014610888436436653,
-0.0132859256118536,
0.014583663083612919,
-0.015963075682520866,
0.046355538070201874,
0.05866135284304619,
0.04686374217271805,
-0.011779461055994034,
-0.019093981012701988,
-0.018712826073169708,
-0.008303703740239143,
-0.026989305391907692,
0.04566583037376404,
-0.0934370830655098,
-0.010971779003739357,
0.020255591720342636,
0.004705431871116161,
-0.029076574370265007,
-0.0797155499458313,
-0.0312545970082283,
0.005708228796720505,
-0.08813723176717758,
0.004412760492414236,
0.017006710171699524,
0.050530076026916504,
0.0117522357031703,
-0.04377821460366249,
-0.0397125743329525,
-0.03775235638022423,
0.012133389711380005,
-0.018712826073169708,
-0.006475073751062155,
-0.04849725961685181,
-0.016008451581001282,
0.0017639697762206197,
0.007722897920757532,
0.010599699802696705,
-0.0004075280739925802,
-0.00940178893506527,
0.021380901336669922,
-0.0037911171093583107,
0.05582992732524872,
-0.024085277691483498,
0.09510689973831177,
-0.008535117842257023,
0.056955236941576004,
-0.03083714097738266,
0.07441570609807968,
0.00410193856805563,
0.013258700259029865,
0.035901039838790894,
-0.02047339268028736,
0.0030560351442545652,
-0.035084281116724014,
-0.019638486206531525,
0.08523320406675339,
-0.07927995175123215,
0.01383950561285019,
0.015790648758411407,
-0.0025909370742738247,
-0.07089456915855408,
0.044867224991321564,
-0.050239674746990204,
0.00789986178278923,
-0.037861257791519165,
-0.016171801835298538,
0.025010935962200165,
0.03588289022445679,
0.0808771625161171,
-0.02590029500424862,
0.03544728457927704,
-0.059205859899520874,
-0.020418941974639893,
-0.015545621514320374,
-0.06995075941085815,
-0.06465090811252594,
0.03392266854643822,
-0.004535274114459753,
-0.008489742875099182,
0.001990846823900938,
0.021036049351096153,
0.02767901122570038,
0.06824464350938797,
0.06672003120183945,
0.011107904836535454,
-0.032634008675813675,
-0.021126799285411835,
-0.014656263403594494,
-0.015100942924618721,
0.0005362808587960899,
0.04835205525159836,
-0.04900546371936798,
0.06417900323867798,
0.025718793272972107,
-0.038296863436698914,
0.0038138048257678747,
-0.002036222256720066,
0.034739427268505096,
0.012196915224194527,
0.006502299103885889,
-0.015663597732782364,
0.022742165252566338,
0.041600193828344345,
0.054123811423778534,
-0.08487020432949066,
0.06563101708889008,
0.02178020589053631,
-0.01638052985072136,
0.034213073551654816,
-0.04181799665093422,
0.06548582017421722,
-0.06860765069723129,
-0.07002335786819458,
0.006456923671066761,
-0.01484683994203806,
-0.050384875386953354,
0.05808055028319359,
0.057100437581539154,
0.0030583038460463285,
0.0239400751888752,
-0.028804322704672813,
-0.044286418706178665,
-0.025537291541695595,
-0.002175751840695739,
0.04653703793883324,
-0.028023865073919296,
0.02330482006072998,
0.032924409955739975,
-0.08312778174877167,
0.06207358464598656,
-0.006248196586966515,
0.01441123615950346,
-0.013512802310287952,
0.031091243028640747,
-0.09481649845838547,
0.03453977778553963,
-0.025918444618582726,
-0.02517428807914257,
-0.0033056000247597694,
0.016226252540946007,
0.0341767743229866,
-0.03477573022246361,
0.033831920474767685,
-0.006733713671565056,
-0.01265974435955286,
-0.0009591231355443597,
-0.059677764773368835,
-0.023050718009471893,
0.008326390758156776,
0.048170555382966995,
-0.026844102889299393,
0.014547361992299557,
-0.015926774591207504,
-0.0353383831679821,
-0.010681375861167908,
-0.01611735299229622,
-0.03521133214235306,
-0.022415461018681526,
-0.033069610595703125,
0.014320485293865204,
-0.004896008875221014,
-0.03276105970144272,
0.012260440737009048,
-0.039204370230436325,
0.02958477847278118,
-0.0010617850348353386,
0.05572102591395378,
-0.05630183219909668,
-0.0011168026831001043,
0.01614457741379738,
0.011625184677541256,
0.016607407480478287,
0.006152908317744732,
-0.03375931829214096,
0.0011451623868197203,
0.022760314866900444,
0.024611633270978928,
-0.02499278634786606,
-0.0007067223195917904,
-0.017587516456842422,
-0.01295014750212431,
0.018821727484464645,
0.013694304041564465,
-0.017360638827085495,
-0.04283440485596657,
-0.0072419182397425175,
0.0025500990450382233,
-0.013104423880577087,
0.007586771622300148,
-0.02345002070069313,
-0.0150374174118042,
-0.014320485293865204,
-0.018712826073169708,
0.016725383698940277,
-0.00026672243257053196,
-0.002073657000437379,
0.00216100481338799,
-0.006629350129514933,
-0.05350670590996742,
-0.04733564704656601,
-0.015899550169706345,
0.03116384521126747,
0.05521282181143761,
-0.06181948259472847,
0.05365190654993057,
0.025446539744734764,
-0.05978666618466377,
0.012015413492918015,
0.024756833910942078,
0.06258179247379303,
-0.005168261472135782,
-0.008698469959199429,
0.02134460210800171,
0.05495871976017952,
0.07162057608366013,
-0.005499501712620258,
-0.008957109414041042,
-0.06225508823990822,
-0.014129908755421638,
0.04704524576663971,
-0.022742165252566338,
0.028495769947767258,
0.010935477912425995,
-0.03375931829214096,
0.00851243082433939,
0.03996667638421059,
0.023087017238140106,
0.015527471899986267,
-0.002874533412978053,
0.019584035500884056,
0.01898507960140705,
0.014992041513323784,
-0.010354672558605671,
0.015209843404591084,
-0.008085900917649269,
0.04334260895848274,
-0.04250770062208176,
-0.013013673014938831,
0.007400732487440109,
0.009365488775074482,
0.019783686846494675,
-0.026698902249336243,
0.05945996195077896,
-0.06348930299282074,
-0.002155332826077938,
-0.01385765615850687,
0.006965128239244223,
0.02742490917444229,
-0.011271256022155285,
-0.04181799665093422,
0.04838835820555687,
0.04178169369697571,
0.00985554326325655,
-0.04780755192041397,
-0.006647500209510326,
0.024756833910942078,
0.00975571759045124,
-0.03880506753921509,
-0.001171820447780192,
-0.01775086671113968,
0.0003082693147007376,
0.014429386705160141,
-0.012215065769851208,
-0.03551988676190376,
-0.05481351912021637,
-0.00932918768376112,
0.003947662189602852,
-0.011171430349349976,
0.020981598645448685,
0.0029584779404103756,
0.024048976600170135,
0.013195174746215343,
-0.046065136790275574,
0.020636744797229767,
-0.029149174690246582,
-0.08603180944919586,
0.046137735247612,
0.036608897149562836,
0.07307258993387222,
-0.028423167765140533,
-0.0009245243272744119,
0.06668373197317123,
-0.0012716463534161448,
0.04047488048672676,
0.01894877851009369,
0.002217723987996578,
-0.02167130447924137,
-0.02972998097538948,
-0.05318000167608261,
0.012922922149300575,
-0.0037956545129418373,
-0.042798105627298355,
-0.029366977512836456,
0.014030082151293755,
0.025265038013458252,
-0.033360015600919724,
-0.06374340504407883,
-0.05630183219909668,
0.006343484856188297,
-0.005962331313639879,
0.022524362429976463,
-0.07176578044891357,
-0.015718048438429832,
-0.04196319729089737,
-0.009837392717599869,
-0.04327000677585602,
-0.010400048457086086,
-0.051437586545944214,
0.09350968152284622,
-0.03423122316598892,
0.05423271283507347,
-0.05183688923716545,
0.05013077333569527,
-0.013222400099039078,
0.06632072478532791,
0.021798355504870415,
0.03283366188406944,
-0.07506910711526871,
0.011280331760644913,
0.0908234566450119,
0.04791645333170891,
0.049658868461847305,
0.016453130170702934,
0.02105419896543026,
0.02330482006072998,
0.019547734409570694,
0.01397563237696886,
0.057427141815423965,
-0.05601142719388008,
-0.014874065294861794,
-0.07292738556861877,
0.03031078539788723,
-0.02403082698583603,
-0.07176578044891357,
-0.018712826073169708,
-0.06276329606771469,
-0.018522249534726143,
0.007754660677164793,
-0.029076574370265007,
-0.014638112857937813,
0.02484758384525776,
-0.024756833910942078,
-0.004004381597042084,
0.019602185115218163,
-0.0353383831679821,
0.05201839283108711,
-0.0012693776516243815,
-0.03909546881914139,
-0.06632072478532791,
-0.00930196326225996,
-0.03352336585521698,
-0.08820983022451401,
-0.0259910449385643,
0.01531874481588602,
-0.0021576015278697014,
0.04631923884153366,
0.07089456915855408,
-0.024375680834054947,
0.031000493094325066,
-0.0013601285172626376,
-0.056084029376506805,
0.08450719714164734,
0.005426901392638683,
-0.015282444655895233,
0.00034910719841718674,
0.023667823523283005,
0.0025319489650428295,
-0.06926105171442032,
-0.014011932536959648,
0.012641594745218754,
-0.005794442258775234,
0.05274439975619316,
-0.004598799627274275,
0.06214618682861328,
-0.028259817510843277,
-0.041454993188381195,
-0.010708601213991642,
-0.006053082179278135,
0.0738711953163147,
0.013140724040567875,
-0.03686299920082092,
0.009601440280675888,
-0.026590000838041306,
0.027116356417536736,
0.019366232678294182,
0.0584072507917881,
-0.018004970625042915,
0.02052784338593483,
-0.03323296457529068,
-0.013476502150297165,
-0.020509693771600723,
0.03588289022445679,
-0.020745646208524704,
-0.01748768985271454,
0.033505216240882874,
0.06559471786022186,
-0.012677894905209541,
-0.07920734584331512,
-0.015019266866147518,
0.015364119783043861,
0.011779461055994034,
-0.0680268406867981,
0.025482840836048126,
0.03974887356162071,
0.0034099635668098927,
-0.05466831475496292,
-0.004142776597291231,
0.008244715631008148,
0.034412726759910583,
0.01658925600349903,
-0.008771070279181004,
0.008258327841758728,
0.03530208393931389,
-0.05884285643696785,
0.00209861365146935,
0.04170909523963928,
0.01649850606918335,
0.012196915224194527,
0.03630034253001213,
0.015763424336910248,
0.07790053635835648,
0.020037788897752762,
0.01728803850710392,
0.009288350120186806,
-0.04221729934215546,
0.02925807610154152,
-0.022215809673070908,
0.03782495856285095,
0.07227398455142975,
-0.0003153592406306416,
0.016725383698940277,
0.06544952094554901,
0.031145693734288216,
0.01798681914806366,
-0.015246143564581871,
-0.011897437274456024,
0.01903953030705452,
-0.04766235128045082,
-0.005104735493659973,
0.01784161850810051,
-0.047698650509119034,
-0.03624589368700981,
0.013140724040567875,
0.005018522497266531,
-0.016743533313274384,
0.015690824016928673,
-0.004882396198809147,
0.044576819986104965,
0.013875805772840977,
-0.04290700703859329,
-0.004882396198809147,
-0.018467798829078674,
0.0004177375521976501,
0.010726751759648323,
-0.025736942887306213,
-0.017015784978866577,
0.05913325771689415,
0.0940178856253624,
0.06094827502965927,
-0.009206674061715603,
0.04003927856683731,
0.03749825432896614,
-0.005336150527000427,
-0.02675335295498371,
-0.05535802245140076,
0.06428790837526321,
-0.047989051789045334,
0.058479852974414825,
0.00511834817007184,
-0.039494771510362625,
0.008653094060719013,
-0.049658868461847305,
-0.03760715574026108,
-0.01807757094502449,
0.012605293653905392,
0.0024843045976012945,
0.02158055454492569,
-0.04624663665890694,
0.06828094273805618,
-0.008771070279181004,
-0.040402282029390335,
-0.05880655348300934,
0.031290896236896515,
-0.033450767397880554,
0.011026228778064251,
0.054740916937589645,
0.023195918649435043,
-0.01848595030605793,
-0.054740916937589645,
-0.009801092557609081,
0.008943497203290462,
-0.05510392040014267,
-0.003782042069360614,
-0.008798295632004738,
-0.04305220767855644,
0.022506212815642357,
0.0029221775475889444,
0.0170883871614933,
-0.011715935543179512,
-0.06407010555267334,
-0.023903775960206985,
0.06573992222547531,
-0.02628144808113575,
0.020890846848487854,
0.011734086088836193,
0.008625868707895279,
-0.01815924607217312,
0.023613372817635536,
-0.0034054259303957224,
-0.011924662627279758,
-0.010254846885800362,
0.008839133195579052,
-0.007396194618195295,
-0.006470535881817341,
-0.014202509075403214,
0.049223266541957855,
0.0046033370308578014,
0.021017897874116898,
-0.0025773243978619576,
0.0065703620202839375,
0.007201080676168203,
-0.02417602762579918,
-0.02972998097538948,
0.007936162874102592,
-0.004945921711623669,
0.028640970587730408,
0.019674785435199738,
-0.013267775066196918,
0.013222400099039078,
-0.02406712807714939,
-0.07205618172883987,
0.022125059738755226,
0.014347710646688938,
-0.013794130645692348,
-0.047553449869155884,
0.009438089095056057,
-0.027606410905718803,
0.03404972329735756,
-0.04512132704257965,
0.015173543244600296,
-0.0064478483982384205,
0.018858028575778008,
-0.03317851200699806,
-0.06225508823990822,
0.025882143527269363,
0.0226332638412714,
0.012596218846738338,
-0.005522189661860466,
-0.023994525894522667,
-0.04900546371936798,
-0.008957109414041042,
0.05873395502567291,
0.00420403340831399,
-0.025718793272972107,
-0.05463201552629471,
-0.03188985213637352,
-0.0007458585896529257,
0.0290584247559309,
0.06327150017023087,
0.022215809673070908,
0.03717155009508133,
-0.021362751722335815,
-0.0031263669952750206,
-0.0943082869052887,
0.005013984628021717,
0.0575360432267189,
0.030818991363048553,
-0.0191302802413702,
0.05132868513464928,
0.015327819623053074,
-0.023921925574541092,
-0.009837392717599869,
-0.06603032350540161,
-0.024339379742741585,
0.0773923322558403,
0.012269515544176102,
0.010318372398614883,
-0.024629782885313034,
0.003711709985509515,
-0.01693410985171795,
-0.03495723009109497,
0.008920809254050255,
-0.013512802310287952,
0.06417900323867798,
0.06530431658029556,
-0.008013300597667694,
0.01743323914706707,
0.05887915566563606,
0.01143460813909769,
-0.041600193828344345,
0.025863993912935257,
-0.0025500990450382233,
-0.06345299631357193,
-0.05463201552629471,
-0.0037139789201319218,
0.039494771510362625,
-0.011879286728799343,
-0.010064270347356796,
0.050856780260801315,
-0.045484330505132675,
-0.0144566111266613,
0.04301590472459793,
0.021834656596183777,
-0.02887692302465439,
0.0162081029266119,
-0.03602809086441994,
0.02782421186566353,
0.024629782885313034,
0.009728492237627506,
-0.09205766767263412,
0.0706767663359642,
0.03486647829413414,
-0.06432420760393143,
-0.0055494150146842,
0.004192689433693886,
-0.0478801503777504,
-0.005395138636231422,
-0.0056810034438967705,
0.058988057076931,
0.005354300606995821,
0.0020827322732657194,
-0.014538287185132504,
-0.004310665652155876,
0.034848328679800034,
0.0010215142974629998,
0.010690450668334961,
0.00266126892529428,
-0.011670560576021671,
0.01815924607217312,
0.05702783912420273,
-0.060113366693258286,
0.03539283573627472,
-0.028078315779566765,
0.02786051295697689,
-0.017451390624046326,
0.017369713634252548,
-0.008299166336655617,
-0.023522622883319855,
-0.0017923294799402356,
-0.010490799322724342,
-0.0823291763663292,
0.11804871261119843,
0.05960516259074211,
0.02633589878678322,
0.006388860289007425,
0.00909777358174324,
0.01143460813909769,
-0.014683488756418228,
-0.0025455616414546967,
-0.030474137514829636,
0.05448681488633156,
0.02824166603386402,
-0.013512802310287952,
-0.0058670430444180965,
-0.027642710134387016,
0.038550965487957,
0.030818991363048553,
0.038732465356588364,
0.04268920421600342,
0.0006528389640152454,
-0.079425148665905,
0.030383387580513954,
-0.02067304588854313,
0.023431871086359024,
-0.05895175784826279,
-0.035320233553647995,
0.014447536319494247,
-0.03568323701620102,
0.014211583882570267,
0.04446791857481003,
0.0905330553650856
] |
17,700 | imodels.discretization.discretizer | RFDiscretizer |
Discretize numeric data into bins using RF splits.
Parameters
----------
rf_model : RandomForestClassifer() or RandomForestRegressor()
RF model from which to extract splits for discretization.
Default is RandomForestClassifer(n_estimators = 500) or
RandomForestRegressor(n_estimators = 500)
classification : boolean; default=False
Used only if rf_model=None. If True,
rf_model=RandomForestClassifier(n_estimators = 500).
Else, rf_model=RandomForestRegressor(n_estimators = 500)
n_bins : int or array-like of shape (len(dcols),), default=2
Number of bins to discretize each feature into.
dcols : list of strings
The names of the columns to be discretized; by default,
discretize all float and int columns in X.
encode : {‘onehot’, ‘ordinal’}, default=’onehot’
Method used to encode the transformed result.
onehot - Encode the transformed result with one-hot encoding and
return a dense array.
ordinal - Return the bin identifier encoded as an integer value.
strategy : {‘uniform’, ‘quantile’}, default=’quantile’
Strategy used to choose RF split points.
uniform - RF split points chosen to be uniformly spaced out.
quantile - RF split points chosen based on equally-spaced quantiles.
backup_strategy : {‘uniform’, ‘quantile’, ‘kmeans’}, default=’quantile’
Strategy used to define the widths of the bins if no rf splits exist for
that feature. Used in KBinsDiscretizer.
uniform
All bins in each feature have identical widths.
quantile
All bins in each feature have the same number of points.
kmeans
Values in each bin have the same nearest center of a 1D
k-means cluster.
onehot_drop : {‘first’, ‘if_binary’} or array-like of shape (len(dcols),), default='if_binary'
Specifies a methodology to use to drop one of the categories
per feature when encode = "onehot".
None
Retain all features (the default).
‘first’
Drop the first y_str in each feature. If only one y_str
is present, the feature will be dropped entirely.
‘if_binary’
Drop the first y_str in each feature with two categories.
Features with 1 or more than 2 categories are left intact.
Attributes
----------
rf_splits : dictionary where
key = feature name
value = array of all RF split threshold values
bin_edges_ : dictionary where
key = feature name
value = array of bin edges used for discretization, taken from
RF split values
missing_rf_cols_ : array-like
List of features that were not used in RF
backup_discretizer_ : object of class BasicDiscretizer()
Discretization method used to bin numeric data for features
in missing_rf_cols_
onehot_ : object of class OneHotEncoder()
One hot encoding fit. Ignored if encode != 'onehot'
| class RFDiscretizer(AbstractDiscretizer):
"""
Discretize numeric data into bins using RF splits.
Parameters
----------
rf_model : RandomForestClassifer() or RandomForestRegressor()
RF model from which to extract splits for discretization.
Default is RandomForestClassifer(n_estimators = 500) or
RandomForestRegressor(n_estimators = 500)
classification : boolean; default=False
Used only if rf_model=None. If True,
rf_model=RandomForestClassifier(n_estimators = 500).
Else, rf_model=RandomForestRegressor(n_estimators = 500)
n_bins : int or array-like of shape (len(dcols),), default=2
Number of bins to discretize each feature into.
dcols : list of strings
The names of the columns to be discretized; by default,
discretize all float and int columns in X.
encode : {‘onehot’, ‘ordinal’}, default=’onehot’
Method used to encode the transformed result.
onehot - Encode the transformed result with one-hot encoding and
return a dense array.
ordinal - Return the bin identifier encoded as an integer value.
strategy : {‘uniform’, ‘quantile’}, default=’quantile’
Strategy used to choose RF split points.
uniform - RF split points chosen to be uniformly spaced out.
quantile - RF split points chosen based on equally-spaced quantiles.
backup_strategy : {‘uniform’, ‘quantile’, ‘kmeans’}, default=’quantile’
Strategy used to define the widths of the bins if no rf splits exist for
that feature. Used in KBinsDiscretizer.
uniform
All bins in each feature have identical widths.
quantile
All bins in each feature have the same number of points.
kmeans
Values in each bin have the same nearest center of a 1D
k-means cluster.
onehot_drop : {‘first’, ‘if_binary’} or array-like of shape (len(dcols),), default='if_binary'
Specifies a methodology to use to drop one of the categories
per feature when encode = "onehot".
None
Retain all features (the default).
‘first’
Drop the first y_str in each feature. If only one y_str
is present, the feature will be dropped entirely.
‘if_binary’
Drop the first y_str in each feature with two categories.
Features with 1 or more than 2 categories are left intact.
Attributes
----------
rf_splits : dictionary where
key = feature name
value = array of all RF split threshold values
bin_edges_ : dictionary where
key = feature name
value = array of bin edges used for discretization, taken from
RF split values
missing_rf_cols_ : array-like
List of features that were not used in RF
backup_discretizer_ : object of class BasicDiscretizer()
Discretization method used to bin numeric data for features
in missing_rf_cols_
onehot_ : object of class OneHotEncoder()
One hot encoding fit. Ignored if encode != 'onehot'
"""
def __init__(self, rf_model=None, classification=False,
n_bins=2, dcols=[], encode='onehot',
strategy='quantile', backup_strategy='quantile',
onehot_drop='if_binary'):
super().__init__(n_bins=n_bins, dcols=dcols,
encode=encode, strategy=strategy,
onehot_drop=onehot_drop)
self.backup_strategy = backup_strategy
self.rf_model = rf_model
if rf_model is None:
self.classification = classification
def _validate_args(self):
"""
Check if encode, strategy, backup_strategy arguments are valid.
"""
super()._validate_args()
valid_backup_strategy = ('uniform', 'quantile', 'kmeans')
if (self.backup_strategy not in valid_backup_strategy):
raise ValueError("Valid options for 'strategy' are {}. Got strategy={!r} instead."
.format(valid_backup_strategy, self.backup_strategy))
def _get_rf_splits(self, col_names):
"""
Get all splits in random forest ensemble
Parameters
----------
col_names : array-like of shape (n_features,)
Column names for X used to train rf_model
Returns
-------
rule_dict : dictionary where
key = feature name
value = array of all RF split threshold values
"""
rule_dict = {}
for model in self.rf_model.estimators_:
tree = model.tree_
tree_it = enumerate(zip(tree.children_left,
tree.children_right,
tree.feature,
tree.threshold))
for node_idx, data in tree_it:
left, right, feature, th = data
if (left != -1) | (right != -1):
feature = col_names[feature]
if feature in rule_dict:
rule_dict[feature].append(th)
else:
rule_dict[feature] = [th]
return rule_dict
def _fit_rf(self, X, y=None):
"""
Fit random forest (if necessary) and obtain RF split thresholds
Parameters
----------
X : data frame of shape (n_samples, n_features)
Training data used to fit RF
y : array-like of shape (n_samples,)
Training response vector used to fit RF
Returns
-------
rf_splits : dictionary where
key = feature name
value = array of all RF split threshold values
"""
# If no rf_model given, train default random forest model
if self.rf_model is None:
if y is None:
raise ValueError("Must provide y if rf_model is not given.")
if self.classification:
self.rf_model = RandomForestClassifier(n_estimators=500)
else:
self.rf_model = RandomForestRegressor(n_estimators=500)
self.rf_model.fit(X, y)
else:
# provided rf model has not yet been trained
if not check_is_fitted(self.rf_model):
if y is None:
raise ValueError(
"Must provide y if rf_model has not been trained.")
self.rf_model.fit(X, y)
# get all random forest split points
self.rf_splits = self._get_rf_splits(list(X.columns))
def reweight_n_bins(self, X, y=None, by="nsplits"):
"""
Reallocate number of bins per feature.
Parameters
----------
X : data frame of shape (n_samples, n_features)
(Training) data to be discretized.
y : array-like of shape (n_samples,)
(Training) response vector. Required only if
rf_model = None or rf_model has not yet been fitted
by : {'nsplits'}, default='nsplits'
Specifies how to reallocate number of bins per feature.
nsplits
Reallocate number of bins so that each feature
in dcols get at a minimum of 2 bins with the
remaining bins distributed proportionally to the
number of RF splits using that feature
Returns
-------
self.n_bins : array of shape (len(dcols),)
number of bins per feature reallocated according to
'by' argument
"""
# initialization and error checking
self._fit_preprocessing(X)
# get all random forest split points
self._fit_rf(X=X, y=y)
# get total number of bins to reallocate
total_bins = self.n_bins.sum()
# reweight n_bins
if by == "nsplits":
# each col gets at least 2 bins; remaining bins get
# reallocated based on number of RF splits using that feature
n_rules = np.array([len(self.rf_splits[col])
for col in self.dcols | (rf_model=None, classification=False, n_bins=2, dcols=[], encode='onehot', strategy='quantile', backup_strategy='quantile', onehot_drop='if_binary') | [
0.005859297700226307,
-0.0050506736151874065,
-0.021721770986914635,
-0.00352901266887784,
0.014519071206450462,
-0.03567248210310936,
-0.028790131211280823,
0.015841806307435036,
-0.008850949816405773,
-0.06601268798112869,
-0.02957550436258316,
0.05278535187244415,
0.005197931081056595,
-0.01652383990585804,
-0.010478532873094082,
0.024346571415662766,
-0.02817009948194027,
0.03852462396025658,
0.028066759929060936,
0.0023858295753598213,
-0.04765975475311279,
-0.01024602074176073,
-0.0360858328640461,
0.0213704202324152,
0.0070993611589074135,
-0.0008648147922940552,
0.02606199122965336,
-0.0277154091745615,
0.02219712920486927,
0.03414306789636612,
-0.042575497180223465,
-0.007900235243141651,
-0.039041317999362946,
-0.00882511492818594,
-0.02097773365676403,
-0.09333541244268417,
0.044559597969055176,
0.0744037851691246,
-0.003988869488239288,
0.012968992814421654,
-0.011387912556529045,
-0.046998389065265656,
-0.035073116421699524,
-0.028087427839636803,
0.0072543686255812645,
0.06572334468364716,
0.002468500519171357,
0.02624800056219101,
0.023953884840011597,
-0.0277774129062891,
-0.023767875507473946,
-0.0675007626414299,
-0.004807827994227409,
0.05774560198187828,
-0.006815179716795683,
0.03009219653904438,
0.017536558210849762,
0.005081675015389919,
0.023581866174936295,
-0.03984735906124115,
0.012565972283482552,
0.04923050478100777,
0.03941333666443825,
0.00040205169352702796,
0.008861283771693707,
-0.00041981300455518067,
-0.05654687434434891,
0.038400620222091675,
-0.01388870645314455,
0.010602539405226707,
0.012751981616020203,
-0.028831465169787407,
0.06559933722019196,
0.05671221762895584,
0.0021339417435228825,
0.01359935849905014,
0.010240853764116764,
-0.04600634053349495,
0.005513113457709551,
-0.007796896621584892,
0.0490238256752491,
0.043526213616132736,
0.033523038029670715,
-0.049313172698020935,
-0.021577097475528717,
-0.03162160888314247,
0.011925272643566132,
0.020802058279514313,
0.0556788295507431,
-0.05799361690878868,
-0.029162149876356125,
0.02746739611029625,
0.03829728066921234,
0.01810492016375065,
0.01619315706193447,
-0.022569147869944572,
-0.051545288413763046,
-0.014095383696258068,
0.0021494426764547825,
-0.07295703887939453,
-0.007931236177682877,
0.03875197097659111,
-0.004590816795825958,
0.0990397036075592,
-0.017174873501062393,
-0.008530599996447563,
-0.03238631412386894,
0.011201903223991394,
-0.08072810620069504,
-0.021639099344611168,
-0.07461045682430267,
0.031208252534270287,
0.028190767392516136,
0.051421280950307846,
-0.06894750893115997,
-0.04980919882655144,
-0.04344354197382927,
0.024077890440821648,
0.006882349960505962,
-0.024925267323851585,
0.020678050816059113,
-0.020750388503074646,
-0.0373879000544548,
-0.0061434791423380375,
-0.024615252390503883,
0.02542129158973694,
0.01924164406955242,
0.07924003154039383,
-0.03606516867876053,
-0.017236877232789993,
-0.004192963242530823,
-0.0035057615023106337,
-0.03771858289837837,
0.023457858711481094,
0.008153414353728294,
-0.0614657923579216,
-0.006019472610205412,
0.038400620222091675,
0.031146250665187836,
-0.06659138202667236,
0.08337356895208359,
-0.008995624259114265,
0.04106675460934639,
-0.02289983071386814,
0.02310650795698166,
0.011253572069108486,
0.007238868158310652,
-0.011997610330581665,
-0.0031931623816490173,
-0.014932425692677498,
-0.06282985955476761,
0.043732888996601105,
0.0018859292613342404,
-0.03478376939892769,
0.031084246933460236,
0.029162149876356125,
-0.015387116000056267,
-0.03734656423330307,
-0.02323051355779171,
-0.014736082404851913,
-0.04658503457903862,
-0.028914136812090874,
0.0045701488852500916,
-0.0721716657280922,
-0.008845782838761806,
0.05109059810638428,
-0.017732901498675346,
-0.05278535187244415,
-0.014736082404851913,
0.03585848957300186,
0.004931834060698748,
-0.016606511548161507,
-0.06419392675161362,
0.021845776587724686,
-0.05183463543653488,
0.0932527408003807,
0.0277774129062891,
-0.03176628053188324,
-0.018910961225628853,
0.08606037497520447,
0.04472494125366211,
-0.0671287477016449,
-0.012049279175698757,
-0.06580600887537003,
-0.006810012739151716,
0.002877979539334774,
-0.002857311861589551,
-0.01780523918569088,
0.036829873919487,
0.04637835919857025,
0.020988067612051964,
-0.039496008306741714,
0.0013576106866821647,
-0.012834652327001095,
0.00920746847987175,
-0.0548107884824276,
0.012266290374100208,
-0.00588513258844614,
0.05877899006009102,
0.004818161483854055,
0.027632737532258034,
0.029823515564203262,
0.0372018925845623,
0.0045623984187841415,
-0.03862796351313591,
0.020843392238020897,
-0.038214609026908875,
0.009682825766503811,
-0.006045307498425245,
-0.002313492586836219,
-0.022362470626831055,
-0.017546892166137695,
0.017670897766947746,
0.052454665303230286,
0.06212715804576874,
-0.022610483691096306,
0.022631149739027023,
-0.002028019865974784,
0.0000021848441065230872,
-0.03465976193547249,
-0.016792520880699158,
0.026682022958993912,
-0.05018121749162674,
-0.0012097073486074805,
-0.017371216788887978,
-0.01969633437693119,
0.015418116934597492,
-0.025317953899502754,
0.06130044907331467,
-0.04294751584529877,
-0.012472967617213726,
-0.06696340441703796,
0.00525993388146162,
-0.03360570967197418,
0.012338627129793167,
0.02509060874581337,
0.022796493023633957,
-0.0021494426764547825,
-0.01055086962878704,
-0.010602539405226707,
-0.03323369100689888,
0.004699322395026684,
0.0032370812259614468,
-0.05960569530725479,
0.026930036023259163,
0.012948324903845787,
0.030257537961006165,
0.04918916895985603,
0.016048481687903404,
-0.046295687556266785,
-0.014591408893465996,
-0.05274401605129242,
-0.024863263592123985,
0.0050119212828576565,
0.023643868044018745,
-0.08382826298475266,
-0.022424472495913506,
0.03085690177977085,
0.009181633591651917,
0.019748004153370857,
0.021990451961755753,
0.012183619663119316,
0.010194351896643639,
0.04427025094628334,
-0.06200315058231354,
0.02225913107395172,
-0.012069947086274624,
-0.012410963885486126,
0.0306708924472332,
-0.04123209789395332,
0.05452143773436546,
0.02713671326637268,
-0.04670904204249382,
0.0053736064583063126,
-0.03691254183650017,
0.02502860501408577,
-0.027054041624069214,
-0.03298567607998848,
0.007621220778673887,
0.002624800195917487,
0.022486476227641106,
-0.07068359106779099,
0.026516681537032127,
0.022445140406489372,
0.03360570967197418,
0.017092201858758926,
-0.05832429975271225,
-0.04993320629000664,
-0.014229723252356052,
0.0007550175650976598,
-0.05526547506451607,
-0.021515093743801117,
0.034887105226516724,
0.04662637040019035,
0.06493797153234482,
0.0018988465890288353,
-0.00445130979642272,
-0.07423844188451767,
0.012183619663119316,
0.011759931221604347,
-0.012648642994463444,
0.010457864962518215,
0.01935531757771969,
0.011987276375293732,
0.0013834453420713544,
-0.039434004575014114,
0.06415259838104248,
-0.014622409828007221,
-0.029596172273159027,
0.04220347851514816,
0.026661355048418045,
0.01963433064520359,
0.05286801978945732,
-0.030236870050430298,
-0.013072331435978413,
-0.06316054612398148,
0.03317168727517128,
-0.007585052400827408,
0.009946338832378387,
0.06249917671084404,
-0.02484259568154812,
-0.004464226774871349,
-0.01954132691025734,
0.03993003070354462,
0.022403806447982788,
0.037181224673986435,
0.03856595978140831,
-0.0042394655756652355,
-0.07002222537994385,
-0.014312393963336945,
-0.013475351966917515,
-0.02637200802564621,
0.009424478746950626,
0.007388709113001823,
0.005797294899821281,
0.01123290415853262,
0.03151826933026314,
-0.032365646213293076,
-0.032572321593761444,
-0.015180438756942749,
-0.0001805195934139192,
0.033130351454019547,
-0.0010269272606819868,
0.04112875834107399,
0.008401427417993546,
0.0033895056694746017,
0.02670269086956978,
0.021287748590111732,
0.03009219653904438,
0.08870584517717361,
0.023705871775746346,
-0.02670269086956978,
0.0025537549518048763,
0.06402859091758728,
0.07055959105491638,
-0.052454665303230286,
-0.024925267323851585,
0.02238313853740692,
0.04210013896226883,
-0.04811444506049156,
0.0018988465890288353,
-0.03302701190114021,
-0.006298487074673176,
0.035961829125881195,
0.011470583267509937,
-0.0011838726932182908,
-0.07489980757236481,
0.06378057599067688,
-0.010297690518200397,
-0.06609535962343216,
0.014932425692677498,
-0.035631146281957626,
-0.011832267977297306,
-0.006680839695036411,
0.031270258128643036,
-0.0013498603366315365,
-0.037057217210531235,
-0.019706668332219124,
0.02329251728951931,
0.08787913620471954,
-0.015035764314234257,
0.01242129784077406,
-0.010705878026783466,
-0.004939584527164698,
-0.03042287938296795,
-0.03691254183650017,
-0.018218593671917915,
-0.045716989785432816,
0.0793227031826973,
-0.06601268798112869,
-0.009305640123784542,
0.020750388503074646,
-0.011749597266316414,
0.011863269843161106,
-0.04856913536787033,
-0.012865654192864895,
0.02316851168870926,
-0.014167720451951027,
0.005611285101622343,
0.0034540921915322542,
-0.026103327050805092,
-0.03811126947402954,
-0.015893474221229553,
0.04114942625164986,
0.027860082685947418,
0.02542129158973694,
0.015056432224810123,
0.04393956810235977,
-0.005962636321783066,
0.015004762448370457,
-0.00856676883995533,
0.03749123960733414,
0.02232113480567932,
0.01927264593541622,
-0.024015888571739197,
0.008711443282663822,
0.03941333666443825,
0.018032584339380264,
0.0492718368768692,
-0.006655004806816578,
0.006613669451326132,
0.008194750174880028,
0.0022863661870360374,
0.03773925080895424,
-0.00714069651439786,
-0.0035109284799546003,
0.010705878026783466,
0.009171299636363983,
-0.04476627707481384,
0.013454684056341648,
-0.03914465755224228,
-0.0029839016497135162,
-0.12880121171474457,
0.004999004304409027,
-0.030174868181347847,
-0.011387912556529045,
-0.0217424388974905,
0.021411756053566933,
-0.024139894172549248,
-0.023726539686322212,
-0.03716055676341057,
-0.020647048950195312,
0.05109059810638428,
-0.051421280950307846,
-0.006959853693842888,
-0.025958653539419174,
-0.018053250387310982,
-0.021329084411263466,
-0.07130362838506699,
-0.03914465755224228,
0.003079489804804325,
-0.05448010191321373,
-0.005626786034554243,
0.09333541244268417,
-0.05927501246333122,
0.016017481684684753,
0.036354515701532364,
-0.007812397088855505,
0.01877662166953087,
-0.012834652327001095,
0.018910961225628853,
0.04799044132232666,
-0.04918916895985603,
0.04505562409758568,
-0.006350156385451555,
0.062457840889692307,
0.04179012402892113,
-0.0020473957993090153,
-0.005055840592831373,
0.004523646552115679,
0.03598249703645706,
0.005451110657304525,
0.008215418085455894,
-0.03662319481372833,
-0.0039087822660803795,
0.07473446428775787,
0.006944353226572275,
-0.023313185200095177,
-0.026909368112683296,
-0.02122574672102928,
0.04389823228120804,
-0.018859291449189186,
-0.014374397695064545,
0.009920503944158554,
0.017061199992895126,
-0.07159297168254852,
-0.02752939984202385,
0.0058231293223798275,
-0.024098558351397514,
-0.010390695184469223,
-0.04530363529920578,
-0.04125276580452919,
0.02149442583322525,
0.06667405366897583,
0.006107310298830271,
0.03600316494703293,
0.013620025478303432,
0.08337356895208359,
0.04278217628598213,
-0.045138295739889145,
-0.013713030144572258,
0.023395856842398643,
-0.05253733694553375,
0.004187796264886856,
-0.021577097475528717,
-0.021184410899877548,
-0.04048805683851242,
0.0277154091745615,
-0.0371398888528347,
-0.015635129064321518,
-0.008845782838761806,
-0.06291253119707108,
0.08730044215917587,
0.001488075708039105,
-0.025710640475153923,
0.01658584363758564,
0.0029994025826454163,
-0.003647852223366499,
-0.01242129784077406,
0.05365339294075966,
0.0003038800205104053,
-0.020595381036400795,
0.03881397470831871,
-0.020843392238020897,
0.028252769261598587,
0.05307469889521599,
0.050387896597385406,
0.008375592529773712,
0.08205083757638931,
0.03271699696779251,
-0.007120028603821993,
0.01896263100206852,
0.05708423629403114,
0.024243231862783432,
0.026475345715880394,
0.029534168541431427,
-0.003743440378457308,
-0.05369472876191139,
0.03573448210954666,
-0.0217424388974905,
-0.03939266875386238,
0.03164227679371834,
0.012400630861520767,
-0.0016831272514536977,
-0.031146250665187836,
0.007290537469089031,
0.03540379926562309,
-0.021205078810453415,
0.0042472160421311855,
-0.031538937240839005,
0.04009537026286125,
0.010819549672305584,
0.03515578806400299,
-0.02841811068356037,
0.07337039709091187,
-0.018755953758955002,
-0.00206160475499928,
0.01507710013538599,
0.0545627735555172,
0.005781793966889381,
-0.03085690177977085,
-0.004727740306407213,
0.10524001717567444,
-0.046295687556266785,
0.019231311976909637,
0.026723358780145645,
-0.009548485279083252,
0.007192365825176239,
-0.09407944977283478,
-0.00498608686029911,
-0.005513113457709551,
0.02354053035378456,
-0.006148646119982004,
0.037573911249637604,
-0.08296021819114685,
-0.0012704187538474798,
0.016761519014835358,
-0.04935450851917267,
-0.08308422565460205,
-0.03548647090792656,
-0.014209055341780186,
0.015128768980503082,
0.000026621795768733136,
-0.06993955373764038,
-0.032179635018110275,
0.0277774129062891,
-0.008949121460318565,
0.05696022883057594,
-0.0854816809296608,
0.01707153394818306,
0.0005241204053163528,
0.025193948298692703,
-0.011387912556529045,
-0.09391410648822784,
-0.01209061499685049,
0.009910170920193195,
-0.053984079509973526,
-0.04968519136309624,
0.025193948298692703,
0.005993638187646866,
0.042120806872844696,
-0.03447375446557999,
-0.007218200247734785,
-0.0014299476752057672,
0.046998389065265656,
-0.011222570203244686,
-0.030691560357809067,
-0.030505551025271416,
0.0009287555585615337,
-0.031538937240839005,
-0.027508731931447983,
0.04662637040019035,
0.09093795716762543,
0.008143080398440361,
0.0021584846545010805,
0.013413348235189915,
-0.007114861626178026,
-0.07250235229730606,
0.049437180161476135,
-0.02912081405520439,
-0.0010146558051928878,
-0.0035522638354450464,
0.039434004575014114,
0.030629556626081467,
-0.01963433064520359,
-0.02380921132862568,
-0.03546580299735069,
-0.047701090574264526,
-0.03966135159134865,
-0.003870030166581273,
-0.0028676458168774843,
-0.0555548258125782,
0.03426707535982132,
-0.02161843329668045,
0.010209852829575539,
0.022672485560178757,
0.027508731931447983,
-0.001480325241573155,
-0.005895466543734074,
-0.02810809575021267,
-0.015841806307435036,
-0.001982809044420719,
-0.0059988051652908325,
0.017639897763729095,
-0.035321127623319626,
-0.09664224833250046,
0.008075910620391369,
-0.006701507605612278,
0.057580262422561646,
0.027157381176948547,
-0.052909355610609055,
0.023333853110671043,
-0.06907150894403458,
-0.025896649807691574,
0.0030123197939246893,
0.030257537961006165,
0.022486476227641106,
0.010984892025589943,
0.011460249312222004,
-0.03490777313709259,
-0.05886165797710419,
0.016482504084706306,
0.045840997248888016,
-0.01141891349107027,
-0.03521779179573059,
0.01606914959847927,
0.03837995231151581,
-0.007409376557916403,
-0.004456476774066687,
-0.0015823721187189221,
0.0031311591155827045,
-0.004769075661897659,
-0.026103327050805092,
-0.0028185599949210882,
-0.02618599869310856,
-0.04344354197382927,
-0.06572334468364716,
0.01061287336051464,
0.017949912697076797,
-0.005941968876868486,
0.07986006140708923,
0.06584734469652176,
-0.01972733624279499,
-0.0003746023867279291,
0.13128134608268738,
0.038462623953819275,
-0.03406039997935295,
-0.0006293965852819383,
-0.05869631841778755,
0.017247209325432777,
0.02238313853740692,
-0.016720183193683624,
0.06621936708688736,
-0.0182909294962883,
-0.025999989360570908,
0.025772644206881523,
-0.035961829125881195,
-0.0076677231118083,
0.045468978583812714,
-0.027860082685947418,
0.0053736064583063126,
0.028666123747825623,
-0.01944832131266594,
0.03170427680015564,
0.01572813279926777,
0.03668519854545593,
-0.07576785236597061,
0.00708902720361948,
0.00963632296770811,
-0.03947534039616585,
0.018890293315052986,
0.059192344546318054,
0.02457391656935215,
-0.014601741917431355,
-0.057456254959106445,
0.029740845784544945,
-0.027488064020872116,
-0.01982034184038639,
-0.0056526209227740765,
-0.001941473688930273,
0.053612060844898224,
0.0007950612343847752,
0.072667695581913,
0.041996803134679794,
-0.022734489291906357,
-0.04265816882252693,
0.050387896597385406,
-0.004161961376667023,
0.011501585133373737,
-0.05414941906929016,
0.07287437468767166,
0.043980903923511505,
-0.01271064579486847,
0.0006045307382009923,
0.013113666325807571,
-0.05770426616072655,
0.06530998647212982,
-0.034163735806941986,
0.003937200177460909,
0.0806867703795433,
0.023437190800905228,
-0.07473446428775787,
-0.01896263100206852,
0.02362320013344288,
0.03027820587158203,
0.08114145696163177,
0.006148646119982004,
0.017980914562940598,
0.0428648442029953,
-0.03736723214387894,
0.03966135159134865,
-0.027674073353409767,
-0.0030123197939246893,
0.018466604873538017,
-0.03831794857978821,
0.030009524896740913,
0.020409371703863144,
-0.01905563473701477,
0.006071141920983791,
-0.01771223358809948,
0.013403015211224556,
-0.035259127616882324,
0.0034075898583978415,
0.028728127479553223,
0.05638153478503227,
0.055430818349123,
0.024594584479928017,
-0.020440371707081795
] |
17,702 | imodels.discretization.discretizer | __init__ | null | def __init__(self, rf_model=None, classification=False,
n_bins=2, dcols=[], encode='onehot',
strategy='quantile', backup_strategy='quantile',
onehot_drop='if_binary'):
super().__init__(n_bins=n_bins, dcols=dcols,
encode=encode, strategy=strategy,
onehot_drop=onehot_drop)
self.backup_strategy = backup_strategy
self.rf_model = rf_model
if rf_model is None:
self.classification = classification
| (self, rf_model=None, classification=False, n_bins=2, dcols=[], encode='onehot', strategy='quantile', backup_strategy='quantile', onehot_drop='if_binary') | [
-0.0036114712711423635,
-0.029686108231544495,
-0.010778995230793953,
-0.02298041060566902,
0.00611918093636632,
-0.0017353072762489319,
-0.05131798982620239,
-0.011056089773774147,
-0.03389795124530792,
-0.041748978197574615,
-0.005634264554828405,
0.08660142123699188,
0.0018103538313880563,
0.021908976137638092,
0.028356052935123444,
0.0383499450981617,
0.036244023591279984,
0.004184134304523468,
0.061441194266080856,
0.024402830749750137,
-0.026287076994776726,
0.029298176988959312,
-0.04315292462706566,
0.05375642701983452,
0.025732887908816338,
0.012949571944773197,
-0.03319597989320755,
-0.04241400584578514,
0.014390465803444386,
0.027340037748217583,
-0.04991404339671135,
-0.01205363217741251,
-0.04466770961880684,
0.04182286933064461,
-0.03153340891003609,
-0.07876886427402496,
0.03919970244169235,
0.07684767246246338,
-0.010418771766126156,
0.023959480226039886,
0.0401233546435833,
-0.07230331748723984,
-0.024772292003035545,
-0.024347413331270218,
-0.006373184733092785,
0.025271061807870865,
-0.006063761655241251,
-0.03491396829485893,
0.05408893898129463,
-0.030831435695290565,
-0.07197080552577972,
-0.014953892678022385,
-0.0081373555585742,
0.05323918163776398,
-0.041416462510824203,
0.06000030040740967,
0.01179500948637724,
0.02972305566072464,
-0.003964767325669527,
0.041231732815504074,
-0.07429840415716171,
0.04714309424161911,
0.036317914724349976,
-0.026675010100007057,
0.031902868300676346,
-0.015461900271475315,
-0.07333780825138092,
0.03201370686292648,
-0.003332067048177123,
0.014159553684294224,
0.00616998178884387,
-0.020615866407752037,
0.05863329768180847,
0.0758131891489029,
0.003267411608248949,
-0.012229125015437603,
-0.052721939980983734,
-0.04481549561023712,
-0.005301750730723143,
0.019452067092061043,
0.05963084101676941,
0.0659116581082344,
-0.0004603817651513964,
-0.0376664437353611,
-0.040160298347473145,
-0.06280819326639175,
0.005920595955103636,
0.006650279741734266,
0.06827620416879654,
-0.008086555637419224,
-0.0681653693318367,
0.0017537802923470736,
0.007440000306814909,
-0.009278063662350178,
0.0352095365524292,
0.0020828305277973413,
-0.03290041163563728,
0.030369609594345093,
-0.0008399441721849144,
-0.03330681845545769,
-0.031773559749126434,
-0.0036391806788742542,
0.020671285688877106,
0.04695836454629898,
-0.052980560809373856,
-0.005126256961375475,
-0.047623392194509506,
-0.010169385932385921,
-0.08320238441228867,
-0.0579313226044178,
-0.003713072743266821,
0.10108424723148346,
0.05198301747441292,
0.04507411643862724,
-0.04725393280386925,
0.004807597957551479,
-0.026970578357577324,
-0.029372068122029305,
0.021724246442317963,
-0.02039419114589691,
-0.010612737387418747,
0.0024107263889163733,
-0.013041936792433262,
0.009892290458083153,
0.002347225323319435,
0.023645438253879547,
0.016865847632288933,
0.041305623948574066,
-0.05201996490359306,
-0.011527150869369507,
0.04847314953804016,
-0.04706919938325882,
-0.02081906981766224,
0.006400893907994032,
0.02467992715537548,
-0.053534749895334244,
0.0019188827136531472,
0.02530800923705101,
0.0163763128221035,
0.0009375046938657761,
0.03696447238326073,
0.027801863849163055,
0.04910122975707054,
-0.009910764172673225,
0.026915159076452255,
0.03465534746646881,
0.0025146370753645897,
-0.03193981572985649,
-0.002789422869682312,
-0.02758018672466278,
-0.03774033486843109,
0.01666264422237873,
-0.04570220038294792,
0.0027178400196135044,
0.029113445430994034,
0.023830167949199677,
0.008954785764217377,
-0.027025997638702393,
-0.008012663573026657,
0.007412290666252375,
0.0063270023092627525,
-0.006428603548556566,
0.022518586367368698,
-0.04030808433890343,
-0.05545594170689583,
0.021410206332802773,
-0.05623180791735649,
-0.050320450216531754,
0.015591210685670376,
0.028928715735673904,
0.02416268177330494,
-0.06280819326639175,
-0.005980633199214935,
-0.005130875390022993,
-0.06280819326639175,
0.07706934958696365,
0.023626966401934624,
-0.014141080901026726,
0.003627635072916746,
0.06561609357595444,
0.0512440986931324,
-0.04766033589839935,
-0.011499442160129547,
-0.039532218128442764,
0.00020507915178313851,
-0.04378100857138634,
-0.005214003846049309,
-0.005375642795115709,
0.01924886554479599,
0.04758644476532936,
0.030498921871185303,
-0.03264178708195686,
0.0062946742400527,
-0.014593669213354588,
0.03459992632269859,
-0.05830078572034836,
0.03661348298192024,
-0.005232477094978094,
0.029039554297924042,
0.06022197753190994,
0.02353459969162941,
0.034803129732608795,
0.05050517991185188,
0.007721713278442621,
-0.04596082121133804,
0.05054212361574173,
0.0016868157545104623,
-0.002777877263724804,
0.02504938654601574,
-0.04902733862400055,
0.014935419894754887,
-0.027247672900557518,
-0.012949571944773197,
0.03301125019788742,
0.03326987102627754,
0.016136163845658302,
-0.015868306159973145,
0.000033644671930233017,
-0.001280409749597311,
0.0036530354991555214,
0.04089922085404396,
0.004567448981106281,
-0.05268499255180359,
0.01482458133250475,
-0.010899069719016552,
0.019599851220846176,
0.010566554963588715,
-0.06070227548480034,
0.037001416087150574,
0.004410428460687399,
-0.03805437684059143,
-0.02144715189933777,
0.030388083308935165,
-0.021243948489427567,
-0.025843724608421326,
0.05456923693418503,
-0.016542570665478706,
0.02927970327436924,
-0.07064075022935867,
-0.011083799414336681,
-0.0066826073452830315,
0.04234011471271515,
0.004484320525079966,
-0.026601118966937065,
0.04651501029729843,
-0.032087597995996475,
-0.009753743186593056,
0.053867265582084656,
-0.0060960897244513035,
-0.03696447238326073,
0.0014051024336367846,
-0.044963277876377106,
-0.011730354279279709,
0.02479076385498047,
0.010843650437891483,
-0.05408893898129463,
-0.006077616475522518,
-0.015203277580440044,
-0.0027178400196135044,
0.006262346636503935,
-0.026287076994776726,
-0.018556127324700356,
0.020671285688877106,
0.046034712344408035,
-0.07503732293844223,
-0.025455791503190994,
-0.03750018775463104,
-0.004070986993610859,
0.034747712314128876,
-0.0061053261160850525,
0.07773438096046448,
0.021188529208302498,
-0.025529684498906136,
-0.011499442160129547,
-0.020856015384197235,
-0.02039419114589691,
0.003551434027031064,
-0.060554489493370056,
-0.006128417328000069,
-0.019655270501971245,
0.041047003120183945,
-0.07038212567567825,
0.06399046629667282,
0.021945921704173088,
0.02852231077849865,
-0.0011586033506318927,
-0.03653959184885025,
-0.0298523660749197,
0.02056044712662697,
-0.008451396599411964,
-0.04134257137775421,
0.02479076385498047,
0.017226072028279305,
0.07248804718255997,
0.06517273932695389,
-0.05394115671515465,
0.044778548181056976,
-0.04529579356312752,
0.03382406011223793,
0.032346222549676895,
-0.00790182501077652,
-0.07278361171483994,
0.037518661469221115,
0.029686108231544495,
-0.024014897644519806,
-0.02643486112356186,
0.03982778638601303,
-0.02423657476902008,
-0.026767374947667122,
0.06805452704429626,
0.04222927615046501,
0.053350020200014114,
0.018380634486675262,
0.014686034061014652,
-0.06831315159797668,
-0.045665252953767776,
0.0009813780197873712,
-0.03131173178553581,
0.025271061807870865,
0.02977847494184971,
-0.03376864269375801,
-0.01754934899508953,
-0.02353459969162941,
-0.01969221606850624,
-0.03942137956619263,
0.02794964797794819,
0.021151583641767502,
-0.022056760266423225,
-0.06498800963163376,
-0.025197170674800873,
-0.029612217098474503,
0.011536387726664543,
0.0570446215569973,
-0.004671359434723854,
-0.03690905123949051,
0.011776536703109741,
0.007569311186671257,
0.011850428767502308,
-0.004881490021944046,
-0.008262048475444317,
0.013512998819351196,
-0.012386146001517773,
0.0007169832824729383,
0.0383499450981617,
0.04418741166591644,
-0.027044469490647316,
-0.02322055958211422,
-0.009084097109735012,
0.029704581946134567,
0.011213109828531742,
0.04511106386780739,
-0.03879329934716225,
0.01572052203118801,
0.02695210464298725,
0.06140424683690071,
0.00003048766484425869,
0.010548082180321217,
0.01789109967648983,
0.020043203607201576,
-0.029833892360329628,
0.02625013142824173,
-0.046219442039728165,
-0.05867024511098862,
0.03670584782958031,
0.005347933154553175,
0.016080744564533234,
-0.03188439458608627,
0.046736687421798706,
0.0030642086640000343,
-0.003726927563548088,
0.0258621983230114,
-0.03622554987668991,
-0.013088119216263294,
0.019525960087776184,
0.005172439850866795,
-0.011942793615162373,
-0.05508648231625557,
-0.02037571743130684,
0.004101005848497152,
0.01025251392275095,
-0.006368566304445267,
-0.016265476122498512,
-0.02763560600578785,
-0.01460290513932705,
-0.042561788111925125,
-0.008141973987221718,
-0.01230301707983017,
-0.008589944802224636,
0.07197080552577972,
-0.04570220038294792,
-0.02499396726489067,
-0.0024869274348020554,
-0.029039554297924042,
-0.0042510987259447575,
-0.027654079720377922,
0.008617653511464596,
0.007472327910363674,
0.016542570665478706,
0.0005377374473027885,
0.018195902928709984,
-0.008797765709459782,
-0.06096089631319046,
0.02342376299202442,
0.029058028012514114,
0.024495195597410202,
0.006359329912811518,
-0.013863985426723957,
-0.0014893854968249798,
0.02588067203760147,
-0.01739232800900936,
0.038091324269771576,
0.024587562307715416,
-0.03670584782958031,
0.04644111916422844,
-0.0383499450981617,
-0.0029787709936499596,
0.036133185029029846,
-0.07503732293844223,
0.04884260892868042,
-0.00893169455230236,
0.012099814601242542,
0.06040670722723007,
-0.009301154874265194,
0.028319107368588448,
0.024569088593125343,
0.05346085876226425,
0.039716947823762894,
0.02405184507369995,
0.00011661080498015508,
0.024513669312000275,
-0.08046838641166687,
0.008234338834881783,
-0.10507442057132721,
0.03229080140590668,
-0.0011724581709131598,
0.0325494222342968,
-0.038645513355731964,
-0.018436051905155182,
-0.054753970354795456,
-0.004311135970056057,
-0.05564067140221596,
-0.07115799188613892,
0.03615165874361992,
-0.03591150790452957,
-0.052795831114053726,
-0.0013727747136726975,
-0.03199523314833641,
0.019544431939721107,
-0.07655210793018341,
-0.04270957410335541,
0.030369609594345093,
-0.01034487970173359,
-0.036373335868120193,
0.08238957822322845,
0.01514785923063755,
-0.025899143889546394,
-0.018214376643300056,
-0.0015113222179934382,
0.04902733862400055,
-0.010354115627706051,
0.015886779874563217,
0.013189720921218395,
-0.014584432356059551,
-0.00646554958075285,
-0.01299575436860323,
0.05689683556556702,
0.04248789697885513,
-0.015914488583803177,
-0.01877780258655548,
0.019858473911881447,
0.008511434309184551,
0.05863329768180847,
0.04625638946890831,
-0.026915159076452255,
-0.046034712344408035,
0.043817952275276184,
0.026767374947667122,
-0.024587562307715416,
0.011342421174049377,
-0.009268826805055141,
0.050320450216531754,
-0.03147799149155617,
0.01511091273277998,
0.007102868054062128,
0.008497579023241997,
-0.012940336018800735,
-0.02820826880633831,
-0.03201370686292648,
0.01906413398683071,
0.020929908379912376,
-0.03945832699537277,
0.0025677469093352556,
-0.0132543770596385,
0.0668722540140152,
0.03762950003147125,
0.03491396829485893,
0.03559746965765953,
0.08083784580230713,
0.013457579538226128,
0.022924991324543953,
0.01888864114880562,
0.004738324321806431,
-0.061108678579330444,
-0.026287076994776726,
-0.032087597995996475,
-0.05782048776745796,
-0.026527225971221924,
-0.01690279319882393,
-0.05275888368487358,
-0.005043128505349159,
0.047549497336149216,
-0.04045586660504341,
0.006876573897898197,
-0.001851918175816536,
-0.005153966601938009,
0.0007521974039264023,
-0.02081906981766224,
-0.04178592190146446,
0.002274487866088748,
0.06439687311649323,
-0.013937877491116524,
0.002294115489348769,
0.04614555090665817,
-0.019452067092061043,
-0.01569281332194805,
0.022370802238583565,
0.08844871819019318,
0.03945832699537277,
0.0753328874707222,
0.03986473008990288,
-0.017170652747154236,
-0.01864849217236042,
-0.013882458209991455,
0.07418756186962128,
-0.00223292363807559,
0.02467992715537548,
-0.007153668906539679,
0.0003429050266277045,
0.05926138162612915,
-0.03724156692624092,
-0.03157035633921623,
0.03565288707613945,
0.07237721234560013,
-0.02170577272772789,
-0.011933557689189911,
-0.02479076385498047,
0.007116722874343395,
0.049322906881570816,
0.013716201297938824,
-0.023626966401934624,
0.014741453342139721,
0.0062438733875751495,
-0.009190317243337631,
-0.04958152770996094,
0.062327899038791656,
0.015120149590075016,
0.007804842200130224,
0.025086332112550735,
0.04001251608133316,
-0.0014570577768608928,
-0.031588826328516006,
0.008414451032876968,
0.06206927448511124,
0.00840983260422945,
0.004669050220400095,
0.004221080336719751,
-0.007855642586946487,
-0.020671285688877106,
-0.10307933390140533,
-0.031828977167606354,
-0.004784506745636463,
0.011933557689189911,
-0.055308159440755844,
0.03362085670232773,
-0.07440923899412155,
-0.05767270177602768,
0.008377504535019398,
0.020209461450576782,
-0.052537210285663605,
-0.009864581748843193,
-0.0534978061914444,
0.0030341900419443846,
-0.014870763756334782,
-0.055308159440755844,
-0.00927344523370266,
0.025381900370121002,
0.015637394040822983,
0.034415196627378464,
-0.06306681782007217,
-0.017567822709679604,
0.06151508539915085,
0.034230466932058334,
-0.043263763189315796,
-0.07518510520458221,
0.0010673929937183857,
-0.015923725441098213,
-0.08349795639514923,
-0.07862108200788498,
0.005929832812398672,
0.004144879058003426,
0.03993862494826317,
0.04821452870965004,
-0.035375792533159256,
-0.016764245927333832,
0.04448297992348671,
-0.04082532599568367,
-0.04806674271821976,
0.07004961371421814,
-0.031090056523680687,
-0.027229201048612595,
-0.017854154109954834,
0.049064286053180695,
0.049692366272211075,
0.025381900370121002,
0.01767865940928459,
-0.027857283130288124,
-0.014815345406532288,
-0.07108409702777863,
0.026508754119277,
-0.016524096950888634,
-0.019766109064221382,
0.007601638790220022,
0.02846689149737358,
0.06801757961511612,
-0.045221902430057526,
-0.03552357852458954,
-0.0383499450981617,
-0.07101020961999893,
-0.003355158492922783,
-0.016228528693318367,
0.02543731965124607,
-0.03628097102046013,
0.057081565260887146,
-0.015526555478572845,
0.0029348977841436863,
-0.03838689252734184,
0.0030364992562681437,
0.018352923914790154,
0.03919970244169235,
-0.027931174263358116,
-0.0418967604637146,
0.011056089773774147,
0.0371861457824707,
0.0125893484801054,
-0.022500112652778625,
-0.06849788129329681,
-0.015969907864928246,
0.0260654017329216,
0.023146668449044228,
-0.019784580916166306,
-0.029575271531939507,
-0.0030896090902388096,
-0.023331398144364357,
0.0175031665712595,
-0.008834711275994778,
0.038017433136701584,
0.006387039553374052,
0.006992029957473278,
0.054753970354795456,
-0.03242011368274689,
-0.08807925879955292,
0.02384864166378975,
0.07027129083871841,
0.029316648840904236,
-0.007338398601859808,
0.02700752392411232,
0.0031981379725039005,
-0.0463302806019783,
-0.04163813963532448,
0.006668752525001764,
-0.01504625752568245,
0.0059667788445949554,
-0.03326987102627754,
-0.05811605602502823,
-0.02927970327436924,
-0.024144209921360016,
-0.02661959081888199,
0.033288344740867615,
0.05597318708896637,
-0.03162577375769615,
0.06033281236886978,
0.02057892084121704,
0.0038493110332638025,
-0.025141751393675804,
0.09546846151351929,
0.05523426830768585,
-0.07403977960348129,
0.0472169853746891,
-0.05545594170689583,
0.004615940619260073,
0.011222346685826778,
0.0008012663456611335,
0.03147799149155617,
-0.05161355808377266,
0.0022756424732506275,
0.004498175345361233,
-0.06291903555393219,
-0.06387963145971298,
0.037001416087150574,
-0.030554339289665222,
0.0009421229478903115,
0.04518495500087738,
-0.0735594779253006,
0.03777728229761124,
0.00955977663397789,
0.023460708558559418,
-0.02353459969162941,
0.022352328523993492,
0.003509869799017906,
-0.04322681576013565,
0.036114711314439774,
0.07987724989652634,
0.015637394040822983,
-0.0358930379152298,
-0.028300633653998375,
0.050948530435562134,
0.004756797105073929,
-0.0040132589638233185,
-0.04352238401770592,
-0.013984059914946556,
0.04876871779561043,
-0.02789422869682312,
0.03277109935879707,
0.033657804131507874,
0.02233385480940342,
-0.06849788129329681,
-0.0069042835384607315,
0.015979144722223282,
0.04444603621959686,
-0.03750018775463104,
0.09110882878303528,
0.007384581491351128,
-0.01000312902033329,
0.0077309501357376575,
0.0037592551670968533,
-0.04688446968793869,
0.022426219657063484,
-0.025899143889546394,
0.05501259118318558,
0.043817952275276184,
-0.022924991324543953,
-0.032216910272836685,
0.008728492073714733,
0.0309792198240757,
0.02763560600578785,
0.03282652050256729,
0.004084841813892126,
0.014963128603994846,
0.02807895839214325,
-0.02669348381459713,
-0.004368863999843597,
-0.011287001892924309,
0.034544508904218674,
0.030498921871185303,
0.007948007434606552,
-0.006848864257335663,
0.04204454645514488,
-0.009236499667167664,
0.015341825783252716,
-0.029760001227259636,
-0.04725393280386925,
-0.03535731881856918,
0.01993236504495144,
-0.01969221606850624,
0.03692752495408058,
0.0454435758292675,
0.07023434340953827,
-0.027727970853447914
] |
17,710 | imodels.discretization.discretizer | _fit_rf |
Fit random forest (if necessary) and obtain RF split thresholds
Parameters
----------
X : data frame of shape (n_samples, n_features)
Training data used to fit RF
y : array-like of shape (n_samples,)
Training response vector used to fit RF
Returns
-------
rf_splits : dictionary where
key = feature name
value = array of all RF split threshold values
| def _fit_rf(self, X, y=None):
"""
Fit random forest (if necessary) and obtain RF split thresholds
Parameters
----------
X : data frame of shape (n_samples, n_features)
Training data used to fit RF
y : array-like of shape (n_samples,)
Training response vector used to fit RF
Returns
-------
rf_splits : dictionary where
key = feature name
value = array of all RF split threshold values
"""
# If no rf_model given, train default random forest model
if self.rf_model is None:
if y is None:
raise ValueError("Must provide y if rf_model is not given.")
if self.classification:
self.rf_model = RandomForestClassifier(n_estimators=500)
else:
self.rf_model = RandomForestRegressor(n_estimators=500)
self.rf_model.fit(X, y)
else:
# provided rf model has not yet been trained
if not check_is_fitted(self.rf_model):
if y is None:
raise ValueError(
"Must provide y if rf_model has not been trained.")
self.rf_model.fit(X, y)
# get all random forest split points
self.rf_splits = self._get_rf_splits(list(X.columns))
| (self, X, y=None) | [
0.011845631524920464,
0.0005656589637510478,
-0.0366087332367897,
0.005793456453830004,
0.011984231881797314,
-0.03869696334004402,
0.004994199611246586,
0.023487985134124756,
0.0029452380258589983,
-0.03189634904265404,
0.013370226137340069,
0.017888568341732025,
-0.0040563433431088924,
-0.00011008549336111173,
0.021251913160085678,
0.00156501866877079,
-0.04128415137529373,
-0.0027211690321564674,
0.02465222030878067,
-0.014312702231109142,
-0.013961583375930786,
0.004458282142877579,
-0.06246214732527733,
0.02195415087044239,
0.006491073872894049,
-0.0002156953705707565,
0.0001521706290077418,
-0.005502397660166025,
0.06527109444141388,
0.03317146375775337,
-0.03326386585831642,
-0.015439977869391441,
-0.04664333164691925,
-0.008704044856131077,
-0.03775448724627495,
-0.07761568576097488,
0.0215475931763649,
0.04941532015800476,
0.020771436393260956,
-0.033966101706027985,
-0.04978491738438606,
-0.05166986957192421,
-0.04560845345258713,
0.0076229688711464405,
-0.03256162628531456,
0.03032555617392063,
-0.008422225713729858,
0.06246214732527733,
0.01931152120232582,
-0.029475480318069458,
-0.016068294644355774,
-0.0329681858420372,
-0.03363346308469772,
0.04050799459218979,
0.01754668913781643,
0.008985863998532295,
-0.014192582108080387,
-0.008417605422437191,
0.02504029870033264,
-0.028181886300444603,
0.028773242607712746,
0.04823260381817818,
0.017389610409736633,
0.044610537588596344,
0.036959849298000336,
-0.003083837451413274,
-0.06109463423490524,
0.027941646054387093,
-0.02180631086230278,
0.04571933299303055,
-0.01230762992054224,
0.01931152120232582,
0.031877871602773666,
0.047382526099681854,
-0.01763908937573433,
0.04645853117108345,
0.008172746747732162,
-0.015587816946208477,
-0.006241594906896353,
0.00965576060116291,
0.012584828771650791,
0.06479061394929886,
0.028163405135273933,
-0.031508270651102066,
-0.07255218923091888,
-0.02171391248703003,
0.0007617194205522537,
0.010385718196630478,
0.06819092482328415,
-0.039916638284921646,
-0.023025985807180405,
0.026648052036762238,
0.009045923128724098,
0.00271192891523242,
0.01083847600966692,
-0.031304992735385895,
-0.06549285352230072,
0.036904409527778625,
-0.042171187698841095,
-0.05196554958820343,
-0.03206266835331917,
0.058692242950201035,
-0.0378468856215477,
0.1023048684000969,
-0.002617219462990761,
-0.01247394923120737,
-0.004601501394063234,
-0.00671745277941227,
-0.04350174218416214,
0.002739648800343275,
-0.08116383105516434,
0.006514173466712236,
0.0427255854010582,
0.08567292988300323,
-0.06734084337949753,
-0.039473120123147964,
-0.03307906538248062,
0.04298430681228638,
-0.003980113659054041,
-0.07417842000722885,
0.03331930562853813,
0.010330278426408768,
-0.02980811893939972,
-0.028810203075408936,
-0.012945187278091908,
0.04024927690625191,
0.044758379459381104,
0.033725861459970474,
-0.02221287041902542,
-0.025520777329802513,
-0.01501493901014328,
0.01506113912910223,
-0.03792080655694008,
-0.01083847600966692,
-0.014423581771552563,
-0.05144811049103737,
-0.013933863490819931,
0.03477922081947327,
0.04028623551130295,
-0.08367709815502167,
0.05148507282137871,
-0.0018503024475649,
0.02986355870962143,
-0.03265402838587761,
0.026814371347427368,
0.03492705896496773,
-0.004453661851584911,
0.009849799796938896,
0.023340145125985146,
0.03481617942452431,
-0.023136865347623825,
0.04305822402238846,
0.036701131612062454,
-0.0296048391610384,
-0.005673336796462536,
0.010478117503225803,
-0.008694805204868317,
-0.025890374556183815,
0.036516331136226654,
-0.017315689474344254,
-0.02483701892197132,
-0.00609375536441803,
-0.00224184594117105,
-0.07924191653728485,
0.03751424700021744,
0.08700348436832428,
-0.008741004392504692,
-0.01485785935074091,
-0.013111506588757038,
0.011208074167370796,
-0.02178783155977726,
-0.014211062341928482,
-0.05455273762345314,
-0.008838023990392685,
-0.03873392194509506,
0.034391142427921295,
-0.013342506252229214,
-0.028662363067269325,
0.003654405241832137,
0.10592693090438843,
0.036460891366004944,
-0.05185467004776001,
0.013989303261041641,
-0.07687649130821228,
-0.005576317198574543,
-0.017482008785009384,
-0.018877243623137474,
0.003252466907724738,
-0.008990483358502388,
0.04161678999662399,
-0.0014241092139855027,
-0.04047103598713875,
0.0073457700200378895,
-0.00958184152841568,
-0.0012670299038290977,
-0.008611645549535751,
0.0005405378178693354,
0.0022499309852719307,
0.04298430681228638,
-0.00025612019817344844,
0.012649509124457836,
0.0220095906406641,
0.023839103057980537,
-0.003903884207829833,
-0.04091455414891243,
0.023229265585541725,
-0.039583999663591385,
0.02467069961130619,
-0.0034026161301881075,
-0.00937856175005436,
-0.00959108117967844,
-0.012982147745788097,
-0.056215930730104446,
0.047382526099681854,
0.039768800139427185,
0.03291274607181549,
-0.0016643482958897948,
-0.03184090927243233,
0.001265874831005931,
-0.02714700996875763,
0.0019219121895730495,
-0.020660556852817535,
-0.08293790370225906,
-0.02454134076833725,
-0.0007039696210995317,
-0.010117758996784687,
0.008015667088329792,
-0.03505641967058182,
0.0017278729937970638,
-0.08752092719078064,
-0.0018225825624540448,
-0.05285258591175079,
0.028680844232439995,
-0.06974323838949203,
0.0019403921905905008,
0.03779144585132599,
0.08966459333896637,
-0.011817911639809608,
-0.014756220392882824,
-0.004365882370620966,
0.001875712419860065,
0.01624385453760624,
-0.00802028737962246,
-0.05410921946167946,
0.01629929430782795,
0.020808394998311996,
-0.012224470265209675,
0.013324026018381119,
0.026223013177514076,
-0.050561074167490005,
-0.030621236190199852,
-0.00001110780613089446,
-0.036664173007011414,
0.002825118601322174,
0.016511812806129456,
-0.08604253083467484,
0.02415326237678528,
0.028810203075408936,
0.014146382920444012,
0.013185426592826843,
0.047899965196847916,
0.016752051189541817,
-0.009073643013834953,
0.050856754183769226,
-0.08175519108772278,
0.01218751072883606,
-0.03283882513642311,
-0.0035550754982978106,
0.02746116928756237,
-0.031452830880880356,
0.0751393735408783,
0.00823280680924654,
-0.03562929481267929,
-0.01613297499716282,
0.0022614807821810246,
0.026851331815123558,
-0.03245074674487114,
-0.03561081737279892,
0.05754648521542549,
-0.016327014192938805,
0.03282034769654274,
-0.09343449771404266,
0.0492674820125103,
0.020549677312374115,
0.034003064036369324,
0.026352373883128166,
-0.04612589254975319,
-0.015403017401695251,
0.003166997106745839,
-0.0243565421551466,
-0.05717688798904419,
0.0005235015996731818,
0.0017024631379172206,
0.0427255854010582,
0.03551841527223587,
0.023986943066120148,
0.02437502145767212,
-0.0592096783220768,
0.033781301230192184,
0.013453385792672634,
-0.01240003015846014,
0.04749340936541557,
0.006786752492189407,
0.0054608178324997425,
0.025188138708472252,
-0.05728776752948761,
0.06090983375906944,
-0.014497500844299793,
-0.04047103598713875,
0.023783663287758827,
0.019958319142460823,
0.05399833992123604,
0.06785828620195389,
-0.06235126778483391,
-0.03542601689696312,
-0.036867450922727585,
0.03254314884543419,
0.003173927078023553,
0.010810756124556065,
-0.003744494868442416,
0.004546061623841524,
-0.023691263049840927,
0.02997443825006485,
0.029327640309929848,
0.04996971786022186,
0.023451024666428566,
0.007124010939151049,
-0.023395584896206856,
-0.08936891704797745,
0.01877560466527939,
0.014941019006073475,
-0.02441198192536831,
0.0006537273293361068,
0.02223134972155094,
0.03291274607181549,
0.07066723704338074,
-0.00018970797827932984,
-0.002211816143244505,
0.0010366082424297929,
0.028995001688599586,
-0.059135761111974716,
-0.012021191418170929,
-0.01518125832080841,
0.004188012797385454,
0.03202570974826813,
0.016012854874134064,
0.01776844821870327,
0.05802696570754051,
0.050782833248376846,
0.041838549077510834,
-0.015634017065167427,
-0.04675421118736267,
0.04993275925517082,
0.0296972393989563,
0.028237326070666313,
-0.02997443825006485,
-0.045017097145318985,
0.03764360770583153,
0.05481145903468132,
0.014155622571706772,
0.020032238215208054,
-0.04065583646297455,
-0.014525220729410648,
0.007826248183846474,
-0.01745428889989853,
0.00869018491357565,
-0.08663389086723328,
0.08360318094491959,
-0.02428262121975422,
-0.034668341279029846,
0.013360985554754734,
-0.001814497634768486,
-0.026685012504458427,
0.007313430309295654,
0.04039711505174637,
0.03533361852169037,
-0.00948020163923502,
-0.025095738470554352,
0.04139503091573715,
0.04139503091573715,
-0.013970823027193546,
0.006246214732527733,
0.023229265585541725,
-0.03557385504245758,
-0.03317146375775337,
-0.04704988747835159,
-0.01596665568649769,
-0.06090983375906944,
0.06527109444141388,
-0.04671724885702133,
0.017389610409736633,
0.007350390311330557,
-0.01094935555011034,
0.028144925832748413,
-0.029087401926517487,
-0.02683285064995289,
0.017666809260845184,
-0.01620689406991005,
-0.01752820983529091,
0.0034927057567983866,
-0.034391142427921295,
-0.0013721344294026494,
-0.0755089744925499,
0.008528485894203186,
0.019976798444986343,
0.05558761581778526,
-0.014506741426885128,
0.009179903194308281,
-0.016622692346572876,
0.006897632032632828,
-0.03518577665090561,
0.025539256632328033,
0.028533004224300385,
-0.0045668515376746655,
-0.01506113912910223,
0.03873392194509506,
0.053296104073524475,
0.09513465315103531,
0.06242518872022629,
0.0360543355345726,
0.018073366954922676,
-0.02723941020667553,
-0.05754648521542549,
0.03291274607181549,
-0.008371406234800816,
0.04143199324607849,
-0.012945187278091908,
-0.0031415873672813177,
0.011272754520177841,
-0.014552940614521503,
-0.026296934112906456,
0.00003302564800833352,
-0.10799667984247208,
-0.006856052204966545,
-0.027997085824608803,
-0.044610537588596344,
-0.015920454636216164,
0.020272478461265564,
-0.04357566311955452,
0.002211816143244505,
0.0012196750612929463,
-0.022933587431907654,
0.056363772600889206,
-0.01754668913781643,
-0.018858764320611954,
-0.03320842608809471,
-0.02746116928756237,
-0.011180354282259941,
-0.055661533027887344,
-0.017500489950180054,
-0.0030353276524692774,
-0.025317497551441193,
0.015560097061097622,
0.10459637641906738,
-0.013924623839557171,
0.02729484997689724,
0.03256162628531456,
-0.014469780959188938,
0.04072975367307663,
0.016622692346572876,
0.036627210676670074,
0.04076671600341797,
-0.0049064201302826405,
0.03618369251489639,
-0.0327833853662014,
0.055957213044166565,
0.04649548977613449,
-0.001819117576815188,
0.012021191418170929,
-0.03363346308469772,
0.02431958168745041,
-0.020679036155343056,
-0.005377658177167177,
-0.04387134313583374,
0.012335349805653095,
0.07417842000722885,
0.045534536242485046,
0.002267255913466215,
-0.005650237202644348,
-0.03501945734024048,
0.01750972867012024,
-0.037052251398563385,
-0.010912396013736725,
0.009960679337382317,
-0.013397946022450924,
-0.0653819739818573,
-0.04579325392842293,
0.0034257161896675825,
-0.045201897621154785,
0.006611193064600229,
-0.017214050516486168,
-0.05518105626106262,
-0.025299018248915672,
0.045201897621154785,
-0.03825344517827034,
0.010450397618114948,
0.05736168846487999,
0.07528721541166306,
-0.015375297516584396,
-0.011328194290399551,
-0.012335349805653095,
0.024042382836341858,
-0.06020759418606758,
0.007475129794329405,
-0.04875004291534424,
-0.007465889677405357,
-0.02213894948363304,
-0.0008142716833390296,
-0.05373962223529816,
0.010071558877825737,
-0.006403293926268816,
-0.026703491806983948,
0.020586635917425156,
0.004511411767452955,
-0.03792080655694008,
0.014331181533634663,
0.036719612777233124,
0.0040216934867203236,
0.0034072361886501312,
0.03825344517827034,
-0.037144649773836136,
0.003966253716498613,
0.08611644804477692,
-0.02195415087044239,
0.025797976180911064,
0.06327526271343231,
0.031637631356716156,
0.023192305117845535,
0.050191476941108704,
0.009822079911828041,
0.013564265333116055,
0.016770532354712486,
0.04605197161436081,
-0.0019831268582493067,
-0.0038530644960701466,
0.022859666496515274,
0.0032131969928741455,
-0.07820704579353333,
0.015735656023025513,
-0.04065583646297455,
-0.042171187698841095,
-0.025724055245518684,
-0.02215743064880371,
0.031120194122195244,
-0.02507725916802883,
-0.03825344517827034,
0.020752955228090286,
-0.025724055245518684,
0.011808671988546848,
-0.025299018248915672,
0.047345567494630814,
-0.0053314585238695145,
0.047530367970466614,
-0.008764104917645454,
0.015245937742292881,
-0.022545509040355682,
-0.016031334176659584,
0.039399199187755585,
0.026629572734236717,
-0.011254274286329746,
0.00880106445401907,
-0.007378110196441412,
0.08892539888620377,
-0.029068922623991966,
0.009609561413526535,
-0.0009378562099300325,
-0.030879955738782883,
0.04915660247206688,
-0.07872448116540909,
-0.03178546950221062,
-0.0007368869846686721,
0.06985411792993546,
-0.011531473137438297,
0.02141823247075081,
-0.028366684913635254,
0.02180631086230278,
-0.009942200034856796,
-0.044906217604875565,
-0.07953760027885437,
0.01079227589070797,
-0.002066286513581872,
-0.009859040379524231,
0.015994375571608543,
-0.05835960432887077,
-0.0380316860973835,
0.004878700245171785,
-0.005077359266579151,
0.05111547186970711,
-0.09934807568788528,
0.042060308158397675,
-0.019533280283212662,
0.0541461817920208,
-0.02189871110022068,
-0.06253606826066971,
-0.0066666328348219395,
0.0022626358550041914,
-0.044610537588596344,
-0.05181771144270897,
0.0009644210804253817,
-0.008838023990392685,
0.04305822402238846,
0.0038184146396815777,
0.0018745573470368981,
-0.036941371858119965,
0.02428262121975422,
-0.03921440243721008,
-0.06290566176176071,
-0.005072739440947771,
-0.002096316544339061,
-0.011891831643879414,
-0.026186054572463036,
0.024134783074259758,
0.09454329311847687,
0.0005925126024521887,
0.021122554317116737,
0.031563710421323776,
-0.01931152120232582,
-0.045275814831256866,
0.029327640309929848,
-0.01370286475867033,
-0.01213207095861435,
-0.01256634946912527,
0.015523137524724007,
0.05100459232926369,
0.004123333375900984,
-0.023081425577402115,
-0.041912470012903214,
-0.078650563955307,
-0.05263082683086395,
-0.005543977487832308,
-0.0045899515971541405,
-0.07077811658382416,
0.012714188545942307,
-0.037329450249671936,
0.0438343808054924,
0.028754763305187225,
0.016955330967903137,
0.010561277158558369,
-0.011725512333214283,
-0.0378468856215477,
-0.06918884068727493,
0.019625680521130562,
-0.0017082380363717675,
-0.00276505877263844,
0.000283840112388134,
-0.0805724710226059,
-0.0391404815018177,
0.008269766345620155,
0.05736168846487999,
-0.011864111758768559,
-0.028015566989779472,
-0.01381374429911375,
-0.06102071329951286,
-0.010746076703071594,
0.031563710421323776,
0.014442061074078083,
-0.014497500844299793,
0.007853968068957329,
0.026241494342684746,
-0.023155346512794495,
-0.06567765027284622,
0.0014090943150222301,
0.06564069539308548,
-0.009766640141606331,
-0.04575629532337189,
0.036719612777233124,
0.022674867883324623,
-0.012316870503127575,
-0.03585105389356613,
-0.003626685356721282,
0.010819995775818825,
0.014238782227039337,
0.007867828011512756,
0.025428377091884613,
-0.03256162628531456,
-0.010367237962782383,
-0.0779113620519638,
0.014146382920444012,
0.036516331136226654,
0.015726415440440178,
0.09136474877595901,
0.06737780570983887,
-0.027775326743721962,
0.01629929430782795,
0.11893679946660995,
0.0726630687713623,
-0.02151063270866871,
0.03577713668346405,
-0.02699916996061802,
0.03006683848798275,
0.011808671988546848,
-0.04956315830349922,
0.04923051968216896,
0.008482285775244236,
-0.0547005794942379,
0.02729484997689724,
-0.023802144452929497,
-0.02193567156791687,
0.02991899847984314,
0.025428377091884613,
-0.0393252819776535,
0.0548853762447834,
-0.029512440785765648,
0.029438519850373268,
-0.01615145429968834,
0.01754668913781643,
-0.06072503328323364,
0.04679116979241371,
-0.021067114546895027,
-0.06937363743782043,
-0.007234890479594469,
-0.012852787971496582,
-0.021177994087338448,
-0.019718080759048462,
-0.056142013520002365,
0.023839103057980537,
0.004608431365340948,
-0.00965576060116291,
0.004003213718533516,
-0.0017659878358244896,
0.06235126778483391,
0.01527365855872631,
0.07236738502979279,
0.03211810812354088,
0.0009569136309437454,
-0.03487161919474602,
0.0722934678196907,
0.03350410237908363,
0.01611449383199215,
-0.05658553168177605,
0.07835488021373749,
0.034502021968364716,
-0.006735932547599077,
0.008916564285755157,
0.0030976973939687014,
-0.07088899612426758,
0.039436161518096924,
-0.05514409765601158,
0.004767820704728365,
0.03211810812354088,
0.029050441458821297,
-0.052963465452194214,
0.013564265333116055,
0.020253997296094894,
0.04557149484753609,
0.05928359925746918,
-0.003908504266291857,
0.0015442287549376488,
0.008500766009092331,
0.013019107282161713,
0.006634293124079704,
-0.04671724885702133,
0.04941532015800476,
0.016363972797989845,
-0.022379189729690552,
0.061685990542173386,
-0.014811660163104534,
-0.002834358485415578,
0.011300474405288696,
0.023432545363903046,
-0.014765460044145584,
-0.016345493495464325,
-0.007950987666845322,
0.03178546950221062,
0.05163291096687317,
0.04394526034593582,
0.04128415137529373,
0.007465889677405357
] |
17,713 | imodels.discretization.discretizer | _get_rf_splits |
Get all splits in random forest ensemble
Parameters
----------
col_names : array-like of shape (n_features,)
Column names for X used to train rf_model
Returns
-------
rule_dict : dictionary where
key = feature name
value = array of all RF split threshold values
| def _get_rf_splits(self, col_names):
"""
Get all splits in random forest ensemble
Parameters
----------
col_names : array-like of shape (n_features,)
Column names for X used to train rf_model
Returns
-------
rule_dict : dictionary where
key = feature name
value = array of all RF split threshold values
"""
rule_dict = {}
for model in self.rf_model.estimators_:
tree = model.tree_
tree_it = enumerate(zip(tree.children_left,
tree.children_right,
tree.feature,
tree.threshold))
for node_idx, data in tree_it:
left, right, feature, th = data
if (left != -1) | (right != -1):
feature = col_names[feature]
if feature in rule_dict:
rule_dict[feature].append(th)
else:
rule_dict[feature] = [th]
return rule_dict
| (self, col_names) | [
0.013390147127211094,
-0.02392936870455742,
-0.04318690299987793,
-0.004952331073582172,
-0.0009679347276687622,
0.01019895076751709,
0.03575610741972923,
0.0072560617700219154,
-0.009555193595588207,
-0.013776401057839394,
0.00017157275578938425,
0.05389166250824928,
-0.002258897526189685,
-0.013905152678489685,
0.0199932549148798,
-0.03266607224941254,
0.003929217346012592,
0.026375645771622658,
0.053707730025053024,
-0.03137855976819992,
-0.013822383247315884,
-0.019790930673480034,
-0.017372244969010353,
0.006377792917191982,
0.0192207470536232,
0.011155390180647373,
-0.026798686012625694,
-0.0025244473945349455,
0.06470678001642227,
0.03634468466043472,
-0.09306887537240982,
-0.04910946637392044,
-0.04888875037431717,
-0.0009426442557014525,
-0.045651573687791824,
-0.11175622791051865,
0.0399865098297596,
0.03840470686554909,
0.02359829470515251,
-0.025676710531115532,
0.009757517836987972,
-0.05687133967876434,
-0.05639311671257019,
-0.014824805781245232,
-0.038183990865945816,
0.022899357602000237,
0.02319364622235298,
0.008902240544557571,
0.02569510228931904,
-0.004228104371577501,
-0.03980258107185364,
-0.03215106576681137,
0.004745409358292818,
0.06503785401582718,
0.0073894113302230835,
-0.019698966294527054,
-0.019367890432476997,
-0.04138438403606415,
0.01962539367377758,
-0.013482112437486649,
0.02586064115166664,
0.03139695152640343,
0.028104593977332115,
0.02392936870455742,
0.029226571321487427,
-0.02672511525452137,
-0.04105330631136894,
0.03448698669672012,
-0.030091043561697006,
0.0007926258840598166,
-0.016287053003907204,
-0.03531467169523239,
0.0551791749894619,
0.06970969587564468,
-0.014548909850418568,
0.008897642605006695,
0.022715426981449127,
-0.02718494087457657,
0.03582967817783356,
0.005596088245511055,
-0.007513564545661211,
0.022899357602000237,
0.01993807591497898,
-0.012709603644907475,
-0.04017043858766556,
-0.03250053524971008,
0.008980411104857922,
0.016719290986657143,
0.0716225728392601,
-0.0527145080268383,
-0.04469513148069382,
0.011302534490823746,
0.0019795529078692198,
0.0030118634458631277,
0.0022083166986703873,
0.00011818977509392425,
-0.05172128230333328,
0.04436405748128891,
-0.0362711101770401,
-0.06952576339244843,
-0.002770454389974475,
0.0462033636868,
-0.006626099348068237,
0.08041445165872574,
0.0002822185051627457,
0.005793813616037369,
-0.022237207740545273,
-0.0049477326683700085,
-0.053707730025053024,
-0.017500994727015495,
-0.08615309000015259,
0.029631217941641808,
0.03476288169622421,
0.07143864035606384,
-0.03016461618244648,
-0.06088102608919144,
0.0034877837169915438,
0.02266024798154831,
-0.01212102547287941,
-0.0443272702395916,
0.04807945713400841,
-0.016084730625152588,
-0.019459856674075127,
-0.0007983737159520388,
-0.05109591782093048,
0.03851506486535072,
0.05407559126615524,
0.03227981925010681,
-0.038367919623851776,
0.0026508995797485113,
-0.00568805355578661,
0.013169430196285248,
-0.059225648641586304,
-0.0514637790620327,
0.004060267936438322,
-0.057312771677970886,
0.0018979337764903903,
0.026522791013121605,
0.06570000946521759,
-0.05139020457863808,
0.037963274866342545,
-0.018825296312570572,
0.013105054385960102,
-0.052751291543245316,
0.017629746347665787,
0.012783176265656948,
-0.014944360591471195,
0.043481189757585526,
0.02948407270014286,
-0.010180558077991009,
-0.01609392650425434,
0.051941998302936554,
-0.005048894789069891,
-0.04874160513281822,
-0.0035015784669667482,
0.02672511525452137,
-0.003494681091979146,
-0.02768155373632908,
-0.011606019921600819,
-0.04734373465180397,
-0.018871277570724487,
-0.0064559634774923325,
-0.04907267913222313,
-0.07508046925067902,
0.03575610741972923,
0.07033506035804749,
-0.014484534040093422,
-0.02635725401341915,
-0.027019403874874115,
0.004154532216489315,
-0.02545599266886711,
0.010272523388266563,
-0.0684957504272461,
0.006478955037891865,
-0.03553539142012596,
0.031102662906050682,
0.0013392445398494601,
0.00761932460591197,
-0.0016323840245604515,
0.09203886985778809,
0.046424079686403275,
-0.03858863562345505,
-0.006276631262153387,
-0.08284233510494232,
0.0010449556866660714,
-0.017896445468068123,
0.001646178774535656,
0.0038188588805496693,
-0.007306642830371857,
0.04973483085632324,
0.014521320350468159,
-0.03215106576681137,
0.004138438031077385,
0.030550871044397354,
-0.010585205629467964,
-0.028325309976935387,
-0.004501701332628727,
0.01671009324491024,
0.016388215124607086,
-0.002772753592580557,
-0.008451610803604126,
0.020545046776533127,
-0.0311578419059515,
0.0520891435444355,
-0.05484810099005699,
0.0006115692085586488,
-0.005140860099345446,
-0.0028325309976935387,
0.010502436198294163,
0.008856257423758507,
-0.0025175500195473433,
-0.021317554637789726,
0.02238435298204422,
0.06812789291143417,
0.0610649548470974,
-0.0012932620011270046,
-0.019183959811925888,
0.027571195736527443,
0.004910946823656559,
-0.03218785300850868,
-0.023984549567103386,
-0.0068652089685201645,
0.004184420686215162,
-0.0019508138066157699,
-0.010162165388464928,
-0.024591520428657532,
-0.010732349939644337,
-0.05359737202525139,
-0.01033689919859171,
-0.025621531531214714,
-0.013610863126814365,
-0.08056160062551498,
0.026835473254323006,
-0.05676097795367241,
-0.016158301383256912,
0.04609300568699837,
0.04807945713400841,
-0.011927898973226547,
0.013822383247315884,
-0.012167008593678474,
0.012718800455331802,
0.020379509776830673,
-0.020287543535232544,
-0.033033933490514755,
0.06316176056861877,
-0.016443394124507904,
0.04631372168660164,
-0.026026178151369095,
-0.020968087017536163,
-0.053339868783950806,
0.0035912448074668646,
-0.012360135093331337,
0.005715643055737019,
0.01191870216280222,
0.021354341879487038,
-0.11138836294412613,
-0.007067532744258642,
0.05448023974895477,
0.020177185535430908,
-0.001302458462305367,
0.03242696449160576,
0.018779313191771507,
0.0492933988571167,
0.005476533435285091,
-0.055694181472063065,
0.016296250745654106,
-0.01277397945523262,
0.016572145745158195,
0.03239017724990845,
-0.064486064016819,
0.06054994836449623,
-0.00642377557232976,
-0.06621500849723816,
0.010024216957390308,
-0.026062963530421257,
-0.018797706812620163,
-0.049992334097623825,
0.00996903795748949,
-0.012608441524207592,
-0.012286563403904438,
0.0344134122133255,
-0.0725422203540802,
-0.024793842807412148,
0.07151221483945847,
-0.019919682294130325,
0.049219824373722076,
-0.049035895615816116,
-0.058085281401872635,
0.010943870060145855,
-0.021225590258836746,
-0.05878421664237976,
-0.03888292610645294,
0.0008288372191600502,
0.0020324329379945993,
0.026964224874973297,
-0.006782440468668938,
0.03369608521461487,
-0.06798074394464493,
0.03888292610645294,
0.014613285660743713,
0.03364090621471405,
0.0040349774062633514,
0.016158301383256912,
0.0016737683909013867,
-0.015707671642303467,
-0.03319947049021721,
0.032408569008111954,
0.00900800060480833,
-0.0311578419059515,
-0.002199120121076703,
0.0008943624561652541,
0.02694583125412464,
0.0651114284992218,
-0.04392262548208237,
-0.028325309976935387,
-0.049992334097623825,
-0.007481376640498638,
-0.011771557852625847,
0.036970049142837524,
0.02415008656680584,
-0.024481160566210747,
-0.005793813616037369,
-0.009339075535535812,
0.044253699481487274,
0.03196713700890541,
-0.022531496360898018,
0.015726065263152122,
-0.05907850340008736,
-0.07015112787485123,
0.00039171468233689666,
-0.03921400010585785,
-0.020066827535629272,
0.041678670793771744,
0.007826246321201324,
-0.0061800675466656685,
0.04973483085632324,
0.026062963530421257,
0.050580911338329315,
-0.023855797946453094,
0.010815118439495564,
-0.001407069037668407,
-0.018981637433171272,
-0.00827687606215477,
0.030734801664948463,
-0.014732840470969677,
0.03800005838274956,
-0.027276907116174698,
0.07511725276708603,
0.034431807696819305,
0.013721222057938576,
0.009932251647114754,
-0.06422856450080872,
-0.0014955855440348387,
0.08034087717533112,
0.05764384567737579,
-0.012167008593678474,
-0.04715980216860771,
0.028196558356285095,
0.05506881698966026,
0.00795040000230074,
0.08813954144716263,
-0.06614144146442413,
0.010419667698442936,
0.02827013097703457,
0.017565371468663216,
-0.010125379078090191,
-0.020912908017635345,
0.10506115108728409,
0.030091043561697006,
-0.07960516214370728,
0.011440482921898365,
0.0028624197002500296,
0.03921400010585785,
0.018245914950966835,
0.0021749793086200953,
-0.00046499952441081405,
-0.025198491290211678,
-0.01212102547287941,
0.03722755238413811,
0.03840470686554909,
-0.026026178151369095,
0.0337880477309227,
0.05720241367816925,
-0.019643787294626236,
-0.02359829470515251,
-0.06246282905340195,
-0.021004872396588326,
-0.041310809552669525,
0.0651114284992218,
-0.03671254590153694,
-0.002397994976490736,
0.023432757705450058,
-0.057496700435876846,
0.04200974479317665,
-0.04870481789112091,
-0.0023497133515775204,
-0.010226540267467499,
-0.04105330631136894,
-0.005885778926312923,
0.002195671433582902,
-0.02288096584379673,
-0.02966800332069397,
-0.06941540539264679,
-0.0038234570529311895,
-0.011366910301148891,
0.02858281321823597,
-0.02821495197713375,
0.05072805657982826,
0.006184665951877832,
-0.02907942607998848,
-0.030624443665146828,
0.02852763421833515,
0.034799668937921524,
-0.019864503294229507,
-0.021317554637789726,
-0.006966371089220047,
0.07850157469511032,
0.05900493264198303,
0.03257410600781441,
-0.01004260964691639,
0.019110387191176414,
-0.0069801658391952515,
-0.030587656423449516,
0.031231414526700974,
0.01435578241944313,
0.02948407270014286,
-0.022770605981349945,
0.014971950091421604,
-0.01476962585002184,
0.006616903003305197,
-0.04410655423998833,
-0.03476288169622421,
-0.06827503442764282,
-0.06426534801721573,
-0.008424021303653717,
-0.028950674459338188,
-0.05179485306143761,
0.04771159589290619,
-0.024113299325108528,
-0.0043729497119784355,
0.007430795580148697,
-0.0019381685415282845,
0.022678641602396965,
-0.016296250745654106,
0.020066827535629272,
-0.036565400660037994,
-0.020563440397381783,
-0.005209833849221468,
-0.03983936458826065,
-0.04609300568699837,
-0.008580361492931843,
-0.04436405748128891,
0.02781030535697937,
0.05278807878494263,
0.031084269285202026,
0.08460807055234909,
0.041899386793375015,
0.028950674459338188,
0.044069770723581314,
0.023579901084303856,
0.05543667823076248,
0.022016491740942,
0.0021450903732329607,
0.038367919623851776,
-0.0025175500195473433,
0.014374175108969212,
0.05087520182132721,
0.012783176265656948,
-0.018485024571418762,
-0.011385302990674973,
0.04679194092750549,
-0.009748321026563644,
0.01838386245071888,
-0.04105330631136894,
-0.036381471902132034,
0.051758065819740295,
0.00895741954445839,
-0.008732104673981667,
-0.026853865012526512,
-0.01331657450646162,
0.025014560669660568,
-0.03308911249041557,
-0.037650592625141144,
-0.0013576376950368285,
-0.010576008819043636,
-0.032997146248817444,
-0.05819563940167427,
-0.01602955162525177,
-0.029061032459139824,
-0.034303054213523865,
-0.059299223124980927,
-0.06588393449783325,
0.015303025022149086,
0.09417246282100677,
0.03468930721282959,
0.021354341879487038,
0.08041445165872574,
0.08703595399856567,
0.02269703522324562,
0.01659053936600685,
-0.00769749516621232,
0.013095857575535774,
-0.04914625361561775,
0.03112105466425419,
-0.043701909482479095,
-0.03198552876710892,
0.0019059807527810335,
-0.00761012826114893,
-0.04079580307006836,
-0.006005333736538887,
0.024849021807312965,
-0.05484810099005699,
0.014594892039895058,
0.027552802115678787,
-0.040133655071258545,
-0.010419667698442936,
0.029373714700341225,
-0.015128291212022305,
-0.020324330776929855,
0.09740963578224182,
0.013987921178340912,
-0.04469513148069382,
0.027699947357177734,
-0.0097667146474123,
0.006529536098241806,
0.053523801267147064,
0.03491002693772316,
0.031139448285102844,
0.03491002693772316,
-0.001473743817768991,
0.019772538915276527,
0.011293337680399418,
0.03754023462533951,
0.025621531531214714,
-0.00895741954445839,
0.01609392650425434,
0.023506328463554382,
-0.059225648641586304,
0.05400202050805092,
-0.008690720424056053,
0.013482112437486649,
-0.010934673249721527,
-0.013601667247712612,
0.04973483085632324,
-0.010870297439396381,
-0.028288524597883224,
0.017031973227858543,
-0.07118114084005356,
-0.0064053828828036785,
-0.018733330070972443,
0.057092055678367615,
0.025713495910167694,
0.00596854742616415,
-0.045872289687395096,
0.03323625773191452,
-0.01419944129884243,
-0.007886024191975594,
-0.018347077071666718,
0.029373714700341225,
-0.02541920728981495,
0.025382421910762787,
-0.04296618700027466,
0.10822475701570511,
0.02762637473642826,
0.010566812008619308,
0.0008345850510522723,
-0.021133624017238617,
0.04660801216959953,
-0.09233315289020538,
-0.016654914245009422,
0.0030095642432570457,
0.026577970013022423,
0.003526868997141719,
-0.000240546723944135,
-0.01590080000460148,
-0.019643787294626236,
0.007596333511173725,
-0.004669537767767906,
-0.0492933988571167,
-0.013086661696434021,
-0.016296250745654106,
0.014098279178142548,
0.002988872118294239,
-0.03196713700890541,
-0.02179577387869358,
0.048410531133413315,
-0.013013089075684547,
0.06570000946521759,
-0.06110174208879471,
0.03491002693772316,
0.0019990955479443073,
0.009150546975433826,
0.00371309882029891,
-0.05267772078514099,
-0.020287543535232544,
-0.009371263906359673,
-0.050396982580423355,
-0.03496520593762398,
-0.031176235526800156,
0.012838355265557766,
0.027755126357078552,
-0.02668832801282406,
0.0341007299721241,
-0.008520584553480148,
0.0322430320084095,
-0.06650929898023605,
-0.004216608591377735,
0.0007414701976813376,
-0.01266362052410841,
0.04042794182896614,
-0.023579901084303856,
0.012764782644808292,
0.08225376158952713,
-0.008575763553380966,
0.04064866155385971,
0.023304006084799767,
-0.012111829593777657,
-0.021961312741041183,
0.04517335072159767,
-0.02930014207959175,
0.004205113276839256,
-0.028104593977332115,
0.008732104673981667,
0.05186842754483223,
0.010603598318994045,
-0.009021795354783535,
-0.03685969114303589,
-0.06753931194543839,
-0.041274022310972214,
-0.012865944765508175,
-0.02359829470515251,
-0.06772324442863464,
0.04631372168660164,
-0.0784280002117157,
0.03159927576780319,
0.06286747753620148,
0.04539407044649124,
-0.010281720198690891,
-0.034615736454725266,
-0.05940958112478256,
-0.06581036746501923,
-0.02668832801282406,
0.0097667146474123,
-0.016884827986359596,
-0.007481376640498638,
-0.04749087616801262,
-0.013693632557988167,
0.010097789578139782,
0.08541736751794815,
0.006097299046814442,
-0.019147174432873726,
0.03215106576681137,
-0.042083319276571274,
0.01365684624761343,
0.0073664202354848385,
-0.01542257983237505,
-0.022991323843598366,
0.015128291212022305,
0.012093435972929,
-0.01673768274486065,
-0.06823825091123581,
-0.007945801131427288,
0.05584132671356201,
-0.00488335732370615,
-0.03413751721382141,
0.02337757684290409,
0.031047483906149864,
0.029723182320594788,
-0.019202353432774544,
0.045430853962898254,
0.001097835716791451,
0.010759939439594746,
-0.0021818766836076975,
-0.005099475383758545,
-0.01049324031919241,
0.015376596711575985,
-0.041899386793375015,
-0.00002735608177317772,
-0.005053492728620768,
-0.01876091957092285,
0.050360195338726044,
0.07338830828666687,
-0.01580883376300335,
0.02541920728981495,
0.11352195590734482,
0.022218814119696617,
-0.027295298874378204,
0.04693908616900444,
-0.008207902312278748,
0.02604457177221775,
-0.005876582115888596,
-0.03713558614253998,
0.0883602574467659,
0.038735780864953995,
-0.05319272726774216,
0.0924067273736,
-0.005407559219747782,
-0.03928757458925247,
0.006322613917291164,
0.03397198021411896,
-0.003462493419647217,
0.014364979229867458,
-0.038551852107048035,
0.0020036939531564713,
0.017841266468167305,
0.021740594878792763,
-0.0007684850133955479,
0.034027159214019775,
-0.023304006084799767,
-0.041862603276968,
-0.03395358473062515,
0.02880352921783924,
0.022182028740644455,
-0.004851169418543577,
-0.06073388084769249,
-0.00028480502078309655,
-0.01438337191939354,
0.017004383727908134,
-0.017556173726916313,
-0.02427883818745613,
0.03044051304459572,
0.0178228747099638,
0.10763618350028992,
0.04377548024058342,
-0.04292939975857735,
-0.01523864921182394,
0.04719658941030502,
0.009067777544260025,
-0.02306489646434784,
-0.04653443768620491,
0.04944054037332535,
0.02365347370505333,
-0.044290486723184586,
0.040759019553661346,
-0.009555193595588207,
-0.039361145347356796,
0.06496428698301315,
-0.059262435883283615,
0.0002414088958175853,
0.03189356252551079,
0.04778516665101051,
-0.044032983481884,
-0.017510192468762398,
0.022715426981449127,
0.0210784450173378,
0.0725422203540802,
0.006607706192880869,
0.01599276438355446,
0.003740688320249319,
-0.01119217649102211,
0.012645227834582329,
-0.016066337004303932,
0.041899386793375015,
0.004051071126013994,
-0.0607706680893898,
0.02523527666926384,
0.04616657644510269,
-0.06209496781229973,
-0.022034885361790657,
-0.007554948795586824,
0.004182121716439724,
0.0025566350668668747,
-0.04535728320479393,
0.024793842807412148,
0.05819563940167427,
0.012525673024356365,
0.034303054213523865,
-0.025345634669065475
] |
17,719 | imodels.discretization.discretizer | _validate_args |
Check if encode, strategy, backup_strategy arguments are valid.
| def _validate_args(self):
"""
Check if encode, strategy, backup_strategy arguments are valid.
"""
super()._validate_args()
valid_backup_strategy = ('uniform', 'quantile', 'kmeans')
if (self.backup_strategy not in valid_backup_strategy):
raise ValueError("Valid options for 'strategy' are {}. Got strategy={!r} instead."
.format(valid_backup_strategy, self.backup_strategy))
| (self) | [
-0.010501930490136147,
-0.020677287131547928,
-0.014661451801657677,
0.010321456007659435,
0.009917535819113255,
-0.04022016003727913,
-0.011155079118907452,
0.017806874588131905,
0.02444148249924183,
-0.05672074109315872,
0.017145132645964622,
0.06617419421672821,
-0.05754576995968819,
-0.024080531671643257,
-0.028171300888061523,
0.0034118383191525936,
0.011352742090821266,
0.027982231229543686,
0.04963923990726471,
0.01279654260724783,
-0.0064025684259831905,
-0.02729470655322075,
-0.02710563875734806,
0.03071513958275318,
0.03798570856451988,
0.09783468395471573,
0.026211857795715332,
-0.026057163253426552,
0.004099362529814243,
0.07892777025699615,
-0.04602973908185959,
0.006823676638305187,
0.05782077834010124,
0.1056724563241005,
0.020505405962467194,
-0.05991772562265396,
0.01582164876163006,
0.07899652421474457,
-0.0941908061504364,
-0.024905560538172722,
-0.010055040009319782,
-0.028171300888061523,
0.03578563034534454,
-0.004417342599481344,
0.023668017238378525,
-0.0015394095098599792,
-0.05837079882621765,
0.04413904994726181,
-0.04011703282594681,
-0.06888991594314575,
0.014652857556939125,
-0.046511005610227585,
0.034943412989377975,
0.0586114302277565,
-0.03465121611952782,
0.05183931812644005,
0.05328311771154404,
0.1062224730849266,
-0.019697565585374832,
0.03171205148100853,
-0.02169138565659523,
0.026229044422507286,
0.01167072169482708,
-0.051014289259910583,
0.02880726009607315,
-0.0696118175983429,
-0.07830899953842163,
-0.010012069717049599,
-0.012289493344724178,
0.07480262219905853,
0.02734627202153206,
-0.02946040779352188,
-0.015022401697933674,
0.04544534534215927,
-0.038157589733600616,
-0.03853572532534599,
-0.018047507852315903,
0.04011703282594681,
-0.006815082859247923,
0.03967014327645302,
-0.001444874913431704,
-0.0350809171795845,
0.010880068875849247,
-0.017308419570326805,
0.006140449550002813,
-0.04513595998287201,
-0.0202819611877203,
0.005568945314735174,
0.05421127751469612,
0.00431851064786315,
-0.05280185118317604,
-0.019061606377363205,
0.03925762698054314,
0.01797875575721264,
0.01608806475996971,
0.009272981435060501,
-0.03496060147881508,
-0.03276052325963974,
0.00799246784299612,
-0.041251447051763535,
-0.04544534534215927,
-0.005341202951967716,
0.06782425194978714,
-0.005822469945997,
0.014214561320841312,
-0.05149555578827858,
-0.00010809705418068916,
-0.06981807202100754,
-0.05740826204419136,
-0.02284298837184906,
-0.0018584636272862554,
-0.011103514581918716,
0.002900492399930954,
0.02935728058218956,
-0.05156430974602699,
-0.025936847552657127,
-0.048711083829402924,
-0.04877983778715134,
-0.025008689612150192,
-0.002027121838182211,
-0.018906913697719574,
0.06002085655927658,
-0.009023753926157951,
-0.009204229339957237,
0.046579759567976,
0.015804460272192955,
0.030079180374741554,
0.05293935537338257,
-0.042764000594615936,
0.03540749102830887,
0.049811121076345444,
-0.024372730404138565,
-0.06380223482847214,
-0.03812321275472641,
-0.005452925805002451,
-0.022757047787308693,
0.08951564133167267,
0.026057163253426552,
-0.014695827849209309,
0.0019701863639056683,
0.0476110465824604,
0.025180570781230927,
0.03200424835085869,
-0.008044032379984856,
0.014790362678468227,
0.02925415150821209,
0.0022688296157866716,
-0.046064116060733795,
0.011464464478194714,
0.009126883000135422,
0.0621178038418293,
0.05606759339570999,
-0.0886906087398529,
-0.05221745744347572,
-0.010854287073016167,
-0.03585438430309296,
-0.013595789670944214,
-0.02710563875734806,
-0.02870413102209568,
-0.007876448333263397,
-0.004198194015771151,
-0.029426032677292824,
0.028669755905866623,
-0.024871185421943665,
0.03526998683810234,
0.04001390188932419,
0.024218037724494934,
0.0031733533833175898,
0.02619466930627823,
0.025558708235621452,
-0.00409291684627533,
0.004821262788027525,
-0.022069524973630905,
0.007738943211734295,
-0.02294611744582653,
0.0616021603345871,
0.02033352665603161,
-0.029941676184535027,
0.000902375380974263,
-0.016818558797240257,
0.005263856612145901,
-0.05283622816205025,
-0.040460795164108276,
-0.03863885626196861,
0.04730165749788284,
-0.0545894131064415,
0.0031024524942040443,
0.000032261265005217865,
-0.006660389713943005,
0.008426467888057232,
-0.006316627841442823,
-0.014988025650382042,
-0.0024772353935986757,
-0.023358631879091263,
0.0012386176967993379,
-0.0700930804014206,
-0.011326959356665611,
-0.024716492742300034,
0.03164329752326012,
0.05905831977725029,
-0.0004041889915242791,
-0.05685824528336525,
0.04338277131319046,
-0.04035766422748566,
0.02444148249924183,
0.02399459108710289,
-0.02671031281352043,
-0.045960988849401474,
0.024561798200011253,
-0.019508495926856995,
-0.004567738156765699,
-0.05036114156246185,
-0.008383497595787048,
0.025025878101587296,
0.03365430608391762,
-0.02559308521449566,
0.10512243956327438,
-0.013123116455972195,
-0.017995944246649742,
0.08044032007455826,
0.09982850402593613,
0.024114908650517464,
0.0212960597127676,
0.007979576475918293,
0.06981807202100754,
-0.006737736519426107,
0.05816454067826271,
-0.03953263536095619,
-0.0023182453587651253,
0.03152298182249069,
-0.06400849670171738,
-0.03411838412284851,
-0.043760910630226135,
0.05606759339570999,
0.031093278899788857,
0.03884511440992355,
0.018408458679914474,
-0.05025801435112953,
-0.01320046279579401,
0.014773174189031124,
-0.0031755019444972277,
0.052114326506853104,
-0.009126883000135422,
0.008980783633887768,
0.010699594393372536,
-0.041595209389925,
0.038191962987184525,
0.027741597965359688,
0.00999488215893507,
-0.0029133835341781378,
0.018752221018075943,
0.007661596871912479,
-0.04324526712298393,
0.010287079960107803,
-0.020728852599859238,
-0.04991425201296806,
-0.006376786157488823,
-0.029941676184535027,
0.03626689687371254,
-0.011765256524085999,
-0.054073773324489594,
0.031076090410351753,
-0.024871185421943665,
0.0425921194255352,
0.0005510935443453491,
-0.013062958605587482,
0.043760910630226135,
-0.018752221018075943,
-0.000900226878002286,
0.030990149825811386,
0.03339648246765137,
0.033998068422079086,
-0.05991772562265396,
0.0566176101565361,
-0.015030995942652225,
-0.007197517901659012,
0.041457705199718475,
-0.016242757439613342,
-0.004438827745616436,
0.025180570781230927,
0.08105909079313278,
-0.00038377809687517583,
0.02093510888516903,
-0.011507434770464897,
0.00533690582960844,
0.007227597292512655,
-0.009505020454525948,
-0.11488527804613113,
0.012315276078879833,
0.03202143684029579,
-0.03485747426748276,
0.012891077436506748,
0.03272614628076553,
-0.0027350569143891335,
0.004907203372567892,
-0.02310081012547016,
0.0711587443947792,
-0.08408419787883759,
0.025936847552657127,
0.012934047728776932,
0.004041352774947882,
-0.02671031281352043,
-0.01054490078240633,
0.05063614994287491,
0.030044803395867348,
-0.02915102243423462,
0.03490903601050377,
-0.032279256731271744,
-0.006939696613699198,
0.023375820368528366,
0.018924102187156677,
0.0037598975468426943,
0.01784125156700611,
0.003474145196378231,
0.012590285390615463,
-0.015245847404003143,
0.051667436957359314,
-0.030869832262396812,
-0.042007721960544586,
0.04953611269593239,
-0.07741521298885345,
0.029597913846373558,
-0.03281208872795105,
-0.030921397730708122,
-0.06046774610877037,
0.017102163285017014,
-0.003560085780918598,
0.030233873054385185,
-0.0005919152754358947,
-0.029271339997649193,
-0.09907222539186478,
-0.012916859239339828,
0.014309095218777657,
0.035098105669021606,
-0.057133253663778305,
0.0021442158613353968,
-0.020574159920215607,
-0.02781035006046295,
0.06273657828569412,
0.02344457246363163,
0.048367321491241455,
0.00038512091850861907,
0.013991115614771843,
0.024114908650517464,
0.02760409377515316,
-0.0045333621092140675,
0.021914830431342125,
-0.012255117297172546,
0.03518404811620712,
0.028618190437555313,
-0.06198029965162277,
0.04217960312962532,
-0.04898609220981598,
0.014902085065841675,
0.08319041877985,
-0.033190228044986725,
0.011696504428982735,
-0.022430473938584328,
-0.006583043374121189,
-0.03647315502166748,
0.06768675148487091,
-0.09783468395471573,
0.002558878855779767,
0.04297025874257088,
-0.01662948913872242,
0.002359067089855671,
0.019714754074811935,
-0.055380068719387054,
0.03224487975239754,
-0.06246156617999077,
0.005929895676672459,
-0.046511005610227585,
0.001902508083730936,
-0.027432212606072426,
-0.006583043374121189,
0.026022788137197495,
-0.0033796108327805996,
0.0345480851829052,
-0.01473020389676094,
0.03633565083146095,
0.02399459108710289,
0.000780984410084784,
-0.0034225808922201395,
0.03422151133418083,
-0.010029258206486702,
-0.006583043374121189,
-0.04087330773472786,
0.009255793876945972,
0.05507068336009979,
-0.049020469188690186,
-0.027140013873577118,
-0.004327104892581701,
0.022705484181642532,
-0.027586905285716057,
-0.0011462316615507007,
0.03260583057999611,
0.0007390883984044194,
0.01763499341905117,
-0.018786596134305,
0.0066303107887506485,
-0.013887987472116947,
-0.06596793979406357,
0.010536307469010353,
0.025661837309598923,
-0.003886659862473607,
-0.005113460589200258,
0.01813344843685627,
0.047370411455631256,
0.028566626831889153,
0.020161645486950874,
-0.008082705549895763,
-0.05135805159807205,
0.006002944894134998,
0.023564888164401054,
-0.014317689463496208,
-0.0030594822019338608,
-0.01155040506273508,
-0.02779316157102585,
-0.03150579333305359,
-0.00044877061736769974,
0.034582462161779404,
0.023255502805113792,
0.02548995614051819,
0.024166472256183624,
0.06803051382303238,
0.012805136851966381,
-0.06696484982967377,
-0.031780801713466644,
-0.008220210671424866,
-0.011498840525746346,
-0.02189764380455017,
-0.030680764466524124,
-0.05606759339570999,
-0.007610032334923744,
-0.01004644576460123,
0.03771069645881653,
-0.03105890192091465,
0.027036886662244797,
-0.007420963607728481,
0.03616376966238022,
-0.02475086785852909,
-0.07219003140926361,
0.024114908650517464,
0.02365082874894142,
0.048470448702573776,
-0.03836384415626526,
-0.009676901623606682,
0.01873503252863884,
0.013019988313317299,
0.007038528099656105,
-0.00006593248690478504,
0.027982231229543686,
-0.0631147101521492,
-0.020110080018639565,
-0.01768655702471733,
-0.007678784895688295,
-0.024922749027609825,
-0.007382289972156286,
-0.03798570856451988,
-0.025266511365771294,
0.052114326506853104,
-0.030526069924235344,
-0.060089606791734695,
0.03836384415626526,
0.059780221432447433,
0.06858053058385849,
0.01602790504693985,
0.005332608707249165,
0.005525975022464991,
0.0716400146484375,
-0.05128929764032364,
-0.022258592769503593,
0.03296678140759468,
-0.030697951093316078,
-0.04138895124197006,
0.01968037709593773,
0.04675164073705673,
0.028085360303521156,
-0.0013621571706607938,
0.014764579944312572,
-0.001107558375224471,
0.00671195425093174,
0.001059753936715424,
0.0621178038418293,
-0.014171591028571129,
-0.07439010590314865,
-0.0836716815829277,
-0.03050888329744339,
-0.01393095776438713,
0.05366125702857971,
-0.019972575828433037,
-0.017617804929614067,
0.038948241621255875,
0.02548995614051819,
0.032983969897031784,
0.03147141635417938,
-0.019456932321190834,
0.0390857458114624,
0.018202200531959534,
-0.0037470064125955105,
0.04874546080827713,
0.008460843935608864,
-0.00512205483391881,
-0.032330822199583054,
0.01797875575721264,
-0.0926782488822937,
-0.01014098059386015,
0.015134125016629696,
-0.009040942415595055,
0.014523946680128574,
-0.04022016003727913,
0.0060716974548995495,
0.06675859540700912,
0.05465816706418991,
0.03826071694493294,
0.017652181908488274,
-0.0545894131064415,
-0.0119027616456151,
0.012882483191788197,
0.04877983778715134,
0.014867709018290043,
-0.017755310982465744,
0.052767474204301834,
-0.07246503978967667,
0.031041713431477547,
-0.05342062562704086,
0.007304943632334471,
-0.05596446245908737,
0.03936075419187546,
0.006943993736058474,
-0.0031518684700131416,
0.002773730084300041,
0.047267284244298935,
0.044001542031764984,
-0.0017263301415368915,
0.036885667592287064,
-0.010630841366946697,
0.034737154841423035,
0.011369929648935795,
-0.02475086785852909,
0.011430088430643082,
-0.020024139434099197,
0.006033024284988642,
-0.04437968134880066,
0.027518153190612793,
0.010158169083297253,
0.011198049411177635,
0.01547788642346859,
-0.028085360303521156,
-0.028996329754590988,
0.009625338017940521,
0.01342390850186348,
0.019319428130984306,
0.0031604624819010496,
0.03881073743104935,
-0.05390189215540886,
0.02946040779352188,
0.041045188903808594,
0.04513595998287201,
0.00031475714058615267,
-0.03846697509288788,
-0.052973732352256775,
-0.021914830431342125,
-0.017402954399585724,
-0.051014289259910583,
-0.0067850034683942795,
0.014584105461835861,
-0.00809559691697359,
-0.04231711104512215,
0.04011703282594681,
0.011808226816356182,
-0.04293588176369667,
-0.002995026996359229,
-0.033190228044986725,
-0.05080803111195564,
-0.020556971430778503,
0.011155079118907452,
0.005036114249378443,
-0.04489532485604286,
-0.03135110065340996,
0.04613287001848221,
-0.011490247212350368,
-0.014283313415944576,
-0.03260583057999611,
0.0041509270668029785,
0.0350809171795845,
0.025472767651081085,
-0.029580725356936455,
0.0034139868803322315,
0.040804557502269745,
-0.012418404221534729,
0.06538354605436325,
0.021983584389090538,
-0.09309076517820358,
0.012194959446787834,
0.000557539111468941,
0.011180860921740532,
-0.10092853754758835,
0.01849439926445484,
-0.026366550475358963,
0.011980107985436916,
0.03991077467799187,
-0.003231363371014595,
0.011627751402556896,
0.04644225537776947,
-0.0005908410530537367,
-0.05744263902306557,
0.054623790085315704,
-0.025386827066540718,
-0.028790071606636047,
-0.01754045858979225,
0.00779050774872303,
0.013492660596966743,
-0.04369215667247772,
0.009272981435060501,
-0.022911740466952324,
-0.007455339655280113,
-0.031437039375305176,
0.03942950814962387,
0.05342062562704086,
-0.014498164877295494,
0.03551062196493149,
0.005964271724224091,
0.02444148249924183,
-0.08786558359861374,
-0.022464850917458534,
-0.03760756924748421,
-0.0029112349729985,
-0.058989569544792175,
-0.10828504711389542,
-0.017445923760533333,
-0.0561019666492939,
0.07487137615680695,
-0.03946388512849808,
-0.03595751151442528,
-0.010149574838578701,
0.027191579341888428,
-0.0040069762617349625,
-0.011962919495999813,
-0.03757319226861,
0.026366550475358963,
0.012787948362529278,
0.021519504487514496,
0.03526998683810234,
-0.05902394652366638,
-0.004002679605036974,
-0.024458670988678932,
0.01628572680056095,
0.03425588831305504,
-0.011748068034648895,
0.015108342282474041,
0.04998300224542618,
-0.017669370397925377,
-0.010003475472331047,
0.008662804029881954,
0.06552104651927948,
0.029236963018774986,
0.015383352525532246,
0.05806141346693039,
-0.06772112846374512,
-0.02765565738081932,
0.04121707007288933,
0.028893200680613518,
0.050773654133081436,
0.007128765806555748,
0.04352027550339699,
-0.04898609220981598,
-0.018305329605937004,
0.02083197981119156,
0.012409809976816177,
-0.04517033323645592,
-0.03537311404943466,
-0.014867709018290043,
-0.00022868234373163432,
0.0011795335449278355,
-0.0077475374564528465,
-0.02273985929787159,
-0.03530436381697655,
0.019663190469145775,
-0.03236519917845726,
0.0048814211040735245,
-0.010639435611665249,
-0.02970104105770588,
0.014025491662323475,
0.0045075798407197,
0.06098338961601257,
-0.03582000732421875,
0.027071261778473854,
-0.016208380460739136,
-0.020763227716088295,
0.005521677900105715,
-0.009977693669497967,
0.034943412989377975,
-0.0029778387397527695,
0.026865005493164062,
-0.046614136546850204,
-0.06469602137804031,
0.005517381243407726,
0.02609154023230076,
-0.03702317550778389,
0.0052853417582809925,
0.0060716974548995495,
-0.04173271358013153,
0.05864580720663071,
-0.003334491979330778,
-0.014584105461835861,
-0.05091116204857826,
-0.03578563034534454,
0.052423715591430664,
-0.02574777789413929,
0.015073966234922409,
0.01567555032670498,
0.03392931446433067,
-0.016973251476883888,
-0.022757047787308693,
0.0004181543190497905,
0.011241019703447819,
-0.012083236128091812,
0.006810785736888647,
-0.041457705199718475,
-0.06679296493530273,
-0.007738943211734295,
-0.026160292327404022,
-0.0010866103693842888,
0.0056677768006920815,
-0.04822981730103493,
-0.04111394286155701,
-0.06851177662611008,
0.05782077834010124,
-0.01638026162981987,
0.02509463019669056,
-0.021519504487514496,
-0.025833718478679657,
0.09728465974330902,
0.028085360303521156,
-0.0006354227080009878,
0.0024106313940137625,
0.00811278447508812,
0.03477153182029724,
0.06198029965162277,
0.03771069645881653,
0.02664155885577202,
-0.007661596871912479,
0.013879393227398396,
0.03241676092147827,
0.03241676092147827,
0.000016734900782466866,
0.012504344806075096,
-0.028618190437555313,
-0.04231711104512215,
0.03736693412065506,
-0.017600618302822113,
0.007846369408071041,
0.06833989918231964,
-0.016509173437952995,
-0.024871185421943665,
0.038157589733600616,
0.017652181908488274,
0.006986964028328657,
-0.024321164935827255,
-0.043107762932777405,
-0.014360659755766392,
0.03490903601050377,
-0.007953794673085213,
0.05025801435112953,
-0.030887020751833916,
0.051667436957359314,
-0.0125215332955122
] |
17,724 | imodels.discretization.discretizer | fit |
Fit the estimator.
Parameters
----------
X : data frame of shape (n_samples, n_features)
(Training) data to be discretized.
y : array-like of shape (n_samples,)
(Training) response vector. Required only if
rf_model = None or rf_model has not yet been fitted
Returns
-------
self
| def fit(self, X, y=None):
"""
Fit the estimator.
Parameters
----------
X : data frame of shape (n_samples, n_features)
(Training) data to be discretized.
y : array-like of shape (n_samples,)
(Training) response vector. Required only if
rf_model = None or rf_model has not yet been fitted
Returns
-------
self
"""
# initialization and error checking
self._fit_preprocessing(X)
# get all random forest split points
self._fit_rf(X=X, y=y)
# features that were not used in the rf but need to be discretized
self.missing_rf_cols_ = list(set(self.dcols_) -
set(self.rf_splits.keys()))
if len(self.missing_rf_cols_) > 0:
print("{} did not appear in random forest so were discretized via {} discretization"
.format(self.missing_rf_cols_, self.strategy))
missing_n_bins = np.array([self.n_bins[np.array(self.dcols_) == col][0]
for col in self.missing_rf_cols_])
backup_discretizer = BasicDiscretizer(n_bins=missing_n_bins,
dcols=self.missing_rf_cols_,
encode='ordinal',
strategy=self.backup_strategy)
backup_discretizer.fit(X[self.missing_rf_cols_])
self.backup_discretizer_ = backup_discretizer
else:
self.backup_discretizer_ = None
if self.encode == 'onehot':
if len(self.missing_rf_cols_) > 0:
discretized_df = backup_discretizer.transform(
X[self.missing_rf_cols_])
else:
discretized_df = pd.DataFrame({}, index=X.index)
# do discretization based on rf split thresholds
self.bin_edges_ = dict()
for col in self.dcols_:
if col in self.rf_splits.keys():
b = self.n_bins[np.array(self.dcols_) == col]
if self.strategy == "quantile":
q_values = np.linspace(0, 1, int(b) + 1)
bin_edges = np.quantile(self.rf_splits[col], q_values)
elif self.strategy == "uniform":
width = (max(self.rf_splits[col]) -
min(self.rf_splits[col])) / b
bin_edges = width * \
np.arange(0, b + 1) + min(self.rf_splits[col])
self.bin_edges_[col] = bin_edges
if self.encode == 'onehot':
discretized_df[col] = self._discretize_to_bins(
X[col], bin_edges)
# fit onehot encoded X if specified
if self.encode == "onehot":
onehot = OneHotEncoder(drop=self.onehot_drop) # , sparse=False)
onehot.fit(discretized_df[self.dcols_].astype(str))
self.onehot_ = onehot
return self
| (self, X, y=None) | [
-0.01240240503102541,
-0.033735327422618866,
0.009333768859505653,
-0.005183241330087185,
0.007996157743036747,
-0.03296817094087601,
-0.020319880917668343,
0.00839940831065178,
0.027912788093090057,
-0.05047513172030449,
-0.008699387311935425,
0.04748518019914627,
-0.016975853592157364,
-0.0010345582850277424,
-0.0015404652804136276,
0.03363697603344917,
-0.03593845292925835,
0.04724913090467453,
0.023663906380534172,
-0.004932439420372248,
-0.027539044618606567,
-0.016985688358545303,
-0.06011379882693291,
0.01678898185491562,
-0.0058176228776574135,
-0.003845630679279566,
0.007253587245941162,
-0.031276486814022064,
-0.002926023444160819,
0.03182726725935936,
-0.00827154889702797,
0.0002567954361438751,
-0.04315761476755142,
0.0023371304851025343,
-0.006348733324557543,
-0.08159425109624863,
0.025985054671764374,
0.04811464250087738,
0.0019978100899606943,
-0.021991893649101257,
-0.047052424401044846,
-0.06054655462503433,
-0.022523004561662674,
-0.02132308855652809,
-0.032260023057460785,
0.04512469097971916,
-0.0280111413449049,
0.04284288361668587,
0.016936512663960457,
-0.035722073167562485,
-0.03450248762965202,
-0.06943773478269577,
-0.012215533293783665,
0.05586491897702217,
0.002562114503234625,
0.028660276904702187,
0.007804368156939745,
0.026575177907943726,
0.02997821569442749,
-0.021991893649101257,
0.003444839268922806,
0.0453607402741909,
0.006707724183797836,
0.038554660975933075,
0.016179189085960388,
0.011940142139792442,
-0.05968104302883148,
0.041151199489831924,
-0.006491345819085836,
0.02836521528661251,
0.013395777903497219,
-0.021303417161107063,
0.03456149995326996,
0.06365453451871872,
0.0028030811809003353,
0.01911013014614582,
-0.02663419023156166,
-0.037335075438022614,
0.014113759621977806,
-0.006442169193178415,
0.024824481457471848,
0.041741322726011276,
0.016966018825769424,
-0.05448796600103378,
-0.03648923337459564,
-0.009855043143033981,
0.032260023057460785,
0.030469985678792,
0.05444862321019173,
-0.012382734566926956,
0.00005697600863641128,
0.025591639801859856,
0.020654283463954926,
0.017615152522921562,
0.027676738798618317,
-0.0003943369665648788,
-0.05783199146389961,
0.01765449345111847,
-0.0009497281862422824,
-0.07647985965013504,
-0.02122473530471325,
0.07266373187303543,
0.017979061231017113,
0.10897593200206757,
-0.03690231963992119,
-0.00907313171774149,
0.0013732638908550143,
0.012166355736553669,
-0.08395474404096603,
-0.05185208469629288,
-0.07463081181049347,
0.006338897626847029,
0.02576867677271366,
0.041387248784303665,
-0.06648711860179901,
-0.057674627751111984,
-0.05712384358048439,
0.02110671065747738,
0.002046986948698759,
-0.03045031428337097,
-0.0033833682537078857,
0.01877572573721409,
-0.05035710707306862,
-0.03359763324260712,
-0.02690958045423031,
0.0316108874976635,
0.02999788708984852,
0.05118327960371971,
-0.025847360491752625,
-0.01701519452035427,
0.022877076640725136,
0.014762894250452518,
-0.01971992291510105,
0.04158395528793335,
0.015185815282166004,
-0.03751211240887642,
-0.004893098026514053,
0.02244432084262371,
0.031768254935741425,
-0.05543215945363045,
0.06884761154651642,
-0.014418656937777996,
0.052009452134370804,
-0.004130856599658728,
0.053583111613988876,
0.05185208469629288,
-0.0018207733519375324,
-0.020064160227775574,
0.00034915574360638857,
0.00460049556568265,
-0.04748518019914627,
0.060625236481428146,
0.016720132902264595,
-0.027952129021286964,
0.010056668892502785,
0.0060143303126096725,
-0.03011591173708439,
-0.006068424787372351,
0.003951360937207937,
0.008350231684744358,
-0.030194593593478203,
-0.03938083350658417,
0.009171484969556332,
-0.04614757001399994,
0.0028350462671369314,
0.057556603103876114,
-0.04010865092277527,
-0.0473671555519104,
0.006515934597700834,
0.02628011628985405,
0.0026678447611629963,
-0.01123199611902237,
-0.08442684262990952,
0.010199281387031078,
-0.05023908242583275,
0.08655127882957458,
0.020654283463954926,
-0.021618150174617767,
-0.034482818096876144,
0.07427673786878586,
0.03007657080888748,
-0.05555018410086632,
-0.014497339725494385,
-0.07152283191680908,
-0.017241409048438072,
0.012294216081500053,
0.014153101481497288,
-0.025001518428325653,
0.022149259224534035,
0.04665900766849518,
0.014880918897688389,
-0.009845208376646042,
0.010268129408359528,
-0.02047724649310112,
0.02824719063937664,
-0.05932696908712387,
0.004988993052393198,
-0.0010554584441706538,
0.046816375106573105,
-0.006791324820369482,
0.018706878647208214,
0.03045031428337097,
0.051616035401821136,
-0.032279692590236664,
-0.05735989287495613,
0.035092610865831375,
-0.04107251763343811,
0.019572392106056213,
-0.019188812002539635,
-0.004157903604209423,
-0.013179399073123932,
-0.013120387680828571,
-0.0042119985446333885,
0.02934875153005123,
0.03877104073762894,
0.002539985114708543,
0.03593845292925835,
-0.029899533838033676,
0.015884127467870712,
-0.030745375901460648,
-0.0038825133815407753,
-0.0009472693200223148,
-0.06381189823150635,
-0.013307259418070316,
-0.008035499602556229,
-0.04209539666771889,
0.023014772683382034,
-0.022759051993489265,
0.04032502695918083,
-0.09371142834424973,
-0.04339366406202316,
-0.03839729353785515,
0.02714562974870205,
-0.05732055380940437,
0.0025018728338181973,
0.03503359854221344,
0.037826843559741974,
-0.004084138665348291,
-0.028542252257466316,
0.006830666214227676,
-0.022267283871769905,
0.0016179188387468457,
-0.005517644342035055,
-0.04772122949361801,
0.012107343412935734,
0.01559890154749155,
0.0012404863955453038,
0.049924351274967194,
0.03060767985880375,
-0.041623298078775406,
-0.025571968406438828,
-0.051261961460113525,
-0.04540007933974266,
-0.01851017214357853,
0.019070787355303764,
-0.11881130188703537,
-0.009097719565033913,
0.02268037013709545,
0.028443897143006325,
0.015225157141685486,
-0.0000540561304660514,
0.024116333574056625,
-0.01887408085167408,
0.052245501428842545,
-0.10433363169431686,
0.02024119719862938,
-0.023368844762444496,
-0.023486869409680367,
0.03747276961803436,
-0.014989107847213745,
0.040915150195360184,
0.04429851844906807,
-0.019267495721578598,
-0.012982691638171673,
-0.020516587421298027,
0.05519611015915871,
-0.027440689504146576,
-0.04351168870925903,
0.01962156780064106,
0.019139636307954788,
0.048783447593450546,
-0.07356858998537064,
0.04056107625365257,
0.018962599337100983,
0.018687209114432335,
0.030135581269860268,
-0.056455038487911224,
-0.034482818096876144,
0.008925600908696651,
-0.017959389835596085,
-0.047563862055540085,
0.029545459896326065,
0.06396926194429398,
0.06389058381319046,
0.049766987562179565,
0.0028006224893033504,
-0.004054632503539324,
-0.05590425804257393,
0.01593330316245556,
0.03125681355595589,
-0.027696410194039345,
0.03172891214489937,
0.0002764661912806332,
0.02602439559996128,
0.018421653658151627,
-0.05307167023420334,
0.04913752153515816,
-0.003538275370374322,
-0.02628011628985405,
0.018844574689865112,
0.011930307373404503,
0.043747738003730774,
0.0542912594974041,
-0.033263228833675385,
-0.03037163056433201,
-0.05795001611113548,
0.031532205641269684,
0.01233355700969696,
0.02962414361536503,
0.05090789124369621,
-0.02096901461482048,
0.008832165040075779,
-0.004671802278608084,
0.004893098026514053,
0.01579560898244381,
0.04957027733325958,
0.044849298894405365,
0.008035499602556229,
-0.08332528173923492,
-0.00839449092745781,
0.021067367866635323,
-0.03011591173708439,
0.006870008073747158,
0.02309345453977585,
0.013779357075691223,
0.013090881519019604,
0.016592273488640785,
-0.03851531818509102,
-0.0010904970113188028,
-0.009023954160511494,
-0.02431304194033146,
0.03243706002831459,
-0.012726972810924053,
-0.0001455327874282375,
-0.00009543385385768488,
-0.009933726862072945,
0.02146078273653984,
0.007578154560178518,
0.036981001496315,
0.07706998288631439,
-0.01139919739216566,
-0.04414115473628044,
0.04957027733325958,
0.053229037672281265,
0.07152283191680908,
-0.0010419348254799843,
-0.036449890583753586,
0.024332711473107338,
0.02862093411386013,
-0.06900497525930405,
0.005537314806133509,
-0.03438446298241615,
-0.03294849768280983,
0.026339128613471985,
0.012117179110646248,
-0.018923256546258926,
-0.07722734659910202,
0.06459873169660568,
-0.03369598835706711,
-0.04276420176029205,
-0.012913844548165798,
-0.022267283871769905,
-0.040029965341091156,
-0.011684422381222248,
0.03774816170334816,
-0.01889375038444996,
-0.0424494706094265,
-0.024588432163000107,
0.047170449048280716,
0.07175888121128082,
-0.003449756884947419,
0.031001094728708267,
-0.03403038904070854,
-0.011684422381222248,
-0.01986745372414589,
-0.05342574417591095,
-0.013435118831694126,
-0.024116333574056625,
0.0952850878238678,
-0.08466289192438126,
0.01678898185491562,
-0.012441746890544891,
0.0031546957325190306,
0.02899467945098877,
-0.026201432570815086,
-0.027716079726815224,
0.03021426498889923,
0.009520640596747398,
-0.012372898869216442,
0.014772729948163033,
-0.028738958761096,
-0.019769098609685898,
-0.004804579541087151,
0.03957754001021385,
0.031414180994033813,
0.02110671065747738,
0.01950354501605034,
0.02169683203101158,
-0.013248247094452381,
0.013543308712542057,
-0.030509326606988907,
0.017211902886629105,
0.036076147109270096,
0.02862093411386013,
-0.045203372836112976,
0.02490316331386566,
0.03011591173708439,
0.049766987562179565,
0.058186065405607224,
0.025808017700910568,
0.020437903702259064,
-0.006373321637511253,
-0.014418656937777996,
0.05153735354542732,
0.0035087692085653543,
0.012736807577311993,
-0.008792823180556297,
-0.0016953723970800638,
-0.01751679927110672,
0.003462051274254918,
-0.04677703231573105,
-0.01196964830160141,
-0.10228787362575531,
0.010140269063413143,
-0.03550569713115692,
-0.003971031866967678,
-0.01560873631387949,
0.01172376424074173,
-0.032869815826416016,
0.023840943351387978,
-0.04685571417212486,
-0.030194593593478203,
0.04890147224068642,
-0.044101811945438385,
-0.017202066257596016,
-0.023231150582432747,
-0.0008126476895995438,
0.007986322976648808,
-0.06581831723451614,
-0.022404979914426804,
0.03550569713115692,
-0.03377467021346092,
-0.00025848590303212404,
0.09583587199449539,
-0.06833616644144058,
0.018224945291876793,
0.04543942213058472,
0.0228180643171072,
0.019798604771494865,
0.013287588953971863,
0.004590660333633423,
0.05208813399076462,
-0.041623298078775406,
0.04477061703801155,
-0.029919203370809555,
0.07832890748977661,
0.02256234548985958,
0.012353228405117989,
-0.010415660217404366,
-0.01974942907691002,
0.008984613232314587,
0.0031350250355899334,
0.04260683432221413,
-0.033263228833675385,
-0.006825748831033707,
0.06046787276864052,
0.012068002484738827,
-0.018972434103488922,
-0.002313771517947316,
-0.027853775769472122,
0.03129615634679794,
-0.02751937322318554,
-0.006402827799320221,
-0.004561154171824455,
0.010425494983792305,
-0.070499949157238,
-0.03145352378487587,
0.006097930949181318,
-0.027952129021286964,
0.01860852539539337,
-0.02515888400375843,
-0.01750696264207363,
-0.0014986649621278048,
0.030686363577842712,
-0.009397698566317558,
0.04264617711305618,
0.01888391561806202,
0.06389058381319046,
0.004568530712276697,
-0.0673132911324501,
-0.0012275774497538805,
0.024273699149489403,
-0.06625106930732727,
0.0021404230501502752,
-0.0372563935816288,
-0.01492026075720787,
-0.05134064704179764,
0.023663906380534172,
-0.04602954536676407,
0.006751983426511288,
-0.02443106658756733,
-0.06333979964256287,
0.070499949157238,
-0.009486217051744461,
-0.008778070099651814,
0.042488809674978256,
0.0058274585753679276,
-0.030312618240714073,
-0.00955506507307291,
0.050632499158382416,
-0.01775284856557846,
0.007730603218078613,
0.06754934042692184,
-0.017438115552067757,
0.039282478392124176,
0.06770670413970947,
0.05590425804257393,
0.02443106658756733,
0.08175161480903625,
0.011507386341691017,
-0.010887757875025272,
-0.013090881519019604,
0.060389187186956406,
0.051616035401821136,
0.027676738798618317,
0.0070372093468904495,
-0.01073039136826992,
-0.052599575370550156,
0.00943704042583704,
-0.041623298078775406,
-0.05543215945363045,
-0.00020992373174522072,
0.013464624993503094,
0.012687630951404572,
-0.014694047160446644,
-0.03747276961803436,
0.02986019104719162,
0.006909349467605352,
0.03218134120106697,
-0.020536258816719055,
-0.012618782930076122,
0.009427204728126526,
0.07034258544445038,
-0.010828745551407337,
0.05551084503531456,
0.006673300638794899,
-0.01826428808271885,
0.07069665938615799,
0.04394444450736046,
0.0015134179266169667,
-0.02997821569442749,
0.02393929660320282,
0.10307470709085464,
-0.07101139426231384,
0.0441804938018322,
0.026830896735191345,
0.010494343005120754,
0.014989107847213745,
-0.07109007239341736,
-0.03729573264718056,
-0.02614242024719715,
0.03568273410201073,
-0.012481087818741798,
0.05480269715189934,
-0.09567850828170776,
0.023250821977853775,
-0.02024119719862938,
-0.06794275343418121,
-0.07647985965013504,
-0.02268037013709545,
0.002574408892542124,
-0.04111185669898987,
0.013425284065306187,
-0.0649527981877327,
-0.04130856692790985,
0.0008581362781114876,
0.002839963883161545,
0.05598294362425804,
-0.08702337741851807,
0.006653629709035158,
-0.00955998245626688,
0.01536285225301981,
-0.008281383663415909,
-0.06762802600860596,
0.007327352650463581,
0.02492283470928669,
-0.062356263399124146,
-0.06715592741966248,
0.018057744950056076,
-0.017969226464629173,
0.020811649039387703,
-0.004047255963087082,
0.0025916206650435925,
-0.015638243407011032,
0.05078986659646034,
-0.016700463369488716,
-0.04846871644258499,
-0.01529400423169136,
0.00008828783757053316,
-0.053347062319517136,
-0.011586069129407406,
0.053465086966753006,
0.07522092759609222,
0.015018614009022713,
-0.006004495080560446,
0.016720132902264595,
0.0004886951064690948,
-0.07612578570842743,
0.01860852539539337,
-0.007892887108027935,
-0.007356858812272549,
-0.01055335532873869,
0.004541483242064714,
0.02195255272090435,
-0.04382641986012459,
-0.022227942943572998,
-0.012658124789595604,
-0.06699855625629425,
-0.044101811945438385,
-0.004588201176375151,
0.021244404837489128,
-0.03098142333328724,
0.0037374417297542095,
0.010218951851129532,
0.03377467021346092,
0.01713321916759014,
0.01614968292415142,
0.02515888400375843,
-0.029683154076337814,
-0.012707301415503025,
-0.019828110933303833,
0.018323298543691635,
0.005852046888321638,
0.027184970676898956,
-0.05787133425474167,
-0.08647260069847107,
-0.020772308111190796,
-0.01580544374883175,
0.030686363577842712,
0.00493981596082449,
-0.04886213317513466,
0.017310256138443947,
-0.030647020787000656,
-0.019572392106056213,
0.029781509190797806,
0.016061164438724518,
0.002382619073614478,
0.019346177577972412,
0.018224945291876793,
-0.034109070897102356,
-0.016090670600533485,
0.02171650342643261,
0.05519611015915871,
-0.026575177907943726,
-0.038318611681461334,
0.03218134120106697,
0.04079712554812431,
-0.04370839521288872,
-0.0343451201915741,
-0.014792400412261486,
-0.022601686418056488,
-0.006461840122938156,
-0.04018733277916908,
-0.0044726356863975525,
-0.03456149995326996,
-0.053976524621248245,
-0.06361518800258636,
0.016818488016724586,
0.03222068026661873,
0.029545459896326065,
0.053504426032304764,
0.04984566941857338,
-0.004526730161160231,
0.00975177250802517,
0.10897593200206757,
0.023663906380534172,
-0.024627773091197014,
-0.02132308855652809,
-0.03975457698106766,
-0.015185815282166004,
0.016552932560443878,
-0.04229210317134857,
0.03454183042049408,
-0.03257475420832634,
-0.010199281387031078,
-0.014300632290542126,
-0.03204364329576492,
-0.032987840473651886,
0.01814626343548298,
-0.013100716285407543,
0.007002785336226225,
0.04355103150010109,
-0.0012042184825986624,
0.01778235472738743,
0.01971992291510105,
0.055707551538944244,
-0.05956301838159561,
0.03648923337459564,
-0.0024145839270204306,
-0.037925198674201965,
0.0280111413449049,
0.03540734201669693,
-0.01823478192090988,
0.014261290431022644,
-0.05850079655647278,
0.04602954536676407,
-0.018726550042629242,
0.0007567089633084834,
0.00082494190428406,
0.011458209715783596,
0.06420531123876572,
-0.013022033497691154,
0.05145867168903351,
0.04685571417212486,
0.001075743930414319,
-0.02122473530471325,
0.050160400569438934,
0.02305411361157894,
0.04048239439725876,
-0.0612153597176075,
0.07966651767492294,
0.02576867677271366,
0.002269512275233865,
-0.005006204824894667,
-0.01203849632292986,
-0.05614030733704567,
0.06361518800258636,
-0.021264076232910156,
0.018470829352736473,
0.024981847032904625,
-0.007706014439463615,
-0.06042852997779846,
-0.00006316153303487226,
0.03587944060564041,
0.01387771125882864,
0.0678640753030777,
0.01399573590606451,
-0.016110340133309364,
0.04366905614733696,
-0.020064160227775574,
0.019031446427106857,
-0.014959601685404778,
0.01560873631387949,
0.038810379803180695,
-0.014143265783786774,
0.02083132043480873,
-0.001727337366901338,
0.00626021483913064,
-0.004740649834275246,
0.010828745551407337,
0.011094300076365471,
-0.047799911350011826,
0.017939720302820206,
0.018815068528056145,
0.035840097814798355,
0.044613249599933624,
0.0767945870757103,
-0.009614076465368271
] |
17,728 | imodels.discretization.discretizer | reweight_n_bins |
Reallocate number of bins per feature.
Parameters
----------
X : data frame of shape (n_samples, n_features)
(Training) data to be discretized.
y : array-like of shape (n_samples,)
(Training) response vector. Required only if
rf_model = None or rf_model has not yet been fitted
by : {'nsplits'}, default='nsplits'
Specifies how to reallocate number of bins per feature.
nsplits
Reallocate number of bins so that each feature
in dcols get at a minimum of 2 bins with the
remaining bins distributed proportionally to the
number of RF splits using that feature
Returns
-------
self.n_bins : array of shape (len(dcols),)
number of bins per feature reallocated according to
'by' argument
| def reweight_n_bins(self, X, y=None, by="nsplits"):
"""
Reallocate number of bins per feature.
Parameters
----------
X : data frame of shape (n_samples, n_features)
(Training) data to be discretized.
y : array-like of shape (n_samples,)
(Training) response vector. Required only if
rf_model = None or rf_model has not yet been fitted
by : {'nsplits'}, default='nsplits'
Specifies how to reallocate number of bins per feature.
nsplits
Reallocate number of bins so that each feature
in dcols get at a minimum of 2 bins with the
remaining bins distributed proportionally to the
number of RF splits using that feature
Returns
-------
self.n_bins : array of shape (len(dcols),)
number of bins per feature reallocated according to
'by' argument
"""
# initialization and error checking
self._fit_preprocessing(X)
# get all random forest split points
self._fit_rf(X=X, y=y)
# get total number of bins to reallocate
total_bins = self.n_bins.sum()
# reweight n_bins
if by == "nsplits":
# each col gets at least 2 bins; remaining bins get
# reallocated based on number of RF splits using that feature
n_rules = np.array([len(self.rf_splits[col])
for col in self.dcols_])
self.n_bins = np.round(n_rules / n_rules.sum() *
(total_bins - 2 * len(self.dcols_))) + 2
else:
valid_by = ('nsplits')
raise ValueError("Valid options for 'by' are {}. Got by={!r} instead."
.format(valid_by, by))
| (self, X, y=None, by='nsplits') | [
-0.014267374761402607,
0.034030742943286896,
-0.013897273689508438,
-0.02131778933107853,
0.009937198832631111,
0.0020205173641443253,
-0.007582433987408876,
0.059771232306957245,
-0.04330175742506981,
-0.02498178370296955,
-0.024907764047384262,
0.022317061200737953,
-0.00014818477211520076,
-0.019578317180275917,
-0.005477487575262785,
0.05081479996442795,
-0.0463365837931633,
0.0063240923918783665,
-0.017866602167487144,
-0.010464591905474663,
-0.0306998360902071,
-0.00420295400545001,
-0.014637474901974201,
0.022317061200737953,
-0.0002077478275168687,
-0.014322889968752861,
0.010159258730709553,
-0.015137110836803913,
0.0398598238825798,
0.013360627926886082,
-0.0037958433385938406,
-0.04263557866215706,
0.010575622320175171,
-0.022391080856323242,
0.01881035789847374,
-0.05880897119641304,
0.03589974716305733,
0.05832783877849579,
0.04337577894330025,
-0.03608480095863342,
0.05943814292550087,
-0.02685079164803028,
-0.013628951273858547,
0.031014421954751015,
0.054108694195747375,
0.059882260859012604,
0.000004201580395601923,
0.041525278240442276,
-0.014461677521467209,
0.015553473494946957,
-0.03812035173177719,
-0.07727698236703873,
0.0010466905077919364,
0.0061020320281386375,
0.020411042496562004,
0.03182864189147949,
0.00516752852126956,
-0.006208436097949743,
0.052961383014917374,
-0.02265015058219433,
0.03325353190302849,
0.030459271743893623,
0.0021280779037624598,
-0.0168765839189291,
-0.0168765839189291,
-0.02128077857196331,
-0.08127406984567642,
0.029237939044833183,
0.010409076698124409,
-0.0055700126104056835,
0.03440084308385849,
0.02692481130361557,
0.07450123131275177,
0.05307241156697273,
-0.04189537838101387,
0.022798191756010056,
-0.0008188473875634372,
0.005232295952737331,
-0.004323236644268036,
0.0002528538170736283,
0.07735100388526917,
0.0275539830327034,
-0.0074575250037014484,
-0.028664283454418182,
-0.022261545062065125,
-0.022761180996894836,
-0.009548593312501907,
-0.024278592318296432,
0.03804633021354675,
-0.08971235901117325,
-0.00259070354513824,
0.016534240916371346,
0.07905346900224686,
-0.02139180898666382,
0.026499196887016296,
-0.05862392112612724,
-0.04389391839504242,
0.01256491243839264,
-0.0010837005684152246,
-0.045337311923503876,
-0.027239397168159485,
-0.04115517437458038,
-0.03441934660077095,
0.1191723644733429,
-0.000722852535545826,
0.024593178182840347,
0.013851011171936989,
-0.03808334097266197,
-0.10821738839149475,
-0.013027537614107132,
-0.032272763550281525,
0.023649422451853752,
0.02440812811255455,
0.04944542795419693,
-0.08149613440036774,
-0.027035841718316078,
-0.01681181602180004,
0.009206250309944153,
0.025851519778370857,
-0.028294183313846588,
0.013434648513793945,
0.012250326573848724,
-0.02818315289914608,
-0.020263003185391426,
0.008220857940614223,
0.02566646970808506,
-0.000004553970939014107,
0.030940402299165726,
-0.034086257219314575,
-0.018319975584745407,
-0.014896545559167862,
-0.002302719047293067,
-0.06132565438747406,
0.015118605457246304,
0.015174120664596558,
-0.03673247620463371,
-0.04193238541483879,
0.0005860888632014394,
0.03577021509408951,
-0.07316886633634567,
0.05466384440660477,
0.034178782254457474,
0.034252800047397614,
-0.0019696287345141172,
-0.004466650541871786,
0.03147704899311066,
0.03682500123977661,
0.01933775097131729,
0.020263003185391426,
-0.02190995030105114,
-0.053627561777830124,
0.031366016715765,
0.029682060703635216,
-0.027424447238445282,
-0.008914795704185963,
0.0623619370162487,
-0.0427096001803875,
-0.013517920859158039,
-0.03249482437968254,
-0.030163191258907318,
-0.03234678506851196,
0.025425905361771584,
-0.031551066786050797,
-0.05558909475803375,
-0.010520107112824917,
0.05710650980472565,
0.012898002751171589,
-0.02511131949722767,
0.0016180331585928798,
-0.010409076698124409,
-0.003354035783559084,
-0.021687889471650124,
-0.01373072899878025,
0.010251783765852451,
-0.009733643382787704,
0.07553751021623611,
-0.008521564304828644,
-0.08763980120420456,
-0.028294183313846588,
0.08852804452180862,
0.062324926257133484,
-0.06928281486034393,
0.0564403273165226,
-0.08608537912368774,
-0.0188751257956028,
-0.025370389223098755,
-0.03308698534965515,
-0.0025791379157453775,
0.01131582260131836,
0.03234678506851196,
0.013823254033923149,
-0.0201149620115757,
0.014961312524974346,
-0.017126400023698807,
-0.01627516932785511,
-0.029145414009690285,
-0.01031655166298151,
-0.007587060332298279,
0.016506481915712357,
-0.0021766535937786102,
0.027128366753458977,
0.013888021931052208,
-0.005227669607847929,
0.023926997557282448,
0.008197725750505924,
0.023501381278038025,
0.00996495597064495,
-0.014739252626895905,
0.057291559875011444,
-0.011491620913147926,
0.01746874302625656,
-0.020466558635234833,
0.026480691507458687,
0.03391971066594124,
0.015275898389518261,
0.001943027600646019,
-0.027220891788601875,
-0.039230652153491974,
0.0028104507364332676,
-0.07028208673000336,
-0.029034385457634926,
0.06147369369864464,
-0.026647236198186874,
-0.017015371471643448,
-0.03693602979183197,
-0.04082208499312401,
0.009234007447957993,
-0.010048228316009045,
0.03147704899311066,
-0.02566646970808506,
0.00004235915912431665,
-0.010732914321124554,
0.01685807853937149,
-0.048483166843652725,
0.01994841732084751,
0.010973479598760605,
-0.03073684684932232,
-0.015377676114439964,
0.02320530079305172,
-0.0163491889834404,
-0.018671570345759392,
0.009511582553386688,
-0.02696182206273079,
-0.07653678208589554,
-0.006939384620636702,
0.04315371811389923,
-0.025962550193071365,
0.0400448739528656,
0.016682280227541924,
-0.021095728501677513,
-0.020929183810949326,
-0.05188808962702751,
-0.040970124304294586,
-0.02625863067805767,
0.009317279793322086,
-0.03510403260588646,
-0.034086257219314575,
0.038453441113233566,
-0.04422701150178909,
0.016654523089528084,
0.017413228750228882,
0.05066676065325737,
0.003622358664870262,
0.014970565214753151,
-0.01629367470741272,
0.013628951273858547,
0.01036281418055296,
-0.0144431721419096,
0.010973479598760605,
-0.015877312049269676,
0.039119623601436615,
-0.004707215819507837,
0.010862450115382671,
-0.00880376622080803,
-0.025999560952186584,
0.002064466942101717,
0.05118490010499954,
-0.026591721922159195,
0.030829371884465218,
0.024167563766241074,
0.022335564717650414,
-0.038564473390579224,
0.054774872958660126,
0.02949701063334942,
0.01250014454126358,
0.009368169121444225,
-0.0364178903400898,
0.019615326076745987,
-0.023538392037153244,
0.002724864985793829,
-0.00639348616823554,
-0.014785515144467354,
0.0038606110028922558,
0.08926824480295181,
0.008697361685335636,
0.011214044876396656,
-0.0010906399693340063,
-0.036121807992458344,
0.011195540428161621,
0.042191457003355026,
0.001148468116298318,
0.013712223619222641,
-0.051740050315856934,
0.03812035173177719,
0.04067404568195343,
-0.027368932962417603,
0.05806877091526985,
-0.04570741206407547,
-0.02192845568060875,
0.05514497682452202,
0.02440812811255455,
0.01572001911699772,
0.02557394467294216,
-0.04208042845129967,
-0.004737286362797022,
-0.04707678407430649,
0.031588077545166016,
0.0012525588972494006,
-0.03937869518995285,
0.060437411069869995,
0.007647201884537935,
-0.0006823728326708078,
0.026684246957302094,
0.007244717329740524,
-0.0071059297770261765,
0.08926824480295181,
0.05966020002961159,
0.03362363204360008,
-0.0863814577460289,
-0.05458982288837433,
-0.015960583463311195,
-0.019097186625003815,
0.007346495054662228,
0.04245052859187126,
-0.06188080459833145,
0.012315094470977783,
0.04815007746219635,
-0.03952673450112343,
-0.0600673109292984,
-0.010769925080239773,
-0.0102980462834239,
0.04145125672221184,
-0.029052888974547386,
0.01933775097131729,
-0.006462879944592714,
-0.0023605471942573786,
0.05495992675423622,
0.02305726148188114,
0.027998102828860283,
0.08615940064191818,
0.016710037365555763,
-0.02505580335855484,
0.040340956300497055,
0.01190798357129097,
0.02877531386911869,
-0.033531107008457184,
0.005153649486601353,
0.044634122401475906,
0.034067749977111816,
-0.04685472324490547,
-0.05299839377403259,
-0.021021708846092224,
-0.00843829195946455,
0.02633265033364296,
0.005019488278776407,
0.03118096850812435,
-0.047298844903707504,
0.06854261457920074,
-0.03717659413814545,
-0.02949701063334942,
0.020170478150248528,
-0.04740987345576286,
-0.034160275012254715,
0.05595919489860535,
0.03886055201292038,
0.03684350475668907,
-0.04204341769218445,
-0.06114060431718826,
0.028497738763689995,
0.07117033004760742,
-0.039008595049381256,
0.02701733633875847,
0.021132739260792732,
0.006629425100982189,
-0.006217688322067261,
0.007674959022551775,
-0.03945271298289299,
-0.06765437126159668,
0.06358326971530914,
-0.0867515578866005,
0.014470930211246014,
0.06772839277982712,
0.0005508136237040162,
0.01872708648443222,
-0.04304268956184387,
-0.00908596720546484,
0.04926037788391113,
-0.039156634360551834,
0.05436776578426361,
0.04393092915415764,
-0.0023177543189376593,
-0.04008188471198082,
-0.019837386906147003,
0.047853995114564896,
-0.02072562836110592,
0.020225992426276207,
-0.01155638787895441,
0.026480691507458687,
-0.016090119257569313,
-0.02636966109275818,
-0.011038247495889664,
0.03495599329471588,
0.0042561558075249195,
-0.007323363795876503,
0.03643639385700226,
0.010075986385345459,
0.04870522767305374,
0.0018447197508066893,
0.04393092915415764,
-0.008678857237100601,
0.02203948423266411,
-0.0015752402832731605,
-0.021040214225649834,
0.04256155714392662,
0.007101303432136774,
-0.02320530079305172,
0.011325075291097164,
-0.04467112943530083,
-0.014147091656923294,
0.03860148414969444,
-0.03706556558609009,
-0.0024727340787649155,
-0.09274718910455704,
0.03800932317972183,
-0.032753895968198776,
-0.03449336811900139,
-0.011676670983433723,
0.019282236695289612,
-0.047928016632795334,
-0.025333380326628685,
-0.04333876818418503,
-0.0046979631297290325,
0.050962839275598526,
-0.02194695919752121,
-0.0021824364084750414,
-0.02000393159687519,
0.02494477480649948,
-0.017283692955970764,
-0.07801719009876251,
-0.05847587808966637,
0.028386708348989487,
-0.0749453529715538,
-0.012444629333913326,
0.09785457700490952,
-0.07616668194532394,
-0.05458982288837433,
0.04955645650625229,
-0.013943536207079887,
0.0075130402110517025,
0.021095728501677513,
0.008429039269685745,
0.02370493672788143,
-0.017792582511901855,
0.03754669800400734,
-0.02311277575790882,
-0.024038027971982956,
0.03236528858542442,
-0.006231567356735468,
0.043560829013586044,
0.015164867974817753,
0.007901646196842194,
0.03686201199889183,
0.005653285421431065,
-0.010427582077682018,
0.06273203343153,
0.054256733506917953,
0.001717497711069882,
-0.01441541500389576,
-0.0007806807407177985,
-0.035344596952199936,
0.0026786024682223797,
0.04300567880272865,
-0.009456068277359009,
0.0274614579975605,
-0.008054312318563461,
-0.059771232306957245,
-0.06857962161302567,
0.016080867499113083,
-0.02000393159687519,
0.03243931010365486,
0.017200421541929245,
-0.030477777123451233,
-0.009937198832631111,
0.04507824033498764,
-0.009483825415372849,
0.015581231564283371,
-0.011639661155641079,
0.07087424397468567,
0.033938217908144,
0.007166070863604546,
-0.035474132746458054,
0.019559811800718307,
-0.026073580607771873,
0.0015729271108284593,
-0.09222904592752457,
0.016802562400698662,
-0.0764627680182457,
0.025407399982213974,
-0.006166799459606409,
0.019763367250561714,
0.017672298476099968,
-0.06317615509033203,
0.04085909575223923,
0.01005748100578785,
0.025796005502343178,
0.0036639950703829527,
0.015211130492389202,
0.02568497508764267,
-0.03118096850812435,
0.051555000245571136,
0.015275898389518261,
-0.027072852477431297,
0.04877924546599388,
-0.05762464925646782,
0.044041961431503296,
0.012389114126563072,
0.027331922203302383,
-0.007781363092362881,
0.06576686352491379,
0.05336849391460419,
0.006328718736767769,
0.01881035789847374,
0.039230652153491974,
0.011232550255954266,
0.05840186029672623,
0.01633993722498417,
-0.009317279793322086,
-0.0524432398378849,
0.013342123478651047,
-0.013369880616664886,
-0.06276904791593552,
0.0004909614799544215,
0.03195817768573761,
0.027183882892131805,
-0.02685079164803028,
0.032161734998226166,
0.014794767834246159,
-0.06117761507630348,
0.0398598238825798,
-0.01879185251891613,
-0.02305726148188114,
0.019892903044819832,
0.04052600637078285,
0.03210621699690819,
0.023408856242895126,
-0.03934168443083763,
-0.010890207253396511,
-0.0282201636582613,
0.02385297790169716,
0.0074575250037014484,
-0.05747660994529724,
0.01682106778025627,
0.0867515578866005,
-0.008942553773522377,
0.023279322311282158,
0.04185836762189865,
0.0021477395202964544,
-0.031014421954751015,
-0.041599296033382416,
0.042339496314525604,
-0.006069648079574108,
0.044819172471761703,
-0.04559638351202011,
-0.003349409671500325,
-0.045929472893476486,
-0.01699686609208584,
0.014313637278974056,
-0.049223367124795914,
-0.03762071579694748,
-0.03545562922954559,
-0.0488162562251091,
-0.01247238740324974,
-0.02183593064546585,
-0.018384743481874466,
-0.04733585566282272,
0.037343140691518784,
-0.05495992675423622,
0.056662388145923615,
-0.027850063517689705,
0.0551079660654068,
-0.013101558201014996,
0.005199912004172802,
-0.004593872465193272,
-0.07594462484121323,
-0.01809791475534439,
-0.001031076884828508,
-0.09659623354673386,
-0.05314643308520317,
0.000689890468493104,
-0.022964736446738243,
0.0953378900885582,
-0.024593178182840347,
-0.021502839401364326,
0.03686201199889183,
0.010446086525917053,
0.028923355042934418,
-0.02883083000779152,
0.003485884051769972,
0.003229126799851656,
-0.038564473390579224,
-0.012620427645742893,
0.009853925555944443,
0.06665509939193726,
0.012019013985991478,
-0.07076321542263031,
0.0008246302022598684,
0.03203219920396805,
-0.0963001549243927,
0.06347223371267319,
-0.05629228800535202,
-0.00003276329152868129,
-0.022779686376452446,
0.06191781535744667,
0.055922187864780426,
-0.03577021509408951,
-0.01824595406651497,
-0.0035807224921882153,
0.005912355612963438,
-0.053405504673719406,
-0.03438233584165573,
-0.029293455183506012,
-0.07220660895109177,
0.040377963334321976,
-0.026147600263357162,
0.030218705534934998,
0.007290979847311974,
-0.011778448708355427,
-0.024019522592425346,
0.005875345319509506,
-0.0461515337228775,
0.03886055201292038,
0.023926997557282448,
0.00516752852126956,
-0.002236794913187623,
-0.03804633021354675,
-0.06365728378295898,
0.02440812811255455,
-0.022057989612221718,
-0.007101303432136774,
-0.029071394354104996,
0.009539340622723103,
-0.038379423320293427,
-0.07468628138303757,
-0.014572707004845142,
0.06362027674913406,
-0.02446364425122738,
0.024093542248010635,
0.03325353190302849,
-0.017949873581528664,
-0.05366457253694534,
-0.01100123766809702,
0.008276372216641903,
0.03377167135477066,
-0.01219481136649847,
-0.06317615509033203,
0.042968668043613434,
0.011297318153083324,
-0.034715428948402405,
-0.025555439293384552,
-0.030903391540050507,
-0.005019488278776407,
-0.014841030351817608,
-0.040340956300497055,
-0.0046979631297290325,
-0.01570151373744011,
-0.0562552772462368,
-0.09829869121313095,
0.022705666720867157,
0.02492626942694187,
0.012028266675770283,
0.019781872630119324,
0.009918693453073502,
-0.017774077132344246,
-0.021040214225649834,
0.10629286617040634,
0.04148826748132706,
-0.026425175368785858,
0.024574672803282738,
-0.028294183313846588,
0.04048899561166763,
-0.0039161257445812225,
-0.01883811503648758,
0.04874223470687866,
0.010686651803553104,
-0.011426853016018867,
-0.015266645699739456,
0.003469692310318351,
0.02252061665058136,
0.07139238715171814,
-0.00564403273165226,
0.027146872133016586,
0.014915050007402897,
-0.0069810207933187485,
-0.029237939044833183,
-0.015905069187283516,
0.02313128113746643,
-0.045485351234674454,
-0.0050056092441082,
-0.004186762031167746,
0.035344596952199936,
-0.020855164155364037,
0.04467112943530083,
-0.03066282719373703,
-0.028349699452519417,
-0.01685807853937149,
0.061066582798957825,
-0.029922625049948692,
-0.0007263222360052168,
-0.021410314366221428,
-0.023445867002010345,
0.06117761507630348,
0.030274221673607826,
0.06347223371267319,
0.00004156402064836584,
-0.004466650541871786,
-0.04892728850245476,
0.08120004832744598,
0.059031032025814056,
-0.007711969316005707,
-0.046003494411706924,
0.07509339600801468,
-0.014785515144467354,
-0.0030926524195820093,
-0.0036894395016133785,
0.04148826748132706,
0.027905577793717384,
0.04071105644106865,
-0.02809062786400318,
0.03749118000268936,
0.046595655381679535,
0.00392306549474597,
-0.011140025220811367,
0.005000982899218798,
0.01093646977096796,
0.029941130429506302,
0.06017834320664406,
0.014563455246388912,
-0.05133293941617012,
0.038453441113233566,
-0.04381990060210228,
0.015100101009011269,
-0.0019141135271638632,
0.010066733695566654,
-0.002963117090985179,
-0.032809410244226456,
0.010075986385345459,
0.017829591408371925,
-0.034696921706199646,
0.01569226197898388,
0.03140302747488022,
-0.0004967442946508527,
-0.029608041048049927,
0.0005690295365639031,
-0.017098642885684967,
0.03617732599377632,
0.02566646970808506,
0.07202155888080597,
-0.02759099192917347
] |
17,732 | imodels.util.rule | Rule | An object modeling a logical rule and add factorization methods.
It is used to simplify rules and deduplicate them.
Parameters
----------
rule : str
The logical rule that is interpretable by a pandas query.
args : object, optional
Arguments associated to the rule, it is not used for factorization
but it takes part of the output when the rule is converted to an array.
| class Rule:
""" An object modeling a logical rule and add factorization methods.
It is used to simplify rules and deduplicate them.
Parameters
----------
rule : str
The logical rule that is interpretable by a pandas query.
args : object, optional
Arguments associated to the rule, it is not used for factorization
but it takes part of the output when the rule is converted to an array.
"""
def __init__(self, rule, args=None, support=None):
self.rule = rule
self.args = args
self.support = support
self.terms = [t.split(' ') for t in self.rule.split(' and ')]
self.agg_dict = {}
self.factorize()
self.rule = str(self)
def __eq__(self, other):
return self.agg_dict == other.agg_dict
def __hash__(self):
# FIXME : Easier method ?
return hash(tuple(sorted(((i, j) for i, j in self.agg_dict.items()))))
def factorize(self) -> None:
for feature, symbol, value in self.terms:
if (feature, symbol) not in self.agg_dict:
if symbol != '==':
self.agg_dict[(feature, symbol)] = str(float(value))
else:
self.agg_dict[(feature, symbol)] = value
else:
if symbol[0] == '<':
self.agg_dict[(feature, symbol)] = str(min(
float(self.agg_dict[(feature, symbol)]),
float(value)))
elif symbol[0] == '>':
self.agg_dict[(feature, symbol)] = str(max(
float(self.agg_dict[(feature, symbol)]),
float(value)))
else: # Handle the c0 == c0 case
self.agg_dict[(feature, symbol)] = value
def __iter__(self):
yield str(self)
yield self.args
def __repr__(self):
return ' and '.join([' '.join(
[feature, symbol, str(self.agg_dict[(feature, symbol)])])
for feature, symbol in sorted(self.agg_dict.keys())
])
| (rule, args=None, support=None) | [
0.04075433313846588,
0.004360602702945471,
0.0167594812810421,
0.012052798643708229,
0.03447875753045082,
-0.04097582399845123,
-0.0386870838701725,
-0.031064104288816452,
0.009745601564645767,
-0.07235370576381683,
0.008804264478385448,
0.07464244216680527,
0.03994219750165939,
0.005749535746872425,
-0.04787895828485489,
-0.0015123678604140878,
-0.01936199888586998,
0.04846959933638573,
0.02484389953315258,
0.07342424243688583,
-0.012357348576188087,
-0.004625930450856686,
-0.02011875994503498,
0.014599944464862347,
0.03327901288866997,
0.02724338509142399,
0.035955362021923065,
-0.019731150940060616,
-0.05038918927311897,
0.005371155217289925,
-0.031747035682201385,
-0.013621692545711994,
-0.019509660080075264,
-0.019417371600866318,
0.0019288168987259269,
-0.12300129979848862,
0.008785807527601719,
0.031248679384589195,
-0.03457104414701462,
0.006690871901810169,
-0.007143082562834024,
-0.04728831350803375,
-0.0109638012945652,
0.0015492829261347651,
-0.05470826104283333,
-0.02251824550330639,
-0.02825855277478695,
0.031193306669592857,
-0.04422435536980629,
-0.07445786893367767,
-0.0261174738407135,
-0.05105366185307503,
0.054006874561309814,
0.040422096848487854,
-0.04337530955672264,
0.04939248040318489,
-0.0030478076077997684,
-0.020727859809994698,
0.0033546648919582367,
-0.010973029769957066,
-0.00875812117010355,
0.04688224941492081,
0.0035277046263217926,
-0.03172857686877251,
-0.03759808838367462,
-0.046143945306539536,
-0.055003583431243896,
0.01804228313267231,
0.002316426020115614,
-0.0012874160893261433,
-0.05703391507267952,
-0.009011912159621716,
0.080401211977005,
-0.014756833203136921,
-0.02561911754310131,
-0.005772607401013374,
-0.02532379701733589,
-0.02043253928422928,
0.07021262496709824,
-0.04584862291812897,
0.021595366299152374,
0.05057376250624657,
0.027594078332185745,
-0.05334240198135376,
0.010945343412458897,
-0.023699529469013214,
0.04319073259830475,
0.06474918127059937,
0.01726706512272358,
-0.004072203300893307,
-0.019306626170873642,
-0.022315211594104767,
0.041935618966817856,
0.022850481793284416,
-0.0030085851904004812,
0.03390657156705856,
-0.037044357508420944,
0.005837209057062864,
0.005532659124583006,
-0.04739905893802643,
0.045922454446554184,
0.03499556705355644,
0.006829303689301014,
0.04260009154677391,
-0.009727143682539463,
-0.018402205780148506,
0.0018549866508692503,
-0.042194023728370667,
-0.021281586959958076,
-0.02955058217048645,
-0.06460152566432953,
0.06179597228765488,
0.0026694273110479116,
-0.023902563378214836,
-0.02331192046403885,
-0.014000073075294495,
-0.06700100749731064,
-0.015236730687320232,
-0.017110174521803856,
0.005929497070610523,
-0.00860584620386362,
0.031174849718809128,
0.019269712269306183,
0.06818229705095291,
-0.013806268572807312,
-0.026652742177248,
0.06386321783065796,
0.011785163544118404,
0.030436545610427856,
-0.016150381416082382,
0.020727859809994698,
-0.017064031213521957,
-0.001089573954232037,
0.059027332812547684,
0.01541207730770111,
-0.04031135141849518,
0.030399631708860397,
-0.00900729838758707,
0.013787810690701008,
0.010548505932092667,
0.0737195685505867,
-0.01466454565525055,
-0.04322764649987221,
-0.03671212121844292,
0.003908392041921616,
-0.0034077302552759647,
0.016381099820137024,
0.056849341839551926,
-0.029956649988889694,
-0.02984590455889702,
-0.050905998796224594,
0.007936758920550346,
0.012348120100796223,
-0.014673774130642414,
0.08520018309354782,
0.060024045407772064,
-0.018512951210141182,
-0.03420189395546913,
0.000018295353584107943,
-0.010123981162905693,
-0.010705395601689816,
-0.0253607127815485,
-0.0911066085100174,
0.027834028005599976,
-0.012255831621587276,
0.002044176682829857,
0.010290099307894707,
-0.0580306239426136,
-0.035180144011974335,
0.004748212173581123,
0.0072169131599366665,
-0.061094582080841064,
-0.0015850445488467813,
0.04677150398492813,
-0.03722893446683884,
0.09634855389595032,
-0.000728497514501214,
0.06519216299057007,
-0.024677781388163567,
0.03643525764346123,
0.031507086008787155,
-0.040422096848487854,
-0.07335041463375092,
-0.0037607315462082624,
-0.003569234162569046,
0.009745601564645767,
0.029605954885482788,
-0.03222693130373955,
0.03377736732363701,
0.045627132058143616,
-0.05153355747461319,
-0.08608614653348923,
0.007230756338685751,
0.019786523655056953,
0.024160970002412796,
-0.06954815238714218,
-0.06356789916753769,
0.043264564126729965,
0.006833918392658234,
0.0328914038836956,
-0.03890857473015785,
0.05068450793623924,
0.04034826532006264,
0.042489346116781235,
-0.028683075681328773,
-0.0005277713644318283,
-0.010068608447909355,
0.011711332947015762,
-0.0627557635307312,
-0.0027248000260442495,
0.0020268727093935013,
-0.05101674422621727,
0.02089397795498371,
0.056074123829603195,
0.022813566029071808,
0.00016280160343740135,
0.10638947784900665,
0.03327901288866997,
-0.013363286852836609,
-0.0035253975074738264,
0.02768636681139469,
-0.077374167740345,
0.04056975618004799,
0.02561911754310131,
0.02768636681139469,
-0.04075433313846588,
0.041234228760004044,
0.03195006772875786,
0.02039562352001667,
0.0117667056620121,
0.008047504350543022,
-0.07789097726345062,
0.029661327600479126,
-0.0222413819283247,
0.03398039937019348,
0.05264101177453995,
0.025840608403086662,
0.06282959878444672,
-0.012763415463268757,
0.03809644281864166,
-0.03671212121844292,
-0.00862430315464735,
-0.0050989058800041676,
0.009976320900022984,
-0.02482544258236885,
-0.038059525191783905,
0.11059780418872833,
0.024382460862398148,
-0.0444827638566494,
-0.03455258533358574,
-0.022407500073313713,
-0.01620575413107872,
0.006192517466843128,
-0.017682360485196114,
0.009708685800433159,
-0.06312491744756699,
-0.031248679384589195,
0.030251970514655113,
0.06316183507442474,
-0.04319073259830475,
0.03207927197217941,
0.0219276025891304,
0.041714128106832504,
-0.007373802363872528,
-0.018226858228445053,
0.004224478267133236,
-0.008924239315092564,
0.020598657429218292,
0.016048863530158997,
0.02879382111132145,
-0.025028476491570473,
-0.023625699803233147,
-0.030971815809607506,
0.04817427694797516,
-0.04547947272658348,
0.051681216806173325,
0.036213766783475876,
0.0016865611542016268,
-0.005011232569813728,
-0.01695328578352928,
0.005504972767084837,
-0.03817027062177658,
-0.0606146864593029,
-0.0010728467023000121,
-0.017608528956770897,
0.03652754798531532,
-0.03798569738864899,
-0.01991572603583336,
0.04256317391991615,
0.009708685800433159,
-0.005827980116009712,
-0.028719991445541382,
0.01124989427626133,
0.0198788121342659,
0.04968779906630516,
0.01126835122704506,
0.050832170993089676,
-0.06563514471054077,
0.05315782502293587,
-0.009058056399226189,
-0.011886680498719215,
0.01438768208026886,
0.07759565860033035,
0.018199171870946884,
-0.07752183079719543,
-0.03979453817009926,
-0.004780512768775225,
-0.01963886246085167,
0.0293290913105011,
-0.003506939858198166,
0.03473716229200363,
0.045405641198158264,
-0.01046544685959816,
0.015891974791884422,
-0.017848478630185127,
0.02824009396135807,
-0.04230476915836334,
-0.003970686346292496,
0.043522968888282776,
0.06548748910427094,
-0.00968099944293499,
0.013649378903210163,
-0.0029024542309343815,
0.012892617844045162,
0.00006370027404045686,
0.0008594309911131859,
0.009459508582949638,
-0.060319364070892334,
0.02742796018719673,
-0.01910359412431717,
-0.0269665215164423,
0.01908513531088829,
0.07124625146389008,
0.05489283800125122,
-0.011932823807001114,
0.01021626964211464,
0.05640636011958122,
0.008924239315092564,
-0.044815000146627426,
-0.04584862291812897,
0.015882745385169983,
0.055594224482774734,
-0.022315211594104767,
0.018503721803426743,
0.010779225267469883,
-0.030141225084662437,
-0.07826013118028641,
0.0053619262762367725,
0.03390657156705856,
0.02067248709499836,
0.0438552051782608,
-0.05057376250624657,
-0.007747568190097809,
0.00837051123380661,
0.07054486125707626,
-0.014784520491957664,
-0.03056574985384941,
-0.05470826104283333,
-0.018476035445928574,
-0.03719202056527138,
0.10720161348581314,
-0.0511644072830677,
0.005583417136222124,
0.01963886246085167,
0.03669366613030434,
-0.025065390393137932,
-0.029162973165512085,
0.05038918927311897,
0.007221527397632599,
-0.035457007586956024,
-0.005643404554575682,
-0.008974997326731682,
0.08948233723640442,
-0.06611504405736923,
-0.031248679384589195,
0.04260009154677391,
0.005186579655855894,
-0.0009442204609513283,
-0.029735159128904343,
-0.019491203129291534,
0.031267136335372925,
0.03820718824863434,
-0.0344972126185894,
0.059027332812547684,
-0.03058420680463314,
-0.004877415020018816,
-0.030547291040420532,
0.004309844691306353,
0.08830105513334274,
0.02801860310137272,
-0.008545858785510063,
0.016279583796858788,
0.020783232524991035,
-0.06312491744756699,
-0.03403577581048012,
0.0007192687480710447,
0.008056732825934887,
-0.008850408717989922,
-0.06593047082424164,
-0.01567048393189907,
-0.05884275957942009,
-0.0418987013399601,
0.018891330808401108,
0.025969812646508217,
-0.03730276599526405,
-0.03553083911538124,
0.02851695753633976,
0.02118930034339428,
-0.026320505887269974,
0.04607011377811432,
0.02010030299425125,
-0.03180240839719772,
-0.018466806039214134,
-0.024382460862398148,
-0.029236802831292152,
-0.00719384104013443,
0.02218600921332836,
-0.06076234579086304,
0.0408281609416008,
0.0511644072830677,
0.04739905893802643,
-0.003571541281417012,
-0.019823439419269562,
0.030750324949622154,
-0.020783232524991035,
-0.015818145126104355,
0.004411361180245876,
0.01295721996575594,
-0.05622178316116333,
0.04739905893802643,
-0.0444827638566494,
-0.02200143225491047,
-0.03794877976179123,
-0.02253670245409012,
-0.014184649102389812,
-0.03637988492846489,
-0.03890857473015785,
0.06312491744756699,
0.025951355695724487,
0.017387038096785545,
0.00326929846778512,
0.009053441695868969,
0.06652110815048218,
0.0063540213741362095,
-0.04237860068678856,
-0.029126057401299477,
0.011877451092004776,
-0.001693482743576169,
-0.138874813914299,
-0.0290153119713068,
0.046697672456502914,
0.015347476117312908,
0.00451518502086401,
0.013621692545711994,
0.013409430161118507,
0.038022611290216446,
0.01886364445090294,
-0.018512951210141182,
0.021539993584156036,
0.056074123829603195,
0.03215309977531433,
0.03460795804858208,
-0.01906667836010456,
0.027391046285629272,
-0.10063071548938751,
0.007064638193696737,
0.03497711196541786,
0.00993940606713295,
-0.05024152621626854,
0.0037353523075580597,
0.0010451603448018432,
-0.007641437463462353,
0.005265024024993181,
-0.009800974279642105,
-0.042747750878334045,
0.06020861864089966,
-0.04894949868321419,
-0.014295394532382488,
-0.0328914038836956,
-0.004339837934821844,
-0.02903377078473568,
-0.04577479511499405,
0.016621049493551254,
-0.012329662218689919,
0.02067248709499836,
0.007461476139724255,
0.03979453817009926,
-0.018780585378408432,
-0.011019174009561539,
0.006123301573097706,
-0.009468737989664078,
0.00582336587831378,
0.034164976328611374,
0.05644327402114868,
0.037524256855249405,
0.040385179221630096,
0.021761484444141388,
0.03327901288866997,
-0.013464802876114845,
-0.027870943769812584,
-0.012984906323254108,
0.005518815945833921,
-0.122484490275383,
-0.0017523163696750998,
0.06869910657405853,
-0.03606610745191574,
-0.0001777983852662146,
0.02013721689581871,
-0.0580306239426136,
-0.03499556705355644,
-0.03763500228524208,
-0.09937559813261032,
0.02558220364153385,
0.006621656008064747,
0.00995786301791668,
0.0014546879101544619,
0.011803621426224709,
-0.050352271646261215,
-0.06308799982070923,
0.02641279436647892,
0.014618401415646076,
-0.03442338481545448,
-0.043559882789850235,
-0.009228789247572422,
-0.012541924603283405,
-0.003061650786548853,
0.034128062427043915,
0.00042827348806895316,
0.04547947272658348,
-0.05928574129939079,
0.0018088426440954208,
-0.001962271286174655,
0.026781946420669556,
0.06976964324712753,
-0.005675705149769783,
0.06969581544399261,
0.025065390393137932,
0.01112069096416235,
-0.003940693102777004,
0.04215710982680321,
0.012477322481572628,
0.0872674286365509,
0.03324209898710251,
-0.03894548863172531,
0.04906024411320686,
-0.004586708266288042,
0.041714128106832504,
-0.0109638012945652,
0.06253427267074585,
-0.012883389368653297,
-0.03660137578845024,
0.06781314313411713,
0.008001360110938549,
0.028461584821343422,
0.006806232035160065,
0.02017413266003132,
0.01005937997251749,
0.004762055352330208,
-0.008319753222167492,
-0.030768781900405884,
-0.0466238409280777,
-0.02539762668311596,
0.03983145207166672,
-0.028646161779761314,
-0.007272285874933004,
-0.014747604727745056,
0.03167320415377617,
0.0284800436347723,
-0.030787240713834763,
0.003331592772156,
-0.012449636124074459,
-0.004261393565684557,
-0.021909145638346672,
-0.0035807702224701643,
-0.029126057401299477,
-0.020727859809994698,
-0.009708685800433159,
-0.0035576981026679277,
-0.028350839391350746,
-0.02329346351325512,
-0.055815715342760086,
0.02194605953991413,
-0.06375247240066528,
-0.03798569738864899,
0.011508299969136715,
0.021539993584156036,
-0.005408070515841246,
0.07320275157690048,
-0.02249978855252266,
-0.03399885818362236,
-0.03924081102013588,
-0.03161783143877983,
-0.021355418488383293,
-0.031045645475387573,
-0.0090257553383708,
-0.0019242025446146727,
-0.04906024411320686,
-0.009994778782129288,
-0.03215309977531433,
-0.004289079923182726,
-0.06068851798772812,
-0.016307270154356956,
-0.00303627154789865,
-0.02567449025809765,
0.03979453817009926,
-0.04182487353682518,
0.004552100319415331,
0.021097011864185333,
-0.0001227140601258725,
-0.02825855277478695,
-0.028406212106347084,
0.053231656551361084,
0.011157605797052383,
0.02488081529736519,
0.030676495283842087,
-0.03813335672020912,
-0.036970529705286026,
-0.026283591985702515,
-0.01835606060922146,
-0.017137860879302025,
-0.016362642869353294,
0.014526113867759705,
-0.0335189625620842,
0.015476679429411888,
0.007406103424727917,
0.02246287278831005,
0.029864361509680748,
-0.02931063435971737,
-0.014812206849455833,
-0.07456861436367035,
-0.02567449025809765,
0.036232225596904755,
0.07545457780361176,
-0.04053284227848053,
-0.006866218987852335,
-0.035715412348508835,
0.020838605239987373,
0.03198698163032532,
-0.030270427465438843,
-0.01514444313943386,
-0.02327500656247139,
-0.03684132546186447,
0.0214846208691597,
-0.02118930034339428,
-0.009270318783819675,
-0.019029762595891953,
-0.0016761787701398134,
-0.029698243364691734,
0.03839176148176193,
-0.00588796753436327,
0.01425847876816988,
0.041455719619989395,
-0.017626987770199776,
0.006847761571407318,
0.059728723019361496,
0.047214485704898834,
0.0006016016704961658,
-0.016593363136053085,
-0.0068523758091032505,
-0.006127915810793638,
0.021115468814969063,
-0.004035288002341986,
-0.003423880785703659,
-0.032872945070266724,
0.012098942883312702,
0.029919734224677086,
0.04315381869673729,
0.052677929401397705,
0.011997425928711891,
0.03130405396223068,
-0.030805697664618492,
0.018143799155950546,
-0.004284465219825506,
-0.011969739571213722,
-0.033057522028684616,
-0.015790458768606186,
0.020321793854236603,
0.017091717571020126,
-0.022868938744068146,
-0.024364003911614418,
0.00021211794228293002,
0.0057264636270701885,
0.0010088220005854964,
0.0014696846483275294,
0.03263299912214279,
-0.02405022457242012,
0.004439047537744045,
-0.02358878403902054,
-0.006718558259308338,
-0.08911318331956863,
-0.007009265478700399,
0.013667836785316467,
0.046180859208106995,
-0.0769311860203743,
-0.03261454030871391,
-0.00517273647710681,
-0.0606146864593029,
0.02663428522646427,
0.05876892805099487,
-0.00038126434083096683,
0.03865016996860504,
0.000019394876289879903,
0.03499556705355644,
0.009459508582949638,
0.04894949868321419,
0.028092434629797935,
-0.0496508851647377,
-0.004462119657546282,
0.06733324378728867,
-0.001189360162243247,
-0.01217277254909277,
0.077374167740345,
-0.0164457019418478,
0.010622336529195309,
0.01984189637005329,
-0.00915034394711256,
-0.02329346351325512,
0.05496666580438614,
-0.040901992470026016,
0.02349649742245674,
0.06175905466079712,
0.014046217314898968,
0.07870311290025711,
0.02122621424496174,
-0.0466238409280777,
0.041935618966817856,
0.02567449025809765,
0.0013127952115610242,
-0.0156889408826828,
-0.06482301652431488,
-0.000022098623958299868,
0.05887967348098755,
-0.013944700360298157,
0.059544146060943604,
0.011674418114125729,
0.007092324551194906,
0.0075445352122187614,
-0.056849341839551926,
0.029956649988889694,
0.05526198819279671,
-0.014886036515235901,
-0.0335189625620842,
-0.0003362740098964423,
-0.034681789577007294,
0.00835205428302288,
0.03241150826215744,
-0.0024640867486596107,
0.04699299484491348,
0.010880742222070694,
-0.036213766783475876,
0.006497067399322987,
-0.02822163701057434,
0.016150381416082382,
0.03423880785703659,
0.016085779294371605,
-0.012182001955807209,
0.024640867486596107,
-0.04422435536980629,
-0.00672778720036149,
-0.05998712778091431,
-0.026652742177248,
0.029513666406273842,
0.009588711895048618,
0.025065390393137932,
-0.008587388321757317,
-0.018937475979328156,
0.048506516963243484,
0.004621316213160753
] |
17,733 | imodels.util.rule | __eq__ | null | def __eq__(self, other):
return self.agg_dict == other.agg_dict
| (self, other) | [
0.05810758098959923,
-0.0445629321038723,
0.030104966834187508,
0.07347886264324188,
-0.02757180668413639,
-0.062208887189626694,
-0.03308616578578949,
0.019800003618001938,
0.05121463164687157,
-0.025142040103673935,
-0.017008358612656593,
-0.016353527083992958,
0.08512794971466064,
0.05979635566473007,
-0.03753212094306946,
-0.022832902148365974,
-0.014793997630476952,
0.0233843382447958,
0.03169034421443939,
0.0032224548049271107,
-0.044011496007442474,
-0.038393739610910416,
0.013079375959932804,
0.03389608860015869,
-0.00606579752638936,
0.02622768096625805,
-0.0018610969418659806,
-0.019765539094805717,
-0.0022046675439924,
0.06803343445062637,
-0.06861933320760727,
-0.11228618025779724,
0.04611384496092796,
0.00048708394751884043,
0.023074155673384666,
-0.03977233171463013,
-0.009813839569687843,
0.03187990188598633,
-0.014423500746488571,
-0.004919844213873148,
-0.0012504245387390256,
-0.039462149143218994,
-0.024831857532262802,
-0.01836971566081047,
0.05462663993239403,
0.03984126076102257,
-0.03387885540723801,
0.03181097283959389,
0.0031535252928733826,
0.00027396788937039673,
-0.03994465619325638,
-0.018697131425142288,
-0.0025525460951030254,
0.0894705131649971,
-0.05634988099336624,
0.03517128527164459,
0.026107054203748703,
0.02646893449127674,
-0.03518851846456528,
0.024332119151949883,
-0.037394262850284576,
0.007991516031324863,
0.008986685425043106,
-0.03673943132162094,
-0.02519373781979084,
-0.0420125387609005,
-0.09236554801464081,
0.012260837480425835,
-0.0065224552527070045,
0.008917756378650665,
-0.02920888178050518,
0.0006095953867770731,
-0.017852744087576866,
0.01659478060901165,
-0.04821619763970375,
-0.0005371655570343137,
-0.04046162590384483,
0.05045640468597412,
0.03746319189667702,
-0.07327207177877426,
0.022402092814445496,
-0.04611384496092796,
-0.0033086168114095926,
-0.02074778452515602,
-0.025607315823435783,
0.01997232809662819,
-0.015043866820633411,
0.0505942665040493,
0.01284673810005188,
-0.026606792584061623,
0.03275875374674797,
0.029519064351916313,
0.043908100575208664,
0.007241907063871622,
0.04690653458237648,
0.0031793739181011915,
-0.038255881518125534,
-0.008013056591153145,
0.010322194546461105,
-0.01780104823410511,
0.023539429530501366,
-0.04046162590384483,
-0.004079765640199184,
0.026486165821552277,
-0.024280421435832977,
0.0037437344435602427,
0.014449349604547024,
-0.040806274861097336,
-0.0319143645465374,
-0.009383030235767365,
-0.03801462799310684,
0.07899322360754013,
0.0010134793119505048,
-0.001256886636838317,
0.02857128344476223,
-0.028364496305584908,
-0.0022811361122876406,
-0.007823499850928783,
-0.008590340614318848,
0.018180159851908684,
0.001431364449672401,
0.07540889084339142,
0.045183297246694565,
0.05069765821099281,
0.03880731761455536,
-0.04687207192182541,
0.01957598328590393,
-0.007707181386649609,
-0.019782770425081253,
-0.01766318827867508,
0.07216919958591461,
-0.038600530475378036,
-0.0007334531401284039,
0.06737860292196274,
0.052041783928871155,
-0.029122719541192055,
0.03897964209318161,
0.03977233171463013,
0.039703402668237686,
0.049836039543151855,
0.040633950382471085,
0.0034055488649755716,
-0.004144387319684029,
0.02004125714302063,
-0.007702873554080725,
0.0035477159544825554,
-0.07789035141468048,
0.0308114942163229,
-0.009193474426865578,
-0.013544649817049503,
-0.03368930146098137,
-0.029363973066210747,
0.014311490580439568,
-0.007362533826380968,
-0.012140210717916489,
-0.022695042192935944,
-0.017103135585784912,
-0.0255900826305151,
0.00023506041907239705,
-0.01412193477153778,
0.014130550436675549,
0.005225718952715397,
0.011313056573271751,
-0.017456399276852608,
-0.024211492389440536,
0.02047206647694111,
0.008013056591153145,
-0.008960837498307228,
-0.023815147578716278,
-0.04194360971450806,
-0.027123764157295227,
-0.05486789345741272,
-0.025745173916220665,
-0.034447524696588516,
-0.02896762825548649,
0.06982559710741043,
0.019248567521572113,
0.06448356062173843,
-0.037084080278873444,
0.015741778537631035,
0.02739948220551014,
-0.06593108177185059,
-0.03780784085392952,
0.015164493583142757,
0.01730130799114704,
-0.020730551332235336,
0.014914624392986298,
-0.018421413376927376,
0.04022037237882614,
0.011838644742965698,
-0.0335342101752758,
-0.03880731761455536,
-0.03255196288228035,
-0.010546215809881687,
0.03386162593960762,
-0.04346005991101265,
-0.04825066030025482,
0.016818800941109657,
-0.030191127210855484,
0.10470393300056458,
-0.05952063575387001,
-0.06665483862161636,
-0.018610969185829163,
0.005342037416994572,
0.02302245795726776,
-0.016810186207294464,
-0.0010985641274601221,
-0.02302245795726776,
0.08257755637168884,
-0.011907573789358139,
-0.03763551637530327,
-0.051938388496637344,
0.026486165821552277,
-0.004790601320564747,
0.03362037241458893,
0.03301723673939705,
0.008086293935775757,
-0.021299220621585846,
-0.04604491591453552,
0.007112664636224508,
0.08678226172924042,
-0.06331176310777664,
0.03656710684299469,
0.018007835373282433,
0.0032849223352968693,
0.005596214905381203,
0.020265277475118637,
0.0221091415733099,
0.022763973101973534,
-0.03939322009682655,
0.06076136976480484,
-0.004816449712961912,
0.03549870103597641,
-0.0401514433324337,
0.0020021870732307434,
0.017620107159018517,
0.007922586053609848,
0.03510235622525215,
-0.034878335893154144,
0.003735118079930544,
-0.003200914477929473,
0.06093369051814079,
0.018059533089399338,
0.015491908416152,
0.0020269586239010096,
-0.1166287437081337,
0.035877812653779984,
0.04156449809670448,
-0.011614623479545116,
0.012907051481306553,
0.01706867106258869,
-0.030018804594874382,
-0.018783293664455414,
-0.006897259503602982,
0.02054099552333355,
-0.027347784489393234,
-0.07851071655750275,
0.01194203831255436,
0.05183499678969383,
-0.009641516022384167,
0.04452846571803093,
0.06141619756817818,
-0.013174153864383698,
0.021954050287604332,
-0.040565021336078644,
0.0016079964116215706,
0.008637730032205582,
0.0036080293357372284,
-0.008443865925073624,
-0.014501047320663929,
0.040702879428863525,
-0.03756658732891083,
0.02807154506444931,
0.03467154502868652,
-0.0398067943751812,
0.0199033971875906,
0.0028648830484598875,
-0.04004804790019989,
-0.03915196657180786,
-0.019024547189474106,
0.02160940319299698,
0.009038383141160011,
-0.018180159851908684,
-0.010994257405400276,
-0.03560209646821022,
0.011390602216124535,
-0.054316457360982895,
-0.039600007236003876,
0.017008358612656593,
-0.04818173125386238,
0.010330811142921448,
-0.018214624375104904,
0.022901831194758415,
0.005979635287076235,
-0.0007894583395682275,
0.030501311644911766,
0.041978076100349426,
-0.02271227538585663,
-0.0006370595074258745,
0.07120419293642044,
0.037118542939424515,
0.026055356487631798,
0.034206271171569824,
0.0026322458870708942,
-0.010012011975049973,
0.019748305901885033,
0.044252749532461166,
0.019662143662571907,
0.04115092009305954,
0.015328201465308666,
0.005824544001370668,
0.06286371499300003,
0.002487924648448825,
0.07272063940763474,
0.017042823135852814,
0.013544649817049503,
-0.025503920391201973,
-0.036084599792957306,
0.03174204379320145,
0.05283447355031967,
-0.030501311644911766,
0.010882247239351273,
-0.021523240953683853,
-0.0015498370630666614,
-0.010520366951823235,
-0.0635874792933464,
-0.007500392850488424,
0.049767110496759415,
0.015681464225053787,
0.027089299634099007,
-0.02057546004652977,
-0.022074677050113678,
0.09994779527187347,
0.04683760553598404,
-0.0022875983268022537,
-0.010778852738440037,
0.025934729725122452,
0.017154833301901817,
0.000976860523223877,
-0.035877812653779984,
-0.007776110898703337,
-0.0449075810611248,
0.041874680668115616,
-0.027950918301939964,
0.01455274410545826,
-0.013794519007205963,
-0.07947573065757751,
-0.005419583059847355,
0.01840418018400669,
-0.052317503839731216,
-0.05228303745388985,
0.04028930142521858,
0.034843869507312775,
0.010296346619725227,
0.05283447355031967,
0.073341004550457,
0.008960837498307228,
0.0046441261656582355,
-0.03443029150366783,
0.04445953667163849,
0.10318748652935028,
-0.016077809035778046,
-0.009994779713451862,
-0.05748721584677696,
0.006591384764760733,
0.06817129254341125,
-0.015802090987563133,
-0.024538908153772354,
-0.060072071850299835,
-0.06189870461821556,
-0.03801462799310684,
-0.012734727934002876,
-0.006729243788868189,
-0.002294060541316867,
-0.022557184100151062,
-0.006712011527270079,
-0.10056816041469574,
0.024039167910814285,
0.00010049977572634816,
-0.026348307728767395,
0.062208887189626694,
0.04035823047161102,
-0.020316975191235542,
0.051869459450244904,
-0.04787154868245125,
-0.010994257405400276,
-0.004295170307159424,
-0.01673264056444168,
0.05748721584677696,
0.02228146605193615,
-0.061174944043159485,
-0.016844650730490685,
-0.0004221932904329151,
0.031569719314575195,
-0.053316980600357056,
-0.03344804793596268,
-0.04225379228591919,
-0.02970862202346325,
-0.07354779541492462,
-0.041771285235881805,
0.0005468587623909116,
0.027140997350215912,
0.0038083556573837996,
-0.03239687159657478,
0.00729360431432724,
-0.04104752838611603,
-0.0017857052152976394,
0.018542040139436722,
-0.004906919784843922,
-0.005522977560758591,
0.009072847664356232,
-0.035050660371780396,
-0.03584334999322891,
-0.011830028146505356,
-0.03770444542169571,
-0.03524021431803703,
0.01746501587331295,
-0.055419329553842545,
0.08581724762916565,
0.025503920391201973,
0.00597101915627718,
0.052214108407497406,
-0.04156449809670448,
-0.005251567345112562,
-0.022643346339464188,
-0.04463186115026474,
-0.023143084719777107,
0.05155927687883377,
0.0052041783928871155,
-0.0176976528018713,
-0.016689559444785118,
-0.018852222710847855,
0.05121463164687157,
0.01645692251622677,
0.026658490300178528,
0.005441123619675636,
-0.005027546547353268,
-0.03362037241458893,
0.020454833284020424,
0.057866327464580536,
0.01904177851974964,
-0.020454833284020424,
-0.0042456272058188915,
-0.05841776356101036,
-0.05259322002530098,
-0.03362037241458893,
0.006276893895119429,
0.03389608860015869,
0.015250655822455883,
-0.005449739750474691,
0.07285849750041962,
0.018059533089399338,
-0.03901410475373268,
-0.03973786532878876,
-0.01873159594833851,
-0.02800261601805687,
0.009296867996454239,
-0.019627679139375687,
-0.020816713571548462,
0.027692433446645737,
-0.07347886264324188,
-0.02988094463944435,
-0.05476450175046921,
0.0040280683897435665,
-0.03499896079301834,
0.053075727075338364,
0.009262403473258018,
0.014638906344771385,
-0.00886605866253376,
0.07120419293642044,
0.012260837480425835,
-0.038600530475378036,
-0.06655144691467285,
-0.0036834210623055696,
-0.02569347620010376,
0.011778331361711025,
-0.005260183475911617,
0.01783551275730133,
-0.02934674173593521,
0.029898177832365036,
-0.038497135043144226,
0.002851958619430661,
0.0007032964495010674,
-0.026244912296533585,
0.046561889350414276,
-0.03148355707526207,
0.00483368244022131,
-0.03174204379320145,
-0.02104073390364647,
0.008637730032205582,
-0.0065698446705937386,
-0.015035250224173069,
-0.029794782400131226,
0.0594172440469265,
0.037049613893032074,
0.010313578881323338,
0.030260058119893074,
0.023935774341225624,
-0.007026502396911383,
-0.03181097283959389,
0.014957704581320286,
0.049732644110918045,
-0.05610862746834755,
0.02157493866980076,
0.0270376019179821,
-0.05931384861469269,
0.0040280683897435665,
-0.041874680668115616,
-0.0449075810611248,
0.0037286560982465744,
0.01053760014474392,
-0.05138695240020752,
0.0251248087733984,
-0.009426111355423927,
0.04601045325398445,
0.0010323271853849292,
0.005096476059406996,
-0.06462141871452332,
-0.04121984913945198,
-0.010080941952764988,
0.044045962393283844,
-0.003209530608728528,
-0.012751960195600986,
-0.019059011712670326,
-0.050766587257385254,
0.005307572893798351,
0.018249088898301125,
0.024711230769753456,
0.017439167946577072,
-0.03911750018596649,
-0.033379118889570236,
-0.03382715955376625,
-0.02960522659122944,
0.03334465250372887,
-0.04952585697174072,
0.07899322360754013,
-0.03522298112511635,
0.012863971292972565,
-0.0454934798181057,
0.027347784489393234,
0.02057546004652977,
0.02579687163233757,
0.04028930142521858,
0.0031384469475597143,
0.009563970379531384,
0.06493160128593445,
-0.013673892244696617,
-0.010287730023264885,
0.0774078443646431,
0.028915932402014732,
0.01239869650453329,
0.008482638746500015,
0.06420784443616867,
-0.031069979071617126,
-0.04132324457168579,
0.006048564799129963,
-0.0033000006806105375,
-0.02810600958764553,
0.05969296023249626,
0.019558750092983246,
0.029329508543014526,
0.020816713571548462,
0.07161776721477509,
-0.002113120397552848,
0.009994779713451862,
-0.03479217365384102,
0.007521933410316706,
0.04256397485733032,
0.019317496567964554,
0.02800261601805687,
-0.01753394491970539,
-0.024332119151949883,
-0.058727946132421494,
-0.03801462799310684,
0.003487402806058526,
-0.004919844213873148,
-0.029398437589406967,
0.050973378121852875,
-0.05624648556113243,
-0.055419329553842545,
-0.048733167350292206,
0.035877812653779984,
0.03038068488240242,
-0.0015326046850532293,
-0.03580888360738754,
-0.024401048198342323,
-0.05149034783244133,
0.03449922427535057,
0.004700131248682737,
-0.006009791977703571,
-0.05169713869690895,
-0.0010781007586047053,
-0.02590026520192623,
-0.031207839027047157,
0.02817494049668312,
-0.012571020051836967,
0.036084599792957306,
0.013329245150089264,
-0.05576397851109505,
-0.043046481907367706,
0.04732011258602142,
-0.008943604305386543,
-0.009288252331316471,
-0.05173160135746002,
0.004691515117883682,
-0.021695565432310104,
0.011769714765250683,
0.027089299634099007,
-0.0016187665751203895,
0.04094413295388222,
-0.013622195459902287,
0.05376502126455307,
0.03984126076102257,
-0.026158751919865608,
0.07982037961483002,
-0.05697024613618851,
-0.04266737028956413,
0.04552794620394707,
-0.043046481907367706,
0.029519064351916313,
0.032603662461042404,
0.022436557337641716,
-0.018714362755417824,
0.033206794410943985,
-0.051007840782403946,
-0.03375823050737381,
0.04256397485733032,
-0.03451645374298096,
0.046355098485946655,
-0.04139217361807823,
-0.028795305639505386,
-0.04366684705018997,
0.052179642021656036,
-0.05603969469666481,
0.05586737394332886,
-0.09774205088615417,
0.017344389110803604,
0.008331854827702045,
0.012002351693809032,
0.0546611063182354,
0.003724347800016403,
-0.04776815325021744,
-0.053179122507572174,
0.035119589418172836,
-0.017456399276852608,
0.004820758011192083,
-0.03925535827875137,
-0.0043813325464725494,
0.04962925240397453,
-0.05983081832528114,
0.02994987554848194,
0.013148305006325245,
-0.008952220901846886,
-0.012536555528640747,
-0.018783293664455414,
0.018249088898301125,
-0.016551699489355087,
-0.0052644917741417885,
0.011700785718858242,
0.030587472021579742,
0.05538486689329147,
-0.002345757558941841,
-0.04690653458237648,
-0.010330811142921448,
0.08292220532894135,
0.0065224552527070045,
-0.007801959756761789,
0.000973090878687799,
0.012648566626012325,
0.04476971924304962,
0.0075650145299732685,
0.0007964590331539512,
0.0015519910957664251,
-0.026710188016295433,
-0.04370131343603134,
-0.062277816236019135,
0.029329508543014526,
0.02786475606262684,
0.011416451074182987,
-0.03663603588938713,
0.022074677050113678,
0.03222454711794853,
-0.004799217451363802,
-0.0020021870732307434,
0.015715928748250008,
0.04349452629685402,
-0.024918019771575928,
-0.025779638439416885,
0.021798959001898766,
-0.049767110496759415,
0.01522480696439743,
-0.09712168574333191,
0.00950365699827671,
-0.00631566671654582,
-0.004428721498697996,
0.013837600126862526,
-0.04962925240397453,
-0.025107575580477715,
-0.04952585697174072,
0.014742299914360046,
0.008267234079539776,
0.02398747205734253,
0.030328987166285515,
0.0037372722290456295,
0.02960522659122944,
0.010210184380412102,
-0.030828725546598434,
0.03175927326083183,
0.08705797791481018,
-0.02274673990905285,
-0.058796875178813934,
0.054419852793216705,
0.0026408620178699493,
-0.013794519007205963,
0.06541410833597183,
0.025434991344809532,
-0.02739948220551014,
0.04046162590384483,
-0.03344804793596268,
-0.027244390919804573,
-0.03460261598229408,
-0.0028196480125188828,
0.03997911885380745,
0.025917498394846916,
0.0017146216705441475,
0.043046481907367706,
0.085403673350811,
-0.040530554950237274,
-0.0330689363181591,
-0.015173109248280525,
0.011269975453615189,
0.07561568170785904,
0.01126135978847742,
0.028226636350154877,
-0.04494204372167587,
0.022936295717954636,
-0.0540752038359642,
-0.03584334999322891,
0.046492960304021835,
0.09015980362892151,
0.0010759466094896197,
-0.019179638475179672,
0.03997911885380745,
-0.02810600958764553,
0.023694520816206932,
-0.04383917152881622,
0.002836880274116993,
0.028812536969780922,
-0.019420892000198364,
-0.031431857496500015,
0.020299741998314857,
0.0467686764895916,
0.0012547326041385531,
0.01836971566081047,
-0.004545039962977171,
0.06641358882188797,
-0.022195303812623024,
0.01873159594833851,
0.04483864828944206,
-0.02128198742866516,
-0.03187990188598633,
0.0392208956182003,
-0.016146739944815636,
-0.0033538518473505974,
-0.048767633736133575,
0.054523248225450516,
0.022626113146543503,
0.05831437185406685
] |
17,734 | imodels.util.rule | __hash__ | null | def __hash__(self):
# FIXME : Easier method ?
return hash(tuple(sorted(((i, j) for i, j in self.agg_dict.items()))))
| (self) | [
0.04764383286237717,
-0.037765633314847946,
0.006593866273760796,
0.05715244263410568,
0.016463667154312134,
-0.05664845183491707,
-0.007908440195024014,
-0.042738333344459534,
0.004876101389527321,
-0.028828216716647148,
-0.026577061042189598,
0.016816459596157074,
0.032876934856176376,
0.0036497260443866253,
-0.04260393604636192,
-0.014867698773741722,
-0.018110033124685287,
0.016262071207165718,
-0.023082733154296875,
-0.007181854452937841,
-0.013800919987261295,
-0.02914740890264511,
0.02309953235089779,
0.027148250490427017,
0.015993276610970497,
-0.008563626557588577,
0.0468374527990818,
-0.016774460673332214,
0.04888701066374779,
0.03544728085398674,
-0.05537167936563492,
-0.048786211758852005,
0.0114657673984766,
-0.014212512411177158,
0.011163373477756977,
-0.08043677359819412,
0.011759761720895767,
0.051205363124608994,
0.006438469514250755,
0.012095754966139793,
0.04929020255804062,
-0.03470809757709503,
-0.03474169597029686,
-0.022343548014760017,
0.06259553134441376,
0.022696340456604958,
0.012356149964034557,
0.04394790902733803,
-0.021486764773726463,
-0.043981507420539856,
-0.03055858053267002,
-0.038437619805336,
0.003672825638204813,
0.0599747858941555,
-0.05100376531481743,
0.04304072633385658,
0.03568247705698013,
-0.035212088376283646,
-0.042267944663763046,
0.05550607666373253,
-0.03086097538471222,
0.019873997196555138,
0.055875666439533234,
-0.0313817635178566,
0.00013505351671483368,
-0.048786211758852005,
-0.08325911313295364,
0.024309108033776283,
-0.017622843384742737,
0.011717762798070908,
0.003918520640581846,
-0.0010484037920832634,
0.023435525596141815,
-0.016480466350913048,
-0.02367071993649006,
0.018177231773734093,
-0.006787062622606754,
0.022696340456604958,
0.05674925073981285,
-0.03534648194909096,
0.004855101462453604,
-0.049760591238737106,
0.0282234288752079,
-0.007564046885818243,
-0.014993696473538876,
0.029550600796937943,
0.06521628051996231,
0.048483818769454956,
-0.033397722989320755,
-0.04845021665096283,
0.0020128092728555202,
0.04021838679909706,
-0.00439731078222394,
0.016430066898465157,
0.03803442791104317,
-0.03215454891324043,
-0.04095757007598877,
-0.02363712154328823,
0.02812262997031212,
-0.021419566124677658,
0.04388071224093437,
-0.02535068616271019,
-0.04713984578847885,
-0.005065097473561764,
-0.007925239391624928,
-0.012910538353025913,
0.039445601403713226,
-0.04334312304854393,
-0.055002085864543915,
0.015304489992558956,
-0.015228891745209694,
0.09434688836336136,
0.029080210253596306,
-0.013876519165933132,
0.023704320192337036,
-0.020260389894247055,
-0.0031940352637320757,
-0.010323390364646912,
0.02909701131284237,
0.04959259554743767,
-0.002251154277473688,
0.058664411306381226,
-0.001574968104250729,
0.057824429124593735,
-0.027702638879418373,
-0.0055354880169034,
0.01333892997354269,
-0.03474169597029686,
-0.03756403923034668,
-0.0018364128191024065,
0.061654750257730484,
0.004712304566055536,
-0.0003401931026019156,
0.05567407235503197,
0.009155814535915852,
-0.04912220314145088,
0.04942459985613823,
0.031247366219758987,
0.041595958173274994,
0.07405290007591248,
0.04337672144174576,
-0.01755564473569393,
0.02667785994708538,
0.036925651133060455,
0.03954640030860901,
0.005044098012149334,
-0.04388071224093437,
0.04297352954745293,
-0.008202433586120605,
-0.0044729094952344894,
0.01574128121137619,
-0.017026454210281372,
0.021285168826580048,
0.036925651133060455,
-0.01097857765853405,
-0.0025136491749435663,
-0.02469549886882305,
-0.04374631494283676,
-0.0242083091288805,
-0.043309520930051804,
0.024057112634181976,
-0.00879462156444788,
0.040016788989305496,
-0.03544728085398674,
-0.04969339445233345,
0.006073076743632555,
0.07143215090036392,
0.0010573285399004817,
-0.025417884811758995,
-0.05775722861289978,
-0.05664845183491707,
-0.04804702475667,
-0.06699704378843307,
0.014388908632099628,
0.0016726161120459437,
0.05631246045231819,
-0.02036118693649769,
0.06810581684112549,
0.011222172528505325,
0.018412426114082336,
0.006052077282220125,
-0.08796301484107971,
-0.005132296122610569,
0.004968499299138784,
0.0029084410052746534,
-0.012893739156425,
0.06565307080745697,
-0.008433429524302483,
0.05137335881590843,
-0.008357830345630646,
-0.07438889145851135,
-0.05396050587296486,
-0.03250734135508537,
0.012448547407984734,
0.04176395386457443,
0.006824861746281385,
-0.07848800718784332,
0.012053756043314934,
-0.07391849905252457,
0.06474588811397552,
-0.02187315747141838,
-0.06988658756017685,
0.0019424606580287218,
0.0066442652605473995,
0.021621162071824074,
-0.022981934249401093,
0.01518689189106226,
-0.030676178634166718,
0.07499367743730545,
-0.0021545563358813524,
0.030088189989328384,
-0.05886600539088249,
-0.009139014407992363,
0.02847542241215706,
0.007719443645328283,
-0.05577487125992775,
-0.0023498523514717817,
-0.010088196024298668,
-0.021537164226174355,
-0.02005879394710064,
0.06669464707374573,
-0.05889960750937462,
0.04421670362353325,
-0.01635446771979332,
0.013792520388960838,
-0.021671561524271965,
0.03894161060452461,
-0.0025871475227177143,
-0.016505666077136993,
-0.023905916139483452,
0.05594286695122719,
-0.042435940355062485,
0.04072237387299538,
-0.01891641691327095,
-0.01518689189106226,
0.014943297021090984,
0.009021417237818241,
-0.005968078970909119,
-0.015044094994664192,
0.021369166672229767,
-0.010835780762135983,
0.08836621046066284,
0.06602266430854797,
0.04431750252842903,
-0.008383030071854591,
-0.06101636216044426,
0.033800914883613586,
0.0711633563041687,
-0.01767324097454548,
-0.01767324097454548,
-0.05792522802948952,
0.012381348758935928,
-0.029349004849791527,
-0.01256614550948143,
0.03642166033387184,
-0.025737078860402107,
-0.05053337663412094,
0.020747579634189606,
0.022024353966116905,
-0.022158751264214516,
0.046266261488199234,
0.009172613732516766,
-0.024880295619368553,
-0.006938259582966566,
-0.01428811065852642,
-0.008412429131567478,
0.01411171443760395,
0.07022257894277573,
-0.0801679790019989,
0.04169675335288048,
0.045258283615112305,
-0.07680804282426834,
0.006812261883169413,
0.016866859048604965,
-0.03378411382436752,
0.00934901088476181,
0.026560261845588684,
0.02795463427901268,
-0.033229727298021317,
0.0044225105084478855,
0.045392680913209915,
0.010583785362541676,
-0.01225535199046135,
-0.003200335195288062,
-0.01415371336042881,
0.08923979103565216,
-0.038471221923828125,
-0.044955890625715256,
0.0010132294846698642,
-0.04461989551782608,
-0.006413270253688097,
0.01066778413951397,
-0.05066777393221855,
-0.006434269715100527,
0.04952539503574371,
0.02526668831706047,
0.027501042932271957,
0.016329269856214523,
0.0470726452767849,
0.058395616710186005,
-0.02469549886882305,
0.055304478853940964,
0.01265014335513115,
-0.023620320484042168,
-0.031902555376291275,
0.015480886213481426,
0.04932380095124245,
0.0011308271205052733,
0.021419566124677658,
0.015464087016880512,
-0.008513227105140686,
0.08460308611392975,
0.0012704742839559913,
0.04290632903575897,
-0.007971438579261303,
0.005724484100937843,
-0.03971439599990845,
-0.022461144253611565,
0.010575385764241219,
0.08823180943727493,
-0.03020578809082508,
0.013280130922794342,
-0.027081051841378212,
0.0018626622622832656,
0.019034015014767647,
-0.0731121152639389,
-0.0061486754566431046,
-0.02632506750524044,
0.02950020134449005,
0.02825702726840973,
-0.016505666077136993,
-0.020529184490442276,
0.08682063966989517,
0.04166315495967865,
-0.01834522746503353,
0.046938247978687286,
0.07445608824491501,
0.026862654834985733,
-0.04677025228738785,
-0.08514067530632019,
-0.017001256346702576,
-0.03270893543958664,
0.012171353213489056,
0.014036115258932114,
-0.01613607257604599,
0.003607726888731122,
-0.08036956936120987,
-0.00910541508346796,
-0.024745898321270943,
-0.02212515100836754,
0.023553121834993362,
-0.013540525920689106,
0.0003756298974622041,
0.018546823412179947,
0.1005963608622551,
0.058395616710186005,
0.0002609197108540684,
-0.046669453382492065,
-0.041293561458587646,
0.09602685272693634,
0.07183534651994705,
-0.08991178125143051,
-0.01864762231707573,
-0.046669453382492065,
0.03534648194909096,
0.0339353121817112,
-0.030524982139468193,
-0.004456109832972288,
-0.006316672079265118,
-0.07304491847753525,
-0.022763539105653763,
-0.005199494771659374,
0.002824442693963647,
-0.017874836921691895,
0.013624523766338825,
0.009609404951334,
-0.04824862256646156,
0.06484668701887131,
-0.05681644752621651,
-0.06417469680309296,
0.030877774581313133,
0.03129776567220688,
0.03504408895969391,
0.05385970696806908,
-0.06084836646914482,
0.049626193940639496,
0.031852155923843384,
-0.028626620769500732,
0.05661485344171524,
0.031163368374109268,
-0.04206634685397148,
-0.02724904753267765,
0.03230574354529381,
-0.039915990084409714,
0.006875260733067989,
0.007765642832964659,
0.007425449322909117,
-0.036656856536865234,
-0.08265432715415955,
-0.05013018473982811,
0.04189835116267204,
-0.04361191764473915,
-0.007383450400084257,
-0.007681644521653652,
-0.0032528340816497803,
-0.07317931950092316,
-0.012868539430201054,
0.025854676961898804,
-0.0015529185766354203,
-0.0615539513528347,
-0.028324225917458534,
0.000786959077231586,
-0.020562782883644104,
-0.037194445729255676,
0.016740860417485237,
-0.05651405453681946,
0.006346071604639292,
-0.0419655479490757,
0.03435530513525009,
0.022981934249401093,
0.021973954513669014,
0.01214615348726511,
-0.061520352959632874,
0.004871901124715805,
-0.01679966039955616,
0.005207894369959831,
-0.053322117775678635,
0.051205363124608994,
-0.04559427499771118,
0.014674502424895763,
0.015254090540111065,
0.011373369954526424,
0.04209994524717331,
0.013952117413282394,
0.012675343081355095,
-0.028055431321263313,
0.019118012860417366,
-0.011146574281156063,
0.02866021916270256,
0.0570516437292099,
0.04122636467218399,
0.011255771853029728,
0.015203692018985748,
-0.01591767743229866,
0.03759763762354851,
0.006396470591425896,
-0.025249889120459557,
-0.0014615703839808702,
0.022696340456604958,
0.0032696337439119816,
0.11081055551767349,
0.01545568648725748,
-0.002496849512681365,
-0.07445608824491501,
-0.013716922141611576,
-0.01701805554330349,
-0.041595958173274994,
-0.026879455894231796,
-0.03037378378212452,
0.009819401428103447,
-0.023435525596141815,
-0.005594286601990461,
-0.009147414937615395,
0.016102474182844162,
-0.05029818043112755,
-0.08809741586446762,
-0.012087355367839336,
-0.013952117413282394,
-0.018093233928084373,
0.047106243669986725,
0.03826962411403656,
-0.023435525596141815,
-0.05013018473982811,
-0.02825702726840973,
-0.05580846965312958,
0.014750100672245026,
0.015800079330801964,
-0.008320031687617302,
-0.014918097294867039,
-0.0003853421949315816,
0.007177654653787613,
0.0031394364777952433,
0.023116331547498703,
-0.0030785375274717808,
0.04334312304854393,
0.013490126468241215,
0.0035510279703885317,
-0.02944980375468731,
-0.031247366219758987,
0.025317087769508362,
-0.04472069442272186,
-0.019588403403759003,
-0.01130617130547762,
0.08171354234218597,
0.03548087924718857,
0.026997052133083344,
0.031196968629956245,
0.002288953633978963,
-0.06696344166994095,
-0.01446450687944889,
-0.01464090310037136,
0.02155396342277527,
0.014338509179651737,
0.013943717814981937,
0.04142795875668526,
-0.029382605105638504,
0.034237705171108246,
-0.03072657808661461,
-0.018983615562319756,
-0.013674923218786716,
-0.02257874235510826,
-0.09313731640577316,
0.06551866978406906,
0.016992855817079544,
0.03487609326839447,
-0.0242083091288805,
-0.005858881399035454,
-0.057824429124593735,
-0.024661900475621223,
0.02103317342698574,
0.026829056441783905,
0.01415371336042881,
-0.012204952538013458,
0.002421251032501459,
-0.02795463427901268,
0.0070432573556900024,
0.03669045493006706,
-0.035380084067583084,
0.029382605105638504,
-0.021369166672229767,
-0.0602099783718586,
-0.020697180181741714,
-0.030256187543272972,
0.023385126143693924,
-0.027534641325473785,
0.08419989049434662,
-0.04297352954745293,
0.02494749426841736,
-0.05013018473982811,
-0.0030512381345033646,
-0.0070432573556900024,
0.0025241489056497812,
0.04545987769961357,
-0.03210414946079254,
0.025283487513661385,
0.060915566980838776,
-0.007324651814997196,
-0.006476268637925386,
0.01024779211729765,
-0.0254850834608078,
-0.0026900453958660364,
0.029483402147889137,
0.052750930190086365,
-0.0535237155854702,
0.014540105126798153,
-0.05023098364472389,
0.017908437177538872,
-0.026997052133083344,
0.037496838718652725,
0.016866859048604965,
0.03440570458769798,
0.028777817264199257,
0.008572026155889034,
-0.03826962411403656,
-0.027097851037979126,
-0.009491807781159878,
0.0018101633759215474,
0.026879455894231796,
-0.02412431128323078,
0.02578747831285,
-0.054699692875146866,
0.033313725143671036,
-0.02116757072508335,
-0.030524982139468193,
0.009676603600382805,
-0.019941195845603943,
-0.05053337663412094,
0.020831577479839325,
-0.01896681636571884,
-0.06017637997865677,
-0.031180167570710182,
0.03601846843957901,
0.004078117199242115,
0.0349096916615963,
-0.024309108033776283,
0.008362030610442162,
-0.020125992596149445,
0.03306173160672188,
-0.027853835374116898,
0.0075682466849684715,
-0.03534648194909096,
-0.04139436036348343,
-0.01648886501789093,
0.008118435740470886,
0.008181434124708176,
-0.0024023512378335,
0.0171524528414011,
0.02005879394710064,
-0.07573286443948746,
-0.03813522681593895,
0.043443918228149414,
0.0012305750278756022,
-0.003374631516635418,
0.023049132898449898,
0.03779923543334007,
-0.019370008260011673,
0.022209150716662407,
0.009634604677557945,
-0.01908441260457039,
0.033532120287418365,
-0.041293561458587646,
0.03857201710343361,
0.029701797291636467,
-0.03435530513525009,
0.0435447171330452,
-0.0317513570189476,
-0.022629141807556152,
0.03669045493006706,
-0.05093656852841377,
0.01640486717224121,
-0.03484249487519264,
0.03658965975046158,
-0.026509862393140793,
0.02499789372086525,
-0.023334726691246033,
-0.015539685264229774,
0.02407391183078289,
0.05029818043112755,
0.058261219412088394,
-0.01918521150946617,
-0.038202427327632904,
-0.03091137297451496,
0.06266272813081741,
-0.05251573771238327,
0.06491388380527496,
-0.06145315617322922,
0.002073707990348339,
0.03378411382436752,
-0.03055858053267002,
0.03672405704855919,
0.009752202779054642,
-0.020310789346694946,
-0.036522459238767624,
-0.009634604677557945,
-0.013742121867835522,
0.019638802856206894,
0.0003239184443373233,
-0.02288113720715046,
0.008068036288022995,
-0.08487188071012497,
0.02098277397453785,
-0.0033977311104536057,
0.01183535996824503,
-0.03773203492164612,
-0.018395626917481422,
0.035077691078186035,
-0.02024359069764614,
-0.04156235605478287,
-0.031180167570710182,
-0.009004617109894753,
0.015002096071839333,
0.01948760449886322,
-0.052314139902591705,
-0.03655605763196945,
0.05829481780529022,
0.0072616529650986195,
0.012540945783257484,
0.024897094815969467,
0.008626624941825867,
0.02521628886461258,
-0.00948340818285942,
-0.015464087016880512,
0.036791253834962845,
-0.03541368246078491,
-0.07042417675256729,
-0.044821493327617645,
0.015900878235697746,
0.052616532891988754,
-0.0020758078899234533,
-0.05490128695964813,
0.038605619221925735,
-0.00010637597006279975,
-0.022494744509458542,
-0.01196975726634264,
0.00802183710038662,
0.02301553450524807,
-0.03867281600832939,
-0.03178495541214943,
0.0024338506627827883,
-0.03464089706540108,
0.014279711060225964,
-0.06615705788135529,
-0.005002098623663187,
-0.029433002695441246,
-0.035514481365680695,
0.023485923185944557,
-0.012398148886859417,
-0.0052246940322220325,
0.028425024822354317,
-0.014514906331896782,
0.006614865735173225,
0.021654760465025902,
0.03558167815208435,
0.030961772426962852,
-0.0015896677505224943,
0.011339770630002022,
0.002801343332976103,
0.02790423482656479,
0.04932380095124245,
-0.0008861820679157972,
-0.04152875766158104,
0.006614865735173225,
-0.011129774153232574,
0.04394790902733803,
0.058093223720788956,
0.008954218588769436,
-0.01428811065852642,
0.05621166154742241,
-0.019672401249408722,
-0.015774879604578018,
-0.025149090215563774,
0.016388067975640297,
0.03900881111621857,
0.04599746689200401,
0.002841242356225848,
0.037765633314847946,
0.12324230372905731,
-0.03015538863837719,
-0.05214614421129227,
-0.013498526066541672,
0.016455266624689102,
0.027853835374116898,
-0.009223013184964657,
0.025552282109856606,
0.04374631494283676,
0.04445189982652664,
-0.0017639643047004938,
-0.014338509179651737,
-0.011180173605680466,
0.06474588811397552,
0.0012200752971693873,
-0.019823597744107246,
-0.025955474004149437,
-0.0006289372686296701,
0.05224694311618805,
-0.05271733179688454,
-0.004477109294384718,
0.04579587280750275,
-0.013086934573948383,
-0.08050397038459778,
-0.009038216434419155,
0.06928179413080215,
-0.012246951460838318,
0.003668625606223941,
-0.0179420355707407,
-0.010256192646920681,
0.013011336326599121,
0.007055857218801975,
0.004477109294384718,
-0.01777403987944126,
-0.02005879394710064,
-0.018059633672237396,
-0.05604366585612297,
-0.01029819156974554,
-0.029349004849791527,
0.03316252678632736,
0.057118844240903854,
0.022645941004157066
] |
17,735 | imodels.util.rule | __init__ | null | def __init__(self, rule, args=None, support=None):
self.rule = rule
self.args = args
self.support = support
self.terms = [t.split(' ') for t in self.rule.split(' and ')]
self.agg_dict = {}
self.factorize()
self.rule = str(self)
| (self, rule, args=None, support=None) | [
0.016446437686681747,
0.045447539538145065,
0.027233697474002838,
-0.028870506212115288,
-0.012815858237445354,
-0.017952648922801018,
-0.0159588772803545,
-0.0028491776902228594,
0.015244950540363789,
-0.056104205548763275,
0.01761309802532196,
0.09716370701789856,
0.010848205536603928,
0.021208852529525757,
-0.040815722197294235,
-0.02561430260539055,
0.0019524157978594303,
0.04833807423710823,
-0.02099989727139473,
0.05627833306789398,
-0.01459196861833334,
0.006542878691107035,
-0.015897931531071663,
0.05519873648881912,
0.04778086021542549,
0.044367942959070206,
0.02077353000640869,
-0.027686432003974915,
-0.02455211989581585,
-0.0024377990048378706,
-0.004052841104567051,
0.0011829854920506477,
-0.018231254070997238,
0.011161637492477894,
0.023907843977212906,
-0.09597963094711304,
-0.02265411801636219,
0.012485013343393803,
-0.07787026464939117,
0.036984894424676895,
0.04276596009731293,
-0.020390447229146957,
-0.007809663191437721,
0.01880587823688984,
-0.04562166705727577,
-0.015654152259230614,
0.018736226484179497,
0.03785553574562073,
-0.015184005722403526,
-0.06296486407518387,
-0.03785553574562073,
-0.007317750249058008,
0.02486555092036724,
-0.006229447200894356,
-0.053352974355220795,
0.05349227786064148,
0.012084518559277058,
0.027355587109923363,
0.02019890584051609,
0.026850614696741104,
0.009315875358879566,
0.05098482593894005,
0.004570873454213142,
-0.034825701266527176,
-0.017848171293735504,
-0.020355621352791786,
-0.035609278827905655,
0.00011998542322544381,
0.025196393951773643,
0.0284003596752882,
-0.0037655287887901068,
-0.034251075237989426,
0.04889528453350067,
0.005968254525214434,
0.04426346719264984,
-0.011222582310438156,
-0.04415898770093918,
-0.017134245485067368,
0.07773096114397049,
-0.023420283570885658,
0.017569566145539284,
0.0528654120862484,
-0.004416333977133036,
-0.036706287413835526,
0.04179083928465843,
-0.014078289270401001,
-0.010883031412959099,
-0.005968254525214434,
-0.016359372064471245,
-0.0028600606601685286,
-0.05394500866532326,
-0.014896693639457226,
-0.000498170789796859,
0.019206374883651733,
0.000028193853722768836,
0.02399490773677826,
0.007718245964497328,
-0.03963164612650871,
0.0091243339702487,
-0.00840605329722166,
-0.017247429117560387,
-0.0009201603243127465,
-0.04893010854721069,
-0.011744967661798,
-0.016281014308333397,
-0.041651539504528046,
0.003628402715548873,
-0.03625355288386345,
-0.02159193530678749,
0.015114353969693184,
-0.01992030069231987,
0.08643738925457001,
0.014748684130609035,
0.03169138729572296,
-0.034007295966148376,
0.020146667957305908,
-0.07487525790929794,
-0.047850511968135834,
0.007853195071220398,
0.006743126083165407,
-0.009794727899134159,
-0.011257408186793327,
-0.03358938917517662,
0.0916612446308136,
-0.0016346313059329987,
-0.019537217915058136,
0.004853832069784403,
-0.033154066652059555,
0.08720355480909348,
-0.027216285467147827,
0.04036298766732216,
-0.01379968412220478,
0.008662893436849117,
-0.011579545214772224,
-0.0057070618495345116,
-0.054989781230688095,
0.0185795109719038,
0.014409133233129978,
-0.011640490032732487,
0.015236244536936283,
0.08044736832380295,
-0.012154169380664825,
-0.012772325426340103,
-0.07076582312583923,
-0.0512286052107811,
0.007339516654610634,
-0.0315869115293026,
0.05039278790354729,
-0.004222616087645292,
-0.019432740285992622,
-0.031917754560709,
-0.01828349381685257,
0.030960047617554665,
0.02591032162308693,
0.07571107149124146,
0.06606435775756836,
-0.021139200776815414,
-0.03764658421278,
0.01798747479915619,
-0.017813345417380333,
0.021348154172301292,
-0.03628838062286377,
-0.056591764092445374,
0.019815823063254356,
0.0409201979637146,
0.010395471937954426,
0.029131699353456497,
-0.07466629892587662,
-0.003197434591129422,
-0.014626794494688511,
-0.02343769744038582,
-0.08128318190574646,
-0.029932688921689987,
0.07814887166023254,
-0.03841274976730347,
0.08581052720546722,
0.017508620396256447,
0.09326322376728058,
-0.023820780217647552,
0.041024673730134964,
0.017177777364850044,
-0.0038417100440710783,
-0.02183571457862854,
-0.013973812572658062,
-0.0047885337844491005,
-0.031917754560709,
0.006203327793627977,
0.015984997153282166,
0.009585774503648281,
0.03115158900618553,
0.01882329210639,
-0.05317884683609009,
-0.008031677454710007,
0.02159193530678749,
-0.002241904381662607,
-0.03984060138463974,
-0.030141644179821014,
0.011727554723620415,
-0.011901683174073696,
0.03823861852288246,
-0.02235809899866581,
0.04307939112186432,
-0.013286004774272442,
0.04210427403450012,
-0.0026989919133484364,
0.03198740631341934,
-0.013973812572658062,
0.05951712280511856,
-0.07090512663125992,
0.01009074691683054,
0.021382980048656464,
-0.01134447194635868,
0.03245755285024643,
0.05028831213712692,
0.01351237203925848,
-0.011144224554300308,
0.051193781197071075,
0.05871613323688507,
-0.0007911963621154428,
0.0032235539983958006,
0.04558684304356575,
-0.04666643962264061,
0.056313157081604004,
-0.007874961942434311,
0.005842011421918869,
-0.038900308310985565,
0.06519371271133423,
0.010351939126849174,
-0.0019687404856085777,
0.02542276121675968,
0.00017195189138874412,
-0.07557176798582077,
0.0420694462954998,
0.0006094497512094676,
0.019223786890506744,
-0.013233765959739685,
0.008018617518246174,
0.0528654120862484,
-0.055790770798921585,
0.0019110603025183082,
-0.012049692682921886,
-0.00675618601962924,
-0.03736797720193863,
-0.019798411056399345,
-0.00440762797370553,
0.042208749800920486,
0.054676350206136703,
0.00940293911844492,
0.009585774503648281,
-0.03139536827802658,
-0.017256135120987892,
0.011004921048879623,
-0.015628032386302948,
0.01011686585843563,
-0.04638783261179924,
0.02460435777902603,
-0.008549709804356098,
-0.015523555688560009,
0.036950066685676575,
-0.05328332260251045,
0.03440779075026512,
0.051193781197071075,
0.029845625162124634,
-0.011144224554300308,
0.0019175901543349028,
0.012154169380664825,
-0.009446470998227596,
0.009072095155715942,
0.006198974791914225,
-0.0016378962900489569,
0.000925057684071362,
-0.03557445481419563,
0.011805912479758263,
0.05206442251801491,
-0.06871110945940018,
0.023141678422689438,
-0.005485048051923513,
0.012128050439059734,
-0.024882962927222252,
0.030176470056176186,
0.04384555667638779,
0.0025183334946632385,
-0.016455143690109253,
-0.023559587076306343,
0.012955160811543465,
-0.003687171032652259,
0.01736931875348091,
0.054153963923454285,
-0.02261929214000702,
-0.013416601344943047,
-0.03407694771885872,
0.0021080432925373316,
0.03439037874341011,
0.036149077117443085,
0.07334292680025101,
0.0355222150683403,
0.05028831213712692,
-0.027094395831227303,
0.06028328835964203,
-0.02507450431585312,
0.006172855384647846,
-0.017900411039590836,
0.06669121980667114,
-0.02070387825369835,
-0.09639754146337509,
-0.03402470797300339,
0.019780997186899185,
0.006529818754643202,
0.07473595440387726,
-0.01746508851647377,
0.02813916653394699,
0.06703947484493256,
-0.011004921048879623,
0.029567020013928413,
-0.02180088870227337,
0.052482329308986664,
-0.03660181164741516,
-0.03184810280799866,
0.028539661318063736,
0.06115392968058586,
-0.022027255967259407,
-0.00743528688326478,
0.004013662226498127,
-0.006695241201668978,
0.02378595434129238,
-0.004294444341212511,
-0.017177777364850044,
-0.016785988584160805,
0.027111807838082314,
0.0092897554859519,
-0.014391721226274967,
0.03057696484029293,
0.027338175103068352,
0.008114388212561607,
-0.05098482593894005,
-0.0278257355093956,
0.034268490970134735,
0.009037269279360771,
-0.06860662996768951,
-0.05039278790354729,
0.023838192224502563,
0.030124230310320854,
-0.02319391630589962,
0.05697484686970711,
0.03163914754986763,
-0.03383316844701767,
-0.07508420944213867,
-0.0414077565073967,
0.05042761564254761,
-0.05105447769165039,
0.02894015796482563,
-0.04067641869187355,
-0.002825235016644001,
0.012206408195197582,
0.1057308241724968,
-0.014800922945141792,
-0.04798981547355652,
-0.011222582310438156,
-0.023542173206806183,
-0.06442754715681076,
0.06648226082324982,
-0.043218694627285004,
-0.006146735977381468,
0.05018383637070656,
0.021940192207694054,
-0.02921876311302185,
0.005985667463392019,
0.06185044348239899,
0.007108796387910843,
0.0015954524278640747,
0.010822086594998837,
-0.018422795459628105,
0.02214914560317993,
-0.047920163720846176,
-0.025248633697628975,
0.05182064324617386,
0.04238287732005119,
-0.001840320648625493,
-0.010299701243638992,
-0.06000468134880066,
-0.04290526360273361,
0.06185044348239899,
0.006107557099312544,
0.041651539504528046,
-0.07090512663125992,
-0.008031677454710007,
-0.04015403240919113,
0.05913404002785683,
0.1113029420375824,
0.052273377776145935,
0.015305895358324051,
-0.007726952433586121,
0.0437062531709671,
-0.06898971647024155,
-0.01746508851647377,
0.015984997153282166,
-0.015114353969693184,
-0.033101826906204224,
-0.07146234065294266,
-0.011179049499332905,
-0.0404326394200325,
-0.07243745774030685,
0.02698991820216179,
0.03980577737092972,
-0.02376854047179222,
-0.02180088870227337,
0.03924856334924698,
0.04893010854721069,
-0.005802832543849945,
0.027076981961727142,
0.023942669853568077,
-0.08142248541116714,
-0.04018886014819145,
-0.04826842248439789,
-0.05923851579427719,
-0.031203828752040863,
0.07438769936561584,
-0.03435555472970009,
0.015462610870599747,
-0.006077084690332413,
-0.009394233115017414,
0.014557142741978168,
0.02241033874452114,
0.053666405379772186,
0.023576999083161354,
0.007256805431097746,
0.009037269279360771,
-0.012302178889513016,
-0.0003498894511722028,
-0.029654083773493767,
-0.048999760299921036,
0.009133039973676205,
-0.01934567652642727,
-0.04011920839548111,
0.02671131305396557,
-0.029567020013928413,
-0.03226601332426071,
0.019310850650072098,
0.05540769174695015,
-0.03896996006369591,
-0.03628838062286377,
-0.02347252145409584,
0.07066134363412857,
0.02864413894712925,
-0.03924856334924698,
-0.034251075237989426,
-0.0028535309247672558,
-0.030228707939386368,
-0.11743226647377014,
-0.046248529106378555,
0.047119174152612686,
0.021992430090904236,
-0.007666007149964571,
0.005680942442268133,
0.00681277783587575,
-0.021713824942708015,
0.010290994308888912,
-0.0053196256048977375,
0.04610922932624817,
0.0441938154399395,
-0.0012852860381826758,
0.04349730163812637,
0.004884304478764534,
0.03473863750696182,
-0.11569097638130188,
0.02728593721985817,
0.032649096101522446,
0.03823861852288246,
-0.062338005751371384,
-0.04687539488077164,
-0.02350734733045101,
0.013477546162903309,
0.00016202112601604313,
0.004823359660804272,
-0.05039278790354729,
0.03663663566112518,
0.014078289270401001,
-0.054397743195295334,
-0.02705956995487213,
-0.007365635596215725,
-0.003981012850999832,
-0.03684559091925621,
0.013973812572658062,
0.03980577737092972,
-0.023646650835871696,
0.01722130924463272,
0.015802161768078804,
-0.056382808834314346,
-0.037472452968358994,
0.03332819417119026,
-0.0324053131043911,
0.019572043791413307,
0.013190234079957008,
0.02535310946404934,
0.03484311327338219,
0.0415818877518177,
0.024116797372698784,
0.027912799268960953,
-0.03632320463657379,
0.005837657954543829,
-0.016550913453102112,
-0.0577758364379406,
-0.06832802295684814,
0.004107255954295397,
0.0643230676651001,
-0.023315805941820145,
-0.0664474368095398,
0.008397347293794155,
-0.04990522935986519,
-0.016690216958522797,
-0.024412816390395164,
-0.0648106262087822,
0.018753640353679657,
-0.006429695058614016,
-0.006825837306678295,
0.005916015710681677,
-0.021400393918156624,
-0.00047613264177925885,
-0.09904429316520691,
0.038586877286434174,
-0.011936509050428867,
0.0070391446352005005,
-0.041303280740976334,
-0.04527341201901436,
0.015654152259230614,
-0.0011144224554300308,
0.033972471952438354,
0.011753673665225506,
0.06421859562397003,
-0.06115392968058586,
0.03458192199468613,
-0.029810799285769463,
-0.02317650429904461,
0.04085054621100426,
-0.008689012378454208,
0.10482536256313324,
0.009925324469804764,
-0.0020645111799240112,
0.029271000996232033,
0.01856209896504879,
0.01992030069231987,
0.07592003047466278,
0.006120617035776377,
-0.05129825696349144,
0.021208852529525757,
0.031238652765750885,
-0.0014844455290585756,
0.018353143706917763,
0.00865853950381279,
-0.002533569699153304,
-0.03449485823512077,
-0.0009239693754352629,
-0.056905195116996765,
0.009907911531627178,
0.014661620371043682,
0.0016770751681178808,
0.015706390142440796,
-0.03802966699004173,
0.01965910755097866,
0.0008238455047830939,
-0.03677593916654587,
-0.028156578540802002,
-0.015236244536936283,
0.04318387061357498,
0.014609381556510925,
-0.03346749767661095,
0.022810833528637886,
-0.0075310575775802135,
-0.04920871555805206,
0.022009842097759247,
-0.0004241661517880857,
-0.04548236355185509,
-0.00626862607896328,
0.03684559091925621,
-0.07292501628398895,
-0.019223786890506744,
0.019310850650072098,
0.031256064772605896,
-0.020651640370488167,
0.0038351803086698055,
-0.024970026686787605,
0.04610922932624817,
-0.10942234843969345,
-0.026833202689886093,
0.00027738127391785383,
0.016733748838305473,
-0.003365033306181431,
0.060492243617773056,
-0.043532125651836395,
-0.03144760802388191,
-0.004392391536384821,
-0.01830090582370758,
-0.01351237203925848,
-0.0028513541910797358,
-0.05457187443971634,
-0.007500585168600082,
0.0035631044302135706,
-0.05481565371155739,
-0.036149077117443085,
-0.028156578540802002,
-0.06965140253305435,
0.014513610862195492,
-0.0075310575775802135,
0.020825769752264023,
0.06784046441316605,
-0.007487525697797537,
-0.005916015710681677,
0.019467566162347794,
-0.046004749834537506,
-0.008549709804356098,
-0.02263670600950718,
0.016568327322602272,
0.02347252145409584,
0.018144190311431885,
0.0210347231477499,
-0.0409201979637146,
-0.009855673648416996,
-0.0036109897773712873,
0.0075310575775802135,
-0.04426346719264984,
0.00036131663364358246,
0.016228776425123215,
-0.03628838062286377,
0.044611722230911255,
-0.00027629296528175473,
0.022288449108600616,
-0.005567758809775114,
-0.08998961001634598,
0.006686534732580185,
-0.05756688490509987,
-0.022549640387296677,
-0.007853195071220398,
0.013407894410192966,
-0.04635300859808922,
-0.008828314952552319,
0.023263568058609962,
0.0302809476852417,
0.022967549040913582,
0.014783510006964207,
-0.03357197716832161,
-0.029932688921689987,
-0.02105213701725006,
0.019972538575530052,
-0.002383383922278881,
-0.020094430074095726,
-0.026885440573096275,
-0.019188961014151573,
-0.030193882063031197,
0.011570839211344719,
0.02455211989581585,
0.033188894391059875,
0.04635300859808922,
-0.027790909633040428,
0.03498241677880287,
0.01797006092965603,
0.05756688490509987,
-0.0018381440313532948,
-0.0425570048391819,
0.02159193530678749,
-0.017665335908532143,
-0.02187054045498371,
0.036427684128284454,
0.023646650835871696,
-0.0175173282623291,
0.0033084414899349213,
0.0030777212232351303,
0.04642266035079956,
0.0057462407276034355,
-0.012241234071552753,
0.06348725408315659,
-0.020129255950450897,
0.0035261022858321667,
0.022567054256796837,
0.017848171293735504,
-0.022758595645427704,
-0.009707664139568806,
0.0561390295624733,
0.013137995265424252,
0.04621370509266853,
-0.01735190488398075,
-0.0009740313398651779,
-0.038586877286434174,
0.010856912471354008,
-0.07975085824728012,
0.013773564249277115,
0.03299735113978386,
-0.022166557610034943,
-0.004958309233188629,
0.009925324469804764,
-0.07017378509044647,
-0.01431336347013712,
0.014435253106057644,
0.015601914376020432,
-0.042173922061920166,
0.010822086594998837,
0.011013627983629704,
-0.08755180984735489,
-0.06968622654676437,
0.05572112277150154,
-0.02159193530678749,
0.05969125032424927,
0.008597594685852528,
0.01171884872019291,
-0.017247429117560387,
0.024656595662236214,
-0.016550913453102112,
-0.043532125651836395,
-0.0012439305428415537,
0.07215885072946548,
-0.0010991861345246434,
0.016133006662130356,
0.05833305045962334,
0.0034020356833934784,
-0.016185244545340538,
0.03348490968346596,
0.006786658428609371,
0.006973846349865198,
0.043810732662677765,
-0.061537012457847595,
-0.03029835969209671,
0.07243745774030685,
-0.041303280740976334,
0.053631577640771866,
-0.004205203149467707,
0.010926563292741776,
0.018231254070997238,
-0.01625489629805088,
0.014078289270401001,
0.009115627035498619,
-0.07236780971288681,
-0.026345642283558846,
0.0626862645149231,
-0.01798747479915619,
0.01171884872019291,
0.01499246433377266,
-0.025161568075418472,
0.014226298779249191,
-0.031499847769737244,
0.05599972605705261,
0.05397983640432358,
-0.021382980048656464,
-0.03635803237557411,
0.030489901080727577,
-0.015314602293074131,
0.006386162713170052,
0.044054511934518814,
0.0003790015762206167,
0.01459196861833334,
0.012215114198625088,
-0.01502729021012783,
-0.018927767872810364,
0.007326456718146801,
0.024621769785881042,
0.029410304501652718,
-0.016933996230363846,
-0.04837289825081825,
0.05230820178985596,
0.003336737398058176,
-0.024203861132264137,
-0.04457689821720123,
-0.016716336831450462,
0.011239995248615742,
0.02486555092036724,
0.010430297814309597,
0.021139200776815414,
-0.024203861132264137,
0.10447710007429123,
-0.015584501437842846
] |
17,736 | imodels.util.rule | __iter__ | null | def __iter__(self):
yield str(self)
yield self.args
| (self) | [
0.0039873262867331505,
-0.04176677018404007,
-0.009817552752792835,
-0.02790074236690998,
0.002104363637045026,
-0.0040526925586164,
0.013326231390237808,
0.03130820766091347,
0.13454432785511017,
-0.01198517344892025,
0.00045861632679589093,
0.02137257531285286,
-0.006970968097448349,
0.05819683149456978,
-0.03238780051469803,
0.03927021101117134,
0.019230257719755173,
0.018184401094913483,
-0.0037068850360810757,
0.05617259442806244,
-0.025927109643816948,
0.0498974584043026,
0.043082524091005325,
-0.00956452265381813,
-0.0028254983481019735,
0.03785324469208717,
0.02390287257730961,
-0.04530918598175049,
0.01744217984378338,
-0.005494961515069008,
-0.0459839291870594,
-0.06534913927316666,
0.040518488734960556,
-0.011504417285323143,
0.03660496324300766,
-0.008906645700335503,
-0.09217028319835663,
0.04166555777192116,
-0.03358547389507294,
-0.00636369688436389,
0.0702410414814949,
-0.03464819863438606,
-0.031274471431970596,
-0.0005492853233590722,
-0.039911217987537384,
-0.05222532898187637,
0.02444266900420189,
0.0014770608395338058,
-0.0157806184142828,
-0.05600390583276749,
0.060558442026376724,
-0.02064722403883934,
0.004756958223879337,
-0.027951348572969437,
-0.02061348594725132,
0.07287255674600601,
0.019145913422107697,
-0.013967239297926426,
0.019179651513695717,
0.07685355097055435,
-0.020630354061722755,
-0.0002494714572094381,
0.0597824826836586,
-0.028862254694104195,
0.008839170448482037,
-0.052292805165052414,
-0.05522795021533966,
0.011673103086650372,
0.02184489741921425,
0.044600702822208405,
-0.006439605727791786,
-0.03616637736558914,
-0.030093666166067123,
0.042508989572525024,
-0.024425800889730453,
0.004373196512460709,
-0.09156301617622375,
0.04686110094189644,
0.06922892481088638,
-0.06227904558181763,
-0.01941581256687641,
0.0372459702193737,
-0.09176544100046158,
-0.04726594686508179,
-0.01808318868279457,
-0.025184890255331993,
-0.04895281419157982,
-0.047232210636138916,
-0.06052470579743385,
0.0657539814710617,
-0.05775824561715126,
0.056037645787000656,
-0.012440627440810204,
0.052798863500356674,
-0.023616105318069458,
0.006464908830821514,
-0.014102188870310783,
-0.03913525864481926,
0.012777999974787235,
0.009615128859877586,
-0.0016162272077053785,
0.061131976544857025,
0.0467936247587204,
0.008531318046152592,
-0.013410573825240135,
-0.016902383416891098,
-0.03906778618693352,
-0.06744085252285004,
0.04429706558585167,
0.011099569499492645,
-0.03366981819272041,
0.03065033070743084,
0.002595663070678711,
-0.004811781458556652,
-0.0030068361666053534,
-0.05033604055643082,
-0.016092689707875252,
-0.003649953519925475,
0.029520131647586823,
-0.0036647135857492685,
0.027276601642370224,
0.027748923748731613,
-0.01670839451253414,
0.025792161002755165,
-0.013208150863647461,
0.07577396184206009,
-0.02634882554411888,
-0.0021865982562303543,
0.027782661840319633,
-0.07401961833238602,
0.0347156748175621,
-0.004193967208266258,
-0.004959382116794586,
0.03697607293725014,
0.047232210636138916,
-0.0060895816422998905,
0.016759000718593597,
-0.018673591315746307,
-0.0024037822149693966,
0.0744919404387474,
0.021170152351260185,
-0.015797488391399384,
0.023801660165190697,
0.025505393743515015,
-0.06204288452863693,
-0.04385847970843315,
0.05424956977367401,
0.07935011386871338,
0.03306254744529724,
-0.00958139169961214,
-0.0068824077025055885,
0.05330492556095123,
0.04959382116794586,
0.06325742602348328,
-0.04267767444252968,
0.045612819492816925,
-0.028777912259101868,
0.01732409931719303,
0.014211835339665413,
-0.041463132947683334,
-0.027748923748731613,
-0.05478936433792114,
-0.028221245855093002,
0.01808318868279457,
0.04082212597131729,
0.0327083058655262,
0.019550761207938194,
-0.01532516535371542,
0.022013584151864052,
-0.0006283571128733456,
0.000094095419626683,
-0.07685355097055435,
-0.04284636303782463,
0.00826563686132431,
-0.00835841428488493,
0.08717716485261917,
-0.02758023701608181,
0.0904834195971489,
0.004352110903710127,
0.03255648910999298,
-0.010256136767566204,
-0.05303502455353737,
-0.08670484274625778,
-0.058567941188812256,
0.07354729622602463,
-0.01234784908592701,
0.024240246042609215,
0.009522351436316967,
0.004347893875092268,
-0.03426022082567215,
-0.012457495555281639,
-0.010627247393131256,
0.0011565565364435315,
0.04217161610722542,
-0.020512273535132408,
0.011630931869149208,
-0.06602388620376587,
-0.010483863763511181,
0.02865983173251152,
0.025910241529345512,
-0.028929729014635086,
-0.021254494786262512,
-0.02704044058918953,
0.003727970877662301,
0.016775868833065033,
0.004558751825243235,
0.015426377765834332,
-0.013385271653532982,
-0.007713188882917166,
-0.019753186032176018,
0.00450392859056592,
-0.02758023701608181,
0.05060594156384468,
-0.02216540090739727,
0.04385847970843315,
-0.0324215404689312,
0.025724686682224274,
-0.06609135866165161,
-0.015004660934209824,
0.022941360250115395,
0.09864784777164459,
0.0008718981989659369,
0.013461180031299591,
-0.030059928074479103,
-0.015949305146932602,
-0.044094640761613846,
0.022536512464284897,
-0.04709726199507713,
-0.05198916792869568,
0.01627824455499649,
0.013714210130274296,
-0.007464376278221607,
0.012887646444141865,
0.02469569817185402,
-0.03201669082045555,
0.037988193333148956,
-0.0081053851172328,
-0.02007368952035904,
-0.04331868514418602,
0.001463355147279799,
-0.03515426069498062,
0.05171927064657211,
-0.0049129934050142765,
-0.03392284736037254,
0.004360544960945845,
-0.005861854646354914,
0.04109202325344086,
0.06936387717723846,
0.008573489263653755,
0.0217268168926239,
0.0349518358707428,
-0.006161273457109928,
-0.04814311861991882,
-0.005996803753077984,
-0.008409020490944386,
-0.05316997319459915,
-0.019837528467178345,
-0.03464819863438606,
0.03913525864481926,
-0.013882895931601524,
0.018909752368927002,
0.00766258267685771,
-0.0018576597794890404,
0.0753016397356987,
0.011689972132444382,
0.025066809728741646,
-0.01710480824112892,
-0.017678340896964073,
-0.012617748230695724,
0.020242376253008842,
0.0849505066871643,
-0.00575642567127943,
-0.03451324999332428,
0.07671860605478287,
-0.04848049208521843,
0.022401561960577965,
-0.017998846247792244,
0.006093798670917749,
-0.09176544100046158,
-0.019297732040286064,
0.04220535233616829,
0.021642474457621574,
-0.036773648113012314,
-0.062110356986522675,
0.022975096479058266,
-0.023295601829886436,
0.04004616662859917,
0.02704044058918953,
0.027985084801912308,
-0.025370445102453232,
0.06325742602348328,
0.012204465456306934,
0.005946198012679815,
-0.02476317435503006,
0.08042971044778824,
-0.025437919422984123,
-0.030549120157957077,
0.02909841574728489,
0.008839170448482037,
-0.03768455609679222,
0.04527544602751732,
-0.054823100566864014,
-0.03930394724011421,
0.011006792075932026,
-0.013604563660919666,
-0.009539219550788403,
0.014009411446750164,
0.054890576750040054,
-0.03859546408057213,
-0.0010616704821586609,
0.012676788493990898,
0.014397390186786652,
-0.019685709848999977,
-0.009353664703667164,
-0.0050521595403552055,
-0.018757935613393784,
0.00837528333067894,
0.0428800992667675,
-0.024324588477611542,
0.08508545160293579,
-0.06038975715637207,
-0.014591379091143608,
0.024425800889730453,
0.0029794247820973396,
0.0031122653745114803,
0.07557153701782227,
-0.04024859145283699,
0.05374350771307945,
0.010644116438925266,
-0.001399043365381658,
0.02682114765048027,
-0.03252274915575981,
-0.005684733856469393,
0.051786746829748154,
-0.005575087852776051,
0.022435300052165985,
0.011403204873204231,
0.019618235528469086,
0.005254583433270454,
-0.08360101282596588,
0.021254494786262512,
-0.012912949547171593,
-0.013149110600352287,
0.036908600479364395,
-0.01772894710302353,
0.05003240704536438,
-0.020208638161420822,
0.003711102297529578,
0.09480179101228714,
0.0038523771800100803,
0.002367936307564378,
-0.03093709796667099,
0.028862254694104195,
-0.03014427237212658,
0.02758023701608181,
0.0324215404689312,
-0.029267102479934692,
0.009100634604692459,
-0.02609579637646675,
0.01711324229836464,
0.085760198533535,
-0.029520131647586823,
-0.015029964037239552,
0.019584499299526215,
-0.013705775141716003,
-0.04362231865525246,
-0.01366360392421484,
0.023987215012311935,
0.043082524091005325,
-0.0010753761744126678,
-0.010652550496160984,
0.029975585639476776,
-0.027377814054489136,
-0.06450570374727249,
-0.04831180348992348,
0.0077216229401528835,
-0.03252274915575981,
0.0355253703892231,
-0.04328494891524315,
-0.027782661840319633,
0.017492786049842834,
-0.017897633835673332,
0.05451946705579758,
0.01880854181945324,
-0.023919740691781044,
-0.038359303027391434,
0.038359303027391434,
0.023261863738298416,
0.007308341097086668,
0.0397762693464756,
-0.05829804390668869,
-0.03913525864481926,
-0.04163182154297829,
-0.010854974389076233,
-0.011462245136499405,
-0.09331735223531723,
0.04831180348992348,
-0.031898610293865204,
-0.060625918209552765,
-0.02948639541864395,
0.007004705723375082,
-0.020259244367480278,
-0.0436897948384285,
0.014987792819738388,
0.005275669042021036,
-0.03616637736558914,
0.027850136160850525,
-0.002743263728916645,
0.026905491948127747,
0.012499667704105377,
0.007544502150267363,
-0.05121321231126785,
-0.022350957617163658,
-0.07536911219358444,
0.028204377740621567,
-0.029115283861756325,
0.009817552752792835,
0.015029964037239552,
0.029081547632813454,
0.04082212597131729,
-0.009741643443703651,
0.006620944011956453,
0.0360989049077034,
0.06278510391712189,
-0.005722688511013985,
0.0024691482540220022,
-0.045646559447050095,
-0.016362586989998817,
0.0589727908372879,
-0.016522839665412903,
-0.08238647133111954,
-0.06720469146966934,
0.005499179009348154,
0.006203444674611092,
0.02865983173251152,
-0.030549120157957077,
-0.04500554874539375,
-0.03879788890480995,
0.047772008925676346,
0.06693478673696518,
0.0233968123793602,
-0.0050858971662819386,
0.03660496324300766,
-0.014970923773944378,
0.04163182154297829,
-0.016092689707875252,
-0.03593021631240845,
0.03856172785162926,
0.05323744937777519,
0.018386824056506157,
-0.002165512414649129,
0.04223909229040146,
0.015013095922768116,
-0.06130066141486168,
0.013444311916828156,
0.004179207142442465,
0.022722067311406136,
-0.0296044759452343,
-0.02451014332473278,
0.03238780051469803,
0.019685709848999977,
0.00013053433212917298,
0.0020758977625519037,
-0.015046833083033562,
-0.004373196512460709,
0.0037321881391108036,
0.014743197709321976,
0.020562879741191864,
-0.06808185577392578,
-0.027951348572969437,
0.027124784886837006,
0.0022182271350175142,
-0.026197008788585663,
-0.06744085252285004,
-0.01783015951514244,
0.032252851873636246,
-0.03420961648225784,
0.01442269328981638,
-0.03451324999332428,
-0.049290187656879425,
-0.04584898054599762,
-0.0454103983938694,
0.04338615760207176,
0.01627824455499649,
-0.026450037956237793,
0.007139654830098152,
0.05354108661413193,
-0.01941581256687641,
0.005494961515069008,
0.008822302334010601,
0.015114307403564453,
0.01884227804839611,
-0.03388911113142967,
-0.01985439658164978,
0.016092689707875252,
0.010897145606577396,
-0.01671682856976986,
-0.007835485972464085,
-0.050302304327487946,
-0.007367381360381842,
-0.02273893542587757,
-0.00658720638602972,
0.03306254744529724,
-0.013182847760617733,
0.026331957429647446,
0.011150175705552101,
0.013714210130274296,
-0.031055178493261337,
-0.04939139634370804,
-0.037886980921030045,
-0.0016088471747934818,
-0.04986371845006943,
-0.018707329407334328,
-0.05600390583276749,
0.00012631717254407704,
-0.06052470579743385,
-0.0042255958542227745,
0.021018333733081818,
-0.0459839291870594,
0.01934833824634552,
0.030886491760611534,
-0.02688862383365631,
-0.057083502411842346,
0.019230257719755173,
-0.0018808541353791952,
0.014161229133605957,
0.012010476551949978,
-0.011150175705552101,
0.020309850573539734,
0.02985750511288643,
0.011175478808581829,
-0.003795445431023836,
0.025657212361693382,
0.027377814054489136,
-0.017492786049842834,
0.03768455609679222,
0.012170728296041489,
0.0081053851172328,
0.036436278373003006,
0.08090203255414963,
0.05677986517548561,
0.019618235528469086,
-0.029722556471824646,
-0.03900031000375748,
-0.012263505719602108,
-0.031527500599622726,
0.003318906296044588,
-0.015131176449358463,
0.013798553496599197,
-0.02833932638168335,
-0.061131976544857025,
-0.051348160952329636,
-0.051280684769153595,
0.07847294211387634,
-0.027124784886837006,
0.004394282586872578,
-0.01214542519301176,
0.018167532980442047,
-0.010070581920444965,
0.03162871301174164,
0.023886004462838173,
0.04854796454310417,
-0.05259644240140915,
-0.0280525591224432,
0.004710569512099028,
0.061098240315914154,
0.014540773816406727,
0.05502552539110184,
0.0012398455291986465,
0.01928086392581463,
0.01681804098188877,
-0.029368314892053604,
-0.02656811848282814,
0.004626226145774126,
0.012482798658311367,
0.02612953446805477,
0.00781440082937479,
0.017678340896964073,
0.01670839451253414,
-0.05944511294364929,
0.01808318868279457,
0.02407155930995941,
0.012600879184901714,
-0.038359303027391434,
-0.03464819863438606,
-0.0072197807021439075,
-0.05354108661413193,
0.021423181518912315,
-0.004016846418380737,
-0.0019409486558288336,
0.0017796421889215708,
-0.009016291238367558,
-0.027091046795248985,
-0.034749411046504974,
0.03306254744529724,
-0.07017356902360916,
0.006355262827128172,
-0.03751587122678757,
-0.05327118560671806,
-0.03036356344819069,
-0.009513916447758675,
0.01786389760673046,
0.013047898188233376,
0.06285257637500763,
0.013925068080425262,
-0.019517024978995323,
0.006485994905233383,
0.04790695756673813,
0.009859723970293999,
0.08744706213474274,
-0.027934478595852852,
-0.021018333733081818,
0.06045722961425781,
-0.037886980921030045,
-0.04942513629794121,
-0.002576685743406415,
-0.00696675106883049,
0.02378479205071926,
0.010256136767566204,
0.030852755531668663,
-0.010500732809305191,
-0.0009768001036718488,
-0.06268388777971268,
0.03289386257529259,
-0.05428330600261688,
-0.003287277650088072,
0.0013695232337340713,
-0.03432769700884819,
0.04024859145283699,
-0.07428952306509018,
0.005625693593174219,
-0.02504993975162506,
0.04591645672917366,
-0.07280507683753967,
-0.030599724501371384,
-0.019483286887407303,
0.013596129603683949,
0.015274560078978539,
-0.09412705153226852,
-0.021524393931031227,
0.013967239297926426,
-0.02444266900420189,
-0.06511297821998596,
-0.008624095469713211,
-0.060558442026376724,
0.00459248898550868,
-0.028001952916383743,
-0.030447907745838165,
0.025505393743515015,
-0.04277888685464859,
0.012769565917551517,
0.07543658465147018,
-0.010601944290101528,
0.040012430399656296,
-0.02197984606027603,
0.0003352643398102373,
0.01826874352991581,
0.014009411446750164,
-0.007818617857992649,
0.01776268519461155,
0.023194389417767525,
0.025690948590636253,
0.05195543169975281,
-0.06528165936470032,
-0.011175478808581829,
-0.010011541657149792,
-0.028980335220694542,
0.03422648459672928,
0.036335065960884094,
-0.028069429099559784,
-0.020309850573539734,
0.022620854899287224,
-0.031021442264318466,
-0.05063967779278755,
-0.04729968681931496,
0.0001715857652015984,
0.014346783980727196,
0.017087938264012337,
0.022334087640047073,
-0.035356681793928146,
-0.0490877628326416,
-0.040518488734960556,
-0.017948240041732788,
-0.01632041484117508,
-0.026736805215477943,
-0.0030595508869737387,
-0.014928752556443214,
0.009269321337342262,
0.03802192956209183,
-0.08764948695898056,
-0.002633617492392659,
-0.053945932537317276,
0.037886980921030045,
-0.029317708685994148,
0.023160651326179504,
0.07307497411966324,
-0.01442269328981638,
-0.09615128487348557,
0.042576465755701065,
-0.02451014332473278,
0.034783151000738144,
0.0014844408724457026,
0.04331868514418602,
-0.0014738979516550899,
0.042104143649339676,
-0.012879211455583572,
0.01985439658164978,
0.03341678902506828,
0.02656811848282814,
0.03876414895057678,
0.024088427424430847,
0.06238025426864624,
-0.03216850757598877,
-0.03508678451180458,
0.015544458292424679,
-0.04166555777192116,
0.03210103511810303,
0.07827051728963852,
0.02650064416229725,
0.039438895881175995,
0.023363076150417328,
0.009876593016088009,
0.024425800889730453,
0.03135881572961807,
-0.008189727552235126,
0.022519642487168312,
-0.06619256734848022,
0.03043103963136673,
0.020495405420660973,
0.00021481167641468346,
-0.009918764233589172,
-0.038932837545871735,
-0.03429395705461502,
0.01754339225590229,
0.0037321881391108036,
-0.02742842026054859,
0.011040529236197472,
0.01953389309346676,
0.006760110147297382,
0.009488613344728947,
-0.029402051120996475,
0.05209038034081459,
0.020006215199828148,
0.03984374180436134,
0.030987704172730446,
-0.008940382860600948,
0.058061882853507996,
0.03451324999332428,
0.00006754048081347719,
-0.03927021101117134,
0.06187419593334198,
0.03017800860106945,
0.0037005594931542873,
0.01718915067613125,
0.03488435968756676,
-0.02191237173974514,
0.03555910661816597,
-0.031898610293865204,
-0.038393039256334305,
-0.004065343644469976,
-0.04574776813387871,
-0.011732143349945545,
0.05138189718127251,
0.010964619927108288,
0.020023083314299583,
0.02498246543109417,
0.05677986517548561,
0.019517024978995323
] |
17,737 | imodels.util.rule | __repr__ | null | def __repr__(self):
return ' and '.join([' '.join(
[feature, symbol, str(self.agg_dict[(feature, symbol)])])
for feature, symbol in sorted(self.agg_dict.keys())
])
| (self) | [
0.05011413246393204,
-0.06349629908800125,
0.06384120136499405,
0.012545778416097164,
0.04725145548582077,
-0.06322037428617477,
-0.00028589071007445455,
-0.042422838509082794,
0.0650828406214714,
-0.06811797618865967,
-0.023401541635394096,
0.002343171974644065,
0.028333628550171852,
0.030058132484555244,
-0.036145638674497604,
-0.015856828540563583,
-0.01871088705956936,
-0.036007676273584366,
0.007488665636628866,
0.0016813930124044418,
-0.017055360600352287,
0.026074524968862534,
0.0036775083281099796,
-0.042146917432546616,
0.03090314194560051,
0.015744736418128014,
-0.01424441672861576,
-0.05190762132406235,
-0.06015075743198395,
0.018072819337248802,
-0.025229517370462418,
-0.09408903121948242,
-0.012442308478057384,
-0.0915367603302002,
-0.008264693431556225,
-0.0011543409200385213,
-0.0027527420315891504,
0.015891319140791893,
0.05173517018556595,
-0.020193960517644882,
0.0189350713044405,
-0.05111434683203697,
-0.03762871399521828,
-0.04359550401568413,
-0.029816702008247375,
-0.013166600838303566,
0.040043022483587265,
0.025798603892326355,
0.004276773892343044,
-0.039870571345090866,
0.005971100647002459,
-0.0038650482892990112,
0.0036042167339473963,
0.027540355920791626,
-0.04763084650039673,
-0.05521867051720619,
0.02907516434788704,
-0.019279973581433296,
0.015710245817899704,
0.05918503180146217,
0.002550112782046199,
0.06018524616956711,
0.012347460724413395,
0.000708125124219805,
-0.010053867474198341,
-0.0337485745549202,
-0.06539325416088104,
0.029299350455403328,
-0.007333460263907909,
0.019107522442936897,
0.004265995696187019,
-0.00935544352978468,
-0.009846927598118782,
-0.0056779347360134125,
-0.05794338881969452,
-0.048217177391052246,
-0.031834375113248825,
-0.004255217500030994,
0.029782213270664215,
-0.10271155834197998,
0.0306962002068758,
0.006617790553718805,
-0.020969988778233528,
-0.033714085817337036,
0.0202629417181015,
-0.04197446629405022,
-0.019711099565029144,
0.0203491672873497,
-0.019814569503068924,
-0.015313610434532166,
0.010502239689230919,
0.020073246210813522,
0.013813289813697338,
0.04483714699745178,
0.011114438995718956,
-0.001362359500490129,
-0.013856402598321438,
-0.017814142629504204,
0.025264007970690727,
-0.017055360600352287,
0.04514755681157112,
-0.05552908033132553,
-0.038146063685417175,
0.01669321395456791,
-0.03942219913005829,
0.007566268555819988,
-0.005311477463692427,
-0.007682672701776028,
-0.021125193685293198,
0.002058628713712096,
-0.04100874438881874,
0.027971481904387474,
0.07060126215219498,
-0.06915267556905746,
0.02283245511353016,
-0.019262727349996567,
-0.004531138576567173,
0.019969776272773743,
0.020952744409441948,
-0.008618216961622238,
-0.0014421178493648767,
0.027488619089126587,
0.027712805196642876,
0.027764540165662766,
-0.046423692256212234,
0.009424423798918724,
0.027712805196642876,
0.019987020641565323,
-0.017417507246136665,
-0.0701528862118721,
0.04766533523797989,
0.009476158767938614,
-0.05145924910902977,
0.06597958505153656,
0.04076731204986572,
-0.038180556148290634,
0.03152396157383919,
-0.0004284318711142987,
0.0747055858373642,
0.10009030997753143,
0.031765393912792206,
-0.0498037226498127,
-0.04887248948216438,
0.05377008765935898,
-0.028316382318735123,
-0.025246761739253998,
-0.019193748012185097,
0.06687632948160172,
0.009665854275226593,
-0.07270515710115433,
0.017900368198752403,
0.005018311552703381,
-0.011200664564967155,
-0.04273324832320213,
0.041905488818883896,
0.05387355759739876,
0.01218363270163536,
-0.023470520973205566,
0.04062935337424278,
-0.018176289275288582,
0.023901648819446564,
-0.03242070600390434,
-0.012959660030901432,
0.025160538032650948,
-0.013451144099235535,
0.030437525361776352,
0.022211631760001183,
-0.013554614037275314,
0.017426129430532455,
-0.015330854803323746,
0.016132749617099762,
-0.072636179625988,
-0.031834375113248825,
0.03980159014463425,
-0.01859017089009285,
0.0691181868314743,
-0.036214619874954224,
0.11878395080566406,
-0.028195668011903763,
-0.014658298343420029,
0.05301130190491676,
-0.056805215775966644,
-0.08084482699632645,
-0.023349806666374207,
0.01018320582807064,
-0.08960531651973724,
0.035904206335544586,
-0.03530063107609749,
0.044595714658498764,
0.01026943139731884,
-0.007212745025753975,
-0.040249962359666824,
-0.01538259070366621,
0.04752737656235695,
-0.011830109171569347,
-0.07077371329069138,
-0.03526613861322403,
-0.03704237937927246,
-0.016003413125872612,
0.011398982256650925,
-0.04128466546535492,
-0.007988772355020046,
-0.031989578157663345,
0.0740157812833786,
0.00776889780536294,
-0.011157551780343056,
0.001601634663529694,
-0.008178467862308025,
0.013692574575543404,
0.003125666407868266,
0.030299564823508263,
-0.024229304865002632,
0.016089636832475662,
0.015563663095235825,
0.009510648436844349,
0.017348526045680046,
0.020952744409441948,
0.04714798554778099,
-0.08870857208967209,
0.002204133663326502,
0.000489867408759892,
-0.07863745838403702,
0.07870643585920334,
-0.005660689901560545,
-0.01246817596256733,
0.00726016890257597,
0.022349592298269272,
0.042043447494506836,
-0.003375719767063856,
-0.006354803219437599,
0.07194637507200241,
0.0001913123414851725,
-0.01604652591049671,
-0.017451997846364975,
-0.03466256335377693,
0.027385149151086807,
0.021625300869345665,
0.02086651884019375,
0.008713064715266228,
-0.011847353540360928,
0.019590383395552635,
0.050252094864845276,
0.0020995857194066048,
-0.023711953312158585,
-0.004311264026910067,
-0.07898236066102982,
0.05890911445021629,
0.03147222846746445,
-0.006432406138628721,
0.0022763474844396114,
-0.0017611513612791896,
-0.0016372025711461902,
0.004181926138699055,
-0.03945668786764145,
0.008743243291974068,
-0.05018311366438866,
-0.02907516434788704,
0.052700892090797424,
0.0366629883646965,
-0.004811370745301247,
0.011450717225670815,
0.054252948611974716,
-0.011881844140589237,
0.03233448043465614,
0.040318943560123444,
0.04497510567307472,
-0.0035287695936858654,
-0.006798863410949707,
0.02431553043425083,
-0.027419639751315117,
0.041905488818883896,
-0.03100661188364029,
-0.07291209697723389,
0.033990006893873215,
-0.0285923033952713,
0.0373527929186821,
0.02448797971010208,
-0.010778159834444523,
-0.0449061281979084,
-0.018159044906497,
0.01628795638680458,
-0.025367477908730507,
-0.0457683801651001,
0.026091771200299263,
0.0035309253726154566,
0.0496312715113163,
-0.012994149699807167,
-0.025953810662031174,
0.044112853705883026,
-0.023315316066145897,
0.03285183385014534,
0.0332312248647213,
0.02866128459572792,
0.021504584699869156,
0.05766746774315834,
-0.020055999979376793,
0.12395746260881424,
-0.03116181679069996,
0.023384297266602516,
0.030368544161319733,
0.03652502968907356,
-0.0028260336257517338,
0.057357057929039,
0.008307806216180325,
-0.06397915631532669,
-0.022073673084378242,
0.05528765171766281,
0.01643453910946846,
0.0059667895548045635,
-0.016917400062084198,
-0.038318514823913574,
0.012131896801292896,
0.04080180451273918,
0.013451144099235535,
-0.00817415677011013,
0.007656805217266083,
-0.05994381755590439,
-0.005682246293872595,
0.03742177411913872,
0.03969812020659447,
-0.0042142607271671295,
-0.023056641221046448,
-0.014123701490461826,
0.02873026393353939,
-0.011795618571341038,
-0.06563468277454376,
-0.030058132484555244,
-0.044216323643922806,
0.044561225920915604,
-0.019538648426532745,
-0.037939123809337616,
-0.0285923033952713,
0.03755973279476166,
0.08284524828195572,
-0.0016178018413484097,
0.03862892463803291,
0.02478114701807499,
0.028333628550171852,
-0.09671027958393097,
-0.06025422737002373,
0.005285609979182482,
0.008424210362136364,
-0.0325414203107357,
0.04738941416144371,
0.0016932489816099405,
0.007561957463622093,
-0.06791102886199951,
0.015037689357995987,
0.034076232463121414,
-0.009803814813494682,
0.029592515900731087,
-0.01658112183213234,
0.03745626285672188,
0.01845221035182476,
0.07539539039134979,
0.04742390662431717,
-0.035973187536001205,
0.030368544161319733,
-0.023056641221046448,
0.09257145971059799,
0.14499643445014954,
-0.02643667161464691,
0.0009932074462994933,
0.04994168505072594,
-0.00026635528774932027,
-0.010545351542532444,
-0.014020230621099472,
0.05421845614910126,
0.0016641479451209307,
-0.027298923581838608,
-0.02503982186317444,
0.011140306480228901,
0.012209500186145306,
-0.00714376475661993,
-0.06235812231898308,
0.06473793834447861,
0.005768471397459507,
-0.02643667161464691,
-0.019245482981204987,
-0.08001706004142761,
0.00065100088249892,
0.052183542400598526,
0.011123061180114746,
0.07477456331253052,
-0.0498037226498127,
0.017046738415956497,
0.02662636712193489,
-0.03443837910890579,
0.05563255026936531,
0.012580269016325474,
-0.03300703689455986,
0.019711099565029144,
0.011157551780343056,
0.007842189632356167,
-0.034196946769952774,
-0.04704451560974121,
0.00005749474803451449,
-0.05225251987576485,
-0.031972333788871765,
-0.006212531588971615,
0.0007345316116698086,
-0.015425702556967735,
-0.027919746935367584,
-0.04318162053823471,
-0.017779653891921043,
-0.04545797035098076,
-0.007781831547617912,
0.005798650439828634,
-0.015373967587947845,
-0.0033282958902418613,
0.006406538654118776,
-0.025677889585494995,
-0.07491252571344376,
-0.03924974799156189,
0.00005331821012077853,
-0.054459888488054276,
-0.0011672747787088156,
0.01865915022790432,
0.03704237937927246,
0.03471430018544197,
-0.006027147173881531,
0.006867843680083752,
-0.025177782401442528,
0.027316169813275337,
-0.019935285672545433,
0.01860741525888443,
-0.035938698798418045,
0.06356527656316757,
0.021487340331077576,
0.030385788530111313,
-0.04390591382980347,
0.012364705093204975,
0.03324846923351288,
0.010053867474198341,
0.02448797971010208,
-0.027074739336967468,
0.009726211428642273,
-0.03074793517589569,
0.050355564802885056,
-0.0026622056029736996,
0.01133862417191267,
-0.03711136057972908,
0.008419898338615894,
-0.023418786004185677,
-0.018072819337248802,
0.006290134508162737,
-0.031558454036712646,
0.01224398985505104,
0.018159044906497,
-0.013218335807323456,
0.060564637184143066,
-0.009631363674998283,
-0.03504195436835289,
0.0013925383100286126,
0.04521653801202774,
0.0056348224170506,
0.06211669370532036,
-0.00832073949277401,
0.007906858809292316,
0.033955514430999756,
-0.015408458188176155,
0.038180556148290634,
-0.04494061693549156,
0.05811583995819092,
-0.014270284213125706,
-0.017477864399552345,
0.02848883345723152,
-0.00002222995499323588,
-0.05984034761786461,
0.021125193685293198,
0.0368354395031929,
0.008967429399490356,
-0.012002559378743172,
-0.009631363674998283,
-0.00010124734399141744,
0.03704237937927246,
-0.03426592797040939,
0.027816275134682655,
-0.025643398985266685,
-0.01627071015536785,
-0.054839279502630234,
-0.0536666139960289,
-0.046044301241636276,
-0.019245482981204987,
0.012019804678857327,
0.04197446629405022,
0.034127965569496155,
0.006540187634527683,
-0.008993296884000301,
0.009648608975112438,
0.03119630739092827,
0.027678316459059715,
0.0006051937234587967,
0.0033455409575253725,
0.023953383788466454,
0.02897169440984726,
0.005587398074567318,
-0.0410432331264019,
-0.048251666128635406,
0.04504408687353134,
0.013140733353793621,
0.006548810284584761,
-0.05984034761786461,
0.0070230490528047085,
0.043974895030260086,
-0.04311263933777809,
0.04297468066215515,
0.0019530026474967599,
-0.02441900037229061,
-0.01834874041378498,
0.027919746935367584,
-0.13671880960464478,
0.02873026393353939,
-0.03054099529981613,
-0.005483928136527538,
-0.03433490917086601,
0.015658510848879814,
-0.000005469074494612869,
-0.0671522468328476,
0.031834375113248825,
-0.0010039856424555182,
-0.0020866517443209887,
-0.09008817374706268,
-0.009088144637644291,
-0.05411498621106148,
0.003908161073923111,
0.0331449992954731,
0.013114865869283676,
-0.0536666139960289,
0.010071112774312496,
-0.017279546707868576,
0.019831815734505653,
0.0011284734355285764,
0.02303939498960972,
-0.04921739175915718,
0.10809201002120972,
-0.02257377840578556,
0.04125017672777176,
-0.0154343256726861,
0.029558027163147926,
0.044388774782419205,
0.0024832880590111017,
0.015615398995578289,
-0.03845647722482681,
0.030161604285240173,
0.00813104398548603,
0.04783778637647629,
-0.02059059776365757,
0.06546223163604736,
-0.005432192701846361,
-0.028040461242198944,
0.02681606262922287,
-0.00045052709174342453,
-0.014753146097064018,
0.025246761739253998,
0.040387921035289764,
0.0224530640989542,
0.02050437219440937,
-0.03873239830136299,
0.023573992773890495,
-0.0022181454114615917,
0.02071131207048893,
0.05990932509303093,
-0.012942414730787277,
0.005949544254690409,
0.005087291821837425,
0.015899941325187683,
0.022228877991437912,
-0.012606136500835419,
-0.010976478457450867,
-0.003990075085312128,
-0.06480692327022552,
-0.017417507246136665,
-0.0024940662551671267,
-0.0496312715113163,
-0.013632217422127724,
-0.005341656040400267,
0.024194814264774323,
0.0013084686361253262,
0.017460620030760765,
-0.08236239105463028,
0.04152609407901764,
-0.016908777877688408,
-0.01670183800160885,
0.010433259420096874,
0.05721909552812576,
-0.004871728364378214,
0.032231010496616364,
-0.006910956464707851,
-0.05194211006164551,
-0.05214904993772507,
-0.06135791167616844,
0.02453971467912197,
-0.034421131014823914,
0.027678316459059715,
-0.01877986639738083,
-0.001920668175444007,
0.052493952214717865,
-0.04742390662431717,
0.003964207135140896,
0.0285923033952713,
-0.009959019720554352,
0.054149478673934937,
-0.001305235200561583,
0.025988299399614334,
-0.014097834005951881,
0.04111221432685852,
0.04725145548582077,
-0.05101087689399719,
0.0021642546635121107,
-0.039905060082674026,
0.04266427084803581,
-0.04787227511405945,
-0.011597300879657269,
0.01683979667723179,
-0.04787227511405945,
0.006350492127239704,
0.009855549782514572,
-0.021539075300097466,
-0.003787445602938533,
0.029402820393443108,
0.007988772355020046,
-0.09477882832288742,
0.04311263933777809,
0.0112696448341012,
0.005945233162492514,
0.01329593826085329,
-0.034110721200704575,
0.06866981834173203,
-0.042215898633003235,
-0.03062722086906433,
0.027333414182066917,
0.04183650761842728,
-0.06370323896408081,
-0.03054099529981613,
-0.005328722298145294,
0.013226957991719246,
0.040284451097249985,
-0.05142475664615631,
0.01872813142836094,
-0.014822126366198063,
-0.002517778193578124,
-0.06987696886062622,
-0.004914841149002314,
0.009200237691402435,
0.02919588051736355,
-0.03493848443031311,
-0.04187099635601044,
0.00837678648531437,
-0.0582193098962307,
0.0066005452536046505,
0.007919792085886002,
-0.015132537111639977,
-0.017831388860940933,
0.00007154003833420575,
0.017495110630989075,
-0.03424868360161781,
0.0032808720134198666,
-0.025626154616475105,
-0.009855549782514572,
-0.005449438001960516,
-0.01833149418234825,
-0.0032054248731583357,
-0.037801165133714676,
0.022246122360229492,
0.023418786004185677,
-0.009846927598118782,
0.03900831937789917,
0.048527587205171585,
-0.021021723747253418,
-0.01037290133535862,
-0.02281520888209343,
-0.004871728364378214,
-0.019573139026761055,
-0.050252094864845276,
0.021556319668889046,
0.026264220476150513,
0.06739368289709091,
0.02064233273267746,
-0.0669797956943512,
0.04335407167673111,
-0.0410432331264019,
0.005833140108734369,
-0.02247030846774578,
0.01141622755676508,
-0.005923676770180464,
-0.06563468277454376,
0.001090749865397811,
-0.008932938799262047,
-0.04197446629405022,
-0.034058988094329834,
-0.07677499204874039,
0.05963340401649475,
-0.04914841055870056,
0.02476390078663826,
0.04100874438881874,
0.01840047538280487,
-0.07760275155305862,
0.033921025693416595,
-0.010847140103578568,
0.019849060103297234,
0.01553779561072588,
0.005695180036127567,
-0.02493635192513466,
0.037904635071754456,
0.02029743231832981,
0.0455959290266037,
-0.00468634394928813,
0.035973187536001205,
0.022246122360229492,
0.007014426868408918,
0.07636111229658127,
-0.06453099846839905,
-0.005828829016536474,
0.038042593747377396,
-0.026109015569090843,
-0.0366629883646965,
0.005276987329125404,
-0.0061004385352134705,
-0.0030049511697143316,
-0.00020950048929080367,
0.041905488818883896,
0.028247402980923653,
0.01428752951323986,
-0.003798223566263914,
0.07711989432573318,
-0.011821486055850983,
0.01348563376814127,
-0.038421984761953354,
-0.04266427084803581,
-0.032162029296159744,
0.05128679797053337,
-0.03114457242190838,
0.05328722298145294,
0.005216629710048437,
0.024246549233794212,
0.008687197230756283,
-0.01639142632484436,
-0.0008083620341494679,
0.0266608577221632,
-0.008855336345732212,
0.03136875852942467,
0.03364510461688042,
-0.016029279679059982,
0.038077086210250854,
-0.0013785266783088446,
0.022090917453169823,
0.023125620558857918,
-0.03942219913005829,
-0.02460869587957859,
0.03278285264968872,
0.06991145759820938,
0.02509155683219433,
-0.02059059776365757,
0.025229517370462418,
-0.0019400689052417874,
-0.0025479570031166077,
0.03545583784580231,
-0.008273315615952015,
-0.0629444569349289,
-0.04335407167673111,
-0.002899325219914317,
0.007686983793973923,
-0.014511714689433575,
-0.032248254865407944,
0.032041314989328384,
0.0037098426837474108,
0.010873008519411087
] |
17,738 | imodels.util.rule | factorize | null | def factorize(self) -> None:
for feature, symbol, value in self.terms:
if (feature, symbol) not in self.agg_dict:
if symbol != '==':
self.agg_dict[(feature, symbol)] = str(float(value))
else:
self.agg_dict[(feature, symbol)] = value
else:
if symbol[0] == '<':
self.agg_dict[(feature, symbol)] = str(min(
float(self.agg_dict[(feature, symbol)]),
float(value)))
elif symbol[0] == '>':
self.agg_dict[(feature, symbol)] = str(max(
float(self.agg_dict[(feature, symbol)]),
float(value)))
else: # Handle the c0 == c0 case
self.agg_dict[(feature, symbol)] = value
| (self) -> NoneType | [
0.06412243098020554,
-0.032741088420152664,
0.027642065659165382,
0.017962869256734848,
0.023723868653178215,
-0.03986182436347008,
-0.02570980414748192,
-0.0734974816441536,
0.005465793423354626,
-0.03492382541298866,
-0.006798695772886276,
0.024761565029621124,
0.014742434956133366,
-0.0125686414539814,
-0.007348853163421154,
0.01583380438387394,
-0.011056826449930668,
0.016290033236145973,
0.007004445418715477,
0.023026108741760254,
-0.012667043134570122,
-0.005255570635199547,
-0.059506479650735855,
-0.020879151299595833,
0.030826717615127563,
-0.020145608112215996,
0.029627999290823936,
-0.03685608506202698,
-0.06687769293785095,
-0.018857434391975403,
-0.032562173902988434,
-0.0367487408220768,
-0.020736021921038628,
-0.06974030286073685,
0.014545630663633347,
-0.08308722078800201,
0.018258076161146164,
0.007975049316883087,
0.04311804473400116,
0.01751558668911457,
0.006266429554671049,
-0.0450860857963562,
-0.1155778244137764,
0.004808288067579269,
-0.010797401890158653,
0.028017781674861908,
-0.001454786630347371,
0.048628564924001694,
0.046660520136356354,
-0.020843369886279106,
-0.069132000207901,
-0.06594734638929367,
0.040148086845874786,
0.05864769592881203,
-0.03964713215827942,
0.023938564583659172,
0.03284843638539314,
-0.030200522392988205,
-0.04021965339779854,
0.033081021159887314,
-0.012550749816000462,
0.07135052233934402,
-0.018589064478874207,
-0.030486783012747765,
-0.04687521606683731,
-0.011199956759810448,
-0.022042086347937584,
0.058755043894052505,
-0.017247216776013374,
0.0027306603733450174,
-0.026282325387001038,
-0.048056043684482574,
0.01966254413127899,
-0.019519412890076637,
-0.013642119243741035,
0.016540510579943657,
-0.011700913310050964,
0.0021145285572856665,
0.043654780834913254,
-0.02594239078462124,
0.03449443355202675,
0.034422870725393295,
0.024135369807481766,
-0.040148086845874786,
0.013642119243741035,
-0.014554576016962528,
0.009831272065639496,
0.07542973756790161,
0.04136469587683678,
0.041758302599191666,
-0.005139277316629887,
-0.0252088475972414,
0.05549882724881172,
0.03882412984967232,
0.030200522392988205,
0.029789021238684654,
-0.030075281858444214,
-0.013883652165532112,
0.022167326882481575,
-0.010359065607190132,
0.0765032172203064,
0.008507315069437027,
-0.05034612864255905,
0.010171206668019295,
-0.013606336899101734,
-0.010117532685399055,
0.07435625791549683,
-0.04648160934448242,
-0.02010982669889927,
-0.010206989012658596,
-0.05879082530736923,
0.022990325465798378,
0.030486783012747765,
-0.024314282462000847,
-0.02912704274058342,
-0.02318713068962097,
-0.014948184601962566,
0.03340306505560875,
0.03168550133705139,
0.022507261484861374,
-0.052850913256406784,
0.023097673431038857,
0.029967933893203735,
0.06415821611881256,
-0.05582087114453316,
0.0034731493797153234,
0.07943738996982574,
0.049165304750204086,
-0.025620346888899803,
-0.006856842432171106,
0.05141960829496384,
-0.024063805118203163,
0.011316250078380108,
0.04605221748352051,
0.022435694932937622,
-0.04844965040683746,
-0.0338861308991909,
0.00622617406770587,
0.10720469802618027,
0.04841386899352074,
0.05703747645020485,
-0.023723868653178215,
-0.08387443423271179,
-0.01681782677769661,
0.026658043265342712,
0.027176890522241592,
0.000861578097101301,
0.0494515635073185,
-0.07185147702693939,
-0.07192303985357285,
-0.04841386899352074,
0.06605469435453415,
0.002323633059859276,
-0.03871678188443184,
0.08144121617078781,
0.03572893515229225,
0.02572769485414028,
-0.03964713215827942,
0.0007022336940281093,
0.027266347780823708,
0.04104265198111534,
-0.02121908776462078,
-0.0007575849303975701,
-0.015323902480304241,
-0.010448521934449673,
-0.004861962050199509,
0.006203809753060341,
-0.026568586006760597,
-0.030128955841064453,
-0.000469367194455117,
-0.007460673805326223,
-0.03664139285683632,
-0.01435777172446251,
0.04318960756063461,
0.03485226258635521,
0.024761565029621124,
-0.02728423848748207,
0.04769821837544441,
-0.02469000034034252,
0.058755043894052505,
0.055856652557849884,
-0.07671791315078735,
-0.07557287067174911,
0.020091934129595757,
-0.015878532081842422,
-0.05714482441544533,
0.04573017358779907,
-0.033331498503685,
-0.013633173890411854,
0.02461843565106392,
0.02531619556248188,
-0.04816339164972305,
-0.03640880435705185,
0.01225554384291172,
0.050489261746406555,
-0.004296149592846632,
-0.0003273549664299935,
-0.01930471695959568,
-0.004568991716951132,
0.026461239904165268,
-0.060257911682128906,
-0.002284495858475566,
-0.005116913001984358,
0.0352458693087101,
-0.02871554344892502,
0.007483038119971752,
0.026049738749861717,
0.007272815331816673,
0.0017958396347239614,
-0.0035626059398055077,
-0.04895060881972313,
-0.03211488947272301,
-0.007778244558721781,
0.013937326148152351,
-0.008104761131107807,
-0.016594184562563896,
0.044012609869241714,
0.020718131214380264,
-0.02052132599055767,
-0.004452698398381472,
0.010564815253019333,
-0.0655895248055458,
0.08294408768415451,
-0.026944303885102272,
0.03664139285683632,
0.010054913349449635,
0.003945032600313425,
0.030826717615127563,
0.0018573410343378782,
0.03868100047111511,
0.046660520136356354,
-0.024314282462000847,
-0.006682401988655329,
-0.026049738749861717,
-0.011226793751120567,
0.015136043541133404,
0.044298868626356125,
-0.0012468002969399095,
-0.013042761012911797,
-0.016003772616386414,
-0.015368630178272724,
-0.0057654730044305325,
-0.03792956471443176,
0.023902783170342445,
-0.03914617374539375,
-0.0826578289270401,
0.04855699837207794,
0.03148869425058365,
-0.04104265198111534,
0.027320021763443947,
-0.005774418357759714,
-0.0019300244748592377,
-0.00013390522508416325,
-0.03213278204202652,
0.012201869860291481,
-0.04150782525539398,
-0.029395412653684616,
0.08408913016319275,
0.03127399832010269,
-0.022471478208899498,
0.0017365746898576617,
0.06673456728458405,
0.005546304397284985,
0.03145291283726692,
0.005309244617819786,
0.02769573964178562,
0.03444075956940651,
0.009634467773139477,
0.0068344781175255775,
0.019107913598418236,
-0.007053646724671125,
-0.02127276174724102,
-0.021952630952000618,
0.026139196008443832,
-0.0038399212062358856,
0.02572769485414028,
0.06015056371688843,
-0.024242717772722244,
-0.021290652453899384,
0.01948362961411476,
0.004267076030373573,
-0.04472826048731804,
-0.03179284930229187,
0.02705165185034275,
-0.017399294301867485,
0.07092113047838211,
-0.019036347046494484,
-0.05485473945736885,
0.03329571709036827,
-0.03086249902844429,
-0.04848543554544449,
0.011146282777190208,
0.010412738658487797,
0.06294161081314087,
0.01754242368042469,
-0.04254552349448204,
0.07317543774843216,
-0.06476651877164841,
0.04934421554207802,
0.03957556560635567,
-0.006771858781576157,
0.015144988894462585,
0.01777501031756401,
0.03585417568683624,
-0.013490043580532074,
-0.011432543396949768,
0.03506695479154587,
-0.007679842412471771,
-0.0058236196637153625,
0.02277562953531742,
-0.008802521973848343,
0.05449691414833069,
-0.006588472984731197,
0.01595904305577278,
0.0095986844971776,
0.0450860857963562,
-0.028536630794405937,
0.002799989189952612,
0.024117479100823402,
0.061868131160736084,
-0.0006748376181349158,
-0.011530946008861065,
-0.031184542924165726,
-0.010797401890158653,
-0.016361597925424576,
-0.0367487408220768,
-0.0012769917957484722,
-0.047948695719242096,
0.030558347702026367,
-0.03585417568683624,
-0.027498934417963028,
0.004166437312960625,
0.07310386747121811,
0.016030607745051384,
-0.03270530328154564,
0.011879825964570045,
0.04408417269587517,
0.02420693449676037,
-0.08995747566223145,
-0.04361899942159653,
-0.026890629902482033,
0.01614690199494362,
-0.021004391834139824,
0.044298868626356125,
-0.014518793672323227,
-0.0022218762896955013,
-0.04483560845255852,
-0.05202791467308998,
0.03896725922822952,
0.00006331844633677974,
0.0013686848105862737,
-0.04705413058400154,
0.025691913440823555,
0.04762665182352066,
0.06340678036212921,
0.0021928029600530863,
0.001374275772832334,
-0.06827321648597717,
-0.01907213032245636,
0.009670250117778778,
0.1169375628232956,
-0.030934065580368042,
0.02617497742176056,
0.0131143257021904,
0.03404715284705162,
-0.010278554633259773,
-0.011879825964570045,
0.061188261955976486,
0.01606639102101326,
-0.005528413224965334,
0.010189097374677658,
0.016057444736361504,
0.034995391964912415,
-0.02168426103889942,
-0.0812980905175209,
0.04422730579972267,
0.006838951259851456,
-0.016522619873285294,
-0.014456174336373806,
-0.020378194749355316,
0.03370721638202667,
0.04802026227116585,
-0.03746439144015312,
0.08888400346040726,
-0.03073726035654545,
-0.003195834346115589,
0.037714868783950806,
-0.05345921590924263,
0.09840217232704163,
0.019447848200798035,
-0.027534717693924904,
0.03555002063512802,
0.022990325465798378,
0.027713630348443985,
-0.013212728314101696,
-0.013695793226361275,
0.006615309976041317,
-0.09611208736896515,
-0.03270530328154564,
0.025244630873203278,
-0.03792956471443176,
-0.01896478235721588,
-0.011852988973259926,
0.015440195798873901,
0.01135203242301941,
-0.03578260913491249,
-0.004946945700794458,
0.020932825282216072,
0.01461719535291195,
0.04895060881972313,
-0.031417131423950195,
-0.0018182038329541683,
-0.0002274152502650395,
-0.03775065392255783,
-0.03918195515871048,
-0.047590870410203934,
-0.007836391218006611,
-0.07414156198501587,
0.017318783327937126,
-0.0012814647052437067,
0.004461644217371941,
0.0026881685480475426,
-0.04218769446015358,
0.012336053885519505,
-0.02265039086341858,
-0.017667662352323532,
0.024994151666760445,
0.036551933735609055,
-0.033957697451114655,
0.06322786957025528,
-0.05195634812116623,
0.002768679289147258,
-0.02676539123058319,
-0.029967933893203735,
0.04547969624400139,
-0.001519642653875053,
-0.024171151220798492,
0.025459326803684235,
0.019895130768418312,
-0.022042086347937584,
-0.018767978996038437,
0.007679842412471771,
0.0457659550011158,
-0.050954435020685196,
0.014930293895304203,
-0.0029140461701899767,
-0.0050140381790697575,
0.027320021763443947,
-0.10613121837377548,
-0.05728795751929283,
0.023419717326760292,
-0.04866434633731842,
-0.02919860929250717,
0.0003463644825387746,
0.05986430495977402,
0.03767908737063408,
0.029055478051304817,
-0.004139600321650505,
0.04930843412876129,
0.05761000141501427,
-0.003441839711740613,
0.025405652821063995,
-0.017506640404462814,
0.05213526263833046,
-0.05939913168549538,
0.019734108820557594,
0.02116541378200054,
-0.014339880086481571,
-0.013266402296721935,
0.03925352171063423,
0.020736021921038628,
0.033081021159887314,
0.04415573924779892,
-0.018070217221975327,
-0.08179904520511627,
0.025906609371304512,
-0.01762293465435505,
0.024546869099140167,
0.012962250038981438,
0.0014883328694850206,
-0.007263869512826204,
-0.06791539490222931,
-0.001732101896777749,
-0.018016543239355087,
0.020074043422937393,
0.0692751333117485,
0.01409834809601307,
-0.008842777460813522,
0.004714358597993851,
0.025852935388684273,
-0.03368932753801346,
0.0064990161918103695,
0.03614043444395065,
0.06623360514640808,
0.015672782436013222,
0.02121908776462078,
0.010851075872778893,
-0.010537978261709213,
-0.03259795531630516,
0.02318713068962097,
-0.030128955841064453,
0.025870826095342636,
-0.09711399674415588,
0.01132519543170929,
0.053495001047849655,
-0.023652303963899612,
-0.0008979198173619807,
0.03918195515871048,
-0.055105216801166534,
-0.047018349170684814,
0.0023012689780443907,
-0.1369042545557022,
0.003931614104658365,
0.007183358538895845,
0.015314956195652485,
-0.02046765200793743,
0.0048664347268640995,
-0.05038191378116608,
-0.08244313299655914,
0.015368630178272724,
-0.0045891194604337215,
-0.03478069603443146,
-0.03544267266988754,
-0.03544267266988754,
-0.0255487821996212,
-0.013516880571842194,
0.02819669619202614,
0.01390154380351305,
0.016522619873285294,
-0.027534717693924904,
-0.02184528298676014,
-0.0016683641588315368,
0.01668364182114601,
0.03692765161395073,
-0.02624654397368431,
0.056035563349723816,
0.023723868653178215,
-0.02549510821700096,
-0.04619534686207771,
0.03399347886443138,
-0.0075188204646110535,
0.01537757646292448,
0.07435625791549683,
-0.03356408700346947,
0.0826578289270401,
-0.008391021750867367,
0.023043999448418617,
-0.006038315128535032,
0.04594486951828003,
-0.03433341160416603,
-0.03581839054822922,
0.04930843412876129,
-0.004542154725641012,
-0.018222292885184288,
-0.00629773922264576,
-0.003754937555640936,
0.006937353406101465,
0.032508499920368195,
0.0018282677046954632,
-0.02392067387700081,
-0.0025137283373624086,
0.03023630380630493,
0.1023382619023323,
0.002184975426644087,
-0.0364803709089756,
-0.01588747836649418,
-0.04411995783448219,
0.010699000209569931,
-0.042223479598760605,
0.009124564938247204,
0.0017444022232666612,
-0.025351978838443756,
-0.001906542107462883,
0.009947565384209156,
-0.0472688265144825,
-0.032275911420583725,
-0.008350766263902187,
-0.013221673667430878,
-0.05757421627640724,
-0.012738608755171299,
-0.07457095384597778,
0.05381704494357109,
-0.0556061752140522,
-0.008167380467057228,
0.03918195515871048,
0.015950098633766174,
0.010001239366829395,
0.05374547839164734,
-0.0191258043050766,
-0.03109508752822876,
-0.06734286993741989,
-0.06963295489549637,
-0.0093929348513484,
-0.03567526116967201,
-0.025906609371304512,
-0.018821652978658676,
-0.051240693777799606,
0.05009565129876137,
-0.06512434780597687,
-0.007568021770566702,
-0.024600543081760406,
-0.02710532583296299,
0.0019143695244565606,
0.001151752658188343,
0.023938564583659172,
-0.002770915860310197,
0.03785799816250801,
0.027999890968203545,
-0.01769449934363365,
-0.02728423848748207,
0.0036587717477232218,
0.0736406072974205,
0.013677902519702911,
0.0714578703045845,
0.004367714747786522,
-0.032919999212026596,
0.01733667403459549,
-0.07421313226222992,
-0.00782744586467743,
-0.025280412286520004,
-0.005537358578294516,
-0.03957556560635567,
-0.0556061752140522,
0.018875326961278915,
0.037428610026836395,
-0.011879825964570045,
0.06290582567453384,
-0.0465889573097229,
0.01399100013077259,
-0.05900552123785019,
-0.04555125907063484,
0.017291946336627007,
0.04762665182352066,
-0.07729043811559677,
-0.03109508752822876,
0.04819917306303978,
-0.006552690174430609,
0.028966020792722702,
-0.03324204310774803,
0.013418477959930897,
0.030719369649887085,
0.0015554252313449979,
0.006870260927826166,
-0.008288146927952766,
0.01624530367553234,
-0.010851075872778893,
-0.03508484736084938,
-0.016540510579943657,
0.024296391755342484,
0.019394174218177795,
-0.0022285855375230312,
0.01118206512182951,
0.009026163257658482,
-0.004175383131951094,
0.008766738697886467,
0.009169293567538261,
-0.015189717523753643,
-0.026962196454405785,
-0.013373750261962414,
0.0026568586472421885,
-0.0398976095020771,
-0.015502815134823322,
0.0008705237996764481,
-0.0068523697555065155,
0.02399223856627941,
0.021308543160557747,
-0.025047825649380684,
0.0353889986872673,
0.0010024721268564463,
-0.03868100047111511,
0.010296445339918137,
-0.00018422452558297664,
0.0255487821996212,
-0.008695174008607864,
-0.073783740401268,
0.018204402178525925,
0.040720608085393906,
0.08394599705934525,
-0.002457818016409874,
-0.022042086347937584,
0.023509174585342407,
-0.001851749955676496,
-0.003151105949655175,
0.033957697451114655,
0.03109508752822876,
-0.05306560918688774,
-0.08058243244886398,
0.0037012635730206966,
-0.03120243549346924,
0.01554754376411438,
0.012058739550411701,
-0.0472688265144825,
0.008323929272592068,
-0.07235243171453476,
-0.06151030585169792,
0.03125610947608948,
-0.02837560884654522,
0.003558133030310273,
0.07628852128982544,
0.005506048910319805,
0.031023520976305008,
-0.010180152021348476,
-0.004331931937485933,
0.005711799021810293,
0.05864769592881203,
-0.005716271698474884,
0.004258130211383104,
-0.00907983724027872,
0.0367487408220768,
0.016782043501734734,
0.010672163218259811,
0.034297630190849304,
-0.09053000062704086,
0.019000565633177757,
0.00933031551539898,
0.06662721931934357,
-0.033027347177267075,
0.031148761510849,
-0.00008372571028303355,
-0.0028916820883750916,
0.02606763131916523,
0.005523940082639456,
0.05521256476640701,
0.0586119145154953,
-0.003242798848077655,
0.05553460866212845,
0.036212000995874405,
0.007975049316883087,
-0.040899522602558136,
-0.034709129482507706,
-0.01982356607913971,
0.04827073961496353,
-0.037142347544431686,
0.0030504674650728703,
-0.01966254413127899,
-0.012738608755171299,
0.019447848200798035,
-0.012201869860291481,
-0.005322663113474846,
0.022435694932937622,
-0.02681906521320343,
-0.04619534686207771,
-0.005286880303174257,
0.01580696739256382,
0.03293789178133011,
-0.023133456707000732,
0.042796000838279724,
0.03860943391919136,
-0.042688652873039246,
-0.0009655713220126927,
-0.0013619755627587438,
0.005792309995740652,
0.015136043541133404,
-0.01112839113920927,
0.011772477999329567,
-0.015994826331734657,
-0.018642738461494446,
-0.005036402028053999,
0.017685554921627045,
-0.039038825780153275,
0.004374423995614052,
-0.02225678227841854,
0.003441839711740613,
0.007098374888300896,
-0.027266347780823708,
0.02114752121269703,
0.04039856418967247,
0.015672782436013222
] |
17,739 | imodels.rule_set.rule_fit | RuleFitClassifier | null | class RuleFitClassifier(RuleFit, ClassifierMixin):
...
| (n_estimators=100, tree_size=4, sample_fract='default', max_rules=30, memory_par=0.01, tree_generator=None, lin_trim_quantile=0.025, lin_standardise=True, exp_rand_tree_size=True, include_linear=True, alpha=None, cv=True, random_state=None) | [
-0.012853898108005524,
-0.036836568266153336,
0.007040046155452728,
0.021783975884318352,
-0.04532690346240997,
-0.024659188464283943,
-0.03367383033037186,
-0.00940364133566618,
0.03470552712678909,
0.029851486906409264,
0.04840507358312607,
0.00019397125288378447,
0.0516185499727726,
0.0384940430521965,
-0.02880288101732731,
-0.017640285193920135,
0.03196561709046364,
0.030358878895640373,
-0.004494636319577694,
-0.0116361603140831,
-0.04086186736822128,
0.01030003186315298,
-0.027686620131134987,
0.008435370400547981,
0.018655065447092056,
0.04194429889321327,
0.022967886179685593,
-0.011560051701962948,
0.011103400029242039,
0.025217318907380104,
-0.11812055855989456,
0.006262047216296196,
0.008477653376758099,
0.032608311623334885,
0.026299752295017242,
-0.06098836660385132,
0.012219659984111786,
0.07577034831047058,
-0.09335989505052567,
0.06886983662843704,
-0.052531853318214417,
-0.026062970981001854,
-0.013471223413944244,
-0.0283462293446064,
-0.006105601787567139,
0.023018626496195793,
-0.018959499895572662,
0.05415550246834755,
-0.012380333617329597,
-0.06298410147428513,
-0.06589314341545105,
-0.06098836660385132,
0.042722299695014954,
0.04749177023768425,
-0.04397386312484741,
0.08727120608091354,
0.04448125511407852,
0.03544969856739044,
-0.01162770390510559,
0.013293636962771416,
0.0002239654422737658,
-0.012473355047404766,
0.04032064974308014,
-0.04363560304045677,
-0.011982877738773823,
-0.02822783775627613,
-0.06646818667650223,
0.011044205166399479,
0.009750358760356903,
0.04502246901392937,
-0.006384666543453932,
-0.03737778216600418,
0.03161044046282768,
0.05574532970786095,
0.0617663636803627,
-0.00841422937810421,
0.0120843555778265,
-0.03551734983921051,
0.06443861871957779,
-0.019906628876924515,
0.01784324087202549,
0.002137383446097374,
-0.006985079031437635,
-0.0207861065864563,
-0.03061257302761078,
-0.07313191890716553,
0.05029933527112007,
-0.03693804517388344,
0.031018486246466637,
0.012414160184562206,
-0.07617626339197159,
0.027280708774924278,
0.034130483865737915,
0.017352763563394547,
-0.020566238090395927,
0.08436216413974762,
0.010452249087393284,
0.0018900304567068815,
-0.030629487708210945,
-0.059770628809928894,
-0.039610303938388824,
0.07773225754499435,
-0.042891427874565125,
0.040286824107170105,
-0.03676891326904297,
-0.005086591932922602,
-0.03974560648202896,
-0.000510297657456249,
-0.023898102343082428,
0.004126777872443199,
-0.025944579392671585,
0.0465446412563324,
-0.010240836068987846,
0.05811315029859543,
-0.015424678102135658,
-0.049825768917798996,
-0.05787636712193489,
-0.011280987411737442,
-0.03365691751241684,
0.00047356466529890895,
-0.04295908287167549,
0.038595519959926605,
-0.05973680317401886,
0.007390991784632206,
0.003107768250629306,
0.008532620966434479,
0.044413600116968155,
0.07583799958229065,
0.023576755076646805,
-0.06068393215537071,
-0.01030003186315298,
-0.0004315463884267956,
-0.04089569300413132,
-0.02235901728272438,
0.008651011623442173,
-0.011399378068745136,
0.034807004034519196,
-0.023593667894601822,
-0.03309878706932068,
0.008786316029727459,
0.05845141038298607,
0.04708585888147354,
0.05950001999735832,
-0.02009267359972,
-0.0010708058252930641,
0.04826977103948593,
-0.04015151783823967,
-0.016219589859247208,
-0.033961351960897446,
-0.026553448289632797,
0.022561974823474884,
-0.013623440638184547,
0.04001621529459953,
-0.01569528691470623,
0.028244750574231148,
0.0009059038711711764,
-0.028498446568846703,
-0.024929797276854515,
0.012397246435284615,
-0.042722299695014954,
0.007868784479796886,
-0.021073628216981888,
-0.023306148126721382,
0.02021106332540512,
0.0036172729451209307,
0.020464759320020676,
-0.028549185022711754,
-0.07536443322896957,
0.0022980570793151855,
0.037513088434934616,
-0.016354894265532494,
-0.09078911691904068,
0.005568613298237324,
0.016617046669125557,
-0.009335989132523537,
0.030308138579130173,
0.030460355803370476,
0.041538387537002563,
-0.0008889908203855157,
0.08754181116819382,
0.04691673070192337,
-0.027145404368638992,
-0.03507761284708977,
-0.00819013174623251,
-0.01704832911491394,
0.014925743453204632,
0.010376140475273132,
0.03237152844667435,
-0.027094664052128792,
0.0016342209419235587,
0.007492469623684883,
-0.019162455573678017,
-0.02230827882885933,
-0.02636740542948246,
-0.00635084044188261,
-0.03494230657815933,
0.002353024436160922,
0.04820211976766586,
-0.02173323556780815,
0.05354663357138634,
-0.04211343079805374,
0.02981766127049923,
0.0415722131729126,
0.004989342298358679,
-0.03020666167140007,
0.06775357574224472,
-0.013251354917883873,
0.049216900020837784,
-0.06934340298175812,
-0.043567951768636703,
0.029766922816634178,
0.0025602090172469616,
-0.05138176679611206,
0.05036698654294014,
0.06433714181184769,
-0.030054444447159767,
0.033741481602191925,
0.0035749904345721006,
-0.020414020866155624,
0.017073698341846466,
0.02388118952512741,
0.00020824161765631288,
0.004259968176484108,
0.030139008536934853,
-0.02230827882885933,
0.005044309422373772,
0.08219730108976364,
-0.03179648518562317,
0.03653213381767273,
-0.047965336591005325,
-0.014562114141881466,
-0.05922941118478775,
0.05763958767056465,
0.04904777184128761,
-0.021090541034936905,
0.040963344275951385,
-0.012025159783661366,
0.03382604941725731,
-0.06372827291488647,
0.04826977103948593,
-0.021259671077132225,
0.005128874443471432,
-0.03282817825675011,
-0.010173183865845203,
0.009522032923996449,
0.03167809545993805,
0.0433649942278862,
0.010325401090085506,
0.01711598038673401,
-0.017927804961800575,
0.011500856839120388,
-0.01530628651380539,
-0.03399517759680748,
0.015669917687773705,
-0.013598071411252022,
-0.028413880616426468,
-0.022172974422574043,
-0.07333487272262573,
0.058248456567525864,
-0.020769193768501282,
-0.024811405688524246,
0.033572353422641754,
0.01682000234723091,
0.06416801363229752,
-0.060954540967941284,
0.007471328601241112,
0.0018192072166129947,
0.027416013181209564,
-0.016583221033215523,
0.026232101023197174,
0.06924191862344742,
0.019044065847992897,
-0.013462767004966736,
0.036904219537973404,
-0.03199944272637367,
0.02636740542948246,
-0.03133983537554741,
0.03203326836228371,
0.06014271453022957,
-0.010418422520160675,
0.07110235095024109,
-0.019466890022158623,
-0.04052360728383064,
-0.008612957783043385,
0.00046140843187458813,
-0.014612852595746517,
0.00226000277325511,
0.07752930372953415,
-0.024659188464283943,
-0.010291575454175472,
-0.021141279488801956,
0.00626627542078495,
0.04911542311310768,
0.024134885519742966,
0.04150456190109253,
0.00013015100557822734,
-0.0057166023179888725,
0.008752490393817425,
0.04082804173231125,
-0.030849356204271317,
-0.011864486150443554,
-0.033961351960897446,
-0.002551752608269453,
-0.022883322089910507,
-0.05686158686876297,
-0.03208400681614876,
0.02687479555606842,
-0.008422685787081718,
-0.01767411082983017,
0.031136877834796906,
0.04586812108755112,
0.0719141811132431,
-0.02998679131269455,
0.006329699419438839,
-0.03287892043590546,
0.0022325192112475634,
0.022731104865670204,
-0.010486074723303318,
0.05354663357138634,
0.048878639936447144,
-0.046882905066013336,
0.017927804961800575,
0.00711615476757288,
-0.01960219442844391,
0.001124716131016612,
0.000616268313024193,
0.02991914004087448,
0.012422616593539715,
-0.03179648518562317,
-0.007082329131662846,
-0.04671377316117287,
0.024743754416704178,
0.05368193984031677,
-0.013369745574891567,
-0.11541447788476944,
0.03524674102663994,
0.052599504590034485,
0.02027871645987034,
0.024929797276854515,
0.003887881524860859,
-0.00764891505241394,
0.027991054579615593,
-0.039610303938388824,
0.04251934215426445,
-0.025454102084040642,
-0.01397861447185278,
-0.07198183238506317,
0.02298480086028576,
0.05753810703754425,
0.02061697654426098,
0.0019175141351297498,
-0.04278995096683502,
0.05642184987664223,
0.018891848623752594,
0.037174828350543976,
-0.02202075719833374,
-0.04089569300413132,
-0.028887445107102394,
0.017927804961800575,
-0.08456511795520782,
-0.004773701075464487,
-0.042891427874565125,
-0.050333160907030106,
0.054223157465457916,
0.033572353422641754,
-0.002102500293403864,
0.009894119575619698,
-0.001368897850625217,
0.042992908507585526,
-0.03353852778673172,
-0.01084124855697155,
-0.028667576611042023,
-0.04292525723576546,
-0.019619107246398926,
0.014435266144573689,
0.008820142596960068,
0.028363142162561417,
0.020126499235630035,
0.009750358760356903,
0.03044344298541546,
-0.015238635241985321,
0.023559842258691788,
-0.036667436361312866,
-0.04380473122000694,
-0.0018932016100734472,
-0.025589406490325928,
-0.026232101023197174,
0.0599735826253891,
0.06450627744197845,
0.0008197531569749117,
0.07407904416322708,
-0.029107315465807915,
-0.035652656108140945,
-0.07462026178836823,
-0.09829849749803543,
-0.012583290226757526,
0.002374165691435337,
0.0010036822641268373,
-0.03184722363948822,
-0.058924976736307144,
0.003456599311903119,
-0.04461655765771866,
0.05588063225150108,
0.0299360528588295,
0.04996107518672943,
0.05070524662733078,
0.017657198011875153,
0.022545062005519867,
0.0060760038904845715,
-0.011839116923511028,
0.005331831052899361,
0.01931467279791832,
-0.030122095718979836,
-0.01948380470275879,
-0.03528057038784027,
-0.0038308000657707453,
0.05415550246834755,
0.003433343954384327,
-0.01155159529298544,
-0.01406317949295044,
0.03889995440840721,
0.004037984646856785,
0.008490337990224361,
0.02648579515516758,
0.00690474221482873,
-0.0014915172941982746,
-0.030122095718979836,
-0.026519622653722763,
0.021699409931898117,
-0.014376070350408554,
-0.07786756008863449,
-0.0200419332832098,
-0.0920068547129631,
-0.01103574875742197,
-0.028988923877477646,
-0.04891246557235718,
-0.04218108206987381,
0.018722718581557274,
-0.03710717335343361,
0.002151125343516469,
-0.01324289757758379,
-0.0116615304723382,
0.05205828696489334,
0.017403502017259598,
-0.0000899825754459016,
-0.0004320749139878899,
-0.0022367474157363176,
-0.0018107506912201643,
-0.10763448476791382,
-0.026299752295017242,
0.02800796739757061,
0.007420589216053486,
0.02648579515516758,
0.07353782653808594,
0.0026088340673595667,
-0.018384456634521484,
0.018367543816566467,
-0.07671748101711273,
0.06748296320438385,
-0.02557249180972576,
0.025826187804341316,
0.017809415236115456,
-0.013420484960079193,
0.009183771908283234,
-0.055711500346660614,
0.017758674919605255,
0.015390852466225624,
0.010198554024100304,
0.005581297911703587,
-0.03044344298541546,
0.057504281401634216,
0.003350893035531044,
0.023526016622781754,
-0.07164356857538223,
-0.047187335789203644,
0.10080162435770035,
0.05916175991296768,
0.023441452533006668,
-0.00020744881476275623,
-0.008173218928277493,
0.02513275481760502,
-0.059432368725538254,
-0.008684838190674782,
0.011720726266503334,
0.004854037892073393,
-0.005230352748185396,
-0.05895880237221718,
-0.0365997850894928,
-0.026519622653722763,
0.05232889577746391,
-0.015619178302586079,
0.031424399465322495,
0.003350893035531044,
0.019466890022158623,
0.005221896339207888,
0.028583010658621788,
0.06660348922014236,
0.018147675320506096,
-0.005086591932922602,
-0.04671377316117287,
0.006993535440415144,
-0.0010174241615459323,
-0.024760667234659195,
-0.022392844781279564,
0.042654648423194885,
-0.0343165248632431,
-0.011154139414429665,
-0.0056066676042973995,
-0.019280847162008286,
0.020938323810696602,
-0.0026278612203896046,
0.010164727456867695,
0.020481672137975693,
0.02393192984163761,
0.034215047955513,
-0.029259532690048218,
-0.030172836035490036,
0.022629626095294952,
0.0030549149960279465,
0.023593667894601822,
0.0466461218893528,
-0.00072197470581159,
0.06859922409057617,
-0.030477270483970642,
0.028261663392186165,
0.02180088870227337,
0.024253277108073235,
0.02044784650206566,
0.040692735463380814,
0.010968096554279327,
0.04617255553603172,
-0.01943306438624859,
-0.02924261800944805,
0.06403271108865738,
0.0039132507517933846,
0.07252305001020432,
-0.03619387373328209,
-0.01796163246035576,
0.014858092181384563,
-0.013065311126410961,
0.001286446931771934,
-0.0015929954824969172,
0.03194870427250862,
0.006236677523702383,
0.043906211853027344,
0.03714100271463394,
-0.0216824971139431,
-0.0026701437309384346,
-0.0061182864010334015,
0.007615088950842619,
-0.028718315064907074,
0.006790579296648502,
-0.0667387917637825,
0.007082329131662846,
0.05402019992470741,
0.0003271613095421344,
0.003604588331654668,
0.022900234907865524,
-0.005636265501379967,
0.023424537852406502,
-0.044751863926649094,
-0.008363490924239159,
0.06541957706212997,
-0.0318303108215332,
0.0026468883734196424,
-0.02501436322927475,
-0.006401579827070236,
0.048878639936447144,
-0.0865270346403122,
-0.04996107518672943,
0.00009288950241170824,
0.023170843720436096,
-0.0045453752391040325,
0.024354754015803337,
-0.03167809545993805,
0.05036698654294014,
0.010858161374926567,
-0.026401231065392494,
-0.06677261739969254,
-0.04251934215426445,
-0.014832722023129463,
-0.0014312646817415953,
0,
-0.038697000592947006,
-0.001490460243076086,
-0.03595709055662155,
0.007779991254210472,
0.035990916192531586,
-0.04783003404736519,
-0.017259741201996803,
-0.017302023246884346,
0.049149248749017715,
-0.001511601498350501,
-0.0381896086037159,
0.011162595823407173,
-0.016363350674510002,
-0.05273481085896492,
-0.07089939713478088,
-0.010629835538566113,
-0.03484082967042923,
-0.0006500943563878536,
0.04032064974308014,
0.003327637445181608,
-0.0004479308845475316,
0.03213474527001381,
-0.014460635371506214,
-0.05290393903851509,
0.02044784650206566,
-0.02303553931415081,
-0.04032064974308014,
-0.03451948240399361,
0.01813076250255108,
0.04783003404736519,
-0.04048978164792061,
0.02557249180972576,
-0.026046058163046837,
-0.05726750195026398,
-0.009192228317260742,
0.021327324211597443,
-0.00020018150098621845,
0.02213914878666401,
-0.0466461218893528,
-0.0008815914043225348,
0.04617255553603172,
-0.004693364258855581,
0.031153790652751923,
-0.01692993752658367,
-0.08645938336849213,
-0.005940699949860573,
-0.03551734983921051,
0.019179370254278183,
0.006291645113378763,
0.02202075719833374,
-0.053783416748046875,
0.021953105926513672,
0.0073317959904670715,
0.020143412053585052,
0.045259252190589905,
0.0013540990184992552,
-0.056996893137693405,
-0.07800287008285522,
-0.010460705496370792,
0.05415550246834755,
-0.02665492706000805,
-0.028278576210141182,
-0.08327972888946533,
-0.03286200761795044,
0.032608311623334885,
0.05131411552429199,
-0.030967747792601585,
0.0045707449316978455,
0.0433649942278862,
-0.03528057038784027,
0.022849496454000473,
0.05862054228782654,
0.01907789148390293,
0.03524674102663994,
0.009344445541501045,
0.063254714012146,
-0.04072656109929085,
-0.06254436075687408,
0.043331168591976166,
0.07117000967264175,
0.03534822165966034,
0.00255386671051383,
0.003970332443714142,
-0.010147814638912678,
-0.05009637773036957,
-0.037005696445703506,
-0.004221913870424032,
-0.051246464252471924,
0.05517028644680977,
-0.05527176335453987,
-0.03768221661448479,
-0.03365691751241684,
-0.017437327653169632,
-0.006291645113378763,
-0.0499272458255291,
0.04975811764597893,
0.00152111507486552,
0.03937352076172829,
0.0018498620484024286,
-0.03255757316946983,
0.018435196951031685,
0.046104904264211655,
0.031762659549713135,
-0.004921690095216036,
-0.000005483519544213777,
-0.05645567551255226,
-0.03473935276269913,
0.024574624374508858,
0.02083684504032135,
0.026333577930927277,
-0.03663361072540283,
0.03778369724750519,
-0.0008186961058527231,
-0.09018024802207947,
-0.04343264549970627,
0.01722591556608677,
-0.05912793427705765,
0.013995527289807796,
-0.005251494236290455,
-0.042316388338804245,
0.0046975924633443356,
-0.002219834364950657,
0.04309438541531563,
-0.05950001999735832,
0.00343122985213995,
0.038426391780376434,
-0.05726750195026398,
0.011145683005452156,
0.026468882337212563,
0.009158402681350708,
-0.04840507358312607,
0.021022889763116837,
-0.006371981929987669,
0.026638012379407883,
0.006697557400912046,
-0.006655274890363216,
-0.001057064044289291,
0.04806681349873543,
-0.026113709434866905,
0.04434594884514809,
0.015847504138946533,
0.0021690954454243183,
-0.024591537192463875,
0.015678374096751213,
-0.023728972300887108,
0.016583221033215523,
-0.00452000554651022,
0.060041237622499466,
0.004849809687584639,
-0.09024789929389954,
0.03886612877249718,
-0.007737708743661642,
0.0053867981769144535,
-0.023289235308766365,
-0.04329734295606613,
0.014122375287115574,
-0.0007378307054750621,
0.026553448289632797,
-0.06426949054002762,
0.01273550745099783,
-0.0006537940935231745,
0.01936541311442852,
0.010680574923753738,
-0.0013086452381685376,
0.0653519257903099,
0.010443792678415775,
-0.023052452132105827,
0.003372034290805459,
0.009919488802552223,
0.010384596884250641,
0.006697557400912046,
0.054798197001218796,
-0.021411888301372528,
0.06021036580204964,
-0.03448565676808357,
-0.004238826688379049,
-0.021039802581071854,
0.005090820137411356,
-0.06751679629087448,
0.02038019336760044,
0.007729251869022846,
0.009107663296163082,
0.011712268926203251,
0.059263236820697784,
-0.006190166808664799
] |
17,741 | imodels.rule_set.rule_fit | __init__ | null | def __init__(self,
n_estimators=100,
tree_size=4,
sample_fract='default',
max_rules=30,
memory_par=0.01,
tree_generator=None,
lin_trim_quantile=0.025,
lin_standardise=True,
exp_rand_tree_size=True,
include_linear=True,
alpha=None,
cv=True,
random_state=None):
self.n_estimators = n_estimators
self.tree_size = tree_size
self.sample_fract = sample_fract
self.max_rules = max_rules
self.memory_par = memory_par
self.tree_generator = tree_generator
self.lin_trim_quantile = lin_trim_quantile
self.lin_standardise = lin_standardise
self.exp_rand_tree_size = exp_rand_tree_size
self.include_linear = include_linear
self.alpha = alpha
self.cv = cv
self.random_state = random_state
self.winsorizer = Winsorizer(trim_quantile=self.lin_trim_quantile)
self.friedscale = FriedScale(self.winsorizer)
self.stddev = None
self.mean = None
| (self, n_estimators=100, tree_size=4, sample_fract='default', max_rules=30, memory_par=0.01, tree_generator=None, lin_trim_quantile=0.025, lin_standardise=True, exp_rand_tree_size=True, include_linear=True, alpha=None, cv=True, random_state=None) | [
0.0017907992005348206,
-0.026859702542424202,
0.01660434529185295,
-0.0009840247221291065,
-0.003885782789438963,
0.0038057342171669006,
-0.0791153609752655,
-0.0609283410012722,
-0.05232884734869003,
0.006934486795216799,
-0.01138060912489891,
0.08182328939437866,
0.006019647233188152,
0.07132092118263245,
-0.04039933159947395,
0.0277196504175663,
0.030226312577724457,
0.003926950506865978,
0.021645113825798035,
0.04716914892196655,
-0.06081856042146683,
0.00847599282860756,
-0.0533168725669384,
0.03088499791920185,
-0.019943511113524437,
0.03633744269609451,
-0.006413028109818697,
-0.04354638233780861,
0.01493933703750372,
0.00635813781991601,
-0.07662699371576309,
-0.020455822348594666,
-0.054048746824264526,
-0.0052237361669540405,
0.04083845764398575,
-0.05851316452026367,
0.00676066754385829,
0.03262319415807724,
-0.10795111954212189,
0.008389082737267017,
0.006582273636013269,
-0.056463923305273056,
-0.030793514102697372,
-0.013987903483211994,
-0.021901268512010574,
0.01998010464012623,
0.03502007573843002,
0.05639073625206947,
-0.02530447393655777,
-0.0435829758644104,
-0.01724473387002945,
-0.00815579853951931,
0.024609195068478584,
0.039118558168411255,
-0.01988862082362175,
0.05573205277323723,
0.045339468866586685,
-0.016686681658029556,
0.08460439741611481,
-0.03545919805765152,
0.00432033184915781,
0.012203965336084366,
0.042887698858976364,
-0.03372099995613098,
-0.017546631395816803,
-0.003419214393943548,
-0.09294774383306503,
0.012487566098570824,
-0.019065264612436295,
0.05785448104143143,
0.051011476665735245,
-0.033995453268289566,
0.025707002729177475,
0.047498490661382675,
0.008732147514820099,
0.031067965552210808,
-0.06872277706861496,
-0.06843002885580063,
0.010923189111053944,
-0.01654030755162239,
0.018077237531542778,
0.04702277481555939,
0.01320114079862833,
-0.049145203083753586,
-0.009271902963519096,
-0.07011333853006363,
0.03545919805765152,
-0.014189167879521847,
0.0359715074300766,
0.007391906809061766,
-0.04574199765920639,
0.01988862082362175,
0.025908268988132477,
-0.007940811105072498,
0.03716079890727997,
0.04109461233019829,
0.005324368830770254,
-0.009642413817346096,
0.01489359512925148,
-0.05770810693502426,
-0.012094184756278992,
0.039887022227048874,
-0.001166992704384029,
0.06169680878520012,
-0.05792766809463501,
-0.003714250400662422,
-0.01053895615041256,
0.004683980718255043,
-0.008421101607382298,
-0.019559279084205627,
-0.09155718237161636,
0.04760827124118805,
0.0018479767022654414,
0.03650211542844772,
-0.026640139520168304,
-0.020894944667816162,
-0.05412193387746811,
-0.00575434323400259,
0.0037073891144245863,
-0.023584574460983276,
0.016073739156126976,
0.03229385241866112,
-0.03271467611193657,
0.046986181288957596,
-0.01825105771422386,
0.000013302702427608892,
0.05349984019994736,
0.013576225377619267,
-0.010657886043190956,
-0.028744272887706757,
0.029567627236247063,
-0.02775624580681324,
-0.012853501364588737,
-0.0006432468653656542,
0.01624755747616291,
-0.04603474587202072,
-0.004430112428963184,
-0.0006272371392697096,
-0.005150549113750458,
-0.007039693649858236,
0.05917184799909592,
-0.004697703290730715,
0.006467918865382671,
-0.039338119328022,
0.012469269335269928,
0.042375389486551285,
-0.00433634128421545,
-0.01647626794874668,
-0.007263829465955496,
-0.0241151824593544,
-0.0164030808955431,
-0.033867377787828445,
-0.006220911629498005,
-0.010355988517403603,
0.041021425276994705,
-0.017327068373560905,
0.025542331859469414,
-0.058586351573467255,
0.007858475670218468,
-0.014555104076862335,
-0.05218247324228287,
0.02814047783613205,
0.004132789559662342,
-0.03214747831225395,
-0.01182888075709343,
0.05170675367116928,
-0.04497353360056877,
-0.046400684863328934,
-0.05408534035086632,
-0.002575274556875229,
-0.010621292516589165,
-0.06363626569509506,
-0.06480726599693298,
0.0554393008351326,
-0.055366113781929016,
0.051889725029468536,
0.01976054348051548,
0.052109286189079285,
-0.02965911291539669,
0.04581518471240997,
-0.02614612691104412,
-0.02801240049302578,
-0.008645237423479557,
-0.04409528523683548,
-0.03584343194961548,
-0.017464295029640198,
0.027866026386618614,
0.005145974922925234,
0.02759157307446003,
0.024096885696053505,
0.0007919083582237363,
-0.029512736946344376,
0.013804934918880463,
0.0004737155686598271,
0.016842203214764595,
-0.01598225347697735,
0.01324688270688057,
-0.008764167316257954,
0.051853131502866745,
0.0397772416472435,
-0.011591022834181786,
0.04848651960492134,
0.048047397285699844,
-0.04519309476017952,
-0.019266529008746147,
0.017070913687348366,
-0.08175010234117508,
0.03655700385570526,
0.01258819829672575,
0.07992041856050491,
-0.03522133827209473,
-0.01125253178179264,
0.03201939910650253,
0.0807986631989479,
0.022486766800284386,
-0.04299747943878174,
0.005434149410575628,
0.0060059246607124805,
0.011133602820336819,
-0.011371460743248463,
0.060781966894865036,
-0.008293024264276028,
0.005415852647274733,
-0.018168721348047256,
0.0098345298320055,
-0.00391780212521553,
0.041789889335632324,
-0.03522133827209473,
0.0014397293562069535,
-0.032732974737882614,
-0.006339841056615114,
-0.06484385579824448,
0.015845028683543205,
-0.02508491277694702,
-0.0072821262292563915,
-0.016512861475348473,
-0.007236384321004152,
0.0006306677823886275,
-0.07311400771141052,
0.0002064107684418559,
-0.058586351573467255,
-0.028707679361104965,
0.004112205468118191,
-0.031122855842113495,
0.02331012301146984,
0.014545955695211887,
0.02255995385348797,
0.025121506303548813,
-0.0021052754018455744,
-0.009061490185558796,
0.0009194141603074968,
-0.049620918929576874,
-0.058074042201042175,
0.012121629901230335,
-0.007186068221926689,
-0.011892919428646564,
0.022651437669992447,
-0.0030441300477832556,
0.04651046544313431,
-0.043143853545188904,
0.028543006628751755,
-0.061843182891607285,
-0.01976054348051548,
0.10729243606328964,
-0.05734216794371605,
0.0010211900807917118,
0.007638913579285145,
-0.028469819575548172,
0.030519060790538788,
-0.021571926772594452,
0.09228906035423279,
0.08899563550949097,
-0.031836431473493576,
0.00837993435561657,
-0.04277791827917099,
-0.02581678330898285,
-0.03372099995613098,
-0.03904537111520767,
-0.020547306165099144,
0.018141277134418488,
0.022120831534266472,
-0.04336341470479965,
-0.016650088131427765,
0.030500764027237892,
-0.014820408076047897,
-0.003993276506662369,
-0.05174335092306137,
-0.03619106858968735,
0.008279302157461643,
-0.0017347653629258275,
-0.0562809556722641,
0.016073739156126976,
-0.029348066076636314,
-0.001015472342260182,
0.10699968039989471,
-0.04629090428352356,
-0.008828205987811089,
-0.010337691754102707,
-0.012469269335269928,
0.05379259213805199,
0.033153802156448364,
-0.05159697309136391,
0.02653035894036293,
-0.00735073909163475,
-0.006353563629090786,
0.022816108539700508,
0.049364764243364334,
-0.017235584557056427,
0.011517834849655628,
0.03502007573843002,
0.028707679361104965,
0.07483390718698502,
0.05328027904033661,
0.011115306057035923,
0.015973106026649475,
-0.0833602175116539,
-0.018004050478339195,
-0.046986181288957596,
0.053207091987133026,
0.058293603360652924,
-0.0473887100815773,
0.014234909787774086,
0.01479296199977398,
-0.06081856042146683,
-0.01497593056410551,
-0.018004050478339195,
0.020547306165099144,
0.01609203591942787,
-0.044534411281347275,
-0.008905966766178608,
-0.06510001420974731,
-0.05485380440950394,
0.06480726599693298,
0.018717626109719276,
-0.02521299012005329,
0.04662024602293968,
0.023968806490302086,
0.03249511495232582,
0.006088260095566511,
-0.03527623042464256,
0.06623441725969315,
0.04980388656258583,
-0.034471169114112854,
0.02140725590288639,
-0.02762816660106182,
-0.05521973967552185,
0.05232884734869003,
-0.020199665799736977,
0.01708921045064926,
0.049657512456178665,
-0.0203094482421875,
0.024645788595080376,
0.018607845529913902,
0.07399225980043411,
0.04215582460165024,
0.028158774599432945,
-0.021096209064126015,
0.0001816815056372434,
0.028543006628751755,
-0.026768216863274574,
0.02724393457174301,
0.0009451440419070423,
-0.04116779938340187,
0.059391412883996964,
0.04149714112281799,
-0.06480726599693298,
-0.03787437453866005,
0.008837354369461536,
0.055109959095716476,
-0.04109461233019829,
0.007890494540333748,
-0.07293104380369186,
-0.03456265479326248,
-0.006861299742013216,
0.03664848953485489,
0.010593847371637821,
-0.079554483294487,
-0.013759193010628223,
0.016165222972631454,
0.025231286883354187,
0.010804260149598122,
0.03981383517384529,
0.040618896484375,
0.003279701340943575,
-0.010904892347753048,
-0.03889899700880051,
0.011325718834996223,
0.02492024004459381,
0.0440220981836319,
-0.04171670228242874,
-0.018644439056515694,
-0.018122980371117592,
-0.013256031088531017,
0.015049117617309093,
-0.037343766540288925,
0.011435499414801598,
0.050243012607097626,
0.02327352948486805,
-0.07256510853767395,
-0.0155522795394063,
-0.01381408330053091,
-0.003426075680181384,
-0.030226312577724457,
0.027445198968052864,
0.021187694743275642,
-0.09294774383306503,
0.018324244767427444,
0.052621595561504364,
0.01724473387002945,
0.034800510853528976,
0.013438999652862549,
-0.011892919428646564,
0.0008422245737165213,
0.03020801581442356,
-0.04475397244095802,
-0.03622766211628914,
0.03249511495232582,
-0.0072867004200816154,
0.04171670228242874,
-0.034800510853528976,
0.03394056484103203,
0.032897643744945526,
-0.006413028109818697,
0.048047397285699844,
0.05207269266247749,
-0.0012899243738502264,
-0.02191956527531147,
-0.036282554268836975,
-0.00815579853951931,
-0.012213113717734814,
-0.037728000432252884,
-0.018095534294843674,
-0.06001350283622742,
0.011133602820336819,
0.02556062862277031,
-0.023804135620594025,
-0.07852986454963684,
0.022523360326886177,
-0.0006375291268341243,
0.0034443724434822798,
0.004734296817332506,
-0.02987867407500744,
0.07018652558326721,
-0.02446282096207142,
-0.03642892837524414,
-0.0068292804062366486,
0.006367286201566458,
0.00655940268188715,
-0.06374605000019073,
-0.041533734649419785,
0.04285110533237457,
-0.016467120498418808,
-0.028488116338849068,
0.027646463364362717,
0.017702152952551842,
0.0058138081803917885,
0.01950438879430294,
0.01827850192785263,
0.029677409678697586,
0.019449498504400253,
0.03136071562767029,
0.00031905045034363866,
-0.018077237531542778,
0.016201816499233246,
-0.03706931695342064,
0.04607133939862251,
0.06546594947576523,
0.05679326504468918,
0.030939888209104538,
-0.03439798206090927,
0.021974455565214157,
0.03426990658044815,
-0.040472522377967834,
-0.05521973967552185,
0.0011452652979642153,
0.028872350230813026,
-0.03414182737469673,
-0.05174335092306137,
0.004249431658536196,
-0.01413427758961916,
0.014198316261172295,
-0.030610546469688416,
0.0723821371793747,
0.02669502981007099,
-0.047205742448568344,
-0.019669059664011,
-0.0074788169004023075,
-0.011197641491889954,
0.026201017200946808,
-0.0015895344549790025,
-0.04475397244095802,
-0.012240558862686157,
0.008082611486315727,
0.06414858251810074,
-0.02695118635892868,
0.03930152580142021,
0.03864284232258797,
0.023090561851859093,
0.03443457558751106,
-0.04577859118580818,
0.020748570561408997,
0.0038629118353128433,
-0.04091164469718933,
-0.00562626589089632,
0.01882740668952465,
0.006101982668042183,
-0.026859702542424202,
-0.013045618310570717,
-0.05006004497408867,
-0.0036410631146281958,
0.04296088591217995,
-0.0346907302737236,
0.0034580950159579515,
0.017125803977251053,
-0.009226161055266857,
-0.011261680163443089,
0.019028671085834503,
0.041277579963207245,
0.008718425408005714,
0.033245284110307693,
0.03223896026611328,
-0.009194142185151577,
0.028762569651007652,
-0.038313496857881546,
0.012533308006823063,
0.012194816954433918,
0.008919689804315567,
0.05675667151808739,
0.0651732012629509,
0.05770810693502426,
0.026420578360557556,
-0.05013323202729225,
-0.014152574352920055,
0.06656375527381897,
0.004693129099905491,
0.012332042679190636,
0.024005401879549026,
-0.0384964644908905,
0.039923615753650665,
-0.032897643744945526,
-0.009843678213655949,
-0.025871675461530685,
0.029512736946344376,
0.0004754308902192861,
-0.010063239373266697,
0.0034512337297201157,
0.027664760127663612,
0.023236935958266258,
0.024700678884983063,
-0.014774665236473083,
0.078676238656044,
-0.00531979463994503,
-0.011847177520394325,
-0.00004542037640931085,
0.0816769152879715,
-0.010081536136567593,
-0.0006724073900841177,
-0.007337016519159079,
0.0317266508936882,
0.013695154339075089,
-0.019229935482144356,
0.02162681706249714,
0.03381248563528061,
-0.00854460522532463,
0.019540982320904732,
-0.010063239373266697,
-0.055109959095716476,
0.023255232721567154,
-0.04870608076453209,
-0.008082611486315727,
0.014353839680552483,
0.030702030286192894,
-0.0023419903591275215,
0.02027285471558571,
-0.09031300246715546,
-0.005726898089051247,
-0.009029470384120941,
0.052914343774318695,
-0.04599815234541893,
-0.009697304107248783,
0.03622766211628914,
-0.01529612485319376,
-0.014765516854822636,
-0.07388247549533844,
-0.0173453651368618,
0.02259654738008976,
-0.07648061960935593,
0.0499136708676815,
-0.03229385241866112,
0.015113156288862228,
0.017391107976436615,
0.014957633800804615,
-0.046400684863328934,
-0.044534411281347275,
-0.014189167879521847,
-0.002157878829166293,
-0.049108609557151794,
-0.04760827124118805,
-0.004816632252186537,
0.00011328292021062225,
-0.06334351748228073,
0.03871602937579155,
0.0026507489383220673,
0.03000675141811371,
0.017125803977251053,
-0.03170835226774216,
0.028451522812247276,
-0.003929237835109234,
-0.008233560249209404,
0.020583899691700935,
0.02440793067216873,
0.018058940768241882,
0.02365776151418686,
-0.05496358498930931,
-0.008000276051461697,
-0.02868938259780407,
-0.03606299310922623,
-0.04446122422814369,
0.03187302500009537,
-0.04801080375909805,
0.008018572814762592,
-0.004706851672381163,
-0.03571535274386406,
-0.004096196033060551,
-0.03169005736708641,
-0.07889579981565475,
0.04197285696864128,
-0.09953458607196808,
-0.0004091050068382174,
-0.049108609557151794,
0.022816108539700508,
-0.029439549893140793,
-0.00411906698718667,
-0.09872952848672867,
0.010301098227500916,
0.02195615880191326,
0.049657512456178665,
0.04599815234541893,
-0.008837354369461536,
-0.03218407183885574,
-0.00043454900151118636,
0.015680357813835144,
-0.00483492948114872,
-0.024279853329062462,
-0.0175649281591177,
-0.06879596412181854,
-0.045302875339984894,
0.041789889335632324,
0.06107471510767937,
0.035148151218891144,
-0.015268678776919842,
0.04636409133672714,
-0.025798486545681953,
0.005772640462964773,
-0.002655323129147291,
-0.012688830494880676,
-0.00028488688985817134,
0.031122855842113495,
0.06089174747467041,
-0.005804659798741341,
-0.06114790588617325,
0.005854975897818804,
0.02255995385348797,
0.042668137699365616,
0.031799837946891785,
0.011334867216646671,
0.017235584557056427,
0.03242192789912224,
-0.04255835711956024,
0.0076755075715482235,
-0.04200945049524307,
0.010191317647695541,
0.008645237423479557,
-0.019358014687895775,
-0.03147049620747566,
0.00232483702711761,
-0.008809909224510193,
-0.0028634490445256233,
0.021590223535895348,
0.01950438879430294,
0.04028955101966858,
0.09023981541395187,
-0.016027996316552162,
-0.03258660063147545,
0.06817387789487839,
0.01895548403263092,
-0.08775144815444946,
0.0038674860261380672,
0.0005477604572661221,
0.03642892837524414,
-0.05031619966030121,
-0.0239139162003994,
0.03443457558751106,
-0.00899287685751915,
-0.02695118635892868,
0.012880946509540081,
-0.048340145498514175,
-0.060086689889431,
0.005594246555119753,
-0.045595623552799225,
0.037307173013687134,
0.01150868646800518,
-0.04932817071676254,
0.01627500355243683,
0.005232884548604488,
0.018580399453639984,
-0.018205314874649048,
0.04435144364833832,
0.04080186411738396,
-0.05950119346380234,
0.03377589210867882,
0.04837673902511597,
0.005260329693555832,
-0.020638789981603622,
-0.022779515013098717,
0.051560379564762115,
0.03443457558751106,
0.03716079890727997,
-0.04376594349741936,
-0.03233044594526291,
0.023584574460983276,
-0.006545680109411478,
0.036154475063085556,
0.009162122383713722,
-0.026292501017451286,
0.024133479222655296,
0.04028955101966858,
-0.027189044281840324,
0.043180447071790695,
-0.05606139451265335,
0.05390237271785736,
0.047754645347595215,
-0.016448821872472763,
-0.03458094969391823,
-0.02082175761461258,
-0.05353643372654915,
0.018516361713409424,
-0.00038995055365376174,
0.029165098443627357,
0.03139730915427208,
0.017592372372746468,
0.006504512391984463,
-0.02495683543384075,
-0.019778840243816376,
0.0065776994451880455,
0.02162681706249714,
0.02224890887737274,
0.007259255275130272,
0.05734216794371605,
-0.012816907837986946,
0.027006076648831367,
-0.02543255127966404,
0.042411983013153076,
0.055658865720033646,
0.019266529008746147,
-0.03456265479326248,
0.039667461067438126,
-0.03227555379271507,
-0.01537846028804779,
-0.07735887169837952,
0.004807483870536089,
-0.06791771948337555,
0.02204764261841774,
0.001408853568136692,
0.050352793186903,
0.058074042201042175,
0.055329520255327225,
-0.0012944985646754503
] |
17,749 | imodels.rule_set.rule_fit | _extract_rules | null | def _extract_rules(self, X, y) -> List[str]:
return extract_rulefit(X, y,
feature_names=self.feature_placeholders,
n_estimators=self.n_estimators,
tree_size=self.tree_size,
memory_par=self.memory_par,
tree_generator=self.tree_generator,
exp_rand_tree_size=self.exp_rand_tree_size,
random_state=self.random_state)
| (self, X, y) -> List[str] | [
-0.006887861993163824,
0.03150959312915802,
0.02433653548359871,
-0.06281176954507828,
-0.01708570122718811,
0.01264359150081873,
-0.013620163314044476,
-0.01864994503557682,
0.06035737693309784,
0.007860113866627216,
0.05147315561771393,
0.0017262866022065282,
-0.010024993680417538,
0.005314975045621395,
0.021000633016228676,
-0.014562167227268219,
-0.0003213831514585763,
-0.0062569789588451385,
0.0019239777466282248,
-0.0008285743533633649,
-0.009402752853929996,
-0.014985636807978153,
0.002726625418290496,
-0.013378181494772434,
0.009592881426215172,
-0.009031136520206928,
0.03920118138194084,
-0.041966699063777924,
-0.02615140564739704,
-0.02367972582578659,
-0.08510874211788177,
-0.006810081657022238,
-0.03906290605664253,
-0.01750052720308304,
-0.025460027158260345,
-0.037369027733802795,
0.020672228187322617,
0.0476360023021698,
0.008633594028651714,
-0.017163479700684547,
-0.0021789236925542355,
-0.025027915835380554,
0.010846005752682686,
0.03947773203253746,
-0.048050832003355026,
-0.02694649063050747,
-0.07473805546760559,
0.016956066712737083,
-0.041586440056562424,
-0.07701960951089859,
-0.04677177965641022,
-0.04089505970478058,
0.0005352784646674991,
0.053547292947769165,
0.05493004992604256,
-0.003325100289657712,
-0.005211268085986376,
0.029712006449699402,
0.09520287066698074,
-0.006131666246801615,
0.02310933917760849,
0.031958989799022675,
-0.01794128119945526,
-0.007514424156397581,
0.007799617946147919,
-0.04511247202754021,
-0.03837152570486069,
0.018010418862104416,
-0.007665663026273251,
0.029452739283442497,
-0.020049987360835075,
-0.02077593468129635,
0.06277719885110855,
-0.0066026682034134865,
0.02234882116317749,
-0.02106977067887783,
0.014458460733294487,
-0.03729989007115364,
0.06882676482200623,
-0.03322075307369232,
-0.05869806557893753,
0.09969682991504669,
-0.02718847431242466,
-0.027274897322058678,
0.00000925833319342928,
-0.03121575526893139,
0.05665849894285202,
0.015115270391106606,
-0.012652233242988586,
-0.005168057046830654,
-0.02895149029791355,
-0.003536835080012679,
-0.021985847502946854,
-0.012055919505655766,
-0.007151450030505657,
0.04521617665886879,
-0.04905332997441292,
0.024180976673960686,
0.026497095823287964,
-0.01731904037296772,
-0.00038241894799284637,
0.011243549175560474,
-0.04151730239391327,
0.09886717796325684,
-0.008875575847923756,
-0.0036967163905501366,
-0.03982342407107353,
-0.021035201847553253,
-0.05116203799843788,
0.02566744014620781,
-0.06364142149686813,
0.03875178471207619,
0.008599024266004562,
0.007285404950380325,
0.04089505970478058,
-0.034517090767621994,
-0.0876668393611908,
-0.027586016803979874,
-0.028916921466588974,
-0.01884007453918457,
0.018770936876535416,
0.026306966319680214,
-0.03411954641342163,
0.015357253141701221,
-0.042969197034835815,
0.04753229767084122,
-0.009722515009343624,
-0.0008242532494477928,
0.053789276629686356,
-0.09368183463811874,
-0.018442532047629356,
0.02482050098478794,
-0.044006265699863434,
-0.013793008401989937,
-0.038890060037374496,
-0.06108332425355911,
0.04137902706861496,
-0.009938571602106094,
0.0661303922533989,
-0.0529596209526062,
0.0491570383310318,
0.027067482471466064,
0.0015631644055247307,
-0.04971013963222504,
-0.029020627960562706,
-0.004420503508299589,
0.012548526749014854,
0.06409081816673279,
0.02577114664018154,
-0.019756151363253593,
-0.024163691326975822,
-0.0030485487077385187,
0.009229907765984535,
-0.0552411712706089,
0.029781144112348557,
0.04390255734324455,
-0.03297877311706543,
0.019254902377724648,
0.07397753745317459,
-0.026013130322098732,
-0.025788431987166405,
-0.06409081816673279,
-0.100595623254776,
-0.017051130533218384,
0.06682176887989044,
0.04701376333832741,
0.04570014402270317,
-0.01732768304646015,
0.021605590358376503,
-0.006732301786541939,
-0.026203259825706482,
-0.06668349355459213,
-0.0506780706346035,
0.03322075307369232,
0.008503960445523262,
0.007047743536531925,
-0.01110527291893959,
0.059769704937934875,
-0.02482050098478794,
0.10522786527872086,
-0.005660664290189743,
-0.017612876370549202,
-0.019946280866861343,
-0.04773971065878868,
0.008918787352740765,
-0.018442532047629356,
0.005211268085986376,
0.01015462726354599,
-0.05005583167076111,
0.03909747675061226,
-0.024543950334191322,
-0.029435455799102783,
0.004353526514023542,
0.07314788550138474,
-0.013015206903219223,
-0.055690567940473557,
-0.03401584178209305,
0.0646093562245369,
-0.02547731064260006,
-0.030541662126779556,
-0.0232476145029068,
0.0241982601583004,
0.0019034524448215961,
0.023316752165555954,
-0.024976061657071114,
0.018563522025942802,
-0.055828843265771866,
0.04027282074093819,
-0.07356271147727966,
0.00403376342728734,
0.012159625999629498,
0.03486277908086777,
-0.02449209615588188,
-0.004113704431802034,
0.04265807569026947,
-0.013654733076691628,
0.029193472117185593,
0.01328311674296856,
-0.029677437618374825,
-0.05199168995022774,
0.019151194021105766,
-0.038129545748233795,
0.013110271655023098,
0.006969963200390339,
0.023316752165555954,
-0.014112771488726139,
0.059009186923503876,
-0.024163691326975822,
0.004334081429988146,
-0.03716161474585533,
0.02577114664018154,
-0.05133488029241562,
0.06568099558353424,
-0.002296674298122525,
0.016169622540473938,
0.04542359337210655,
0.0023096376098692417,
0.014086844399571419,
0.010042278096079826,
0.042346954345703125,
-0.06744401156902313,
-0.0116238072514534,
-0.0014713406562805176,
-0.044490229338407516,
0.04397169500589371,
0.05586341395974159,
0.016619019210338593,
0.005716838873922825,
0.002164880046620965,
-0.014164624735713005,
0.023558735847473145,
0.03515661507844925,
0.007851471193134785,
-0.005401397589594126,
-0.06381426751613617,
-0.059907980263233185,
-0.04341859370470047,
-0.03892463073134422,
0.039270319044589996,
-0.05216453596949577,
0.03667764738202095,
0.07453063875436783,
-0.01650667004287243,
-0.004455072805285454,
-0.05593255162239075,
0.007691590115427971,
-0.029677437618374825,
0.016722725704312325,
-0.06526616215705872,
0.018338823691010475,
0.00037593726301565766,
0.0026812537107616663,
-0.03847523406147957,
0.022245114669203758,
-0.030109548941254616,
0.039546869695186615,
0.010647234506905079,
0.02153645269572735,
0.02558101899921894,
0.002720143646001816,
0.03462079539895058,
0.00468409201130271,
0.002316119149327278,
-0.04113704338669777,
0.012064561247825623,
-0.035467736423015594,
0.011079346761107445,
0.006598346866667271,
-0.038025837391614914,
-0.03080092929303646,
-0.0346553660929203,
-0.046668075025081635,
0.03861350938677788,
-0.003800423117354512,
0.08289632946252823,
0.03595170006155968,
0.008763227611780167,
-0.06063392758369446,
0.023455027490854263,
0.013438676483929157,
0.0006038762512616813,
0.04711747169494629,
0.048327382653951645,
-0.0074020749889314175,
-0.05109290033578873,
-0.03581342473626137,
0.03830238804221153,
-0.03937402740120888,
0.027637870982289314,
-0.02827739529311657,
0.04594212770462036,
0.016480743885040283,
0.022642657160758972,
-0.05375470593571663,
-0.03626282140612602,
-0.004943358711898327,
-0.04746316000819206,
0.07453063875436783,
0.06505875289440155,
0.03653937205672264,
0.009938571602106094,
-0.03695420175790787,
0.042865488678216934,
-0.01133861392736435,
0.054549794644117355,
0.032252825796604156,
0.0022707474417984486,
-0.0043254392221570015,
0.003020461415871978,
-0.025269897654652596,
0.002694217022508383,
-0.03550230339169502,
-0.0031349710188806057,
0.005431645084172487,
0.023213045671582222,
0.027793429791927338,
0.014743654057383537,
0.03458622843027115,
-0.026548948138952255,
-0.039650578051805496,
-0.03830238804221153,
0.016783222556114197,
-0.018338823691010475,
0.019064772874116898,
0.025183474645018578,
-0.015521455556154251,
-0.056347377598285675,
0.04480135068297386,
0.015728868544101715,
0.030731791630387306,
0.00897064059972763,
-0.024371104314923286,
0.05396212264895439,
0.037230752408504486,
0.04493962600827217,
0.018857358023524284,
-0.06640694290399551,
0.030921919271349907,
0.024924207478761673,
-0.0037204825785011053,
0.03322075307369232,
-0.04210497438907623,
-0.014700443483889103,
0.04787798598408699,
0.016437532380223274,
-0.0056304167956113815,
0.03297877311706543,
0.02585756964981556,
0.04798169434070587,
-0.0499175526201725,
-0.04735945165157318,
0.03246023878455162,
-0.01276458241045475,
-0.0442136786878109,
-0.006179198622703552,
0.024941492825746536,
0.0634685829281807,
-0.02623782865703106,
0.021484598517417908,
0.042865488678216934,
-0.014622663147747517,
0.0415518693625927,
0.00068381690653041,
0.014804149977862835,
-0.016385680064558983,
0.015815291553735733,
-0.04127531871199608,
0.006844650954008102,
0.03543316572904587,
-0.009523743763566017,
0.08593839406967163,
-0.021899426355957985,
0.006498961243778467,
-0.0013968013226985931,
0.0009668501443229616,
-0.03463808074593544,
-0.02468222565948963,
0.03278864175081253,
-0.04964100196957588,
0.0031933062709867954,
-0.03626282140612602,
-0.018995635211467743,
-0.015365895815193653,
0.018770936876535416,
-0.029210757464170456,
0.0029578052926808596,
0.009973140433430672,
0.08787425607442856,
-0.04390255734324455,
0.021795717999339104,
-0.0033488664776086807,
-0.03771471604704857,
0.038786355406045914,
-0.03149230778217316,
-0.04359143599867821,
0.01328311674296856,
0.04905332997441292,
0.05385841429233551,
0.043107472360134125,
0.0015934122493490577,
0.008503960445523262,
-0.043003764003515244,
0.009765726514160633,
0.01783757470548153,
0.01903020404279232,
0.05918203294277191,
-0.05271763727068901,
-0.026635371148586273,
-0.01637703739106655,
-0.005980427376925945,
-0.053789276629686356,
-0.014302900061011314,
-0.07584426552057266,
-0.055068325251340866,
-0.013965853489935398,
-0.05479177460074425,
-0.0039646257646381855,
0.023420458659529686,
0.012851004488766193,
0.0033639902248978615,
-0.021173477172851562,
0.030714506283402443,
0.09333615005016327,
0.0544806532561779,
-0.03633195906877518,
0.0011667018989101052,
-0.036988768726587296,
-0.009402752853929996,
-0.10909958928823471,
-0.01992899551987648,
-0.020274685695767403,
0.00901385210454464,
0.028035413473844528,
0.036988768726587296,
-0.00249760621227324,
0.03417140245437622,
0.03619368374347687,
-0.049087900668382645,
-0.02898605912923813,
0.028363818302750587,
0.10294631123542786,
0.013862146064639091,
0.03491463139653206,
0.06436737626791,
-0.054204102605581284,
-0.04359143599867821,
-0.024457527324557304,
0.03140588477253914,
0.002255623461678624,
-0.003737766994163394,
-0.023697011172771454,
-0.011226264759898186,
-0.02558101899921894,
-0.03036881610751152,
0.00946324784308672,
0.07045150548219681,
0.07556770741939545,
0.004271425306797028,
0.022659942507743835,
-0.027499593794345856,
-0.01731039769947529,
-0.05586341395974159,
-0.024422958493232727,
-0.003765854286029935,
-0.02207227051258087,
-0.0013222621055319905,
-0.027586016803979874,
-0.06381426751613617,
-0.04691005498170853,
0.019237617030739784,
-0.014458460733294487,
0.030334247276186943,
-0.01506341714411974,
-0.0487767793238163,
-0.02471679449081421,
0.017154838889837265,
0.042346954345703125,
0.031768858432769775,
0.000533117912709713,
0.016826434060931206,
-0.025632871314883232,
-0.0346553660929203,
-0.009981782175600529,
0.02120804600417614,
0.013559668324887753,
0.020032702013850212,
-0.023938992992043495,
-0.01946231536567211,
-0.05555229261517525,
0.006909467745572329,
-0.003560601267963648,
-0.02495877631008625,
-0.01404363289475441,
0.027603302150964737,
-0.007886040024459362,
0.012652233242988586,
0.036228254437446594,
0.05690048262476921,
-0.028502093628048897,
0.08206667006015778,
0.014078202657401562,
0.009687946178019047,
0.04065307602286339,
-0.0642290934920311,
0.0442136786878109,
0.063606858253479,
-0.022815503180027008,
0.013853504322469234,
0.01095835492014885,
-0.029297180473804474,
0.08697546273469925,
-0.039270319044589996,
0.0028000844176858664,
0.029521876946091652,
-0.004297351930290461,
0.05945858359336853,
0.011044776998460293,
-0.04151730239391327,
0.0160918440669775,
0.0027806393336504698,
0.009783010929822922,
-0.009644735604524612,
-0.00214219419285655,
0.027534162625670433,
-0.01756102405488491,
0.031042911112308502,
0.02955644577741623,
0.029349032789468765,
-0.03093920461833477,
-0.00019053429423365742,
-0.019133910536766052,
-0.002581867855042219,
-0.01584986038506031,
-0.01892649568617344,
0.06633780151605606,
-0.02558101899921894,
0.013153483159840107,
0.04061850905418396,
-0.03156144544482231,
-0.0014216478448361158,
0.008037279359996319,
-0.07577512413263321,
0.007557635195553303,
-0.009108916856348515,
-0.029245326295495033,
0.004239016678184271,
-0.04331488534808159,
0.04251980036497116,
-0.11615165323019028,
-0.03220096975564957,
-0.011200337670743465,
0.024405675008893013,
0.016264688223600388,
-0.021709296852350235,
-0.035847995430231094,
-0.01406955998390913,
0.019998133182525635,
-0.023524165153503418,
-0.018684513866901398,
0.008313830941915512,
0.021052487194538116,
0.0337047204375267,
0.005085955839604139,
-0.03999626636505127,
0.005185341462492943,
-0.009281761012971401,
-0.003413683269172907,
0.030628083273768425,
-0.020188262686133385,
-0.000055296804930549115,
0.023783432319760323,
0.08904960006475449,
0.014475745148956776,
-0.01816597953438759,
-0.0434531606733799,
-0.024561233818531036,
-0.02615140564739704,
-0.01736225187778473,
-0.04048023372888565,
-0.023748863488435745,
0.04331488534808159,
0.03188985213637352,
0.04974471032619476,
0.025563733652234077,
0.037369027733802795,
-0.014207836240530014,
0.0018353948835283518,
-0.031423170119524,
-0.05728073790669441,
0.0014097647508606315,
-0.008793475106358528,
-0.011450962163507938,
0.07784926146268845,
-0.08455563336610794,
-0.011304044164717197,
0.02466494031250477,
0.022366106510162354,
0.0011116075329482555,
-0.03135403245687485,
-0.063606858253479,
0.03892463073134422,
-0.010906501673161983,
-0.010543528012931347,
0.04341859370470047,
0.030921919271349907,
0.033998556435108185,
-0.0350356251001358,
-0.04151730239391327,
-0.0058810412883758545,
-0.021484598517417908,
-0.02485506981611252,
-0.011571954004466534,
0.044386524707078934,
-0.008728657849133015,
0.01584986038506031,
0.052648499608039856,
0.02756873331964016,
0.009229907765984535,
-0.033860281109809875,
-0.0914694219827652,
-0.08621494472026825,
0.006498961243778467,
0.011183053255081177,
0.01228925958275795,
-0.06754771620035172,
-0.0571424625813961,
-0.05147315561771393,
0.0003200327919330448,
0.0575227215886116,
0.01599677838385105,
0.01623011939227581,
0.01688692905008793,
-0.02895149029791355,
0.04853479564189911,
0.0423123873770237,
0.0809604674577713,
-0.03524303808808327,
0.030386101454496384,
-0.0017079218523576856,
-0.07418495416641235,
-0.026600802317261696,
0.025598302483558655,
0.026911921799182892,
0.028069982305169106,
-0.060288239270448685,
0.024993347004055977,
0.03895919770002365,
-0.03837152570486069,
-0.027499593794345856,
0.019531453028321266,
-0.009791653603315353,
-0.01922033168375492,
0.015314041636884212,
0.0030161403119564056,
-0.02438838966190815,
-0.015054774470627308,
-0.010241049341857433,
0.0018137892475351691,
0.041206181049346924,
0.010638592764735222,
0.002218893961980939,
-0.013084345497190952,
0.017664730548858643,
-0.019203048199415207,
0.03377385810017586,
0.056831344962120056,
-0.009938571602106094,
0.022711796686053276,
-0.011329971253871918,
0.03477635607123375,
-0.04352229833602905,
0.030852781608700752,
0.05064350366592407,
-0.007440965157002211,
0.03093920461833477,
0.025494595989584923,
-0.02737860381603241,
-0.02922804094851017,
0.07570598274469376,
-0.02425011433660984,
-0.032391101121902466,
-0.0036880741827189922,
-0.03379114344716072,
-0.02770700864493847,
0.007000211160629988,
-0.027534162625670433,
-0.007250836119055748,
0.01916847936809063,
-0.024371104314923286,
-0.02310933917760849,
0.008469391614198685,
-0.035986270755529404,
0.007302689366042614,
-0.026462526991963387,
0.00935089960694313,
-0.045527298003435135,
0.03757644072175026,
0.020101841539144516,
-0.004636559635400772,
-0.01821783371269703,
0.08393339812755585,
0.02618597447872162,
0.05271763727068901,
0.00965337734669447,
-0.0014475744683295488,
0.0703132301568985,
0.02210683934390545,
-0.04355686902999878,
0.04732488468289375,
-0.04964100196957588,
0.02903791330754757,
0.07294046878814697,
-0.003936538472771645,
0.062466081231832504,
-0.008875575847923756,
-0.013309042900800705,
-0.0319935567677021,
-0.07027865946292877,
0.01651531271636486,
0.011373182758688927,
0.0274304561316967,
-0.0009155368898063898,
0.03118118643760681,
0.020395677536725998,
0.01113120000809431,
0.02259080484509468,
0.046011265367269516,
0.022504381835460663,
-0.008953356184065342,
-0.04452480003237724,
-0.01707705855369568,
-0.023074770346283913,
0.02044752985239029,
-0.00019688093743752688,
0.0057514081709086895,
0.0030701542273163795,
0.07701960951089859,
-0.06982926279306412,
-0.011658376082777977,
-0.024751363322138786,
0.0020600929856300354,
-0.011018850840628147,
-0.03695420175790787,
0.04981384798884392,
0.05178427696228027,
-0.020395677536725998,
0.06229323521256447,
0.031112048774957657
] |
17,763 | imodels.rule_set.rule_fit | fit | Fit and estimate linear combination of rule ensemble
| def fit(self, X, y=None, feature_names=None):
"""Fit and estimate linear combination of rule ensemble
"""
X, y, feature_names = check_fit_arguments(self, X, y, feature_names)
self.n_features_ = X.shape[1]
self.feature_dict_ = get_feature_dict(X.shape[1], feature_names)
self.feature_placeholders = np.array(list(self.feature_dict_.keys()))
self.feature_names = np.array(list(self.feature_dict_.values()))
extracted_rules = self._extract_rules(X, y)
self.rules_without_feature_names_, self.coef, self.intercept = self._score_rules(
X, y, extracted_rules)
self.rules_ = [
replace_feature_name(rule, self.feature_dict_) for rule in self.rules_without_feature_names_
]
# count total rule terms, plus nonzero linear terms
self.complexity_ = self._get_complexity()
if self.include_linear:
self.complexity_ += np.sum(
np.array(self.coef[:X.shape[1]]) != 0)
return self
| (self, X, y=None, feature_names=None) | [
-0.006654089316725731,
-0.023621348664164543,
0.019538866356015205,
-0.039969105273485184,
-0.012710959650576115,
-0.003819527570158243,
-0.016196222975850105,
-0.04039696231484413,
0.010812338441610336,
0.008784467354416847,
-0.0057627176865935326,
-0.027454247698187828,
0.00850368570536375,
0.00013210406177677214,
-0.015188973397016525,
-0.00010299521090928465,
-0.033569056540727615,
-0.052662238478660583,
-0.05883052945137024,
0.008967199362814426,
-0.013361661694943905,
-0.027935588732361794,
-0.017435230314731598,
-0.001927591278217733,
0.01550986710935831,
-0.006703115068376064,
0.04132398962974548,
0.0001523688406450674,
-0.02943309210240841,
-0.021553367376327515,
-0.06079154834151268,
0.018790114670991898,
-0.07829808443784714,
-0.01864749565720558,
-0.019307110458612442,
-0.06453531235456467,
0.023585693910717964,
0.001703634043224156,
0.06827907264232635,
-0.0257249865680933,
-0.022979561239480972,
-0.013165559619665146,
0.029236990958452225,
0.028559548780322075,
-0.04414072632789612,
-0.0018406824674457312,
-0.07466129213571548,
0.10682198405265808,
0.003030663589015603,
-0.07302116602659225,
-0.024316618219017982,
-0.07059663534164429,
0.030467083677649498,
-0.019859760999679565,
0.027472075074911118,
0.0401117242872715,
0.049667228013277054,
0.02939743734896183,
0.04346328228712082,
-0.03173283115029335,
0.03542311117053032,
-0.02308652549982071,
-0.03918469697237015,
0.0136647280305624,
-0.04307107999920845,
-0.05408843234181404,
-0.03278464823961258,
0.019574521109461784,
0.060934167355298996,
0.0626099482178688,
0.006703115068376064,
-0.017889829352498055,
0.031233662739396095,
-0.007906466722488403,
0.02267649583518505,
0.016508202999830246,
-0.025172336027026176,
-0.020216308534145355,
0.028220826759934425,
-0.020465893670916557,
-0.03750891983509064,
0.023532211780548096,
-0.04410507157444954,
-0.043285008519887924,
-0.062360361218452454,
-0.03043142892420292,
0.0016913777217268944,
-0.005557702388614416,
0.041288334876298904,
-0.01605360396206379,
-0.01099952682852745,
0.051307354122400284,
-0.004853518679738045,
0.019610175862908363,
0.01674887351691723,
-0.005954362917691469,
-0.029147854074835777,
0.008936000987887383,
0.017898743972182274,
-0.02374614216387272,
-0.009715951047837734,
0.03665320202708244,
-0.0026941709220409393,
0.10318518429994583,
-0.000922012550290674,
-0.03750891983509064,
-0.009065249934792519,
-0.009992276318371296,
0.009243524633347988,
-0.0036835933569818735,
-0.03397908806800842,
0.016953889280557632,
0.02601022459566593,
0.039576902985572815,
-0.07302116602659225,
0.007879725657403469,
-0.061290714889764786,
-0.0183622557669878,
-0.040610894560813904,
-0.009087534621357918,
-0.015144404955208302,
0.028523894026875496,
-0.03800808638334274,
-0.02108985371887684,
0.014475875534117222,
0.012782270088791847,
0.030467083677649498,
-0.004200588911771774,
0.059971485286951065,
-0.12621822953224182,
0.017854174599051476,
0.02704421617090702,
0.018157240003347397,
0.0038640962447971106,
-0.034941770136356354,
-0.047634903341531754,
0.000697498326189816,
-0.020501548424363136,
0.01843356527388096,
-0.008334324695169926,
0.0856429934501648,
0.015465298667550087,
-0.009778346866369247,
-0.008726528845727444,
0.0030997449066489935,
0.028630858287215233,
0.005735976621508598,
-0.004073568619787693,
-0.018210723996162415,
0.004171619191765785,
-0.021161163225769997,
-0.0010657462989911437,
0.008008974604308605,
-0.05640599876642227,
-0.021571194753050804,
0.048312343657016754,
-0.04239363595843315,
-0.022926079109311104,
0.040931787341833115,
-0.034585218876600266,
-0.014591754414141178,
-0.0236926581710577,
-0.0346921868622303,
0.026919424533843994,
0.04403376206755638,
0.05622772499918938,
-0.0018261977238580585,
-0.009591159410774708,
-0.0021638048347085714,
-0.014761114493012428,
-0.0006696429918520153,
-0.07038270682096481,
-0.009974448941648006,
0.043926794081926346,
0.0203945841640234,
0.017265869304537773,
0.017087595537304878,
0.02267649583518505,
0.0071488008834421635,
0.06385786831378937,
0.04898978769779205,
-0.01255051326006651,
-0.04916806146502495,
-0.07687189429998398,
-0.013593417592346668,
0.0035298317670822144,
-0.0027989069931209087,
0.00970703735947609,
-0.022106017917394638,
0.021945569664239883,
-0.0046752444468438625,
-0.0291121993213892,
0.026509393006563187,
0.03135845437645912,
-0.04845496267080307,
0.023229146376252174,
-0.00542845344170928,
0.02203470841050148,
0.02133943699300289,
0.018157240003347397,
-0.02609936334192753,
0.035904452204704285,
0.037580229341983795,
0.035173527896404266,
-0.012078085914254189,
0.048633236438035965,
-0.012265274301171303,
0.010455789975821972,
-0.07212979346513748,
-0.016802355647087097,
0.023300455883145332,
-0.023585693910717964,
-0.059008803218603134,
0.0568695142865181,
0.048312343657016754,
0.05241265520453453,
0.021232472732663155,
-0.03986214101314545,
-0.006814536172896624,
-0.04132398962974548,
0.03273116797208786,
-0.04984550550580025,
0.009087534621357918,
0.012568340636789799,
0.026277637109160423,
-0.05932969972491264,
0.07437605410814285,
-0.00442788889631629,
0.010758856311440468,
-0.033283818513154984,
0.0027966785710304976,
-0.059650592505931854,
0.06510578840970993,
-0.013049681670963764,
0.019521038979291916,
0.0247088223695755,
-0.01468980498611927,
0.04973853752017021,
-0.0333372987806797,
0.026206327602267265,
-0.02540409192442894,
-0.0354587659239769,
-0.024548375979065895,
-0.02499406225979328,
-0.00542845344170928,
0.07608748227357864,
0.05522938817739487,
0.00593207823112607,
0.011373902671039104,
-0.022123845294117928,
-0.04799145087599754,
0.02870216779410839,
-0.013807347044348717,
-0.036581892520189285,
-0.05868791043758392,
-0.08678394556045532,
0.04175185039639473,
-0.028933923691511154,
0.022462565451860428,
-0.020947234705090523,
0.01286249328404665,
0.055265042930841446,
-0.02636677399277687,
0.04446161910891533,
-0.03982648625969887,
0.02342524752020836,
0.00004662291757995263,
0.01576836407184601,
0.019289283081889153,
0.013994535431265831,
0.017185645177960396,
0.0219990536570549,
0.005419539753347635,
0.017453057691454887,
-0.023585693910717964,
0.09034943580627441,
0.016570599749684334,
-0.03162586688995361,
0.05305444076657295,
0.029878778383135796,
0.04542430117726326,
-0.016543857753276825,
-0.010259687900543213,
0.0012791183544322848,
-0.02066199481487274,
0.01674887351691723,
-0.0037103346548974514,
0.017818519845604897,
-0.01120454166084528,
-0.030502738431096077,
0.009858570992946625,
0.00280113541521132,
0.08735442161560059,
0.03381863981485367,
0.05950797349214554,
0.020180653780698776,
0.023514384403824806,
-0.0022908251266926527,
0.049310680478811264,
-0.014413479715585709,
-0.02007368952035904,
0.038614220917224884,
0.022195154801011086,
-0.07134538888931274,
-0.005686951335519552,
-0.09676730632781982,
0.04118137061595917,
-0.009528763592243195,
-0.0026072622276842594,
0.01220287848263979,
0.038899458944797516,
0.07737106084823608,
0.014253033325076103,
-0.04720704257488251,
-0.06439268589019775,
0.002249599201604724,
0.007795045152306557,
-0.00983182992786169,
0.05120038986206055,
0.024138344451785088,
0.01641015149652958,
-0.023960070684552193,
0.011391730047762394,
-0.0573686808347702,
-0.004256299696862698,
0.041930124163627625,
0.04606608673930168,
-0.008454659953713417,
0.011659141629934311,
-0.05743999034166336,
0.020644167438149452,
-0.044212035834789276,
0.02973615936934948,
0.002001129323616624,
-0.036314480006694794,
-0.011088663712143898,
0.05387450382113457,
0.008093655109405518,
0.0011610116343945265,
0.024619685485959053,
-0.02904088981449604,
0.046957459300756454,
-0.06738770008087158,
0.011284765787422657,
-0.01834442839026451,
-0.0170073714107275,
0.013406230136752129,
0.031875450164079666,
0.03750891983509064,
0.01388757023960352,
-0.05316140502691269,
-0.02301521599292755,
0.06528405845165253,
-0.0035186896566301584,
0.02066199481487274,
0.01569705456495285,
-0.046921804547309875,
0.017292609438300133,
0.025974569842219353,
-0.07608748227357864,
-0.007594486698508263,
-0.05886618420481682,
-0.054623257368803024,
0.055978141725063324,
-0.03686713054776192,
-0.030805805698037148,
-0.006132637150585651,
0.04339197278022766,
0.04588781297206879,
-0.06293083727359772,
-0.005504220258444548,
-0.011997862718999386,
-0.050273362547159195,
0.035619210451841354,
-0.017132163047790527,
0.033907778561115265,
0.05440932512283325,
0.017631331458687782,
0.04143095389008522,
-0.007309247739613056,
0.005290290806442499,
0.030591875314712524,
-0.002462414326146245,
-0.02105419896543026,
-0.014948302879929543,
-0.009956621564924717,
-0.007532090414315462,
-0.05177086591720581,
0.07537438720464706,
-0.014511531218886375,
0.09669599682092667,
-0.0012880320427939296,
0.0023554496001452208,
-0.008583908900618553,
-0.06318042427301407,
-0.008392264135181904,
0.04200143367052078,
0.021802950650453568,
-0.08122178912162781,
-0.008846864104270935,
-0.06125506013631821,
0.006284170318394899,
0.00393763417378068,
0.028559548780322075,
-0.03176848590373993,
0.021624676883220673,
-0.0004830120305996388,
0.01600903458893299,
-0.011971121653914452,
0.060292378067970276,
-0.05437367036938667,
0.04036130756139755,
0.009635727852582932,
-0.009626814164221287,
-0.059294044971466064,
0.025172336027026176,
0.04667222127318382,
0.02476230449974537,
0.06375090032815933,
0.042215362191200256,
0.027489902451634407,
-0.0573686808347702,
-0.011543262749910355,
0.011320420540869236,
-0.01841573789715767,
-0.001567699946463108,
-0.06556929647922516,
-0.06310911476612091,
-0.0035699435975402594,
-0.05476587638258934,
-0.10061803460121155,
-0.03668885678052902,
-0.06571192294359207,
-0.043570246547460556,
-0.041930124163627625,
-0.05244830995798111,
-0.02779296785593033,
0.01803244836628437,
-0.017230214551091194,
-0.03462087735533714,
0.0056780376471579075,
-0.059008803218603134,
0.047920141369104385,
0.04610174149274826,
-0.07052532583475113,
-0.04881151393055916,
0.008632934652268887,
-0.018522704020142555,
-0.11430950462818146,
-0.006351022981107235,
0.04043261706829071,
0.025831950828433037,
0.0024557290598750114,
0.030966252088546753,
-0.037580229341983795,
0.02675897814333439,
0.0607558935880661,
-0.05451628938317299,
0.04371286556124687,
0.02401355281472206,
0.02410268969833851,
0.009368316270411015,
0.05451628938317299,
0.023621348664164543,
-0.08542905747890472,
-0.03583314269781113,
0.00935940258204937,
0.0156524870544672,
0.010901475325226784,
-0.03271333873271942,
0.003451836761087179,
-0.018487049266695976,
0.009457453154027462,
-0.05034467205405235,
-0.031554557383060455,
0.07893987745046616,
0.03538745641708374,
0.04175185039639473,
0.03907773271203041,
-0.035868797451257706,
0.020572857931256294,
-0.04335631802678108,
0.0354587659239769,
-0.01838008314371109,
0.03378298506140709,
0.022872596979141235,
-0.00850368570536375,
-0.03611838072538376,
-0.023550039157271385,
0.06086285784840584,
-0.003360471222549677,
-0.00800006091594696,
0.03205372393131256,
-0.007906466722488403,
-0.0036613091360777617,
0.010812338441610336,
0.04086047783493996,
-0.00534822978079319,
-0.03638579323887825,
-0.010125982575118542,
-0.016829097643494606,
-0.02340742014348507,
-0.045566920191049576,
0.027151180431246758,
0.01355776283890009,
0.01604468934237957,
-0.025867605581879616,
0.014065844938158989,
-0.03510221466422081,
0.032214172184467316,
-0.06186119467020035,
-0.059008803218603134,
0.062003813683986664,
0.01871880516409874,
0.036902785301208496,
0.03583314269781113,
0.026170672848820686,
0.07059663534164429,
-0.017515452578663826,
-0.007621227763593197,
0.008815665729343891,
0.03301640599966049,
0.05219872668385506,
-0.048241034150123596,
0.028666513040661812,
0.06186119467020035,
0.0071042319759726524,
-0.016891492530703545,
0.047884486615657806,
-0.02604587934911251,
0.06289518624544144,
-0.007554375100880861,
-0.0043432083912193775,
0.05558593571186066,
-0.0027053130324929953,
0.015973379835486412,
0.006301997695118189,
-0.07330640405416489,
-0.011659141629934311,
0.0086953304708004,
-0.006235145032405853,
0.018897078931331635,
0.024156171828508377,
0.001260176650248468,
-0.015153318643569946,
-0.02242691069841385,
0.026473738253116608,
0.008098111487925053,
-0.008280842565000057,
-0.011159973219037056,
-0.014351083897054195,
0.029950087890028954,
-0.013629072345793247,
0.03365819528698921,
0.06449965387582779,
-0.035904452204704285,
-0.032891616225242615,
0.021535539999604225,
-0.021250300109386444,
0.023460902273654938,
-0.03205372393131256,
-0.007001724559813738,
0.01666864939033985,
-0.02267649583518505,
0.03485263139009476,
-0.015536608174443245,
-0.004982767626643181,
0.002021185355260968,
-0.04920371621847153,
-0.018914906308054924,
0.003830669680610299,
0.018139412626624107,
-0.009172214195132256,
0.023175664246082306,
-0.04207274317741394,
0.05615641549229622,
0.019307110458612442,
-0.05676254630088806,
-0.07501783967018127,
0.04036130756139755,
-0.022284291684627533,
-0.02934395521879196,
-0.055621590465307236,
-0.057333026081323624,
0.053910158574581146,
0.026152845472097397,
-0.04164488613605499,
0.04114571586251259,
-0.031518902629613876,
-0.024459239095449448,
-0.02936178259551525,
-0.006979440338909626,
0.002388876164332032,
-0.04242929071187973,
-0.016650822013616562,
0.04977419227361679,
-0.06942002475261688,
-0.043570246547460556,
0.018157240003347397,
-0.02265866845846176,
-0.034870460629463196,
0.008904802612960339,
0.008784467354416847,
0.0012958315201103687,
0.03208937868475914,
0.019824106246232986,
-0.06350132077932358,
0.001971045508980751,
0.02108985371887684,
-0.046886149793863297,
0.01050927210599184,
-0.022605186328291893,
0.04182315990328789,
-0.033533401787281036,
-0.029486574232578278,
0.01434217020869255,
0.01606251671910286,
0.00983182992786169,
0.027454247698187828,
-0.027525557205080986,
0.04934633523225784,
-0.024530548602342606,
-0.004171619191765785,
0.03264202922582626,
-0.0036501670256257057,
0.034175191074609756,
-0.018843596801161766,
-0.08008082956075668,
0.001522017177194357,
0.021892087534070015,
-0.036260999739170074,
0.0038017001934349537,
-0.010660804808139801,
0.011053008958697319,
0.08115047961473465,
0.011685882695019245,
0.034531738609075546,
0.02176729589700699,
-0.008022344671189785,
-0.08414548635482788,
-0.09598290175199509,
0.024548375979065895,
0.04453292861580849,
-0.006328738760203123,
-0.03800808638334274,
0.00460839131847024,
-0.013646900653839111,
-0.015028526075184345,
0.10682198405265808,
-0.017274782061576843,
0.016829097643494606,
-0.02543974667787552,
-0.04064654931426048,
0.037223681807518005,
0.07844070345163345,
0.029647022485733032,
-0.013923225924372673,
0.0011587832123041153,
0.04606608673930168,
-0.04317804425954819,
-0.012915975414216518,
0.006310911383479834,
0.09391491860151291,
0.0007203397108241916,
-0.01403019018471241,
0.028167344629764557,
0.013147732242941856,
-0.038935113698244095,
-0.024922752752900124,
0.019200146198272705,
-0.06688853353261948,
0.006435703486204147,
-0.0070685772225260735,
0.03474566712975502,
-0.004938199184834957,
-0.003360471222549677,
-0.03886380419135094,
-0.06909912824630737,
0.01875445991754532,
0.026455910876393318,
0.035583555698394775,
0.03405039757490158,
0.010393393225967884,
-0.008374436758458614,
0.03971952199935913,
0.015643572434782982,
-0.01900404319167137,
0.014547185972332954,
0.0016078116605058312,
-0.029843123629689217,
-0.0043476652354002,
0.0018941648304462433,
0.02133943699300289,
-0.03034229204058647,
0.0072780498303473,
0.02403138019144535,
-0.045638229697942734,
-0.05615641549229622,
0.04299977049231529,
-0.00852597039192915,
0.02668766863644123,
0.0394342839717865,
-0.025118853896856308,
0.025653677061200142,
-0.0030975164845585823,
0.03381863981485367,
-0.059614937752485275,
0.030484911054372787,
0.004037913866341114,
-0.03077014908194542,
-0.004176076035946608,
-0.012345497496426105,
-0.004635132849216461,
-0.013914311304688454,
0.04852627217769623,
-0.0018752231262624264,
0.025207990780472755,
-0.007532090414315462,
-0.0012423492735251784,
0.03073449432849884,
0.08585692197084427,
-0.019449729472398758,
0.04200143367052078,
-0.034014742821455,
0.021945569664239883,
0.011685882695019245,
0.05084383860230446,
-0.015287023968994617,
0.003028435166925192,
-0.03886380419135094,
0.05041598156094551,
0.02770383097231388,
-0.00726022245362401,
0.06382220983505249,
0.006493642460554838,
-0.00902513787150383,
0.00624851556494832,
-0.01370038278400898,
0.05768957361578941,
0.022872596979141235,
-0.000830089848022908,
-0.010518185794353485,
0.03349774703383446,
0.000358219986082986,
0.01873663254082203,
0.04613739624619484,
-0.03711671754717827,
0.050665564835071564,
0.012461376376450062,
-0.0006997267482802272,
-0.038222018629312515,
0.005120930261909962,
0.051592592149972916,
0.04250060021877289,
0.042215362191200256,
-0.03069883957505226,
-0.002060182858258486,
-0.04314238950610161,
-0.009493107907474041,
-0.03868553042411804,
-0.004648503381758928,
-0.026509393006563187,
0.012318756431341171,
0.03538745641708374,
-0.04296411573886871,
-0.010901475325226784,
0.07958166301250458,
0.046957459300756454
] |
17,777 | imodels.rule_set.rule_fit | RuleFitRegressor | null | class RuleFitRegressor(RuleFit, RegressorMixin):
...
| (n_estimators=100, tree_size=4, sample_fract='default', max_rules=30, memory_par=0.01, tree_generator=None, lin_trim_quantile=0.025, lin_standardise=True, exp_rand_tree_size=True, include_linear=True, alpha=None, cv=True, random_state=None) | [
-0.001437411643564701,
-0.02171502634882927,
0.018128089606761932,
0.026550354436039925,
-0.052924878895282745,
-0.030612030997872353,
-0.08010822534561157,
-0.02626902610063553,
0.04511801898479462,
0.015024688094854355,
0.06649896502494812,
-0.007507948204874992,
0.07173870503902435,
0.03759248927235603,
-0.03316156938672066,
0.007587071508169174,
0.010338813997805119,
0.004197945352643728,
-0.00928383320569992,
-0.01182457897812128,
-0.0380144827067852,
-0.007490364834666252,
-0.03194834291934967,
0.008897006511688232,
0.001529722474515438,
0.07029689848423004,
0.007793671917170286,
0.00047556564095430076,
0.0032792326528578997,
0.011886118911206722,
-0.09487795829772949,
-0.025688787922263145,
-0.00249019474722445,
0.024686554446816444,
0.006422196980565786,
-0.04353554919362068,
-0.023684322834014893,
0.06663963198661804,
-0.08587545156478882,
0.0718442052602768,
-0.0286954827606678,
-0.002479205373674631,
0.002841855166479945,
-0.009635493159294128,
0.013354301452636719,
-0.008624469861388206,
-0.0488104522228241,
0.0398431159555912,
0.010250899009406567,
-0.049232445657253265,
-0.04156625270843506,
-0.0185500830411911,
0.03186042606830597,
0.04434436932206154,
-0.02950430102646351,
0.07321567833423615,
0.04546968266367912,
0.09586260467767715,
0.01844458468258381,
-0.0350957028567791,
0.01662474125623703,
-0.019288569688796997,
0.0003505614004097879,
-0.04670049250125885,
0.0040902490727603436,
-0.03323190286755562,
-0.08095220476388931,
-0.0049803894944489,
0.022084269672632217,
0.019270986318588257,
-0.0003002849407494068,
-0.0019418244482949376,
0.0025759118143469095,
0.02354365959763527,
0.0435003824532032,
0.001145093934610486,
0.028836147859692574,
-0.05819978564977646,
0.04128492251038551,
-0.015147768892347813,
0.02962738275527954,
0.010514643974602222,
-0.015306015498936176,
0.008127748966217041,
-0.024598639458417892,
-0.09937921166419983,
0.02681409940123558,
-0.052924878895282745,
0.017204981297254562,
-0.0010797070572152734,
-0.06368568539619446,
0.020238051190972328,
0.019112739711999893,
0.019640229642391205,
0.010998176410794258,
0.03921012580394745,
0.0037913378328084946,
-0.009222292341291904,
-0.03959695249795914,
-0.06994523853063583,
-0.032159335911273956,
0.07539597153663635,
-0.049724772572517395,
0.0599580854177475,
0.001245097373612225,
0.0028946041129529476,
-0.023895319551229477,
-0.02255900949239731,
-0.015798339620232582,
0.0009654174791648984,
-0.04114425927400589,
0.07638062536716461,
-0.033495645970106125,
0.029381221160292625,
-0.034937452524900436,
-0.01842700131237507,
-0.0756773054599762,
-0.0032704409677535295,
-0.03184284269809723,
0.008686009794473648,
-0.006694733630865812,
0.07117605209350586,
-0.04170691594481468,
0.0398431159555912,
0.01898965798318386,
0.030717529356479645,
0.048282962292432785,
0.07462232559919357,
0.02118753455579281,
-0.0705430656671524,
-0.01575438305735588,
0.006690337788313627,
-0.03567593917250633,
-0.005899101961404085,
0.010479478165507317,
0.03502536937594414,
0.06519782543182373,
-0.01319605391472578,
-0.01110367476940155,
-0.006839793641120195,
0.07539597153663635,
0.0824291780591011,
0.04849395900964737,
-0.016897279769182205,
0.020114971324801445,
0.02913505770266056,
-0.03885846585035324,
0.02076554298400879,
-0.03411105275154114,
-0.04156625270843506,
0.013275177218019962,
-0.010338813997805119,
0.04817746579647064,
-0.01671265810728073,
0.03462095931172371,
0.016510453075170517,
-0.04202340915799141,
0.004848517011851072,
0.01484006643295288,
-0.018145672976970673,
-0.027570169419050217,
-0.0104179373010993,
-0.006224387791007757,
-0.024844802916049957,
0.007683778181672096,
0.006343073211610317,
-0.028502069413661957,
-0.07680261880159378,
-0.0020956757944077253,
0.04437953233718872,
0.0017198388231918216,
-0.10634208470582962,
-0.0034374797251075506,
0.01572800800204277,
-0.016255497932434082,
0.02498546615242958,
0.0555623322725296,
0.04248056933283806,
-0.020994121208786964,
0.09389331191778183,
0.08292150497436523,
-0.030823027715086937,
-0.04346521571278572,
0.0014681818429380655,
-0.013635629788041115,
0.0016791780944913626,
-0.026585521176457405,
0.019763311371207237,
-0.040968429297208786,
0.015147768892347813,
0.021855689585208893,
0.003255055984482169,
-0.018620414659380913,
-0.056089822202920914,
-0.029310889542102814,
-0.054859012365341187,
0.01018935814499855,
0.03224725276231766,
-0.01621154136955738,
0.036291345953941345,
-0.052397388964891434,
0.04269156605005264,
0.04110909253358841,
0.01948198303580284,
-0.041882745921611786,
0.040968429297208786,
-0.004936432000249624,
0.023402994498610497,
-0.04617300257086754,
-0.04546968266367912,
0.028519652783870697,
0.017811596393585205,
-0.027007512748241425,
0.05222155898809433,
0.049654439091682434,
-0.0027693251613527536,
0.015965379774570465,
-0.010954218916594982,
0.01612362638115883,
0.01761818304657936,
0.02487996779382229,
-0.04793130233883858,
-0.006870563607662916,
-0.004364983644336462,
0.02041388303041458,
0.00036732020089402795,
0.05633598566055298,
-0.031649429351091385,
0.03685400262475014,
-0.051518239080905914,
-0.0027253676671534777,
-0.06284169852733612,
0.059395428746938705,
0.0032704409677535295,
-0.008870631456375122,
0.03249341621994972,
-0.03099885769188404,
0.01181578729301691,
-0.01705552637577057,
0.03470887616276741,
-0.03091094270348549,
0.010268481448292732,
-0.040440939366817474,
-0.00875194650143385,
0.006044161971658468,
0.04385204240679741,
0.03738149255514145,
0.04339488595724106,
-0.013090555556118488,
-0.036748506128787994,
0.015842298045754433,
0.010154192335903645,
-0.03198350593447685,
0.053909529000520706,
-0.030154872685670853,
-0.02116995118558407,
0.00008839587098918855,
-0.05236222222447395,
0.05928993225097656,
-0.00857172068208456,
-0.01664232462644577,
0.04339488595724106,
-0.01365321222692728,
0.03314398601651192,
-0.03843647241592407,
-0.003547373693436384,
-0.022295264527201653,
0.023877736181020737,
-0.0034528649412095547,
0.028080077841877937,
0.09944954514503479,
0.030418619513511658,
-0.020150136202573776,
0.03289782255887985,
-0.017372019588947296,
0.05310070887207985,
-0.0108750956133008,
0.02546020783483982,
0.05419085547327995,
-0.023666739463806152,
0.05876244232058525,
-0.018216004595160484,
-0.024159064516425133,
-0.003136370563879609,
0.0009505818597972393,
-0.022805172950029373,
0.004235309083014727,
0.07117605209350586,
-0.03553527593612671,
0.018321502953767776,
-0.006668359041213989,
-0.0025627247523516417,
0.05179956555366516,
0.03871780261397362,
0.0573909655213356,
-0.007595863193273544,
0.0235788244754076,
0.0028308655600994825,
0.047403812408447266,
-0.015138977207243443,
0.01202678307890892,
0.0012791644548997283,
0.0012242174707353115,
-0.005459526553750038,
-0.06101306900382042,
-0.02959221601486206,
0.04019477590918541,
-0.006154055707156658,
-0.018128089606761932,
0.028924062848091125,
0.04631366580724716,
0.06857376545667648,
-0.030682364478707314,
0.0099607789888978,
-0.031596679240465164,
-0.02213701792061329,
0.029029561206698418,
-0.014769733883440495,
0.04452019929885864,
0.05046325922012329,
-0.0471576489508152,
0.006008995696902275,
0.041355255991220474,
-0.07279368489980698,
0.00972340814769268,
0.031121939420700073,
0.016422538086771965,
0.016818154603242874,
-0.034445129334926605,
0.00020921042596455663,
-0.031069191172719002,
-0.001836326322518289,
0.0683627650141716,
-0.0143477413803339,
-0.09283832460641861,
0.017354438081383705,
0.05092041566967964,
0.016404954716563225,
0.0069452915340662,
0.006189221981912851,
0.011639957316219807,
0.02085345797240734,
-0.022418346256017685,
0.041003596037626266,
-0.03660783916711807,
-0.020519379526376724,
-0.05028742551803589,
0.02315683290362358,
0.04859945923089981,
0.020185302942991257,
-0.020044639706611633,
-0.03550010919570923,
0.029416386038064957,
0.026040447875857353,
0.02452830784022808,
-0.023912902921438217,
-0.039139796048402786,
0.010461894795298576,
0.03977278247475624,
-0.099801205098629,
-0.032124172896146774,
-0.013389467261731625,
-0.05253805220127106,
0.043183889240026474,
0.025073381140828133,
-0.01573679968714714,
-0.005543046165257692,
0.012149864807724953,
0.04680598899722099,
-0.022471094503998756,
-0.012932308949530125,
-0.018286338075995445,
-0.026515189558267593,
-0.0009780552936717868,
-0.015385139733552933,
-0.0022264495491981506,
0.04986543580889702,
-0.007534322794526815,
0.011446543969213963,
0.010013528168201447,
0.001256086747162044,
0.008264018222689629,
-0.04796646907925606,
-0.023772237822413445,
0.02131061628460884,
-0.014479613862931728,
-0.04304322600364685,
0.04585650563240051,
0.06329885870218277,
-0.02308650128543377,
0.06519782543182373,
-0.03280990943312645,
-0.014444448053836823,
-0.03878813609480858,
-0.1239250972867012,
-0.009758573956787586,
0.02904714271426201,
0.018673162907361984,
-0.07708394527435303,
-0.024809636175632477,
-0.01566646806895733,
-0.04170691594481468,
0.041847579181194305,
0.010593767277896404,
0.06537365913391113,
0.02593494951725006,
0.01610604301095009,
0.02071279287338257,
0.0273240078240633,
0.004510043654590845,
-0.013389467261731625,
-0.0017154430970549583,
-0.03245824947953224,
-0.017204981297254562,
-0.05025226250290871,
-0.0014802701771259308,
0.024317311123013496,
-0.003721005981788039,
0.012914725579321384,
-0.004967201966792345,
0.03314398601651192,
0.0025627247523516417,
-0.02913505770266056,
0.029363637790083885,
0.02180294133722782,
0.023912902921438217,
-0.013152096420526505,
-0.013257594779133797,
-0.0176357664167881,
0.007376075256615877,
-0.05186989903450012,
-0.039526622742414474,
-0.09002504497766495,
-0.02262934297323227,
-0.00693649984896183,
-0.04205857589840889,
-0.028361406177282333,
0.026954764500260353,
-0.052502889186143875,
0.009178334847092628,
0.02452830784022808,
-0.0011736663291230798,
0.06347469240427017,
-0.014040038920938969,
-0.013046598061919212,
-0.02727125957608223,
0.021099619567394257,
-0.021521613001823425,
-0.10493544489145279,
-0.05549199879169464,
0.043746545910835266,
0.01902482472360134,
0.0407574325799942,
0.07356733828783035,
-0.015429097227752209,
-0.03506053611636162,
0.0001791269751265645,
-0.07729493826627731,
0.039139796048402786,
-0.0305241160094738,
0.0018022592412307858,
0.0282383244484663,
-0.01624670810997486,
0.0006621104548685253,
-0.04385204240679741,
0.014321367256343365,
0.02867789939045906,
-0.005639752373099327,
-0.0005288641550578177,
-0.00927504152059555,
0.031157106161117554,
-0.013530131429433823,
-0.011006968095898628,
-0.07159804552793503,
-0.05925476551055908,
0.09565161168575287,
0.029451552778482437,
0.030823027715086937,
0.0004915002500638366,
-0.007661799434572458,
0.030858194455504417,
-0.060344912111759186,
-0.006294719874858856,
0.047860972583293915,
0.023227164521813393,
0.0006252960301935673,
-0.051096245646476746,
-0.040018945932388306,
-0.0639670118689537,
0.07469265162944794,
-0.020202886313199997,
0.02498546615242958,
-0.006927708629518747,
0.0572151355445385,
-0.02911747619509697,
0.028924062848091125,
0.039069462567567825,
0.009679450653493404,
0.007231015712022781,
-0.0359221026301384,
0.0026726184878498316,
-0.01846216805279255,
-0.03467370942234993,
-0.016343414783477783,
0.03379455953836441,
-0.017794013023376465,
-0.033548396080732346,
0.025161296129226685,
-0.03272199258208275,
0.016009336337447166,
-0.022857921198010445,
0.027148177847266197,
0.00970582477748394,
0.04849395900964737,
0.032634079456329346,
-0.041320089250802994,
-0.02273484133183956,
0.028080077841877937,
-0.011604790575802326,
0.016510453075170517,
0.034533046185970306,
0.039526622742414474,
0.06572531908750534,
-0.04353554919362068,
0.05672281235456467,
0.022295264527201653,
0.023719489574432373,
0.009195917285978794,
0.04406303912401199,
0.017459934577345848,
0.057953622192144394,
-0.017794013023376465,
-0.015341182239353657,
0.05693380907177925,
0.014312575571238995,
0.04437953233718872,
-0.03970245271921158,
-0.03868263587355614,
-0.04233990237116814,
-0.008211269043385983,
-0.016923652961850166,
0.02815040946006775,
0.057039305567741394,
-0.01754785142838955,
0.023860152810811996,
0.015859881415963173,
0.002855042228475213,
-0.005868331994861364,
-0.024756887927651405,
-0.009116793982684612,
-0.039983779191970825,
-0.004659499507397413,
-0.0341813825070858,
0.034445129334926605,
0.02551295794546604,
-0.0030308724381029606,
-0.02222493290901184,
0.049724772572517395,
-0.001000583521090448,
0.016818154603242874,
-0.04156625270843506,
-0.02405356615781784,
0.05911410227417946,
-0.013618046417832375,
-0.04434436932206154,
-0.001814347575418651,
-0.008773925714194775,
0.06199771538376808,
-0.10458378493785858,
-0.024651389569044113,
-0.026954764500260353,
0.02255900949239731,
0.007046394050121307,
0.02217218466103077,
-0.029310889542102814,
0.023262331262230873,
0.021627109497785568,
-0.034849539399147034,
-0.0784202516078949,
-0.030225206166505814,
-0.014462031424045563,
-0.008189289830625057,
-0.05401502549648285,
-0.04895111918449402,
0.006224387791007757,
-0.02500304952263832,
-0.006989249028265476,
0.051553405821323395,
-0.057988788932561874,
-0.02540745958685875,
-0.003894638270139694,
0.06593631207942963,
-0.010303647257387638,
-0.04012444242835045,
0.02301616780459881,
-0.01575438305735588,
-0.08186652511358261,
-0.06052074208855629,
-0.00902887899428606,
-0.00555623322725296,
-0.02271725796163082,
0.03275715932250023,
0.02081829123198986,
-0.030805444344878197,
0.02134578302502632,
-0.019517147913575172,
-0.03836614266037941,
0.0022066684905439615,
-0.017767637968063354,
-0.05559749901294708,
-0.03889363259077072,
0.013697169721126556,
0.03013729117810726,
-0.018796244636178017,
0.03414621949195862,
-0.025178879499435425,
-0.07954556494951248,
0.0029935084749013186,
0.02440522611141205,
-0.002841855166479945,
0.026515189558267593,
-0.019183071330189705,
-0.008061813190579414,
0.055773328989744186,
-0.018339086323976517,
0.042269572615623474,
0.031174687668681145,
-0.08214785158634186,
-0.01805775798857212,
-0.049619272351264954,
0.006962874438613653,
0.006756274029612541,
0.035412196069955826,
-0.05419085547327995,
0.03871780261397362,
-0.010910261422395706,
0.014154328033328056,
0.0424102358520031,
0.007701361086219549,
-0.07363767176866531,
-0.052045729011297226,
0.014092788100242615,
0.03177250921726227,
-0.026919597759842873,
-0.03432204946875572,
-0.05514033883810043,
-0.03847163915634155,
0.0015912629896774888,
0.05405019223690033,
-0.04012444242835045,
-0.005182594060897827,
0.06811660528182983,
-0.04026510939002037,
0.0460675023496151,
0.05672281235456467,
0.03850680589675903,
0.03184284269809723,
-0.032669246196746826,
0.06502199172973633,
-0.02735917456448078,
-0.046946655958890915,
0.032124172896146774,
0.06284169852733612,
0.0245810579508543,
0.005657335743308067,
-0.0022319441195577383,
-0.03611551597714424,
-0.018725913017988205,
-0.02087104134261608,
0.0006582642090506852,
-0.04909178242087364,
0.02551295794546604,
-0.06421317905187607,
-0.005178198218345642,
0.0026572332717478275,
0.004518835339695215,
-0.018673162907361984,
-0.06716712564229965,
0.02349090948700905,
-0.005239739082753658,
0.007987085729837418,
0.0017495101783424616,
-0.02589978277683258,
0.018725913017988205,
0.03987828269600868,
0.025055797770619392,
-0.017248939722776413,
0.02087104134261608,
-0.02544262446463108,
-0.0044594923965632915,
0.02259417623281479,
0.004096842836588621,
-0.004197945352643728,
-0.036748506128787994,
0.032634079456329346,
-0.034937452524900436,
-0.09987153112888336,
-0.05035775899887085,
0.016853321343660355,
-0.05654698237776756,
0.01671265810728073,
-0.014646653085947037,
-0.0176357664167881,
0.02303375117480755,
0.005371611565351486,
0.03595726937055588,
-0.03660783916711807,
-0.021152369678020477,
0.02952188439667225,
-0.06892542541027069,
0.013345509767532349,
0.024334894493222237,
0.0341813825070858,
-0.04940827563405037,
0.013820251449942589,
-0.016422538086771965,
0.04863462224602699,
0.014497197233140469,
-0.02034354954957962,
0.002914384938776493,
0.02816799283027649,
-0.013837833888828754,
0.06045041233301163,
0.013125722296535969,
0.026075612753629684,
-0.023385411128401756,
0.0185500830411911,
-0.047368645668029785,
0.02449314296245575,
-0.01345100812613964,
0.061224061995744705,
0.00330340932123363,
-0.056124988943338394,
0.017266523092985153,
0.0030308724381029606,
0.024334894493222237,
-0.05320620909333229,
-0.01898965798318386,
0.01204436644911766,
0.024317311123013496,
0.038119979202747345,
-0.051518239080905914,
-0.0018572061089798808,
-0.04406303912401199,
0.0341813825070858,
0.02173260785639286,
-0.0004662246792577207,
0.05841078236699104,
0.025548122823238373,
-0.02827349118888378,
0.018585247918963432,
0.00043078389717265964,
0.024370061233639717,
0.0185500830411911,
0.0378386527299881,
0.0008950854535214603,
0.0268668495118618,
-0.02087104134261608,
-0.010760806500911713,
0.01017177477478981,
0.005824374035000801,
-0.03699466586112976,
-0.0016780791338533163,
-0.007138704881072044,
0.01846216805279255,
-0.013125722296535969,
0.04670049250125885,
0.0042484961450099945
] |
17,815 | imodels.rule_set.rule_set | RuleSet | null | class RuleSet:
def _extract_rules(self, X, y):
pass
def _score_rules(self, X, y, rules):
pass
def _prune_rules(self, rules):
pass
def _eval_weighted_rule_sum(self, X) -> np.ndarray:
check_is_fitted(self, ['rules_without_feature_names_', 'n_features_', 'feature_placeholders'])
X = check_array(X)
if X.shape[1] != self.n_features_:
raise ValueError("X.shape[1] = %d should be equal to %d, the number of features at training time."
" Please reshape your data."
% (X.shape[1], self.n_features_))
df = pd.DataFrame(X, columns=self.feature_placeholders)
selected_rules = self.rules_without_feature_names_
scores = np.zeros(X.shape[0])
for r in selected_rules:
features_r_uses = list(map(lambda x: x[0], r.agg_dict.keys()))
scores[df[features_r_uses].query(str(r)).index.values] += r.args[0]
return scores
def _get_complexity(self):
check_is_fitted(self, ['rules_without_feature_names_'])
return sum([len(rule.agg_dict) for rule in self.rules_without_feature_names_])
| () | [
-0.02273561991751194,
-0.01771453581750393,
-0.018903978168964386,
0.003152932971715927,
-0.0032505400013178587,
-0.026403827592730522,
-0.0387885682284832,
-0.04652448743581772,
0.016152823343873024,
0.007132120430469513,
-0.022263474762439728,
0.058291807770729065,
0.026803335174918175,
0.030852891504764557,
-0.042928919196128845,
-0.005061944480985403,
-0.008811868727207184,
0.03375840187072754,
0.009370272047817707,
0.00441274419426918,
-0.016688525676727295,
-0.0193942841142416,
0.007322794757783413,
0.049611594527959824,
0.000352122908225283,
0.0027488854248076677,
0.03363128378987312,
-0.022608503699302673,
-0.027584191411733627,
-0.009742540307343006,
-0.057601746171712875,
0.012475536204874516,
-0.042311497032642365,
-0.012057868763804436,
-0.0327233150601387,
-0.08193539828062057,
0.018468152731657028,
0.0341942273080349,
-0.0010526800760999322,
0.012221303768455982,
-0.03857065364718437,
-0.01833195611834526,
0.014209763146936893,
-0.004287898074835539,
-0.03252355754375458,
0.000765533943194896,
-0.026131436228752136,
0.06795263290405273,
-0.015562641434371471,
-0.08614838868379593,
-0.04060450941324234,
-0.006451141554862261,
0.0319242961704731,
0.06054357811808586,
0.02137366309762001,
0.039587583392858505,
-0.02006618306040764,
-0.001330179045908153,
0.07419947534799576,
-0.07772240787744522,
0.02371622994542122,
0.01709711365401745,
0.004744153935462236,
-0.022572185844182968,
-0.006324025336652994,
-0.05720223858952522,
-0.10045802593231201,
0.007104881573468447,
0.032741472125053406,
0.03019915148615837,
-0.00901162251830101,
-0.0025831805542111397,
0.09065192937850952,
-0.027874741703271866,
-0.0051482017152011395,
-0.00018982290930580348,
0.015399206429719925,
-0.07241985201835632,
0.07060390710830688,
-0.04525332897901535,
0.005189060233533382,
0.034557417035102844,
0.022572185844182968,
-0.04583442956209183,
0.013855653814971447,
-0.03181534260511398,
0.07096709311008453,
0.012566333636641502,
0.023153288289904594,
-0.07169347256422043,
0.012530014850199223,
0.0365004763007164,
0.02731180004775524,
0.0017864350229501724,
0.02304433099925518,
0.05269869789481163,
-0.06940538436174393,
-0.04271100461483002,
-0.03306834399700165,
-0.047723010182380676,
0.012539094313979149,
0.05008373782038689,
-0.020974155515432358,
0.09246787428855896,
0.014509393833577633,
0.0010214685462415218,
0.009479228407144547,
-0.035992011427879333,
-0.041948311030864716,
0.015471844002604485,
-0.06599140912294388,
0.04616130143404007,
-0.006814330350607634,
0.017850730568170547,
-0.013701298274099827,
-0.037590041756629944,
-0.08055528253316879,
-0.010114808566868305,
-0.048086199909448624,
0.0012768356828019023,
0.00882548838853836,
0.029763324186205864,
0.00441274419426918,
0.04242045432329178,
-0.014237001538276672,
-0.04016868397593498,
0.020810719579458237,
0.016933679580688477,
0.06446601450443268,
-0.07209298014640808,
-0.01824115961790085,
0.003815752686932683,
0.01418252382427454,
0.04234781861305237,
-0.010605113580822945,
-0.02411573752760887,
0.0524807870388031,
-0.006183289922773838,
0.011540325358510017,
-0.0277476254850626,
0.10183814913034439,
0.021991083398461342,
0.009597265161573887,
-0.02402494102716446,
0.007486229762434959,
-0.007132120430469513,
-0.0002004632115131244,
0.03148847073316574,
-0.016443373635411263,
-0.026185914874076843,
-0.02342567965388298,
-0.044526949524879456,
-0.007118500769138336,
-0.015635278075933456,
0.05880027264356613,
0.029835961759090424,
-0.01636165753006935,
-0.025296101346611977,
0.0015651168068870902,
-0.05444200336933136,
-0.04510805383324623,
-0.016679447144269943,
-0.09239523857831955,
0.0014890742022544146,
-0.01357418205589056,
0.028800873085856438,
0.031597428023815155,
-0.03697262331843376,
-0.041185613721609116,
-0.011985231190919876,
0.01803232543170452,
-0.04281996190547943,
-0.043764252215623856,
0.058364443480968475,
-0.015126815065741539,
0.052662380039691925,
0.021391822025179863,
0.024987392127513885,
-0.018350115045905113,
0.05215391516685486,
0.02304433099925518,
-0.043219469487667084,
-0.06105204299092293,
-0.04957527294754982,
0.0224450696259737,
0.0228082574903965,
-0.002123519778251648,
0.008716532029211521,
-0.0044558728113770485,
0.06279534846544266,
-0.05407881736755371,
-0.08106374740600586,
-0.006246848031878471,
0.0239523034542799,
0.0009272664901800454,
-0.03161558881402016,
-0.03886120393872261,
0.052589740604162216,
-0.02242691069841385,
-0.0010413305135443807,
-0.034176070243120193,
0.05157281458377838,
0.06482920795679092,
0.03324993699789047,
-0.04242045432329178,
0.016034787520766258,
-0.041330888867378235,
0.018631586804986,
-0.07125765085220337,
0.004119923338294029,
-0.014990618452429771,
-0.026585422456264496,
0.03581041842699051,
0.03936966881155968,
0.04093138128519058,
-0.024006782099604607,
0.05785597860813141,
0.017469381913542747,
-0.00362053862772882,
-0.04986582696437836,
-0.03926071152091026,
-0.04191198945045471,
0.01421884261071682,
0.01961219683289528,
0.04340106621384621,
-0.043618977069854736,
0.04430903494358063,
0.010913824662566185,
0.010532476007938385,
-0.02509634755551815,
0.02495107240974903,
-0.10249188542366028,
0.06334013491868973,
-0.03263251483440399,
0.017433064058423042,
-0.006083413027226925,
-0.019666675478219986,
0.023607274517416954,
0.0040109665133059025,
0.013628660701215267,
-0.06021670624613762,
-0.056076355278491974,
-0.017814412713050842,
-0.010450758039951324,
-0.06061621382832527,
0.06268639117479324,
0.0737273320555687,
0.009379351511597633,
0.008226227015256882,
-0.010677751153707504,
-0.0003731197793968022,
-0.01961219683289528,
-0.026185914874076843,
0.0035683303140103817,
-0.016062024980783463,
-0.07263776659965515,
-0.025586653500795364,
-0.0066191162914037704,
0.04082242399454117,
-0.04016868397593498,
0.043618977069854736,
0.04111297428607941,
0.007427211385220289,
0.010187446139752865,
-0.030162831768393517,
0.007286475971341133,
0.015453684143722057,
0.021246546879410744,
-0.010260084643959999,
-0.012184984982013702,
0.048703622072935104,
0.034030791372060776,
0.012865964323282242,
0.0050755636766552925,
-0.06116099655628204,
0.048848897218704224,
-0.004306057468056679,
0.021537097170948982,
0.033413372933864594,
-0.018295636400580406,
0.04478118196129799,
-0.014827183447778225,
-0.04143984615802765,
0.010686831548810005,
0.009624503552913666,
0.013329030014574528,
-0.02130102552473545,
0.007940215989947319,
0.0076042660512030125,
-0.005429673008620739,
0.001796649768948555,
-0.03521115705370903,
0.07786768674850464,
0.005956296809017658,
0.08476827293634415,
0.013201913796365261,
0.008925365284085274,
-0.07488953322172165,
0.03780795633792877,
0.025514015927910805,
-0.009724380448460579,
0.028546642512083054,
0.0707128643989563,
-0.03762636333703995,
-0.049466319382190704,
-0.034339502453804016,
0.03671839088201523,
-0.014700068160891533,
0.06857004761695862,
-0.016370736062526703,
0.050446927547454834,
0.02402494102716446,
-0.010714069940149784,
0.00013420962204691023,
0.00028728804318234324,
-0.049538955092430115,
-0.04492645710706711,
-0.017823491245508194,
0.06490184366703033,
0.053715627640485764,
-0.0024969230871647596,
0.018613427877426147,
0.0054977708496153355,
-0.007177519146353006,
0.0035206617321819067,
-0.02654910273849964,
0.03620992600917816,
-0.05999879539012909,
-0.0024492547381669283,
-0.056621138006448746,
-0.018377354368567467,
-0.014191603288054466,
0.051136985421180725,
0.030380744487047195,
-0.04151248186826706,
0.016479693353176117,
0.08208067715167999,
0.02943645417690277,
-0.013183753937482834,
-0.015635278075933456,
0.03310466185212135,
0.07125765085220337,
-0.009120579808950424,
0.03871592879295349,
0.01140412874519825,
-0.042783644050359726,
-0.0653739869594574,
0.01598030887544155,
0.014618350192904472,
0.013456146232783794,
0.0239523034542799,
-0.03933335095643997,
0.030998166650533676,
0.01840459369122982,
0.055023107677698135,
-0.0009891220834106207,
-0.010169287212193012,
-0.0027488854248076677,
0.008984383195638657,
-0.06214160844683647,
0.054187774658203125,
-0.041948311030864716,
-0.02061096578836441,
0.04990214481949806,
0.012221303768455982,
-0.015780555084347725,
0.001015793764963746,
-0.005447832401841879,
0.02569560892879963,
-0.0760517418384552,
-0.010232845321297646,
-0.014999698847532272,
0.007931135594844818,
0.0007536167977377772,
0.018740544095635414,
0.0494299978017807,
0.04401848465204239,
0.0036659371107816696,
0.006478380877524614,
0.025350579991936684,
0.0036659371107816696,
0.05462360009551048,
-0.014273321256041527,
0.02691229246556759,
0.003182442160323262,
-0.03010835312306881,
-0.04834043234586716,
-0.014663748443126678,
0.07873933762311935,
-0.007363653276115656,
0.046270254999399185,
0.00909334048628807,
0.00017294030112680048,
-0.01963035576045513,
-0.06653619557619095,
0.015371967107057571,
-0.026421986520290375,
0.02328040450811386,
-0.06555557996034622,
0.008843648247420788,
-0.03521115705370903,
-0.060652535408735275,
0.017996005713939667,
0.029182221740484238,
-0.022771939635276794,
-0.009343032725155354,
-0.0022574455942958593,
0.05923609808087349,
-0.021119430661201477,
0.07917516678571701,
-0.018649745732545853,
0.018350115045905113,
0.009706221520900726,
0.014436756260693073,
-0.06290430575609207,
-0.04823147505521774,
0.05847340077161789,
0.02418837510049343,
0.0699864849448204,
0.029381975531578064,
0.06748048216104507,
-0.00456255953758955,
0.012502775527536869,
0.0024969230871647596,
-0.016180062666535378,
-0.03359496593475342,
-0.005910898093134165,
-0.042783644050359726,
-0.027057567611336708,
0.02266298234462738,
-0.05367930978536606,
-0.057529110461473465,
-0.07852142304182053,
-0.03537459298968315,
-0.041403524577617645,
-0.05909082293510437,
-0.02943645417690277,
0.05687537044286728,
-0.01598030887544155,
0.012384738773107529,
0.01733318716287613,
0.009152358397841454,
0.06784367561340332,
0.016688525676727295,
-0.02455156482756138,
-0.04768669232726097,
-0.0013767126947641373,
-0.0063875834457576275,
-0.13888341188430786,
-0.00718659907579422,
0.03056233935058117,
0.026748856529593468,
0.03704525902867317,
0.03838906064629555,
-0.020247777923941612,
0.0639212355017662,
0.007658744230866432,
-0.024733159691095352,
-0.016443373635411263,
0.01365590002387762,
0.07459898293018341,
0.026712538674473763,
-0.0059653762727975845,
0.029490932822227478,
-0.08447772264480591,
-0.015244850888848305,
-0.00682795001193881,
0.03595569357275963,
-0.01596214808523655,
0.010314562357962132,
0.03933335095643997,
-0.024914752691984177,
-0.012293941341340542,
-0.031433992087841034,
0.0008393066818825901,
0.05840076506137848,
-0.0043605356477200985,
-0.01854986883699894,
0.005665745586156845,
-0.01687920093536377,
0.029944919049739838,
0.006265007425099611,
-0.008575796149671078,
-0.014318719506263733,
-0.0006242307717911899,
-0.0029282099567353725,
-0.006705373525619507,
-0.038752246648073196,
-0.02182764932513237,
0.023625433444976807,
-0.014164363965392113,
-0.030616817995905876,
0.05709328502416611,
0.009451989084482193,
-0.022317953407764435,
0.019503239542245865,
0.03642784059047699,
0.05792861804366112,
0.04478118196129799,
-0.024733159691095352,
-0.008221686817705631,
0.0002150758809875697,
-0.08237122744321823,
-0.004126733168959618,
0.04525332897901535,
0.00909334048628807,
-0.0403139591217041,
0.02333488129079342,
-0.039878133684396744,
-0.006187829654663801,
-0.024279173463582993,
-0.05117330700159073,
0.06214160844683647,
0.024224694818258286,
0.036990780383348465,
0.007608805783092976,
0.03444845974445343,
0.02752971276640892,
-0.03277778998017311,
0.027620511129498482,
0.012738848105072975,
-0.000521516427397728,
0.0029509093146771193,
-0.005929057486355305,
0.0025264322757720947,
0.04576179385185242,
0.006265007425099611,
0.005570408422499895,
0.06762576103210449,
-0.05059220269322395,
0.048485707491636276,
-0.0033209079410880804,
-0.0035388211254030466,
0.05604003742337227,
0.015444604679942131,
0.04826779663562775,
0.004104033578187227,
-0.06900587677955627,
-0.011186216026544571,
0.04129457101225853,
0.03058049827814102,
0.026730697602033615,
0.048558346927165985,
-0.03557434678077698,
0.023607274517416954,
0.03542907163500786,
0.033812880516052246,
-0.00920229684561491,
0.007749541662633419,
-0.0034207848366349936,
-0.009896895848214626,
0.042928919196128845,
0.0027670448180288076,
0.015208532102406025,
0.09457436949014664,
-0.022263474762439728,
0.0027193762362003326,
0.016397975385189056,
0.0075634075328707695,
0.03962390124797821,
-0.05186336487531662,
-0.09871472418308258,
0.048413071781396866,
-0.011567563749849796,
-0.023552795872092247,
-0.006010774988681078,
-0.011131737381219864,
0.030671296641230583,
-0.09319425374269485,
0.014082646928727627,
-0.028691917657852173,
0.026440147310495377,
-0.016933679580688477,
-0.030090194195508957,
-0.06286798417568207,
-0.02464236132800579,
-0.01803232543170452,
-0.01848631165921688,
-0.03766268119215965,
-0.012266702950000763,
-0.039805494248867035,
0.002376616932451725,
-0.00005880537719349377,
-0.04470854625105858,
-0.0020951456390321255,
0.002603609813377261,
-0.01824115961790085,
0.055168382823467255,
-0.03241460397839546,
0.03817114606499672,
0.0050347051583230495,
-0.00893898494541645,
-0.0011065909639000893,
-0.026639901101589203,
-0.016679447144269943,
0.019140051677823067,
-0.04427271708846092,
-0.03769899904727936,
-0.013020319864153862,
0.003100724657997489,
-0.05792861804366112,
-0.010178366675972939,
0.0006798440590500832,
0.016370736062526703,
0.034339502453804016,
-0.0072546969167888165,
-0.037154216319322586,
0.028020018711686134,
-0.005715684033930302,
-0.055313657969236374,
-0.04296523705124855,
0.029618049040436745,
0.057819660753011703,
-0.007295555435121059,
0.030526021495461464,
-0.03137951344251633,
-0.025641130283474922,
0.032287485897541046,
0.002996307797729969,
-0.07093077898025513,
0.007708682678639889,
0.008289785124361515,
-0.02426101267337799,
0.0027602349873632193,
-0.007685983553528786,
0.00965174287557602,
0.01740582473576069,
-0.037154216319322586,
-0.025641130283474922,
-0.01856802962720394,
-0.02950909174978733,
-0.015371967107057571,
0.01590767130255699,
-0.017551099881529808,
0.043074194341897964,
0.0053615751676261425,
0.04311051219701767,
0.028909830376505852,
-0.028074495494365692,
-0.08222594857215881,
-0.046342894434928894,
0.005633966531604528,
0.039115436375141144,
-0.009815177880227566,
-0.024751318618655205,
-0.0243336521089077,
-0.041258249431848526,
-0.007481690030544996,
0.08934444934129715,
0.01486350316554308,
-0.02495107240974903,
-0.013410747051239014,
-0.014618350192904472,
0.025296101346611977,
0.07721394300460815,
0.06987752765417099,
0.018077723681926727,
-0.017006317153573036,
0.025586653500795364,
-0.06933274865150452,
-0.01748754270374775,
0.002873731544241309,
0.04499909654259682,
-0.02731180004775524,
-0.03817114606499672,
0.004380965139716864,
0.029618049040436745,
0.005724763963371515,
-0.0011202105088159442,
0.043982166796922684,
-0.025368738919496536,
0.016479693353176117,
-0.0022041022311896086,
0.02943645417690277,
-0.005697524640709162,
-0.004258389119058847,
-0.03027178905904293,
-0.03330441564321518,
-0.026658060029149055,
-0.05458728224039078,
0.027965540066361427,
0.03936966881155968,
-0.015499083325266838,
-0.03991445153951645,
0.04815883934497833,
-0.0028192533645778894,
-0.024351811036467552,
-0.028691917657852173,
-0.006042554043233395,
-0.014718227088451385,
-0.042856279760599136,
0.0013937371550127864,
0.054478324949741364,
-0.013356269337236881,
0.002254040678963065,
-0.013192834332585335,
-0.044817499816417694,
-0.016906440258026123,
0.06112467870116234,
-0.02084703929722309,
0.011304251849651337,
0.018359195441007614,
0.00878462940454483,
-0.0004389477544464171,
0.004401394631713629,
0.028927989304065704,
-0.054550960659980774,
0.01992090791463852,
0.0585823580622673,
-0.025750087574124336,
-0.008984383195638657,
0.025187145918607712,
-0.007763161323964596,
-0.0027534253895282745,
-0.0037226853892207146,
-0.017732694745063782,
0.02516898512840271,
0.02144630067050457,
-0.03969653695821762,
-0.01627993956208229,
0.0653739869594574,
-0.0038634210359305143,
0.02981780283153057,
0.0039723776280879974,
-0.04685135930776596,
0.02091967687010765,
0.062105290591716766,
-0.06704466044902802,
0.027093887329101562,
-0.06784367561340332,
0.025114506483078003,
0.039732858538627625,
-0.0066009568981826305,
0.01717883162200451,
0.0010282783769071102,
0.026276711374521255,
-0.0050755636766552925,
-0.07481689751148224,
0.034648213535547256,
0.060943085700273514,
0.0146365100517869,
0.009869656525552273,
-0.03148847073316574,
-0.04430903494358063,
0.00920683704316616,
0.048558346927165985,
-0.00492120860144496,
0.041258249431848526,
0.020883357152342796,
-0.04158512130379677,
0.015508162789046764,
-0.0074135917238891125,
0.02289905585348606,
0.023988621309399605,
0.025968000292778015,
0.013928291387856007,
0.03606465086340904,
-0.08433244377374649,
-0.015017857775092125,
-0.05985352024435997,
-0.010786708444356918,
-0.017469381913542747,
-0.0025672910269349813,
0.046960316598415375,
0.0019510049605742097,
0.0014595651300624013,
0.06697201728820801,
0.03766268119215965
] |
17,821 | imodels.algebraic.slim | SLIMClassifier | null | class SLIMClassifier(BaseEstimator, ClassifierMixin):
def __init__(self, alpha=1):
'''Model is initialized during fitting
Params
------
alpha: float
weight for sparsity penalty
'''
self.alpha = alpha
def fit(self, X, y, sample_weight=None):
'''fit a logistic model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
'''
X, y = check_X_y(X, y)
check_classification_targets(y)
self.n_features_in_ = X.shape[1]
self.classes_, y = np.unique(y, return_inverse=True) # deals with str inputs
self.model_ = LogisticRegression()
self.model_.classes_ = self.classes_
try:
import cvxpy as cp # package for optimization, import here to make it optional
from cvxpy.error import SolverError
# declare the integer-valued optimization variable
w = cp.Variable(X.shape[1], integer=True)
# set up the minimization problem
logits = -X @ w
residuals = cp.multiply(1 - y, logits) - cp.logistic(logits)
if sample_weight is not None:
residuals = cp.multiply(sample_weight, residuals)
celoss = -cp.sum(residuals)
l1_penalty = self.alpha * cp.norm(w, 1)
obj = cp.Minimize(celoss + l1_penalty)
prob = cp.Problem(obj)
try:
# solve the problem using an appropriate solver
prob.solve()
self.model_.coef_ = np.array([w.value.astype(int)])
self.model_.intercept_ = 0
except SolverError:
warnings.warn("mosek solver required for mixed-integer exponential cone "
"programming. Rounding non-integer coefficients instead")
self._fit_backup(X, y, sample_weight)
except ImportError:
warnings.warn("Should install cvxpy with pip install cvxpy. Rounding non-integer "
"coefficients instead.")
self._fit_backup(X, y, sample_weight)
return self
def _fit_backup(self, X, y, sample_weight=None):
m = LogisticRegression(C=1 / self.alpha)
m.fit(X, y, sample_weight=sample_weight)
self.model_.coef_ = np.round(m.coef_).astype(int)
self.model_.intercept_ = m.intercept_
def predict(self, X):
check_is_fitted(self)
X = check_array(X)
return self.model_.predict(X)
def predict_proba(self, X):
check_is_fitted(self)
X = check_array(X)
return self.model_.predict_proba(X)
| (alpha=1) | [
0.0275574941188097,
-0.06756674498319626,
0.008884847164154053,
0.046534448862075806,
0.015015941113233566,
-0.07914049178361893,
-0.04346141964197159,
-0.027278127148747444,
0.03793395683169365,
0.01752026006579399,
-0.019026843830943108,
0.001981755020096898,
0.041665494441986084,
0.022668583318591118,
-0.07311416417360306,
0.026938896626234055,
0.0322069488465786,
-0.04729273170232773,
-0.0028585162945091724,
0.019805077463388443,
0.011962865479290485,
0.01575426571071148,
-0.036297667771577835,
0.09115324914455414,
-0.001173588098026812,
0.01873749867081642,
0.016203247010707855,
-0.005567371845245361,
0.04322196543216705,
-0.051403407007455826,
-0.06529190391302109,
0.03204730898141861,
-0.02306767739355564,
-0.01857786253094673,
0.0005961477872915566,
-0.056072816252708435,
0.06720755994319916,
0.004604556132107973,
-0.01817876659333706,
-0.03741513565182686,
-0.014487139880657196,
-0.013060376048088074,
-0.0007308422937057912,
-0.0603032186627388,
-0.03931083530187607,
0.00348958489485085,
-0.0543966181576252,
0.11621639877557755,
0.039610154926776886,
-0.05774901434779167,
0.004013396799564362,
-0.03685640171170235,
0.01873749867081642,
-0.0062807537615299225,
-0.01664225198328495,
0.08692283928394318,
0.05280023813247681,
0.0665690079331398,
0.05687100440263748,
-0.05723018944263458,
-0.026220526546239853,
-0.008465797640383244,
0.02839559316635132,
-0.014856303110718727,
-0.001946834148839116,
-0.0073333666659891605,
-0.044818341732025146,
0.026380164548754692,
0.011733386665582657,
0.0065750861540436745,
0.010645853355526924,
-0.08245298266410828,
-0.01523544266819954,
0.04382060468196869,
0.014237705618143082,
0.01767989806830883,
-0.05595308542251587,
-0.05930548161268234,
0.012461734004318714,
-0.006709781009703875,
0.007837223820388317,
-0.021072203293442726,
0.012651304714381695,
-0.08025795966386795,
-0.019835010170936584,
-0.09043487161397934,
0.01766992174088955,
-0.043581150472164154,
0.04573626071214676,
0.06018349155783653,
-0.056072816252708435,
0.08121578395366669,
0.022488990798592567,
0.051563043147325516,
0.07993867993354797,
0.05874675139784813,
0.02861509472131729,
-0.0033698563929647207,
0.020184218883514404,
-0.0033199696335941553,
-0.05024603009223938,
0.07686565071344376,
-0.03687635809183121,
0.05447643622756004,
-0.05890638753771782,
-0.0019705304875969887,
-0.010945173911750317,
0.03917115181684494,
0.013349720276892185,
-0.05719028040766716,
-0.04817073792219162,
-0.00723858131095767,
-0.04370087757706642,
-0.008021804504096508,
-0.03304504603147507,
-0.041545767337083817,
-0.061460595577955246,
0.03671671822667122,
-0.03384323790669441,
-0.003417249070480466,
-0.017071278765797615,
-0.007917042821645737,
-0.04425961151719093,
0.005717032589018345,
0.0195955540984869,
-0.0024906008038669825,
0.029912153258919716,
0.01804906129837036,
0.019835010170936584,
-0.047412458807229996,
-0.051203858107328415,
-0.016732048243284225,
-0.010685762390494347,
0.009044485166668892,
0.011134743690490723,
-0.03310491144657135,
-0.036656856536865234,
-0.00312042236328125,
0.01576424390077591,
0.01161365769803524,
0.06485290080308914,
0.002151370281353593,
0.012042684480547905,
0.011823182925581932,
0.04024870693683624,
0.006555131636559963,
0.06429416686296463,
-0.011284404434263706,
-0.02600102499127388,
-0.020313924178481102,
-0.01817876659333706,
-0.014237705618143082,
0.0006335629732348025,
-0.021371524780988693,
0.016851777210831642,
-0.012302096001803875,
0.004452400840818882,
-0.043062325567007065,
0.03589857369661331,
-0.029572922736406326,
-0.023865867406129837,
0.0006114256684668362,
-0.01177329570055008,
0.0035818754695355892,
0.01335969753563404,
0.02199012227356434,
-0.04469861462712288,
-0.003709087148308754,
-0.026958851143717766,
0.03013165481388569,
-0.016712093725800514,
-0.05272042006254196,
-0.00849074125289917,
0.02895432524383068,
-0.011314337141811848,
0.09402672946453094,
0.0037365248426795006,
-0.01958557590842247,
0.04433942958712578,
0.023865867406129837,
0.024304872378706932,
0.0023783554788678885,
-0.05563380941748619,
-0.001966788899153471,
-0.01666220650076866,
0.044618796557188034,
0.009538364596664906,
0.015225465409457684,
-0.04130630940198898,
0.01049619261175394,
0.023426862433552742,
-0.038552556186914444,
0.04246368259191513,
-0.01629304327070713,
0.01942593790590763,
0.018797364085912704,
0.03242645040154457,
0.01012702938169241,
0.01153383869677782,
0.02042367495596409,
0.024025505408644676,
-0.0062408447265625,
0.06928285211324692,
-0.012691213749349117,
-0.033523961901664734,
0.025402382016181946,
-0.02929355576634407,
0.020513471215963364,
-0.032346632331609726,
-0.04892902076244354,
-0.0052780285477638245,
0.018937047570943832,
-0.024145234376192093,
0.023267224431037903,
0.06265787780284882,
0.007213638164103031,
0.020852701738476753,
-0.02149125374853611,
0.011404133401811123,
-0.029373375698924065,
0.03035115823149681,
0.0013444505166262388,
-0.09346799552440643,
0.05663154646754265,
0.033364322036504745,
-0.00455466890707612,
0.03296522796154022,
0.021730709820985794,
0.05667145922780037,
-0.0221896693110466,
-0.024743875488638878,
-0.04529725760221481,
0.07143796235322952,
-0.03242645040154457,
-0.05355851724743843,
0.013649040833115578,
0.0001774100965121761,
0.04413988068699837,
-0.05782883241772652,
-0.021551117300987244,
-0.008760130032896996,
0.010376463644206524,
0.013609131798148155,
0.015205510891973972,
-0.008261261507868767,
0.006639939267188311,
0.03466138243675232,
0.041146669536828995,
0.013279878534376621,
-0.013279878534376621,
0.014048135839402676,
-0.015804152935743332,
-0.04996666684746742,
0.008600492030382156,
-0.039610154926776886,
-0.06868421286344528,
0.02045360766351223,
0.023187406361103058,
0.016013678163290024,
-0.03420242294669151,
-0.024524373933672905,
-0.0005365954129956663,
0.016881708055734634,
0.05874675139784813,
-0.05990412458777428,
0.0018969473894685507,
0.009852652437984943,
0.016901664435863495,
0.059385303407907486,
0.0547558031976223,
0.01629304327070713,
0.044459156692028046,
-0.034242331981658936,
0.008096635341644287,
-0.029014190658926964,
0.0218304842710495,
-0.06269779056310654,
-0.017550192773342133,
0.006969192530959845,
0.017979219555854797,
0.024005550891160965,
-0.0339030995965004,
0.03621784970164299,
0.017300758510828018,
0.022568808868527412,
-0.01489621214568615,
-0.014696665108203888,
-0.014277615584433079,
0.023865867406129837,
-0.0021813022904098034,
-0.021890347823500633,
0.03585866466164589,
0.07016085833311081,
0.006804565899074078,
0.05527462437748909,
0.0028435501735657454,
0.020363811403512955,
0.014606868848204613,
0.020732972770929337,
-0.033523961901664734,
0.01075560413300991,
0.011573748663067818,
-0.010585988871753216,
-0.07846203446388245,
0.00020328890241216868,
-0.04417978972196579,
0.013409584760665894,
-0.03947047144174576,
-0.0606624037027359,
0.04713309183716774,
0.023646365851163864,
0.08891831338405609,
0.008760130032896996,
-0.04018884524703026,
-0.0425834134221077,
-0.020204173400998116,
0.06740710884332657,
0.011903001926839352,
0.0440201535820961,
0.03100966289639473,
-0.008011827245354652,
-0.018617771565914154,
-0.025542065501213074,
-0.0377543643116951,
0.021231841295957565,
-0.01523544266819954,
0.05978439748287201,
0.0010027255630120635,
-0.04266323149204254,
-0.03779427334666252,
-0.018308471888303757,
0.021371524780988693,
0.009059451520442963,
0.00001099069595511537,
-0.00813654437661171,
0.02392573095858097,
0.007567834574729204,
-0.0018158812308683991,
0.014407320879399776,
-0.02653980255126953,
0.025901250541210175,
0.007273502182215452,
-0.04673399776220322,
0.01663227379322052,
-0.04557662457227707,
-0.06481298804283142,
0.015325238928198814,
0.02440464496612549,
-0.015195533633232117,
0.019266299903392792,
-0.00010491827561054379,
-0.0513634979724884,
0.06445380300283432,
0.06832502782344818,
0.0007009101682342589,
0.005168277304619551,
-0.02424500696361065,
-0.014277615584433079,
0.08145524561405182,
-0.062298692762851715,
-0.00451226532459259,
-0.04417978972196579,
-0.048290468752384186,
0.010336554609239101,
0.020872656255960464,
-0.0056920889765024185,
-0.03246635943651199,
-0.010805491358041763,
0.01990485191345215,
-0.015474899671971798,
-0.016732048243284225,
-0.04322196543216705,
-0.07646656036376953,
-0.006814543157815933,
0.0024008045438677073,
0.016173316165804863,
-0.024145234376192093,
0.005981432739645243,
-0.02530260942876339,
-0.008301171474158764,
0.047572098672389984,
-0.04206458851695061,
0.009373738430440426,
-0.027258172631263733,
-0.004646959714591503,
-0.04018884524703026,
0.026280390098690987,
-0.005462609697133303,
0.03773441165685654,
-0.007323388941586018,
0.02498333342373371,
-0.013220014050602913,
-0.023646365851163864,
-0.020054511725902557,
-0.04569635167717934,
-0.030710343271493912,
0.04469861462712288,
0.05579344928264618,
-0.002741282107308507,
-0.011673522181808949,
-0.0425834134221077,
-0.004385053645819426,
-0.015195533633232117,
-0.0029907163698226213,
-0.019146570935845375,
0.04318205267190933,
0.007024067919701338,
0.049647390842437744,
-0.01500596385449171,
0.048609744757413864,
-0.03655708208680153,
0.05782883241772652,
0.045496802777051926,
-0.053997524082660675,
-0.04785146191716194,
-0.001103122835047543,
0.037494953721761703,
-0.0022286949679255486,
-0.018238632008433342,
0.018747476860880852,
0.03984961286187172,
0.01594383642077446,
0.029353421181440353,
0.03653712570667267,
-0.04541698470711708,
-0.0009858887642621994,
-0.014287592843174934,
-0.035479526966810226,
0.023646365851163864,
-0.017400532960891724,
-0.08169469982385635,
0.004245370626449585,
-0.0791005864739418,
-0.03428224101662636,
-0.05419706925749779,
-0.0447385236620903,
-0.04282286763191223,
0.042862776666879654,
-0.017580125480890274,
0.0225488543510437,
0.012930670753121376,
-0.002658969024196267,
0.03360377997159958,
0.041146669536828995,
-0.0020266531500965357,
-0.016522523015737534,
0.01057601161301136,
-0.0042304047383368015,
-0.0850071832537651,
-0.016043609008193016,
0.017200984060764313,
0.02167084626853466,
-0.001707377377897501,
0.051403407007455826,
0.008879859000444412,
0.004355121869593859,
-0.011194608174264431,
-0.052441053092479706,
0.04629499465227127,
-0.0157941747456789,
-0.0021987627260386944,
0.012162413448095322,
0.040627848356962204,
-0.0022474024444818497,
-0.0484900139272213,
0.01232205145061016,
0.046534448862075806,
-0.0006210912251845002,
-0.014267638325691223,
-0.00041936131310649216,
0.031608305871486664,
-0.004527231212705374,
0.04661427065730095,
-0.042024679481983185,
-0.03152848780155182,
0.053638339042663574,
-0.0007233592914417386,
0.02095247618854046,
0.04924829304218292,
0.010436328127980232,
0.0502859428524971,
0.0005758812767453492,
0.04004916176199913,
0.009698002599179745,
-0.004200472496449947,
-0.026280390098690987,
0.004941292107105255,
-0.04390042647719383,
-0.011982820928096771,
0.0016113450983539224,
-0.038532599806785583,
0.058507293462753296,
0.030411021783947945,
0.09506437182426453,
-0.05048548802733421,
-0.00606624037027359,
0.010156962089240551,
-0.03410264849662781,
0.014227728359401226,
-0.03340423107147217,
-0.013220014050602913,
0.013210036791861057,
-0.06557127088308334,
-0.029213737696409225,
0.04904874786734581,
-0.024684011936187744,
-0.026440028101205826,
0.012421824969351292,
-0.041705403476953506,
-0.028156137093901634,
-0.06680846214294434,
-0.02374613843858242,
0.018587838858366013,
-0.006455358117818832,
0.003531988710165024,
0.002131415531039238,
0.006345606874674559,
0.05455625429749489,
0.006210912484675646,
-0.01595381274819374,
0.04417978972196579,
-0.02809627167880535,
0.0744311735033989,
-0.020732972770929337,
0.03258608654141426,
0.07758402079343796,
0.02544229105114937,
-0.038532599806785583,
0.04056798294186592,
0.08460809290409088,
-0.001653748913668096,
-0.04729273170232773,
-0.019465846940875053,
0.05355851724743843,
0.003619290655478835,
0.02320736087858677,
0.004701835103332996,
-0.054675985127687454,
0.00023836559557821602,
-0.038752101361751556,
-0.045656442642211914,
0.007697540335357189,
0.01817876659333706,
0.03346409648656845,
-0.012900738045573235,
0.020313924178481102,
-0.0353398434817791,
0.060383040457963943,
-0.10160952806472778,
-0.026938896626234055,
0.001985496375709772,
0.02149125374853611,
-0.01266128197312355,
0.026819169521331787,
0.05826783552765846,
-0.0025305103044956923,
-0.00023555944790132344,
0.02687903307378292,
0.0047492277808487415,
0.028814641758799553,
-0.012381915003061295,
-0.015864016488194466,
0.0669281929731369,
-0.0791005864739418,
-0.04398024454712868,
0.04577616974711418,
-0.0027138444129377604,
0.05343879014253616,
-0.034421924501657486,
-0.025023242458701134,
0.048609744757413864,
0.00807169172912836,
-0.017739763483405113,
0.03793395683169365,
-0.08931741118431091,
0.024504419416189194,
0.005707055330276489,
-0.014327501878142357,
-0.06233860179781914,
0.008445843122899532,
0.031289029866456985,
-0.02424500696361065,
-0.0066100070253014565,
-0.08181443065404892,
0.0003800754202529788,
-0.024185143411159515,
-0.04050811752676964,
0.04278295859694481,
-0.05252087116241455,
0.023706229403614998,
-0.025562020018696785,
0.06832502782344818,
-0.022927993908524513,
-0.08109606057405472,
0.017490329220891,
0.040128979831933975,
-0.049487750977277756,
-0.01909668557345867,
0.032645951956510544,
0.001526537467725575,
-0.0253225639462471,
-0.01886720582842827,
-0.012202322483062744,
-0.013569221831858158,
0.01696152798831463,
0.00807169172912836,
-0.03478110954165459,
-0.027337992563843727,
0.05651181936264038,
-0.02009442262351513,
-0.03035115823149681,
0.0014853808097541332,
0.029034145176410675,
-0.01179325021803379,
-0.05982430651783943,
0.036836449056863785,
-0.058307744562625885,
0.017729785293340683,
0.0696021318435669,
-0.005931545980274677,
0.01594383642077446,
-0.04230404645204544,
0.005871681962162256,
0.018937047570943832,
-0.049807026982307434,
0.010875332169234753,
-0.012950625270605087,
-0.07618719339370728,
-0.01403815858066082,
0.013918430544435978,
0.06597036868333817,
0.01455698162317276,
0.06992140412330627,
-0.01057601161301136,
0.0384727343916893,
0.04122649133205414,
0.0279166791588068,
0.036118075251579285,
-0.011084857396781445,
0.013529312796890736,
-0.04158567637205124,
-0.051403407007455826,
0.02304772287607193,
-0.016193270683288574,
-0.00026642694137990475,
-0.024025505408644676,
-0.01273112278431654,
0.013758792541921139,
0.05096440389752388,
-0.029493102803826332,
-0.018059037625789642,
-0.02095247618854046,
-0.05339888110756874,
-0.034042783081531525,
0.0056920889765024185,
-0.016771957278251648,
0.004716801457107067,
0.02167084626853466,
0.026440028101205826,
0.011234518140554428,
-0.057629283517599106,
0.009902538731694221,
0.0969800278544426,
0.0013918429613113403,
0.047891370952129364,
0.014517072588205338,
0.04968729987740517,
-0.05551408231258392,
-0.012272164225578308,
0.003085501492023468,
-0.009967392310500145,
0.019515734165906906,
-0.03623780608177185,
0.014267638325691223,
0.016083519905805588,
-0.03033120185136795,
-0.009418636560440063,
-0.014686687849462032,
-0.005457621067762375,
0.00026159416302107275,
0.10328572988510132,
0.04573626071214676,
0.00003151055716443807,
-0.0225488543510437,
0.08628428727388382,
-0.048609744757413864,
-0.02566179446876049,
0.0051732659339904785,
-0.02203003130853176,
-0.02909400872886181,
-0.013090308755636215,
0.029592877253890038,
0.019864942878484726,
-0.02028399147093296,
0.011384177953004837,
-0.03693621978163719,
-0.0794597715139389,
-0.01463680062443018,
0.024544328451156616,
-0.04386051371693611,
0.020752927288413048,
-0.0011873069452121854,
-0.0447385236620903,
0.04837028682231903,
-0.003798883408308029,
0.05683109536767006,
-0.03308495506644249,
-0.027936633676290512,
0.03799382224678993,
-0.07435135543346405,
0.022788312286138535,
0.05862702056765556,
-0.004409997258335352,
-0.05008639395236969,
0.06632955372333527,
0.06884384900331497,
-0.03410264849662781,
-0.041186582297086716,
0.0001883228396764025,
0.04146594554185867,
0.028714869171380997,
-0.011314337141811848,
0.0008555594249628484,
-0.004769182298332453,
-0.027657268568873405,
-0.04737254977226257,
0.025043196976184845,
-0.03522011265158653,
0.03535979613661766,
0.013788724318146706,
0.03659699112176895,
0.0021775609347969294,
-0.0773046538233757,
-0.007587789557874203,
0.01463680062443018,
-0.031089482828974724,
-0.021092157810926437,
-0.025921205058693886,
0.024863604456186295,
0.01939600519835949,
-0.02584138698875904,
-0.04334169253706932,
0.02376609295606613,
0.016522523015737534,
0.004170540254563093,
0.05611272528767586,
0.021531162783503532,
0.03655708208680153,
0.03298518434166908,
-0.022389216348528862,
0.023446816951036453,
-0.0034571585711091757,
0.029712606221437454,
0.0013007995439693332,
0.09330835938453674,
-0.036118075251579285,
-0.00011092028580605984,
-0.0107356496155262,
-0.01500596385449171,
-0.03617794066667557,
0.02042367495596409,
-0.03480106592178345,
0.023526636883616447,
0.039250969886779785,
0.021451344713568687,
0.020852701738476753,
0.028176091611385345,
0.04952766001224518
] |
17,823 | imodels.algebraic.slim | __init__ | Model is initialized during fitting
Params
------
alpha: float
weight for sparsity penalty
| def __init__(self, alpha=1):
'''Model is initialized during fitting
Params
------
alpha: float
weight for sparsity penalty
'''
self.alpha = alpha
| (self, alpha=1) | [
0.0308820940554142,
0.018315430730581284,
0.010323243215680122,
0.007457622792571783,
0.0019531347788870335,
-0.0004398113233037293,
-0.04879441112279892,
-0.029111895710229874,
0.031144995242357254,
0.05349157378077507,
-0.02846340648829937,
-0.006962492596358061,
0.023257968947291374,
0.041713614016771317,
-0.04560454562306404,
0.02783244475722313,
0.03440496698021889,
0.023363128304481506,
-0.027026215568184853,
0.018508225679397583,
-0.004379491321742535,
0.007812539115548134,
-0.02571170963346958,
0.0876336395740509,
0.0047322167083621025,
0.008728310465812683,
0.026552993804216385,
-0.011777961626648903,
0.009744861163198948,
-0.024029145017266273,
-0.024309571832418442,
-0.007172813639044762,
0.0156338419765234,
0.043150804936885834,
0.03486066311597824,
-0.01587921567261219,
0.03384411334991455,
0.012776984833180904,
-0.06393750756978989,
-0.02134755440056324,
0.04627056047320366,
-0.012233655899763107,
0.013583214022219181,
-0.04255489632487297,
-0.007773104123771191,
0.015213199891149998,
0.03848869353532791,
0.08616139739751816,
-0.0191742405295372,
-0.018280377611517906,
-0.025326121598482132,
-0.0017406231490895152,
0.061308495700359344,
-0.012680587358772755,
-0.04255489632487297,
0.06148376315832138,
0.02478279359638691,
0.02972532995045185,
0.05103783309459686,
-0.051142994314432144,
0.01873607188463211,
-0.009709807112812996,
-0.011707854457199574,
-0.03421217203140259,
-0.03533388301730156,
-0.018648438155651093,
-0.07199979573488235,
0.02851598709821701,
0.005569118075072765,
0.04437767714262009,
0.03442249447107315,
-0.015625078231096268,
-0.018718546256422997,
0.02841082587838173,
-0.006511179264634848,
0.023468289524316788,
-0.06842434406280518,
-0.02066401205956936,
-0.030040811747312546,
-0.012365106493234634,
0.012566664256155491,
0.04178372025489807,
-0.022486792877316475,
-0.0312676839530468,
-0.05478855222463608,
-0.09127920120954514,
0.0022412303369492292,
-0.01105936523526907,
0.05212448909878731,
0.04539422690868378,
-0.04830366373062134,
0.06095796078443527,
0.03368636965751648,
0.0006293190526776016,
0.05731239914894104,
0.03876912221312523,
0.04269510880112648,
-0.03964545950293541,
0.04357144609093666,
-0.036385487765073776,
-0.04535917192697525,
0.02895415388047695,
-0.022732166573405266,
0.05243996903300285,
-0.0579083077609539,
-0.0500563345849514,
-0.03266981989145279,
-0.03947019204497337,
-0.0029620169661939144,
0.014731215313076973,
0.001439382554963231,
0.05938055366277695,
-0.04308069869875908,
0.03247702866792679,
-0.0512131005525589,
-0.03761235997080803,
-0.025624075904488564,
0.01070006750524044,
0.0018808370223268867,
0.010086632333695889,
-0.0030934675596654415,
0.06474373489618301,
-0.09254112094640732,
0.021663036197423935,
0.03568441793322563,
0.0063709658570587635,
0.01776333898305893,
-0.009078845381736755,
0.0038493075408041477,
-0.07024712860584259,
0.005310598760843277,
-0.02197851613163948,
-0.017649415880441666,
0.02327549457550049,
0.008211271837353706,
-0.07150904834270477,
0.004889957141131163,
0.012303763069212437,
-0.02807781845331192,
0.05822379142045975,
0.04556949436664581,
0.05436791107058525,
0.008364630863070488,
-0.05832895264029503,
0.024800321087241173,
0.02774481102824211,
0.0165014136582613,
-0.06698715686798096,
-0.014678634703159332,
0.008044768124818802,
0.021312501281499863,
0.017360223457217216,
0.011655273847281933,
-0.005424522329121828,
0.0036455595400184393,
-0.04483336955308914,
0.011874358169734478,
-0.09730839729309082,
0.06109817326068878,
-0.025378702208399773,
-0.045674651861190796,
0.004386063665151596,
-0.028147924691438675,
-0.04655098915100098,
-0.008084203116595745,
0.03370389714837074,
-0.08560054004192352,
-0.012531610205769539,
-0.018648438155651093,
-0.01748291216790676,
-0.00719034019857645,
-0.061799243092536926,
-0.04458799585700035,
0.005757530219852924,
0.005130949430167675,
0.03722677007317543,
0.03054908663034439,
0.020786698907613754,
0.034054432064294815,
-0.008263852447271347,
0.03244197368621826,
0.0017493865452706814,
-0.030321240425109863,
0.003825208405032754,
0.008991211652755737,
0.02571170963346958,
-0.010752648115158081,
0.039329979568719864,
-0.04090738296508789,
-0.012549137696623802,
0.05047697573900223,
0.008706402033567429,
-0.003354177577421069,
-0.016036955639719963,
-0.042134255170822144,
0.01936703361570835,
0.02527354098856449,
-0.028498459607362747,
0.018262850120663643,
0.03964545950293541,
0.005236110184341669,
-0.054192643612623215,
0.0022247990127652884,
0.010226845741271973,
-0.003792345756664872,
0.017491674050688744,
-0.001115138060413301,
0.008991211652755737,
-0.05741756036877632,
-0.015607551671564579,
-0.026833420619368553,
-0.009718570858240128,
0.04227446764707565,
0.015423520468175411,
0.04031147435307503,
-0.05461328476667404,
0.013548160903155804,
-0.01471368782222271,
0.0625353679060936,
0.029567589983344078,
0.026552993804216385,
-0.019542301073670387,
0.015248253010213375,
0.0032358721364289522,
0.005060842726379633,
-0.014862664975225925,
0.0743834376335144,
0.0037989183329045773,
-0.037682466208934784,
-0.032932721078395844,
-0.009543303400278091,
-0.04241468012332916,
0.029462430626153946,
-0.02211873047053814,
0.0169833991676569,
0.03813815861940384,
-0.025343649089336395,
0.022206364199519157,
-0.10137459635734558,
-0.0736122578382492,
0.01226870995014906,
0.014687398448586464,
-0.02653546631336212,
-0.011646511033177376,
-0.01254037395119667,
0.032564662396907806,
0.022907434031367302,
0.04830366373062134,
-0.034930769354104996,
-0.06221988424658775,
-0.022258944809436798,
0.011515060439705849,
-0.007672325242310762,
0.0410475954413414,
-0.020401110872626305,
-0.024660106748342514,
-0.00994641799479723,
-0.02027842402458191,
0.006357820704579353,
0.0022631387691944838,
-0.06912541389465332,
-0.002725406317040324,
-0.04076717048883438,
0.10431908816099167,
0.027219008654356003,
0.038313426077365875,
-0.027990184724330902,
0.03712160885334015,
0.03351110592484474,
0.013846115209162235,
0.1250707358121872,
0.04108265042304993,
-0.00716404989361763,
0.008386539295315742,
0.004868048708885908,
-0.03049650602042675,
0.010112921707332134,
0.00211854325607419,
0.02497558668255806,
0.07711760699748993,
0.0527554526925087,
-0.031039835885167122,
-0.02458999864757061,
0.048093341290950775,
0.014626055024564266,
-0.016036955639719963,
-0.008539898321032524,
0.02395903691649437,
0.0030102154705673456,
-0.033616263419389725,
-0.0005690709804184735,
0.019349507987499237,
0.08539021760225296,
0.0033147423528134823,
0.06761811673641205,
-0.04917999729514122,
0.0027845590375363827,
0.023415708914399147,
0.04230952262878418,
0.0014098061947152019,
0.05251007899641991,
-0.04139813035726547,
0.027376748621463776,
0.004701544996351004,
-0.010778937488794327,
-0.026991160586476326,
-0.022644532844424248,
0.035368937999010086,
0.006230751983821392,
0.0331956222653389,
0.03412453830242157,
0.05738250911235809,
-0.00807982124388218,
0.038068052381277084,
-0.01684318482875824,
-0.03379153087735176,
0.02997070550918579,
-0.019489722326397896,
0.03154810890555382,
0.08125390857458115,
-0.032214127480983734,
-0.008999974466860294,
-0.026833420619368553,
-0.06057237088680267,
-0.0398908331990242,
-0.0312676839530468,
0.05917023494839668,
0.019156713038682938,
-0.05096772685647011,
0.007790630683302879,
-0.01873607188463211,
-0.005775056779384613,
0.024958061054348946,
0.006340293679386377,
-0.1335536688566208,
-0.005569118075072765,
0.01483637560158968,
-0.0032884522806853056,
0.007900172844529152,
-0.057102080434560776,
0.02027842402458191,
-0.009867548011243343,
-0.035842157900333405,
0.038068052381277084,
-0.01292596198618412,
-0.053176093846559525,
-0.03074188157916069,
-0.03649064898490906,
0.016107063740491867,
-0.023310547694563866,
-0.027481909841299057,
0.014100252650678158,
0.017737049609422684,
0.07084303349256516,
0.05527929961681366,
0.06467362493276596,
-0.024134304374456406,
0.012724404223263264,
0.007593454793095589,
-0.018035003915429115,
0.002434024354442954,
0.007593454793095589,
-0.08756353706121445,
0.010472220368683338,
0.036385487765073776,
-0.009043791331350803,
-0.0016146497800946236,
-0.020506272092461586,
0.08426851034164429,
-0.028813941404223442,
-0.007098325062543154,
-0.08398807793855667,
-0.0379628948867321,
0.0044539798982441425,
-0.001673802500590682,
0.017439095303416252,
-0.05145847424864769,
0.018858758732676506,
0.047953128814697266,
-0.03726182505488396,
-0.010971731506288052,
-0.02672826126217842,
0.041994038969278336,
0.009131425060331821,
-0.0021985089406371117,
-0.021996043622493744,
-0.02280227281153202,
-0.009543303400278091,
0.04311574995517731,
0.022679585963487625,
0.014678634703159332,
-0.03528130427002907,
0.021172286942601204,
-0.00350972730666399,
-0.006879240740090609,
0.03747214376926422,
0.03568441793322563,
0.020068103447556496,
-0.07066776603460312,
-0.008780891075730324,
-0.002276283921673894,
-0.06737273931503296,
-0.020839279517531395,
0.04539422690868378,
-0.017596835270524025,
-0.02879641391336918,
0.0333884172141552,
0.06831918656826019,
-0.004162597935646772,
0.06891509145498276,
-0.013758481480181217,
0.025448808446526527,
-0.01435439009219408,
-0.038313426077365875,
0.016825659200549126,
0.019156713038682938,
0.05987130478024483,
-0.03156563639640808,
0.038068052381277084,
-0.031495530158281326,
0.05962592735886574,
0.023643556982278824,
0.028340719640254974,
0.05478855222463608,
0.034737974405288696,
-0.01105936523526907,
-0.016589047387242317,
-0.0016201268881559372,
0.04062695428729057,
-0.03330078348517418,
-0.10130448639392853,
-0.04381681978702545,
0.009552067145705223,
-0.06109817326068878,
-0.020979493856430054,
-0.006125591695308685,
-0.013302786275744438,
-0.009490723721683025,
-0.0330028273165226,
-0.005144094582647085,
0.050652243196964264,
-0.012908435426652431,
0.016089536249637604,
-0.012741931714117527,
-0.04507874324917793,
-0.03132026270031929,
0.0406620092689991,
0.03771751746535301,
-0.06386739760637283,
-0.035894740372896194,
0.06372718513011932,
0.024905480444431305,
0.03200380504131317,
0.01805252954363823,
0.009692280553281307,
-0.004118781071156263,
0.02420441061258316,
-0.07319161295890808,
0.016667919233441353,
-0.021960990503430367,
-0.0036521318834275007,
0.03389669209718704,
-0.03305540978908539,
0.004736598115414381,
-0.012715641409158707,
0.027727283537387848,
0.055980369448661804,
0.010112921707332134,
-0.0018096346175298095,
-0.040697064250707626,
0.014599764719605446,
0.015423520468175411,
-0.0018633102299645543,
-0.05987130478024483,
-0.030093392357230186,
0.035018403083086014,
-0.004180124495178461,
0.006467362865805626,
0.005853927228599787,
-0.01999799720942974,
0.003468101378530264,
-0.07452365010976791,
0.007777485530823469,
0.07161421328783035,
0.013092465698719025,
0.008614386431872845,
-0.03789278492331505,
-0.0368061289191246,
0.0024625053629279137,
0.034054432064294815,
-0.042239416390657425,
0.022539371624588966,
0.04816344752907753,
0.06271063536405563,
-0.048864517360925674,
0.04577981308102608,
0.04942537471652031,
0.012216129340231419,
-0.003586406819522381,
0.017412804067134857,
-0.003899696981534362,
-0.023731190711259842,
-0.07473396509885788,
-0.045920029282569885,
0.015186909586191177,
-0.016387490555644035,
-0.0884048193693161,
-0.02134755440056324,
-0.027622124180197716,
0.019927889108657837,
0.018946392461657524,
-0.035894740372896194,
0.0008752410067245364,
0.014152833260595798,
0.029269635677337646,
0.025291068479418755,
-0.037927839905023575,
0.0028524750377982855,
0.012663060799241066,
0.01964746229350567,
0.025834396481513977,
0.031881120055913925,
0.06432309001684189,
-0.03345852345228195,
0.008439119905233383,
0.026447832584381104,
-0.010998021811246872,
-0.039084602147340775,
0.07171937078237534,
0.07634642720222473,
0.05040686950087547,
-0.04290543124079704,
-0.016247276216745377,
0.07242044061422348,
0.02145271562039852,
0.04244973510503769,
-0.013039886020123959,
-0.04753248766064644,
0.0004036624450236559,
-0.05272039771080017,
-0.005963469389826059,
0.003305979073047638,
0.08952652662992477,
-0.0437467135488987,
0.046691205352544785,
0.0024887954350560904,
-0.03859385475516319,
0.030321240425109863,
-0.06411277502775192,
-0.014126542955636978,
-0.04132802411913872,
-0.034054432064294815,
-0.049600642174482346,
-0.02415183186531067,
0.07396279275417328,
-0.02730664238333702,
-0.008071058429777622,
-0.01843811757862568,
0.006108064670115709,
0.025624075904488564,
-0.01296977885067463,
-0.0184030644595623,
0.0633065402507782,
-0.001673802500590682,
-0.04840882122516632,
-0.005209819879382849,
-0.008057912811636925,
-0.015528680756688118,
-0.030233606696128845,
-0.020611431449651718,
0.0039698039181530476,
-0.0322316512465477,
-0.017307644709944725,
0.0485139824450016,
-0.0676882266998291,
0.006870477460324764,
-0.008399683982133865,
-0.0021262113004922867,
-0.08391797542572021,
0.019717568531632423,
0.06835424154996872,
-0.01002528890967369,
-0.05408748239278793,
-0.011304739862680435,
-0.015887979418039322,
-0.019822729751467705,
-0.015186909586191177,
0.012776984833180904,
-0.06088785454630852,
0.017079796642065048,
0.009043791331350803,
0.015327123925089836,
-0.010849044658243656,
-0.032564662396907806,
-0.03200380504131317,
-0.03607000783085823,
-0.031215103343129158,
-0.04634067043662071,
0.022329051047563553,
0.02274969220161438,
-0.04153834655880928,
0.015940560027956963,
-0.0033607501536607742,
0.03431733325123787,
0.0433611236512661,
-0.006611958146095276,
-0.019051553681492805,
0.03563183918595314,
-0.012119732797145844,
-0.028638673946261406,
-0.008465409278869629,
-0.005025789141654968,
-0.03351110592484474,
-0.062430206686258316,
-0.021505296230316162,
-0.014144069515168667,
-0.016475124284625053,
-0.02541375532746315,
0.0625353679060936,
-0.01622098684310913,
0.006235133390873671,
0.007124614901840687,
0.01225118339061737,
0.040977489203214645,
-0.025098275393247604,
-0.030847040936350822,
0.015598787926137447,
-0.11069881170988083,
-0.015905505046248436,
-0.05626079812645912,
0.02623751200735569,
0.019664989784359932,
-0.029462430626153946,
-0.04357144609093666,
0.010454692877829075,
-0.005139713175594807,
-0.022434212267398834,
0.017255064100027084,
0.03389669209718704,
0.016247276216745377,
-0.02285485342144966,
0.023468289524316788,
0.014985352754592896,
-0.012943488545715809,
0.014941535890102386,
-0.0027385512366890907,
-0.053947269916534424,
-0.013083702884614468,
0.02304764650762081,
-0.010349532589316368,
-0.05987130478024483,
-0.014608527533710003,
-0.021189814433455467,
-0.006668920163065195,
0.04728711396455765,
-0.014967826195061207,
-0.0035798342432826757,
0.025764290243387222,
0.046200454235076904,
-0.02981296367943287,
-0.044798318296670914,
0.009937655180692673,
0.03897944465279579,
0.033809058368206024,
0.03943513706326485,
0.008053531870245934,
-0.046971630305051804,
-0.058258842676877975,
-0.02972532995045185,
0.00883347075432539,
-0.11139988154172897,
0.05924034118652344,
-0.023538395762443542,
-0.0006145309307612479,
-0.010787701234221458,
-0.0024099252186715603,
-0.017894789576530457,
-0.01522196363657713,
0.025589022785425186,
0.02972532995045185,
0.057487666606903076,
0.005341270472854376,
0.02464257925748825,
-0.03954029828310013,
0.06435814499855042,
0.003397994441911578,
-0.05086256563663483,
0.035018403083086014,
0.0058714537881314754,
-0.015905505046248436,
-0.048478931188583374,
-0.025326121598482132,
0.021908409893512726,
-0.0076986150816082954,
0.027043741196393967,
-0.03426475450396538,
-0.064848892390728,
-0.010665014386177063,
0.031723376363515854,
-0.013644557446241379,
0.025045694783329964,
0.03848869353532791,
-0.049846015870571136,
0.028095345944166183,
-0.0030189789831638336,
0.021908409893512726,
-0.04742732644081116,
0.020558852702379227,
-0.033230677247047424,
-0.07396279275417328,
-0.006200080271810293,
0.04599013552069664,
0.0033213149290531874,
-0.002922581974416971,
0.00407934607937932,
0.07564535737037659,
0.008658203296363354,
-0.00286123831756413,
-0.02304764650762081,
0.05282555893063545,
0.012408923357725143,
-0.017439095303416252,
0.03263476863503456,
-0.008513608016073704,
-0.0326172411441803,
-0.012330053374171257,
-0.05363178625702858,
-0.005827636923640966,
0.024134304374456406,
-0.03543904423713684,
0.035123564302921295,
-0.005691804923117161,
-0.04535917192697525,
0.04045168682932854,
-0.004548185970634222,
0.0014152833027765155,
0.016930818557739258,
0.016930818557739258,
0.019770149141550064,
0.0220661498606205,
0.00871516577899456,
0.003003643127158284,
-0.01626480370759964,
-0.0033344600815325975,
-0.015852926298975945,
0.04577981308102608,
0.007672325242310762,
0.02860362082719803,
0.027902550995349884,
-0.020997019484639168,
0.012785748578608036,
0.006362202111631632,
0.05170384794473648,
0.03733193129301071,
0.06127344071865082,
-0.04357144609093666,
0.048969678580760956,
0.005656751338392496,
-0.023888930678367615,
-0.07087808847427368,
-0.04311574995517731,
-0.06393750756978989,
0.05689175799489021,
0.0750143975019455,
0.010428403504192829,
0.007676707115024328,
0.05997646227478981,
0.027429329231381416
] |
17,829 | imodels.algebraic.slim | _fit_backup | null | def _fit_backup(self, X, y, sample_weight=None):
m = LogisticRegression(C=1 / self.alpha)
m.fit(X, y, sample_weight=sample_weight)
self.model_.coef_ = np.round(m.coef_).astype(int)
self.model_.intercept_ = m.intercept_
| (self, X, y, sample_weight=None) | [
0.008604432456195354,
-0.009578434750437737,
0.09228333085775375,
0.02811589278280735,
-0.014057946391403675,
-0.06362881511449814,
-0.04865521565079689,
0.03176054731011391,
0.03343026340007782,
0.02274766005575657,
-0.005350278690457344,
-0.04251496493816376,
0.025279168039560318,
0.011813702061772346,
-0.05059424415230751,
0.0480806902050972,
-0.009048793464899063,
-0.05027107149362564,
-0.04510033503174782,
-0.0018178379395976663,
0.02001865953207016,
-0.0337354801595211,
-0.04980427026748657,
0.0797155573964119,
-0.0298753809183836,
0.01733454316854477,
-0.03432796150445938,
0.025925511494278908,
0.04743434861302376,
-0.045962125062942505,
0.0189055148512125,
-0.054185036569833755,
0.010126030072569847,
0.010476132854819298,
-0.011508485302329063,
-0.053466878831386566,
0.0023564565926790237,
0.016526615247130394,
0.030342184007167816,
-0.03673379123210907,
-0.0033035275992006063,
-0.014955644495785236,
0.036769699305295944,
0.039426885545253754,
-0.030808987095952034,
0.03917552903294563,
-0.0333225391805172,
0.1023375391960144,
0.05124058574438095,
-0.0562317855656147,
-0.004544594790786505,
-0.0027873513754457235,
-0.00025065403315238655,
0.01930050179362297,
0.033017322421073914,
-0.013950223103165627,
0.04129409417510033,
0.0612948015332222,
0.05142012611031532,
-0.04118637368083,
0.011248152703046799,
-0.011903472244739532,
-0.0149376904591918,
-0.0029534255154430866,
0.008353077806532383,
-0.030414000153541565,
-0.04592621698975563,
0.04405900463461876,
0.014758151024580002,
0.04215588420629501,
0.010817257687449455,
-0.022119272500276566,
0.0038062382955104113,
0.025512570515275,
-0.05630360171198845,
0.024902135133743286,
-0.03615926578640938,
0.016212420538067818,
-0.050558336079120636,
-0.008227399550378323,
-0.026194820180535316,
0.034435685724020004,
-0.0034157398622483015,
0.030360138043761253,
-0.04826023057103157,
-0.05073787644505501,
0.01039533969014883,
-0.0297317486256361,
0.029570164158940315,
0.0511687695980072,
-0.035082027316093445,
0.06829684227705002,
0.04068366065621376,
0.0027536877896636724,
0.10018306970596313,
-0.022388581186532974,
-0.039355069398880005,
0.04632120206952095,
0.03687742352485657,
0.0231246929615736,
-0.0732521340250969,
0.0026661623269319534,
0.0030207529198378325,
0.07820742577314377,
-0.023088784888386726,
-0.0028479460161179304,
0.03213758021593094,
-0.03341231122612953,
-0.004407695960253477,
-0.016903648152947426,
-0.039355069398880005,
0.00484307948499918,
-0.03576427698135376,
-0.007729177363216877,
-0.026015279814600945,
-0.038385555148124695,
-0.02337604947388172,
0.02933676168322563,
-0.016607407480478287,
0.020611140877008438,
0.03763148933649063,
0.023358095437288284,
-0.05238964036107063,
0.009757974185049534,
0.005525329615920782,
-0.00615371810272336,
0.03231711685657501,
0.008294726721942425,
0.021472929045557976,
-0.07662747800350189,
-0.04556713625788689,
-0.008891696110367775,
-0.016086744144558907,
0.04158135876059532,
-0.013052524998784065,
-0.007747131399810314,
-0.007908716797828674,
0.0059248050674796104,
0.02105998806655407,
0.00342471688054502,
0.034166377037763596,
0.02210131846368313,
0.069158636033535,
0.004654562566429377,
0.0863226130604744,
0.014776105061173439,
0.043376754969358444,
0.055800892412662506,
-0.029552210122346878,
-0.023681266233325005,
0.0071681165136396885,
0.0052470434457063675,
0.001600146177224815,
-0.06980497390031815,
-0.013429557904601097,
-0.0014565145829692483,
-0.06258748471736908,
-0.01454270351678133,
0.05213828384876251,
-0.029103361070156097,
-0.010251708328723907,
0.002614544704556465,
0.02208336442708969,
-0.008528128266334534,
0.036949239671230316,
0.07037950307130814,
-0.008110699243843555,
0.03705696389079094,
-0.028457017615437508,
-0.032891646027565,
-0.03264028951525688,
-0.05357459932565689,
0.04050412029027939,
0.00707834679633379,
0.03484862670302391,
0.04423854500055313,
0.01962367258965969,
-0.07199535518884659,
0.0265000369399786,
0.06567556411027908,
0.04463353008031845,
0.021652469411492348,
-0.01285503152757883,
0.007621453609317541,
-0.01431827899068594,
-0.06309019774198532,
-0.005413117352873087,
0.015036436729133129,
-0.0496247299015522,
0.00010260404815198854,
0.03576427698135376,
0.020431600511074066,
0.05921214073896408,
-0.06036119535565376,
-0.0365542508661747,
0.0281877089291811,
-0.016248328611254692,
-0.04897838830947876,
-0.007284817285835743,
0.04416672885417938,
-0.019533902406692505,
-0.0863226130604744,
0.05325143039226532,
-0.03362775593996048,
-0.0024125627242028713,
0.03860100358724594,
-0.04115046560764313,
0.02903154492378235,
-0.05501091852784157,
-0.04718299210071564,
0.0355667844414711,
0.0062704188749194145,
-0.005983155220746994,
-0.019605718553066254,
0.024596918374300003,
0.02520735189318657,
0.03159895911812782,
-0.0026392312720417976,
0.028941774740815163,
-0.010377385653555393,
-0.013662959448993206,
-0.02500985935330391,
-0.10772372782230377,
0.004097990226000547,
0.07461663335561752,
-0.02513553574681282,
0.0679018571972847,
-0.035925865173339844,
-0.028474971652030945,
-0.053610507398843765,
0.01738840527832508,
-0.026123004034161568,
0.010583856143057346,
-0.04671619087457657,
-0.04118637368083,
0.022460397332906723,
-0.010700557380914688,
0.011041682213544846,
-0.006189625710248947,
0.019982751458883286,
-0.01790907047688961,
0.01775646209716797,
0.03763148933649063,
0.0003731056349352002,
-0.008510174229741096,
0.03957051783800125,
0.029300853610038757,
-0.010126030072569847,
0.005695892032235861,
-0.03939097747206688,
-0.02190382406115532,
0.05149194225668907,
-0.027631135657429695,
-0.006427515763789415,
0.0004870010307058692,
-0.027110472321510315,
0.04308949038386345,
-0.0062704188749194145,
-0.03231711685657501,
-0.025153489783406258,
-0.05734493210911751,
0.023986482992768288,
-0.026966840028762817,
-0.008438359014689922,
-0.04578258469700813,
0.006117810029536486,
-0.004892452619969845,
0.0057362886145710945,
0.027505459263920784,
0.06097162887454033,
0.030019011348485947,
0.04100683331489563,
-0.011580300517380238,
0.04905020445585251,
0.013285926543176174,
0.01639196090400219,
0.03551292419433594,
-0.012262551113963127,
0.02675139158964157,
0.03493839502334595,
0.013600120320916176,
-0.0198929812759161,
0.08431176841259003,
0.02391466684639454,
-0.013330811634659767,
-0.025279168039560318,
0.00932707916945219,
0.005552260670810938,
0.0337354801595211,
-0.012962755747139454,
-0.003193559590727091,
0.03820601478219032,
0.07669929414987564,
0.01885165274143219,
-0.02423783950507641,
-0.019318455830216408,
-0.015305746346712112,
-0.022370627149939537,
0.025297122076153755,
0.05012744292616844,
-0.03380729630589485,
0.024866227060556412,
0.03143737465143204,
-0.006571147590875626,
0.04567486047744751,
-0.019156869500875473,
0.0496247299015522,
-0.04671619087457657,
-0.05120467767119408,
0.009793882258236408,
0.04703935980796814,
0.09738224744796753,
0.0034561362117528915,
-0.0563754178583622,
-0.050881508737802505,
-0.06197705119848251,
0.06244385614991188,
0.023878760635852814,
0.01641889102756977,
0.07163628190755844,
-0.00531437061727047,
-0.023699220269918442,
0.030485814437270164,
-0.03957051783800125,
-0.0032137578818947077,
0.011275083757936954,
0.07102584838867188,
0.07278533279895782,
-0.05662677437067032,
-0.056016337126493454,
-0.0431613065302372,
-0.025566430762410164,
-0.0022722973953932524,
0.015180069021880627,
-0.05267690494656563,
0.01969548873603344,
-0.05009153485298157,
-0.05274871736764908,
0.009605365805327892,
0.03691333159804344,
-0.043628111481666565,
-0.03310709074139595,
-0.03484862670302391,
-0.0005445097922347486,
-0.00215447461232543,
-0.0316348671913147,
0.016454799100756645,
0.024507148191332817,
-0.005507375579327345,
0.011939380317926407,
-0.04617756977677345,
0.03134760633111,
0.04761388897895813,
0.03192213177680969,
-0.008357565850019455,
0.020485462620854378,
-0.014919736422598362,
0.016014927998185158,
0.022621983662247658,
-0.018259171396493912,
-0.045315783470869064,
0.019031191244721413,
-0.05238964036107063,
-0.003164384514093399,
0.002636987017467618,
0.01904914528131485,
-0.0140220383182168,
-0.005673449486494064,
0.024273747578263283,
-0.021077942103147507,
0.004562548827379942,
-0.0281877089291811,
-0.07199535518884659,
0.06937408447265625,
-0.005507375579327345,
0.00523357791826129,
-0.03466908633708954,
-0.018815744668245316,
0.028977682814002037,
0.030539676547050476,
0.035153843462467194,
-0.014632472768425941,
-0.01286400854587555,
-0.00939889531582594,
-0.001959225395694375,
-0.007621453609317541,
0.02210131846368313,
-0.029965151101350784,
0.00932707916945219,
-0.028205662965774536,
0.0035234636161476374,
-0.030360138043761253,
-0.01023375429213047,
-0.02553052268922329,
0.008523640222847462,
-0.013627051375806332,
0.012047103606164455,
0.03395092859864235,
-0.08725622296333313,
0.0017314344877377152,
-0.018070654943585396,
0.022442443296313286,
-0.07519116252660751,
-0.015036436729133129,
-0.048044782131910324,
0.014228508807718754,
-0.03547701612114906,
0.0072174896486103535,
-0.014488841407001019,
-0.014955644495785236,
-0.05307189002633095,
0.0255843847990036,
0.05533408746123314,
-0.010655672289431095,
0.04158135876059532,
0.015242907218635082,
0.042012255638837814,
-0.008878231048583984,
0.003370855003595352,
0.02960607036948204,
0.0399295948445797,
0.039103712886571884,
-0.010996797122061253,
0.012899916619062424,
0.037667397409677505,
0.014596565626561642,
-0.06348518282175064,
-0.06237204000353813,
0.026661623269319534,
0.02053932473063469,
-0.05142012611031532,
-0.04115046560764313,
-0.05235373228788376,
0.0022644426207989454,
0.0078728087246418,
-0.029498348012566566,
0.02940857782959938,
0.008290238678455353,
-0.04348447918891907,
0.04646483436226845,
0.0037164685782045126,
-0.05389777198433876,
0.06212068349123001,
0.010772372595965862,
-0.037739213556051254,
-0.023340141400694847,
0.005013641901314259,
0.017415335401892662,
-0.0431613065302372,
-0.009542526677250862,
0.09867493808269501,
0.017316589131951332,
0.038062382489442825,
0.024381469935178757,
-0.035997677594423294,
-0.003602012060582638,
-0.0006727122236043215,
-0.053466878831386566,
0.04420263692736626,
0.0037658419460058212,
-0.0045243967324495316,
0.008685225620865822,
-0.006818014197051525,
0.0044458480551838875,
-0.0002227412478532642,
0.0067596640437841415,
0.04560304433107376,
-0.021221574395895004,
0.042586781084537506,
0.027774767950177193,
0.02292720042169094,
-0.03802647441625595,
0.015566078945994377,
-0.02786453813314438,
-0.02605118788778782,
0.03127579018473625,
-0.001251166220754385,
0.020754771307110786,
0.01885165274143219,
-0.006279395427554846,
-0.012451067566871643,
-0.011230198666453362,
0.04513624310493469,
0.02520735189318657,
0.012540837749838829,
0.005529818125069141,
-0.036769699305295944,
-0.016553545370697975,
0.01661638543009758,
0.05504682660102844,
-0.015637895092368126,
0.06567556411027908,
0.012998662889003754,
0.02538689225912094,
-0.08423995226621628,
-0.00531437061727047,
0.001772953080944717,
0.014632472768425941,
0.008209445513784885,
0.008658294565975666,
0.006656428799033165,
-0.02746955119073391,
-0.036500390619039536,
-0.03244279697537422,
-0.03258642926812172,
0.04800887405872345,
-0.029103361070156097,
-0.028295433148741722,
-0.03899598866701126,
0.01910300739109516,
-0.04165317490696907,
0.023681266233325005,
-0.015557101927697659,
0.029624024406075478,
-0.027254102751612663,
-0.004250598605722189,
-0.04129409417510033,
0.06337746232748032,
0.04754207283258438,
-0.024650780484080315,
0.01860029622912407,
0.04750616475939751,
0.07353939861059189,
-0.069158636033535,
0.05479547008872032,
0.021365206688642502,
0.0030409509781748056,
-0.010700557380914688,
0.02538689225912094,
0.04747025668621063,
0.025189397856593132,
-0.03565655276179314,
0.027631135657429695,
0.021347252652049065,
0.000013141102499503177,
-0.039821870625019073,
0.007141185458749533,
-0.1088009625673294,
-0.011652116663753986,
-0.07540661096572876,
-0.05350278317928314,
-0.02461487241089344,
-0.01664331555366516,
-0.010969866067171097,
-0.014004084281623363,
0.04014504328370094,
-0.030144689604640007,
0.015593010000884533,
-0.12804760038852692,
-0.023286279290914536,
-0.032891646027565,
-0.057165391743183136,
0.010503063909709454,
0.05504682660102844,
0.02545870840549469,
0.0009644639794714749,
-0.037918753921985626,
0.04646483436226845,
0.028923820704221725,
0.013501374050974846,
-0.02553052268922329,
-0.021849961951375008,
0.03691333159804344,
-0.04197634756565094,
0.00915202870965004,
0.0050764805637300014,
-0.034687042236328125,
0.05921214073896408,
-0.0764838457107544,
-0.025440754368901253,
0.016131628304719925,
0.03849327936768532,
0.04003731906414032,
0.05773991718888283,
-0.04883475601673126,
0.05799127370119095,
0.013510351069271564,
-0.058529891073703766,
-0.019677534699440002,
0.05867352336645126,
0.037021055817604065,
-0.02553052268922329,
-0.04984017834067345,
-0.04413082078099251,
0.027954308316111565,
-0.046931639313697815,
-0.001933416468091309,
0.014443956315517426,
-0.02098817378282547,
0.00785036664456129,
-0.033214814960956573,
0.05472365394234657,
-0.016329122707247734,
-0.0666450783610344,
0.010323523543775082,
-0.04438217729330063,
-0.03513588756322861,
-0.037487857043743134,
0.0065397280268371105,
0.007590034510940313,
0.02806203067302704,
0.02344786562025547,
0.025315076112747192,
-0.022442443296313286,
-0.010503063909709454,
-0.0027828628662973642,
-0.035979725420475006,
-0.04222770035266876,
0.005713846068829298,
-0.018636204302310944,
-0.02617686614394188,
0.002213947009295225,
0.02553052268922329,
-0.027451597154140472,
-0.04244314879179001,
0.00500466488301754,
-0.007585546001791954,
-0.045315783470869064,
0.01409385446459055,
0.03971414640545845,
0.0006233388558030128,
-0.03619517385959625,
-0.001197304343804717,
0.07569387555122375,
-0.06140252575278282,
-0.015987996011972427,
0.0023093274794518948,
-0.02053932473063469,
0.00032541542896069586,
-0.002482134150341153,
-0.013339788652956486,
-0.013950223103165627,
0.032550521194934845,
0.016248328611254692,
0.06405971199274063,
-0.000984101090580225,
-0.001384698785841465,
-0.0030880803242325783,
0.018151449039578438,
-0.0011815946782007813,
-0.023627404123544693,
-0.010709534399211407,
0.06556784361600876,
-0.0012657537590712309,
-0.05475956201553345,
-0.010592833161354065,
-0.020054567605257034,
-0.011328945867717266,
-0.013142295181751251,
-0.030916709452867508,
-0.007347655948251486,
-0.030288321897387505,
-0.007392541039735079,
0.007204024121165276,
0.02202950231730938,
0.008537105284631252,
0.0017819299828261137,
0.05174329876899719,
0.06556784361600876,
-0.04495670273900032,
-0.047972965985536575,
0.049911994487047195,
0.04682391509413719,
0.031904175877571106,
0.051276493817567825,
0.0612948015332222,
-0.03856509551405907,
-0.03989368677139282,
-0.011409738101065159,
-0.049337469041347504,
-0.07720200717449188,
0.025243259966373444,
-0.03238893300294876,
0.019785258919000626,
-0.04061184450984001,
-0.048367954790592194,
-0.018097586929798126,
-0.010907027870416641,
-0.013061502017080784,
-0.002376654651015997,
0.057560380548238754,
0.01681387796998024,
0.05648314207792282,
-0.044094912707805634,
0.062479760497808456,
0.08373724669218063,
-0.06244385614991188,
0.026320498436689377,
-0.014812012203037739,
-0.02553052268922329,
0.012837077490985394,
-0.030719216912984848,
-0.004145119339227676,
-0.036949239671230316,
-0.003501021070405841,
0.005094434600323439,
-0.0562317855656147,
-0.026158912107348442,
0.01130201481282711,
-0.03140146657824516,
-0.0006452202214859426,
0.037416040897369385,
-0.016508661210536957,
0.034687042236328125,
0.013806590810418129,
-0.023735128343105316,
-0.07684292644262314,
0.02560233883559704,
-0.032478705048561096,
-0.0562317855656147,
0.0562317855656147,
0.0021971152164041996,
-0.03971414640545845,
0.005511864088475704,
0.04280222952365875,
0.047003451734781265,
-0.07483208179473877,
-0.031509190797805786,
0.007347655948251486,
0.03432796150445938,
0.011670070700347424,
-0.024902135133743286,
0.009264240972697735,
0.005134831182658672,
-0.010018306784331799,
-0.027433643117547035,
0.025799833238124847,
-0.022262902930378914,
0.01431827899068594,
-0.049014296382665634,
0.02610504999756813,
-0.01486587431281805,
0.0005633053369820118,
0.040324583649635315,
0.023465819656848907,
0.003171117277815938,
-0.0924987718462944,
-0.012603675946593285,
0.09458143264055252,
0.015153137966990471,
-0.009596388787031174,
0.008959023281931877,
0.008137630298733711,
0.06556784361600876,
-0.026966840028762817,
0.014004084281623363,
0.01409385446459055,
-0.010036260820925236,
0.02319650910794735,
-0.043556295335292816,
-0.0164458230137825,
-0.011418715119361877,
0.017962932586669922,
0.04211997613310814,
0.09321693331003189,
0.00478024035692215,
-0.005197669845074415,
0.027756813913583755,
0.04843977093696594,
0.013276949524879456,
0.003045439487323165,
-0.08215729892253876,
0.012666515074670315,
0.027379781007766724,
-0.005013641901314259,
0.007648384664207697,
0.060792092233896255,
0.05831444635987282
] |
17,838 | imodels.algebraic.slim | fit | fit a logistic model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
| def fit(self, X, y, sample_weight=None):
'''fit a logistic model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
'''
X, y = check_X_y(X, y)
check_classification_targets(y)
self.n_features_in_ = X.shape[1]
self.classes_, y = np.unique(y, return_inverse=True) # deals with str inputs
self.model_ = LogisticRegression()
self.model_.classes_ = self.classes_
try:
import cvxpy as cp # package for optimization, import here to make it optional
from cvxpy.error import SolverError
# declare the integer-valued optimization variable
w = cp.Variable(X.shape[1], integer=True)
# set up the minimization problem
logits = -X @ w
residuals = cp.multiply(1 - y, logits) - cp.logistic(logits)
if sample_weight is not None:
residuals = cp.multiply(sample_weight, residuals)
celoss = -cp.sum(residuals)
l1_penalty = self.alpha * cp.norm(w, 1)
obj = cp.Minimize(celoss + l1_penalty)
prob = cp.Problem(obj)
try:
# solve the problem using an appropriate solver
prob.solve()
self.model_.coef_ = np.array([w.value.astype(int)])
self.model_.intercept_ = 0
except SolverError:
warnings.warn("mosek solver required for mixed-integer exponential cone "
"programming. Rounding non-integer coefficients instead")
self._fit_backup(X, y, sample_weight)
except ImportError:
warnings.warn("Should install cvxpy with pip install cvxpy. Rounding non-integer "
"coefficients instead.")
self._fit_backup(X, y, sample_weight)
return self
| (self, X, y, sample_weight=None) | [
-0.0014910888858139515,
-0.01738128997385502,
0.07101744413375854,
0.042549245059490204,
0.020222369581460953,
-0.08471585065126419,
-0.049781087785959244,
0.005390400066971779,
0.040215156972408295,
0.004534249659627676,
-0.010886025615036488,
-0.009298081509768963,
0.03357640653848648,
0.029616111889481544,
-0.05747209116816521,
0.05180906131863594,
-0.031931065022945404,
-0.04526596888899803,
-0.024259191006422043,
0.023953082039952278,
0.008207566104829311,
-0.00014685193309560418,
-0.01976320520043373,
0.10331201553344727,
-0.014836753718554974,
0.01780219003558159,
0.005892611108720303,
0.015649856999516487,
0.013220111839473248,
-0.06837724894285202,
-0.036828819662332535,
0.012952265329658985,
-0.030821418389678,
-0.017486514523625374,
-0.04840359091758728,
-0.0318545363843441,
0.05184732750058174,
0.007317934650927782,
-0.002380720106884837,
-0.05200038105249405,
-0.019485794007778168,
0.0017230627126991749,
-0.0034700401592999697,
0.0034652571193873882,
-0.040636058896780014,
-0.004474462475627661,
-0.06772676855325699,
0.11831139028072357,
0.011393019929528236,
-0.07319847494363785,
-0.021810313686728477,
-0.03881853446364403,
0.0061700232326984406,
-0.02148507349193096,
-0.020509349182248116,
0.044271111488342285,
0.019648414105176926,
0.063747338950634,
0.062063734978437424,
-0.03860808163881302,
-0.020758062601089478,
-0.00004592392360791564,
0.012579194270074368,
0.021580731496214867,
-0.005749122239649296,
-0.02785598114132881,
-0.05907916650176048,
0.03885679692029953,
0.029195209965109825,
0.035814832895994186,
-0.0095467958599329,
-0.04859491065144539,
0.007595346309244633,
0.01613771915435791,
-0.004840359091758728,
0.03443733975291252,
-0.07373417168855667,
0.004321407526731491,
-0.005792168900370598,
0.0030850116163492203,
0.010015525855123997,
0.028755176812410355,
0.0038191964849829674,
-0.06259942799806595,
-0.01616641692817211,
-0.0722801461815834,
-0.007088351994752884,
-0.02544536627829075,
0.02550276182591915,
0.05165600776672363,
-0.03294505551457405,
0.05578848719596863,
0.028085563331842422,
0.02313041314482689,
0.07836407423019409,
0.057892993092536926,
0.016702109947800636,
0.01040772907435894,
0.017505647614598274,
0.00010754194954643026,
-0.06474220007658005,
0.043658893555402756,
0.0004567730356939137,
0.07668047398328781,
-0.044462431222200394,
-0.03250502049922943,
-0.0004173135675955564,
0.005696509964764118,
-0.004732742439955473,
-0.0159368347376585,
-0.06673190742731094,
-0.04844185709953308,
-0.0180509053170681,
-0.03462865576148033,
-0.023034753277897835,
-0.037460170686244965,
-0.07488208264112473,
0.027243761345744133,
-0.052344754338264465,
0.017352592200040817,
0.024909675121307373,
0.02332173101603985,
-0.05693639814853668,
-0.012789645232260227,
0.020662402734160423,
-0.01304792519658804,
0.022250346839427948,
-0.014291495084762573,
0.02885083667933941,
-0.06068624183535576,
-0.03866547718644142,
-0.012177425436675549,
0.007456640247255564,
0.021370282396674156,
0.007083569187670946,
-0.02571321278810501,
-0.05238301679491997,
-0.007255755830556154,
0.04132480546832085,
0.0062226359732449055,
0.037881072610616684,
0.02035629376769066,
0.043850209563970566,
0.007638392969965935,
0.07025217264890671,
0.03309810906648636,
0.05460231378674507,
0.012952265329658985,
-0.022824302315711975,
-0.006600489839911461,
-0.022135555744171143,
-0.013535787351429462,
0.015841174870729446,
-0.03847416117787361,
-0.01953362300992012,
-0.015975099056959152,
-0.014674132689833641,
-0.035546984523534775,
0.054870158433914185,
-0.006887467578053474,
-0.020719798281788826,
-0.0029893522150814533,
-0.005313872825354338,
0.017496081069111824,
0.033021580427885056,
0.019380569458007812,
-0.02374263107776642,
0.020853722468018532,
-0.03520261123776436,
0.009259818121790886,
-0.01230178214609623,
-0.06887467950582504,
0.009570710361003876,
0.011192134581506252,
0.01631947234272957,
0.07920587807893753,
-0.0008591398363932967,
-0.015822043642401695,
0.030821418389678,
0.06087756156921387,
0.03631225973367691,
0.01701778545975685,
-0.04844185709953308,
0.00007092238229233772,
-0.0057204244658350945,
0.04132480546832085,
0.014932412654161453,
0.029156947508454323,
-0.07943546026945114,
-0.006562225986272097,
0.022020764648914337,
-0.03413122892379761,
0.034513864666223526,
-0.037479303777217865,
0.008241046220064163,
0.03717319294810295,
0.010417294688522816,
-0.01137388776987791,
-0.007351415231823921,
0.027989903464913368,
0.02358957752585411,
-0.03120405413210392,
0.07602999359369278,
-0.016252510249614716,
-0.027569003403186798,
0.006471349857747555,
-0.027683794498443604,
0.05571196228265762,
-0.025387970730662346,
-0.05376050993800163,
0.026459354907274246,
-0.0025517111644148827,
-0.03990904986858368,
0.0403682142496109,
0.02672720141708851,
0.001198132405988872,
-0.006241767667233944,
-0.034915633499622345,
0.0016381650930270553,
-0.015238522551953793,
0.013114886358380318,
-0.006724847014993429,
-0.08999624103307724,
0.021791182458400726,
0.08104253560304642,
-0.03273460268974304,
0.03413122892379761,
0.005376051180064678,
0.03424602001905441,
-0.0487862303853035,
0.020471084862947464,
-0.07457596808671951,
0.059806179255247116,
-0.022786039859056473,
-0.040865641087293625,
0.0077388351783156395,
0.004519900772720575,
0.0573573000729084,
-0.03889505937695503,
-0.00673919590190053,
-0.010637311264872551,
-0.0012579194735735655,
0.027128970250487328,
0.012215688824653625,
-0.002312562894076109,
0.023876555263996124,
0.02718636579811573,
0.027435079216957092,
0.01762043870985508,
-0.014932412654161453,
-0.02018410712480545,
0.015362879261374474,
-0.05716598033905029,
-0.017314327880740166,
-0.0381489172577858,
-0.08395057916641235,
0.02865951880812645,
0.003068271093070507,
-0.0021092870738357306,
-0.04652867093682289,
-0.039143774658441544,
0.0446154847741127,
-0.016281208023428917,
0.05406662076711655,
-0.06971647590398788,
-0.00987203698605299,
0.0012495492119342089,
0.02035629376769066,
0.03231370449066162,
0.07564735412597656,
-0.02462269738316536,
0.04606950655579567,
-0.0034819976426661015,
0.042166609317064285,
-0.02481401525437832,
0.03434167802333832,
-0.033002451062202454,
-0.01846224069595337,
0.006748761981725693,
0.03964120149612427,
0.005232562310993671,
-0.014922847039997578,
0.0424344539642334,
0.0024560517631471157,
-0.016070757061243057,
-0.004864274058490992,
-0.017725663259625435,
-0.008006680756807327,
-0.013287073001265526,
0.002936739707365632,
0.0013129235012456775,
0.030247462913393974,
0.07071133702993393,
0.0276263989508152,
0.029673507437109947,
0.0007365763885900378,
0.03564264625310898,
-0.012751380912959576,
0.02842993661761284,
0.008451497182250023,
-0.02142767794430256,
0.041516125202178955,
-0.014616737142205238,
-0.06818593293428421,
0.025387970730662346,
-0.020528480410575867,
0.0033241596538573503,
-0.0487479642033577,
-0.02293909341096878,
0.06118367239832878,
0.030917076393961906,
0.08999624103307724,
0.024546168744564056,
-0.055329322814941406,
-0.032371100038290024,
0.002088959328830242,
0.08349141478538513,
0.03038138523697853,
0.035336535423994064,
0.041898760944604874,
-0.008231480605900288,
0.0021786398719996214,
0.018337883055210114,
-0.05131163448095322,
-0.0002552906807977706,
0.0015365270664915442,
0.06221679225564003,
0.029137814417481422,
-0.03925856575369835,
-0.05004893243312836,
-0.022805171087384224,
0.01060861349105835,
0.01517156045883894,
0.018376147374510765,
-0.007757966872304678,
0.02439311519265175,
0.010465124621987343,
-0.012799210846424103,
0.018156129866838455,
-0.014387154951691628,
0.01370797399431467,
0.019610151648521423,
-0.0487862303853035,
-0.003388729877769947,
-0.010780800133943558,
-0.045763395726680756,
0.028162090107798576,
0.025100992992520332,
0.003933987580239773,
0.015286351554095745,
-0.0039483364671468735,
-0.038321103900671005,
0.06833898276090622,
0.028353407979011536,
-0.0180796030908823,
0.02821948565542698,
-0.037249721586704254,
-0.015008940361440182,
0.07679526507854462,
-0.030515307560563087,
-0.029195209965109825,
-0.02932913415133953,
-0.03656097501516342,
-0.005715641658753157,
0.01761087216436863,
0.032371100038290024,
-0.006672234274446964,
-0.0069735608994960785,
0.031720615923404694,
-0.014090610668063164,
-0.02144680917263031,
-0.029998747631907463,
-0.09940911829471588,
0.014406286180019379,
-0.004381194710731506,
0.02848733216524124,
-0.02592366375029087,
0.0180509053170681,
-0.0212172269821167,
-0.006280031520873308,
0.055520642548799515,
-0.02508186176419258,
-0.00912111159414053,
-0.011813919991254807,
-0.026650672778487206,
-0.04166917875409126,
0.012464403174817562,
-0.0036972309462726116,
0.01867268979549408,
0.012875738553702831,
0.035776566714048386,
0.00578738609328866,
0.010111184790730476,
-0.03019006736576557,
-0.021982500329613686,
-0.003305027959868312,
0.05456405133008957,
0.07170619070529938,
-0.05884958431124687,
-0.02651675045490265,
-0.04802095517516136,
0.020643271505832672,
-0.04760005325078964,
0.010637311264872551,
-0.045533813536167145,
0.06975474208593369,
-0.01177565660327673,
0.019256211817264557,
-0.0201458428055048,
0.0286786500364542,
-0.04779137298464775,
0.06688496470451355,
0.0722036212682724,
-0.03990904986858368,
-0.0552527979016304,
0.010551217943429947,
0.020260633900761604,
0.004527075216174126,
0.01083819568157196,
0.032791998237371445,
0.056592024862766266,
-0.010465124621987343,
0.008748040534555912,
0.03011353872716427,
-0.023034753277897835,
-0.004936018493026495,
-0.003130449680611491,
-0.04752352833747864,
0.018194394186139107,
-0.03059183619916439,
-0.097572460770607,
0.005964355543255806,
-0.05708945542573929,
-0.01952405832707882,
-0.03971773013472557,
-0.04717915505170822,
-0.024546168744564056,
0.038531556725502014,
-0.033825118094682693,
0.0297500342130661,
0.01083819568157196,
-0.03487737104296684,
0.04289361834526062,
0.03273460268974304,
-0.017343025654554367,
-0.03636965528130531,
0.017888283357024193,
-0.01567855477333069,
-0.11838791519403458,
-0.007647959049791098,
0.03233283385634422,
0.02293909341096878,
0.01743868552148342,
0.047026097774505615,
0.007480555213987827,
-0.003015658585354686,
-0.04373541846871376,
-0.033863384276628494,
0.04105696082115173,
-0.014157572761178017,
-0.002786076394841075,
0.010034658014774323,
0.02699504792690277,
-0.007604912389069796,
-0.07721616327762604,
0.009929432533681393,
0.05219170078635216,
-0.003608745988458395,
0.018988365307450294,
0.021178962662816048,
0.028774309903383255,
-0.019380569458007812,
0.018605729565024376,
-0.03719232603907585,
-0.03206498920917511,
0.06730586290359497,
-0.01743868552148342,
0.04090390354394913,
0.06202547252178192,
-0.00710748415440321,
0.03485823795199394,
-0.012053068727254868,
0.08104253560304642,
0.01304792519658804,
-0.012799210846424103,
-0.017142141237854958,
0.004921669606119394,
-0.023627839982509613,
-0.018184827640652657,
0.029233474284410477,
-0.035164348781108856,
0.0701756402850151,
0.010388596914708614,
0.04802095517516136,
-0.04752352833747864,
-0.027951639145612717,
-0.020509349182248116,
-0.0233599953353405,
-0.01254093088209629,
-0.0010211627231910825,
-0.011966975405812263,
0.021504204720258713,
-0.07740748673677444,
-0.04052126780152321,
0.03967946767807007,
0.022613853216171265,
-0.02525404840707779,
0.006016968283802271,
-0.05184732750058174,
-0.020930249243974686,
-0.07874671369791031,
-0.01678820326924324,
-0.009723764844238758,
-0.005648680031299591,
0.0191509872674942,
0.008580637164413929,
0.024278324097394943,
0.06321164965629578,
-0.0020351510029286146,
-0.0180317722260952,
0.023436522111296654,
0.01573595032095909,
0.08639945834875107,
-0.0404064767062664,
0.05471710488200188,
0.062293317168951035,
0.008188433945178986,
-0.03372946009039879,
0.04228140041232109,
0.0763361006975174,
0.01400451734662056,
-0.04928365722298622,
-0.02504359744489193,
0.047217417508363724,
-0.003001309698447585,
-0.018117865547537804,
-0.027760321274399757,
-0.056592024862766266,
-0.02376176416873932,
-0.02529231272637844,
-0.0509672611951828,
-0.023053884506225586,
0.02439311519265175,
0.027702925726771355,
-0.0036350523587316275,
0.007231840863823891,
-0.003809630637988448,
0.06657885760068893,
-0.10025092214345932,
-0.019256211817264557,
-0.011459981091320515,
-0.013134018518030643,
-0.02445051074028015,
0.07384896278381348,
0.04082737863063812,
-0.006514396518468857,
-0.023436522111296654,
0.028697781264781952,
0.0075570824556052685,
0.01616641692817211,
-0.017572607845067978,
-0.018758783116936684,
0.04518944025039673,
-0.08747083693742752,
-0.038110654801130295,
0.021542469039559364,
-0.014932412654161453,
0.04545728862285614,
-0.039794258773326874,
0.010149449110031128,
0.004390760790556669,
0.0276263989508152,
-0.05268912762403488,
0.05004893243312836,
-0.10239368677139282,
0.04013863205909729,
-0.0031734963413327932,
-0.02550276182591915,
-0.053377874195575714,
0.019064893946051598,
-0.0027932508382946253,
-0.025617552921175957,
0.017926547676324844,
-0.06474220007658005,
0.022441664710640907,
-0.04633735120296478,
-0.016462961211800575,
0.008652381598949432,
-0.05559717118740082,
0.014320192858576775,
-0.030266594141721725,
0.06516309827566147,
-0.01230178214609623,
-0.06179589033126831,
0.013669710606336594,
0.017955245450139046,
-0.05326308310031891,
-0.005519540049135685,
0.062063734978437424,
0.016395999118685722,
-0.03520261123776436,
-0.024967070668935776,
-0.005208647344261408,
0.0032428493723273277,
-0.0022599503863602877,
-0.002033955417573452,
-0.030725758522748947,
-0.0361018106341362,
0.05674508213996887,
-0.0424344539642334,
-0.02695678360760212,
-0.007246189750730991,
0.03097447194159031,
0.004534249659627676,
-0.07610651850700378,
0.023627839982509613,
-0.03061096742749214,
0.011249530129134655,
0.06305859237909317,
0.015343747101724148,
-0.007566648535430431,
-0.030477045103907585,
-0.0004143242258578539,
0.017897849902510643,
-0.04989587888121605,
0.011287794448435307,
-0.024680092930793762,
-0.056132860481739044,
-0.002408222295343876,
0.03633139282464981,
0.0383019745349884,
0.029348265379667282,
0.0487479642033577,
0.0022683204151690006,
0.04117175191640854,
0.017457816749811172,
0.004180310294032097,
0.007313151378184557,
0.0007305977051146328,
0.010417294688522816,
-0.030840549618005753,
0.014052347280085087,
0.02739681676030159,
-0.013927990570664406,
-0.011316492222249508,
0.0029080419335514307,
-0.01743868552148342,
-0.0024094178806990385,
0.04392673820257187,
-0.04143959656357765,
-0.009106762707233429,
-0.026918519288301468,
-0.047255679965019226,
-0.025407103821635246,
0.04388847574591637,
-0.00816930178552866,
-0.03078315407037735,
0.03847416117787361,
0.01978233829140663,
-0.019495360553264618,
-0.0339973047375679,
0.03466692194342613,
0.10530173033475876,
0.0014767399989068508,
0.022212082520127296,
0.03206498920917511,
0.029424792155623436,
-0.06749718636274338,
-0.03357640653848648,
-0.03017093427479267,
-0.04331452026963234,
0.0071983602829277515,
-0.02697591483592987,
0.034513864666223526,
-0.006983126979321241,
-0.030266594141721725,
-0.02739681676030159,
-0.003096969099715352,
-0.025139257311820984,
-0.0029893522150814533,
0.08624640107154846,
0.04572513327002525,
0.0005090867052786052,
-0.0254836305975914,
0.07779011875391006,
-0.009709415957331657,
-0.062331583350896835,
0.00387659203261137,
0.010723404586315155,
-0.029577847570180893,
-0.027569003403186798,
0.02504359744489193,
-0.009451135993003845,
-0.014463681727647781,
0.011785222217440605,
-0.03862721472978592,
-0.08953707665205002,
-0.012340046465396881,
0.029156947508454323,
-0.03627399727702141,
0.013382731936872005,
0.007762750145047903,
-0.04714088886976242,
0.055750224739313126,
-0.0007485338137485087,
-0.006638753693550825,
-0.02931000106036663,
0.02295822650194168,
0.03650357946753502,
-0.05249780789017677,
0.021925104781985283,
0.04587818682193756,
-0.015248088166117668,
-0.01484631933271885,
0.04411805793642998,
0.07250972837209702,
-0.019284909591078758,
-0.017543910071253777,
0.004790137987583876,
0.025196652859449387,
0.05437273159623146,
-0.0030515308026224375,
-0.0033313340973109007,
0.004146829713135958,
0.013784501701593399,
-0.02802816778421402,
0.046834781765937805,
-0.024048741906881332,
0.02737768366932869,
-0.01635773666203022,
0.057663410902023315,
-0.011861749924719334,
-0.05708945542573929,
0.011230398900806904,
0.025751477107405663,
0.0036350523587316275,
-0.014148006215691566,
-0.02864038571715355,
0.0402916856110096,
0.012990529648959637,
-0.06853030622005463,
-0.012780078686773777,
0.03571917116641998,
0.008647598326206207,
0.01780219003558159,
0.03583396226167679,
0.04098043218255043,
0.026880254969000816,
0.030955340713262558,
-0.015544631518423557,
0.009852904826402664,
-0.031108396127820015,
0.04974282160401344,
0.008499326184391975,
0.09573580324649811,
-0.028315145522356033,
-0.033021580427885056,
-0.0022228823509067297,
-0.001883291988633573,
-0.010015525855123997,
0.0025971492286771536,
-0.060801032930612564,
0.02311128005385399,
0.028582990169525146,
0.0009009907953441143,
0.0055434550158679485,
0.06918078660964966,
0.07549429684877396
] |
17,841 | imodels.algebraic.slim | predict | null | def predict(self, X):
check_is_fitted(self)
X = check_array(X)
return self.model_.predict(X)
| (self, X) | [
0.044114988297224045,
-0.01229824312031269,
-0.032936371862888336,
0.0013929193373769522,
0.027805490419268608,
-0.022057494148612022,
-0.027699699625372887,
-0.01750846579670906,
0.09859752655029297,
0.027276532724499702,
0.03427639231085777,
-0.05398884788155556,
0.014502229169011116,
-0.038825422525405884,
0.015172241255640984,
0.002684455132111907,
0.046724509447813034,
-0.019042441621422768,
-0.058044180274009705,
0.030185794457793236,
0.03734434396028519,
-0.003173740115016699,
-0.049404554069042206,
0.01581580564379692,
0.0020937868393957615,
-0.008040141314268112,
0.02524886652827263,
-0.019853508099913597,
0.046795036643743515,
0.012791936285793781,
-0.03558115288615227,
0.020717469975352287,
-0.01914823241531849,
-0.005765628069639206,
-0.017993343994021416,
-0.007868231274187565,
-0.011064010672271252,
0.010649661533534527,
0.058255765587091446,
-0.07765084505081177,
-0.05144985392689705,
-0.058855246752500534,
-0.021123003214597702,
0.020364832133054733,
-0.022339604794979095,
-0.025724926963448524,
-0.004831137601286173,
0.0527193509042263,
0.011302041821181774,
-0.03323611244559288,
-0.0365685410797596,
0.00882035307586193,
0.023185934871435165,
-0.014202487654983997,
0.023344622924923897,
0.019518502056598663,
0.02805233746767044,
0.03745013475418091,
-0.01183099765330553,
-0.019800612702965736,
0.0652027279138565,
0.030979230999946594,
0.025566240772604942,
0.012968255206942558,
0.02447306364774704,
-0.0075155929662287235,
0.030943967401981354,
0.032936371862888336,
0.003638781374320388,
0.018725067377090454,
-0.02893393114209175,
-0.04626607894897461,
-0.017314516007900238,
0.031032126396894455,
0.05243724212050438,
0.0305913295596838,
0.04365655779838562,
-0.0060345144011080265,
0.025125442072749138,
0.0244378000497818,
-0.03829646483063698,
0.01932455040514469,
-0.03598668798804283,
0.0076919118873775005,
-0.0543767474591732,
-0.08639626204967499,
-0.002380305202677846,
-0.02981552481651306,
-0.025619136169552803,
0.06682486087083817,
0.012791936285793781,
0.08294040709733963,
-0.005412990227341652,
0.0558578260242939,
0.020452992990612984,
0.0004884584341198206,
0.004787058103829622,
0.029074985533952713,
0.016926614567637444,
0.01928928680717945,
-0.01757899485528469,
0.1300528198480606,
-0.04711240902543068,
0.05589308962225914,
-0.006933740805834532,
0.04048281908035278,
0.0022194141056388617,
0.02091142162680626,
-0.029057353734970093,
-0.018954280763864517,
-0.016380025073885918,
0.0874541699886322,
-0.0157981738448143,
0.007057163864374161,
-0.0652027279138565,
-0.026606522500514984,
-0.025143075734376907,
0.002186354249715805,
-0.12039054185152054,
0.03566931188106537,
-0.001398429274559021,
0.060653701424598694,
-0.03995386138558388,
-0.038895949721336365,
-0.05268408730626106,
0.04087072238326073,
0.037943825125694275,
-0.00677064573392272,
0.01997693069279194,
-0.06195846199989319,
-0.031931351870298386,
-0.01934218220412731,
-0.0060389223508536816,
0.016018571332097054,
-0.022145653143525124,
-0.016380025073885918,
0.047535575926303864,
-0.014131959527730942,
0.0006237280904315412,
-0.024243848398327827,
0.07292549312114716,
0.01585988514125347,
0.0859730914235115,
0.02001219429075718,
0.03468192741274834,
-0.04259864613413811,
0.051061954349279404,
0.015066449530422688,
0.04340971261262894,
-0.00718058692291379,
-0.003956155385822058,
-0.010323471389710903,
0.052860405296087265,
-0.06929332762956619,
-0.0068059093318879604,
0.03960122540593147,
-0.014987106435000896,
-0.06224057078361511,
0.04383287951350212,
-0.023115407675504684,
-0.07877928018569946,
-0.027223637327551842,
-0.009618195705115795,
-0.01762307435274124,
0.01735859550535679,
0.032724786549806595,
-0.040694400668144226,
0.05494096875190735,
0.00021640390332322568,
-0.013691162690520287,
0.054764650762081146,
-0.012386403046548367,
0.015101714059710503,
0.0036740449722856283,
-0.007286378648132086,
-0.0017389451386407018,
0.01584225334227085,
0.023027248680591583,
0.021581433713436127,
0.06830593943595886,
0.04919297248125076,
-0.02457885444164276,
-0.014925395138561726,
-0.08470360189676285,
-0.04203442484140396,
-0.033518221229314804,
-0.049298763275146484,
0.051167745143175125,
-0.05427095666527748,
0.030221059918403625,
0.008070997893810272,
0.002235943917185068,
0.031825561076402664,
0.001565932179801166,
-0.04876980558037758,
0.01737622730433941,
-0.023803051561117172,
0.017014773562550545,
-0.009741619229316711,
-0.01909533701837063,
0.022868560627102852,
-0.057303640991449356,
0.02613046020269394,
0.017208725214004517,
-0.10550922900438309,
0.0028541621286422014,
-0.013999720104038715,
0.005655428860336542,
0.002873998135328293,
-0.08865313977003098,
-0.003612333443015814,
-0.02611282840371132,
-0.012950623407959938,
-0.04714767262339592,
0.058220501989126205,
0.03854331001639366,
0.030150530859827995,
-0.061535295099020004,
0.014502229169011116,
-0.032954003661870956,
0.013135758228600025,
-0.02620098739862442,
-0.027541011571884155,
0.031085021793842316,
0.013796953484416008,
-0.047676630318164825,
0.017949264496564865,
-0.010720188729465008,
-0.034629032015800476,
-0.0508856326341629,
0.014396438375115395,
-0.01581580564379692,
0.00004876319508184679,
-0.038825422525405884,
0.013761689886450768,
0.04090598598122597,
0.0052763428539037704,
-0.004549027420580387,
-0.02011798694729805,
0.025742558762431145,
0.01094940397888422,
0.016997141763567924,
0.0032200238201767206,
-0.01043807901442051,
0.015560142695903778,
0.04880506917834282,
-0.001095932093448937,
0.027276532724499702,
0.0002865182177629322,
-0.038049619644880295,
0.009662275202572346,
0.031331866979599,
0.009962017647922039,
0.007189403288066387,
0.027364693582057953,
-0.04993351176381111,
0.07849717140197754,
0.029180778190493584,
0.054200429469347,
0.06894069164991379,
-0.052754614502191544,
-0.0016221338883042336,
0.020594047382473946,
0.02092905342578888,
-0.02454359084367752,
0.016794374212622643,
-0.03864910081028938,
0.04485552757978439,
0.0538477897644043,
0.025883615016937256,
0.10931771993637085,
0.014237751252949238,
-0.04217547923326492,
-0.061605822294950485,
0.0631926953792572,
0.03521088510751724,
0.015489615499973297,
0.00875423289835453,
0.03164924308657646,
0.03596905618906021,
0.012562721036374569,
-0.07504132390022278,
0.024790437892079353,
-0.019024809822440147,
-0.007868231274187565,
-0.00915095116943121,
0.012721408158540726,
-0.024825701490044594,
0.030009476467967033,
-0.009838594123721123,
0.005844971630722284,
0.050180356949567795,
0.01183099765330553,
-0.022321972995996475,
-0.014555125497281551,
-0.03233688697218895,
-0.007497961167246103,
-0.011372569017112255,
0.06111213192343712,
0.019589029252529144,
-0.005236671306192875,
0.026694681495428085,
-0.016036203131079674,
-0.03833172842860222,
-0.013664714992046356,
0.001325697754509747,
0.033641647547483444,
0.0027726145926862955,
-0.07257285714149475,
-0.02970973402261734,
-0.0032156158704310656,
0.05666889250278473,
0.0135060278698802,
-0.02456122264266014,
-0.058220501989126205,
-0.02796417661011219,
0.08957000076770782,
0.03826120123267174,
0.049545612186193466,
0.015427903272211552,
0.01534856017678976,
0.01819610968232155,
0.001131746917963028,
-0.004416788462549448,
0.038120146840810776,
0.018848489969968796,
0.06217004358768463,
-0.008604362607002258,
-0.019800612702965736,
-0.010781900957226753,
0.05783259868621826,
-0.037873297929763794,
-0.009582932107150555,
0.0420696884393692,
-0.03258373215794563,
0.03154345229268074,
-0.028546029701828957,
-0.002041993197053671,
0.0077359918504953384,
0.027505747973918915,
-0.07666345685720444,
-0.06537904590368271,
-0.01643292047083378,
0.027488116174936295,
0.008454491384327412,
0.00293350568972528,
-0.011434280313551426,
0.02808760106563568,
-0.017191093415021896,
0.029304200783371925,
-0.06294585019350052,
0.0014358970802277327,
0.0455608032643795,
0.02101721242070198,
-0.021546170115470886,
-0.04400919750332832,
0.0066824862733483315,
0.015216320753097534,
-0.00821646023541689,
-0.021510904654860497,
-0.0025015242863446474,
-0.019042441621422768,
-0.024173321202397346,
-0.021440377458930016,
-0.03147292509675026,
-0.011372569017112255,
-0.06611958891153336,
0.027682067826390266,
0.028352078050374985,
0.04817032441496849,
0.00882035307586193,
0.028510766103863716,
-0.1172168031334877,
0.058185234665870667,
0.027329429984092712,
0.03602195158600807,
0.023961737751960754,
-0.000448235688963905,
0.028634188696742058,
0.008322251960635185,
-0.029233673587441444,
-0.002259085886180401,
-0.01757899485528469,
-0.0033566709607839584,
0.03126133978366852,
0.017252804711461067,
0.029551047831773758,
-0.0668601244688034,
0.04365655779838562,
-0.030820542946457863,
-0.016362393274903297,
-0.06534378230571747,
-0.05307198688387871,
-0.04376235231757164,
-0.06403902173042297,
-0.038049619644880295,
0.024772806093096733,
0.03921332210302353,
-0.025636767968535423,
-0.011478359811007977,
-0.08075405657291412,
0.030326850712299347,
0.0025323801673948765,
-0.003879015799611807,
-0.03653327748179436,
-0.008516202680766582,
-0.009944385848939419,
-0.013620634563267231,
-0.031155548989772797,
0.026412570849061012,
-0.03311268985271454,
0.08315198868513107,
0.04862875118851662,
-0.03477008640766144,
0.01436998974531889,
0.06611958891153336,
0.025777822360396385,
0.02431437559425831,
0.00179294275585562,
-0.011213881894946098,
-0.0004606331349350512,
0.00015786051517352462,
0.0018844081787392497,
-0.012553905136883259,
-0.004471887834370136,
0.04711240902543068,
-0.015119345858693123,
0.046830300241708755,
0.03073238395154476,
0.010746636427938938,
-0.04570185765624046,
-0.0756760686635971,
-0.048522960394620895,
-0.0452081672847271,
-0.054658859968185425,
-0.0004319812869653106,
-0.006572287064045668,
-0.032954003661870956,
-0.027258900925517082,
0.021405113860964775,
-0.004712122492492199,
0.012509825639426708,
0.07264338433742523,
0.031984247267246246,
-0.012783120386302471,
-0.016424104571342468,
-0.04199916124343872,
-0.03598668798804283,
-0.03341243043541908,
-0.040694400668144226,
0.03406481072306633,
-0.003409566590562463,
0.09062791615724564,
0.003008441301062703,
-0.0019306918838992715,
-0.036251164972782135,
-0.0402359738945961,
-0.08371621370315552,
-0.0005118757835589349,
0.017966896295547485,
-0.03501693159341812,
0.022022230550646782,
0.016900166869163513,
-0.05173196643590927,
-0.011610599234700203,
-0.040694400668144226,
-0.03956596180796623,
0.013356156647205353,
-0.01755254715681076,
-0.014123143628239632,
0.05525834113359451,
-0.022321972995996475,
0.028369709849357605,
-0.0033368351869285107,
-0.0437270849943161,
0.03129660338163376,
0.04185810685157776,
0.015445535071194172,
0.003294959431514144,
0.000665052852127701,
-0.0008501876727677882,
-0.045983970165252686,
0.0060301064513623714,
-0.0037577964831143618,
0.0032663075253367424,
0.005889051128178835,
-0.03960122540593147,
0.021669592708349228,
-0.019042441621422768,
0.014643284492194653,
-0.009327270090579987,
0.04919297248125076,
0.06901121884584427,
0.0200298260897398,
-0.04707714542746544,
-0.0037864483892917633,
0.05564624443650246,
0.0062064253725111485,
-0.030891070142388344,
-0.005364502314478159,
-0.008137117139995098,
-0.0038305281195789576,
0.013329708948731422,
-0.03568694368004799,
-0.05264882370829582,
0.024966755881905556,
-0.024966755881905556,
0.012730224058032036,
-0.00498982472345233,
0.0015108325751498342,
-0.05264882370829582,
-0.0014623448951169848,
0.008172380737960339,
-0.0053336466662585735,
0.038120146840810776,
0.049404554069042206,
0.02004745788872242,
0.023080144077539444,
-0.0562104657292366,
0.016018571332097054,
0.01095821987837553,
0.0006452169618569314,
0.018107950687408447,
-0.029180778190493584,
-0.005324830766767263,
0.10762505233287811,
0.011513624340295792,
-0.04182284325361252,
0.018107950687408447,
0.04474973678588867,
0.02962157502770424,
-0.026535993441939354,
0.023803051561117172,
0.07098598778247833,
0.008322251960635185,
0.039707016199827194,
0.018672171980142593,
-0.017993343994021416,
-0.017314516007900238,
0.016362393274903297,
-0.030996862798929214,
-0.05501149594783783,
-0.019800612702965736,
0.031860824674367905,
0.015560142695903778,
-0.03480535000562668,
-0.05102669075131416,
0.054447274655103683,
-0.06365112215280533,
0.00830021221190691,
-0.06742434948682785,
0.005245487205684185,
0.031331866979599,
-0.0022513719741255045,
0.07098598778247833,
0.03477008640766144,
0.0010661783162504435,
0.05613993853330612,
0.0062064253725111485,
0.03164924308657646,
-0.0182842705398798,
-0.07204390317201614,
0.051943548023700714,
-0.003982603084295988,
-0.03769697993993759,
0.04566659405827522,
-0.06629590690135956,
0.02375015616416931,
-0.01179573405534029,
-0.058008916676044464,
0.05688047781586647,
0.03914279490709305,
-0.004782650154083967,
0.017138196155428886,
0.03681538626551628,
0.03480535000562668,
-0.004663635045289993,
-0.038825422525405884,
-0.07821506261825562,
0.04778242111206055,
0.014079064130783081,
0.0018171865958720446,
-0.036215901374816895,
-0.019571397453546524,
-0.028175760060548782,
-0.03524614870548248,
-0.023767787963151932,
0.00275057484395802,
-0.05257829651236534,
-0.03320084884762764,
-0.05539939925074577,
0.020787997171282768,
-0.011451912112534046,
0.04429130628705025,
0.06474430114030838,
-0.021405113860964775,
-0.038155410438776016,
-0.03928384929895401,
0.010711372829973698,
-0.10247654467821121,
0.04037702828645706,
0.015577774494886398,
-0.0041897776536643505,
0.003874607849866152,
0.03695644065737724,
-0.01097585167735815,
-0.09704592078924179,
0.01939507946372032,
0.029921317473053932,
-0.025019651278853416,
-0.013893929310142994,
-0.03477008640766144,
-0.037273816764354706,
-0.003934115637093782,
0.003949543461203575,
0.028140496462583542,
0.022463027387857437,
0.032636627554893494,
-0.01657397672533989,
0.059877898544073105,
0.10889454931020737,
-0.045031845569610596,
0.01225416362285614,
0.03963648900389671,
-0.018672171980142593,
0.01530448067933321,
0.03660380467772484,
-0.019412711262702942,
0.028581293299794197,
-0.032936371862888336,
0.051097217947244644,
0.02258644998073578,
0.005540821235626936,
-0.010217680595815182,
0.051908284425735474,
0.01664450392127037,
-0.017887551337480545,
0.03528141230344772,
0.02886340394616127,
-0.03935437649488449,
-0.06499114632606506,
0.02177538350224495,
0.007154139224439859,
0.006775053683668375,
0.01226297952234745,
-0.04192863404750824,
-0.023150671273469925,
0.021193532273173332,
0.05857313796877861,
-0.03471719101071358,
0.005655428860336542,
-0.0633690133690834,
-0.0473945215344429,
0.012589169666171074,
0.02782312221825123,
-0.017032405361533165,
-0.004471887834370136,
0.01831953413784504,
-0.03260136395692825,
-0.027417588979005814,
-0.05155564472079277,
0.013188653625547886,
0.0006380539853125811,
-0.024261480197310448,
0.03685064986348152,
0.05578729882836342,
-0.034329287707805634,
-0.04076492786407471,
-0.0543767474591732,
0.002086072927340865,
-0.06894069164991379,
0.006647222675383091,
0.00274175894446671,
-0.01229824312031269,
0.0731370821595192,
-0.0470418818295002,
0.0068632131442427635,
-0.020576415583491325,
0.020611679181456566,
-0.009803330525755882,
-0.011416648514568806,
0.004143494181334972,
0.02366199530661106,
0.03605721518397331,
0.017041221261024475,
-0.017120564356446266,
-0.007017492316663265,
-0.007118875626474619,
-0.03201951086521149,
0.006100633647292852,
0.03311268985271454,
-0.01128440909087658,
0.041893370449543,
-0.04908718168735504,
0.004844361916184425,
-0.0042955693788826466,
-0.034329287707805634,
0.02611282840371132,
-0.024173321202397346,
0.0038900356739759445,
0.007189403288066387,
-0.019747717306017876,
-0.04027123749256134,
-0.01174283865839243,
-0.03438218683004379,
0.04358603060245514,
-0.09732802957296371,
-0.015410271473228931,
-0.00009318729280494153,
-0.04806452989578247,
-0.0019935055170208216,
-0.0001591002510394901,
0.0014865887351334095,
-0.044114988297224045,
0.0332537442445755,
0.04898139089345932,
-0.04654818773269653,
0.02017088234424591,
-0.009565300308167934,
0.04898139089345932,
-0.01660042442381382,
-0.00703071616590023,
0.02450832724571228,
0.028457870706915855,
-0.05945473164319992,
-0.008428043685853481,
0.0435507670044899,
-0.04908718168735504,
0.01751728169620037,
0.0435507670044899,
0.022057494148612022,
0.006307808682322502,
-0.008410411886870861,
-0.004566659685224295,
-0.022886192426085472,
-0.018672171980142593,
-0.029127882793545723,
-0.0164946336299181,
0.05300145968794823,
-0.029268937185406685,
0.046795036643743515,
-0.024737540632486343,
-0.0001101993111660704,
-0.032671891152858734,
0.029903685674071312,
0.011108090169727802,
-0.03605721518397331,
-0.02375015616416931,
0.0015604222426190972,
-0.049439817667007446,
-0.004562251269817352,
0.02812286466360092,
0.017208725214004517,
-0.022392500191926956,
0.047676630318164825,
0.016362393274903297,
-0.0236090999096632,
-0.008428043685853481,
0.03311268985271454,
0.004330832976847887,
-0.015471983700990677,
-0.04693609103560448,
-0.040659137070178986,
-0.014458149671554565,
-0.00011577815166674554,
-0.03238978236913681,
0.057233113795518875,
0.043233394622802734
] |
17,842 | imodels.algebraic.slim | predict_proba | null | def predict_proba(self, X):
check_is_fitted(self)
X = check_array(X)
return self.model_.predict_proba(X)
| (self, X) | [
0.04784813150763512,
0.018811052665114403,
-0.05752140283584595,
-0.013413023203611374,
0.01812010444700718,
-0.02687786892056465,
-0.026756951585412025,
-0.05803961306810379,
0.112279012799263,
0.008705941960215569,
0.02344040386378765,
-0.04028225317597389,
0.016358189284801483,
0.0014196817064657807,
-0.032733649015426636,
-0.019692011177539825,
0.04719173163175583,
-0.028397953137755394,
-0.0319390594959259,
0.056381337344646454,
0.025858720764517784,
0.04933366924524307,
-0.04943731427192688,
0.023561319336295128,
-0.01919107511639595,
-0.024373183026909828,
0.016038624569773674,
-0.025133224204182625,
0.04055863246321678,
0.021574843674898148,
-0.008347513154149055,
0.024062255397439003,
-0.031109923496842384,
-0.023854970932006836,
0.03349369391798973,
0.029866216704249382,
0.016746846958994865,
0.015416772104799747,
0.051751986145973206,
-0.07918261736631393,
-0.06830018758773804,
-0.06422359496355057,
-0.0666419118642807,
0.01444944553077221,
0.0031632452737540007,
-0.052373841404914856,
-0.010873790830373764,
0.10011833161115646,
-0.0037872574757784605,
0.013188465498387814,
-0.00538507429882884,
0.02388951927423477,
0.03896945342421532,
-0.012609796598553658,
0.00986327975988388,
0.05904148519039154,
-0.0001095125189749524,
0.02217942290008068,
0.005259839817881584,
-0.04086956009268761,
0.06543275713920593,
0.023837698623538017,
0.03321731463074684,
-0.017627805471420288,
0.05993971973657608,
-0.026929689571261406,
0.01367212925106287,
0.00044020928908139467,
0.0033316637855023146,
0.011504280380904675,
-0.01855194754898548,
-0.03387371450662613,
-0.038347601890563965,
0.021782128140330315,
0.015468592755496502,
0.037898484617471695,
0.018448306247591972,
-0.039349474012851715,
0.019519275054335594,
0.034720126539468765,
-0.02045205421745777,
-0.002347063273191452,
-0.024943213909864426,
-0.030729901045560837,
-0.04529162496328354,
-0.06885294616222382,
0.015649966895580292,
-0.02181667648255825,
0.014475355856120586,
0.035825639963150024,
0.0025802580639719963,
0.07289499044418335,
0.03941857069730759,
0.06899113208055496,
0.013093460351228714,
-0.001713334582746029,
0.020935717970132828,
0.037794843316078186,
-0.00205988809466362,
-0.01298981811851263,
-0.024217719212174416,
0.071029432117939,
-0.03434010222554207,
0.03116174414753914,
0.009526442736387253,
0.061252519488334656,
0.0054066660813987255,
0.03651658818125725,
-0.014725823886692524,
-0.02126391790807247,
-0.01784372702240944,
0.04422065615653992,
-0.012143407016992569,
-0.021160274744033813,
-0.04301149770617485,
-0.016133630648255348,
-0.04422065615653992,
0.012376601807773113,
-0.042147815227508545,
0.033182766288518906,
0.01639273576438427,
0.06000881269574165,
-0.026463299989700317,
-0.01761053130030632,
-0.03928038105368614,
0.01948472671210766,
0.05914513021707535,
0.011487006209790707,
0.022058507427573204,
-0.02200668677687645,
-0.012929360382258892,
-0.014060786925256252,
-0.03133448213338852,
0.011832480318844318,
-0.009889190085232258,
-0.0541357584297657,
0.03024623915553093,
-0.04090410843491554,
0.056381337344646454,
-0.053652092814445496,
0.07130581140518188,
0.005583721678704023,
0.061701636761426926,
-0.01240251213312149,
0.050750114023685455,
-0.032716378569602966,
0.08450291305780411,
0.01742052100598812,
0.03392553701996803,
-0.018171926960349083,
0.012316144071519375,
-0.0036706600803881884,
0.011841117404401302,
-0.05696864426136017,
0.004897092469036579,
0.03088536486029625,
-0.004720036871731281,
-0.06874930113554001,
0.03530742973089218,
-0.05558674782514572,
-0.04004042223095894,
0.00974236335605383,
-0.027309710159897804,
-0.014820829965174198,
0.013793044723570347,
0.033372778445482254,
-0.02625601552426815,
0.06090704724192619,
0.019968390464782715,
-0.020797528326511383,
0.052477482706308365,
-0.03259545937180519,
0.014561723917722702,
0.013603034429252148,
0.017498252913355827,
0.03411554545164108,
0.009491895325481892,
0.00223046587780118,
0.014432171359658241,
0.05883420258760452,
0.0443933941423893,
-0.008416607044637203,
0.003335982095450163,
-0.06546729803085327,
-0.011374727822840214,
-0.002832885831594467,
-0.011115621775388718,
0.04235509783029556,
-0.05185563117265701,
0.01733415201306343,
-0.05396302044391632,
-0.018811052665114403,
0.026912415400147438,
0.03024623915553093,
-0.01286026556044817,
0.032716378569602966,
0.00851593166589737,
0.0440133735537529,
-0.013508029282093048,
-0.015762245282530785,
0.026238741353154182,
-0.06598550826311111,
-0.019001062959432602,
0.028363406658172607,
-0.07869894802570343,
-0.026152372360229492,
-0.04273511841893196,
-0.000798908353317529,
0.050024617463350296,
-0.09369251877069473,
0.015252672135829926,
-0.022300338372588158,
0.018068283796310425,
-0.06622734665870667,
0.03993678092956543,
0.06059611961245537,
0.08236097544431686,
-0.05016280710697174,
0.008757762610912323,
-0.01660865731537342,
0.018258294090628624,
-0.02599691040813923,
-0.02977984957396984,
0.02572053112089634,
0.03983313962817192,
-0.03233635425567627,
-0.014535813592374325,
0.02527141384780407,
0.007570196408778429,
-0.026376930996775627,
-0.0025824173353612423,
0.0010920213535428047,
-0.020590243861079216,
-0.04149141162633896,
0.03522106260061264,
0.04066227748990059,
-0.014475355856120586,
-0.01743779517710209,
-0.06121797114610672,
0.02065933868288994,
0.026135100051760674,
0.02950347028672695,
0.00440263282507658,
-0.012480244040489197,
-0.00046288102748803794,
0.04536072164773941,
0.029918039217591286,
0.019070157781243324,
0.01530449278652668,
-0.0054066660813987255,
0.012912086211144924,
0.029140722006559372,
-0.013231649994850159,
0.013594397343695164,
-0.005000734701752663,
-0.01018284261226654,
0.05406666174530983,
0.03869307413697243,
0.04346061497926712,
0.06411994993686676,
-0.02292219176888466,
-0.030833544209599495,
-0.003918969538062811,
0.01919107511639595,
0.021851222962141037,
0.0407659187912941,
-0.0004286035255063325,
0.01965746469795704,
0.03377007320523262,
0.02736153081059456,
0.08063360303640366,
0.0007362912292592227,
-0.019329262897372246,
-0.05261567234992981,
0.019864749163389206,
0.04774449020624161,
0.0002643684856593609,
0.02563416212797165,
0.06674555689096451,
0.015071297995746136,
0.015952257439494133,
-0.047226279973983765,
0.02425226755440235,
-0.014682640321552753,
0.0070217568427324295,
-0.02452864497900009,
0.026048731058835983,
-0.006248759105801582,
0.031455397605895996,
0.00820932351052761,
0.0008447915897704661,
0.03648204356431961,
0.016444556415081024,
-0.005052555352449417,
0.03910764306783676,
-0.00446093175560236,
0.028726153075695038,
0.0019173800246790051,
0.037449367344379425,
0.011728838086128235,
0.02725788950920105,
0.03316549211740494,
-0.030833544209599495,
-0.05634678900241852,
-0.030660808086395264,
0.019899295642971992,
0.06522546708583832,
-0.012074312195181847,
-0.06684919446706772,
-0.00833455752581358,
0.0033230269327759743,
0.0496445968747139,
0.03900400176644325,
0.03477194532752037,
-0.08788855373859406,
-0.03814031556248665,
0.07683338969945908,
0.028812522068619728,
0.04473886638879776,
-0.01761053130030632,
-0.02950347028672695,
0.0036145204212516546,
0.035998377948999405,
-0.02977984957396984,
0.03769120201468468,
0.022680360823869705,
0.014725823886692524,
-0.007064940873533487,
-0.06674555689096451,
-0.02924436517059803,
0.04104229807853699,
-0.020987538620829582,
0.0022909236140549183,
0.06315262615680695,
-0.04961004853248596,
0.04999007284641266,
-0.017213236540555954,
0.01643591932952404,
0.020175674930214882,
0.015140392817556858,
-0.0642581433057785,
-0.05914513021707535,
-0.02770700491964817,
0.031023554503917694,
-0.0034957637544721365,
-0.03641294687986374,
-0.03561835736036301,
0.05904148519039154,
-0.006494909059256315,
-0.000729273771867156,
-0.016055898740887642,
-0.00974236335605383,
0.035825639963150024,
0.037622105330228806,
-0.02029659040272236,
-0.06722921878099442,
0.025599615648388863,
0.02273218147456646,
0.01032966934144497,
0.013326655142009258,
0.0043054684065282345,
-0.014622182585299015,
-0.03492740914225578,
0.008792310021817684,
-0.00411977618932724,
0.0039362432435154915,
-0.07710976898670197,
0.04480796307325363,
0.010649232193827629,
0.031213564798235893,
0.012601159512996674,
0.0343228317797184,
-0.09196514636278152,
0.03710389509797096,
0.0039232876151800156,
0.021350286900997162,
-0.004104661755263805,
-0.026031456887722015,
0.029848944395780563,
-0.020849348977208138,
-0.03397735580801964,
-0.05095739662647247,
-0.020417505875229836,
0.0016615134663879871,
-0.009569626301527023,
0.03893490508198738,
0.03323458880186081,
-0.07324046641588211,
0.058454181998968124,
-0.04031680151820183,
-0.011711564846336842,
-0.03378734737634659,
-0.048746366053819656,
-0.030954459682106972,
-0.04004042223095894,
-0.026135100051760674,
0.02969348058104515,
0.019605642184615135,
0.015554961748421192,
-0.003998860251158476,
-0.0666419118642807,
-0.006866293493658304,
-0.014207613654434681,
-0.015062660910189152,
-0.028484322130680084,
-0.0657782256603241,
-0.0006375072989612818,
0.012221138924360275,
-0.015235397964715958,
0.05109558627009392,
-0.0485045351088047,
0.07296408712863922,
0.043771542608737946,
-0.047399017959833145,
-0.01354257669299841,
0.06487999856472015,
-0.0009430357604287565,
-0.011944759637117386,
0.00548007944598794,
-0.015252672135829926,
0.029728027060627937,
0.008537523448467255,
-0.02762063778936863,
-0.018949242308735847,
-0.009802821092307568,
0.04031680151820183,
0.015917709097266197,
0.03420191630721092,
0.05524127557873726,
0.016064535826444626,
-0.023837698623538017,
-0.061459802091121674,
-0.0027098108548671007,
-0.046777162700891495,
-0.05551765486598015,
-0.026186920702457428,
-0.02000293880701065,
0.0004949992871843278,
-0.007820664905011654,
0.014734460972249508,
0.020676612854003906,
0.037898484617471695,
0.05624314770102501,
0.04860817641019821,
0.014777645468711853,
-0.00354326656088233,
-0.024580467492341995,
-0.0666419118642807,
-0.027862468734383583,
-0.01502811349928379,
-0.005743503104895353,
0.0026990147307515144,
0.09079053997993469,
-0.006974253803491592,
0.01957109570503235,
-0.014345803298056126,
-0.06246167793869972,
-0.08747398853302002,
-0.017895547673106194,
0.017325514927506447,
0.00887004192918539,
0.008572070859372616,
0.026860594749450684,
-0.01758462004363537,
-0.022231243550777435,
-0.03014259599149227,
-0.0338909886777401,
0.033286407589912415,
-0.02751699462532997,
0.006607187911868095,
0.029641659930348396,
-0.005631224252283573,
0.009941010735929012,
-0.037967581301927567,
-0.02102208510041237,
0.03397735580801964,
0.0387621708214283,
0.029365280643105507,
0.04584438353776932,
0.007665202021598816,
-0.0036706600803881884,
-0.025340508669614792,
0.025219593197107315,
0.02489139325916767,
0.010718327015638351,
-0.01511448249220848,
-0.02473592944443226,
0.0035087191499769688,
-0.03782939165830612,
-0.01104652788490057,
0.02046932838857174,
0.015097208321094513,
0.039522211998701096,
0.10046380758285522,
-0.06436178088188171,
-0.019605642184615135,
0.08049541711807251,
-0.02029659040272236,
-0.009327794425189495,
-0.0013840547762811184,
0.0015751449391245842,
0.027378804981708527,
0.0042212591506540775,
-0.038451243191957474,
-0.046673521399497986,
0.01164247002452612,
-0.04822815582156181,
0.02608327753841877,
-0.03686206415295601,
0.020866623148322105,
-0.05641588568687439,
-0.024304088205099106,
-0.013231649994850159,
-0.018862873315811157,
0.020054759457707405,
0.04978278651833534,
0.06899113208055496,
0.019968390464782715,
-0.033735524863004684,
-0.014406261034309864,
0.028864342719316483,
0.0008761001517996192,
0.025875993072986603,
-0.02781064808368683,
0.0004035026940982789,
0.09514350444078445,
0.034011904150247574,
-0.04933366924524307,
-0.0022952421568334103,
0.02426953986287117,
0.038071222603321075,
-0.03827850520610809,
0.04031680151820183,
0.042700573801994324,
-0.008826857432723045,
0.03306185081601143,
0.009016868658363819,
-0.037725746631622314,
0.007293817587196827,
0.02010658010840416,
0.012039764784276485,
-0.03872762247920036,
0.013879413716495037,
0.0485045351088047,
0.033096399158239365,
0.009293247014284134,
-0.047675397247076035,
0.03872762247920036,
-0.06850747019052505,
0.003394280793145299,
-0.043322425335645676,
0.005117332097142935,
0.024597739800810814,
0.01730824075639248,
0.07054577022790909,
0.012722075916826725,
0.013965781778097153,
0.02698151022195816,
-0.00432706018909812,
0.02527141384780407,
-0.019847474992275238,
-0.10018742829561234,
0.031282659620046616,
-0.032267261296510696,
-0.06975118070840836,
0.040973201394081116,
-0.07400050759315491,
0.08574661612510681,
-0.004797768779098988,
-0.03793303295969963,
0.06767833232879639,
0.036447495222091675,
-0.06802380830049515,
-0.012057038955390453,
0.01633227802813053,
-0.02217942290008068,
0.017446430400013924,
-0.03383916616439819,
-0.09438346326351166,
0.02292219176888466,
-0.006952662020921707,
0.014535813592374325,
-0.03097173385322094,
-0.03261273354291916,
-0.02591054141521454,
-0.017170051112771034,
-0.06446542590856552,
0.007686793804168701,
-0.0053332531824707985,
-0.055828578770160675,
-0.06809290498495102,
0.04111139103770256,
-0.036067474633455276,
-0.015744972974061966,
0.03596382960677147,
-0.002226147335022688,
-0.02480502426624298,
-0.012791170738637447,
-0.010830606333911419,
-0.07317136973142624,
0.022956740111112595,
0.03143812343478203,
0.03415009379386902,
0.01321437582373619,
0.036551136523485184,
-0.021626664325594902,
-0.06114887818694115,
0.027482448145747185,
0.05033554509282112,
0.002340585459023714,
-0.00617966428399086,
-0.011944759637117386,
-0.03596382960677147,
-0.009906463325023651,
-0.04118048772215843,
0.016340915113687515,
-0.034823767840862274,
0.012791170738637447,
0.0002974314265884459,
0.04249328747391701,
0.03283729404211044,
-0.031006280332803726,
0.03755301237106323,
0.05769413709640503,
-0.018862873315811157,
-0.015054024755954742,
0.026601489633321762,
-0.057832326740026474,
0.025046857073903084,
-0.03250909224152565,
0.043598804622888565,
0.022853096947073936,
0.036343853920698166,
-0.0071038068272173405,
0.054204851388931274,
-0.007250633090734482,
-0.012877538800239563,
0.03261273354291916,
-0.016444556415081024,
-0.07261861115694046,
-0.09846005588769913,
-0.01929471641778946,
-0.008433881215751171,
-0.004633668344467878,
0.03620566427707672,
-0.04235509783029556,
-0.059732433408498764,
0.02969348058104515,
0.06391266733407974,
-0.05026644840836525,
0.021678486838936806,
-0.112279012799263,
-0.04183688759803772,
0.030125321820378304,
0.0035562217235565186,
-0.010606048628687859,
0.010096474550664425,
0.055724937468767166,
-0.03596382960677147,
-0.013870776630938053,
-0.05296114459633827,
-0.03288911283016205,
-0.037794843316078186,
-0.030747175216674805,
0.05468851700425148,
0.04356425628066063,
-0.04456613212823868,
-0.04207871854305267,
-0.0488845556974411,
0.012393875978887081,
-0.014518540352582932,
0.029296185821294785,
-0.021073907613754272,
-0.03135175630450249,
0.07469145208597183,
-0.0436333529651165,
-0.03171450272202492,
-0.011020616628229618,
0.0068101538345217705,
-0.007518375292420387,
0.03579109534621239,
-0.026480572298169136,
0.026048731058835983,
-0.008913226425647736,
0.029399827122688293,
-0.023664960637688637,
0.024615013971924782,
0.0073801856487989426,
-0.02869160659611225,
0.02110845409333706,
0.020572969689965248,
-0.03162813559174538,
0.029088901355862617,
-0.021160274744033813,
-0.019173800945281982,
0.0026256015989929438,
-0.00040323278517462313,
0.018811052665114403,
-0.009837368503212929,
-0.036274757236242294,
-0.007349956780672073,
-0.01863831654191017,
-0.037898484617471695,
0.014699913561344147,
-0.045775290578603745,
0.08312101662158966,
-0.07178947329521179,
-0.040524087846279144,
-0.016228634864091873,
-0.04646623879671097,
-0.03706934675574303,
0.006615824997425079,
-0.0038671481888741255,
-0.07607334852218628,
0.018327388912439346,
0.06325627118349075,
-0.02435590885579586,
-0.003143812296912074,
-0.02572053112089634,
0.019415631890296936,
-0.02969348058104515,
0.01991656981408596,
-0.0006688158609904349,
0.025875993072986603,
-0.050922852009534836,
-0.0030380110256373882,
0.035998377948999405,
-0.0787680447101593,
0.002971075475215912,
0.010951521806418896,
0.029918039217591286,
-0.0015816226368770003,
-0.03765665367245674,
-0.02046932838857174,
-0.0021462563890963793,
-0.02217942290008068,
-0.03855488449335098,
-0.03515196591615677,
0.021160274744033813,
-0.019311990588903427,
-0.0033187083899974823,
-0.030021680518984795,
0.03205997496843338,
-0.024753203615546227,
0.005570766516029835,
0.02164393849670887,
-0.03814031556248665,
-0.022023960947990417,
0.017947368323802948,
-0.06519091874361038,
0.010122384876012802,
0.05116468295454979,
0.02896798588335514,
-0.019035611301660538,
0.03955676034092903,
0.011296995915472507,
0.0014682640321552753,
-0.014147155918180943,
-0.018672863021492958,
-0.018949242308735847,
-0.0665382668375969,
0.010467858985066414,
-0.026601489633321762,
0.008692986331880093,
0.031006280332803726,
-0.028864342719316483,
0.04791722819209099,
0.01641864702105522
] |
17,847 | imodels.algebraic.slim | SLIMRegressor | Sparse integer linear model
Params
------
alpha: float
weight for sparsity penalty
| class SLIMRegressor(BaseEstimator, RegressorMixin):
'''Sparse integer linear model
Params
------
alpha: float
weight for sparsity penalty
'''
def __init__(self, alpha=0.01):
self.alpha = alpha
def fit(self, X, y, sample_weight=None):
'''fit a linear model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
'''
X, y = check_X_y(X, y)
self.n_features_in_ = X.shape[1]
self.model_ = LinearRegression()
try:
import cvxpy as cp # package for optimization, import here to make it optional
from cvxpy.error import SolverError
# declare the integer-valued optimization variable
w = cp.Variable(X.shape[1], integer=True)
# set up the minimization problem
residuals = X @ w - y
if sample_weight is not None:
residuals = cp.multiply(sample_weight, residuals)
mse = cp.sum_squares(residuals)
l1_penalty = self.alpha * cp.norm(w, 1)
obj = cp.Minimize(mse + l1_penalty)
prob = cp.Problem(obj)
try:
# solve the problem using an appropriate solver
prob.solve()
self.model_.coef_ = w.value.astype(int)
self.model_.intercept_ = 0
except SolverError:
warnings.warn("gurobi, mosek, or cplex solver required for mixed-integer "
"quadratic programming. Rounding non-integer coefficients instead.")
self._fit_backup(X, y, sample_weight)
except ImportError:
warnings.warn("Should install cvxpy with pip install cvxpy. Rounding non-integer "
"coefficients instead.")
self._fit_backup(X, y, sample_weight)
return self
def _fit_backup(self, X, y, sample_weight):
m = Lasso(alpha=self.alpha)
m.fit(X, y, sample_weight=sample_weight)
self.model_.coef_ = np.round(m.coef_).astype(int)
self.model_.intercept_ = m.intercept_
def predict(self, X):
check_is_fitted(self)
X = check_array(X)
return self.model_.predict(X)
| (alpha=0.01) | [
0.0019007982918992639,
-0.07216262072324753,
0.020778192207217216,
0.04399405047297478,
0.017363525927066803,
-0.04171115532517433,
-0.04941108450293541,
-0.027181899175047874,
0.041827235370874405,
-0.007337178103625774,
-0.016599338501691818,
0.008130386471748352,
0.048598527908325195,
0.019375568255782127,
-0.06589434295892715,
0.03627477586269379,
0.01358127687126398,
-0.04616086184978485,
-0.022325916215777397,
0.0120335528627038,
-0.0032864948734641075,
0.027762295678257942,
-0.016106000170111656,
0.06964757293462753,
-0.009392748586833477,
0.02756883017718792,
0.035404182970523834,
-0.010640601627528667,
0.02594372071325779,
-0.06697774678468704,
-0.05769140645861626,
0.02842007763683796,
-0.03553960844874382,
-0.013958534225821495,
-0.011985186487436295,
-0.041827235370874405,
0.02159074693918228,
0.002597274025902152,
-0.0032042718958109617,
-0.02843942493200302,
0.006277954671531916,
0.006693905685096979,
0.006974430289119482,
-0.061947647482156754,
-0.023273896425962448,
-0.0035815297160297632,
-0.06662950664758682,
0.07452290505170822,
0.04202070087194443,
-0.050301022827625275,
0.019404586404561996,
-0.03931218385696411,
-0.008120713755488396,
-0.017053982242941856,
-0.012507542967796326,
0.0722787007689476,
0.046199556440114975,
0.09812568873167038,
0.06682297587394714,
-0.07119529694318771,
0.0063698505982756615,
-0.025034433230757713,
-0.018388893455266953,
0.008280321955680847,
0.00695992074906826,
-0.03259893134236336,
-0.03915741294622421,
0.010737334378063679,
0.026582157239317894,
-0.012304404750466347,
-0.007380708120763302,
-0.04573523998260498,
-0.014693702571094036,
0.024937700480222702,
0.029774336144328117,
0.028052493929862976,
-0.03366299346089363,
-0.07916606962680817,
0.021900292485952377,
-0.012314077466726303,
0.01545789185911417,
-0.028903741389513016,
0.009745823219418526,
-0.04078252241015434,
-0.05335777997970581,
-0.112983837723732,
0.02901982143521309,
-0.057227086275815964,
0.041672464460134506,
0.04565785080194473,
-0.04906284436583519,
0.07707664370536804,
-0.0034557771869003773,
0.04124683886766434,
0.09224434196949005,
0.035055942833423615,
0.0421367809176445,
-0.012575255706906319,
0.015428871847689152,
-0.024009065702557564,
-0.02251938171684742,
0.061522021889686584,
-0.05482811480760574,
0.05324169993400574,
-0.0331406369805336,
0.006964757107198238,
0.02441534399986267,
0.041904620826244354,
0.017315160483121872,
-0.04356842488050461,
-0.04322018846869469,
-0.0020495248027145863,
-0.07046012580394745,
0.01571906916797161,
-0.0800173208117485,
-0.02304173819720745,
-0.05134573578834534,
0.028961781412363052,
-0.044651832431554794,
-0.00635534105822444,
-0.025111818686127663,
-0.001038063201121986,
-0.04573523998260498,
0.019607726484537125,
0.02756883017718792,
0.02089427225291729,
0.025634175166487694,
0.021358588710427284,
0.020333221182227135,
-0.04186592996120453,
-0.04395535588264465,
-0.019104715436697006,
-0.01147250272333622,
0.02037191390991211,
-0.010979166254401207,
-0.016183387488126755,
-0.017702091485261917,
0.008976798504590988,
0.013174998573958874,
0.006321484223008156,
0.059045664966106415,
0.01734418049454689,
-0.008135223761200905,
0.02774295024573803,
0.0544411838054657,
-0.002541652647778392,
0.05966475233435631,
0.02294500544667244,
-0.02567286789417267,
-0.007975614629685879,
-0.02284827269613743,
-0.0072839753702282906,
0.031902458518743515,
-0.010930799879133701,
0.023254550993442535,
0.017653724178671837,
-0.003359044436365366,
-0.03321802243590355,
0.030606238171458244,
-0.014713049866259098,
-0.015196713618934155,
0.011743354611098766,
-0.004967226181179285,
-0.01871778443455696,
-0.00989575870335102,
0.005160691682249308,
-0.04643171280622482,
-0.027530137449502945,
-0.03844159096479416,
0.04349103942513466,
-0.009760333225131035,
-0.061870258301496506,
-0.014064940623939037,
0.023312589153647423,
-0.013881147839128971,
0.06910587102174759,
0.015128999948501587,
0.005499256309121847,
0.03648759052157402,
0.015428871847689152,
0.03476574644446373,
-0.0029866232071071863,
-0.05730447545647621,
-0.013619969598948956,
-0.02217114344239235,
0.046896032989025116,
-0.01039876975119114,
-0.017885882407426834,
-0.0027617197483778,
0.025556789711117744,
0.03217330947518349,
-0.012604275718331337,
0.04677995294332504,
-0.03668105602264404,
-0.0008361336076632142,
0.003997480496764183,
0.018679091706871986,
-0.008793005719780922,
0.009088040329515934,
0.016076982021331787,
0.01058256160467863,
0.021261855959892273,
0.06190895289182663,
0.012846107594668865,
-0.035230062901973724,
0.02996780164539814,
-0.03871244192123413,
0.02431861124932766,
-0.036526281386613846,
-0.034901171922683716,
-0.021261855959892273,
0.041749849915504456,
-0.011636948212981224,
0.041401613503694534,
0.06190895289182663,
0.002582764020189643,
-0.0010156937642022967,
-0.024260571226477623,
0.0389832928776741,
-0.04484529793262482,
0.039254143834114075,
-0.026349997147917747,
-0.07452290505170822,
0.027278631925582886,
0.03199918940663338,
-0.015351485460996628,
0.037629034370183945,
0.014858148992061615,
0.0389832928776741,
0.0029769500251859426,
-0.013165325857698917,
-0.07378773391246796,
0.09355990588665009,
-0.042252860963344574,
-0.04503876343369484,
-0.008570520207285881,
-0.032250694930553436,
0.04128553345799446,
-0.036526281386613846,
-0.028613543137907982,
-0.026853008195757866,
0.01797294244170189,
0.00924764946103096,
-0.0008403656538575888,
-0.013387811370193958,
0.036623015999794006,
0.01267198845744133,
0.05188744142651558,
-0.0033493710216134787,
-0.02569221518933773,
0.008575357496738434,
-0.009857065975666046,
-0.03083839640021324,
0.015612663701176643,
-0.0400860458612442,
-0.08373185992240906,
0.012517216615378857,
0.00993445236235857,
-0.008797843009233475,
-0.041672464460134506,
-0.02981303073465824,
0.008638233877718449,
-0.011104918085038662,
0.04082121700048447,
-0.06388229876756668,
-0.004783433862030506,
-0.006843841169029474,
0.02851681038737297,
0.0839640200138092,
0.049527160823345184,
0.07823743671178818,
0.045425694435834885,
-0.040279511362314224,
0.001016298308968544,
0.0013457941822707653,
0.03871244192123413,
-0.04298802837729454,
-0.0056250086054205894,
0.02654346264898777,
0.00751129724085331,
0.022732192650437355,
-0.004505327437072992,
0.020429953932762146,
-0.00209305458702147,
0.03348887339234352,
-0.016125347465276718,
-0.0030785193666815758,
-0.04445836693048477,
-0.01379408873617649,
0.009924778714776039,
-0.0042852601036429405,
0.017141040414571762,
0.06442400068044662,
0.017731111496686935,
0.06620388478040695,
0.025827640667557716,
0.01181106735020876,
0.029948456212878227,
0.01532246544957161,
-0.0329858623445034,
0.0039128391072154045,
0.01169498823583126,
-0.01447121798992157,
-0.06662950664758682,
-0.01852431893348694,
-0.07932084798812866,
-0.008493134751915932,
-0.029135901480913162,
-0.0888393446803093,
0.045773930847644806,
0.02199702523648739,
0.08907150477170944,
-0.00479310704395175,
-0.04484529793262482,
-0.04972062632441521,
-0.031650952994823456,
0.057923562824726105,
0.011724008247256279,
0.04496137797832489,
0.036255430430173874,
-0.015883516520261765,
-0.04341365396976471,
-0.024105798453092575,
-0.055872831493616104,
0.024802275002002716,
0.006916390731930733,
0.056143682450056076,
-0.02569221518933773,
-0.03213461488485336,
-0.007051816675812006,
-0.005726578179746866,
0.012691334821283817,
0.010592235252261162,
-0.024686194956302643,
0.003796759992837906,
-0.0033082596492022276,
0.026137186214327812,
-0.004761668853461742,
-0.0156997237354517,
-0.040202125906944275,
0.044148821383714676,
-0.01399722695350647,
-0.040279511362314224,
0.012836433947086334,
-0.058774810284376144,
-0.06055469438433647,
0.032424814999103546,
-0.0021003095898777246,
-0.0038306163623929024,
0.007080836221575737,
-0.016386525705456734,
-0.04999148100614548,
0.04530961439013481,
0.05900697037577629,
0.009591051377356052,
0.01674443669617176,
-0.032656971365213394,
-0.0035186533350497484,
0.08558912575244904,
-0.09139309078454971,
-0.011037205345928669,
-0.045000068843364716,
-0.04047297686338425,
0.008773659355938435,
-0.006123182363808155,
-0.014761416241526604,
-0.04809551686048508,
-0.015661031007766724,
0.017837516963481903,
-0.006843841169029474,
-0.03372103348374367,
-0.05366732180118561,
-0.0664360448718071,
0.02054603397846222,
-0.011308057233691216,
-0.005663701798766851,
-0.0009237976628355682,
-0.005291280802339315,
-0.02149401418864727,
-0.014887168072164059,
0.03031603991985321,
-0.038402896374464035,
0.03731948882341385,
-0.030257999897003174,
-0.008560847491025925,
-0.032328080385923386,
0.010176284238696098,
-0.015158019959926605,
0.020236488431692123,
-0.041478998959064484,
0.017228100448846817,
-0.006843841169029474,
0.012265711091458797,
-0.01237211748957634,
-0.04527091979980469,
-0.035404182970523834,
0.07885652780532837,
0.04484529793262482,
0.009973145090043545,
0.011724008247256279,
-0.02602110616862774,
-0.015506258234381676,
-0.016289792954921722,
-0.014838801696896553,
-0.011936820112168789,
0.028071841225028038,
0.017131367698311806,
0.036255430430173874,
-0.014500237070024014,
0.04569654539227486,
-0.02482162043452263,
0.04399405047297478,
0.03888656198978424,
-0.04438098147511482,
-0.04093729332089424,
-0.0050784689374268055,
0.04503876343369484,
0.03776445984840393,
-0.03285043686628342,
0.03704863786697388,
0.04848244786262512,
-0.0006311811157502234,
-0.0008645488414913416,
0.037629034370183945,
-0.04194331541657448,
-0.00738554447889328,
-0.016028614714741707,
-0.02766556292772293,
-0.0013760231668129563,
0.005402523558586836,
-0.07224000990390778,
-0.018156735226511955,
-0.0520809069275856,
-0.03627477586269379,
-0.06616519391536713,
-0.0271432064473629,
-0.04840506240725517,
0.059200435876846313,
-0.023157818242907524,
-0.0007127993740141392,
0.07579977065324783,
0.001495730015449226,
0.025750255212187767,
0.023525401949882507,
-0.008976798504590988,
-0.020352568477392197,
0.028245959430933,
0.010214976966381073,
-0.08264844864606857,
-0.034997906535863876,
0.019888250157237053,
-0.006123182363808155,
0.004500490613281727,
0.06953149288892746,
-0.014819455333054066,
-0.018224447965621948,
-0.0024558024015277624,
-0.05745924636721611,
0.02859419770538807,
-0.01974315196275711,
-0.007414564490318298,
0.017315160483121872,
0.04496137797832489,
0.0058523304760456085,
-0.0320378839969635,
-0.017634378746151924,
0.02722059190273285,
0.005794290918856859,
-0.01614469476044178,
-0.012381790205836296,
-0.002621457213535905,
-0.0009413304505869746,
0.03749360889196396,
-0.049449775367975235,
-0.01674443669617176,
0.05734316632151604,
-0.021687479689717293,
0.006621356122195721,
0.037725768983364105,
0.017102347686886787,
0.039350878447294235,
-0.01523540634661913,
0.04186592996120453,
0.01904667541384697,
0.007840188220143318,
-0.024260571226477623,
-0.003733883611857891,
-0.03681648150086403,
-0.025634175166487694,
0.023951025679707527,
-0.02716255374252796,
0.06562349200248718,
0.02758817747235298,
0.09564933180809021,
-0.042949337512254715,
-0.0011571653885766864,
-0.01619306020438671,
-0.024376649409532547,
0.042523711919784546,
-0.012865453958511353,
-0.014674356207251549,
-0.0042441487312316895,
-0.0705375149846077,
-0.003927349112927914,
0.06953149288892746,
-0.0013723957818001509,
-0.03372103348374367,
0.019781844690442085,
-0.04341365396976471,
-0.014819455333054066,
-0.07487113773822784,
-0.007864371873438358,
0.04031820595264435,
0.025924373418092728,
0.007371034473180771,
0.00710501940920949,
0.006103835999965668,
0.07235608994960785,
-0.0018222029320895672,
-0.02447338216006756,
0.04469052329659462,
-0.010979166254401207,
0.05331908538937569,
-0.02019779570400715,
0.036448895931243896,
0.05788487195968628,
-0.004413431044667959,
-0.06098031997680664,
0.052970848977565765,
0.09116093069314957,
0.014413177967071533,
-0.039853889495134354,
-0.03161225840449333,
0.05610498785972595,
0.006732598412781954,
0.01490651536732912,
0.008430258370935917,
-0.059123050421476364,
-0.017141040414571762,
-0.05405425280332565,
-0.053396470844745636,
0.038751136511564255,
0.02321585640311241,
0.03612000495195389,
-0.017953597009181976,
0.0231965109705925,
-0.027800988405942917,
0.06322451680898666,
-0.1085728257894516,
-0.027278631925582886,
-0.021532706916332245,
0.01876615174114704,
-0.010785700753331184,
0.02404775843024254,
0.04349103942513466,
-0.006248935125768185,
-0.024376649409532547,
0.011985186487436295,
0.0084834611043334,
0.03447554633021355,
0.007221098989248276,
-0.006350504234433174,
0.07947561889886856,
-0.06256673485040665,
-0.051848746836185455,
0.058774810284376144,
0.022306568920612335,
0.02723993919789791,
-0.022712847217917442,
-0.017131367698311806,
0.05540851131081581,
-0.041324224323034286,
0.0010543868411332369,
0.0580783374607563,
-0.08953582495450974,
0.005649191793054342,
0.02159074693918228,
-0.028710275888442993,
-0.07119529694318771,
0.01869843900203705,
0.036623015999794006,
-0.027897721156477928,
-0.029406752437353134,
-0.07336211204528809,
0.009566867724061012,
-0.00023759978648740798,
-0.05246783792972565,
0.06063207983970642,
-0.0743294358253479,
0.010176284238696098,
-0.017702091485261917,
0.042678482830524445,
-0.02526659145951271,
-0.07200784981250763,
0.02166813425719738,
0.044226206839084625,
-0.06693905591964722,
-0.02294500544667244,
0.04291064292192459,
0.03132206201553345,
-0.04356842488050461,
-0.01310728583484888,
-0.025460056960582733,
-0.003552509704604745,
0.011840087361633778,
0.02981303073465824,
-0.033005211502313614,
-0.05567936599254608,
0.04503876343369484,
-0.05006886646151543,
-0.024183183908462524,
-0.0043626464903354645,
0.02766556292772293,
-0.008759149350225925,
-0.06512048095464706,
0.038751136511564255,
-0.057846177369356155,
0.016502605751156807,
0.06670689582824707,
-0.03149617835879326,
0.04128553345799446,
-0.029387405142188072,
0.013639315962791443,
0.010737334378063679,
-0.04352973401546478,
0.05335777997970581,
0.01899830996990204,
-0.048521142452955246,
-0.01824379526078701,
0.0009310526074841619,
0.0361393503844738,
0.015632010996341705,
0.09178002178668976,
-0.0015755344647914171,
0.05328039079904556,
0.039176758378744125,
0.04186592996120453,
0.048250291496515274,
0.014790435321629047,
0.01654129847884178,
-0.05711100995540619,
-0.03639085590839386,
0.028129881247878075,
-0.004573040176182985,
-0.0018282487289980054,
-0.029522832483053207,
0.0014993574004620314,
-0.009644254110753536,
0.053744710981845856,
-0.01443252433091402,
-0.026562809944152832,
0.02149401418864727,
-0.05842657387256622,
-0.027356019243597984,
0.03315998241305351,
-0.0025343976449221373,
0.020565379410982132,
-0.018224447965621948,
0.021687479689717293,
-0.0002648058580234647,
-0.0359845794737339,
0.01310728583484888,
0.09139309078454971,
0.005136508494615555,
0.030896436423063278,
0.006210241932421923,
0.050649262964725494,
-0.041827235370874405,
0.012178651988506317,
-0.004640752915292978,
-0.02766556292772293,
0.012865453958511353,
-0.04503876343369484,
0.029909763485193253,
0.05215829238295555,
-0.019356220960617065,
-0.00924764946103096,
-0.05447987839579582,
-0.019452953711152077,
0.008115876466035843,
0.03544287383556366,
0.038499630987644196,
0.005760434549301863,
-0.004573040176182985,
0.04306541383266449,
-0.06299235671758652,
-0.023951025679707527,
0.008749476633965969,
-0.023177163675427437,
-0.023177163675427437,
0.0025247244630008936,
0.0394476093351841,
0.033856458961963654,
-0.04128553345799446,
-0.00539768673479557,
-0.04298802837729454,
-0.06825461983680725,
-0.008217446506023407,
0.018137387931346893,
-0.03716471791267395,
0.03315998241305351,
-0.02089427225291729,
-0.020352568477392197,
0.04805682599544525,
-0.009363729506731033,
0.053976867347955704,
-0.014664683490991592,
-0.05134573578834534,
0.05061056837439537,
-0.066590815782547,
0.037706419825553894,
0.02859419770538807,
0.013087939471006393,
-0.022113103419542313,
0.05471203848719597,
0.023989718407392502,
-0.033179327845573425,
-0.0342433899641037,
0.0022417812142521143,
0.04600609093904495,
0.04186592996120453,
-0.024763580411672592,
0.023351283743977547,
-0.005562132690101862,
-0.011240344494581223,
-0.03921545296907425,
0.05250652879476547,
-0.030509505420923233,
0.030257999897003174,
0.015158019959926605,
0.02919393964111805,
-0.002643221989274025,
-0.05331908538937569,
-0.022635459899902344,
0.03604261949658394,
-0.005499256309121847,
-0.01654129847884178,
-0.002041060710325837,
0.018427586182951927,
0.016260772943496704,
-0.005542785860598087,
-0.033527567982673645,
0.01279774121940136,
-0.011298383586108685,
0.006432726979255676,
0.06488832086324692,
0.022906312718987465,
0.029426099732518196,
0.02689170092344284,
-0.02816857397556305,
0.024628154933452606,
0.007878881879150867,
0.020333221182227135,
0.009223466739058495,
0.05358993634581566,
-0.04643171280622482,
-0.009044511243700981,
0.00008403656829614192,
-0.007433910854160786,
-0.028458772227168083,
0.020700806751847267,
-0.024299263954162598,
0.022654807195067406,
0.04101468250155449,
0.019085370004177094,
0.014993574470281601,
0.0201204102486372,
0.054247718304395676
] |
17,849 | imodels.algebraic.slim | __init__ | null | def __init__(self, alpha=0.01):
self.alpha = alpha
| (self, alpha=0.01) | [
0.014169101603329182,
-0.0077836280688643456,
0.007161278743296862,
0.03364095836877823,
-0.0046889325603842735,
-0.024604108184576035,
-0.05036766082048416,
0.012037768959999084,
-0.013231315650045872,
0.04259255900979042,
-0.003388819517567754,
0.016846055164933205,
-0.0005525480955839157,
0.04371790215373039,
-0.051595307886600494,
-0.0050683100707829,
0.04767365753650665,
0.0422174446284771,
-0.0037277014926075935,
-0.004633517935872078,
-0.006662547122687101,
0.023478765040636063,
0.0007166606956161559,
0.056403595954179764,
-0.004228564910590649,
0.0385344997048378,
0.02214881218969822,
0.01157740131020546,
-0.018789831548929214,
-0.029429446905851364,
-0.003401607507839799,
-0.006705173756927252,
0.02722991071641445,
0.050708673894405365,
0.014979008585214615,
-0.024842817336320877,
0.007570494897663593,
0.011492147110402584,
-0.08613995462656021,
0.02883267216384411,
0.058551982045173645,
-0.00486370176076889,
-0.006018884479999542,
-0.0251326784491539,
-0.013802512548863888,
0.004671881906688213,
0.06526993960142136,
0.04518425837159157,
-0.001133869169279933,
-0.0408874936401844,
0.0070504494942724705,
-0.024825766682624817,
0.06390588730573654,
-0.016615871340036392,
-0.03498796373605728,
0.10366803407669067,
0.029514700174331665,
0.03856860101222992,
0.0021228077821433544,
0.014296981506049633,
-0.017800893634557724,
-0.010537310503423214,
0.015260344371199608,
-0.05674460902810097,
-0.03740915656089783,
-0.01393891777843237,
-0.07843305170536041,
0.04637780785560608,
-0.0012201881036162376,
0.06922569870948792,
0.050606369972229004,
0.044775042682886124,
-0.010383854620158672,
-0.007046186830848455,
-0.023802727460861206,
0.008619111031293869,
-0.07133997976779938,
0.03295893222093582,
-0.03154372796416283,
-0.025780603289604187,
0.009045377373695374,
0.02231931872665882,
-0.004130523186177015,
0.03744325786828995,
0.023529917001724243,
-0.07979711145162582,
-0.045934487134218216,
-0.02804834209382534,
0.021773697808384895,
0.07618236541748047,
-0.07052154839038849,
0.00275794486515224,
0.008367612957954407,
-0.003295040922239423,
0.024672310799360275,
0.011833161115646362,
0.054698530584573746,
-0.03611330687999725,
0.08184318989515305,
-0.008423027582466602,
-0.003058462869375944,
0.005618193652480841,
-0.021893052384257317,
0.02308660000562668,
-0.008410239592194557,
-0.0638376846909523,
-0.0445704348385334,
-0.025610096752643585,
0.0037895101122558117,
0.03955753892660141,
0.015703661367297173,
0.007902982644736767,
-0.021688444539904594,
0.03413543105125427,
-0.021586140617728233,
-0.0464119091629982,
-0.05139070004224777,
0.002173959743231535,
0.0291566364467144,
0.025695350021123886,
0.021978305652737617,
0.019949277862906456,
-0.0385344997048378,
0.06694090366363525,
0.013290992937982082,
0.01653061807155609,
0.009036852046847343,
0.0005123191513121128,
-0.025320235639810562,
-0.024723462760448456,
0.026854796335101128,
0.02992391586303711,
-0.025541894137859344,
0.025797653943300247,
0.0309128537774086,
-0.061450593173503876,
0.015984997153282166,
0.04712803661823273,
-0.00005061915726400912,
0.050640471279621124,
0.0023402036167681217,
0.009088004007935524,
0.019096743315458298,
-0.03884141147136688,
-0.002698267577216029,
0.049787938594818115,
0.036181509494781494,
-0.030554790049791336,
-0.03106630966067314,
0.02335941046476364,
0.03662482649087906,
0.024706412106752396,
0.008614848367869854,
-0.01849997043609619,
0.031236816197633743,
-0.05926810950040817,
-0.008444341830909252,
-0.06336026638746262,
0.03945523500442505,
-0.009488694369792938,
-0.015302971005439758,
0.03959164023399353,
-0.03214050084352493,
-0.06673629581928253,
0.0040580579079687595,
0.03846629709005356,
-0.031458474695682526,
-0.0007054712041281164,
-0.0034740727860480547,
-0.032362159341573715,
0.008994225412607193,
-0.0961657464504242,
-0.0251326784491539,
0.03498796373605728,
-0.02526908367872238,
0.028696266934275627,
0.008423027582466602,
0.032242804765701294,
0.018875084817409515,
0.03268612176179886,
0.03393082320690155,
0.003614740679040551,
-0.05882479250431061,
-0.007391463033854961,
0.06066626310348511,
-0.035260774195194244,
0.03495386242866516,
0.05681281164288521,
-0.011986616998910904,
-0.0350220650434494,
0.03556768596172333,
0.03648842126131058,
-0.004629255272448063,
-0.014296981506049633,
-0.011261963285505772,
-0.009164731949567795,
0.010920950211584568,
-0.07440909743309021,
0.039046019315719604,
0.04620730131864548,
-0.024825766682624817,
-0.031270917505025864,
-0.020017480477690697,
-0.02499627321958542,
0.04412711784243584,
-0.02610456757247448,
-0.0025149730499833822,
-0.007340311072766781,
-0.03205524757504463,
-0.04535476490855217,
-0.04249025508761406,
-0.01827831193804741,
0.043138179928064346,
-0.0013139668153598905,
0.0003487393551040441,
-0.09916666150093079,
0.021534988656640053,
-0.0029582902789115906,
0.027792582288384438,
0.07979711145162582,
0.012702744454145432,
-0.01538822427392006,
0.014305506832897663,
-0.02881562151014805,
0.010298601351678371,
0.005140775348991156,
0.03498796373605728,
-0.007741001434624195,
-0.05793815478682518,
-0.026564935222268105,
-0.012685693800449371,
-0.044843245297670364,
-0.023751575499773026,
-0.00971887819468975,
-0.004023956600576639,
0.06891878694295883,
0.008559433743357658,
0.019812870770692825,
-0.1291758269071579,
-0.062371328473091125,
0.05046996474266052,
0.02804834209382534,
0.04153541848063469,
0.007851830683648586,
0.008525332435965538,
0.013350670225918293,
0.007272107992321253,
0.04532066360116005,
-0.0480828732252121,
-0.005170613992959261,
-0.06322386115789413,
-0.03693173825740814,
-0.008943073451519012,
0.031458474695682526,
-0.011833161115646362,
0.010955051518976688,
-0.03553358465433121,
-0.01933545246720314,
0.017937298864126205,
0.002868774114176631,
-0.04958333075046539,
-0.019915174692869186,
-0.0054178484715521336,
0.10475928336381912,
0.059575021266937256,
0.043035876005887985,
0.006061511114239693,
-0.006969458889216185,
0.016846055164933205,
0.0013672501081600785,
0.08764041215181351,
0.010443531908094883,
0.005294231232255697,
0.0037447521463036537,
0.006274644285440445,
-0.03880731016397476,
0.0044928500428795815,
0.005865428596735001,
-0.020017480477690697,
0.04648011177778244,
0.06411049515008926,
-0.028696266934275627,
-0.05503954365849495,
0.03260086849331856,
-0.01407532300800085,
-0.013026706874370575,
0.005157826002687216,
0.04804877191781998,
0.008512544445693493,
-0.043104078620672226,
0.007932821288704872,
0.029429446905851364,
0.06492892652750015,
0.011338691227138042,
0.0748865157365799,
-0.03195294365286827,
-0.007012085523456335,
0.0036211346741765738,
0.016999512910842896,
0.016777852550148964,
0.06455381214618683,
-0.08586714416742325,
0.04235384985804558,
0.012830624356865883,
-0.05101558566093445,
0.00005807882553199306,
0.0011594451498240232,
0.049856141209602356,
0.04630960524082184,
0.023410562425851822,
0.043069977313280106,
0.026547884568572044,
-0.03077644854784012,
0.0521068274974823,
-0.008448604494333267,
-0.05012895166873932,
0.04849208891391754,
-0.05122019350528717,
-0.0005440227687358856,
0.09296022355556488,
-0.02046079747378826,
-0.0031245341524481773,
-0.07249942421913147,
-0.01304375845938921,
-0.007216693367809057,
-0.027809632942080498,
0.03648842126131058,
0.0638376846909523,
-0.005784437991678715,
-0.006027409806847572,
-0.09220999479293823,
-0.020870013162493706,
0.006108400411903858,
0.008683050982654095,
-0.07720540463924408,
-0.012958504259586334,
0.0030648568645119667,
-0.008307935670018196,
0.00971887819468975,
-0.05490313842892647,
0.005106674041599035,
-0.006112663075327873,
-0.050674572587013245,
0.028287051245570183,
0.021927153691649437,
-0.03386262059211731,
-0.00014173364615999162,
-0.04726444184780121,
0.0500948503613472,
-0.012864725664258003,
-0.008171530440449715,
-0.005669345613569021,
0.01113408338278532,
0.056574102491140366,
0.040239568799734116,
0.01646241545677185,
-0.0145783182233572,
-0.01844881847500801,
0.013606430031359196,
-0.005106674041599035,
0.030316080898046494,
0.03011147305369377,
-0.05115199089050293,
0.015669560059905052,
0.009377865120768547,
-0.012327630072832108,
0.00010709948401199654,
-0.041092101484537125,
0.04740084707736969,
-0.015277395024895668,
0.01653061807155609,
-0.036147408187389374,
-0.05139070004224777,
-0.016684073954820633,
-0.004799761809408665,
-0.002868774114176631,
-0.049719735980033875,
0.02792898751795292,
0.07345426082611084,
-0.019898124039173126,
0.027792582288384438,
0.010631089098751545,
0.029634054750204086,
0.03188474103808403,
-0.007037661504000425,
-0.017988450825214386,
-0.0004209382750559598,
-0.009463118389248848,
0.044979650527238846,
0.03251561522483826,
-0.02787783555686474,
-0.012907352298498154,
0.05503954365849495,
-0.038261689245700836,
-0.00008598596468800679,
0.008849294856190681,
0.03965984284877777,
-0.02112577296793461,
-0.046070896089076996,
0.0027003989089280367,
0.024518854916095734,
-0.01938660442829132,
-0.014637995511293411,
0.01409237366169691,
-0.009514270350337029,
-0.01639421284198761,
0.0683731660246849,
0.04279716685414314,
-0.006504828110337257,
0.06172340363264084,
-0.04081929102540016,
0.008082014508545399,
-0.055448759347200394,
-0.04058058187365532,
0.04242205247282982,
-0.04354739561676979,
0.01021334808319807,
-0.0691915974020958,
0.011952515691518784,
-0.032225754112005234,
-0.003405870171263814,
0.030384283512830734,
0.016863105818629265,
0.048764899373054504,
0.020835911855101585,
-0.013751360587775707,
0.038193486630916595,
-0.010051366873085499,
0.012873250991106033,
-0.0075960708782076836,
-0.07986531406641006,
-0.05517594888806343,
0.017033614218235016,
-0.07277223467826843,
0.03867090493440628,
-0.009079478681087494,
-0.023734524846076965,
-0.05033355951309204,
-0.017255272716283798,
0.0008120378479361534,
0.059575021266937256,
-0.006440888158977032,
0.040273670107126236,
0.004995844792574644,
-0.03360685706138611,
-0.05899529904127121,
0.007698374800384045,
0.014910805970430374,
0.032464463263750076,
-0.05439161881804466,
0.022728534415364265,
0.04927641898393631,
0.03781837224960327,
-0.022046508267521858,
0.05490313842892647,
-0.01851702108979225,
-0.07502292096614838,
-0.03364095836877823,
0.014757350087165833,
-0.0281506460160017,
-0.01157740131020546,
0.014706198126077652,
-0.05330037698149681,
-0.017920248210430145,
-0.026428529992699623,
0.04416121914982796,
0.09712058305740356,
0.01942070573568344,
-0.02982161194086075,
-0.029736358672380447,
0.03456169739365578,
-0.009113579988479614,
-0.01399859506636858,
-0.06448560953140259,
0.0006703042308799922,
0.005174876656383276,
-0.02987276390194893,
0.002254950348287821,
0.004548264667391777,
-0.03955753892660141,
-0.025712400674819946,
-0.06472431868314743,
0.007613121531903744,
0.03491976112127304,
0.003921652678400278,
0.03560178726911545,
-0.030179675668478012,
0.0145783182233572,
0.040989797562360764,
0.026343276724219322,
-0.05892709642648697,
0.009258510544896126,
-0.017204120755195618,
0.06738422065973282,
-0.04617320001125336,
0.039182424545288086,
0.025746501982212067,
0.01851702108979225,
-0.015984997153282166,
0.018619325011968613,
-0.015098363161087036,
-0.015089837834239006,
-0.042149242013692856,
-0.06318975985050201,
0.024433601647615433,
-0.06185980886220932,
-0.041023898869752884,
-0.03757966309785843,
-0.0329248309135437,
0.002734500216320157,
0.04600268974900246,
-0.024740513414144516,
0.008410239592194557,
-0.010818646289408207,
0.01851702108979225,
0.009394915774464607,
-0.06728191673755646,
0.015601357445120811,
0.0034165268298238516,
-0.026786593720316887,
0.02523498237133026,
0.02704235352575779,
0.03178243711590767,
-0.03011147305369377,
-0.01008546818047762,
0.023427613079547882,
-0.03092990443110466,
-0.021688444539904594,
0.03679533302783966,
0.07945609092712402,
0.007902982644736767,
-0.02697415091097355,
-0.011440995149314404,
0.05711972340941429,
-0.028457557782530785,
0.016232231631875038,
-0.03580639511346817,
-0.025627147406339645,
0.003196999430656433,
-0.036283813416957855,
0.038125284016132355,
-0.0040985532104969025,
0.08054734021425247,
-0.0563012920320034,
0.02124512754380703,
-0.023410562425851822,
-0.06175750494003296,
0.019676465541124344,
-0.025661248713731766,
-0.0020663272589445114,
0.014569791965186596,
-0.06274644285440445,
-0.06646348536014557,
-0.03000916913151741,
0.02308660000562668,
0.02509857714176178,
0.012881776317954063,
-0.023990284651517868,
0.019949277862906456,
0.02801424078643322,
0.0032140500843524933,
-0.012395832687616348,
0.02601931244134903,
-0.016794903203845024,
-0.07475011050701141,
-0.025627147406339645,
0.030605942010879517,
0.009309662505984306,
0.024911019951105118,
-0.008005286566913128,
0.005844115279614925,
-0.04358149692416191,
-0.008977174758911133,
0.02700825221836567,
-0.06356487423181534,
0.047741860151290894,
-0.009974638931453228,
0.01304375845938921,
-0.04934462159872055,
-0.017954349517822266,
0.028679216280579567,
-0.011347216553986073,
-0.06908929347991943,
-0.07038514316082001,
-0.00960804894566536,
-0.011782009154558182,
0.003167160786688328,
0.02029029093682766,
-0.022609179839491844,
-0.002272001001983881,
-0.002272001001983881,
0.003320616902783513,
-0.02499627321958542,
-0.03587459772825241,
-0.055516961961984634,
-0.0427289642393589,
-0.0033675062004476786,
-0.024604108184576035,
0.013896291144192219,
0.03676123172044754,
-0.006474989466369152,
0.001702935085631907,
-0.02325710654258728,
0.0350220650434494,
0.03186769038438797,
-0.00031117460457608104,
0.04320638254284859,
-0.0026471156161278486,
-0.04320638254284859,
-0.03188474103808403,
0.004335131496191025,
0.00962509959936142,
-0.04228564724326134,
-0.030333131551742554,
0.02426309511065483,
-0.01104030478745699,
-0.007864618673920631,
-0.00652614189311862,
0.01254076324403286,
0.06110958009958267,
-0.06939620524644852,
0.056540001183748245,
0.0006383342551998794,
0.03469810262322426,
0.017749741673469543,
-0.07215841114521027,
0.038057081401348114,
-0.12406063079833984,
0.005801488645374775,
-0.04627550393342972,
0.02605341374874115,
0.02514972910284996,
-0.05838147550821304,
-0.07161279022693634,
-0.06431510299444199,
-0.029429446905851364,
-0.00959952361881733,
0.011713806539773941,
0.024501804262399673,
0.013384771533310413,
-0.014348133467137814,
0.019505959004163742,
-0.010614038445055485,
0.005379484500735998,
0.003013704903423786,
0.012898826971650124,
-0.0913233533501625,
-0.0012351074256002903,
0.006210704334080219,
-0.02520088106393814,
-0.046070896089076996,
0.015848591923713684,
-0.00865321233868599,
0.01919904723763466,
-0.04334278777241707,
-0.006645496468991041,
0.044809143990278244,
0.07904687523841858,
0.04634370654821396,
-0.004239221569150686,
-0.07734180986881256,
0.016794903203845024,
0.002860248787328601,
0.04170592501759529,
0.07481831312179565,
0.011705281212925911,
-0.015840066596865654,
-0.06864597648382187,
-0.024893969297409058,
-0.01157740131020546,
-0.06799805164337158,
0.03754556179046631,
-0.02601931244134903,
-0.015959421172738075,
0.015729237347841263,
-0.008917497470974922,
-0.01628338359296322,
0.013785461895167828,
0.043820206075906754,
0.030520688742399216,
0.04000085964798927,
0.03843219578266144,
0.006300220265984535,
-0.033316995948553085,
0.04896950721740723,
0.0345957987010479,
-0.02900317870080471,
0.06509943306446075,
0.013239840976893902,
-0.025541894137859344,
-0.07195380330085754,
-0.037272751331329346,
0.003989855293184519,
0.009369339793920517,
0.013563803397119045,
-0.00510241137817502,
-0.05040176212787628,
-0.015737762674689293,
0.03311238810420036,
-0.026462631300091743,
0.011330165900290012,
0.026445580646395683,
-0.06537224352359772,
0.06554275006055832,
0.014169101603329182,
-0.007208168040961027,
0.028406405821442604,
-0.015976471826434135,
0.01654766872525215,
-0.06018884479999542,
0.008397451601922512,
0.0872993990778923,
-0.000658049073535949,
0.00878961756825447,
-0.013870715163648129,
0.06847546994686127,
0.0034740727860480547,
-0.006692385766655207,
-0.031339120119810104,
0.04446813091635704,
-0.017161494120955467,
-0.0031458474695682526,
0.04330868646502495,
0.014186152257025242,
-0.017681539058685303,
-0.01159445196390152,
-0.043854307383298874,
-0.010324177332222462,
-0.03880731016397476,
-0.05135659873485565,
0.012753896415233612,
0.03454464673995972,
-0.014919331297278404,
0.03894371539354324,
-0.034408241510391235,
-0.04900360852479935,
0.025848805904388428,
0.0011040305253118277,
0.028287051245570183,
0.04163772240281105,
-0.01757923513650894,
-0.004624992609024048,
-0.023052498698234558,
-0.007651485502719879,
0.0035337500739842653,
0.04064878448843956,
0.02717875875532627,
0.02809949405491352,
0.02134743146598339,
-0.008060701191425323,
-0.0017125260783359408,
0.021858951076865196,
0.03265202045440674,
0.0641786977648735,
0.07168099284172058,
-0.026905948296189308,
0.03169718384742737,
0.0033014349173754454,
0.006739275064319372,
-0.06537224352359772,
-0.05619898810982704,
-0.03601100295782089,
0.04334278777241707,
0.0484238862991333,
-0.000515782565344125,
0.06093907356262207,
0.03202114626765251,
0.0192672498524189
] |
17,855 | imodels.algebraic.slim | _fit_backup | null | def _fit_backup(self, X, y, sample_weight):
m = Lasso(alpha=self.alpha)
m.fit(X, y, sample_weight=sample_weight)
self.model_.coef_ = np.round(m.coef_).astype(int)
self.model_.intercept_ = m.intercept_
| (self, X, y, sample_weight) | [
0.0043516093865036964,
-0.0197735708206892,
0.08429129421710968,
0.013134919106960297,
-0.024401048198342323,
-0.021482177078723907,
-0.030043013393878937,
0.025949474424123764,
0.04766302555799484,
0.014149405062198639,
-0.029989618808031082,
-0.029437880963087082,
0.021126218140125275,
0.0045318142510950565,
-0.05068868398666382,
0.057238347828388214,
-0.008111435920000076,
-0.030487962067127228,
-0.0384080708026886,
0.004362733103334904,
0.011559796519577503,
-0.03328224644064903,
-0.044744156301021576,
0.05805705487728119,
-0.02404508925974369,
0.015510951168835163,
-0.021998319774866104,
0.031021902337670326,
0.039796311408281326,
-0.049442823976278305,
-0.002938893623650074,
-0.026091858744621277,
0.013481980189681053,
0.028120828792452812,
-0.00040796337998472154,
-0.041326940059661865,
0.012013645842671394,
0.008649825118482113,
0.025931676849722862,
-0.034634895622730255,
0.018064962700009346,
-0.02130419760942459,
0.04371187090873718,
0.04492213577032089,
-0.00998467393219471,
0.05862658843398094,
-0.05150739103555679,
0.08592870831489563,
0.037268996238708496,
-0.04905126988887787,
-0.02546892873942852,
-0.014861324802041054,
0.00013146876881364733,
0.0172729529440403,
0.021144015714526176,
-0.0074529098346829414,
0.03833687677979469,
0.08073169738054276,
0.039689525961875916,
-0.0301675982773304,
0.017895882949233055,
-0.020165126770734787,
-0.02634103037416935,
-0.007168141659349203,
0.003366045420989394,
-0.057665497064590454,
-0.04421021416783333,
0.032641518861055374,
0.011186039075255394,
0.02744450606405735,
0.023511148989200592,
-0.010509715415537357,
0.0007013521972112358,
0.04114896059036255,
-0.028138628229498863,
0.012547585181891918,
-0.021108420565724373,
-0.0014260641764849424,
-0.03698423132300377,
-0.010358432307839394,
-0.04089978709816933,
0.020716864615678787,
-0.013232807628810406,
0.03388737887144089,
-0.058341823518276215,
-0.045812033116817474,
0.0384080708026886,
-0.01080338191241026,
0.059338510036468506,
0.04898007586598396,
-0.023991694673895836,
0.07290057837963104,
0.03547140210866928,
-0.0010823404882103205,
0.10130617767572403,
-0.011951352469623089,
-0.016133880242705345,
0.02621644362807274,
0.05556533485651016,
0.017361942678689957,
-0.06656449288129807,
-0.02931329421699047,
-0.010082563385367393,
0.06535422801971436,
-0.016552133485674858,
-0.0026519009843468666,
0.060441985726356506,
-0.0427863746881485,
-0.008289415389299393,
-0.010411825962364674,
-0.015662234276533127,
0.00019661220721900463,
-0.05990804731845856,
0.04784100502729416,
-0.04492213577032089,
-0.0395115464925766,
-0.004102437291294336,
0.03175162151455879,
-0.021535571664571762,
0.017753498628735542,
0.013490878976881504,
0.034314531832933426,
-0.06902062147855759,
0.0015695604961365461,
0.0016541009536013007,
0.004760963376611471,
0.04677312821149826,
0.009699906222522259,
0.02271023951470852,
-0.07667375355958939,
-0.0350976437330246,
-0.02600286900997162,
-0.04342710226774216,
0.03360261023044586,
-0.0614386722445488,
-0.025166362524032593,
-0.020004944875836372,
-0.003555149072781205,
0.005134721286594868,
-0.011266130022704601,
0.027836062014102936,
0.04563405364751816,
0.0723666399717331,
0.012476393021643162,
0.09155287593603134,
0.012796756811439991,
0.03677065297961235,
0.03621891513466835,
-0.028601374477148056,
-0.008858950808644295,
-0.00013744778698310256,
0.017922578379511833,
0.02383151277899742,
-0.0395471416413784,
-0.004965640138834715,
0.0027787117287516594,
-0.07610421627759933,
-0.031110892072319984,
0.02546892873942852,
-0.013748949393630028,
0.008876749314367771,
-0.0036530380602926016,
0.029277699068188667,
-0.0041625057347118855,
0.0036597123835235834,
0.05364315211772919,
0.0010194913484156132,
0.013748949393630028,
-0.02723092958331108,
-0.021820340305566788,
-0.030256588011980057,
-0.0636812224984169,
0.03305087238550186,
-0.0026785980444401503,
0.04335591197013855,
0.05246848613023758,
0.028814950957894325,
-0.06962575018405914,
0.03322885185480118,
0.04456617683172226,
0.01669451780617237,
0.020592277869582176,
0.02053888514637947,
0.0012592080747708678,
-0.020040540024638176,
-0.029277699068188667,
-0.012031443417072296,
0.01574232429265976,
-0.03417214751243591,
0.0021390963811427355,
0.01223612017929554,
0.037802938371896744,
0.03961833193898201,
-0.02950907312333584,
-0.04623918607831001,
0.024721411988139153,
-0.005944529548287392,
-0.04139813408255577,
-0.016160577535629272,
0.05535176023840904,
-0.025326544418931007,
-0.09027142077684402,
0.06279131770133972,
-0.03552479296922684,
0.011141544207930565,
0.03876402974128723,
-0.05503139644861221,
0.03588075563311577,
-0.05414149537682533,
-0.031787216663360596,
0.0428219735622406,
0.017878083512187004,
0.015279577113687992,
-0.01536856684833765,
0.045491669327020645,
0.003888861509039998,
0.02372472546994686,
-0.004854402504861355,
0.03744697943329811,
-0.029010729864239693,
-0.03426113724708557,
-0.03226776048541069,
-0.10408266633749008,
0.012956938706338406,
0.05990804731845856,
-0.018296336755156517,
0.06535422801971436,
-0.04260839521884918,
-0.010821179486811161,
-0.022532260045409203,
0.007159242872148752,
-0.04687991365790367,
-0.0001440525084035471,
-0.02886834554374218,
-0.01558214332908392,
0.013642162084579468,
-0.04150491952896118,
0.006100262049585581,
-0.011978049762547016,
0.015920305624604225,
-0.01650763861835003,
-0.003940030932426453,
0.01558214332908392,
-0.026928363367915154,
-0.0034127652179449797,
0.06350324302911758,
0.02854798175394535,
-0.029010729864239693,
-0.005326049402356148,
-0.037162210792303085,
-0.017789093777537346,
0.05474662780761719,
-0.0017686756327748299,
0.00016435334691777825,
-0.0032993031200021505,
-0.040793001651763916,
0.03096850775182247,
-0.030594751238822937,
-0.04898007586598396,
-0.029900629073381424,
-0.06613734364509583,
0.018741287291049957,
-0.01724625565111637,
0.003526227315887809,
-0.05869778245687485,
0.010589806362986565,
-0.0175488218665123,
0.004318238236010075,
0.020271914079785347,
0.04089978709816933,
0.0395115464925766,
0.03063034638762474,
-0.0169970840215683,
0.06111830845475197,
0.028814950957894325,
0.031235478818416595,
0.023511148989200592,
-0.003014535177499056,
0.05588569864630699,
0.026536807417869568,
0.042750779539346695,
-0.0020189599599689245,
0.06325406581163406,
0.004542937967926264,
-0.009646512567996979,
-0.022194096818566322,
0.012663272209465504,
-0.008858950808644295,
0.012467494234442711,
-0.019043853506445885,
-0.011097048409283161,
0.02096603624522686,
0.09610916674137115,
0.023190785199403763,
-0.013081525452435017,
-0.014621051959693432,
-0.024223068729043007,
-0.0015061552403494716,
0.00779107166454196,
0.040793001651763916,
-0.029936224222183228,
0.0028098581824451685,
0.02174914814531803,
0.01669451780617237,
0.05293123051524162,
-0.04203886166214943,
0.02372472546994686,
-0.04260839521884918,
-0.06649330258369446,
0.015510951168835163,
0.050119150429964066,
0.08350818604230881,
0.014256192371249199,
-0.042643990367650986,
-0.0460968017578125,
-0.05609927326440811,
0.0527176558971405,
0.022799229249358177,
0.009922381490468979,
0.06823750585317612,
-0.015128294005990028,
-0.03776734322309494,
-0.013197212480008602,
-0.029028527438640594,
-0.01503930427134037,
0.02372472546994686,
0.06862906366586685,
0.05204133316874504,
-0.05068868398666382,
-0.04488654062151909,
-0.033744994550943375,
-0.01599149778485298,
-0.017851388081908226,
-0.007341672200709581,
-0.058235034346580505,
0.01843872107565403,
-0.02610965631902218,
-0.03812330216169357,
0.0032103131525218487,
0.023635735735297203,
-0.010669897310435772,
-0.020610075443983078,
-0.05478222295641899,
0.009513027034699917,
-0.0030701537616550922,
-0.027907254174351692,
0.009237158112227917,
0.008471844717860222,
-0.0017608889611437917,
0.008209324441850185,
-0.06232857331633568,
0.03390517830848694,
0.039119988679885864,
0.033656004816293716,
0.016365254297852516,
0.037802938371896744,
-0.020378703251481056,
0.0017019330989569426,
0.02950907312333584,
-0.030487962067127228,
-0.04424581304192543,
-0.017175063490867615,
-0.05364315211772919,
0.014727839268743992,
0.009174865670502186,
0.026963960379362106,
-0.015546547248959541,
-0.021428784355521202,
0.015154991298913956,
0.0009560859762132168,
-0.022033914923667908,
-0.05246848613023758,
-0.07144114375114441,
0.062399763613939285,
-0.011230533942580223,
-0.02215850166976452,
-0.05221931263804436,
-0.000033788379369070753,
0.057345133274793625,
0.05531616508960724,
0.04225243628025055,
-0.028601374477148056,
0.01624956727027893,
0.0033326742704957724,
0.00247169635258615,
-0.013428585603833199,
0.021695753559470177,
-0.0214109867811203,
0.005197014193981886,
-0.02942008338868618,
0.012387403286993504,
-0.007314975373446941,
0.010305037721991539,
-0.034955259412527084,
0.035613786429166794,
-0.010082563385367393,
0.004473970737308264,
0.03698423132300377,
-0.0658525750041008,
0.0026541256811469793,
-0.008939041756093502,
-0.002994512440636754,
-0.06193701550364494,
0.005232609808444977,
-0.041113365441560745,
-0.002800959162414074,
-0.030274387449026108,
0.040116675198078156,
-0.0032993031200021505,
-0.011141544207930565,
-0.025041775777935982,
0.027355516329407692,
0.06613734364509583,
-0.0038999852258712053,
0.044388193637132645,
0.00697236368432641,
0.03449251130223274,
0.005272655747830868,
-0.009815593250095844,
0.021482177078723907,
0.04883769527077675,
0.03719780594110489,
-0.008227122016251087,
-0.007982400245964527,
0.02621644362807274,
-0.007185939699411392,
-0.08073169738054276,
-0.06638651341199875,
0.021927127614617348,
0.011479705572128296,
-0.06136748194694519,
-0.03851485624909401,
-0.023528946563601494,
-0.01186236273497343,
0.001955554587766528,
-0.011595392599701881,
0.022443270310759544,
0.01361546479165554,
-0.05040391534566879,
-0.00023248628713190556,
0.02589607983827591,
-0.03634350374341011,
0.044744156301021576,
-0.0010500815697014332,
-0.05503139644861221,
-0.00937954243272543,
0.02646561525762081,
0.005859989207237959,
-0.058021459728479385,
-0.0028921738266944885,
0.06870025396347046,
-0.01085677556693554,
0.052966829389333725,
0.021642358973622322,
-0.04075740650296211,
-0.0007163692498579621,
0.00567755987867713,
-0.0658525750041008,
0.026287635788321495,
0.007924556732177734,
0.0006323849665932357,
-0.01964898407459259,
0.0031302219722419977,
0.010402927175164223,
0.005819943733513355,
0.0006768799503333867,
0.023511148989200592,
-0.0037353539373725653,
0.034403521567583084,
0.01497701182961464,
0.004304889589548111,
-0.034403521567583084,
0.029473476111888885,
-0.028565779328346252,
-0.008787759579718113,
0.015858011320233345,
0.014558758586645126,
0.027408909052610397,
0.03030998259782791,
-0.0042581697925925255,
-0.007363919634371996,
-0.032321155071258545,
0.04684431850910187,
0.01710387133061886,
0.006798833608627319,
0.01631186157464981,
-0.05136501044034958,
-0.018492115661501884,
0.02206951193511486,
0.060548774898052216,
-0.01383794005960226,
0.07546348869800568,
0.026536807417869568,
0.026323232799768448,
-0.05798586085438728,
-0.002887724433094263,
-0.028797153383493423,
0.01163988746702671,
0.04250160977244377,
-0.004149157088249922,
0.004707569256424904,
-0.031199881806969643,
-0.020467692986130714,
-0.03152024745941162,
-0.009495229460299015,
0.06425075232982635,
-0.03290848806500435,
-0.013508676551282406,
-0.04125574976205826,
0.036841847002506256,
-0.04050823301076889,
0.03152024745941162,
-0.009272754192352295,
0.05467543378472328,
-0.020467692986130714,
0.003012310480698943,
-0.047235872596502304,
0.09674989432096481,
0.06631532311439514,
-0.021482177078723907,
0.03833687677979469,
0.058021459728479385,
0.0504751093685627,
-0.0669560506939888,
0.037375785410404205,
0.016436446458101273,
0.014425273984670639,
-0.03625451400876045,
0.039440352469682693,
0.058021459728479385,
0.029028527438640594,
-0.0515785850584507,
0.02699955552816391,
0.03666386753320694,
0.014256192371249199,
-0.037055421620607376,
-0.005904484074562788,
-0.10678795725107193,
-0.02183813787996769,
-0.07040885835886002,
-0.05200573801994324,
-0.02139318734407425,
-0.03356701508164406,
-0.01752212457358837,
-0.0017597766127437353,
0.07489395886659622,
-0.03865724056959152,
0.013971424661576748,
-0.14316706359386444,
-0.020449893549084663,
-0.02600286900997162,
-0.058341823518276215,
-0.006264893803745508,
0.03872843459248543,
0.04289316385984421,
-0.01576012372970581,
-0.04994117096066475,
0.007924556732177734,
0.03580956161022186,
0.011978049762547016,
-0.027070747688412666,
-0.017255155369639397,
0.03648588806390762,
-0.04228803142905235,
0.015128294005990028,
-0.0025495626032352448,
-0.04200326278805733,
0.03694863244891167,
-0.07475157082080841,
-0.028814950957894325,
0.04349829629063606,
0.024401048198342323,
0.033424630761146545,
0.07190389186143875,
-0.042430415749549866,
0.02984723448753357,
0.01185346394777298,
-0.05777228623628616,
-0.024009492248296738,
0.05061749368906021,
0.05111583694815636,
-0.020823651924729347,
-0.056134872138500214,
-0.026625797152519226,
0.026198646053671837,
-0.026269838213920593,
-0.022977208718657494,
0.012663272209465504,
-0.02623424306511879,
-0.008249369449913502,
-0.024062886834144592,
0.04623918607831001,
-0.03299747779965401,
-0.04930044338107109,
0.010678796097636223,
-0.03534681349992752,
-0.037375785410404205,
-0.04456617683172226,
0.01733524538576603,
0.01107925083488226,
0.016685618087649345,
0.05969446897506714,
0.001359321759082377,
-0.0013059277553111315,
-0.002442774595692754,
0.0008565284078940749,
-0.04349829629063606,
-0.05506699159741402,
0.006456221919506788,
-0.016828002408146858,
-0.013099323026835918,
0.0030056361574679613,
0.033656004816293716,
-0.06944777071475983,
-0.05463983863592148,
-0.002729767234995961,
-0.00737726828083396,
-0.07169031351804733,
0.014460869133472443,
0.025931676849722862,
0.024952786043286324,
-0.05674000456929207,
0.025041775777935982,
0.07215306162834167,
-0.05353636294603348,
-0.0014605477917939425,
0.0031190982554107904,
-0.009504128247499466,
-0.022122906520962715,
-0.01597369834780693,
-0.013223908841609955,
-0.02965145744383335,
0.060513176023960114,
0.011043654754757881,
0.055707719177007675,
0.008320561610162258,
0.02174914814531803,
-0.00595342880114913,
0.029936224222183228,
-0.020983833819627762,
-0.022692441940307617,
-0.023653533309698105,
0.06325406581163406,
-0.003014535177499056,
-0.05004795640707016,
-0.029331093654036522,
0.005054629873484373,
-0.007355020847171545,
-0.0356493815779686,
-0.01580461859703064,
-0.00584219116717577,
-0.006100262049585581,
-0.03281949833035469,
0.011550897732377052,
0.03520442917943001,
0.017833588644862175,
0.031894005835056305,
0.04488654062151909,
0.0790230929851532,
-0.05535176023840904,
-0.04139813408255577,
0.05528056621551514,
0.04356948658823967,
0.03723340108990669,
0.08001977950334549,
0.06610174477100372,
-0.04314233735203743,
-0.025931676849722862,
0.0029856134206056595,
-0.03691303730010986,
-0.10073664039373398,
0.026821576058864594,
-0.05606367811560631,
0.022852623835206032,
-0.021677955985069275,
-0.06350324302911758,
-0.023119593039155006,
-0.05905374139547348,
-0.020254116505384445,
0.0002466690493747592,
0.031662631779909134,
0.005272655747830868,
0.046701934188604355,
-0.023528946563601494,
0.029580265283584595,
0.09198003262281418,
-0.03986750543117523,
0.030559154227375984,
-0.029259901493787766,
-0.010883472859859467,
0.02368912845849991,
0.0048944479785859585,
0.017041578888893127,
-0.051649775356054306,
-0.02600286900997162,
-0.010465219616889954,
-0.045491669327020645,
-0.05342957749962807,
0.00013550113362725824,
-0.06069115549325943,
0.021535571664571762,
0.017406437546014786,
-0.038016512989997864,
0.015226183459162712,
0.010874574072659016,
-0.006358332931995392,
-0.07122757285833359,
0.016596628352999687,
-0.03972512111067772,
-0.02281702682375908,
0.05125822126865387,
-0.009099223650991917,
-0.02819202095270157,
-0.006901171989738941,
0.04250160977244377,
0.03217877075076103,
-0.06193701550364494,
-0.03940475732088089,
0.002074578544124961,
0.02897513285279274,
0.017531024292111397,
-0.027462303638458252,
0.0162050724029541,
-0.0008648712537251413,
-0.00008120334678096697,
-0.025273149833083153,
0.035506997257471085,
-0.022478865459561348,
-0.000030294826501631178,
-0.04552726820111275,
0.030114205554127693,
-0.0025584616232663393,
0.004037919919937849,
0.046381570398807526,
0.028601374477148056,
0.029046325013041496,
-0.04663074389100075,
0.0301675982773304,
0.08571513742208481,
0.015626637265086174,
-0.00002720103475439828,
-0.004769862163811922,
0.00220917584374547,
0.0636100247502327,
-0.007261581253260374,
0.014247293584048748,
0.014416374266147614,
-0.008680971339344978,
0.012867948971688747,
-0.05463983863592148,
-0.007924556732177734,
0.01952439919114113,
0.005455085076391697,
0.034866269677877426,
0.05111583694815636,
-0.027747072279453278,
0.01678350754082203,
0.0066564492881298065,
0.041220150887966156,
-0.025540120899677277,
-0.008253819309175014,
-0.07880951464176178,
0.025985069572925568,
0.053180404007434845,
0.0015606615925207734,
0.022372078150510788,
0.07482276111841202,
0.06627972424030304
] |
17,864 | imodels.algebraic.slim | fit | fit a linear model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
| def fit(self, X, y, sample_weight=None):
'''fit a linear model with integer coefficient and L1 regularization.
In case the optimization fails, fit lasso and round coefs.
Params
------
_sample_weight: np.ndarray (n,), optional
weight for each individual sample
'''
X, y = check_X_y(X, y)
self.n_features_in_ = X.shape[1]
self.model_ = LinearRegression()
try:
import cvxpy as cp # package for optimization, import here to make it optional
from cvxpy.error import SolverError
# declare the integer-valued optimization variable
w = cp.Variable(X.shape[1], integer=True)
# set up the minimization problem
residuals = X @ w - y
if sample_weight is not None:
residuals = cp.multiply(sample_weight, residuals)
mse = cp.sum_squares(residuals)
l1_penalty = self.alpha * cp.norm(w, 1)
obj = cp.Minimize(mse + l1_penalty)
prob = cp.Problem(obj)
try:
# solve the problem using an appropriate solver
prob.solve()
self.model_.coef_ = w.value.astype(int)
self.model_.intercept_ = 0
except SolverError:
warnings.warn("gurobi, mosek, or cplex solver required for mixed-integer "
"quadratic programming. Rounding non-integer coefficients instead.")
self._fit_backup(X, y, sample_weight)
except ImportError:
warnings.warn("Should install cvxpy with pip install cvxpy. Rounding non-integer "
"coefficients instead.")
self._fit_backup(X, y, sample_weight)
return self
| (self, X, y, sample_weight=None) | [
0.005023994483053684,
-0.0345069095492363,
0.06500973552465439,
0.031711604446172714,
0.00230541848577559,
-0.04461155831813812,
-0.0345257967710495,
0.004702912177890539,
0.05148649960756302,
-0.018603889271616936,
-0.01656407117843628,
-0.017092913389205933,
0.015600824728608131,
0.022173570469021797,
-0.07573766261339188,
0.055301714688539505,
-0.040607474744319916,
-0.041967350989580154,
-0.042269546538591385,
0.024232273921370506,
-0.012531655840575695,
0.011719506233930588,
-0.009878003969788551,
0.10282190144062042,
-0.004632085096091032,
0.021285871043801308,
0.024421146139502525,
0.0030880568083375692,
0.031126100569963455,
-0.05858808755874634,
-0.04989997670054436,
0.04068302363157272,
-0.044838204979896545,
-0.018575558438897133,
-0.04449823871254921,
-0.030313951894640923,
0.0414762869477272,
-0.0011786791728809476,
0.010038545355200768,
-0.05023994669318199,
-0.010624048300087452,
0.008508682250976562,
0.032618191093206406,
-0.005118430592119694,
-0.021153660491108894,
-0.012947173789143562,
-0.07728641480207443,
0.100630983710289,
0.016242990270256996,
-0.05741707980632782,
-0.0023136816453188658,
-0.04498930275440216,
-0.012777188792824745,
-0.02921849489212036,
-0.036471176892519,
0.03671671077609062,
0.011171776801347733,
0.07864628732204437,
0.06663402915000916,
-0.04230732098221779,
-0.01134176179766655,
-0.013513789512217045,
-0.029331818222999573,
0.02398674003779888,
-0.014892554841935635,
-0.05159982293844223,
-0.03841656073927879,
0.008603118360042572,
0.03720777854323387,
0.03656561300158501,
-0.006653015036135912,
-0.013173820450901985,
0.007125195115804672,
0.011379536241292953,
0.03167383000254631,
0.04657582938671112,
-0.06432979553937912,
-0.035470157861709595,
-0.019009964540600777,
-0.003222628030925989,
0.02200358547270298,
0.03435581177473068,
0.0029251547530293465,
-0.05178869515657425,
-0.044838204979896545,
-0.06765393912792206,
0.013891533948481083,
-0.02957735024392605,
0.06965598464012146,
0.034676894545555115,
-0.022154683247208595,
0.0611945204436779,
0.02753753401339054,
0.030332839116454124,
0.08136604726314545,
0.021153660491108894,
0.024232273921370506,
-0.0038954843766987324,
0.0044975136406719685,
-0.024421146139502525,
-0.0562460720539093,
0.017895620316267014,
-0.01854722760617733,
0.0699959546327591,
-0.0162807647138834,
-0.02506331168115139,
0.041098542511463165,
-0.0038128530140966177,
-0.0019323963206261396,
-0.007096864283084869,
-0.04430936649441719,
-0.04189180210232735,
-0.04378052428364754,
-0.004249619320034981,
-0.06772948801517487,
-0.0034303872380405664,
-0.08929866552352905,
0.027178676798939705,
-0.03637674078345299,
0.0009012734517455101,
-0.00922639574855566,
0.03854877129197121,
-0.06028793379664421,
-0.005798369646072388,
0.03322257846593857,
-0.008442576974630356,
0.02999286912381649,
0.005151483230292797,
0.03820880129933357,
-0.047029122710227966,
-0.014552585780620575,
-0.011020679958164692,
-0.016941815614700317,
0.0017883814871311188,
-0.02783972956240177,
-0.006634128279983997,
-0.030219515785574913,
-0.00471235578879714,
0.049295585602521896,
-0.010982905514538288,
0.05137317627668381,
0.028972961008548737,
0.034091390669345856,
0.018707768991589546,
0.05258195847272873,
0.03762329742312431,
0.05862586200237274,
0.020681481808423996,
-0.03641451522707939,
0.00498622003942728,
-0.035470157861709595,
0.0005748790572397411,
0.02555437758564949,
-0.04910671338438988,
-0.005113708786666393,
0.00013722729636356235,
-0.02151251770555973,
-0.03227822110056877,
0.03860543295741081,
-0.008763659745454788,
-0.015213637612760067,
0.01913273148238659,
0.0013350887456908822,
0.016535740345716476,
0.020247075706720352,
0.03239154443144798,
-0.02544105425477028,
-0.010472950525581837,
-0.03818991407752037,
0.021833600476384163,
-0.002462418284267187,
-0.07264015823602676,
-0.004098522011190653,
0.009580531157553196,
0.02406228892505169,
0.0680316835641861,
0.013825428672134876,
-0.011275656521320343,
0.026782045140862465,
0.04752018675208092,
0.06168558821082115,
0.0035153795033693314,
-0.056283846497535706,
-0.012295565567910671,
-0.0062988800927996635,
0.04007863253355026,
-0.003201379906386137,
0.01336269173771143,
-0.044347140938043594,
-0.009311388246715069,
0.02772640623152256,
-0.01686626672744751,
0.043062809854745865,
-0.029822884127497673,
-0.024307822808623314,
0.02209802158176899,
0.018773874267935753,
-0.011908377520740032,
-0.0029818161856383085,
0.023061268031597137,
0.015194750390946865,
-0.032013799995183945,
0.058852508664131165,
-0.007649315055459738,
-0.02634764090180397,
0.00002696590127015952,
-0.04053192585706711,
0.04480043053627014,
-0.028972961008548737,
-0.04185402765870094,
0.019567135721445084,
0.00007481101056328043,
-0.033279240131378174,
0.04427159205079079,
0.03660338744521141,
0.017838958650827408,
-0.016016343608498573,
-0.045442596077919006,
0.010831807740032673,
-0.011058454401791096,
0.019085513427853584,
-0.017980610951781273,
-0.0759265348315239,
0.00554811442270875,
0.053904060274362564,
-0.04423381760716438,
0.058663636445999146,
0.001868652063421905,
0.02802859991788864,
-0.0384732224047184,
0.04083412140607834,
-0.09640025347471237,
0.06145894154906273,
-0.04627363383769989,
-0.04786015674471855,
-0.014722570776939392,
-0.021984698250889778,
0.05949467048048973,
-0.019793782383203506,
-0.013551563955843449,
-0.005340354982763529,
0.013079384341835976,
0.02151251770555973,
0.00043912732508033514,
-0.0047761001624166965,
0.06459421664476395,
0.026026558130979538,
0.02258908748626709,
0.02791527844965458,
-0.01544028427451849,
-0.016233546659350395,
0.0026111549232155085,
-0.04684025049209595,
-0.00023697530559729785,
-0.04260951653122902,
-0.07811744511127472,
0.03473355621099472,
-0.018084490671753883,
-0.012012257240712643,
-0.015015321783721447,
-0.05277083069086075,
0.057454854249954224,
-0.0192366112023592,
0.061421167105436325,
-0.0630832388997078,
-0.006180835422128439,
-0.012323896400630474,
0.032712627202272415,
0.040909670293331146,
0.07139360904693604,
0.009538034908473492,
0.03777439519762993,
-0.005302580539137125,
0.04064524918794632,
-0.009708018973469734,
0.05783259868621826,
-0.032221559435129166,
0.004048943053930998,
0.047482412308454514,
0.01272997073829174,
0.02053038403391838,
0.008631449192762375,
0.048200126737356186,
0.002696147421374917,
-0.02011486515402794,
-0.015185306780040264,
-0.012021700851619244,
-0.01449592411518097,
-0.03866209462285042,
0.001487366738729179,
-0.001770674716681242,
0.006856052670627832,
0.06667180359363556,
0.03267485275864601,
0.0365278385579586,
0.023703431710600853,
0.03539460897445679,
-0.013154933229088783,
0.034582458436489105,
0.015742478892207146,
-0.024817777797579765,
0.038907624781131744,
-0.016535740345716476,
-0.03739665076136589,
0.00757376616820693,
-0.04124964028596878,
-0.006879661697894335,
-0.05397960916161537,
-0.05503729358315468,
0.05685046315193176,
0.009245282970368862,
0.06980708241462708,
0.01794283837080002,
-0.05760595202445984,
-0.04310058429837227,
-0.004957889206707478,
0.07637982815504074,
0.035564593970775604,
0.02940736711025238,
0.029917320236563683,
-0.010775146074593067,
-0.030446162447333336,
0.013447684235870838,
-0.039020948112010956,
0.006794669199734926,
0.03622564300894737,
0.03669782355427742,
0.010727928020060062,
-0.03148495778441429,
-0.038322124630212784,
0.005694489926099777,
0.009830785915255547,
0.00923111755400896,
-0.008470907807350159,
-0.007545435335487127,
0.003005425212904811,
0.02525218203663826,
-0.018301693722605705,
-0.00186747161205858,
-0.0074982172809541225,
0.039209820330142975,
0.018594445660710335,
-0.04283616319298744,
-0.01470368355512619,
-0.031201649457216263,
-0.03412916511297226,
0.022362440824508667,
0.0077295852825045586,
0.01173839345574379,
0.014363713562488556,
-0.02555437758564949,
-0.019208280369639397,
0.05367741361260414,
0.02506331168115139,
-0.018075047060847282,
0.021361419931054115,
-0.046122536063194275,
-0.004655694123357534,
0.07063812017440796,
-0.04449823871254921,
-0.03718889132142067,
-0.0315416194498539,
-0.04321390762925148,
0.0096135837957263,
0.0035177404060959816,
0.0016006899531930685,
-0.025497715920209885,
-0.0023880500812083483,
0.00336664286442101,
-0.0118328295648098,
-0.02842523157596588,
-0.0404563769698143,
-0.10675043612718582,
0.008400080725550652,
-0.013343804515898228,
0.0038293793331831694,
-0.008900592103600502,
0.02989843301475048,
-0.00414101779460907,
-0.010831807740032673,
0.047897931188344955,
-0.04687802493572235,
0.007120473310351372,
-0.022419102489948273,
-0.033014822751283646,
-0.04283616319298744,
-0.017536763101816177,
-0.019699346274137497,
0.02002042904496193,
-0.011455085128545761,
0.039209820330142975,
0.011256769299507141,
0.024610018357634544,
-0.014259833842515945,
-0.018311137333512306,
-0.00555283622816205,
0.07056257128715515,
0.05265750735998154,
-0.04706689715385437,
0.0047454084269702435,
-0.04389384761452675,
0.0033996955025941133,
-0.06025015935301781,
0.017886176705360413,
-0.024024514481425285,
0.054017383605241776,
0.006001406814903021,
0.022173570469021797,
-0.020473722368478775,
0.03841656073927879,
-0.04786015674471855,
0.04294948652386665,
0.04959778115153313,
-0.03616898134350777,
-0.05586833134293556,
0.017508432269096375,
0.02870853990316391,
0.032807063311338425,
0.010284079238772392,
0.03639562800526619,
0.05994796380400658,
-0.024194499477744102,
0.008173434995114803,
0.025913234800100327,
-0.021588066592812538,
-0.01914217509329319,
-0.008225374855101109,
-0.07041147351264954,
0.017432883381843567,
-0.024251161143183708,
-0.08725885301828384,
-0.016705725342035294,
-0.04687802493572235,
-0.020568158477544785,
-0.04782238230109215,
-0.02681981958448887,
-0.02002042904496193,
0.0434027798473835,
-0.034771330654621124,
0.002228689379990101,
0.05409293249249458,
-0.02793416567146778,
0.022192457690835,
0.01069959718734026,
-0.044044945389032364,
-0.027405323460698128,
0.035507932305336,
-0.02102144993841648,
-0.13727214932441711,
-0.003014868823811412,
0.04132518917322159,
0.013277700170874596,
0.023250140249729156,
0.04491375386714935,
-0.004183514043688774,
-0.024931101128458977,
-0.03429915010929108,
-0.04457378387451172,
0.03582901507616043,
-0.020058203488588333,
0.007682367693632841,
0.02151251770555973,
0.027650857344269753,
-0.007479330059140921,
-0.0691271424293518,
0.008494516834616661,
0.03038950078189373,
0.013306030072271824,
0.013069940730929375,
0.00346580077894032,
0.0053970166482031345,
-0.0036239810287952423,
0.00784763041883707,
-0.046122536063194275,
-0.015005878172814846,
0.08242373168468475,
-0.04162738472223282,
0.04022973030805588,
0.058248117566108704,
-0.017838958650827408,
0.021153660491108894,
-0.020077090710401535,
0.0660674199461937,
0.03392140567302704,
-0.0023597192484885454,
-0.024591131135821342,
-0.004178792238235474,
-0.02051149681210518,
-0.04034305363893509,
0.0301061924546957,
-0.024798890575766563,
0.09352940320968628,
0.017527319490909576,
0.053224120289087296,
-0.04684025049209595,
-0.022740185260772705,
-0.02842523157596588,
-0.01895330287516117,
0.019009964540600777,
0.002316042548045516,
0.0008003449765965343,
0.005203423090279102,
-0.07879738509654999,
-0.025781024247407913,
0.05020217224955559,
0.03346811234951019,
-0.042269546538591385,
0.019680459052324295,
-0.049786653369665146,
-0.010520168580114841,
-0.09005415439605713,
-0.005850309506058693,
0.02279684692621231,
0.018726656213402748,
0.019567135721445084,
0.018575558438897133,
0.023608997464179993,
0.08113940060138702,
-0.009240561164915562,
-0.02672538347542286,
0.021134773269295692,
0.023835642263293266,
0.0749443992972374,
-0.048993390053510666,
0.06259217113256454,
0.05107098072767258,
-0.022740185260772705,
-0.0571904331445694,
0.05809701979160309,
0.07377339154481888,
0.035564593970775604,
-0.038718756288290024,
-0.030125079676508904,
0.03571569174528122,
0.011332318186759949,
-0.03207046166062355,
-0.018972190096974373,
-0.06504750996828079,
-0.022947944700717926,
-0.02929404377937317,
-0.04393162205815315,
0.01629020832479,
0.0354890450835228,
0.02940736711025238,
-0.0014318856410682201,
0.02051149681210518,
-0.011861159466207027,
0.07177135348320007,
-0.09813787788152695,
-0.005576444789767265,
-0.005897527560591698,
-0.019321603700518608,
-0.012295565567910671,
0.07811744511127472,
0.03839767351746559,
-0.007125195115804672,
-0.034488022327423096,
0.025818798691034317,
0.023892303928732872,
0.016639620065689087,
-0.01282440684735775,
-0.005774760618805885,
0.0621766522526741,
-0.0778907984495163,
-0.0375099740922451,
0.0364900641143322,
-0.0018745543202385306,
0.027405323460698128,
-0.024534469470381737,
-0.008522847667336464,
0.021455856040120125,
-0.00007569634908577427,
-0.037849944084882736,
0.0542818047106266,
-0.09806232899427414,
0.03954979032278061,
0.0018816370284184813,
-0.034790217876434326,
-0.08944976329803467,
0.033014822751283646,
-0.00017426389968022704,
-0.03248598054051399,
0.006171391811221838,
-0.06852275133132935,
0.018377242609858513,
-0.03326035290956497,
-0.02277795970439911,
-0.0045376489870250225,
-0.06157226487994194,
0.011134002357721329,
-0.01981266960501671,
0.047897931188344955,
-0.02279684692621231,
-0.06591632217168808,
0.013825428672134876,
0.03273151442408562,
-0.07539769262075424,
-0.018726656213402748,
0.0572282075881958,
0.008938366547226906,
-0.04589588940143585,
-0.004483348689973354,
-0.0014189006760716438,
0.005392294842749834,
-0.00525064067915082,
0.040909670293331146,
-0.04362942650914192,
-0.061421167105436325,
0.04412049427628517,
-0.06723842024803162,
-0.03609343245625496,
-0.01767841726541519,
0.02634764090180397,
-0.00828203558921814,
-0.08355695754289627,
0.030993890017271042,
-0.03607454523444176,
-0.003406778210774064,
0.056283846497535706,
-0.004948445595800877,
0.007262127473950386,
-0.0222113449126482,
0.016044674441218376,
0.009736349806189537,
-0.02674427069723606,
0.04616031050682068,
-0.0088817048817873,
-0.051637597382068634,
-0.0066482932306826115,
0.020247075706720352,
0.03169271722435951,
0.022249119356274605,
0.06440534442663193,
-0.00544895650818944,
0.06164781376719475,
0.009462486021220684,
0.014543142169713974,
0.008919479325413704,
0.0009526230278424919,
0.015109757892787457,
-0.03392140567302704,
0.015355291776359081,
0.04608476161956787,
-0.000012597613022080623,
-0.006138339173048735,
0.006700233090668917,
-0.011020679958164692,
-0.008168713189661503,
0.05265750735998154,
-0.030068418011069298,
-0.025516603142023087,
-0.010529612191021442,
-0.053035251796245575,
-0.024912213906645775,
0.06028793379664421,
0.0032485979609191418,
-0.01954824849963188,
0.005651993677020073,
0.028972961008548737,
-0.02022818848490715,
-0.030635034665465355,
0.037151116877794266,
0.07581321150064468,
0.004934280179440975,
0.010000770911574364,
0.041967350989580154,
0.027254225686192513,
-0.06346098333597183,
-0.014458149671554565,
-0.029048509895801544,
-0.04604698717594147,
0.019850444048643112,
-0.047897931188344955,
0.03127719834446907,
-0.006582188419997692,
-0.022343553602695465,
-0.04646250605583191,
-0.05465954914689064,
-0.033996954560279846,
0.0013173819752410054,
0.05465954914689064,
0.033978067338466644,
-0.006171391811221838,
-0.0028378013521432877,
0.053601864725351334,
-0.017338447272777557,
-0.057454854249954224,
0.010321853682398796,
0.012210573069751263,
-0.01914217509329319,
-0.005401738453656435,
0.05639716982841492,
0.01135120540857315,
-0.02200358547270298,
-0.0015121562173590064,
-0.04680247604846954,
-0.07709754258394241,
-0.03894539922475815,
0.030710583552718163,
-0.03611231967806816,
0.03207046166062355,
0.0010417469311505556,
-0.033581435680389404,
0.056586042046546936,
-0.0017529679462313652,
0.017395108938217163,
-0.02751864679157734,
0.00912251602858305,
0.043553877621889114,
-0.06134561821818352,
0.021248096600174904,
0.02753753401339054,
-0.007436833810061216,
-0.022513538599014282,
0.04189180210232735,
0.036848921328783035,
-0.016630176454782486,
-0.018093934282660484,
0.017329003661870956,
0.031031664460897446,
0.06342320889234543,
-0.004351138137280941,
-0.003940341528505087,
-0.012777188792824745,
0.018112821504473686,
-0.012172798626124859,
0.0572282075881958,
-0.03473355621099472,
0.0062988800927996635,
0.0028259968385100365,
0.06383872777223587,
-0.009670245461165905,
-0.03218378499150276,
0.020681481808423996,
0.052430860698223114,
0.013060497120022774,
-0.0033430338371545076,
-0.007654036860913038,
0.05465954914689064,
0.014835893176496029,
-0.04506485164165497,
-0.017111800611019135,
0.03346811234951019,
-0.006383872590959072,
0.007658758666366339,
0.050088848918676376,
0.028330795466899872,
0.03637674078345299,
0.02585657313466072,
-0.0192554984241724,
0.0042968373745679855,
-0.011766724288463593,
0.04234509542584419,
0.021059224382042885,
0.058852508664131165,
-0.023911191150546074,
-0.04687802493572235,
-0.0035389885306358337,
0.0034492744598537683,
-0.0015145171200856566,
-0.013164376839995384,
-0.026895368471741676,
0.02485555224120617,
0.05277083069086075,
-0.007521826308220625,
0.0038647926412522793,
0.06059012934565544,
0.08363250643014908
] |
17,872 | imodels.rule_set.skope_rules | SkopeRulesClassifier | An easy-interpretable classifier optimizing simple logical rules.
Parameters
----------
feature_names : list of str, optional
The names of each feature to be used for returning rules in string
format.
precision_min : float, optional (default=0.5)
The minimal precision of a rule to be selected.
recall_min : float, optional (default=0.01)
The minimal recall of a rule to be selected.
n_estimators : int, optional (default=10)
The number of base estimators (rules) to use for prediction. More are
built before selection. All are available in the estimators_ attribute.
max_samples : int or float, optional (default=.8)
The number of samples to draw from X to train each decision tree, from
which rules are generated and selected.
- If int, then draw `max_samples` samples.
- If float, then draw `max_samples * X.shape[0]` samples.
If max_samples is larger than the number of samples provided,
all samples will be used for all trees (no sampling).
max_samples_features : int or float, optional (default=1.0)
The number of features to draw from X to train each decision tree, from
which rules are generated and selected.
- If int, then draw `max_features` features.
- If float, then draw `max_features * X.shape[1]` features.
bootstrap : boolean, optional (default=False)
Whether samples are drawn with replacement.
bootstrap_features : boolean, optional (default=False)
Whether features are drawn with replacement.
max_depth : integer or List or None, optional (default=3)
The maximum depth of the decision trees. If None, then nodes are
expanded until all leaves are pure or until all leaves contain less
than min_samples_split samples.
If an iterable is passed, you will train n_estimators
for each tree depth. It allows you to create and compare
rules of different length.
max_depth_duplication : integer, optional (default=None)
The maximum depth of the decision tree for rule deduplication,
if None then no deduplication occurs.
max_features : int, float, string or None, optional (default="auto")
The number of features considered (by each decision tree) when looking
for the best split:
- If int, then consider `max_features` features at each split.
- If float, then `max_features` is a percentage and
`int(max_features * n_features)` features are considered at each
split.
- If "auto", then `max_features=sqrt(n_features)`.
- If "sqrt", then `max_features=sqrt(n_features)` (same as "auto").
- If "log2", then `max_features=log2(n_features)`.
- If None, then `max_features=n_features`.
Note: the search for a split does not stop until at least one
valid partition of the node samples is found, even if it requires to
effectively inspect more than ``max_features`` features.
min_samples_split : int, float, optional (default=2)
The minimum number of samples required to split an internal node for
each decision tree.
- If int, then consider `min_samples_split` as the minimum number.
- If float, then `min_samples_split` is a percentage and
`ceil(min_samples_split * n_samples)` are the minimum
number of samples for each split.
n_jobs : integer, optional (default=1)
The number of jobs to run in parallel for both `fit` and `predict`.
If -1, then the number of jobs is set to the number of cores.
random_state : int, RandomState instance or None, optional
- If int, random_state is the seed used by the random number generator.
- If RandomState instance, random_state is the random number generator.
- If None, the random number generator is the RandomState instance used
by `np.random`.
verbose : int, optional (default=0)
Controls the verbosity of the tree building process.
Attributes
----------
rules_ : dict of tuples (rule, precision, recall, nb).
The collection of `n_estimators` rules used in the ``predict`` method.
The rules are generated by fitted sub-estimators (decision trees). Each
rule satisfies recall_min and precision_min conditions. The selection
is done according to OOB precisions.
estimators_ : list of DecisionTreeClassifier
The collection of fitted sub-estimators used to generate candidate
rules.
estimators_samples_ : list of arrays
The subset of drawn samples (i.e., the in-bag samples) for each base
estimator.
estimators_features_ : list of arrays
The subset of drawn features for each base estimator.
max_samples_ : integer
The actual number of samples
n_features_ : integer
The number of features when ``fit`` is performed.
classes_ : array, shape (n_classes,)
The classes labels.
| class SkopeRulesClassifier(BaseEstimator, RuleSet, ClassifierMixin):
"""An easy-interpretable classifier optimizing simple logical rules.
Parameters
----------
feature_names : list of str, optional
The names of each feature to be used for returning rules in string
format.
precision_min : float, optional (default=0.5)
The minimal precision of a rule to be selected.
recall_min : float, optional (default=0.01)
The minimal recall of a rule to be selected.
n_estimators : int, optional (default=10)
The number of base estimators (rules) to use for prediction. More are
built before selection. All are available in the estimators_ attribute.
max_samples : int or float, optional (default=.8)
The number of samples to draw from X to train each decision tree, from
which rules are generated and selected.
- If int, then draw `max_samples` samples.
- If float, then draw `max_samples * X.shape[0]` samples.
If max_samples is larger than the number of samples provided,
all samples will be used for all trees (no sampling).
max_samples_features : int or float, optional (default=1.0)
The number of features to draw from X to train each decision tree, from
which rules are generated and selected.
- If int, then draw `max_features` features.
- If float, then draw `max_features * X.shape[1]` features.
bootstrap : boolean, optional (default=False)
Whether samples are drawn with replacement.
bootstrap_features : boolean, optional (default=False)
Whether features are drawn with replacement.
max_depth : integer or List or None, optional (default=3)
The maximum depth of the decision trees. If None, then nodes are
expanded until all leaves are pure or until all leaves contain less
than min_samples_split samples.
If an iterable is passed, you will train n_estimators
for each tree depth. It allows you to create and compare
rules of different length.
max_depth_duplication : integer, optional (default=None)
The maximum depth of the decision tree for rule deduplication,
if None then no deduplication occurs.
max_features : int, float, string or None, optional (default="auto")
The number of features considered (by each decision tree) when looking
for the best split:
- If int, then consider `max_features` features at each split.
- If float, then `max_features` is a percentage and
`int(max_features * n_features)` features are considered at each
split.
- If "auto", then `max_features=sqrt(n_features)`.
- If "sqrt", then `max_features=sqrt(n_features)` (same as "auto").
- If "log2", then `max_features=log2(n_features)`.
- If None, then `max_features=n_features`.
Note: the search for a split does not stop until at least one
valid partition of the node samples is found, even if it requires to
effectively inspect more than ``max_features`` features.
min_samples_split : int, float, optional (default=2)
The minimum number of samples required to split an internal node for
each decision tree.
- If int, then consider `min_samples_split` as the minimum number.
- If float, then `min_samples_split` is a percentage and
`ceil(min_samples_split * n_samples)` are the minimum
number of samples for each split.
n_jobs : integer, optional (default=1)
The number of jobs to run in parallel for both `fit` and `predict`.
If -1, then the number of jobs is set to the number of cores.
random_state : int, RandomState instance or None, optional
- If int, random_state is the seed used by the random number generator.
- If RandomState instance, random_state is the random number generator.
- If None, the random number generator is the RandomState instance used
by `np.random`.
verbose : int, optional (default=0)
Controls the verbosity of the tree building process.
Attributes
----------
rules_ : dict of tuples (rule, precision, recall, nb).
The collection of `n_estimators` rules used in the ``predict`` method.
The rules are generated by fitted sub-estimators (decision trees). Each
rule satisfies recall_min and precision_min conditions. The selection
is done according to OOB precisions.
estimators_ : list of DecisionTreeClassifier
The collection of fitted sub-estimators used to generate candidate
rules.
estimators_samples_ : list of arrays
The subset of drawn samples (i.e., the in-bag samples) for each base
estimator.
estimators_features_ : list of arrays
The subset of drawn features for each base estimator.
max_samples_ : integer
The actual number of samples
n_features_ : integer
The number of features when ``fit`` is performed.
classes_ : array, shape (n_classes,)
The classes labels.
"""
def __init__(self,
precision_min=0.5,
recall_min=0.01,
n_estimators=10,
max_samples=.8,
max_samples_features=.8,
bootstrap=False,
bootstrap_features=False,
max_depth=3,
max_depth_duplication=None,
max_features=1.,
min_samples_split=2,
n_jobs=1,
random_state=None,
verbose=0):
self.precision_min = precision_min
self.recall_min = recall_min
self.n_estimators = n_estimators
self.max_samples = max_samples
self.max_samples_features = max_samples_features
self.bootstrap = bootstrap
self.bootstrap_features = bootstrap_features
self.max_depth = max_depth
self.max_depth_duplication = max_depth_duplication
self.max_features = max_features
self.min_samples_split = min_samples_split
self.n_jobs = n_jobs
self.random_state = random_state
self.verbose = verbose
def fit(self, X, y, feature_names=None, sample_weight=None):
"""Fit the model according to the given training data.
Parameters
----------
X : array-like, shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like, shape (n_samples,)
Target vector relative to X. Has to follow the convention 0 for
normal data, 1 for anomalies.
sample_weight : array-like, shape (n_samples,) optional
Array of weights that are assigned to individual samples, typically
the amount in case of transactions data. Used to grow regression
trees producing further rules to be tested.
If not provided, then each sample is given unit weight.
Returns
-------
self : object
Returns self.
"""
X, y, feature_names = check_fit_arguments(self, X, y, feature_names)
check_classification_targets(y)
self.n_features_ = X.shape[1]
self.sample_weight = sample_weight
self.classes_ = unique_labels(y)
n_classes = len(self.classes_)
if n_classes < 2:
raise ValueError(
"This method needs samples of at least 2 classes in the data, but the data contains only one class: %r"
% self.classes_[0]
)
if not isinstance(self.max_depth_duplication, int) and self.max_depth_duplication is not None:
raise ValueError("max_depth_duplication should be an integer")
if not set(self.classes_) == {0, 1}:
warn(
"Found labels %s. This method assumes target class to be labeled as 1 and normal data to be labeled as "
"0. Any label different from 0 will be considered as being from th | (precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=0.8, max_samples_features=0.8, bootstrap=False, bootstrap_features=False, max_depth=3, max_depth_duplication=None, max_features=1.0, min_samples_split=2, n_jobs=1, random_state=None, verbose=0) | [
0.024016186594963074,
-0.018276795744895935,
0.0038271257653832436,
-0.01413571648299694,
-0.03157184273004532,
-0.01612841710448265,
-0.05376138910651207,
-0.0017656672280281782,
-0.006388056557625532,
-0.020269496366381645,
-0.022770749405026436,
0.010555082932114601,
0.04466969519853592,
0.04147307202219963,
-0.00379339512437582,
0.0045432522892951965,
0.016367124393582344,
-0.014789571054279804,
0.018193766474723816,
0.06530243903398514,
-0.020601613447070122,
-0.018058843910694122,
-0.018131494522094727,
0.04450363665819168,
-0.002726989332586527,
-0.0011760303750634193,
0.03236062079668045,
-0.0006149347755126655,
0.004120322410017252,
0.010804170742630959,
-0.0939059928059578,
0.009034611284732819,
-0.056418322026729584,
0.0025194163899868727,
0.01074189879000187,
-0.0588676817715168,
0.019968515262007713,
0.07269203662872314,
-0.06003009155392647,
-0.007451868150383234,
-0.02843749150633812,
-0.07970800250768661,
-0.03586860001087189,
-0.02451436221599579,
-0.02129698172211647,
0.03985400125384331,
-0.016533182933926582,
0.1012955904006958,
-0.011831657029688358,
-0.0792098268866539,
-0.004602929577231407,
-0.05471622198820114,
0.015837814658880234,
0.04678693786263466,
-0.04442060738801956,
0.047202084213495255,
0.03319090977311134,
-0.018764592707157135,
0.04902872443199158,
-0.057165585458278656,
0.03350226953625679,
0.019169360399246216,
0.03593087196350098,
-0.023144381120800972,
-0.030243374407291412,
-0.0465378500521183,
-0.04686996713280678,
-0.015287745743989944,
0.010513568297028542,
0.03032640367746353,
0.00044044380774721503,
-0.06409852206707001,
0.07231840491294861,
0.020923350006341934,
0.02517859637737274,
0.011271209456026554,
-0.03568178415298462,
-0.0569164976477623,
0.013305424712598324,
-0.02129698172211647,
-0.044254548847675323,
0.04060126468539238,
0.011395753361284733,
-0.052308376878499985,
-0.019065573811531067,
-0.0328795500099659,
0.05961494520306587,
0.03476846590638161,
0.0397087000310421,
-0.020414797589182854,
-0.031115181744098663,
0.023601042106747627,
0.05567105859518051,
0.02822991833090782,
0.018079601228237152,
0.033087123185396194,
-0.01631523109972477,
0.0040061576291918755,
-0.01794467866420746,
-0.04662087932229042,
-0.017488019540905952,
0.046288762241601944,
-0.021795157343149185,
0.08444066345691681,
-0.043009109795093536,
-0.004883152898401022,
-0.0467454232275486,
0.03671965003013611,
-0.0036558781284838915,
-0.02225181832909584,
-0.09315872937440872,
0.028686577454209328,
0.010389025323092937,
0.026901451870799065,
-0.004065834451466799,
-0.06675545126199722,
-0.04985901713371277,
0.021732885390520096,
-0.0525989793241024,
-0.02221030369400978,
0.013616783544421196,
0.03126048296689987,
-0.04244866222143173,
0.006045561283826828,
-0.034830737859010696,
-0.020840322598814964,
0.03474770858883858,
0.06766877323389053,
0.03433256223797798,
-0.07173720002174377,
-0.008775145746767521,
-0.006730552297085524,
-0.023601042106747627,
-0.004683364182710648,
0.00022865454957354814,
-0.035079825669527054,
0.0043771942146122456,
0.044088490307331085,
-0.028894150629639626,
-0.021110165864229202,
0.10287313908338547,
-0.03871234878897667,
0.03045094758272171,
-0.04155610129237175,
0.015163201838731766,
-0.004756014794111252,
0.033107880502939224,
0.00809534452855587,
-0.033045608550310135,
0.009610626846551895,
0.006522979121655226,
-0.029122481122612953,
0.026693878695368767,
-0.03375135734677315,
0.00558371189981699,
-0.00855200458317995,
-0.019594883546233177,
-0.06198127567768097,
0.013679055497050285,
-0.027794014662504196,
-0.023995429277420044,
-0.024036943912506104,
-0.03329469636082649,
-0.0032199749257415533,
0.002313140779733658,
0.03879537805914879,
-0.03551572933793068,
-0.026984481140971184,
-0.021525312215089798,
-0.0043875728733837605,
-0.006611197721213102,
-0.03325318172574043,
-0.0049817501567304134,
0.039210524410009384,
-0.037134796380996704,
0.0772586390376091,
0.03825569152832031,
0.016408639028668404,
0.015007522888481617,
0.07414504885673523,
-0.01224680244922638,
-0.016512425616383553,
-0.03568178415298462,
-0.036989495158195496,
-0.01124007347971201,
0.029765957966446877,
0.010586218908429146,
0.009465325623750687,
0.0007582898251712322,
0.04132777079939842,
-0.016989843919873238,
-0.02727508172392845,
0.029247025027871132,
0.037176311016082764,
-0.006045561283826828,
-0.004224108997732401,
0.0036299314815551043,
0.013346939347684383,
0.050232648849487305,
0.04236563295125961,
-0.015505697578191757,
0.011759006418287754,
0.07352232933044434,
0.0023546554148197174,
-0.0322568342089653,
0.028894150629639626,
-0.016367124393582344,
0.04049747809767723,
-0.0314888134598732,
-0.025116324424743652,
-0.033917415887117386,
-0.013616783544421196,
-0.011157045140862465,
0.06845755130052567,
0.062437936663627625,
-0.039210524410009384,
0.041203226894140244,
-0.007197591010481119,
-0.009221427142620087,
-0.024680420756340027,
0.007015964947640896,
-0.0036169581580907106,
-0.01892027258872986,
0.03036791831254959,
0.0033393295016139746,
-0.023518012836575508,
0.06384943425655365,
0.0013466293457895517,
0.039978545159101486,
-0.044088490307331085,
0.023642556741833687,
-0.1034543439745903,
0.0450018085539341,
0.0009567814413458109,
0.01375170610845089,
-0.014094201847910881,
-0.00303056463599205,
0.006455517839640379,
-0.040974896401166916,
0.025925857946276665,
-0.03975021466612816,
-0.03933506831526756,
0.016937950626015663,
-0.05396896228194237,
0.011437267996370792,
0.050274163484573364,
0.09830653667449951,
0.01258929818868637,
0.026071159169077873,
-0.03966718539595604,
0.014052687212824821,
0.002887858310714364,
-0.03377211466431618,
0.006221998482942581,
-0.03474770858883858,
-0.06604970246553421,
0.035017553716897964,
-0.025988129898905754,
0.04388091713190079,
-0.026963723823428154,
-0.02127622440457344,
-0.00636729970574379,
-0.023725586012005806,
0.063392773270607,
-0.05342927202582359,
-0.000721964577678591,
0.008915256708860397,
0.008577951230108738,
0.011499539948999882,
-0.0011701923795044422,
0.061441585421562195,
0.03763297200202942,
-0.06621576100587845,
0.0586601085960865,
-0.050066590309143066,
0.0037051767576485872,
-0.03779903054237366,
-0.02548995614051819,
0.018588155508041382,
-0.007285809610038996,
0.028914907947182655,
-0.032921064645051956,
-0.013865871354937553,
-0.004410924855619669,
0.010581029579043388,
-0.020611992105841637,
-0.024203002452850342,
0.02441057562828064,
0.013243152759969234,
0.012485511600971222,
-0.037093281745910645,
-0.018847621977329254,
0.023684071376919746,
0.003515766467899084,
0.04794934391975403,
0.0008633736288174987,
-0.01674075610935688,
-0.01729082502424717,
0.004439466167241335,
-0.03750842809677124,
-0.015163201838731766,
0.0073065669275820255,
0.0590752549469471,
-0.04350728541612625,
-0.011738249100744724,
-0.016097281128168106,
0.04024839028716087,
-0.033647570759058,
0.013357318006455898,
0.026735393330454826,
0.027814771980047226,
0.03939734026789665,
0.04076732322573662,
-0.03865007683634758,
-0.031218968331813812,
-0.0772586390376091,
0.03153032809495926,
-0.01366867683827877,
0.06098492443561554,
0.04898720979690552,
-0.06638181954622269,
0.013450725935399532,
-0.010285238735377789,
-0.0011500837281346321,
0.006491843145340681,
-0.001315493369475007,
0.04446212202310562,
0.0000993268913589418,
-0.031218968331813812,
-0.020041165873408318,
-0.04786631837487221,
-0.04886266589164734,
0.050108104944229126,
0.022749992087483406,
-0.0424279049038887,
0.0202383603900671,
0.03350226953625679,
0.0262994896620512,
-0.0047119054943323135,
0.002506443066522479,
0.03427029028534889,
0.06364186108112335,
-0.034913767129182816,
0.012080743908882141,
-0.0028956423047930002,
-0.017321961000561714,
0.009683276526629925,
0.06268702447414398,
0.010907957330346107,
0.06476275622844696,
0.015308503061532974,
-0.003105809912085533,
0.04786631837487221,
0.04471120983362198,
0.040206875652074814,
-0.05861859396100044,
-0.025676770135760307,
0.010783413425087929,
0.05093839764595032,
-0.03522512689232826,
0.006533357780426741,
-0.062354907393455505,
-0.03157184273004532,
0.06069432199001312,
0.04877963662147522,
-0.040954139083623886,
-0.03846326470375061,
0.014177231118083,
0.06077735126018524,
-0.07609623670578003,
0.020881835371255875,
-0.05666740983724594,
-0.01635674573481083,
-0.01718703843653202,
0.010420161299407482,
0.0551728829741478,
-0.00789296068251133,
0.01830793172121048,
0.03057549148797989,
0.00585355656221509,
0.028562035411596298,
0.0006162321078591049,
-0.0024714150931686163,
-0.011229694820940495,
-0.02142152562737465,
-0.04549998417496681,
0.001558094285428524,
-0.01920049637556076,
0.07082388550043106,
-0.03757070004940033,
0.03271349146962166,
0.0019031842239201069,
-0.01822490245103836,
-0.028914907947182655,
-0.048198431730270386,
0.010207398794591427,
0.01586895063519478,
0.038131147623062134,
-0.0551728829741478,
-0.03325318172574043,
-0.03530815616250038,
-0.038048118352890015,
0.0040684291161596775,
0.018152251839637756,
0.014478211291134357,
-0.005635604728013277,
0.05384441837668419,
0.04794934391975403,
-0.016242580488324165,
0.06845755130052567,
-0.009294077754020691,
0.010928714647889137,
0.011437267996370792,
-0.005573333241045475,
-0.0467454232275486,
-0.00012454375973902643,
0.023102866485714912,
0.06347580254077911,
0.046288762241601944,
-0.04280153661966324,
0.0179031640291214,
0.015588726848363876,
0.011613705195486546,
0.012994064949452877,
0.03653283417224884,
0.003860856406390667,
-0.04898720979690552,
-0.01983359269797802,
-0.035059068351984024,
0.006320595741271973,
-0.058411020785570145,
-0.057373154908418655,
-0.08668245375156403,
-0.02852052077651024,
-0.018214523792266846,
-0.04153534397482872,
-0.040103089064359665,
0.03171714395284653,
-0.03219456225633621,
-0.006564493756741285,
0.004901315551251173,
-0.037010252475738525,
0.037093281745910645,
0.024825721979141235,
-0.00004382545375847258,
-0.022065002471208572,
0.0002954670926555991,
-0.04180518537759781,
-0.09714412689208984,
-0.02422375977039337,
0.00830810610204935,
-0.0020121601410210133,
0.009205859154462814,
0.03752918541431427,
-0.031032152473926544,
0.014011172577738762,
0.03167562931776047,
-0.005023264791816473,
0.015619862824678421,
-0.054342590272426605,
0.037176311016082764,
-0.00039471290074288845,
0.011551433242857456,
0.027794014662504196,
-0.0469529964029789,
0.01517358049750328,
0.040995653718709946,
0.0414523147046566,
-0.011374996043741703,
-0.021815914660692215,
0.043133653700351715,
-0.01063811220228672,
-0.019698670133948326,
-0.03233986347913742,
-0.05770527198910713,
0.06210581958293915,
0.0019446988590061665,
-0.029226267710328102,
-0.005015480797737837,
-0.022957565262913704,
0.053346242755651474,
-0.023808615282177925,
0.056418322026729584,
0.006818770430982113,
-0.00014489563181996346,
-0.05160262808203697,
-0.005729012656956911,
-0.035100582987070084,
-0.01920049637556076,
0.0019914028234779835,
-0.043963946402072906,
-0.021981973201036453,
0.03669889271259308,
0.04749268665909767,
-0.04686996713280678,
0.018982544541358948,
0.03819341957569122,
0.017363475635647774,
0.020560098811984062,
-0.053221698850393295,
0.011198559775948524,
0.028707334771752357,
-0.008443028666079044,
-0.0015529049560427666,
0.04583210125565529,
-0.020549720153212547,
-0.014229124411940575,
0.014706541784107685,
-0.059407372027635574,
0.016709620133042336,
-0.037902817130088806,
-0.03138502687215805,
0.06538546830415726,
0.021919701248407364,
-0.0037908004596829414,
0.022957565262913704,
0.047077540308237076,
0.047160569578409195,
-0.009880471043288708,
0.012599676847457886,
0.05401047691702843,
-0.004457628354430199,
0.03568178415298462,
-0.0273788683116436,
0.025863585993647575,
0.06966147571802139,
0.01841171830892563,
0.019864728674292564,
0.05056476593017578,
0.02530314028263092,
0.040165361016988754,
-0.03153032809495926,
-0.016969086602330208,
0.08377642929553986,
-0.004400546196848154,
-0.0036091741640120745,
0.015557590872049332,
-0.02841673418879509,
0.061566129326820374,
-0.004885747563093901,
0.029682928696274757,
0.0179031640291214,
-0.003334140172228217,
-0.020964864641427994,
-0.024597391486167908,
0.029143238440155983,
0.03233986347913742,
0.02517859637737274,
-0.013762084767222404,
0.005967721808701754,
0.04794934391975403,
-0.0007433705613948405,
-0.002231408841907978,
0.0294338408857584,
0.08020617812871933,
-0.018048465251922607,
0.01782013475894928,
0.04176367074251175,
0.029163995757699013,
0.02243863232433796,
-0.04053899273276329,
0.0030461326241493225,
0.021504554897546768,
-0.08194979280233383,
0.0312812402844429,
0.008048640564084053,
-0.05604469031095505,
0.04948538541793823,
-0.08867515623569489,
0.009709223173558712,
0.042303360998630524,
0.010612165555357933,
-0.03429104760289192,
0.023974671959877014,
-0.08232342451810837,
0.021079029887914658,
-0.00146857846993953,
0.009044989943504333,
-0.05081385374069214,
0.03233986347913742,
0.03265121951699257,
-0.002944940933957696,
0.007856635376811028,
-0.05193474516272545,
0.034145746380090714,
-0.0012285722186788917,
0.004696337506175041,
0.01621144637465477,
-0.0450018085539341,
-0.04249017685651779,
-0.0188787579536438,
0.04354880005121231,
0.0012227342231199145,
-0.06854058057069778,
-0.012911035679280758,
0.03341924026608467,
-0.03537042811512947,
-0.05994706228375435,
0.052183832973241806,
-0.011032501235604286,
-0.016605833545327187,
0.015391532331705093,
0.010565461590886116,
0.013948900625109673,
0.0450018085539341,
-0.025739042088389397,
-0.015671756118535995,
-0.018453232944011688,
0.025012537837028503,
-0.003552091773599386,
-0.017705971375107765,
-0.008183562196791172,
0.044213034212589264,
-0.0891733318567276,
-0.04259396344423294,
0.0013531160075217485,
-0.024908751249313354,
-0.0029423462692648172,
0.021753642708063126,
-0.0839424878358841,
0.011271209456026554,
-0.00682395976036787,
-0.00560965808108449,
0.037944331765174866,
-0.039065223187208176,
-0.02436906099319458,
-0.04803237318992615,
-0.07991557568311691,
-0.0022171384189277887,
-0.01011918019503355,
0.03466467931866646,
-0.013938521966338158,
0.02652782015502453,
-0.05160262808203697,
0.050149619579315186,
0.011956200934946537,
0.044254548847675323,
0.027233567088842392,
0.003860856406390667,
-0.0332324244081974,
-0.06779331713914871,
-0.05255746468901634,
0.024971023201942444,
0.014820707030594349,
-0.04969295859336853,
-0.06567607074975967,
0.010835306718945503,
0.050232648849487305,
0.0790022537112236,
0.02447284758090973,
-0.0020718371961265802,
0.016138795763254166,
-0.055297426879405975,
-0.01423950307071209,
0.029662171378731728,
0.027731742709875107,
0.03842175006866455,
0.03736312687397003,
0.025095567107200623,
-0.03175865858793259,
-0.04566604271531105,
0.014436696656048298,
0.05388593301177025,
0.01517358049750328,
-0.009501650929450989,
0.013564890250563622,
0.030264131724834442,
0.0045250896364450455,
0.00921623781323433,
0.03740464150905609,
-0.07742469757795334,
-0.0029008316341787577,
-0.02248014695942402,
-0.0002299518819199875,
-0.0026673120446503162,
-0.04139004275202751,
-0.0175918061286211,
-0.03339848294854164,
-0.008754388429224491,
-0.030907608568668365,
0.07306566834449768,
0.0716126561164856,
-0.029932016506791115,
-0.01263081282377243,
0.07804741710424423,
0.012392103672027588,
-0.018173009157180786,
-0.015350017696619034,
-0.026880694553256035,
-0.025739042088389397,
0.011842035688459873,
0.027897801250219345,
0.04956841468811035,
0.009403053671121597,
-0.008712873794138432,
0.02221030369400978,
-0.07007662206888199,
-0.005594090558588505,
0.007955232635140419,
-0.0588676817715168,
0.002100378507748246,
-0.01674075610935688,
-0.03933506831526756,
0.019356174394488335,
0.01688605733215809,
0.07497534155845642,
-0.1081870049238205,
0.03150957077741623,
0.04450363665819168,
-0.08448217809200287,
-0.008842607028782368,
0.05288958176970482,
-0.00005436626815935597,
-0.057373154908418655,
-0.020923350006341934,
-0.018318310379981995,
0.005848367232829332,
0.006107833236455917,
-0.026050401851534843,
0.013045958243310452,
0.035100582987070084,
0.012744978070259094,
0.026631606742739677,
-0.01162408385425806,
-0.03207001835107803,
0.012506268918514252,
0.04956841468811035,
-0.06393246352672577,
0.04973447322845459,
-0.03761221468448639,
0.058369506150484085,
0.04153534397482872,
-0.03858780860900879,
-0.008261402137577534,
0.011001365259289742,
-0.05471622198820114,
0.040206875652074814,
-0.04956841468811035,
0.01267232745885849,
0.05264049395918846,
0.04558301344513893,
-0.039148252457380295,
-0.019989272579550743,
0.017342718318104744,
0.010082854889333248,
0.05787133052945137,
0.010555082932114601,
0.03451937809586525,
0.041182469576597214,
-0.05471622198820114,
-0.0036091741640120745,
-0.043009109795093536,
0.028728092089295387,
0.021836671978235245,
0.027192052453756332,
-0.021037515252828598,
0.0018344257259741426,
-0.03134351223707199,
-0.011499539948999882,
-0.08356885612010956,
-0.007405164185911417,
-0.049360841512680054,
0.00715607637539506,
0.03682343661785126,
0.025925857946276665,
0.0312812402844429,
0.04504332318902016,
0.006559304427355528
] |
17,874 | imodels.rule_set.skope_rules | __init__ | null | def __init__(self,
precision_min=0.5,
recall_min=0.01,
n_estimators=10,
max_samples=.8,
max_samples_features=.8,
bootstrap=False,
bootstrap_features=False,
max_depth=3,
max_depth_duplication=None,
max_features=1.,
min_samples_split=2,
n_jobs=1,
random_state=None,
verbose=0):
self.precision_min = precision_min
self.recall_min = recall_min
self.n_estimators = n_estimators
self.max_samples = max_samples
self.max_samples_features = max_samples_features
self.bootstrap = bootstrap
self.bootstrap_features = bootstrap_features
self.max_depth = max_depth
self.max_depth_duplication = max_depth_duplication
self.max_features = max_features
self.min_samples_split = min_samples_split
self.n_jobs = n_jobs
self.random_state = random_state
self.verbose = verbose
| (self, precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=0.8, max_samples_features=0.8, bootstrap=False, bootstrap_features=False, max_depth=3, max_depth_duplication=None, max_features=1.0, min_samples_split=2, n_jobs=1, random_state=None, verbose=0) | [
0.013220947235822678,
-0.0002105178718920797,
-0.011445867829024792,
0.0186625849455595,
-0.015287023037672043,
-0.017537396401166916,
-0.04799504578113556,
-0.03286321833729744,
-0.02613149769604206,
-0.00012981178588233888,
-0.04174831509590149,
0.07220596075057983,
0.010068483650684357,
0.06223447993397713,
-0.00396240409463644,
0.012813551351428032,
0.0365297757089138,
-0.025859899818897247,
0.021436752751469612,
0.058703720569610596,
-0.013802940025925636,
0.03361980989575386,
-0.048421841114759445,
0.06739482283592224,
-0.014928127638995647,
0.03786836192011833,
0.02002056874334812,
-0.032630421221256256,
0.02411392144858837,
0.02669409103691578,
-0.06293287128210068,
0.0019508899422362447,
-0.03239762410521507,
0.03980834037065506,
0.029953252524137497,
-0.04822784289717674,
0.005393137689679861,
0.034512199461460114,
-0.09311892092227936,
0.007260365877300501,
0.00828370451927185,
-0.08147905766963959,
-0.05203019827604294,
-0.04167071729898453,
-0.007997557520866394,
0.02048616297543049,
0.04326149821281433,
0.061497289687395096,
-0.04935302957892418,
-0.03988593816757202,
-0.007604712154716253,
-0.021029356867074966,
0.01990417018532753,
0.014346133917570114,
-0.055289361625909805,
0.05063341557979584,
0.0634760633111,
-0.003649582853540778,
0.0033197866287082434,
-0.02060256153345108,
-0.014220035634934902,
0.021145755425095558,
0.06238967925310135,
-0.021591950207948685,
-0.00803635735064745,
-0.012823252007365227,
-0.0616912879049778,
-0.010223682038486004,
-0.022193342447280884,
0.059246912598609924,
0.07600831985473633,
-0.033367615193128586,
0.0027135435957461596,
0.039497941732406616,
-0.0014440708328038454,
0.051099009811878204,
-0.09296372532844543,
-0.031854432076215744,
-0.0413215234875679,
-0.006581373978406191,
0.00188541563693434,
0.03984713926911354,
-0.009219743311405182,
-0.059285715222358704,
-0.016063014045357704,
-0.05672494322061539,
0.027605880051851273,
0.007444663904607296,
0.04826664179563522,
0.028420671820640564,
-0.069063201546669,
0.03216482698917389,
0.042213913053274155,
0.003458010032773018,
0.05001262202858925,
0.021650148555636406,
0.002873591845855117,
0.025898700580000877,
-0.004464373458176851,
-0.041515517979860306,
-0.02878926694393158,
0.0010463753715157509,
-0.004731120076030493,
0.01810969039797783,
-0.05897531658411026,
-0.015888415277004242,
-0.01611151359975338,
0.0011118496768176556,
-0.0019230027683079243,
-0.023066332563757896,
-0.07891828566789627,
0.07558152824640274,
-0.01573321782052517,
0.042213913053274155,
-0.052495792508125305,
-0.020815959200263023,
-0.006799621507525444,
0.01762469671666622,
0.003467709757387638,
-0.022542539983987808,
-0.004161251708865166,
0.032591622322797775,
-0.0168681051582098,
0.028944464400410652,
-0.028362471610307693,
-0.0033100866712629795,
0.014753528870642185,
0.03507479280233383,
-0.008303103968501091,
-0.06297167390584946,
0.05742333456873894,
-0.04419269040226936,
-0.0247541144490242,
-0.0027814428322017193,
0.029856255277991295,
-0.059479713439941406,
0.002585020149126649,
0.05552215874195099,
-0.013133647851645947,
0.002892991527915001,
0.05765613168478012,
-0.024210920557379723,
0.03497779369354248,
-0.03268862143158913,
0.009661087766289711,
0.013230646960437298,
0.044929880648851395,
-0.027217885479331017,
-0.03682077303528786,
0.007473763544112444,
0.0011888424633070827,
-0.025724101811647415,
0.023473728448152542,
-0.04877103492617607,
0.008361303247511387,
-0.038857750594615936,
0.05020662024617195,
-0.0766679123044014,
0.02820727415382862,
-0.038217559456825256,
-0.033367615193128586,
0.022212743759155273,
0.0032397625036537647,
-0.0253555066883564,
-0.026441894471645355,
0.06937360018491745,
-0.061497289687395096,
-0.046171464025974274,
-0.030283048748970032,
0.0014755954034626484,
0.004566221963614225,
0.0018126665381714702,
0.01762469671666622,
0.022503739222884178,
-0.06685162335634232,
0.06390286237001419,
0.00964168831706047,
-0.00009487702482147142,
0.0015107574872672558,
0.036587975919246674,
-0.02126215398311615,
-0.02952645905315876,
-0.005465886555612087,
-0.04822784289717674,
-0.013579842634499073,
0.013783540576696396,
-0.007992707192897797,
0.00739131448790431,
0.0073719145730137825,
0.023473728448152542,
0.025510704144835472,
-0.03136943653225899,
0.010834774933755398,
0.02748948149383068,
-0.012910550460219383,
0.006096379365772009,
0.0037902311887592077,
-0.01611151359975338,
0.05296138674020767,
0.05226299539208412,
-0.00860380008816719,
0.05024541914463043,
0.0385279543697834,
-0.05078861117362976,
0.013414944522082806,
0.00859410036355257,
-0.05559975653886795,
0.01098997239023447,
0.00018687440024223179,
0.027741678059101105,
-0.02609269879758358,
-0.029836853966116905,
0.03204843029379845,
0.06041090190410614,
0.03848915547132492,
-0.020156366750597954,
0.041554320603609085,
-0.014481932856142521,
0.01773139461874962,
-0.006300077307969332,
0.10219801962375641,
-0.01135856844484806,
0.020757758989930153,
0.029856255277991295,
-0.007080918177962303,
0.03420180454850197,
0.05913051590323448,
-0.020777160301804543,
0.01000058464705944,
-0.017304599285125732,
0.0006274614715948701,
-0.06196288391947746,
-0.01438493374735117,
-0.04178711771965027,
-0.005262189079076052,
-0.0003831455542240292,
0.008448602631688118,
0.03020545095205307,
-0.07294315844774246,
-0.0092342933639884,
-0.017673196271061897,
0.03581198677420616,
0.010029683820903301,
-0.038799550384283066,
0.02467651478946209,
-0.027295483276247978,
0.01679050549864769,
0.024831712245941162,
0.007478613406419754,
-0.015015426091849804,
0.008797798305749893,
-0.01958407275378704,
-0.03445400297641754,
0.018022391945123672,
0.007483463268727064,
-0.022794736549258232,
0.02137855254113674,
-0.014734129421412945,
0.006280677393078804,
-0.0056550344452261925,
0.012144259177148342,
-0.04236910864710808,
-0.01805149018764496,
0.1000252440571785,
-0.06394165754318237,
0.007565912324935198,
-0.013269446790218353,
-0.02473471313714981,
0.03241702541708946,
-0.003137913765385747,
0.17583955824375153,
0.03501659631729126,
-0.05028421804308891,
0.02812967449426651,
-0.04446428641676903,
-0.05222419649362564,
-0.041554320603609085,
-0.05354338139295578,
-0.018681984394788742,
0.019409475848078728,
0.016441309824585915,
-0.04442548751831055,
0.011678664945065975,
0.015801116824150085,
0.0030069651547819376,
-0.022290341556072235,
-0.055910151451826096,
0.028634069487452507,
0.022076943889260292,
0.005718084052205086,
-0.05265099182724953,
0.0039381543174386024,
-0.005650184582918882,
0.00244800909422338,
0.0644848570227623,
-0.05982890725135803,
0.00738161476328969,
0.00515064038336277,
0.012968749739229679,
0.03488079458475113,
0.024482516571879387,
-0.0646788477897644,
0.01814848929643631,
-0.00619337847456336,
0.02331853099167347,
-0.01998176798224449,
0.06095409393310547,
-0.025782302021980286,
0.006057580001652241,
0.0778706967830658,
0.04186471551656723,
0.05012901872396469,
0.02878926694393158,
-0.01162046566605568,
-0.028517669066786766,
-0.07201196998357773,
0.006096379365772009,
-0.04388229176402092,
0.018720783293247223,
0.011290669441223145,
-0.047025054693222046,
-0.0177701935172081,
0.018041791394352913,
-0.010029683820903301,
-0.034609198570251465,
-0.008458302356302738,
0.007992707192897797,
0.005014841910451651,
-0.06118689104914665,
-0.004187926650047302,
-0.06339846551418304,
-0.03796536102890968,
0.043571896851062775,
0.03631637990474701,
-0.027916276827454567,
0.04679225757718086,
-0.010194581933319569,
0.03030245006084442,
0.003984228707849979,
-0.02403632178902626,
0.05365977808833122,
0.02743128314614296,
-0.053853776305913925,
0.02128155343234539,
-0.01918637752532959,
-0.029254861176013947,
0.0465206615626812,
0.006043029949069023,
0.016955403611063957,
0.00790540874004364,
0.002873591845855117,
0.0041515519842505455,
0.004806294571608305,
0.050323016941547394,
0.056492146104574203,
0.00895299669355154,
-0.024152720347046852,
-0.015820516273379326,
0.05203019827604294,
0.0022285492159426212,
0.021688949316740036,
-0.036723773926496506,
-0.018371587619185448,
0.034007806330919266,
0.034725598990917206,
-0.02816847339272499,
-0.05373737961053848,
0.0021000257693231106,
0.03441520035266876,
-0.030283048748970032,
0.006945119705051184,
-0.05979010835289955,
-0.038217559456825256,
-0.003142763627693057,
0.016518909484148026,
0.03427940234541893,
-0.08714379370212555,
-0.0014852953609079123,
0.006804471369832754,
0.008167305029928684,
-0.009617438539862633,
-0.04139912128448486,
0.033348213881254196,
-0.02681048959493637,
-0.06623083353042603,
-0.019787771627306938,
0.013153048232197762,
-0.002939065918326378,
0.07841389626264572,
-0.012852351181209087,
-0.0219605453312397,
-0.00633402680978179,
-0.036064181476831436,
-0.00036435204674489796,
-0.02467651478946209,
0.013521643355488777,
0.06273887306451797,
0.0213591530919075,
-0.03685957193374634,
-0.016043614596128464,
-0.02203814499080181,
0.018759582191705704,
-0.03507479280233383,
0.018856581300497055,
0.015936914831399918,
-0.0399247370660305,
0.029157862067222595,
0.02058316208422184,
0.00020096954540349543,
0.04403749108314514,
0.017857493832707405,
-0.01333734579384327,
-0.009287642315030098,
0.007667761296033859,
-0.037460967898368835,
-0.013385845348238945,
-0.004306750372052193,
-0.008240054361522198,
0.04621026664972305,
-0.05226299539208412,
0.01680990494787693,
0.042873505502939224,
-0.017323998734354973,
0.029778655618429184,
0.04752945154905319,
0.016499508172273636,
-0.02050556242465973,
-0.016577107831835747,
0.02188294753432274,
-0.02686868980526924,
-0.06335967034101486,
-0.002924516098573804,
-0.06661882996559143,
0.013909638859331608,
0.03268862143158913,
-0.015917515382170677,
-0.06238967925310135,
0.03726696968078613,
-0.02467651478946209,
-0.03286321833729744,
0.0037732564378529787,
-0.051176607608795166,
0.06937360018491745,
-0.023163331672549248,
0.032572224736213684,
-0.005339788272976875,
0.010165482759475708,
-0.0022709863260388374,
-0.04655946046113968,
-0.02122335508465767,
0.029293660074472427,
-0.03765496239066124,
-0.012357656843960285,
-0.0005525904707610607,
0.027605880051851273,
-0.004799019545316696,
-0.006498924922198057,
0.013191847130656242,
0.05005142092704773,
-0.03162163496017456,
0.023628925904631615,
-0.016499508172273636,
-0.01677110604941845,
-0.008550451137125492,
-0.026538893580436707,
0.06394165754318237,
0.05257339030504227,
0.03507479280233383,
-0.005397987551987171,
-0.039362143725156784,
0.039575543254613876,
0.03996353596448898,
-0.008031507022678852,
-0.044153887778520584,
-0.031097840517759323,
0.02267833799123764,
-0.03786836192011833,
-0.03699537366628647,
0.030011452734470367,
-0.02262013778090477,
0.00975323747843504,
-0.03379441052675247,
0.0742623433470726,
0.043533097952604294,
-0.02399752289056778,
-0.05885891988873482,
-0.0213591530919075,
-0.020369764417409897,
0.02403632178902626,
-0.007100317627191544,
-0.03860555216670036,
0.024579515680670738,
0.025627102702856064,
0.06498924642801285,
-0.015956316143274307,
0.01962287351489067,
0.06983919441699982,
0.041515517979860306,
0.0161697119474411,
-0.009830836206674576,
0.02118455432355404,
0.025685302913188934,
-0.01515122503042221,
-0.012959050014615059,
0.003344036405906081,
-0.020466763526201248,
-0.027935676276683807,
-0.01569441892206669,
-0.05486256629228592,
0.019428875297307968,
0.0009578639292158186,
-0.03618058189749718,
0.029739856719970703,
0.02258133888244629,
-0.03024424985051155,
-0.0008911771583370864,
-0.008371002972126007,
0.027198486030101776,
0.006256427615880966,
0.0467146597802639,
0.05152580514550209,
0.01577201671898365,
0.034589800983667374,
-0.03441520035266876,
-0.021145755425095558,
0.0045080226846039295,
0.048965033143758774,
0.04046793282032013,
0.04256310686469078,
0.08535901457071304,
-0.0005240970640443265,
-0.04667586088180542,
-0.02320213057100773,
0.06518324464559555,
-0.01066987682133913,
0.016518909484148026,
0.0030069651547819376,
-0.001416183658875525,
0.06817080825567245,
-0.038004159927368164,
0.0038484304677695036,
0.01543252170085907,
0.04939182847738266,
0.0010875998996198177,
-0.03928454592823982,
0.005077891051769257,
-0.0020757759921252728,
0.08062546700239182,
0.018555885180830956,
-0.007207016460597515,
0.08116865903139114,
-0.01096087321639061,
-0.015568319708108902,
-0.008836598135530949,
0.03303781896829605,
-0.031854432076215744,
0.03305721655488014,
-0.011436168104410172,
0.03924574702978134,
0.0033537361305207014,
-0.014268535189330578,
0.0259568989276886,
0.053853776305913925,
-0.002611694857478142,
-0.0008135780808515847,
-0.004335850011557341,
-0.053892575204372406,
0.02599569968879223,
-0.06231207773089409,
-0.014307334087789059,
0.03503599390387535,
0.001729005016386509,
-0.04539547488093376,
0.030554646626114845,
-0.0868333950638771,
-0.008618350140750408,
-0.005829632747918367,
0.05839332565665245,
-0.042252711951732635,
0.04298990219831467,
0.04516267776489258,
0.009884185157716274,
-0.010272180661559105,
-0.08109106123447418,
-0.024501916021108627,
0.02754768170416355,
-0.06642483174800873,
-0.015636218711733818,
-0.017178501933813095,
-0.03090384230017662,
0.020815959200263023,
0.03138883784413338,
-0.014491632580757141,
-0.06436845660209656,
-0.020427962765097618,
0.013841739855706692,
-0.0211651548743248,
-0.050400618463754654,
0.0126777533441782,
-0.027683479711413383,
-0.019787771627306938,
0.04267950728535652,
0.010340080596506596,
0.00422672601416707,
-0.002628669608384371,
-0.06184648349881172,
-0.011019072495400906,
0.027819277718663216,
0.008637749589979649,
0.040739528834819794,
0.0070663681253790855,
-0.01976837031543255,
0.0048135691322386265,
-0.06879160553216934,
-0.03590898588299751,
-0.023570727556943893,
-0.019108779728412628,
-0.03340641409158707,
0.03338701277971268,
-0.07693950831890106,
-0.017682895064353943,
-0.012862050905823708,
-0.0007571975002065301,
0.04306749999523163,
-0.055211760103702545,
-0.06665762513875961,
-0.039575543254613876,
-0.11554506421089172,
0.017673196271061897,
-0.03480319678783417,
0.041476719081401825,
-0.016286112368106842,
0.016674106940627098,
-0.08396223187446594,
0.03136943653225899,
0.0047335452400147915,
0.05098260939121246,
0.031136639416217804,
0.025142109021544456,
-0.0023000859655439854,
-0.009680488146841526,
0.011892062611877918,
-0.018749883398413658,
-0.022988734766840935,
-0.03272742033004761,
-0.07635751366615295,
-0.015354922041296959,
0.054474569857120514,
0.07690071314573288,
0.0287504680454731,
-0.010243081487715244,
0.01343434490263462,
-0.023221531882882118,
0.011125771328806877,
-0.038721952587366104,
-0.026267295703291893,
0.0007220354164019227,
0.06557124108076096,
0.052418194711208344,
-0.030069652944803238,
-0.06572643667459488,
-0.0019205777207389474,
0.015781717374920845,
0.016557708382606506,
0.008797798305749893,
0.0037029320374131203,
-0.003436185186728835,
0.016004815697669983,
-0.02000116929411888,
0.02413332089781761,
-0.0411275252699852,
0.03206782788038254,
0.02260073833167553,
-0.02122335508465767,
-0.0171688012778759,
-0.00031827756902202964,
-0.042795903980731964,
-0.0004892380675300956,
0.023027533665299416,
0.015354922041296959,
0.08388462662696838,
0.0668904259800911,
-0.04667586088180542,
-0.038159359246492386,
0.07414594292640686,
-0.0041515519842505455,
-0.042291510850191116,
0.03637458011507988,
-0.019428875297307968,
0.021747147664427757,
0.011843563057482243,
0.01584961637854576,
0.04380469396710396,
-0.003474984783679247,
-0.02395872212946415,
0.04194231331348419,
-0.061419688165187836,
-0.05284499004483223,
0.02118455432355404,
-0.045511871576309204,
0.004840244073420763,
0.04935302957892418,
-0.07953908294439316,
0.04706385359168053,
-0.0018199414480477571,
0.055289361625909805,
-0.07255516201257706,
0.05645334720611572,
0.024909311905503273,
-0.055250559002161026,
0.031117239966988564,
0.05059461295604706,
0.00687722023576498,
-0.0724775642156601,
-0.03612238168716431,
0.05408657342195511,
0.05975130945444107,
-0.002298873383551836,
-0.03841155394911766,
0.01788659207522869,
0.007507713045924902,
-0.008632900193333626,
0.02133975364267826,
-0.007876308634877205,
-0.026946287602186203,
0.011213069781661034,
0.009079094976186752,
-0.027741678059101105,
0.05218539759516716,
-0.04035153239965439,
0.04190351441502571,
0.03175743296742439,
-0.042951103299856186,
-0.011698064394295216,
-0.002762043150141835,
-0.09777487069368362,
0.029080264270305634,
-0.029914453625679016,
0.033231817185878754,
0.010097582824528217,
0.008914196863770485,
-0.006561974063515663,
0.006838420871645212,
0.038081757724285126,
-0.02684928849339485,
0.01780899427831173,
0.010252781212329865,
-0.018002992495894432,
0.05292258784174919,
-0.03218422830104828,
-0.0072458162903785706,
-0.03482259809970856,
0.02888626605272293,
0.01898268051445484,
0.008080006577074528,
-0.0493142306804657,
-0.00738161476328969,
-0.012920250184834003,
-0.01994296908378601,
-0.09141173958778381,
-0.01401633769273758,
-0.04752945154905319,
0.020796559751033783,
0.0161697119474411,
0.020718960091471672,
0.04244671016931534,
0.05129300802946091,
-0.010795975103974342
] |
17,881 | imodels.rule_set.skope_rules | _extract_rules | null | def _extract_rules(self, X, y) -> Tuple[List[str], List[np.array], List[np.array]]:
return extract_skope(X, y,
feature_names=self.feature_placeholders,
sample_weight=self.sample_weight,
n_estimators=self.n_estimators,
max_samples=self.max_samples_,
max_samples_features=self.max_samples_features,
bootstrap=self.bootstrap,
bootstrap_features=self.bootstrap_features,
max_depths=self.max_depth,
max_features=self.max_features,
min_samples_split=self.min_samples_split,
n_jobs=self.n_jobs,
random_state=self.random_state,
verbose=self.verbose)
| (self, X, y) -> Tuple[List[str], List[<built-in function array>], List[<built-in function array>]] | [
0.018205557018518448,
-0.015388448722660542,
0.0015879241982474923,
-0.049405019730329514,
-0.017245979979634285,
-0.018170341849327087,
-0.009886286221444607,
0.03442152962088585,
0.07039246708154678,
0.025952601805329323,
0.01032645907253027,
0.018205557018518448,
0.0002101826248690486,
-0.006281269248574972,
0.008147602900862694,
-0.0051896399818360806,
-0.02579413913190365,
-0.006800673436373472,
-0.019244365394115448,
0.02832953631877899,
-0.011990313418209553,
-0.03838308900594711,
0.003728265408426523,
0.01822316274046898,
0.0272379070520401,
0.01413835771381855,
0.05172913521528244,
-0.03320665284991264,
0.0071175978519022465,
-0.03519623354077339,
-0.06021567061543465,
0.0013414273271337152,
-0.061905935406684875,
-0.007421317044645548,
-0.010889880359172821,
-0.017659742385149002,
0.0010993321193382144,
0.04577799513936043,
0.002922748913988471,
0.010458511300384998,
-0.038418300449848175,
-0.06746972352266312,
0.017078712582588196,
0.026269525289535522,
-0.05827890709042549,
0.011004325933754444,
-0.08380894362926483,
0.016761789098381996,
-0.03197416663169861,
-0.04764432832598686,
-0.04162276163697243,
-0.04817253723740578,
0.015467680059373379,
0.05380675196647644,
0.032555196434259415,
0.0010134984040632844,
0.0003969810495618731,
0.06599073857069016,
0.06662458926439285,
-0.009842269122600555,
0.03583008423447609,
0.043982088565826416,
-0.004767073784023523,
0.029914159327745438,
-0.027044231072068214,
-0.058138053864240646,
-0.05472230911254883,
0.0041332244873046875,
-0.014578530564904213,
0.062258072197437286,
0.020776167511940002,
-0.02065291814506054,
0.035671621561050415,
-0.006827083416283131,
0.02861124649643898,
-0.009146795608103275,
-0.011963902972638607,
-0.03345315158367157,
0.05514487624168396,
-0.05472230911254883,
-0.05884233117103577,
0.08190739899873734,
-0.05028536543250084,
-0.013055532239377499,
-0.007306872401386499,
0.00812559388577938,
0.06419483572244644,
0.026639271527528763,
0.014913061633706093,
0.011752619408071041,
-0.051482636481523514,
0.02347002550959587,
-0.00033590703969821334,
-0.007359692826867104,
0.01397109217941761,
0.05627172067761421,
-0.05091921612620354,
-0.01795906014740467,
0.04299610108137131,
-0.010027141310274601,
0.0005392119637690485,
-0.0030570016242563725,
-0.030512794852256775,
0.08528792858123779,
0.004604209680110216,
0.018381625413894653,
-0.001483383122831583,
0.00807277299463749,
-0.023663701489567757,
0.00031912545091472566,
-0.026621663942933083,
0.04482721909880638,
-0.016620934009552002,
0.043629951775074005,
-0.011153984814882278,
-0.08120311796665192,
-0.05236298218369484,
0.0010289044585078955,
-0.06060302257537842,
-0.009771841578185558,
-0.006545372772961855,
0.021145911887288094,
-0.036340683698654175,
0.04105934128165245,
-0.023927805945277214,
0.009666199795901775,
0.00967500265687704,
-0.0017364826053380966,
0.049475446343421936,
-0.0798649936914444,
-0.017378030344843864,
-0.0030702068470418453,
-0.041904471814632416,
-0.01656811311841011,
-0.07239966094493866,
-0.06408919394016266,
0.06954734027385712,
-0.009912696667015553,
0.032872121781110764,
-0.05827890709042549,
0.0565534308552742,
0.02135719545185566,
0.009146795608103275,
-0.048102106899023056,
-0.030812110751867294,
0.01571417786180973,
0.024984220042824745,
0.024931399151682854,
0.05870147421956062,
0.01274741068482399,
-0.029174668714404106,
0.010308852419257164,
0.009058760479092598,
-0.04694005101919174,
0.007047170307487249,
-0.035354696214199066,
-0.014173571020364761,
-0.01429681945592165,
0.08733032643795013,
-0.017932649701833725,
-0.023170707747340202,
-0.05820848047733307,
-0.04817253723740578,
0.005854301154613495,
0.037714023143053055,
0.06130729988217354,
0.03102339431643486,
0.018117520958185196,
0.023522846400737762,
-0.026727305725216866,
-0.003963758237659931,
-0.034333497285842896,
-0.06546252965927124,
0.02855842560529709,
-0.027748506516218185,
0.03609418869018555,
0.009534147568047047,
0.026709700003266335,
-0.002171153435483575,
0.06620202213525772,
-0.019209150224924088,
-0.014376050792634487,
-0.02306506596505642,
-0.04162276163697243,
0.010766631923615932,
0.024720117449760437,
0.06444133073091507,
-0.0023835368920117617,
-0.02378695085644722,
0.042186181992292404,
-0.03950992971658707,
-0.01189347542822361,
0.008948717266321182,
0.07521676272153854,
-0.0015637147007510066,
0.002616828540340066,
-0.023874985054135323,
0.040531132370233536,
-0.05313768610358238,
0.010581759735941887,
-0.044686365872621536,
-0.011294839903712273,
-0.011673389002680779,
0.02685055509209633,
-0.015274004079401493,
0.008992735296487808,
-0.028083039447665215,
0.04440465569496155,
-0.08909101784229279,
0.021515658125281334,
0.0068402886390686035,
0.007975935004651546,
-0.011849457398056984,
-0.019526075571775436,
0.0773295983672142,
-0.007188025396317244,
0.0538419634103775,
0.002284497953951359,
-0.025406787171959877,
-0.04954587668180466,
0.018117520958185196,
-0.06641330569982529,
-0.025019435212016106,
0.016488881781697273,
0.014147160574793816,
-0.008028755895793438,
0.055637869983911514,
-0.01597828045487404,
0.002733474364504218,
-0.05271512269973755,
0.02278335578739643,
-0.04729219153523445,
0.04419337213039398,
-0.011162787675857544,
-0.022959424182772636,
0.036728035658597946,
-0.0028413168620318174,
0.007443326059728861,
-0.005150024313479662,
0.010872273705899715,
-0.029227489605545998,
-0.05972267687320709,
0.0020798174664378166,
-0.03884086757898331,
0.01638323999941349,
0.04127062112092972,
0.03767881169915199,
-0.02098744921386242,
0.013020318001508713,
0.0020842193625867367,
0.051905203610658646,
0.03891129419207573,
0.016127940267324448,
-0.00893551204353571,
-0.0690191313624382,
-0.06778664886951447,
0.0029139453545212746,
-0.026762519031763077,
0.045285001397132874,
-0.09183769673109055,
0.017967863008379936,
0.024244729429483414,
-0.00929645448923111,
-0.021110698580741882,
-0.08620348572731018,
0.031481172889471054,
0.006646612659096718,
0.006338491570204496,
-0.045707568526268005,
0.016224777325987816,
0.009164402261376381,
0.023029852658510208,
-0.04524978622794151,
0.030794505029916763,
-0.03378768265247345,
0.03753795474767685,
0.0008941014530137181,
-0.001700168359093368,
0.06349055469036102,
0.021568479016423225,
0.06074387580156326,
0.00946372002363205,
0.006351696792989969,
-0.021286766976118088,
0.005797078832983971,
-0.03746752813458443,
0.012597751803696156,
0.000849533942528069,
0.010810649022459984,
-0.042643964290618896,
-0.056377362459897995,
-0.013583739288151264,
0.028840135782957077,
-0.006831485312432051,
0.08169611543416977,
0.07373778522014618,
-0.007852686569094658,
-0.03519623354077339,
0.03757316991686821,
-0.006078789476305246,
0.006294474471360445,
0.0022977031767368317,
0.05130656808614731,
-0.0023549257311969995,
0.010599366389214993,
-0.026991410180926323,
0.08099183440208435,
-0.039862070232629776,
0.013839039951562881,
-0.029790909960865974,
0.031093822792172432,
-0.004225661046802998,
0.03505538031458855,
-0.0407424159348011,
-0.06824442744255066,
-0.012941086664795876,
-0.031551603227853775,
0.055356159806251526,
0.0399324968457222,
0.06665980070829391,
0.009208419360220432,
-0.08458364754915237,
0.022941818460822105,
0.01223681028932333,
0.035354696214199066,
0.02237839624285698,
-0.04352430999279022,
-0.025600463151931763,
0.011118770577013493,
-0.010132783092558384,
-0.03781966492533684,
-0.03318904712796211,
0.00040248321602120996,
0.02519550360739231,
0.038735225796699524,
0.03098818100988865,
0.016964267939329147,
0.033963751047849655,
-0.01274741068482399,
-0.02929791621863842,
-0.04986279830336571,
0.003138433676213026,
-0.02996698021888733,
0.04250310733914375,
0.06736408174037933,
-0.036340683698654175,
-0.038453515619039536,
0.006985546089708805,
0.03905215114355087,
0.019772572442889214,
0.00928765069693327,
-0.013284421525895596,
0.04165797680616379,
0.05507444962859154,
0.07194188237190247,
0.04095369949936867,
-0.08669647574424744,
0.04271439090371132,
0.03519623354077339,
0.00207321485504508,
0.011726208962500095,
-0.04954587668180466,
0.003252878552302718,
0.054616667330265045,
-0.003211062168702483,
-0.02477293834090233,
0.013759808614850044,
0.020071890205144882,
0.012500913813710213,
-0.05958181992173195,
-0.024367978796362877,
0.011523730121552944,
-0.04088326916098595,
-0.04197489842772484,
0.013865450397133827,
0.039157792925834656,
0.014613744802772999,
-0.023892592638731003,
0.01859290897846222,
-0.008772647939622402,
0.005700240842998028,
0.031164249405264854,
-0.015749391168355942,
0.016295205801725388,
-0.013020318001508713,
0.015432465821504593,
-0.0653216764330864,
-0.004245468880981207,
0.026410382241010666,
-0.022149506956338882,
0.04859510064125061,
-0.007447727490216494,
0.03354118391871452,
-0.04831339046359062,
0.024579262360930443,
-0.028769709169864655,
-0.040108565241098404,
0.0407424159348011,
-0.06556817144155502,
0.022307969629764557,
-0.04412294551730156,
-0.05162349343299866,
-0.031903740018606186,
0.02556524984538555,
-0.06373705714941025,
-0.048419032245874405,
-0.006285670679062605,
0.08162568509578705,
-0.020934628322720528,
0.03403417766094208,
-0.030864931643009186,
-0.009498934261500835,
0.03373486176133156,
-0.029227489605545998,
-0.05021493881940842,
0.03648154065012932,
0.015872638672590256,
0.11803679913282394,
0.029861338436603546,
-0.010097568854689598,
0.010652187280356884,
-0.0326608382165432,
-0.0028303125873208046,
-0.013240404427051544,
0.013865450397133827,
0.03181570768356323,
-0.09866918623447418,
-0.045390643179416656,
0.004320298321545124,
-0.01866333559155464,
-0.06912477314472198,
-0.01655050553381443,
-0.07113195955753326,
-0.03972121328115463,
-0.009877482429146767,
-0.04109455272555351,
-0.0365871824324131,
0.01964932307600975,
0.02924509532749653,
-0.024244729429483414,
0.00417504133656621,
0.01447288878262043,
0.06366662681102753,
0.0538419634103775,
-0.03556597977876663,
-0.013055532239377499,
-0.07232923060655594,
-0.02345241792500019,
-0.091062992811203,
-0.019209150224924088,
0.021251553669571877,
0.0010998822981491685,
0.0448976494371891,
0.045320212841033936,
-0.01154133677482605,
0.006184430792927742,
-0.0005196792772039771,
-0.03831265866756439,
-0.016154350712895393,
-0.004938741214573383,
0.06866699457168579,
-0.032590411603450775,
0.021515658125281334,
0.03436870872974396,
-0.04641184210777283,
-0.01755410060286522,
-0.02898099273443222,
0.014402461238205433,
0.004223460331559181,
-0.006202037911862135,
-0.025952601805329323,
-0.045320212841033936,
-0.039826855063438416,
-0.04644705727696419,
0.04352430999279022,
0.0517643466591835,
0.06475825607776642,
0.0023857378400862217,
0.03068886324763298,
-0.02556524984538555,
-0.026357561349868774,
-0.02929791621863842,
-0.013002711348235607,
-0.019121116027235985,
-0.016981875523924828,
-0.010660991072654724,
-0.022554466500878334,
-0.07493505626916885,
-0.011057145893573761,
0.0007543465471826494,
-0.00998312421143055,
0.022501645609736443,
-0.001967573305591941,
-0.02616388536989689,
-0.036058973520994186,
-0.00009243633394362405,
0.03523144870996475,
0.03817180544137955,
0.030178261920809746,
-0.0005438887747004628,
-0.015670159831643105,
-0.002951360074803233,
-0.009842269122600555,
-0.011294839903712273,
0.01618076115846634,
-0.016744181513786316,
-0.018364017829298973,
-0.018857011571526527,
-0.05440538749098778,
0.02586456760764122,
-0.023241136223077774,
-0.00809038057923317,
-0.0021799569949507713,
0.011990313418209553,
0.010713811032474041,
0.035636406391859055,
0.040566347539424896,
0.08845716714859009,
-0.02241360954940319,
0.05109528452157974,
0.038418300449848175,
0.007562172599136829,
0.0265160221606493,
0.014763402752578259,
0.02447362057864666,
0.06662458926439285,
0.01396228838711977,
0.004701047670096159,
0.01396228838711977,
-0.02070573903620243,
0.04929937794804573,
-0.0669415146112442,
-0.03919300436973572,
0.03574204817414284,
0.006642210762947798,
0.03560119494795799,
0.013513311743736267,
-0.02965005487203598,
0.0613425113260746,
0.0023131093475967646,
0.019878214225172997,
-0.022484038025140762,
-0.03609418869018555,
0.011928688734769821,
-0.03107621520757675,
0.04320738464593887,
-0.0073728980496525764,
0.0515882782638073,
-0.04725697636604309,
-0.004824296571314335,
0.026357561349868774,
-0.031938955187797546,
0.03781966492533684,
0.03544273227453232,
0.08620348572731018,
0.00008308266114909202,
-0.03870001062750816,
0.014877848327159882,
-0.04785561189055443,
0.014886652119457722,
-0.003041595686227083,
-0.09528865665197372,
0.01221920270472765,
-0.0064133210107684135,
-0.03697453439235687,
0.003211062168702483,
-0.017492476850748062,
0.04373558983206749,
-0.11775508522987366,
-0.0378548800945282,
-0.007020759861916304,
0.034984953701496124,
-0.02545960806310177,
-0.0075445654802024364,
-0.022519251331686974,
-0.014842634089291096,
0.030530400574207306,
-0.02996698021888733,
-0.02820628695189953,
0.020159924402832985,
0.007003152742981911,
0.03135792538523674,
0.04986279830336571,
-0.052855975925922394,
0.02276574820280075,
-0.004040788393467665,
-0.019878214225172997,
0.013627756386995316,
-0.03169245645403862,
0.023716522380709648,
0.04060155898332596,
0.06771621853113174,
0.0009265642147511244,
-0.028769709169864655,
-0.06074387580156326,
-0.007069178856909275,
-0.008262047544121742,
-0.055320944637060165,
0.010264835320413113,
-0.024297550320625305,
0.003338712500408292,
0.0434538796544075,
0.023540453985333443,
0.00022682665439788252,
0.03273126482963562,
-0.015749391168355942,
-0.0029425567481666803,
-0.026656879112124443,
-0.037397101521492004,
0.0020236955024302006,
0.03241434320807457,
-0.005546180065721273,
0.05993396043777466,
-0.0894431620836258,
-0.007390505168586969,
0.026709700003266335,
0.03651675581932068,
0.022924210876226425,
-0.01899786852300167,
-0.06880784779787064,
0.011347660794854164,
0.010440903715789318,
0.0014217589050531387,
0.06169465184211731,
0.021093090996146202,
-0.0035587989259511232,
-0.012509717606008053,
-0.05042622238397598,
0.031199464574456215,
0.015740586444735527,
-0.008372090756893158,
-0.030248690396547318,
0.07261094450950623,
-0.04250310733914375,
0.00399457011371851,
0.05588436871767044,
0.03597094118595123,
0.02067052572965622,
-0.0365871824324131,
-0.03697453439235687,
-0.06415961682796478,
-0.003827304346486926,
0.052539050579071045,
0.04211575537919998,
-0.06211721897125244,
-0.06528646498918533,
-0.01861051470041275,
0.018047094345092773,
0.048419032245874405,
0.04183404520153999,
0.022114291787147522,
-0.002434156835079193,
-0.07676617801189423,
0.020881807431578636,
0.0021898606792092323,
0.06465261429548264,
-0.007055973634123802,
0.03894650936126709,
-0.008794656954705715,
-0.06915998458862305,
-0.03031911700963974,
0.04046070575714111,
0.036340683698654175,
0.04584842175245285,
-0.015775801613926888,
0.03612940013408661,
0.040812842547893524,
-0.03519623354077339,
0.006127208471298218,
0.03408699855208397,
-0.02725551277399063,
-0.021850189194083214,
0.0006773162167519331,
0.017694955691695213,
-0.01155014056712389,
-0.04852467402815819,
-0.009217223152518272,
-0.004613013472408056,
0.008196021430194378,
-0.0018531284295022488,
0.027431583032011986,
0.015766996890306473,
0.006593791767954826,
-0.03169245645403862,
0.023610880598425865,
0.036041367799043655,
-0.002447362057864666,
0.02243121713399887,
-0.02618149109184742,
-0.007575377821922302,
-0.032555196434259415,
0.0023417205084115267,
0.06158901005983353,
0.0007015257724560797,
0.010238424874842167,
0.004267477430403233,
0.0013502307701855898,
-0.02133958786725998,
0.08676690608263016,
-0.017598116770386696,
-0.02545960806310177,
-0.002951360074803233,
-0.05679992586374283,
-0.006527766119688749,
0.005264469422399998,
0.0015505094779655337,
-0.029509199783205986,
0.023258741945028305,
0.029790909960865974,
-0.03134031966328621,
-0.011629370972514153,
-0.021938223391771317,
0.016524095088243484,
-0.04750347137451172,
0.0016033302526921034,
0.005731052719056606,
0.00860098097473383,
0.016057511791586876,
-0.008909101597964764,
-0.01015919353812933,
0.03760838136076927,
0.02413908950984478,
0.04507371783256531,
0.0015747189754620194,
-0.017307603731751442,
0.041904471814632416,
0.05405324697494507,
-0.05820848047733307,
0.052891191095113754,
-0.023205921053886414,
0.02521311119198799,
0.05246862396597862,
-0.012254416942596436,
0.07261094450950623,
-0.010009534657001495,
-0.03317143768072128,
-0.005612206179648638,
-0.0241214819252491,
0.05310247465968132,
0.01964932307600975,
0.025653284043073654,
0.002044603694230318,
0.0025089862756431103,
-0.000732888060156256,
0.001797006349079311,
0.03965078666806221,
0.04246789216995239,
0.01153253298252821,
-0.018170341849327087,
-0.04278481751680374,
0.017131533473730087,
-0.012368861585855484,
0.0490528829395771,
0.03204459697008133,
-0.007064776960760355,
-0.02487858012318611,
0.07275179773569107,
-0.08873888105154037,
-0.009930303320288658,
-0.056694284081459045,
-0.02373412996530533,
0.004355512093752623,
-0.027660472318530083,
0.08078055083751678,
0.023593274876475334,
0.010388083755970001,
0.027660472318530083,
0.05028536543250084
] |
17,892 | imodels.rule_set.skope_rules | _score_rules | null | def _score_rules(self, X, y, rules) -> List[Rule]:
return score_precision_recall(X, y, rules, self.estimators_samples_, self.estimators_features_, self.feature_placeholders)
| (self, X, y, rules) -> List[imodels.util.rule.Rule] | [
-0.015404575504362583,
-0.0002004025154747069,
-0.01960582286119461,
-0.011553431861102581,
-0.017863841727375984,
-0.015361879952251911,
-0.008325643837451935,
-0.0062933326698839664,
0.053693998605012894,
0.008496426045894623,
0.008556200191378593,
0.009640668518841267,
0.04696517065167427,
0.017573513090610504,
0.009153938852250576,
0.0119974659755826,
-0.01989615336060524,
-0.02442188747227192,
-0.007347914390265942,
-0.016275566071271896,
0.0010054815793409944,
0.019844919443130493,
-0.001505020190961659,
0.00472640385851264,
0.0009830663911998272,
0.011365571059286594,
0.045633066445589066,
-0.026556668803095818,
-0.049458593130111694,
0.019298415631055832,
-0.0437203049659729,
0.054957788437604904,
-0.025344112887978554,
-0.004354951903223991,
-0.020630517974495888,
-0.052191112190485,
-0.023875383660197258,
0.045359816402196884,
0.04829727113246918,
-0.009350338019430637,
-0.00713016651570797,
-0.0074034184217453,
-0.009802911430597305,
0.01975952833890915,
-0.05130304396152496,
0.023192254826426506,
-0.04498409479856491,
0.051439668983221054,
0.024490201845765114,
-0.09099288284778595,
-0.04624788463115692,
-0.0352494940161705,
0.019998623058199883,
0.047204263508319855,
0.024524357169866562,
0.006515349727123976,
-0.02174060419201851,
-0.014943462796509266,
0.008855069056153297,
-0.04764829948544502,
0.06096933037042618,
0.0022030933760106564,
-0.016113322228193283,
-0.022235872223973274,
0.05055160075426102,
-0.0522252693772316,
-0.020681751891970634,
-0.008124974556267262,
0.02484884485602379,
0.02170644700527191,
-0.030365116894245148,
-0.010024928487837315,
0.05044913291931152,
-0.051986172795295715,
0.023943698033690453,
0.018000468611717224,
0.019298415631055832,
0.005345490295439959,
0.01310755219310522,
-0.007467461749911308,
0.010178633034229279,
0.0762372761964798,
0.029664909467101097,
-0.023243488743901253,
-0.02737642452120781,
-0.05304502323269844,
0.062164805829524994,
-0.004512925632297993,
0.0004869967815466225,
0.02922087535262108,
-0.013192943297326565,
-0.020135249942541122,
-0.00002967011278087739,
-0.03822110965847969,
-0.014917845837771893,
0.02638588659465313,
-0.05813433974981308,
0.0031381272710859776,
-0.0020429848227649927,
-0.035761840641498566,
0.020408499985933304,
0.048433899879455566,
-0.044949937611818314,
0.036889005452394485,
0.017880920320749283,
-0.005332681350409985,
-0.011886456981301308,
-0.008731251582503319,
-0.013184404000639915,
0.08689410239458084,
-0.04611125588417053,
0.018564051017165184,
0.004769099410623312,
0.022457890212535858,
-0.013517430052161217,
-0.03217541053891182,
-0.06848375499248505,
-0.01700139045715332,
-0.013312490656971931,
0.022543281316757202,
-0.03101409040391445,
-0.0035416006576269865,
-0.009640668518841267,
0.004653821233659983,
-0.047921549528837204,
-0.000045931134081911296,
0.025617364794015884,
0.03975814953446388,
0.055948324501514435,
-0.06168661639094353,
-0.014140785671770573,
-0.003451939905062318,
-0.00437203049659729,
-0.012313413433730602,
0.004431804176419973,
-0.05335243418812752,
0.10042007267475128,
0.016676904633641243,
0.05116641893982887,
-0.05092732235789299,
0.09222251176834106,
0.03243158385157585,
0.02090376988053322,
-0.022679908201098442,
0.007796218153089285,
-0.0022244411520659924,
-0.00019946854445151985,
0.09584309905767441,
-0.045086562633514404,
0.02706901542842388,
-0.02030603215098381,
0.02694946900010109,
0.07541752606630325,
-0.015822991728782654,
0.06455575674772263,
0.0039130523800849915,
0.012304874137043953,
-0.047067638486623764,
0.02735934592783451,
-0.018991006538271904,
-0.0006265580304898322,
-0.0019661327823996544,
-0.06523889303207397,
-0.031953394412994385,
0.058612532913684845,
0.04542812705039978,
-0.03132149949669838,
-0.012151170521974564,
-0.0009803979191929102,
-0.005029542837291956,
-0.01051165908575058,
-0.07917473465204239,
-0.02271406352519989,
0.03306347876787186,
-0.003750809235498309,
-0.02594185248017311,
-0.027837537229061127,
0.03835773468017578,
-0.028691448271274567,
0.08791879564523697,
0.040987785905599594,
-0.015507045201957226,
-0.012637900188565254,
-0.08805542439222336,
-0.008039583452045918,
0.04624788463115692,
0.006020080763846636,
0.026846999302506447,
-0.07043067365884781,
0.01991323195397854,
-0.032072942703962326,
-0.04016802832484245,
0.020203562453389168,
0.013457655906677246,
-0.023055627942085266,
-0.02339719422161579,
-0.02679576352238655,
0.0748710185289383,
0.02329472452402115,
-0.024490201845765114,
-0.014012699015438557,
0.029562439769506454,
0.011877918615937233,
-0.03246574103832245,
-0.0331147126853466,
0.025907695293426514,
-0.07166031002998352,
0.015011776238679886,
-0.04952690750360489,
-0.03075791709125042,
-0.006498271599411964,
0.037298884242773056,
-0.047170110046863556,
0.0013566529378294945,
0.0310482457280159,
0.013961464166641235,
0.06821050494909286,
-0.006933766882866621,
-0.0549919456243515,
-0.01905931904911995,
0.013167325407266617,
-0.02030603215098381,
-0.040953628718853,
-0.001316092093475163,
0.025087939575314522,
0.04266145080327988,
0.04177338257431984,
-0.0022351150400936604,
0.02737642452120781,
-0.013466195203363895,
0.000957982731051743,
-0.03822110965847969,
0.014712906442582607,
-0.007236905861645937,
0.004354951903223991,
-0.00691668875515461,
0.011766909621655941,
0.06851791590452194,
-0.04641866683959961,
0.062267277389764786,
-0.011971849016845226,
0.014866610988974571,
0.021638134494423866,
-0.004978307988494635,
0.009640668518841267,
0.04645282030105591,
0.048877932131290436,
-0.005695594009011984,
0.0017462504329159856,
0.028162023052573204,
0.03468591347336769,
-0.004365625791251659,
0.022919002920389175,
-0.009555277414619923,
-0.026864076033234596,
-0.02807663194835186,
-0.05174707621335983,
-0.010554354637861252,
0.03712810203433037,
-0.014234716072678566,
0.034651756286621094,
0.11736168712377548,
-0.002207363024353981,
-0.04061206430196762,
-0.03190216049551964,
0.01917886734008789,
-0.031953394412994385,
0.022628672420978546,
0.009649207815527916,
0.030962854623794556,
0.058749157935380936,
-0.03979230672121048,
-0.016412191092967987,
0.016890382394194603,
-0.02918671816587448,
0.04710179567337036,
-0.023209333419799805,
0.018734833225607872,
0.07179693877696991,
-0.007275331765413284,
0.05205448716878891,
-0.03569352999329567,
-0.008983155712485313,
-0.04081699997186661,
0.05878331512212753,
-0.01958874613046646,
0.010460424236953259,
0.058339279145002365,
-0.015489966608583927,
-0.02215048111975193,
-0.014388419687747955,
-0.04132935032248497,
0.03695731982588768,
-0.00027672090800479054,
0.05318164825439453,
-0.004679438658058643,
0.029459970071911812,
-0.0578610897064209,
0.020801300182938576,
0.02259451523423195,
-0.03371245414018631,
0.023448428139090538,
0.06708334386348724,
-0.012876995839178562,
-0.014764141291379929,
-0.03695731982588768,
0.03116779401898384,
-0.05205448716878891,
0.04160260036587715,
-0.010468963533639908,
0.03705978766083717,
0.023960774764418602,
-0.00016584574768785387,
-0.03130441904067993,
-0.03962152451276779,
-0.009982232935726643,
-0.01613040082156658,
-0.007036236114799976,
0.06844960153102875,
-0.0061865937896072865,
-0.01382483821362257,
-0.05406972020864487,
0.01762474700808525,
0.052805930376052856,
0.020818378776311874,
0.01531918440014124,
-0.027478894218802452,
-0.020220641046762466,
-0.018734833225607872,
-0.061310894787311554,
0.02355089783668518,
-0.05051744356751442,
0.015549740754067898,
-0.00035997736267745495,
-0.018273720517754555,
-0.0095211211591959,
0.021518586203455925,
0.06308703124523163,
-0.0006409678026102483,
0.004126530606299639,
-0.05632404610514641,
0.011886456981301308,
-0.025719834491610527,
0.000916888180654496,
-0.010281102731823921,
0.02271406352519989,
-0.0692010447382927,
0.042832233011722565,
0.02778630144894123,
0.008492156863212585,
0.0109386146068573,
-0.090241439640522,
0.03347335755825043,
0.03118487261235714,
0.02722272090613842,
-0.026607902720570564,
-0.022748220711946487,
-0.017675982788205147,
0.03610340505838394,
-0.057348743081092834,
0.03890423849225044,
-0.05441128462553024,
-0.016881844028830528,
0.06042282655835152,
-0.00250409753061831,
0.045120719820261,
0.004922803491353989,
-0.009299103170633316,
0.024336496368050575,
-0.012526891194283962,
-0.03325134143233299,
0.010093241930007935,
-0.031680140644311905,
0.004139339085668325,
0.005772446282207966,
0.03019433468580246,
0.05106394737958908,
0.012757447548210621,
0.06236974522471428,
0.03938242793083191,
-0.005072238389402628,
-0.0016373766120523214,
-0.03555690124630928,
0.0011132879881188273,
-0.021091630682349205,
0.02085253596305847,
-0.04023634269833565,
-0.004517195280641317,
0.06151583418250084,
-0.018017547205090523,
0.0790381133556366,
0.011109397746622562,
-0.01861528493463993,
-0.06827881932258606,
-0.06250637024641037,
0.028025398030877113,
-0.008163399994373322,
0.01723194681107998,
0.002595893107354641,
-0.04703348129987717,
-0.05195201560854912,
0.01712093874812126,
-0.016198713332414627,
-0.0012456444092094898,
-0.04331042617559433,
0.05116641893982887,
-0.0027986972127109766,
0.08054099977016449,
-0.04952690750360489,
0.07364138215780258,
-0.023482585325837135,
-0.012108474969863892,
0.02329472452402115,
-0.040851157158613205,
-0.04078284651041031,
0.01178398821502924,
0.026590824127197266,
0.030655447393655777,
0.043788615614175797,
-0.003298235824331641,
0.016138939186930656,
-0.024456044659018517,
0.026180947199463844,
0.006993540562689304,
-0.0002220171591034159,
-0.01426033303141594,
-0.0261126346886158,
-0.018085859715938568,
-0.039997246116399765,
0.008492156863212585,
-0.03883592411875725,
-0.05294255539774895,
-0.0563923604786396,
-0.03400278091430664,
-0.015763219445943832,
-0.0507906973361969,
-0.0204768143594265,
0.02807663194835186,
-0.024934235960245132,
-0.016582975164055824,
0.006609280128031969,
0.017880920320749283,
0.0635652244091034,
0.030245568603277206,
0.007561392150819302,
-0.006831297185271978,
-0.032072942703962326,
-0.05290839821100235,
-0.10930075496435165,
0.011544892564415932,
-0.043822772800922394,
0.005294255446642637,
0.05728042870759964,
0.06281378120183945,
0.0038575483486056328,
0.04160260036587715,
-0.038152795284986496,
-0.07070393115282059,
0.03586431220173836,
0.004094508942216635,
0.08518628031015396,
0.008705634623765945,
-0.024763453751802444,
0.013970003463327885,
-0.09276901930570602,
0.008381147868931293,
-0.02454143576323986,
0.03340504318475723,
0.005708402954041958,
-0.015686366707086563,
0.023311803117394447,
-0.017308799549937248,
0.0020429848227649927,
-0.02539534866809845,
-0.049048714339733124,
0.08942168205976486,
0.04857052490115166,
-0.02242373302578926,
-0.0024251106660813093,
0.009768755175173283,
0.005853567738085985,
-0.04150013253092766,
-0.04484746605157852,
-0.013577203266322613,
0.015233793295919895,
-0.01587422750890255,
-0.024763453751802444,
-0.026351729407906532,
-0.03712810203433037,
-0.02160397730767727,
0.00822744332253933,
-0.004190573934465647,
0.0367182232439518,
0.010400650091469288,
-0.060012947767972946,
0.0031167794950306416,
0.07268500328063965,
-0.00006627826223848388,
-0.036889005452394485,
0.0033857617527246475,
0.01719779148697853,
-0.013713829219341278,
-0.04583800584077835,
0.028691448271274567,
0.028435274958610535,
0.009691903367638588,
-0.025873538106679916,
-0.010101781226694584,
-0.05191785842180252,
0.01589130610227585,
-0.03320010378956795,
-0.019127633422613144,
0.029835691675543785,
0.010187172330915928,
-0.04962937533855438,
0.003797774435952306,
0.026829920709133148,
0.0007071460131555796,
-0.03263652324676514,
0.005196055397391319,
0.011041084304451942,
-0.014012699015438557,
0.0004819266905542463,
-0.03791369870305061,
0.05751952528953552,
0.05444544181227684,
-0.043788615614175797,
0.03205586224794388,
0.04826311767101288,
-0.0352494940161705,
0.06055945158004761,
0.00006918022700119764,
0.013594281859695911,
-0.006596471648663282,
-0.030945777893066406,
0.04826311767101288,
0.01596815697848797,
-0.0677323117852211,
0.00917955581098795,
0.023448428139090538,
0.02794000692665577,
0.03545443341135979,
0.009973694570362568,
-0.00009126186341745779,
-0.004521464928984642,
0.017573513090610504,
0.006980732083320618,
-0.01846158131957054,
-0.020152326673269272,
-0.011416805908083916,
0.03695731982588768,
0.002164667472243309,
0.004986847285181284,
-0.02513917349278927,
0.0847080871462822,
0.031970471143722534,
0.02795708365738392,
0.036752380430698395,
0.016762295737862587,
-0.029374578967690468,
-0.01608770526945591,
-0.060183729976415634,
0.03473714739084244,
-0.028008319437503815,
-0.04607710242271423,
-0.00041868380503728986,
-0.0352494940161705,
0.05943228676915169,
-0.07138705998659134,
-0.040953628718853,
0.028588980436325073,
0.015566819347441196,
0.002519040834158659,
-0.03699147701263428,
-0.02300439402461052,
-0.0021678695920854807,
0.032072942703962326,
-0.05868084356188774,
-0.03275607153773308,
0.004512925632297993,
-0.006681862752884626,
0.017744295299053192,
-0.012006005272269249,
-0.07944799214601517,
-0.001116490107960999,
-0.01044334564357996,
-0.004730673506855965,
0.031099481508135796,
-0.004594047553837299,
-0.024780530482530594,
-0.016335340216755867,
0.0606277659535408,
-0.023311803117394447,
-0.05386478081345558,
-0.04816064611077309,
-0.00013369062799029052,
-0.02085253596305847,
0.0024955582339316607,
-0.05106394737958908,
0.034054018557071686,
0.036171719431877136,
0.04751167446374893,
0.05034666135907173,
-0.016625670716166496,
0.0394848994910717,
-0.01587422750890255,
-0.05830512195825577,
-0.012228022329509258,
-0.017607668414711952,
0.04730673506855965,
-0.032226644456386566,
0.026710372418165207,
0.05772446468472481,
-0.017812607809901237,
0.06223312020301819,
-0.009555277414619923,
0.0026471277233213186,
0.050859007984399796,
-0.04952690750360489,
-0.02949412725865841,
-0.008193287067115307,
0.025036705657839775,
0.013773603364825249,
0.05799771472811699,
0.011698597110807896,
0.03215833380818367,
-0.048877932131290436,
-0.10123983025550842,
-0.001813495997339487,
-0.03699147701263428,
-0.03429311141371727,
0.003319583600386977,
0.023585055023431778,
0.0005838624201714993,
0.013970003463327885,
0.008731251582503319,
0.04713595286011696,
0.018956849351525307,
0.012697674334049225,
-0.0832735151052475,
-0.059261504560709,
-0.007753522600978613,
0.022748220711946487,
-0.006698940880596638,
-0.04187585413455963,
-0.04419849440455437,
-0.053830623626708984,
0.021689368411898613,
0.09263239055871964,
0.028742684051394463,
-0.011860840022563934,
-0.027820458635687828,
-0.035932622849941254,
0.05273761600255966,
0.046623606234788895,
0.10042007267475128,
0.03965568169951439,
0.039450742304325104,
0.013893150724470615,
-0.08436652272939682,
-0.07295825332403183,
-0.010844684205949306,
0.016736678779125214,
0.01403831597417593,
-0.06821050494909286,
0.018273720517754555,
0.03596678003668785,
0.019861998036503792,
-0.036171719431877136,
0.00630614161491394,
0.003631261410191655,
0.015361879952251911,
-0.011015467345714569,
0.04693101346492767,
0.001418561558239162,
-0.015413114801049232,
-0.051542140543460846,
-0.0022265759762376547,
-0.012731830589473248,
-0.014516507275402546,
0.009879764169454575,
0.016839148476719856,
-0.042251575738191605,
-0.018222486600279808,
0.04631619527935982,
0.06407757103443146,
0.04033881053328514,
0.05936397239565849,
-0.055401820689439774,
0.0036184529308229685,
-0.022748220711946487,
0.015652209520339966,
0.04898040369153023,
-0.0296307522803545,
-0.006434228271245956,
0.037742916494607925,
-0.05560676008462906,
0.0035309267695993185,
0.07295825332403183,
0.007770600728690624,
-0.06735659390687943,
0.003744404762983322,
-0.024729296565055847,
0.006861184258013964,
0.00008165535109583288,
0.015285028144717216,
-0.030570056289434433,
0.002006693510338664,
-0.006762984208762646,
-0.01741126924753189,
-0.018734833225607872,
-0.03234619274735451,
0.0011260967003181577,
-0.028862232342362404,
-0.03876761347055435,
-0.042832233011722565,
0.09365708380937576,
-0.011425345204770565,
-0.04484746605157852,
0.011339954100549221,
0.05652898550033569,
0.019281337037682533,
0.05055160075426102,
-0.034207720309495926,
-0.007036236114799976,
0.018154172226786613,
0.05673392489552498,
-0.05625573545694351,
0.014149324968457222,
-0.090241439640522,
0.047170110046863556,
0.009879764169454575,
-0.011792527511715889,
-0.012253639288246632,
-0.02160397730767727,
-0.0024400539696216583,
-0.001321429037488997,
-0.12084565311670303,
0.037469666451215744,
0.022748220711946487,
-0.0019842784386128187,
-0.014960541389882565,
-0.008022504858672619,
-0.0020098958630114794,
-0.06148167699575424,
0.03770876303315163,
0.005161899141967297,
0.015045932494103909,
0.015609514899551868,
-0.022082168608903885,
-0.009418651461601257,
-0.0016042875358834863,
0.026454199105501175,
0.015600975602865219,
0.01665128767490387,
0.039997246116399765,
0.0331488698720932,
-0.06940598040819168,
-0.010357954539358616,
-0.04272976517677307,
0.01607062667608261,
0.007834644056856632,
-0.03822110965847969,
0.0692010447382927,
0.022748220711946487,
-0.02922087535262108,
0.03828942030668259,
0.052191112190485
] |
17,896 | imodels.rule_set.skope_rules | fit | Fit the model according to the given training data.
Parameters
----------
X : array-like, shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like, shape (n_samples,)
Target vector relative to X. Has to follow the convention 0 for
normal data, 1 for anomalies.
sample_weight : array-like, shape (n_samples,) optional
Array of weights that are assigned to individual samples, typically
the amount in case of transactions data. Used to grow regression
trees producing further rules to be tested.
If not provided, then each sample is given unit weight.
Returns
-------
self : object
Returns self.
| def fit(self, X, y, feature_names=None, sample_weight=None):
"""Fit the model according to the given training data.
Parameters
----------
X : array-like, shape (n_samples, n_features)
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y : array-like, shape (n_samples,)
Target vector relative to X. Has to follow the convention 0 for
normal data, 1 for anomalies.
sample_weight : array-like, shape (n_samples,) optional
Array of weights that are assigned to individual samples, typically
the amount in case of transactions data. Used to grow regression
trees producing further rules to be tested.
If not provided, then each sample is given unit weight.
Returns
-------
self : object
Returns self.
"""
X, y, feature_names = check_fit_arguments(self, X, y, feature_names)
check_classification_targets(y)
self.n_features_ = X.shape[1]
self.sample_weight = sample_weight
self.classes_ = unique_labels(y)
n_classes = len(self.classes_)
if n_classes < 2:
raise ValueError(
"This method needs samples of at least 2 classes in the data, but the data contains only one class: %r"
% self.classes_[0]
)
if not isinstance(self.max_depth_duplication, int) and self.max_depth_duplication is not None:
raise ValueError("max_depth_duplication should be an integer")
if not set(self.classes_) == {0, 1}:
warn(
"Found labels %s. This method assumes target class to be labeled as 1 and normal data to be labeled as "
"0. Any label different from 0 will be considered as being from the target class."
% set(self.classes_)
)
y = (y > 0)
# ensure that max_samples is in [1, n_samples]:
n_samples = X.shape[0]
if isinstance(self.max_samples, six.string_types):
raise ValueError(
'max_samples (%s) is not supported. Valid choices are: "auto", int or float'
% self.max_samples
)
elif isinstance(self.max_samples, INTEGER_TYPES):
if self.max_samples > n_samples:
warn(
"max_samples (%s) is greater than the total number of samples (%s). max_samples will be set "
"to n_samples for estimation."
% (self.max_samples, n_samples)
)
max_samples = n_samples
else:
max_samples = self.max_samples
else: # float
if not (0. < self.max_samples <= 1.):
raise ValueError("max_samples must be in (0, 1], got %r" % self.max_samples)
max_samples = int(self.max_samples * X.shape[0])
self.max_samples_ = max_samples
self.feature_dict_ = get_feature_dict(X.shape[1], feature_names)
self.feature_placeholders = np.array(list(self.feature_dict_.keys()))
self.feature_names = np.array(list(self.feature_dict_.values()))
extracted_rules, self.estimators_samples_, self.estimators_features_ = self._extract_rules(X, y)
scored_rules = self._score_rules(X, y, extracted_rules)
self.rules_ = self._prune_rules(scored_rules)
self.rules_without_feature_names_ = self.rules_
self.rules_ = [
replace_feature_name(rule, self.feature_dict_) for rule in self.rules_
]
self.complexity_ = self._get_complexity()
return self
| (self, X, y, feature_names=None, sample_weight=None) | [
0.03143981471657753,
-0.04018986225128174,
0.05044853314757347,
-0.02244839072227478,
-0.025586338713765144,
-0.03894272819161415,
-0.042724356055259705,
0.030776020139455795,
0.018395209684967995,
0.012038854882121086,
-0.026632320135831833,
0.0011497006053104997,
0.016001518815755844,
0.0002729674451984465,
-0.020275965332984924,
0.03886226937174797,
-0.017268765717744827,
-0.016725661233067513,
-0.011053217574954033,
0.030051877722144127,
-0.023735754191875458,
-0.0012012453516945243,
-0.05579913780093193,
0.05813248082995415,
0.00013491223216988146,
0.015076226554811,
-0.002275514416396618,
0.005345573183149099,
0.0001991075259866193,
-0.022428276017308235,
-0.08657515794038773,
-0.02468116022646427,
-0.01361788623034954,
0.0014922849368304014,
-0.013104951940476894,
-0.06127042695879936,
0.0002583526074886322,
0.02767830342054367,
-0.034255921840667725,
-0.039043303579092026,
-0.01252161618322134,
-0.07378198951482773,
-0.009333381429314613,
0.014744328334927559,
-0.02164378948509693,
0.047028977423906326,
-0.03176165744662285,
0.09550623595714569,
-0.05640258640050888,
-0.053304869681596756,
-0.014653810299932957,
-0.06798885017633438,
0.0155791025608778,
0.053948551416397095,
-0.04497724026441574,
0.0191796962171793,
0.024741506204009056,
0.0005437348154373467,
0.06255779415369034,
-0.041517455130815506,
0.01934061571955681,
0.017630837857723236,
0.012712708674371243,
-0.01637364737689495,
-0.048316340893507004,
-0.027135197073221207,
-0.05483361333608627,
0.016524510458111763,
0.00389477564021945,
0.07969581335783005,
-0.002012761775404215,
-0.030373718589544296,
0.054431311786174774,
0.037413984537124634,
0.001678349100984633,
0.013406678102910519,
-0.04485655203461647,
-0.007412394043058157,
0.020879417657852173,
-0.040692735463380814,
-0.013014434836804867,
0.06493137031793594,
0.022750116884708405,
-0.06996012479066849,
-0.027738647535443306,
-0.03200303763151169,
0.03687087818980217,
0.036086391657590866,
0.05000600218772888,
-0.05044853314757347,
-0.03206338360905647,
0.04533931240439415,
0.0695175975561142,
0.042603667825460434,
0.05012669414281845,
0.01142534613609314,
-0.016997212544083595,
0.006004340946674347,
0.036086391657590866,
-0.02532484196126461,
-0.025546107441186905,
0.03506052494049072,
0.0012986776418983936,
0.10121890902519226,
-0.039324913173913956,
0.008900907821953297,
-0.013396620750427246,
0.0007694005034863949,
-0.03829904645681381,
0.008931079879403114,
-0.07921304553747177,
-0.0002822392270900309,
0.04043124243617058,
0.03771571069955826,
-0.018274519592523575,
-0.048517487943172455,
-0.04389102756977081,
0.030655330047011375,
-0.06380492448806763,
-0.0070402659475803375,
0.03662949800491333,
0.05229911953210831,
-0.053506020456552505,
-0.03590535745024681,
-0.012722766026854515,
-0.0033214970026165247,
0.03791686147451401,
0.010107810609042645,
0.05579913780093193,
-0.0619141086935997,
-0.018224231898784637,
-0.015096341259777546,
-0.018646646291017532,
0.05861524119973183,
0.024359319359064102,
-0.033612240105867386,
-0.0035503054969012737,
0.028342099860310555,
0.009061828255653381,
-0.030977170914411545,
0.09582807868719101,
-0.0050966497510671616,
0.054189931601285934,
-0.01626301370561123,
0.02916681580245495,
0.008634382858872414,
0.03067544475197792,
0.009951918385922909,
-0.03371281549334526,
-0.008684670552611351,
-0.033290401101112366,
-0.008166708052158356,
0.043166887015104294,
-0.0387415774166584,
-0.0019675029907375574,
-0.009132230654358864,
-0.04057204723358154,
-0.06464975327253342,
0.0235748328268528,
0.002262942725792527,
-0.008845590986311436,
-0.05491407588124275,
-0.01625295728445053,
0.008272312581539154,
0.005405918695032597,
0.060063526034355164,
-0.033089250326156616,
0.021623674780130386,
-0.023594947531819344,
0.02520415186882019,
0.004596287850290537,
-0.03872146084904671,
-0.008659526705741882,
0.020104987546801567,
-0.026310479268431664,
0.06440837681293488,
0.03878180682659149,
-0.019038891419768333,
0.02840244397521019,
0.08552917093038559,
0.013446907512843609,
-0.019079120829701424,
-0.03588524088263512,
-0.06927621364593506,
-0.013376505114138126,
0.019702687859535217,
0.0011880449019372463,
0.015388010069727898,
-0.024862196296453476,
0.04014962911605835,
-0.024218514561653137,
-0.03331051394343376,
0.019581995904445648,
0.027457037940621376,
0.008493578061461449,
0.004435367416590452,
-0.017308996990323067,
0.02317253313958645,
0.06090835854411125,
0.011626495979726315,
-0.010319018736481667,
-0.012913859449326992,
0.07454635947942734,
-0.011455518193542957,
-0.052983030676841736,
0.02600875310599804,
-0.010339133441448212,
0.05085083469748497,
-0.04972439259290695,
-0.033813390880823135,
-0.024540355429053307,
-0.010992872528731823,
-0.013507253490388393,
0.05608074739575386,
0.0643279179930687,
-0.007382221519947052,
0.036609381437301636,
-0.03658926859498024,
-0.0247616209089756,
-0.018344921991229057,
0.027316231280565262,
-0.015709850937128067,
-0.07490842789411545,
0.01762077957391739,
0.042120903730392456,
-0.04477608948945999,
0.05857501178979874,
-0.018465612083673477,
0.038842152804136276,
-0.07076472789049149,
0.02081907168030739,
-0.07245439291000366,
0.04602322354912758,
-0.013648058287799358,
-0.03216395899653435,
0.0015564016066491604,
0.02180470898747444,
-0.0003138261381536722,
-0.0052550556138157845,
0.01122419536113739,
-0.03379327803850174,
-0.026873700320720673,
-0.009242863394320011,
-0.026571976020932198,
-0.008372887969017029,
0.026813356205821037,
0.05237957835197449,
0.025666797533631325,
0.02723577246069908,
-0.047712888568639755,
-0.041758835315704346,
0.029448427259922028,
-0.05181635543704033,
-0.01728888228535652,
-0.026491515338420868,
-0.0655348151922226,
0.03186223283410072,
-0.042201366275548935,
0.020859302952885628,
-0.04429332911968231,
-0.024158170446753502,
0.02468116022646427,
-0.02500300109386444,
0.11578220129013062,
-0.08359812945127487,
-0.021342063322663307,
0.034175463020801544,
0.0037162546068429947,
0.00944401416927576,
0.004143699537962675,
-0.00926800724118948,
0.06843138486146927,
-0.023916788399219513,
0.01513657160103321,
-0.024620816111564636,
0.025867948308587074,
0.01889808475971222,
-0.07092565298080444,
0.04356918856501579,
0.01901877485215664,
0.020205562934279442,
-0.03854042664170265,
0.03119843639433384,
0.008699757046997547,
0.010892297141253948,
0.01515668723732233,
-0.01609203591942787,
-0.014633695594966412,
0.007286675274372101,
-0.008966281078755856,
-0.009479215368628502,
-0.010298903100192547,
0.043207116425037384,
0.03063521347939968,
0.03457776457071304,
-0.03206338360905647,
-0.020517345517873764,
-0.009378639981150627,
0.003663452574983239,
-0.028784630820155144,
-0.04449447989463806,
0.03986801952123642,
0.03415534645318985,
-0.03845996782183647,
0.002954397350549698,
-0.04525885358452797,
0.030816249549388885,
-0.05756926164031029,
0.0047496650367975235,
0.00952950306236744,
0.05475315451622009,
0.06814977526664734,
0.059580765664577484,
-0.06135088950395584,
-0.029066240414977074,
-0.042201366275548935,
0.05563821643590927,
0.004970930516719818,
0.04618414491415024,
0.07346014678478241,
-0.02884497493505478,
0.013849209062755108,
-0.0007404850912280381,
-0.0327674075961113,
0.005541694816201925,
0.009730652906000614,
0.053988780826330185,
0.006839115638285875,
-0.0671037882566452,
-0.05254049971699715,
-0.010137982666492462,
-0.039123762398958206,
0.06686241179704666,
0.014452660456299782,
-0.0327472947537899,
0.009861401282250881,
0.01892825774848461,
0.03091682493686676,
0.031419701874256134,
0.014392315410077572,
-0.026913931593298912,
0.03164096549153328,
-0.04139676317572594,
0.01769118197262287,
0.020547518506646156,
-0.029488656669855118,
0.0165747981518507,
0.011264425702393055,
0.040049053728580475,
0.03950595110654831,
-0.01900871843099594,
-0.020919647067785263,
0.0519370473921299,
0.03618696704506874,
0.013477080501616001,
-0.008785245940089226,
-0.021342063322663307,
0.006979920901358128,
0.03318982571363449,
-0.0112845404073596,
-0.0075531997717916965,
-0.01665525697171688,
-0.06328193098306656,
0.03359212726354599,
0.012410983443260193,
-0.007397308014333248,
-0.01888802833855152,
0.033330630511045456,
0.029468541964888573,
-0.037172604352235794,
0.014171049930155277,
-0.04598299413919449,
-0.03735363855957985,
0.047350816428661346,
0.0069899782538414,
0.03821858763694763,
-0.029307620599865913,
0.017067616805434227,
0.031902462244033813,
0.01728888228535652,
0.023031726479530334,
0.027457037940621376,
-0.019994355738162994,
-0.012682536616921425,
-0.010479938238859177,
-0.04525885358452797,
0.0020630494691431522,
-0.05052899569272995,
0.02928750589489937,
-0.021784594282507896,
0.03214384242892265,
0.00005453063204186037,
-0.0327472947537899,
-0.02317253313958645,
-0.05447154492139816,
-0.004759722854942083,
-0.002954397350549698,
0.07197163254022598,
-0.08114409446716309,
-0.010087694972753525,
-0.03862088918685913,
-0.011837704107165337,
-0.0327472947537899,
0.00583336316049099,
-0.020959876477718353,
0.03208349645137787,
0.039445605129003525,
0.039767444133758545,
-0.030977170914411545,
0.058454323559999466,
-0.020155275240540504,
0.03703179955482483,
0.03546282649040222,
0.01757049188017845,
-0.031741540879011154,
0.023192647844552994,
0.002617470221593976,
0.07245439291000366,
0.06855207681655884,
-0.005747874267399311,
0.01669548824429512,
0.030615098774433136,
0.024097824469208717,
0.01969262957572937,
0.006949748378247023,
0.004196501336991787,
-0.07434520870447159,
-0.04059216007590294,
0.001751266187056899,
0.005169566720724106,
-0.08001764863729477,
-0.03051452338695526,
-0.058212943375110626,
-0.0076889763586223125,
-0.021241487935185432,
-0.04678759723901749,
-0.03459787741303444,
0.0015388010069727898,
-0.031379472464323044,
-0.001038439222611487,
-0.007326905149966478,
-0.07173024863004684,
0.04883933067321777,
0.036890994757413864,
-0.06943713873624802,
-0.06521297991275787,
0.006195433903485537,
-0.014774501323699951,
-0.08118432015180588,
-0.016725661233067513,
0.039727214723825455,
-0.016484279185533524,
0.017520204186439514,
0.042080674320459366,
-0.004209073260426521,
-0.008493578061461449,
0.016283128410577774,
-0.000792658538557589,
0.05837386101484299,
-0.03152027726173401,
0.007864982821047306,
0.021583443507552147,
0.005591982509940863,
0.015478527173399925,
-0.06388538330793381,
0.031178319826722145,
0.03592547029256821,
-0.012672478333115578,
0.009318294934928417,
-0.003962663933634758,
0.06412676721811295,
0.010439708828926086,
-0.0024716362822800875,
-0.0165747981518507,
-0.047994498163461685,
0.04690828546881676,
0.027215655893087387,
0.009358525276184082,
0.004337306600064039,
-0.03892261162400246,
0.06493137031793594,
-0.0045761726796627045,
0.04071285203099251,
-0.0026778155006468296,
0.0003639566130004823,
-0.019189752638339996,
-0.008061104454100132,
-0.029448427259922028,
0.008936109021306038,
0.015076226554811,
-0.030856478959321976,
-0.007201186381280422,
0.04582207277417183,
0.037293292582035065,
-0.06440837681293488,
-0.017067616805434227,
0.05016692355275154,
-0.0006194805609993637,
-0.0016255470691248775,
-0.008000759407877922,
0.016715602949261665,
0.01098281517624855,
-0.048316340893507004,
-0.025224266573786736,
0.030695559456944466,
0.02044694311916828,
-0.011093447916209698,
-0.00002398483411525376,
-0.06899460405111313,
0.01618255488574505,
-0.05736811086535454,
-0.03119843639433384,
0.04936232045292854,
0.03127889707684517,
0.020959876477718353,
0.014694040641188622,
0.019431134685873985,
0.05527614429593086,
0.0022679714020341635,
0.036046162247657776,
0.02620990388095379,
0.03268694877624512,
0.03805766627192497,
-0.03538236394524574,
0.03560363128781319,
0.039646755903959274,
0.017117904499173164,
0.002025333698838949,
0.07249462604522705,
0.03540248051285744,
0.02608921378850937,
-0.043126657605171204,
0.007975615561008453,
0.06159226968884468,
-0.009655222296714783,
-0.03218407183885574,
0.010600629262626171,
-0.05728764832019806,
-0.008377916179597378,
-0.011857819743454456,
0.023534603416919708,
-0.0056322128511965275,
-0.01252161618322134,
-0.0323651097714901,
-0.0020328767132014036,
-0.012773053720593452,
0.016444049775600433,
0.010359248146414757,
0.002645128406584263,
-0.005979197099804878,
-0.0012402182910591364,
-0.005006131716072559,
-0.007171013858169317,
0.05081060528755188,
0.08979356288909912,
-0.008131506852805614,
-0.01622278429567814,
0.06979920715093613,
0.035804782062768936,
0.01892825774848461,
-0.0491209402680397,
0.010319018736481667,
0.025264497846364975,
-0.08255214989185333,
0.009242863394320011,
0.01705755852162838,
-0.053948551416397095,
0.03375304490327835,
-0.10355225205421448,
-0.011696899309754372,
-0.012451212853193283,
0.04658644646406174,
-0.042281825095415115,
0.04586230218410492,
-0.07120726257562637,
0.05008646473288536,
-0.009594876319169998,
-0.00796555820852518,
-0.05628189817070961,
0.022669656202197075,
0.03526167571544647,
0.010580513626337051,
0.011958394199609756,
-0.048074956983327866,
0.021905284374952316,
-0.029549002647399902,
-0.021362178027629852,
-0.009961976669728756,
-0.054592233151197433,
-0.0008750044507905841,
-0.0013477080501616001,
0.034296151250600815,
-0.0067687127739191055,
-0.0642876848578453,
0.013034549541771412,
0.04065250605344772,
-0.03296855837106705,
-0.04457494243979454,
0.03206338360905647,
-0.0036785388365387917,
-0.006748597603291273,
0.029428310692310333,
-0.0027633043937385082,
0.0026501573156565428,
0.03807778283953667,
-0.022468505427241325,
-0.021462753415107727,
-0.0399484820663929,
-0.0025118663907051086,
-0.019581995904445648,
-0.023554718121886253,
-0.003497503465041518,
0.048517487943172455,
-0.04373010993003845,
-0.05624166876077652,
0.002783419331535697,
-0.005556781310588121,
0.0011289569083601236,
0.03858065605163574,
-0.040049053728580475,
0.013527368195354939,
-0.018797509372234344,
-0.003726312192156911,
0.03411511704325676,
-0.054189931601285934,
-0.031258780509233475,
-0.042161136865615845,
-0.0807015597820282,
-0.02800014242529869,
-0.009604934602975845,
0.019189752638339996,
-0.027034621685743332,
0.023876558989286423,
-0.03240533918142319,
0.05169566720724106,
0.006537389941513538,
0.015267319977283478,
0.022428276017308235,
-0.00010851123806787655,
-0.02508346177637577,
-0.05708649754524231,
-0.018485726788640022,
0.02868405543267727,
0.021704133599996567,
-0.03807778283953667,
-0.04425309970974922,
-0.0051645380444824696,
0.036689843982458115,
0.06448883563280106,
-0.005586953833699226,
-0.018706992268562317,
-0.013547482900321484,
-0.03811801224946976,
-0.017550377175211906,
0.07261531054973602,
0.0074174231849610806,
0.0016506909159943461,
0.053385332226753235,
0.024339204654097557,
-0.02244839072227478,
-0.01805325411260128,
0.025143807753920555,
0.09783957898616791,
-0.007045294623821974,
-0.034698452800512314,
0.048437029123306274,
0.020074814558029175,
-0.024238629266619682,
-0.0007121983217075467,
0.006562533788383007,
-0.08130501210689545,
0.004752179607748985,
-0.019783146679401398,
0.011334828101098537,
-0.019763031974434853,
-0.031902462244033813,
-0.005046362057328224,
-0.042281825095415115,
-0.01110350526869297,
-0.018324807286262512,
0.05756926164031029,
0.06187387928366661,
-0.020195506513118744,
-0.0072414162568748,
0.07929351180791855,
0.027497267350554466,
-0.059178464114665985,
-0.007020150776952505,
0.006914546713232994,
-0.028744399547576904,
0.011958394199609756,
-0.016725661233067513,
0.022589195519685745,
-0.026712780818343163,
-0.011294597759842873,
0.041799064725637436,
-0.05756926164031029,
-0.039365142583847046,
0.020859302952885628,
-0.018717050552368164,
-0.004908070899546146,
0.004641546867787838,
-0.05282210931181908,
0.024319089949131012,
0.018475668504834175,
0.03208349645137787,
-0.09566715359687805,
0.07177048176527023,
0.03477891534566879,
-0.0658968910574913,
0.010610686615109444,
0.026632320135831833,
-0.014553235843777657,
-0.03210361301898956,
-0.01916963793337345,
-0.002788448240607977,
-0.014523062855005264,
0.02520415186882019,
-0.0020366483367979527,
0.0066329361870884895,
0.0719313994050026,
0.03538236394524574,
0.00469434866681695,
-0.009318294934928417,
-0.037293292582035065,
0.015015881508588791,
0.05523591488599777,
-0.06139111891388893,
0.05503476411104202,
-0.06855207681655884,
0.05447154492139816,
0.042643897235393524,
-0.04304619878530502,
0.019803261384367943,
-0.009554646909236908,
-0.028744399547576904,
0.01949147880077362,
-0.028342099860310555,
0.06380492448806763,
0.05097152665257454,
0.0006474530091509223,
0.00852877926081419,
0.01774146966636181,
0.02840244397521019,
-0.011123619973659515,
0.0335518941283226,
0.018626531586050987,
0.029709922149777412,
0.017188306897878647,
-0.053264640271663666,
0.005026246886700392,
-0.037172604352235794,
0.013215584680438042,
0.03323005512356758,
0.047551967203617096,
-0.0045384569093585014,
-0.027336345985531807,
-0.05535660684108734,
0.011636554263532162,
-0.05696580931544304,
0.013074779883027077,
-0.041959986090660095,
0.054632462561130524,
0.023554718121886253,
-0.027135197073221207,
0.05600028485059738,
0.07732223719358444,
0.05692557990550995
] |
17,902 | sklearn.utils._metadata_requests | set_fit_request | Request metadata passed to the ``fit`` method.
Note that this method is only relevant if
``enable_metadata_routing=True`` (see :func:`sklearn.set_config`).
Please see :ref:`User Guide <metadata_routing>` on how the routing
mechanism works.
The options for each parameter are:
- ``True``: metadata is requested, and passed to ``fit`` if provided. The request is ignored if metadata is not provided.
- ``False``: metadata is not requested and the meta-estimator will not pass it to ``fit``.
- ``None``: metadata is not requested, and the meta-estimator will raise an error if the user provides it.
- ``str``: metadata should be passed to the meta-estimator with this given alias instead of the original name.
The default (``sklearn.utils.metadata_routing.UNCHANGED``) retains the
existing request. This allows you to change the request for some
parameters and not others.
.. versionadded:: 1.3
.. note::
This method is only relevant if this estimator is used as a
sub-estimator of a meta-estimator, e.g. used inside a
:class:`~sklearn.pipeline.Pipeline`. Otherwise it has no effect.
Parameters
----------
feature_names : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED
Metadata routing for ``feature_names`` parameter in ``fit``.
sample_weight : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED
Metadata routing for ``sample_weight`` parameter in ``fit``.
Returns
-------
self : object
The updated object.
| def __get__(self, instance, owner):
# we would want to have a method which accepts only the expected args
def func(**kw):
"""Updates the request for provided parameters
This docstring is overwritten below.
See REQUESTER_DOC for expected functionality
"""
if not _routing_enabled():
raise RuntimeError(
"This method is only available when metadata routing is enabled."
" You can enable it using"
" sklearn.set_config(enable_metadata_routing=True)."
)
if self.validate_keys and (set(kw) - set(self.keys)):
raise TypeError(
f"Unexpected args: {set(kw) - set(self.keys)}. Accepted arguments"
f" are: {set(self.keys)}"
)
requests = instance._get_metadata_request()
method_metadata_request = getattr(requests, self.name)
for prop, alias in kw.items():
if alias is not UNCHANGED:
method_metadata_request.add_request(param=prop, alias=alias)
instance._metadata_request = requests
return instance
# Now we set the relevant attributes of the function so that it seems
# like a normal method to the end user, with known expected arguments.
func.__name__ = f"set_{self.name}_request"
params = [
inspect.Parameter(
name="self",
kind=inspect.Parameter.POSITIONAL_OR_KEYWORD,
annotation=owner,
)
]
params.extend(
[
inspect.Parameter(
k,
inspect.Parameter.KEYWORD_ONLY,
default=UNCHANGED,
annotation=Optional[Union[bool, None, str]],
)
for k in self.keys
]
)
func.__signature__ = inspect.Signature(
params,
return_annotation=owner,
)
doc = REQUESTER_DOC.format(method=self.name)
for metadata in self.keys:
doc += REQUESTER_DOC_PARAM.format(metadata=metadata, method=self.name)
doc += REQUESTER_DOC_RETURN
func.__doc__ = doc
return func
| (self: imodels.rule_set.skope_rules.SkopeRulesClassifier, *, feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', sample_weight: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_set.skope_rules.SkopeRulesClassifier | [
0.04379432275891304,
-0.0583290159702301,
-0.019072027876973152,
0.00474898237735033,
-0.0030296463519334793,
-0.017302753403782845,
-0.011557363905012608,
0.010016381740570068,
0.05707339942455292,
0.01092955656349659,
-0.021440574899315834,
0.006496855523437262,
0.051366060972213745,
-0.005379167851060629,
-0.01993764191865921,
0.03751624748110771,
0.030039632692933083,
0.02374253422021866,
0.030020609498023987,
-0.03365428373217583,
0.0191766619682312,
-0.04280504956841469,
-0.028784018009901047,
0.015000792220234871,
0.00846113171428442,
0.06555831432342529,
0.037934787571430206,
-0.04531627893447876,
0.08987158536911011,
-0.006539660505950451,
-0.025150345638394356,
-0.014201764948666096,
0.014658351428806782,
0.06289488822221756,
0.028993288055062294,
-0.031504515558481216,
-0.01078687235713005,
0.022791311144828796,
-0.06266659498214722,
-0.015324207954108715,
-0.03721185773611069,
-0.026634253561496735,
0.04855043813586235,
-0.09656819701194763,
0.05950853228569031,
0.03192305564880371,
-0.005331607069820166,
0.10516725480556488,
-0.019224224612116814,
-0.017664218321442604,
0.013136394321918488,
-0.011214923113584518,
0.01508640218526125,
-0.00506526418030262,
-0.005826243199408054,
0.05737779289484024,
0.0555514432489872,
0.04406066611409187,
0.0595465824007988,
0.027984991669654846,
0.027185963466763496,
0.03471965342760086,
0.03253183886408806,
-0.008361252956092358,
-0.04352797940373421,
-0.03867674246430397,
-0.04645774886012077,
-0.013859324157238007,
0.00862284004688263,
0.03167573735117912,
0.02872694469988346,
-0.01790202409029007,
0.005479046609252691,
0.026672301813960075,
0.021592769771814346,
-0.026348887011408806,
-0.04040796682238579,
-0.05239338055253029,
0.052926067262887955,
-0.04166358336806297,
0.01714104413986206,
-0.01721714250743389,
-0.02709084004163742,
-0.0811203271150589,
-0.009103207848966122,
-0.032151348888874054,
-0.008494424633681774,
-0.04931141808629036,
0.039380647242069244,
0.002953548450022936,
-0.085534006357193,
0.05148020759224892,
-0.01619933359324932,
-0.002996353432536125,
0.009536013938486576,
-0.030629392713308334,
0.0018536965362727642,
-0.058481212705373764,
0.0024315647315233946,
-0.02669132687151432,
0.0006503989570774138,
0.03591819480061531,
0.06639538705348969,
0.07567933201789856,
0.03707868605852127,
-0.050643131136894226,
-0.016684457659721375,
-0.008679913356900215,
-0.011252972297370434,
-0.0037787347100675106,
0.011433704756200314,
-0.010862970724701881,
-0.05958462879061699,
0.01910056546330452,
0.0013031759299337864,
0.0011164983734488487,
-0.019766421988606453,
-0.043337736278772354,
-0.05083337426185608,
-0.0149817680940032,
-0.026805473491549492,
0.011072239838540554,
-0.025359613820910454,
-0.06369391828775406,
0.0007056888425722718,
0.004228187724947929,
0.009578819386661053,
0.013488346710801125,
0.044821642339229584,
-0.07248321920633316,
-0.031618665903806686,
-0.006844052113592625,
-0.03907625377178192,
0.09283939749002457,
0.04398456588387489,
0.016256406903266907,
0.04752311855554581,
0.020451301708817482,
-0.011928340420126915,
0.05901389569044113,
-0.0029749509412795305,
0.020146910101175308,
0.03675527125597,
-0.021326428279280663,
-0.00133409071713686,
-0.05071922764182091,
0.026824498549103737,
-0.00011355229071341455,
0.02574010379612446,
-0.03411087021231651,
0.025911323726177216,
-0.018320562317967415,
0.002834645565599203,
-0.012679806910455227,
-0.0026087299920618534,
0.0018441842403262854,
0.023038629442453384,
-0.004801299888640642,
0.011281508952379227,
-0.018130317330360413,
-0.004772763233631849,
-0.005664534866809845,
-0.012071024626493454,
-0.09146963804960251,
0.03519526496529579,
0.021440574899315834,
-0.006163927260786295,
-0.04858848825097084,
-0.038296252489089966,
0.03555672988295555,
-0.060954391956329346,
-0.027756696566939354,
-0.033825501799583435,
0.006820271257311106,
0.035347457975149155,
0.039304547011852264,
0.01714104413986206,
0.005574168637394905,
0.008594303391873837,
0.028061088174581528,
0.01380225084722042,
-0.05262167379260063,
-0.085534006357193,
-0.035823069512844086,
0.006306611001491547,
0.07126565277576447,
0.006363684311509132,
0.0019000686006620526,
-0.04368017613887787,
0.04562067240476608,
0.02941182628273964,
-0.008366009220480919,
0.053648997098207474,
0.0343581885099411,
-0.031219150871038437,
-0.048093851655721664,
-0.05908999592065811,
0.048816781491041183,
0.01380225084722042,
0.0767066478729248,
0.058405112475156784,
0.008970036171376705,
0.01885324716567993,
0.049045074731111526,
0.006092585623264313,
0.0499582514166832,
0.03641283139586449,
-0.0000930415335460566,
-0.0523553341627121,
-0.013088833540678024,
0.013193467631936073,
-0.02657718025147915,
0.018139829859137535,
-0.008418326266109943,
0.003864344907924533,
-0.010834434069693089,
0.017711779102683067,
-0.015600062906742096,
-0.012042487971484661,
-0.022886434569954872,
0.09276329725980759,
0.048169951885938644,
0.0335591584444046,
0.019690323621034622,
0.02593034878373146,
-0.03112402744591236,
0.05551339313387871,
-0.05186069756746292,
-0.036584049463272095,
-0.0791417807340622,
0.004672884475439787,
0.0006937985308468342,
0.018682027235627174,
0.04387041926383972,
-0.034738678485155106,
-0.01993764191865921,
0.03612746298313141,
0.0385625958442688,
-0.013374200090765953,
-0.00676319794729352,
-0.005940389819443226,
0.04938751459121704,
0.05007239803671837,
0.033064521849155426,
-0.05505680665373802,
-0.01699836179614067,
-0.0045753843151032925,
0.06784124672412872,
0.04288114979863167,
-0.0018679648637771606,
0.04272895306348801,
-0.025759128853678703,
-0.05189874768257141,
-0.0028489138931035995,
-0.031066954135894775,
-0.03401574864983559,
-0.04219626635313034,
0.00033084736787714064,
0.04288114979863167,
-0.015257622115314007,
-0.03072451427578926,
0.012232732027769089,
0.0018643977819010615,
0.04139724001288414,
0.018101779744029045,
0.011776144616305828,
0.04310944303870201,
0.013849811628460884,
-0.05574168637394905,
0.004763250704854727,
-0.009483696892857552,
0.044973839074373245,
-0.001457749749533832,
0.017626168206334114,
-0.018253976479172707,
-0.0523553341627121,
-0.00013309695350471884,
-0.024389367550611496,
-0.043299686163663864,
-0.01234687864780426,
0.05018654465675354,
-0.023666437715291977,
0.043375786393880844,
0.006097341887652874,
-0.01434444822371006,
-0.03068646602332592,
-0.00454922579228878,
0.053648997098207474,
0.012251757085323334,
-0.020926913246512413,
0.011119800619781017,
0.007676372304558754,
-0.0058357552625238895,
-0.042500659823417664,
0.03213232383131981,
-0.0034244039561599493,
-0.07305395603179932,
0.0012615600135177374,
0.0017205252079293132,
-0.011481265537440777,
0.020945938304066658,
-0.001124227070249617,
-0.03304550051689148,
-0.017844950780272484,
0.05281192064285278,
-0.021516671404242516,
0.08104422688484192,
-0.008028324693441391,
-0.011719071306288242,
0.005693071521818638,
0.003828674089163542,
0.04527823254466057,
-0.03357818350195885,
-0.04451725259423256,
-0.0011997304391115904,
-0.002601595828309655,
-0.01390688493847847,
0.018149342387914658,
0.040217723697423935,
0.10410188138484955,
-0.014392009004950523,
0.047408971935510635,
-0.0343581885099411,
-0.007381493225693703,
-0.014021032489836216,
-0.01222322043031454,
-0.0035100141540169716,
-0.004123553168028593,
-0.038334302604198456,
0.0009536013822071254,
-0.031219150871038437,
-0.0039309305138885975,
0.02265813946723938,
0.02473180741071701,
-0.08614278584718704,
0.03127622231841087,
-0.004097394645214081,
-0.023438142612576485,
0.014620303176343441,
-0.012375415302813053,
0.03511916473507881,
-0.01746446080505848,
-0.006130634341388941,
-0.012727368623018265,
-0.03641283139586449,
-0.011167362332344055,
0.0519367940723896,
-0.002316228812560439,
0.0791417807340622,
-0.0233810693025589,
0.02142154984176159,
-0.038144055753946304,
0.052127040922641754,
0.049007028341293335,
0.0843164399266243,
-0.006568197160959244,
-0.013764201663434505,
-0.04592506214976311,
-0.007486127782613039,
-0.07099930942058563,
0.0283654797822237,
-0.04847434163093567,
-0.0036170268431305885,
0.006102097686380148,
0.010939068160951138,
-0.0008459942764602602,
-0.02541668713092804,
0.003650319529697299,
0.025835225358605385,
-0.05654071643948555,
0.00342678208835423,
-0.09839454293251038,
-0.0543338768184185,
0.023970827460289,
0.019157638773322105,
0.002212783321738243,
-0.03998943045735359,
-0.01794007234275341,
-0.05071922764182091,
0.028707921504974365,
0.03213232383131981,
0.022125454619526863,
-0.005031971726566553,
0.011357606388628483,
0.01040638331323862,
-0.045734819024801254,
0.025664005428552628,
0.016180308535695076,
0.03844844922423363,
-0.017749827355146408,
0.021916186437010765,
-0.05277387052774429,
-0.014249325729906559,
0.010682238265872002,
-0.01899592950940132,
-0.06985784322023392,
0.026234740391373634,
-0.010301749221980572,
0.007196004502475262,
-0.042614806443452835,
0.054524123668670654,
-0.05654071643948555,
0.013031760230660439,
0.024484489113092422,
0.03449136018753052,
0.009759551845490932,
0.038258202373981476,
0.027033766731619835,
0.015638111159205437,
0.01924324780702591,
-0.04889288172125816,
-0.049007028341293335,
0.020127886906266212,
-0.024103999137878418,
-0.0017110130283981562,
0.016541773453354836,
0.02868889644742012,
-0.004682397004216909,
0.02941182628273964,
0.006435025949031115,
0.05623632296919823,
0.008684669621288776,
0.019519103690981865,
0.03475769981741905,
0.05167045071721077,
0.006877345032989979,
-0.045011889189481735,
-0.042652856558561325,
-0.0025159858632832766,
0.04135918989777565,
0.008846377022564411,
0.029468899592757225,
-0.04143529012799263,
-0.008556254208087921,
-0.036298684775829315,
-0.015485916286706924,
-0.05646461620926857,
-0.02513132058084011,
0.013288590125739574,
0.051213864237070084,
-0.05638851970434189,
-0.04463139921426773,
-0.0176832415163517,
-0.022163504734635353,
-0.042500659823417664,
-0.05399143695831299,
0.010491993278265,
0.03882893547415733,
0.056883156299591064,
-0.06643343716859818,
0.05323045700788498,
0.030781587585806847,
0.005326850805431604,
0.041701629757881165,
-0.023514240980148315,
-0.052203137427568436,
0.03525233641266823,
-0.050528984516859055,
-0.00606404896825552,
0.03880991414189339,
0.034263063222169876,
0.002810864942148328,
-0.06262854486703873,
-0.020945938304066658,
-0.0279659666121006,
0.03475769981741905,
0.016760556027293205,
0.0105871157720685,
-0.06650953739881516,
-0.03249378874897957,
0.030229877680540085,
-0.06978174299001694,
-0.028517676517367363,
-0.010301749221980572,
-0.02324789948761463,
0.021706916391849518,
-0.013298102654516697,
0.020679594948887825,
-0.07122760266065598,
-0.02193520963191986,
0.016912750899791718,
-0.024560587480664253,
0.040902603417634964,
0.051328010857105255,
-0.017169581726193428,
-0.06635734438896179,
-0.013383712619543076,
-0.0020808011759072542,
-0.022943507879972458,
-0.00755271315574646,
-0.009512233547866344,
0.06502562761306763,
0.05414363369345665,
0.02813718654215336,
-0.017416900023818016,
0.05323045700788498,
0.04531627893447876,
0.01556201372295618,
-0.01895788125693798,
-0.014439570717513561,
-0.018729588016867638,
-0.032950375229120255,
0.020242033526301384,
0.041891876608133316,
0.015485916286706924,
-0.04999629780650139,
-0.04691433534026146,
-0.015780795365571976,
0.0017312264535576105,
-0.007072345819324255,
-0.024788880720734596,
-0.004270992707461119,
-0.00486550759524107,
0.060840245336294174,
-0.004416054580360651,
-0.017331289127469063,
-0.07739153504371643,
0.008075886406004429,
-0.05570363998413086,
-0.01408761739730835,
0.06845003366470337,
0.01278444193303585,
0.053610946983098984,
-0.05163240432739258,
0.011671510525047779,
-0.0009250647271983325,
0.012917612679302692,
-0.018691537901759148,
-0.01296517439186573,
0.028917189687490463,
-0.01114833727478981,
-0.00615441519767046,
-0.010187601670622826,
0.017331289127469063,
0.01579982042312622,
0.06156317517161369,
-0.02425619587302208,
-0.011471753939986229,
0.046571895480155945,
0.00538392411544919,
0.024712782353162766,
0.040331870317459106,
-0.0651017278432846,
0.03163768723607063,
-0.00599270686507225,
-0.04398456588387489,
0.023514240980148315,
-0.013469322584569454,
0.02265813946723938,
-0.09139353781938553,
-0.0627046450972557,
0.03852454572916031,
0.041701629757881165,
0.015590550377964973,
-0.012261268682777882,
0.01031126081943512,
0.053648997098207474,
-0.01815885305404663,
0.03032500110566616,
0.016361040994524956,
-0.020108861848711967,
-0.026881571859121323,
0.02549278549849987,
0.02897426299750805,
-0.03791576251387596,
0.07731543481349945,
0.05338265374302864,
0.015609575435519218,
-0.046647991985082626,
-0.09420915693044662,
-0.008656132034957409,
0.007595518603920937,
-0.0032056227792054415,
0.02749035507440567,
-0.035823069512844086,
0.05829096585512161,
0.017083970829844475,
-0.018168365582823753,
-0.032741107046604156,
-0.060079265385866165,
0.026786450296640396,
-0.046571895480155945,
0.02178301475942135,
-0.022087406367063522,
-0.06746076047420502,
0.0031081223860383034,
-0.014648839831352234,
0.04295724630355835,
-0.01698884926736355,
0.00735295657068491,
-0.03144744411110878,
-0.07012418657541275,
-0.03519526496529579,
-0.03643185272812843,
0.024541562423110008,
0.044859692454338074,
-0.05589388310909271,
-0.03220842406153679,
0.03424404188990593,
-0.02749035507440567,
-0.040255773812532425,
0.020089836791157722,
0.01187126711010933,
0.009987845085561275,
-0.007681128568947315,
0.002782328287139535,
-0.04600116237998009,
0.022753262892365456,
0.016646409407258034,
-0.022277651354670525,
-0.004090260248631239,
-0.02081276662647724,
0.011928340420126915,
-0.024541562423110008,
0.026995718479156494,
0.021193256601691246,
-0.030914759263396263,
0.05421973019838333,
0.049806054681539536,
-0.09816624969244003,
-0.02029910683631897,
-0.032303545624017715,
0.008675157092511654,
0.00588331650942564,
-0.056921206414699554,
0.014563229866325855,
0.00900808535516262,
-0.07012418657541275,
-0.010482481680810452,
-0.05254557728767395,
0.01212809793651104,
-0.025150345638394356,
0.04280504956841469,
0.001983300782740116,
0.0923067107796669,
-0.01692226342856884,
0.07069491595029831,
0.02469375729560852,
-0.06574855744838715,
0.01666543260216713,
0.002104581566527486,
0.009536013938486576,
-0.021117158234119415,
0.028308406472206116,
-0.06612904369831085,
0.037820640951395035,
-0.0039689792320132256,
-0.04280504956841469,
0.08781693875789642,
-0.012337367050349712,
-0.037744540721178055,
0.07716323435306549,
-0.03719283267855644,
0.005027215462177992,
0.05886169895529747,
-0.015875916928052902,
-0.015114938840270042,
-0.0034648310393095016,
0.030705489218235016,
-0.04550652578473091,
-0.02494107559323311,
-0.0048441048711538315,
0.058481212705373764,
-0.031942080706357956,
-0.0019749775528907776,
0.021630818024277687,
-0.038220152258872986,
-0.054524123668670654,
0.07404322177171707,
0.056046079844236374,
0.015733234584331512,
0.008703693747520447,
-0.00285129202529788,
0.015666648745536804,
0.021212279796600342,
-0.018425196409225464,
0.030458170920610428,
-0.047408971935510635,
-0.02733815833926201,
0.03445331007242203,
-0.0069439304061234,
0.04219626635313034,
-0.04877873510122299,
0.051404111087322235,
0.00011845703556900844,
-0.00758125027641654,
0.027071816846728325,
0.00021714645845349878,
-0.011443217284977436,
-0.053725093603134155,
0.00026307269581593573,
-0.08210960030555725,
0.057758282870054245,
0.024560587480664253,
-0.009017596952617168,
0.0002954737574327737,
-0.08393594622612,
-0.07663055509328842,
0.030458170920610428,
-0.007077101618051529,
-0.0026134862564504147,
0.018063731491565704,
0.005811974871903658,
-0.014277862384915352,
0.007776251062750816,
0.007681128568947315,
0.007029540371149778,
-0.02005178853869438,
0.004784653428941965,
-0.029697192832827568,
0.040940653532743454,
0.007495639845728874,
0.04132114350795746,
-0.04307139292359352,
0.08020715415477753,
0.009635892696678638,
-0.006487343460321426,
-0.007191248703747988,
0.010168577544391155,
0.028745969757437706,
0.014392009004950523,
-0.00817100889980793,
0.04040796682238579,
-0.03900015726685524,
-0.006986735388636589,
-0.0004375627322588116,
-0.02233472466468811,
-0.03285525366663933,
-0.0012817734386771917,
-0.01938593201339245,
0.08385985344648361,
0.006634782999753952,
-0.012461026199162006,
-0.00520319165661931,
0.036907464265823364,
-0.08134862035512924,
0.006092585623264313,
-0.006002219393849373,
0.024864979088306427,
0.05014849454164505,
-0.042652856558561325,
0.05893779918551445,
-0.03753527253866196,
0.04383237287402153,
0.020907890051603317,
0.02218252792954445,
0.008175764232873917,
0.00574538903310895,
0.07423347234725952,
-0.01354542002081871,
0.028042064979672432,
0.015971040353178978,
0.005997463129460812,
0.0037430638913065195,
0.0215737447142601,
-0.05429583042860031,
0.0036645878572016954,
0.014953231438994408,
0.033749405294656754,
-0.026025470346212387,
-0.05117581784725189,
-0.020451301708817482,
0.0024018390104174614,
-0.015114938840270042,
0.021250329911708832,
0.02705279178917408,
0.020108861848711967,
0.05638851970434189
] |
17,905 | imodels.rule_set.slipper_util | SlipperBaseEstimator | An estimator that supports building rules as described in
A Simple, Fast, and Effective Rule Learner (1999). Intended to be used
as part of the SlipperRulesClassifier.
| class SlipperBaseEstimator(BaseEstimator, ClassifierMixin):
""" An estimator that supports building rules as described in
A Simple, Fast, and Effective Rule Learner (1999). Intended to be used
as part of the SlipperRulesClassifier.
"""
def __init__(self):
self.Z = None
self.rule = None
self.D = None
def _make_candidate(self, X, y, curr_rule, feat, A_c):
""" Make candidate rules for grow routine to compare scores"""
# make candidate rules
candidates = [curr_rule.copy() for _ in range(3)]
candidates = [
x + [{
'feature': int(feat),
'operator': operator,
'pivot': float(A_c)}]
for x, operator in zip(candidates, ['>', '<', '=='])
]
# pick best condition
Zs = [self._grow_rule_obj(X, y, r) for r in candidates]
return candidates[Zs.index(max(Zs))]
def _condition_classify(self, X, condition):
"""
Helper function to make classifications for a condition
in a rule
"""
logic = 'X[:, {}] {} {}'.format(
condition['feature'],
condition['operator'],
condition['pivot']
)
output = np.where(eval(logic))
return output[0]
def _rule_predict(self, X, rule):
""" return all indices for which the passed rule holds on X """
preds = np.zeros(X.shape[0])
positive_cases = set(range(X.shape[0]))
for condition in rule:
outputs = set(list(self._condition_classify(X, condition)))
positive_cases = positive_cases.intersection(outputs)
preds[list(positive_cases)] = 1
return preds
def _get_design_matrices(self, X, y, rule):
""" produce design matrices used in most equations"""
preds = self._rule_predict(X, rule)
W_plus_idx = np.where((preds == 1) & (y == 1))
W_minus_idx = np.where((preds == 1) & (y == 0))
return np.sum(self.D[W_plus_idx]), np.sum(self.D[W_minus_idx])
def _grow_rule_obj(self, X, y, rule):
""" equation to maximize in growing rule
equation 6 from Cohen & Singer (1999)
"""
W_plus, W_minus = self._get_design_matrices(X, y, rule)
# C_R = self._sample_weight(W_plus, W_minus)
return np.sqrt(W_plus) - np.sqrt(W_minus)
def _sample_weight(self, plus, minus):
""" Calculate learner sample weight
in paper this is C_R, which is confidence of learner
"""
return 0.5 * np.log((plus + (1 / (2 * len(self.D)))) /
(minus + 1 / (2 * len(self.D))))
def _grow_rule(self, X, y):
""" Starts with empty conjunction of conditions and
greedily adds rules to maximize Z_tilde
"""
stop_condition = False
features = list(range(X.shape[1]))
# rule is stored as a list of dictionaries, each dictionary is a condition
curr_rule = []
while not stop_condition:
candidate_rule = curr_rule.copy()
for feat in features:
try:
pivots = np.percentile(X[:, feat], range(0, 100, 4),
method='linear')
except:
pivots = np.percentile(X[:, feat], range(0, 100, 4), # deprecated
interpolation='midpoint')
# get a list of possible rules
feature_candidates = [
self._make_candidate(X, y, curr_rule, feat, A_c)
for A_c in pivots
]
# get max Z_tilde and update candidate accordingly
tildes = [self._grow_rule_obj(X, y, r) for r in feature_candidates]
if max(tildes) > self._grow_rule_obj(X, y, candidate_rule):
candidate_rule = feature_candidates[
tildes.index(max(tildes))
]
preds = self._rule_predict(X, candidate_rule)
negative_coverage = np.where((preds == y) & (y == 0))
if self._grow_rule_obj(X, y, curr_rule) >= self._grow_rule_obj(X, y, candidate_rule) or \
len(negative_coverage) == 0:
stop_condition = True
else:
curr_rule = candidate_rule.copy()
return curr_rule
def _prune_rule(self, X, y, rule):
""" Remove conditions from greedily built rule until
objective does not improve
"""
stop_condition = False
curr_rule = rule.copy()
while not stop_condition:
candidate_rules = []
if len(curr_rule) == 1:
return curr_rule
candidate_rules = [
self._pop_condition(curr_rule, condition)
for condition in curr_rule
]
prune_objs = [self._prune_rule_obj(X, y, rule) for x in candidate_rules]
best_prune = candidate_rules[
prune_objs.index(min(prune_objs))
]
if self._prune_rule_obj(X, y, rule) > self._prune_rule_obj(X, y, rule):
curr_rule = best_prune.copy()
else:
stop_condition = True
return curr_rule
def _pop_condition(self, rule, condition):
"""
Remove a condition from an existing Rule object
"""
temp = rule.copy()
temp.remove(condition)
return temp
def _make_default_rule(self, X, y):
"""
Make the default rule that is true for every observation
of data set. Without default rule a SlipperBaseEstimator would never
predict negative
"""
default_rule = []
features = random.choices(
range(X.shape[1]),
k=random.randint(2, 8)
)
default_rule.append({
'feature': str(features[0]),
'operator': '>',
'pivot': str(min(X[:, features[0]]))
})
for i, x in enumerate(features):
if i % 2:
default_rule.append({
'feature': x,
'operator': '<',
'pivot': str(max(X[:, x]))
})
else:
default_rule.append({
'feature': x,
'operator': '>',
'pivot': str(min(X[:, x]))
})
return default_rule
def _prune_rule_obj(self, X, y, rule):
"""
objective function for prune rule routine
eq 7 from Cohen & Singer (1999)
"""
V_plus, V_minus = self._get_design_matrices(X, y, rule)
C_R = self._sample_weight(V_plus, V_minus)
return (1 - V_plus - V_minus) + V_plus * np.exp(-C_R) \
+ V_minus * np.exp(C_R)
def _eq_5(self, X, y, rule):
"""
equation 5 from Cohen & Singer (1999)
used to compare the learned rule with a default rule
"""
W_plus, W_minus = self._get_design_matrices(X, y, rule)
return 1 - np.square(np.sqrt(W_plus) - np.sqrt(W_minus))
def _set_rule_or_default(self, X, y, learned_rule):
"""
Compare output of eq 5 between learned rule and default rule
return rule that minimizes eq 5
"""
rules = [self._make_default_rule(X, y), learned_rule]
scores = [self._eq_5(X, y, rule) for rule in rules]
self.rule = rules[scores.index(min(scores))]
def _make_feature_dict(self, num_features, features):
"""
Map features to place holder names
"""
if features is None:
new_feats = ['X_' + str(i) for i in range(num_features)]
else:
new_feats = features
self.feature_dict = {
old_feat: new_feat for old_feat, new_feat in enumerate(new_feats)
}
def predict_proba(self, X):
proba = self.predict(X)
proba = proba.reshape(-1, 1)
proba = np.hstack([
np.zeros(proba.shape), proba
])
return proba
def predict(self, | () | [
0.017036080360412598,
-0.02012515440583229,
-0.015660880133509636,
-0.0042795455083251,
0.0005115314270369709,
-0.04683896154165268,
-0.04154340922832489,
-0.04724946990609169,
-0.004292374011129141,
-0.019724909216165543,
-0.028673982247710228,
0.04012715443968773,
0.01126844435930252,
0.04614109545946121,
-0.05673220381140709,
0.019663332030177116,
0.01700529269874096,
0.002717049792408943,
0.03893668204545975,
0.03109597973525524,
-0.005798425059765577,
-0.05258607119321823,
-0.006896534003317356,
0.05381759628653526,
0.02012515440583229,
0.004312899429351091,
-0.0075071644969284534,
-0.018164977431297302,
-0.02112063579261303,
-0.004158958792686462,
-0.09868612140417099,
0.009221035055816174,
-0.02994655631482601,
-0.03760252892971039,
0.02512308768928051,
-0.04811153560876846,
0.03294326364994049,
0.047085266560316086,
-0.04466326907277107,
-0.022926870733499527,
-0.028550829738378525,
-0.050451431423425674,
-0.004723407328128815,
-0.0104474276304245,
-0.0389777310192585,
-0.004212838131934404,
-0.03433899208903313,
0.06802117079496384,
0.04105079919099808,
-0.0552954263985157,
0.011093977838754654,
-0.0628487691283226,
0.06625598669052124,
0.04454011470079422,
-0.02545149438083172,
0.028838185593485832,
0.029741302132606506,
0.023152649402618408,
0.06695385277271271,
-0.0818963423371315,
0.02742193266749382,
0.019612018018960953,
0.007394275162369013,
-0.024219971150159836,
-0.01927335001528263,
-0.03374375402927399,
-0.052750274538993835,
-0.006737462244927883,
0.024548377841711044,
0.0209359060972929,
-0.024404698982834816,
-0.031588587909936905,
0.060303620994091034,
-0.004538679029792547,
0.01682056486606598,
-0.04109184816479683,
-0.02567727491259575,
-0.09589466452598572,
0.03550894185900688,
-0.058415286242961884,
0.0041409991681575775,
0.012643645517528057,
0.013864906504750252,
-0.06395713984966278,
0.00237068347632885,
-0.023255277425050735,
0.07840702682733536,
0.00845133326947689,
0.055008068680763245,
-0.030295489355921745,
0.0015689102001488209,
0.04651055485010147,
0.04794733226299286,
0.030623896047472954,
0.04995882138609886,
0.05775847285985947,
-0.02438417449593544,
-0.016297167167067528,
0.027811914682388306,
-0.045935843139886856,
0.0028402020689100027,
0.06325928121805191,
-0.06317717581987381,
0.048932552337646484,
-0.019139934331178665,
0.004202575422823429,
-0.022331634536385536,
0.04679790884256363,
-0.0189654678106308,
-0.06555812060832977,
-0.08349732309579849,
0.006106306333094835,
-0.048932552337646484,
-0.005541857797652483,
-0.014367778785526752,
-0.02668301947414875,
-0.08210159838199615,
0.0031583458185195923,
-0.011104241013526917,
-0.003263538470491767,
-0.003348205704241991,
0.0031429517548531294,
-0.04310333728790283,
0.009200509637594223,
-0.02641618810594082,
-0.0332716703414917,
0.03146543726325035,
0.05217556282877922,
0.037705156952142715,
-0.05188820883631706,
-0.04938410967588425,
-0.008287129923701286,
-0.025820951908826828,
0.009215904399752617,
-0.03589892387390137,
-0.05229871720075607,
0.0014265151694417,
0.0024463708978146315,
0.003481620689854026,
-0.02130536362528801,
0.08883392810821533,
0.005906183738261461,
0.008215290494263172,
-0.02830452471971512,
0.012253663502633572,
-0.02323475107550621,
0.06026257202029228,
0.03893668204545975,
-0.00016516531468369067,
-0.004569467157125473,
-0.027134576812386513,
-0.0071428390219807625,
0.0031044664792716503,
-0.06288982182741165,
0.08793080598115921,
0.017662106081843376,
-0.026518816128373146,
-0.04503272473812103,
0.0034149133134633303,
-0.034482669085264206,
-0.03782831132411957,
-0.04211811721324921,
-0.05775847285985947,
0.030398115515708923,
0.013310721144080162,
-0.012346027418971062,
0.010113890282809734,
-0.00402810936793685,
-0.027524560689926147,
0.034154262393713,
-0.0069478475488722324,
-0.05640379711985588,
-0.06178145110607147,
0.03975769877433777,
-0.04154340922832489,
0.08875182271003723,
0.020484348759055138,
0.01046795304864645,
-0.008210159838199615,
0.022701092064380646,
0.02438417449593544,
-0.027360357344150543,
-0.02516413852572441,
-0.03883405402302742,
-0.0011802103836089373,
0.02041250839829445,
0.059605758637189865,
-0.008210159838199615,
-0.012869425117969513,
0.05644484609365463,
-0.07869438081979752,
-0.07360407710075378,
0.035591043531894684,
0.0238299872726202,
0.009046569466590881,
-0.00931853149086237,
0.017323436215519905,
0.051190346479415894,
0.05607539042830467,
-0.034154262393713,
-0.01074504666030407,
0.017169496044516563,
0.07052527368068695,
-0.00402810936793685,
-0.03479054942727089,
0.007840702310204506,
-0.03068547137081623,
0.018729425966739655,
-0.03571419417858124,
0.011853418312966824,
-0.02245478704571724,
-0.0005942744319327176,
0.015147744677960873,
0.014285678043961525,
0.05287342891097069,
-0.021100109443068504,
0.06555812060832977,
0.013495449908077717,
-0.005895921029150486,
-0.01458329614251852,
-0.022803718224167824,
-0.03951139375567436,
-0.041112374514341354,
0.0436369962990284,
0.028468728065490723,
-0.01730291172862053,
0.03799251466989517,
0.03641205653548241,
0.06399819254875183,
-0.05016407370567322,
0.017015555873513222,
-0.0949915423989296,
0.05591118708252907,
-0.042077068239450455,
0.019027044996619225,
-0.002389926230534911,
-0.03942929208278656,
0.011699477210640907,
-0.051970310509204865,
-0.004289808217436075,
-0.02305002324283123,
-0.05332498624920845,
0.0004445031809154898,
0.0029864455573260784,
-0.005316078197211027,
0.04482747241854668,
0.10862041264772415,
-0.010827148333191872,
0.020094364881515503,
-0.012181824073195457,
0.030952300876379013,
-0.05718376114964485,
-0.05525437369942665,
-0.015435099601745605,
-0.03635048121213913,
-0.06379293650388718,
0.021592719480395317,
-0.015948234125971794,
0.04786523059010506,
-0.03472897410392761,
0.006460369098931551,
0.0020499741658568382,
-0.010401246137917042,
0.02075117826461792,
-0.034072160720825195,
0.025656748563051224,
0.019037308171391487,
0.0052545019425451756,
0.005813819356262684,
-0.015342735685408115,
0.06744646281003952,
0.01744658872485161,
-0.045935843139886856,
0.010632156394422054,
-0.05944155529141426,
0.048932552337646484,
-0.03175279125571251,
-0.015055379830300808,
0.033374298363924026,
-0.026929322630167007,
0.02926921844482422,
-0.03378480672836304,
-0.023850513622164726,
0.007604660466313362,
-0.011032401584088802,
0.0018280433723703027,
-0.029597625136375427,
-0.02300897240638733,
0.023891564458608627,
0.015773769468069077,
-0.018370231613516808,
-0.009215904399752617,
0.0514366514980793,
0.0002426166320219636,
0.09646937251091003,
0.007178758271038532,
0.020740915089845657,
-0.0322248749434948,
0.015404311940073967,
-0.014203576371073723,
0.04638740047812462,
-0.006511682644486427,
0.06206880509853363,
-0.04123552516102791,
-0.02594410441815853,
0.0018613970605656505,
0.009457077831029892,
-0.02957710064947605,
0.02397366613149643,
-0.036514684557914734,
0.0437190979719162,
0.02263951487839222,
0.006537339650094509,
-0.0041948785074055195,
-0.025882527232170105,
-0.04384225234389305,
0.003266104031354189,
-0.026518816128373146,
0.06859588623046875,
0.04610004648566246,
-0.02245478704571724,
-0.0019127106061205268,
-0.024999935179948807,
-0.009231298230588436,
-0.006034467369318008,
-0.04020925611257553,
0.021777447313070297,
-0.028858710080385208,
-0.028673982247710228,
-0.023357903584837914,
-0.009426289238035679,
-0.006444975268095732,
0.021613245829939842,
0.024651004001498222,
-0.008281998336315155,
0.009682856500148773,
0.04236442223191261,
0.009313399903476238,
0.006167882587760687,
-0.014408829621970654,
0.04835784062743187,
0.07516401261091232,
-0.012807848863303661,
0.02912554144859314,
0.027627186849713326,
-0.05492596700787544,
0.0005987643962725997,
0.0351189561188221,
0.00010607462172629312,
0.029556574299931526,
-0.001147498027421534,
0.016348479315638542,
0.032183825969696045,
0.04006557911634445,
0.02438417449593544,
-0.029618151485919952,
-0.019334925338625908,
-0.01670767553150654,
0.044704318046569824,
-0.050451431423425674,
0.02705247513949871,
-0.03842354565858841,
-0.04160498455166817,
0.0838257297873497,
0.02346053160727024,
-0.040373459458351135,
-0.015660880133509636,
0.010083102621138096,
0.021736398339271545,
-0.06588652729988098,
-0.021469566971063614,
-0.05455651134252548,
0.010129284113645554,
-0.015999548137187958,
-0.012561543844640255,
0.0218184981495142,
-0.004879913758486509,
0.014921965077519417,
0.03856722638010979,
0.02709352597594261,
0.05057458207011223,
0.03193752095103264,
-0.03628890588879585,
0.01686161570250988,
0.008389757014811039,
-0.04495062306523323,
-0.011750791221857071,
0.00014127246686257422,
0.08029536157846451,
-0.04720841720700264,
0.07680604606866837,
-0.002791454317048192,
0.004330859053879976,
-0.03156806528568268,
-0.025061512365937233,
0.02171587198972702,
-0.0013149083824828267,
0.04909675568342209,
-0.056157492101192474,
0.009513522498309612,
-0.044416964054107666,
-0.0035021461080759764,
0.03130123391747475,
0.0032994579523801804,
-0.01734396256506443,
-0.051970310509204865,
0.048522043973207474,
0.06773381680250168,
-0.01700529269874096,
0.10500793904066086,
-0.014901439659297466,
0.028550829738378525,
0.005993416532874107,
-0.00778938876464963,
-0.04634635150432587,
-0.01600981131196022,
0.06022151932120323,
0.038854580372571945,
0.06403924524784088,
-0.015106693841516972,
0.05829213187098503,
-0.003648389596492052,
0.030028657987713814,
-0.008441070094704628,
-0.040188729763031006,
-0.027298780158162117,
-0.05911314859986305,
-0.012869425117969513,
-0.041481830179691315,
0.012058671563863754,
-0.04298018664121628,
-0.051641903817653656,
-0.03760252892971039,
-0.040927644819021225,
-0.050410378724336624,
-0.02986445464193821,
-0.020658813416957855,
0.011483960784971714,
0.002203914802521467,
0.009528916329145432,
0.018021300435066223,
0.013546762987971306,
0.03123965673148632,
0.024815207347273827,
-0.03749990463256836,
-0.002138490090146661,
-0.00039158613071776927,
-0.025143614038825035,
-0.11945781856775284,
0.0025130785070359707,
0.03497527912259102,
0.02668301947414875,
0.03797198832035065,
0.053489189594984055,
-0.021223261952400208,
0.03565261885523796,
-0.00989324226975441,
-0.014254889450967312,
-0.017210546880960464,
-0.006706674117594957,
0.04314438998699188,
0.013577551580965519,
-0.007717549800872803,
0.0390598326921463,
-0.07073052227497101,
0.025985155254602432,
-0.002822242444381118,
0.01938623934984207,
-0.02768876403570175,
-0.01719002239406109,
0.004751629661768675,
-0.05094404146075249,
-0.03234802931547165,
-0.01511695608496666,
-0.046674758195877075,
0.04712631553411484,
0.00030499460990540683,
-0.0032147907186299562,
0.03934719040989876,
0.011309495195746422,
0.042857032269239426,
-0.02645723894238472,
-0.012161298654973507,
-0.002663170453161001,
-0.005377654451876879,
-0.017795521765947342,
-0.014059898443520069,
-0.03165016695857048,
-0.032409604638814926,
0.007784257642924786,
-0.041789710521698,
-0.018780739977955818,
0.05484386533498764,
0.06568127870559692,
-0.033559028059244156,
0.03372323140501976,
0.026888271793723106,
-0.0032019622158259153,
0.07684709131717682,
-0.062233008444309235,
0.012274188920855522,
0.014244627207517624,
-0.10566475242376328,
-0.019478604197502136,
0.041153423488140106,
-0.009672594256699085,
-0.03589892387390137,
0.029002388939261436,
-0.04696211218833923,
0.006229458376765251,
0.006368005182594061,
-0.0589899979531765,
0.05455651134252548,
0.007856096141040325,
0.003561156801879406,
0.0238299872726202,
0.04421170800924301,
0.04183076322078705,
-0.004715710412710905,
-0.005495675373822451,
0.04191286489367485,
-0.024589428678154945,
-0.014573032967746258,
-0.025595173239707947,
0.03226592764258385,
0.072331503033638,
0.0247536301612854,
-0.016276640817523003,
0.06424450129270554,
-0.016215065494179726,
0.03290221467614174,
-0.020094364881515503,
0.027996644377708435,
0.07541031390428543,
0.015845607966184616,
0.040558189153671265,
0.008584748022258282,
-0.04191286489367485,
-0.00780991418287158,
-0.01755947805941105,
0.021510617807507515,
0.017764732241630554,
0.021797973662614822,
-0.022557413205504417,
0.002935132011771202,
0.03427741676568985,
0.014963015913963318,
0.026395663619041443,
-0.052380818873643875,
0.009421157650649548,
0.0008441070094704628,
0.04523798078298569,
-0.023501582443714142,
0.015311948023736477,
0.12101775407791138,
0.03115755505859852,
0.01239734049886465,
0.03390795737504959,
0.03464687243103981,
0.047003164887428284,
-0.05509017035365105,
-0.0610014870762825,
0.0388956293463707,
-0.06884218752384186,
-0.017651842907071114,
0.0247536301612854,
-0.015455625019967556,
0.03854670003056526,
-0.04938410967588425,
0.015363261103630066,
0.02889976091682911,
0.00047208418254740536,
-0.007265991065651178,
-0.005665010306984186,
-0.05225766450166702,
-0.01557877752929926,
0.015352997928857803,
-0.0009941989555954933,
-0.0495072603225708,
0.0026477763894945383,
0.015794293954968452,
-0.0034687924198806286,
0.026539340615272522,
-0.07229045778512955,
0.002776060253381729,
0.002765797544270754,
-0.036740463227033615,
0.07036107033491135,
-0.0007754752296023071,
-0.010149809531867504,
-0.0237889364361763,
0.042487576603889465,
-0.018657587468624115,
-0.07068947702646255,
-0.025595173239707947,
0.04310333728790283,
-0.02120273746550083,
-0.020484348759055138,
0.03483160212635994,
0.01927335001528263,
-0.024096818640828133,
-0.003225053194910288,
-0.0032943265978246927,
-0.004543810151517391,
0.019109146669507027,
-0.015650616958737373,
-0.02830452471971512,
-0.02471258118748665,
0.020320145413279533,
-0.04220021888613701,
-0.0009916332783177495,
0.01774420775473118,
0.01678977720439434,
-0.031178081408143044,
-0.03741780295968056,
-0.009138934314250946,
-0.04298018664121628,
0.020730653777718544,
0.024466276168823242,
-0.037335701286792755,
0.0026477763894945383,
0.0090619632974267,
0.01682056486606598,
0.021839024499058723,
0.0003980003239121288,
0.0002655473363120109,
0.020669076591730118,
-0.0839899331331253,
-0.016984768211841583,
0.0029274350963532925,
0.021695347502827644,
-0.014768024906516075,
0.02341948077082634,
-0.01874995231628418,
0.00037266427534632385,
0.011278706602752209,
0.0686369314789772,
0.034113213419914246,
-0.03737675026059151,
-0.04215916991233826,
-0.050040923058986664,
-0.01815471611917019,
0.04872729629278183,
0.004382172599434853,
-0.04679790884256363,
-0.019098883494734764,
0.011596850119531155,
0.037150971591472626,
0.06596863269805908,
0.020135415717959404,
-0.01605086214840412,
-0.0014714145800098777,
-0.05254502221941948,
-0.01506564300507307,
0.0004756119742523879,
0.027852965518832207,
0.012541018426418304,
0.04466326907277107,
0.013320984318852425,
-0.05020512640476227,
-0.015835344791412354,
-0.0014367778785526752,
0.04146130755543709,
0.007353224325925112,
0.007974117062985897,
-0.000961486657615751,
0.05599328875541687,
-0.017179759219288826,
-0.024671530351042747,
0.045114826411008835,
-0.02120273746550083,
-0.01124791894108057,
-0.015732718631625175,
-0.004338555969297886,
0.031219132244586945,
-0.06247931346297264,
-0.0019576100166887045,
0.003404650604352355,
-0.050081972032785416,
-0.035591043531894684,
0.07118208706378937,
0.035591043531894684,
-0.011422384530305862,
-0.021900599822402,
0.08440043777227402,
-0.003622732823714614,
-0.009744432754814625,
-0.010950299911201,
-0.02401471696794033,
-0.0033097206614911556,
-0.031958047300577164,
0.026559866964817047,
0.04905570298433304,
-0.0065886531956493855,
0.0007799651357345283,
-0.035816822201013565,
-0.07606712728738785,
0.038033563643693924,
0.031178081408143044,
-0.056978508830070496,
0.028058219701051712,
-0.019098883494734764,
-0.029987607151269913,
0.00985732302069664,
0.005942102987319231,
0.07508190721273422,
-0.0533660389482975,
0.007425062824040651,
0.03953192010521889,
-0.07171574234962463,
-0.0030454560182988644,
0.06067308038473129,
-0.006824695039540529,
-0.048563092947006226,
0.014316465705633163,
0.010113890282809734,
-0.012058671563863754,
0.011637900955975056,
-0.04273388162255287,
0.002611856907606125,
0.04076344147324562,
0.02926921844482422,
-0.00982140377163887,
-0.030295489355921745,
-0.04150235652923584,
0.019406763836741447,
0.04532008245587349,
-0.09252849966287613,
0.0032866294495761395,
-0.04072239249944687,
0.022742142900824547,
0.056978508830070496,
0.0006436636904254556,
0.015650616958737373,
0.01641005650162697,
-0.010426902212202549,
0.02508203685283661,
-0.055418577045202255,
0.014963015913963318,
0.07237255573272705,
0.0004666321037802845,
-0.01678977720439434,
-0.028838185593485832,
-0.03875195235013962,
0.0016266378806903958,
0.0704842209815979,
-0.007106919307261705,
0.02538991905748844,
0.011401859112083912,
-0.042077068239450455,
0.03561156615614891,
-0.006460369098931551,
0.04638740047812462,
0.0007363486802205443,
0.026477765291929245,
0.012499967589974403,
0.03879300504922867,
-0.061945654451847076,
-0.01412147469818592,
-0.06621493399143219,
-0.01074504666030407,
-0.04025030881166458,
0.010385852307081223,
0.05599328875541687,
0.02994655631482601,
0.023357903584837914,
0.03565261885523796,
0.04675685986876488
] |
17,907 | imodels.rule_set.slipper_util | __init__ | null | def __init__(self):
self.Z = None
self.rule = None
self.D = None
| (self) | [
0.007955384440720081,
0.05947031453251839,
-0.00008116792741930112,
0.0026991483755409718,
-0.04471299424767494,
-0.04203292727470398,
-0.05061592161655426,
-0.002915419405326247,
0.02625785768032074,
-0.0014322660863399506,
-0.03633354604244232,
0.059131067246198654,
-0.04454336687922478,
0.04922500252723694,
-0.03765661641955376,
0.021236974745988846,
0.02037189155817032,
0.05427980795502663,
-0.03273750841617584,
0.018743496388196945,
-0.021203050389885902,
-0.011534459888935089,
-0.007505879737436771,
0.0973644107580185,
0.014909985475242138,
0.015418858267366886,
0.014553774148225784,
-0.011839783750474453,
0.01952376961708069,
-0.0035875560715794563,
-0.035214025527238846,
0.03629962354898453,
-0.06320205330848694,
0.0429149754345417,
0.030210105702280998,
-0.036163922399282455,
0.002849689917638898,
0.008247986435890198,
-0.09906065464019775,
0.06028451398015022,
0.04922500252723694,
-0.015707219019532204,
0.005368612240999937,
0.013332477770745754,
-0.007874812930822372,
-0.01692003384232521,
0.04213470220565796,
0.0046773930080235004,
0.004102790262550116,
-0.07918067276477814,
0.00763733871281147,
0.026783693581819534,
0.034569453448057175,
-0.01233169436454773,
-0.017505237832665443,
0.028581712394952774,
0.02905666083097458,
0.08365875482559204,
0.00968555361032486,
0.01826854795217514,
-0.04725736007094383,
0.02651229500770569,
-0.013290071859955788,
-0.03204204887151718,
-0.01257764920592308,
-0.007505879737436771,
-0.06065768748521805,
0.02530796080827713,
0.04885182902216911,
0.04003135859966278,
0.017742712050676346,
0.008761100471019745,
0.01245043147355318,
0.03151621297001839,
0.07857002317905426,
-0.026122158393263817,
-0.04383094608783722,
-0.027937138453125954,
0.030515430495142937,
-0.04074378311634064,
-0.028479937463998795,
0.05061592161655426,
-0.06530539691448212,
0.03253396227955818,
0.004694355186074972,
-0.013256147503852844,
0.047393057495355606,
-0.00006559693429153413,
-0.026325708255171776,
0.03528187423944473,
-0.0633716806769371,
-0.014172119088470936,
-0.04925892502069473,
0.01193307712674141,
-0.006403321400284767,
0.039556410163640976,
-0.004017977975308895,
-0.07449904084205627,
0.006958841346204281,
-0.01122913509607315,
-0.023221580311655998,
-0.0028539306949824095,
-0.05244786664843559,
0.013900719583034515,
-0.04464514181017876,
-0.04067593067884445,
-0.010593043640255928,
-0.03752091899514198,
-0.012068776413798332,
0.018539946526288986,
-0.037419144064188004,
0.04776623100042343,
-0.005351650062948465,
0.038810063153505325,
0.007463473826646805,
-0.03697812184691429,
-0.06856218725442886,
-0.0031062469352036715,
0.0010590923484414816,
0.012535243295133114,
0.008896799758076668,
0.008693250827491283,
-0.08141971379518509,
0.06700164079666138,
0.01108495518565178,
0.0404384583234787,
-0.00067213672446087,
-0.012475875206291676,
0.048546504229307175,
-0.05102302134037018,
0.07802722603082657,
-0.023001069203019142,
-0.010228351689875126,
0.012297769077122211,
-0.04237217456102371,
-0.029277171939611435,
0.046443160623311996,
-0.054483357816934586,
-0.006263381335884333,
-0.004011617042124271,
0.04366132244467735,
0.03487477824091911,
0.038063716143369675,
-0.049089301377534866,
-0.04881790280342102,
0.059775639325380325,
-0.004936070181429386,
0.012289288453757763,
-0.022882331162691116,
-0.010041764937341213,
-0.003973451443016529,
-0.008947687223553658,
0.0134766586124897,
-0.025443660095334053,
-0.016292424872517586,
-0.01991390436887741,
-0.0389457643032074,
-0.0319402739405632,
0.019642505794763565,
-0.013900719583034515,
-0.05234609171748161,
-0.022729670628905296,
-0.0648982971906662,
-0.030210105702280998,
0.02386615425348282,
0.012365618720650673,
0.03060024231672287,
-0.04973387345671654,
0.0026843061204999685,
0.016190649941563606,
-0.03163495287299156,
-0.09397192299365997,
-0.08155541121959686,
0.08128401637077332,
-0.013044117018580437,
0.02471427619457245,
-0.014604661613702774,
0.03969211131334305,
-0.006598389241844416,
-0.00439327210187912,
0.03384006768465042,
-0.016233054921030998,
-0.03928501158952713,
0.012043332681059837,
0.03938678652048111,
-0.026681918650865555,
0.03779231756925583,
0.013765020295977592,
0.023272467777132988,
0.016886109486222267,
0.018285511061549187,
0.010737224481999874,
-0.03178761154413223,
0.01796322502195835,
0.030837716534733772,
0.00184678565710783,
0.0234590545296669,
0.021440524607896805,
-0.017997149378061295,
0.015257715247571468,
-0.026885468512773514,
0.004957273136824369,
0.007675504311919212,
-0.036265697330236435,
0.000021749690858996473,
0.017335614189505577,
-0.04705381020903587,
0.005135378800332546,
-0.04274534806609154,
-0.009575298056006432,
0.027835365384817123,
-0.006555983331054449,
0.029429834336042404,
-0.006895232014358044,
0.04976779967546463,
-0.0773487314581871,
-0.023442093282938004,
0.004329662770032883,
0.03704597055912018,
0.04464514181017876,
0.04837688058614731,
-0.03948856145143509,
-0.0197103563696146,
-0.00793842226266861,
-0.02021922916173935,
0.0149778351187706,
0.01967643015086651,
0.001026227604597807,
-0.06764621287584305,
-0.03802978992462158,
-0.012560687027871609,
-0.06255748122930527,
0.002124545630067587,
-0.015342527069151402,
0.05499223247170448,
0.02050759084522724,
-0.015418858267366886,
0.04084555804729462,
-0.10937381535768509,
-0.03579074889421463,
-0.011212172918021679,
-0.03385703265666962,
-0.0033331194426864386,
-0.01842121034860611,
0.009863658808171749,
0.06516969949007034,
0.03439982980489731,
0.036367472261190414,
-0.049632102251052856,
-0.012484355829656124,
-0.021779773756861687,
-0.018031073734164238,
-0.009397191926836967,
0.021338749676942825,
-0.013468177989125252,
-0.04288104921579361,
-0.003515465883538127,
-0.04722343385219574,
0.052142541855573654,
-0.025172261521220207,
-0.013552989810705185,
-0.03575682267546654,
0.010279239155352116,
0.06204860657453537,
0.018438173457980156,
0.061878982931375504,
-0.004062504507601261,
0.005266837775707245,
-0.026715843006968498,
-0.03640139847993851,
0.09308987110853195,
-0.021593187004327774,
-0.018709572032094002,
0.015478227287530899,
-0.024324139580130577,
0.007281127385795116,
-0.015028722584247589,
-0.002472275635227561,
-0.022237759083509445,
-0.008158933371305466,
0.04783408343791962,
0.004800370428711176,
-0.0036766089033335447,
0.005737545434385538,
-0.04030275717377663,
-0.004902145359665155,
-0.003017194103449583,
-0.011950039304792881,
-0.03317853435873985,
-0.024171477183699608,
0.016292424872517586,
0.012611574493348598,
0.02751307748258114,
0.00429361779242754,
0.1173122376203537,
-0.0009021898149512708,
0.0004765385529026389,
0.008150452747941017,
0.04932677745819092,
0.029684269800782204,
-0.008498182520270348,
-0.0663909912109375,
0.09370052069425583,
0.006360915023833513,
-0.07171719521284103,
0.000025476791051914915,
0.016283942386507988,
0.023679567500948906,
0.06584819406270981,
-0.009151236154139042,
0.06805331259965897,
0.08569424599409103,
-0.01826854795217514,
0.07857002317905426,
0.002574050333350897,
0.020795952528715134,
-0.019388068467378616,
-0.033907920122146606,
0.023051956668496132,
0.09288632124662399,
-0.04471299424767494,
-0.04199900105595589,
0.024493763223290443,
-0.018031073734164238,
0.013417290523648262,
0.011805858463048935,
-0.027767514809966087,
-0.01412971317768097,
0.0025655690114945173,
0.012026370503008366,
-0.052278243005275726,
-0.03897968679666519,
-0.005313484463840723,
0.018404247239232063,
-0.017895374447107315,
0.011814340017735958,
-0.0010686337482184172,
0.0028390884399414062,
0.0030044722370803356,
-0.04701988399028778,
0.03847081586718559,
0.020829876884818077,
-0.02291625738143921,
0.023238543421030045,
0.02825942635536194,
-0.027716627344489098,
-0.02101646363735199,
-0.04054023325443268,
0.04284712299704552,
0.05567073076963425,
-0.03412843123078346,
0.005835079587996006,
0.049394626170396805,
0.05862219259142876,
0.08257316052913666,
-0.019150596112012863,
-0.015300121158361435,
-0.004034940619021654,
-0.000947776366956532,
-0.030820753425359726,
0.07171719521284103,
-0.021525336429476738,
-0.04284712299704552,
0.02705509215593338,
0.018353359773755074,
-0.027292566373944283,
-0.005283799953758717,
-0.015164421871304512,
0.02535884827375412,
-0.0048767016269266605,
-0.044204119592905045,
-0.04379701986908913,
-0.04077770560979843,
-0.04417019337415695,
0.013264628127217293,
0.025172261521220207,
0.024985674768686295,
0.05180329456925392,
0.02841208688914776,
-0.045289717614650726,
-0.01726776361465454,
-0.001570085878483951,
-0.00993150845170021,
0.05845256894826889,
-0.03350082039833069,
-0.011525978334248066,
-0.03687634691596031,
0.06815508753061295,
0.06133618578314781,
0.06279495358467102,
0.014384149573743343,
-0.03219471126794815,
0.045798588544130325,
-0.06761229038238525,
0.010872924700379372,
0.047596607357263565,
0.01340032834559679,
0.008761100471019745,
-0.07008880376815796,
-0.009303898550570011,
-0.018302472308278084,
-0.08393015712499619,
0.025579359382390976,
0.08779758960008621,
-0.019031858071684837,
-0.050989095121622086,
0.0648982971906662,
0.05054807290434837,
-0.0014269653474912047,
-0.0047325207851827145,
-0.010508231818675995,
-0.029209323227405548,
0.0024828771129250526,
-0.06598389148712158,
-0.005788432899862528,
-0.03497655317187309,
0.09268277138471603,
0.0018245225073769689,
0.04905537888407707,
0.009057942777872086,
0.011619271710515022,
0.0043551065027713776,
0.02590164728462696,
0.04562896490097046,
-0.020287077873945236,
0.009397191926836967,
0.017352577298879623,
0.018794383853673935,
-0.020694177597761154,
0.030023518949747086,
-0.08026626706123352,
0.01212814450263977,
-0.025392772629857063,
-0.0723956972360611,
0.008226783946156502,
-0.011042548343539238,
-0.006543261464685202,
-0.02271270751953125,
0.002669464098289609,
0.05380485951900482,
0.015910768881440163,
0.046544935554265976,
0.024697313085198402,
0.00537709379568696,
-0.03524795174598694,
-0.002376861870288849,
-0.005716342478990555,
-0.0027373137418180704,
-0.022984106093645096,
-0.03250003606081009,
0.005746026523411274,
0.04701988399028778,
0.027988025918602943,
-0.03650317341089249,
0.02490086294710636,
0.022780558094382286,
-0.0713779479265213,
-0.034671228379011154,
-0.012840567156672478,
-0.002294169971719384,
-0.004651949275285006,
0.00908338651061058,
-0.010991661809384823,
-0.0025083208456635475,
-0.09553246200084686,
0.035214025527238846,
0.007327774073928595,
0.026563182473182678,
-0.03857259079813957,
-0.03139747679233551,
-0.0374530665576458,
-0.017437389120459557,
-0.05282104015350342,
-0.04427196830511093,
0.0007834527059458196,
0.009049462154507637,
0.028666524216532707,
-0.04203292727470398,
-0.03178761154413223,
-0.05349953845143318,
-0.021694961935281754,
-0.05451728403568268,
-0.01578355021774769,
0.009219086728990078,
0.00015425219316966832,
0.01967643015086651,
-0.02741130441427231,
-0.03982780873775482,
-0.0194728821516037,
-0.019099708646535873,
-0.04237217456102371,
0.04871612787246704,
-0.017997149378061295,
-0.026427481323480606,
0.0010097952326759696,
0.09872139990329742,
0.01791233755648136,
-0.011814340017735958,
-0.013519064523279667,
-0.04318637400865555,
-0.02970123291015625,
-0.012034851126372814,
-0.07775582373142242,
-0.03650317341089249,
0.007798482198268175,
-0.032720547169446945,
-0.06598389148712158,
-0.033924881368875504,
-0.02540973573923111,
-0.00003301381366327405,
0.008676288649439812,
-0.013213740661740303,
0.02256004512310028,
0.010974698700010777,
0.00048210436943918467,
0.03704597055912018,
0.0002429074520478025,
0.025121374055743217,
-0.07863787561655045,
0.01667407900094986,
0.03229648619890213,
-0.004306339658796787,
-0.014935429207980633,
-0.028971849009394646,
-0.03156710043549538,
0.09512536227703094,
-0.010270757600665092,
-0.0364353209733963,
0.0713779479265213,
-0.012017888948321342,
0.02970123291015625,
-0.0429149754345417,
-0.04715558513998985,
0.0933612734079361,
0.005343168508261442,
0.06316813081502914,
0.04009920731186867,
-0.018455134704709053,
-0.03772446885704994,
-0.011144323274493217,
0.026240894570946693,
0.008099565282464027,
0.03765661641955376,
-0.03779231756925583,
0.03428109362721443,
-0.00653902068734169,
-0.045798588544130325,
0.009295416995882988,
-0.024799088016152382,
0.005907170008867979,
0.003981932997703552,
-0.03799586743116379,
-0.029412871226668358,
-0.037758391350507736,
0.06645884364843369,
0.010228351689875126,
0.026783693581819534,
-0.00653902068734169,
0.06113263592123985,
0.046748485416173935,
-0.002099101897329092,
-0.04338992387056351,
0.00878654420375824,
-0.005118416156619787,
-0.04627353698015213,
-0.03589252382516861,
0.003367044497281313,
0.005296521820127964,
-0.01442655548453331,
0.04583251476287842,
0.012246881611645222,
0.004236369393765926,
0.04925892502069473,
0.03348385915160179,
-0.013620839454233646,
-0.014435037039220333,
-0.010847480967640877,
0.03714774549007416,
-0.025782909244298935,
-0.03258484974503517,
0.028072839602828026,
0.0374530665576458,
-0.03470515459775925,
-0.04881790280342102,
-0.016063431277871132,
-0.006971563212573528,
-0.012424987740814686,
0.022644858807325363,
0.020694177597761154,
-0.055433254688978195,
0.008990093134343624,
0.01514745969325304,
-0.039658185094594955,
0.02386615425348282,
-0.025935571640729904,
-0.015656331554055214,
0.029582496732473373,
-0.04077770560979843,
-0.013646283186972141,
0.011754970997571945,
-0.04776623100042343,
0.035519350320100784,
-0.027784477919340134,
0.047393057495355606,
0.034213241189718246,
-0.01025379542261362,
-0.02505352534353733,
0.023085881024599075,
-0.029667308554053307,
-0.02581683360040188,
0.05136226862668991,
-0.015215309336781502,
0.012535243295133114,
-0.03100734017789364,
-0.02032100409269333,
-0.05105694383382797,
-0.014502886682748795,
0.029328059405088425,
-0.03497655317187309,
-0.006153125315904617,
-0.03585859760642052,
0.007234480697661638,
-0.026681918650865555,
0.04003135859966278,
-0.017233839258551598,
0.00888831913471222,
0.020287077873945236,
-0.0683586373925209,
0.015707219019532204,
-0.012670942582190037,
0.05495830625295639,
0.01172952726483345,
-0.03602822497487068,
-0.05848649516701698,
-0.06296458095312119,
0.0056060864590108395,
0.011398759670555592,
0.015461264178156853,
0.02235649712383747,
0.03402665629982948,
-0.011670159175992012,
0.042100775986909866,
0.0663909912109375,
0.028564749285578728,
-0.04301675036549568,
-0.008566032163798809,
-0.027139903977513313,
-0.03265269845724106,
0.027988025918602943,
-0.012713349424302578,
-0.05360131338238716,
0.04630746319890022,
-0.017844486981630325,
0.053126364946365356,
-0.01706421561539173,
0.001468311296775937,
-0.0038780379109084606,
0.006097997538745403,
0.053533460944890976,
-0.03204204887151718,
-0.0793842226266861,
0.006691682618111372,
-0.0048767016269266605,
-0.03667279705405235,
0.02910754829645157,
0.024188440293073654,
0.016300905495882034,
-0.030413655564188957,
-0.052142541855573654,
0.006420283578336239,
-0.04871612787246704,
0.018336398527026176,
0.04583251476287842,
0.0047325207851827145,
-0.01217903196811676,
-0.04379701986908913,
0.023442093282938004,
0.015079609118402004,
0.06384662538766861,
-0.01611431874334812,
0.03363651782274246,
0.03507832810282707,
0.03568897396326065,
-0.08874748647212982,
0.02161014825105667,
0.07110655307769775,
-0.025935571640729904,
-0.003040517447516322,
0.04101518169045448,
-0.019981754943728447,
-0.05336383730173111,
-0.00718783400952816,
0.04213470220565796,
0.023696528747677803,
0.019642505794763565,
-0.04169367998838425,
-0.041795454919338226,
0.006462689954787493,
0.026936355978250504,
-0.003121088957414031,
0.019455919042229652,
0.0041282339952886105,
-0.023645641282200813,
0.04708773270249367,
0.0219663605093956,
-0.008727175183594227,
-0.031126078218221664,
0.004664671141654253,
0.03156710043549538,
-0.03921716287732124,
0.020626327022910118,
0.07253139466047287,
-0.018251586705446243,
-0.03612999618053436,
0.004107031039893627,
0.04969995096325874,
0.03229648619890213,
0.07008880376815796,
-0.05824901908636093,
0.0026418999768793583,
0.028327275067567825,
-0.008727175183594227,
0.025596322491765022,
0.03412843123078346,
0.04193115234375,
0.05054807290434837,
-0.03735129535198212,
-0.049937423318624496,
-0.04186330363154411,
-0.020643290132284164,
-0.022543083876371384,
0.06808723509311676,
0.0025570879224687815,
0.020897727459669113,
-0.02959945797920227,
-0.010414938442409039,
0.028734374791383743,
0.007929940707981586,
0.013790464028716087,
0.0913257822394371,
-0.03484085202217102,
-0.018794383853673935,
0.028836147859692574,
0.0098551781848073,
-0.02725864201784134,
0.046103913336992264,
0.014757323078811169,
0.04311852529644966,
0.0009419455309398472,
0.0019856656435877085,
0.0259525328874588,
0.015486707910895348,
0.04322029650211334,
0.02232257090508938,
0.011822820641100407,
-0.017980186268687248,
0.015367970801889896,
0.01120369229465723,
0.004808851983398199,
-0.04413627088069916,
-0.07266709208488464,
-0.07124225050210953,
0.012136626057326794,
0.06500007212162018,
0.03227952495217323,
0.026681918650865555,
0.05570465326309204,
0.005071769468486309
] |
17,913 | imodels.rule_set.slipper_util | _condition_classify |
Helper function to make classifications for a condition
in a rule
| def _condition_classify(self, X, condition):
"""
Helper function to make classifications for a condition
in a rule
"""
logic = 'X[:, {}] {} {}'.format(
condition['feature'],
condition['operator'],
condition['pivot']
)
output = np.where(eval(logic))
return output[0]
| (self, X, condition) | [
0.019168518483638763,
-0.03629963845014572,
0.03640151023864746,
0.006201330106705427,
0.037318337708711624,
-0.026944587007164955,
-0.01635860837996006,
0.0040302276611328125,
0.030934492126107216,
-0.041596874594688416,
0.04611310735344887,
0.015127679333090782,
0.04648663103580475,
-0.0646534264087677,
-0.041528962552547455,
-0.01811586320400238,
0.019813694059848785,
-0.00924469344317913,
-0.003274692688137293,
0.03202110528945923,
0.015670984983444214,
-0.02466949261724949,
0.004622346721589565,
-0.013693012297153473,
0.11158148944377899,
0.02911781147122383,
-0.015781344845891,
0.0015895948745310307,
0.003493288531899452,
-0.03864264860749245,
-0.09236203879117966,
-0.01869312673807144,
-0.06163128837943077,
-0.019015714526176453,
0.011553743854165077,
0.012996900826692581,
0.03232671320438385,
0.02108706906437874,
0.024024317041039467,
-0.011799929663538933,
-0.026588043197989464,
-0.05830353870987892,
-0.06842261552810669,
0.037012729793787,
-0.059559933841228485,
-0.018896866589784622,
-0.03285304084420204,
-0.04312492161989212,
0.04923711717128754,
-0.04736950248479843,
-0.03298886865377426,
-0.019134562462568283,
0.03877847269177437,
0.00734736630693078,
-0.02567121386528015,
-0.006523917894810438,
0.019813694059848785,
0.02472042851150036,
-0.023922447115182877,
0.008998507633805275,
0.023056553676724434,
0.06760765612125397,
-0.011010438203811646,
0.02220763824880123,
0.006243775598704815,
0.008896637707948685,
-0.057997927069664,
0.09793093055486679,
-0.019032692536711693,
-0.0125809321179986,
-0.08591027557849884,
-0.04747137054800987,
0.03949156403541565,
-0.02200389839708805,
0.017216011881828308,
-0.05721692368388176,
-0.02137569896876812,
-0.026927608996629715,
0.06156337261199951,
-0.023633815348148346,
0.02208878844976425,
0.019983477890491486,
-0.010059651918709278,
-0.03623172640800476,
0.009558792226016521,
-0.04584145173430443,
-0.0078906724229455,
0.015492713078856468,
-0.0005114717641845345,
-0.01860823482275009,
-0.05127451568841934,
0.014338187873363495,
0.00438464991748333,
0.03320958465337753,
0.014236317947506905,
0.11905195564031601,
0.007725134026259184,
-0.018879886716604233,
0.04556979984045029,
0.00925318244844675,
0.020034413784742355,
0.02556934393942356,
-0.010594469495117664,
-0.008663185872137547,
-0.018778016790747643,
-0.019134562462568283,
-0.028048178181052208,
0.034415047615766525,
-0.03589215874671936,
-0.06173315644264221,
-0.009779510088264942,
0.010178500786423683,
-0.05728483945131302,
-0.0436682291328907,
0.01740277372300625,
-0.037793733179569244,
-0.041732702404260635,
-0.024262012913823128,
-0.07395754754543304,
-0.009601238183677197,
0.023548923432826996,
-0.05857519060373306,
0.020781459286808968,
0.04353240132331848,
-0.029762988910079002,
0.022954683750867844,
0.03142686188220978,
0.03159664571285248,
0.01837053708732128,
-0.0846199244260788,
0.0018941434100270271,
-0.05687735974788666,
-0.001871859305538237,
-0.007292186841368675,
-0.03663920611143112,
-0.012852584943175316,
-0.04427944868803024,
0.0068167936988174915,
-0.0012924743350595236,
0.006201330106705427,
0.03952552005648613,
-0.000908339919988066,
-0.0491352453827858,
-0.003981415182352066,
0.019032692536711693,
-0.04621497541666031,
0.011494319885969162,
0.041732702404260635,
0.02908385545015335,
-0.011027416214346886,
-0.06180107221007347,
0.023396119475364685,
0.024194100871682167,
-0.07280302047729492,
0.0023217846173793077,
0.016519902274012566,
-0.012614889070391655,
-0.04784489423036575,
0.0363335944712162,
-0.041325222700834274,
-0.005492485128343105,
-0.06102006882429123,
-0.07599494606256485,
0.03472065553069115,
0.030849600210785866,
0.016044508665800095,
-0.016129400581121445,
-0.0011470974422991276,
-0.008455201052129269,
0.011519787833094597,
0.04000091180205345,
-0.04540001600980759,
0.002232648665085435,
0.0569792278110981,
-0.048625897616147995,
0.05657174810767174,
-0.006201330106705427,
0.06214063614606857,
0.048286329954862595,
0.04431340470910072,
0.0643138587474823,
0.04709784686565399,
-0.058846842497587204,
0.005288745276629925,
0.0006297894287854433,
-0.06967900693416595,
0.035484679043293,
-0.0008579355198889971,
-0.00523356581106782,
0.06883009523153305,
-0.02562027797102928,
-0.0433286614716053,
0.03268325701355934,
0.024109208956360817,
0.015891704708337784,
-0.04444923251867294,
-0.002219914924353361,
0.013446826487779617,
-0.008234483189880848,
0.044551100581884384,
-0.03263232484459877,
-0.016901914030313492,
0.03972925990819931,
0.08081678301095963,
-0.026367325335741043,
0.034024544060230255,
0.0424797460436821,
0.045128364115953445,
-0.06665686517953873,
-0.04750532656908035,
-0.025807039812207222,
-0.000208912868401967,
-0.024295970797538757,
0.05779418721795082,
0.030000684782862663,
0.08197131007909775,
0.045094408094882965,
0.038269124925136566,
-0.034075479954481125,
-0.024092230945825577,
-0.04210622236132622,
-0.003157966770231724,
0.022767921909689903,
0.0494748130440712,
0.012903519906103611,
-0.04726763069629669,
-0.008497647009789944,
-0.004057817626744509,
0.0438380129635334,
-0.004117241594940424,
0.02492416836321354,
-0.014847537502646446,
0.07619868218898773,
-0.03137592971324921,
-0.001218194141983986,
-0.013132727704942226,
0.01562853902578354,
0.05687735974788666,
-0.00041464230162091553,
0.027267174795269966,
0.015170125290751457,
0.0044950093142688274,
-0.011443384923040867,
-0.026978544890880585,
0.04540001600980759,
-0.059559933841228485,
0.03208901733160019,
0.009940803982317448,
-0.018828952684998512,
-0.023497989401221275,
-0.06580795347690582,
-0.019711824133992195,
-0.011698059737682343,
-0.056062400341033936,
-0.014626819640398026,
0.02553538791835308,
0.00924469344317913,
-0.00832361914217472,
0.023430075496435165,
0.00010034449951490387,
-0.02171526663005352,
0.007652976084500551,
0.0583374947309494,
-0.0632951632142067,
-0.08271835744380951,
-0.02903291955590248,
-0.013565674424171448,
0.06061258912086487,
0.03993299975991249,
-0.0123687032610178,
0.000651012291200459,
0.022920725867152214,
-0.0322418212890625,
-0.008366065099835396,
-0.019813694059848785,
0.027538828551769257,
-0.03202110528945923,
-0.019830673933029175,
-0.0010855511063709855,
-0.0491352453827858,
0.012538486160337925,
-0.01469473261386156,
-0.05409291386604309,
0.033905696123838425,
-0.04000091180205345,
-0.024448774755001068,
-0.0008913616184145212,
-0.00523781031370163,
0.023854533210396767,
-0.007585062645375729,
-0.02463553659617901,
0.01085763331502676,
0.01107835117727518,
0.007691177073866129,
0.000424457888584584,
-0.05096890404820442,
0.0160360187292099,
-0.06815095990896225,
0.05718296766281128,
-0.026893652975559235,
0.04726763069629669,
0.0031218877993524075,
-0.010297348722815514,
-0.019745782017707825,
-0.06866031140089035,
0.02101915515959263,
0.019796716049313545,
0.0009237265330739319,
-0.007585062645375729,
-0.023396119475364685,
0.037488121539354324,
0.019525064155459404,
0.0025021792389452457,
-0.019355280324816704,
-0.01429574191570282,
0.030900536105036736,
-0.002799299778416753,
-0.0030624638311564922,
0.0322418212890625,
0.037012729793787,
0.026435237377882004,
-0.014805091544985771,
-0.013268553651869297,
0.02147756889462471,
-0.0429890975356102,
-0.030153488740324974,
0.007326143328100443,
-0.04740345850586891,
-0.03234369307756424,
0.023803599178791046,
-0.002156246220692992,
0.069611094892025,
0.02855752781033516,
0.0010850204853340983,
0.0365033783018589,
0.00925318244844675,
0.01077274139970541,
0.03517907112836838,
-0.030866578221321106,
-0.014108981005847454,
-0.03511115908622742,
0.009372030384838581,
-0.01562853902578354,
0.07042605429887772,
0.041970398277044296,
-0.00897303968667984,
-0.05039164051413536,
0.041630830615758896,
0.020764481276273727,
0.02843867987394333,
-0.033871740102767944,
0.01859125681221485,
0.03251347690820694,
-0.016010552644729614,
0.012844095937907696,
-0.02930457331240177,
-0.015195593237876892,
-0.019372258335351944,
0.0007475764723494649,
0.01097648125141859,
0.13487574458122253,
-0.013107259757816792,
0.028998963534832,
0.0036036474630236626,
-0.002406676299870014,
0.01811586320400238,
-0.01743672974407673,
0.059525977820158005,
-0.0060867262072861195,
-0.04991624876856804,
-0.023752663284540176,
-0.013837327249348164,
0.01063691545277834,
-0.030459098517894745,
0.014711710624396801,
0.04356635734438896,
-0.01468624360859394,
-0.027946308255195618,
0.0013911607675254345,
-0.011782951653003693,
0.02567121386528015,
0.015280484221875668,
-0.05344773828983307,
-0.006328667514026165,
-0.024448774755001068,
-0.0027610985562205315,
-0.026333367452025414,
0.0075765736401081085,
0.048048634082078934,
0.012614889070391655,
0.020900307223200798,
-0.01826866716146469,
-0.023056553676724434,
-0.06013719365000725,
-0.011112308129668236,
-0.029644139111042023,
-0.03596007451415062,
0.023328205570578575,
0.0035845469683408737,
-0.0064942059107124805,
-0.06563816964626312,
0.011502808891236782,
0.013344956561923027,
0.004172421060502529,
-0.026401281356811523,
0.0012744348496198654,
0.0028863137122243643,
0.041053567081689835,
-0.024126186966896057,
-0.0015004586894065142,
0.007822759449481964,
0.06135963276028633,
-0.05073120817542076,
-0.008803256787359715,
-0.023548923432826996,
0.033871740102767944,
0.10947617888450623,
0.023277271538972855,
-0.005933921318501234,
0.01786118932068348,
0.001937650260515511,
0.008293907158076763,
0.06108798086643219,
-0.038235168904066086,
-0.051444295793771744,
0.04424549266695976,
-0.008786278776824474,
0.008527358993887901,
-0.055587004870176315,
0.0353148989379406,
-0.10390729457139969,
-0.021749222651124,
-0.07517998665571213,
-0.02930457331240177,
-0.016935870051383972,
-0.008429734036326408,
-0.013786392286419868,
-0.011901799589395523,
0.030510034412145615,
0.00819628220051527,
0.0035421012435108423,
0.011638635769486427,
-0.0027037968393415213,
0.034686699509620667,
-0.08760811388492584,
-0.005161407869309187,
-0.05378730595111847,
-0.027216240763664246,
-0.07341423630714417,
-0.05375334993004799,
-0.006154639646410942,
0.02911781147122383,
0.045467931777238846,
0.06954318284988403,
0.04363427311182022,
0.025993801653385162,
-0.07714946568012238,
-0.041325222700834274,
0.06108798086643219,
0.015102212317287922,
-0.03589215874671936,
0.033905696123838425,
0.0005066966405138373,
-0.0019174885237589478,
-0.0491352453827858,
-0.009558792226016521,
-0.003754330100491643,
-0.014558905735611916,
0.0015736776404082775,
0.000288100796751678,
0.003981415182352066,
-0.06336307525634766,
-0.008905126713216305,
0.03271721675992012,
0.005683491472154856,
0.08061304688453674,
0.005072271917015314,
0.037827689200639725,
0.04329470545053482,
0.0361638143658638,
0.0061334166675806046,
0.0013508372940123081,
-0.05392313003540039,
-0.0322418212890625,
0.00918526854366064,
0.013294021598994732,
-0.010025695897638798,
-0.0025743371807038784,
-0.002175346715375781,
-0.01430423092097044,
0.00029022307717241347,
0.06787930428981781,
0.07776068896055222,
0.0012107661459594965,
0.06709830462932587,
0.01798003725707531,
-0.005017092451453209,
0.03324354439973831,
0.011553743854165077,
0.009422965347766876,
-0.01438063383102417,
0.01569645293056965,
-0.1255716234445572,
-0.012979922816157341,
0.006371113006025553,
-0.03287002071738243,
0.022275550290942192,
-0.009703107178211212,
-0.019762760028243065,
-0.00008018274820642546,
0.020509805530309677,
-0.024516688659787178,
-0.01642652042210102,
0.01779327541589737,
0.0025573589373379946,
0.02190202847123146,
0.019015714526176453,
0.027538828551769257,
-0.05378730595111847,
0.01460135169327259,
0.005496729630976915,
-0.05337982624769211,
-0.023752663284540176,
-0.0025212799664586782,
-0.006804060190916061,
0.08366914093494415,
0.06373659521341324,
-0.02134174294769764,
0.0018389638280496001,
0.009864402003586292,
-0.030645860359072685,
-0.020628653466701508,
0.01569645293056965,
0.09392404556274414,
-0.010017206892371178,
0.07680990546941757,
-0.007109669968485832,
0.04672432690858841,
0.01843845099210739,
0.019440172240138054,
-0.0014283008640632033,
0.020373979583382607,
0.011299069039523602,
0.0324116051197052,
0.02551840990781784,
0.0127931609749794,
0.009304117411375046,
0.024414818733930588,
-0.06173315644264221,
-0.01440610084682703,
-0.007368589285761118,
0.009592748247087002,
-0.0336000882089138,
0.006608809344470501,
0.08394079655408859,
0.051749907433986664,
0.029525291174650192,
0.022462312132120132,
-0.02908385545015335,
0.03881242871284485,
-0.03704668581485748,
-0.05358356609940529,
0.0989496260881424,
-0.027046456933021545,
-0.0576583594083786,
-0.021070091053843498,
-0.009473900310695171,
0.018947800621390343,
-0.019202476367354393,
-0.020713545382022858,
0.055485136806964874,
-0.014338187873363495,
-0.009923825971782207,
0.0348055474460125,
-0.0078906724229455,
0.027895372360944748,
0.055654920637607574,
0.011723527684807777,
-0.0009741308749653399,
0.051885735243558884,
-0.03623172640800476,
-0.0016681195702403784,
-0.009974760934710503,
0.00458838976919651,
-0.013794882223010063,
-0.03623172640800476,
0.03246254101395607,
0.03217390924692154,
-0.026808761060237885,
-0.011426406912505627,
-0.006600320339202881,
0.03483950346708298,
0.008896637707948685,
0.006867728661745787,
0.023175401613116264,
-0.027674654498696327,
-0.0029733276460319757,
-0.02130778692662716,
0.019015714526176453,
-0.014448546804487705,
-0.019134562462568283,
-0.014737178571522236,
-0.03677503392100334,
0.016299182549118996,
0.00894757267087698,
-0.059016626328229904,
-0.0498143807053566,
0.0027504872996360064,
-0.01460135169327259,
-0.03697877377271652,
0.023548923432826996,
-0.0008802195661701262,
0.00798405334353447,
0.067539744079113,
-0.004301880951970816,
0.006426292471587658,
-0.0168000441044569,
0.02891407161951065,
-0.0008743832586333156,
0.0029521046672016382,
-0.0018665536772459745,
0.0014760523336008191,
0.0059466552920639515,
0.019609954208135605,
0.013701501302421093,
0.009389008395373821,
0.051444295793771744,
-0.10893287509679794,
0.01107835117727518,
0.0014771134592592716,
0.0021127392537891865,
0.048286329954862595,
0.041732702404260635,
-0.03894825652241707,
-0.059186410158872604,
-0.01084914430975914,
-0.008149591274559498,
0.08027347922325134,
0.0011608923086896539,
-0.038031429052352905,
-0.03312469273805618,
0.010518066585063934,
0.04940690100193024,
0.00457141175866127,
0.01869312673807144,
-0.04034047946333885,
0.025807039812207222,
-0.0346357636153698,
0.007771824020892382,
0.004834575578570366,
-0.03725042566657066,
0.015042788349092007,
-0.055654920637607574,
0.04774302616715431,
-0.017292415723204613,
0.041325222700834274,
-0.03612985834479332,
0.024448774755001068,
0.003972926177084446,
-0.0426495298743248,
-0.04091774299740791,
0.01757255755364895,
0.001607634243555367,
0.013378912582993507,
0.004545944277197123,
0.019745782017707825,
0.037623949348926544,
-0.09698013961315155,
-0.025807039812207222,
-0.01671515218913555,
0.013709990307688713,
0.03169851750135422,
-0.016451988369226456,
-0.070969358086586,
0.02837076596915722,
-0.07001857459545135,
0.05480600520968437,
-0.02122289501130581,
0.011426406912505627,
-0.04638475924730301,
0.0440077967941761,
-0.0440077967941761,
0.0048218416050076485,
0.01239417027682066,
0.04937294125556946,
-0.03636755421757698,
0.003875300521031022,
-0.04441527649760246,
-0.02872731164097786,
-0.01828564703464508,
-0.06258207559585571,
0.07470458745956421,
0.052157387137413025,
-0.02550143003463745,
0.01625673845410347,
-0.030204424634575844,
-0.05426269769668579,
0.0510028600692749,
0.007733623031526804,
0.03626568242907524,
0.03983112797141075,
-0.05830353870987892,
-0.0689319595694542,
-0.030543990433216095,
0.002289950381964445,
-0.009329584427177906,
-0.00801800936460495,
-0.008115635253489017,
0.08855889737606049,
-0.002306928625330329,
0.01779327541589737,
0.06981483846902847,
0.001933405757881701,
-0.04431340470910072,
0.013421358540654182,
0.059118498116731644,
-0.07477250695228577,
0.023820577189326286,
-0.03986508771777153,
0.012114028446376324,
0.0503237284719944,
0.013548696413636208,
0.016901914030313492,
0.015450268052518368,
-0.08299000561237335,
0.019100606441497803,
0.08224296569824219,
-0.041359178721904755,
-0.006918663624674082,
-0.005933921318501234,
-0.020153261721134186,
0.041291262954473495,
-0.059797629714012146,
0.03494137525558472,
0.015085233375430107,
-0.005933921318501234,
-0.023786621168255806,
-0.055417224764823914,
0.011333025991916656,
0.04961064085364342,
0.03137592971324921,
0.005208098329603672,
0.03551863878965378,
-0.045094408094882965,
0.0441775768995285,
-0.006061258725821972,
0.013735457323491573,
0.05001812055706978,
0.005462773144245148,
-0.004308247473090887,
0.003866811515763402,
0.026808761060237885,
0.038065385073423386,
-0.0578281432390213,
0.04587541148066521,
0.01753859966993332,
0.03271721675992012,
0.0018750427989289165,
-0.012215898372232914,
0.006506939418613911,
-0.016468966379761696,
-0.005097739398479462,
-0.013166683726012707,
0.011935756541788578,
-0.010195478796958923,
-0.013226108625531197,
0.03619777038693428,
0.03500928729772568
] |
17,914 | imodels.rule_set.slipper_util | _eq_5 |
equation 5 from Cohen & Singer (1999)
used to compare the learned rule with a default rule
| def _eq_5(self, X, y, rule):
"""
equation 5 from Cohen & Singer (1999)
used to compare the learned rule with a default rule
"""
W_plus, W_minus = self._get_design_matrices(X, y, rule)
return 1 - np.square(np.sqrt(W_plus) - np.sqrt(W_minus))
| (self, X, y, rule) | [
0.007405987940728664,
-0.009827600792050362,
0.04972025007009506,
0.005002019461244345,
-0.00752508407458663,
-0.02321925014257431,
-0.030559074133634567,
-0.055542707443237305,
-0.024348454549908638,
0.010145189240574837,
0.02247820980846882,
0.005650429520756006,
0.03631095588207245,
0.06210620328783989,
-0.03398197144269943,
-0.009015985764563084,
0.03641681745648384,
-0.010842119343578815,
0.02482483722269535,
-0.0035728709772229195,
0.011971323750913143,
-0.0364873930811882,
0.0021779073867946863,
0.059247903525829315,
-0.01625876873731613,
0.027541983872652054,
-0.014856086112558842,
-0.030012115836143494,
-0.0004606687871273607,
-0.0016276412643492222,
-0.12004846334457397,
0.012588856741786003,
-0.021490156650543213,
-0.023642702028155327,
0.04305088892579079,
-0.04255686327815056,
0.06309425830841064,
0.01069214753806591,
-0.000631868839263916,
-0.041180647909641266,
-0.024983631446957588,
-0.011494940146803856,
0.049226220697164536,
0.02422494813799858,
-0.0700812041759491,
-0.0035000902134925127,
-0.044285956770181656,
0.0297298151999712,
-0.023272182792425156,
-0.028759406879544258,
0.018967092037200928,
-0.06284724175930023,
0.05758938565850258,
0.02134900726377964,
0.028212448582053185,
-0.0267303679138422,
0.009571765549480915,
-0.03684027120471001,
0.03253518044948578,
-0.026236342266201973,
0.019302325323224068,
0.030576718971133232,
-0.018331915140151978,
-0.004441828466951847,
-0.04223927482962608,
-0.01854364201426506,
-0.010401024483144283,
0.017511479556560516,
0.06080055981874466,
0.010577462613582611,
-0.01700863055884838,
0.013179924339056015,
0.03560520336031914,
-0.047285404056310654,
0.015420687384903431,
-0.04333319142460823,
-0.02561880834400654,
-0.026871519163250923,
0.009404148906469345,
-0.022566430270671844,
0.004402129910886288,
0.002253996441140771,
0.05723651126027107,
-0.05250797048211098,
-0.03315271437168121,
-0.03047085553407669,
0.059918370097875595,
-0.0010189298773184419,
0.037934184074401855,
0.017370328307151794,
0.01130968052893877,
-0.025512944906949997,
0.009315930306911469,
-0.003702993970364332,
0.017264464870095253,
0.05624845623970032,
-0.028618255630135536,
-0.01877301186323166,
0.015411865897476673,
-0.024366097524762154,
0.023025168105959892,
0.027577271685004234,
-0.007295714225620031,
0.03040027990937233,
-0.03719314560294151,
-0.005540155339986086,
-0.00524462154135108,
0.017343861982226372,
-0.03218230605125427,
-0.042027547955513,
-0.04513286054134369,
0.009959929622709751,
-0.07212788611650467,
0.021490156650543213,
-0.013920963741838932,
0.01117735169827938,
-0.07078695297241211,
-0.0019253804348409176,
0.0033126247581094503,
-0.016355808824300766,
0.005910675507038832,
0.008058808743953705,
-0.05162578076124191,
-0.005862154997885227,
0.026977380737662315,
0.0352170392870903,
0.04146294668316841,
-0.0050681838765740395,
-0.015897070989012718,
-0.05141405388712883,
0.01772320456802845,
0.0023091332986950874,
-0.020237447693943977,
0.027577271685004234,
-0.027506696060299873,
-0.014044471085071564,
0.003288364503532648,
-0.03010033629834652,
0.06136516109108925,
0.02351919561624527,
0.0399455800652504,
0.05226095765829086,
0.01817312091588974,
-0.02411908470094204,
0.011494940146803856,
0.02886526845395565,
-0.006466455291956663,
0.062388502061367035,
0.024771906435489655,
0.016691042110323906,
-0.016011755913496017,
0.041180647909641266,
0.03428191691637039,
-0.08963054418563843,
0.053072571754455566,
0.006404702086001635,
0.047285404056310654,
-0.06972832977771759,
0.017140958458185196,
-0.03969856724143028,
0.00990699790418148,
-0.005504867993295193,
-0.05508396774530411,
0.008226425386965275,
0.049332085996866226,
-0.008014699444174767,
-0.047955866903066635,
0.038604650646448135,
-0.009130670689046383,
-0.02565409615635872,
-0.07713872939348221,
-0.07255133241415024,
-0.09626461565494537,
0.06228264048695564,
0.05843628942966461,
0.007326590828597546,
-0.01476786658167839,
0.03708728402853012,
-0.012509459629654884,
-0.029288720339536667,
0.022266484797000885,
0.012315377593040466,
0.00159345637075603,
-0.0021712910383939743,
-0.018455423414707184,
0.05324900895357132,
0.048838060349226,
0.03472301363945007,
-0.016629287973046303,
0.03338208422064781,
-0.05578972026705742,
-0.03444071114063263,
-0.02575995959341526,
0.010206942446529865,
0.009227711707353592,
-0.026871519163250923,
0.03435249254107475,
0.04276859015226364,
0.0738922655582428,
-0.013453403487801552,
0.0237838514149189,
-0.011856638826429844,
0.028953487053513527,
-0.003901486983522773,
0.0026730368845164776,
-0.030047403648495674,
-0.015711810439825058,
-0.005870976950973272,
-0.049896687269210815,
0.012950554490089417,
0.04703839123249054,
0.03634624183177948,
-0.022936949506402016,
0.021190213039517403,
0.029359295964241028,
0.02849474921822548,
0.06503507494926453,
-0.022372348234057426,
-0.0786208063364029,
0.00013253532233648002,
-0.009607053361833096,
0.005297553259879351,
-0.020096296444535255,
0.0432979017496109,
0.022037114948034286,
-0.03320564702153206,
0.05501339212059975,
0.015023701824247837,
0.014159155078232288,
-0.05698949843645096,
-0.014044471085071564,
0.004163938574492931,
0.07960885763168335,
-0.00910420436412096,
-0.0024988041259348392,
0.06934016197919846,
-0.026748012751340866,
-0.005147580988705158,
-0.06485863775014877,
0.010295161977410316,
-0.0475677028298378,
-0.04657965153455734,
0.028071297332644463,
0.05141405388712883,
-0.0030347348656505346,
0.025248289108276367,
0.05653075873851776,
-0.002342215506359935,
-0.03888695314526558,
-0.021154925227165222,
-0.003586103906854987,
-0.05667190998792648,
-0.03114132024347782,
-0.044850558042526245,
-0.03197057917714119,
-0.0005557799595408142,
-0.014379703439772129,
-0.014891372993588448,
0.04019259288907051,
-0.027753708884119987,
-0.00025693795760162175,
0.035569917410612106,
0.00047279891441576183,
-0.028759406879544258,
-0.05907146632671356,
0.051131755113601685,
-0.04682666435837746,
0.04322732985019684,
-0.01760851964354515,
-0.014944304712116718,
0.05578972026705742,
0.019761065021157265,
-0.009439436718821526,
0.014467922039330006,
-0.04897920787334442,
0.001625435776077211,
-0.005765113979578018,
0.04135708510875702,
-0.00910420436412096,
-0.022037114948034286,
0.019355256110429764,
-0.05162578076124191,
-0.026606861501932144,
0.022936949506402016,
-0.04446239396929741,
-0.010947982780635357,
-0.023942647501826286,
0.006929605267941952,
0.05638960748910904,
-0.015006057918071747,
-0.049896687269210815,
-0.01924939453601837,
0.04979082569479942,
-0.008102918975055218,
0.027771353721618652,
0.013065239414572716,
0.002040065126493573,
0.008010288700461388,
0.025901108980178833,
0.08052633702754974,
0.009562943130731583,
0.01760851964354515,
0.012500637210905552,
-0.016091153025627136,
0.002068736357614398,
-0.003901486983522773,
0.005099060479551554,
-0.008830725215375423,
0.03174120932817459,
-0.048061732202768326,
0.01626759022474289,
0.029218144714832306,
-0.006365003529936075,
0.0028803516179323196,
-0.018861230462789536,
0.037299007177352905,
0.005937141366302967,
-0.020519748330116272,
0.05529569089412689,
0.044885847717523575,
0.023095743730664253,
-0.039098676294088364,
-0.028741762042045593,
-0.01840249076485634,
-0.015588304027915001,
-0.11108541488647461,
0.029112281277775764,
-0.034123122692108154,
-0.005870976950973272,
-0.017996683716773987,
-0.0034625972621142864,
-0.015526550821959972,
0.029659239575266838,
-0.011433186940848827,
0.00835875328630209,
-0.02613047882914543,
0.024595467373728752,
0.023607414215803146,
-0.01921410672366619,
-0.014467922039330006,
0.009483546018600464,
0.044250667095184326,
0.00349567923694849,
-0.02044917270541191,
0.0708928182721138,
-0.026236342266201973,
-0.08327876776456833,
-0.00677522225305438,
0.004657965153455734,
-0.015526550821959972,
-0.03507588803768158,
-0.0012957170838490129,
0.0199727900326252,
-0.035393476486206055,
0.025883466005325317,
0.08137323707342148,
-0.01633816584944725,
-0.05384889990091324,
0.014379703439772129,
-0.05215509608387947,
-0.0013718060217797756,
-0.035164106637239456,
-0.0058886208571493626,
0.03722843527793884,
0.030823731794953346,
0.003740487154573202,
0.008835136890411377,
0.0199727900326252,
0.015023701824247837,
-0.026483355090022087,
-0.0837022215127945,
-0.043544918298721313,
-0.03811062499880791,
-0.005668072961270809,
0.004666787106543779,
0.01540304347872734,
-0.05504867807030678,
0.04022788256406784,
0.014070936478674412,
0.011680200695991516,
0.07629182189702988,
0.030347349122166634,
-0.06944602727890015,
0.006219442002475262,
-0.013823922723531723,
-0.03193528950214386,
-0.057518813759088516,
0.08158496767282486,
0.015879426151514053,
-0.012465350329875946,
0.08807788789272308,
-0.007679467089474201,
0.049896687269210815,
-0.02685387432575226,
-0.035958077758550644,
0.04844989627599716,
-0.02258407324552536,
0.04509757086634636,
-0.09915819764137268,
0.02438374236226082,
-0.036593254655599594,
0.025142425671219826,
0.03364674001932144,
-0.019161174073815346,
-0.0632706955075264,
0.0013122581876814365,
-0.01880829781293869,
0.11913098394870758,
-0.052472684532403946,
0.048026442527770996,
-0.042027547955513,
-0.021101994439959526,
0.013603375293314457,
0.0007807384827174246,
-0.03377024829387665,
0.01491783931851387,
0.09661749005317688,
0.010127545334398746,
0.03705199435353279,
0.004463883116841316,
0.04449768364429474,
-0.06214148923754692,
0.030594361945986748,
0.03691084682941437,
0.02164895087480545,
-0.044215381145477295,
-0.017979038879275322,
-0.03863993659615517,
-0.023607414215803146,
-0.0037823913153260946,
-0.05568385496735573,
-0.041180647909641266,
-0.030153267085552216,
-0.021101994439959526,
-0.018755367025732994,
-0.021807745099067688,
-0.005932730156928301,
-0.01127439271658659,
0.02538943849503994,
0.04442710801959038,
0.005769525188952684,
-0.0022275305818766356,
0.0252835750579834,
0.01984928362071514,
-0.07720930129289627,
-0.02422494813799858,
0.012421240098774433,
-0.045979760587215424,
-0.05698949843645096,
0.02254878543317318,
0.03175885230302811,
0.03608158603310585,
-0.025036562234163284,
0.03828706219792366,
-0.015844138339161873,
0.007238371763378382,
0.0005618449649773538,
-0.05187279358506203,
0.005862154997885227,
-0.0029751870315521955,
0.01127439271658659,
0.010427489876747131,
-0.02004336565732956,
0.013621019199490547,
-0.07082224637269974,
-0.0014037854271009564,
-0.027242038398981094,
0.049826111644506454,
0.007842672057449818,
-0.04474469646811485,
-0.015905892476439476,
-0.019514050334692,
-0.01738797128200531,
0.014018004760146141,
0.018490709364414215,
0.026236342266201973,
-0.04322732985019684,
0.011591981165111065,
0.007185440510511398,
0.003517734119668603,
-0.035164106637239456,
0.003244254970923066,
-0.012050720863044262,
-0.014794332906603813,
0.005063772667199373,
-0.0016011755215004086,
-0.07664469629526138,
-0.03002976067364216,
-0.032217592000961304,
-0.033858466893434525,
0.0003393676015548408,
0.04061604291200638,
0.029218144714832306,
-0.008623410947620869,
-0.04601505026221275,
0.02703031338751316,
0.008923355489969254,
0.008266123943030834,
-0.028688831254839897,
0.030823731794953346,
0.025936396792531013,
-0.005857744254171848,
-0.058718591928482056,
-0.006484099198132753,
-0.006823742296546698,
0.01843777857720852,
-0.04276859015226364,
-0.05155520513653755,
-0.0036235968582332134,
0.022442923858761787,
0.029553378000855446,
-0.03302920609712601,
0.0008375294855795801,
-0.00046177153126336634,
0.04033374413847923,
0.023907359689474106,
0.0011286522494629025,
0.033258575946092606,
0.04160409793257713,
0.0026377493049949408,
0.019725777208805084,
-0.033929042518138885,
-0.009333574213087559,
-0.028247736394405365,
0.04393307864665985,
0.03184707090258598,
-0.016276411712169647,
-0.013956251554191113,
0.039028100669384,
0.00714133121073246,
0.035834573209285736,
-0.02815951593220234,
0.00008063771383604035,
0.07188086956739426,
-0.023113388568162918,
0.09146549552679062,
-0.04781471937894821,
-0.0199727900326252,
-0.008067631162703037,
0.027541983872652054,
-0.013876854442059994,
-0.03571106493473053,
0.05257854610681534,
0.029782745987176895,
-0.02759491465985775,
0.056142594665288925,
-0.033629097044467926,
0.04241571202874184,
-0.042027547955513,
-0.020590323954820633,
-0.012509459629654884,
0.036063943058252335,
0.029253432527184486,
-0.025195356458425522,
0.0967586413025856,
0.032588113099336624,
0.028671186417341232,
0.049296796321868896,
-0.0042367191053926945,
0.017149779945611954,
-0.0662701427936554,
-0.08172611892223358,
0.026448067277669907,
-0.03874580189585686,
0.03634624183177948,
0.019302325323224068,
0.031088389456272125,
0.011115598492324352,
-0.022231196984648705,
-0.02710088901221752,
-0.04305088892579079,
0.059918370097875595,
0.06863441318273544,
-0.0026620093267410994,
-0.04643850028514862,
-0.01342693716287613,
-0.006140044890344143,
-0.011768419295549393,
-0.05321372300386429,
-0.008901300840079784,
0.00610475754365325,
-0.011468474753201008,
0.024913055822253227,
-0.006435578688979149,
0.028547680005431175,
-0.005535744596272707,
-0.011574337258934975,
0.0329057015478611,
-0.06143573671579361,
-0.010189298540353775,
-0.037263721227645874,
0.003548610722646117,
-0.06334126740694046,
-0.0352170392870903,
-0.019690489396452904,
-0.0002671382681000978,
-0.024877768009901047,
-0.012412418611347675,
0.06334126740694046,
0.04749713093042374,
-0.035958077758550644,
0.030082691460847855,
0.0030567895155400038,
0.0018349559977650642,
0.017855532467365265,
0.021225500851869583,
-0.010824475437402725,
-0.04788529500365257,
-0.02812422811985016,
-0.02763020247220993,
0.04322732985019684,
0.03306449577212334,
0.019602270796895027,
-0.045838613063097,
-0.004543280228972435,
-0.0072913034819066525,
-0.0032707208301872015,
0.06701117753982544,
-0.04146294668316841,
0.009757025167346,
-0.001625435776077211,
0.06034182012081146,
-0.0047020744532346725,
0.019919859245419502,
0.0060474150814116,
0.02635984867811203,
0.05822456255555153,
-0.039204541593790054,
-0.0254600141197443,
-0.05271969735622406,
0.037404872477054596,
0.023113388568162918,
0.011009735986590385,
-0.05335487425327301,
-0.024471960961818695,
0.0025076260790228844,
0.01937290094792843,
0.045026995241642,
-0.03246460482478142,
0.02815951593220234,
-0.0159323588013649,
0.023942647501826286,
0.044815272092819214,
0.015588304027915001,
-0.008901300840079784,
0.027718421071767807,
-0.008072041906416416,
-0.029306363314390182,
0.02486012503504753,
0.0006197387119755149,
0.015164852142333984,
0.005456347484141588,
-0.0024943933822214603,
0.03239402920007706,
0.040510181337594986,
0.0015118537703529,
-0.025407083332538605,
0.018825942650437355,
0.041780535131692886,
-0.0802440345287323,
-0.047391265630722046,
-0.013188745826482773,
0.0051784575916826725,
0.014106224291026592,
0.05875387787818909,
0.05723651126027107,
0.054907526820898056,
-0.057518813759088516,
-0.02157837711274624,
-0.039839718490839005,
-0.03380553424358368,
0.014626716263592243,
0.020854979753494263,
-0.010842119343578815,
0.008760150521993637,
-0.0789736807346344,
0.02923578955233097,
-0.009668806567788124,
-0.02916521392762661,
-0.06447046995162964,
-0.0039147199131548405,
0.009527656249701977,
-0.021701883524656296,
-0.03832234814763069,
0.07346881181001663,
-0.018561284989118576,
-0.011353789828717709,
0.037263721227645874,
0.01775849238038063,
-0.020431529730558395,
-0.10593342036008835,
0.008120561949908733,
-0.00038485554978251457,
0.008654287084937096,
0.03306449577212334,
-0.019884571433067322,
-0.05420177802443504,
0.0818672627210617,
0.04008673131465912,
-0.03013562224805355,
0.026906806975603104,
-0.011847816407680511,
-0.008266123943030834,
0.02632456086575985,
0.0399455800652504,
0.02344861999154091,
-0.02341333217918873,
-0.031723566353321075,
0.004538869485259056,
-0.043544918298721313,
-0.05893031507730484,
0.0011931625194847584,
-0.028141872957348824,
-0.042380426079034805,
-0.021596020087599754,
0.015623591840267181,
-0.026306916028261185,
0.042027547955513,
-0.065352663397789,
0.002182318363338709,
0.008804259821772575,
-0.0284594614058733,
0.0602712444961071,
-0.048661619424819946,
-0.006651715375483036,
0.057342372834682465,
0.07650354504585266,
-0.08680753409862518,
-0.03020619787275791,
-0.011362612247467041,
0.0059062642976641655,
0.05042600259184837,
0.051025889813899994,
0.07466859370470047,
0.0045653353445231915,
0.0594596303999424,
-0.026800943538546562,
-0.1132732406258583,
0.02348390780389309,
0.011071489192545414,
0.05910675600171089,
-0.011300859041512012,
0.011618447490036488,
-0.06358828395605087,
-0.029482802376151085,
0.028441816568374634,
-0.0182436965405941,
0.03645210713148117,
0.024313166737556458,
-0.008685164153575897,
0.018031971529126167,
0.03680498152971268,
0.06602312624454498,
-0.004102185368537903,
0.041110072284936905,
0.0018603189382702112,
0.09647633880376816,
-0.09139492362737656,
0.008116151206195354,
0.018667148426175117,
-0.020061008632183075,
0.032058797776699066,
0.05024956166744232,
0.07410398870706558,
-0.005491634830832481,
0.006501743104308844,
0.039204541593790054,
0.036205094307661057
] |
17,915 | imodels.rule_set.slipper_util | _get_design_matrices | produce design matrices used in most equations | def _get_design_matrices(self, X, y, rule):
""" produce design matrices used in most equations"""
preds = self._rule_predict(X, rule)
W_plus_idx = np.where((preds == 1) & (y == 1))
W_minus_idx = np.where((preds == 1) & (y == 0))
return np.sum(self.D[W_plus_idx]), np.sum(self.D[W_minus_idx])
| (self, X, y, rule) | [
0.017680393531918526,
-0.00824905838817358,
0.029861412942409515,
-0.034715909510850906,
0.018110310658812523,
0.00416931277140975,
-0.017465433105826378,
-0.04811502993106842,
-0.012189976871013641,
0.05739410221576691,
0.010774829424917698,
0.024756133556365967,
-0.015154622495174408,
0.061657458543777466,
0.02240949496626854,
-0.033014148473739624,
0.0021731029264628887,
-0.03322910889983177,
-0.010533000342547894,
0.001963741844519973,
-0.035378698259592056,
-0.03682967275381088,
0.026601199060678482,
0.06832119822502136,
-0.015987589955329895,
0.024254562333226204,
-0.0369013287127018,
-0.0644877552986145,
0.0493689589202404,
-0.011912321671843529,
-0.10024263709783554,
0.05434884876012802,
-0.018916407600045204,
-0.0413438156247139,
-0.030076373368501663,
0.019955378025770187,
0.0706857442855835,
0.0369013287127018,
0.014429135248064995,
0.003369932994246483,
0.012548242695629597,
-0.026135453954339027,
0.05194846913218498,
0.0024093342944979668,
-0.06097675487399101,
-0.02726398967206478,
-0.014626181684434414,
-0.01220789086073637,
-0.037152111530303955,
-0.04754180833697319,
0.04331427440047264,
-0.020976433530449867,
0.017331084236502647,
0.0012561677722260356,
0.024344127625226974,
-0.028661224991083145,
-0.0006756659713573754,
0.016301071271300316,
0.058325592428445816,
-0.05166185647249222,
-0.02108391374349594,
0.032082658261060715,
-0.02153174579143524,
0.003157213097438216,
-0.06162163242697716,
-0.04234695807099342,
-0.025293530896306038,
0.0031728872563689947,
0.05173351243138313,
0.027550602331757545,
-0.0431351438164711,
-0.0011324542574584484,
0.03211848437786102,
0.0031661696266382933,
0.030255505815148354,
-0.043959151953458786,
0.021424265578389168,
-0.07580894231796265,
0.016695164144039154,
-0.042132001370191574,
-0.026350414380431175,
0.02909114398062229,
-0.026225021108984947,
-0.029592715203762054,
-0.008025143295526505,
0.00922533217817545,
0.03419642522931099,
0.013031900860369205,
0.028213392943143845,
-0.03269170969724655,
0.02183627150952816,
0.011500316672027111,
0.008567019365727901,
0.009153679013252258,
-0.015271059237420559,
0.05212760344147682,
-0.0489032156765461,
0.0024339649826288223,
0.028625398874282837,
0.01823570393025875,
-0.025938408449292183,
0.048043377697467804,
-0.03754620626568794,
0.07211880385875702,
-0.07315777987241745,
-0.044496551156044006,
0.0018976865103468299,
-0.0016435420839115977,
-0.007653442677110434,
-0.032225966453552246,
-0.016310028731822968,
0.03819108381867409,
-0.016695164144039154,
0.015100882388651371,
-0.003190800314769149,
-0.02219453640282154,
-0.08705846965312958,
-0.017761003226041794,
-0.043242622166872025,
-0.0004629459581337869,
-0.029180709272623062,
0.03851352259516716,
-0.05198429524898529,
-0.011482403613626957,
-0.0018170768162235618,
-0.01739378087222576,
0.01934632658958435,
-0.001066958880983293,
0.08498053252696991,
-0.05997361242771149,
-0.02609962783753872,
-0.0029870369471609592,
-0.018379010260105133,
0.016077155247330666,
-0.04944061115384102,
-0.02495317906141281,
0.057071663439273834,
-0.06674482673406601,
0.021854184567928314,
0.011966061778366566,
-0.0036072838120162487,
0.052055951207876205,
-0.012189976871013641,
0.05775236710906029,
-0.051339417695999146,
-0.0006695082993246615,
0.05431302264332771,
0.07276368141174316,
-0.0130050303414464,
0.02276775985956192,
0.0013222228735685349,
-0.008737195283174515,
0.020474862307310104,
-0.07659712433815002,
-0.00047386184451170266,
0.010156821459531784,
0.038621000945568085,
-0.017286300659179688,
0.07093653082847595,
-0.030792903155088425,
-0.06502515077590942,
-0.03278127685189247,
-0.06434445083141327,
0.030972035601735115,
0.05180516466498375,
0.04206034913659096,
0.0019413501722738147,
-0.018343184143304825,
0.007966924458742142,
-0.016068199649453163,
-0.02120930701494217,
-0.041558776050806046,
-0.06824953854084015,
0.0001698961277725175,
-0.024218734353780746,
-0.007801227271556854,
-0.015315841883420944,
0.025275617837905884,
-0.0015203884104266763,
0.03498460724949837,
0.06115588918328285,
0.022624453529715538,
-0.028356699272990227,
-0.009431334212422371,
-0.006399514153599739,
0.015799500048160553,
0.024021688848733902,
0.0008094556978903711,
0.0076041813008487225,
0.030721250921487808,
-0.04514142870903015,
-0.04614457115530968,
-0.021854184567928314,
0.004279031418263912,
-0.006439819000661373,
0.03349780663847923,
0.010407607071101665,
0.022463234141469002,
0.015602454543113708,
-0.0320289172232151,
0.009449247270822525,
-0.022534888237714767,
-0.007765400689095259,
0.04381584748625755,
-0.02174670435488224,
0.010631523095071316,
-0.043600887060165405,
-0.0023936601355671883,
-0.05793150141835213,
0.034930866211652756,
0.02561596967279911,
0.002704903017729521,
-0.024577001109719276,
-0.014993403106927872,
0.07681208103895187,
0.024218734353780746,
0.020689820870757103,
-0.004505186341702938,
-0.04897486791014671,
-0.06154998019337654,
-0.026332499459385872,
0.0006331219919957221,
-0.040627285838127136,
0.033282846212387085,
-0.04277687892317772,
-0.06986173242330551,
0.02783721499145031,
0.009104417636990547,
-0.03618479520082474,
-0.06875111162662506,
-0.010255344212055206,
-0.049655571579933167,
0.04897486791014671,
-0.010891265235841274,
0.04292018339037895,
0.04739850014448166,
-0.02873287722468376,
0.005091845523566008,
-0.009458203800022602,
0.0036386321298778057,
-0.032799188047647476,
-0.04704023525118828,
0.06151415407657623,
0.02547266334295273,
-0.011455533094704151,
0.05993778631091118,
0.04410246014595032,
0.017098212614655495,
-0.01795804873108864,
-0.026959463953971863,
0.0031079514883458614,
-0.06076179817318916,
-0.016739945858716965,
-0.04865242913365364,
-0.012960247695446014,
-0.07054243981838226,
0.037331245839595795,
0.05001383647322655,
0.024039601907134056,
-0.0444607250392437,
0.026260847225785255,
0.0351279154419899,
-0.0017913265619426966,
-0.03636392951011658,
-0.004014810547232628,
0.02805217355489731,
0.005494893994182348,
0.05162603035569191,
-0.03722376748919487,
0.013506602495908737,
0.04768511280417442,
0.05212760344147682,
-0.0021361568942666054,
-0.0235738568007946,
-0.03829856216907501,
0.010864395648241043,
-0.02024199068546295,
0.023806730285286903,
-0.014402265660464764,
0.030004719272255898,
-0.008387886919081211,
-0.05922125652432442,
0.009834382683038712,
0.021979575976729393,
-0.010452390648424625,
-0.03263796865940094,
0.008244580589234829,
-0.013694691471755505,
0.03165274113416672,
-0.007653442677110434,
0.024272475391626358,
0.03629227727651596,
-0.0020891346503049135,
-0.027102770283818245,
0.0030609292443841696,
0.017761003226041794,
0.016999689862132072,
-0.013354339636862278,
-0.0013614081544801593,
0.09443873912096024,
-0.003799851518124342,
0.058361418545246124,
0.03672219440340996,
0.015226275660097599,
-0.0302375927567482,
0.010586739517748356,
0.03700880706310272,
-0.044317420572042465,
0.05252169445157051,
-0.04592961445450783,
-0.009547770954668522,
0.04216782748699188,
0.041952867060899734,
0.008060969412326813,
-0.07702704519033432,
-0.02663702517747879,
-0.024612827226519585,
0.051912643015384674,
0.07903333008289337,
0.07674042880535126,
0.04557134583592415,
0.0038110471796244383,
-0.009234288707375526,
-0.02178253047168255,
0.006305469665676355,
-0.012933378107845783,
0.008437148295342922,
-0.048759907484054565,
0.021943749859929085,
0.0026757940649986267,
-0.02294689230620861,
-0.03464425727725029,
0.0035848922561854124,
0.0395883172750473,
0.03976744785904884,
-0.035110000520944595,
0.03534287214279175,
-0.0291269700974226,
-0.018737275153398514,
-0.0315810889005661,
0.032924581319093704,
-0.001804761472158134,
-0.05090950056910515,
-0.011070397682487965,
0.07430422306060791,
-0.028392525389790535,
0.008253537118434906,
0.0038737435825169086,
-0.0002594624529592693,
0.0295748021453619,
-0.033372413367033005,
0.009574640542268753,
0.06380705535411835,
0.005167976953089237,
0.046216223388910294,
0.0671389177441597,
-0.05327405035495758,
-0.026690766215324402,
-0.006251729559153318,
0.008369972929358482,
0.025383098050951958,
0.0293419286608696,
-0.02792678028345108,
0.032440923154354095,
-0.010120995342731476,
-0.046896930783987045,
-0.023627597838640213,
-0.006815997418016195,
0.06918103247880936,
-0.05753741040825844,
-0.03131238743662834,
0.006130815017968416,
-0.061872418969869614,
0.043600887060165405,
-0.002353355288505554,
0.04944061115384102,
-0.02828504703938961,
0.010640479624271393,
0.037868645042181015,
-0.007519093342125416,
-0.02018824964761734,
0.009888122789561749,
-0.0017655761912465096,
-0.000855918216984719,
-0.020170336589217186,
-0.028714964166283607,
-0.03797612339258194,
0.033856071531772614,
-0.009431334212422371,
-0.01880892924964428,
0.07236959040164948,
-0.007160827983170748,
-0.016175677999854088,
-0.01009412482380867,
0.02099434658885002,
0.010550913400948048,
0.0014711269177496433,
0.056677572429180145,
-0.07186802476644516,
0.018970148637890816,
-0.06319800019264221,
-0.03387398645281792,
-0.016354812309145927,
0.002020840300247073,
-0.07867506146430969,
-0.020618168637156487,
-0.005244108382612467,
0.052664998918771744,
-0.025096485391259193,
0.039015091955661774,
-0.005270978435873985,
-0.024129169061779976,
-0.0035132390912622213,
-0.014258959330618382,
-0.00862523727118969,
-0.014706791378557682,
0.13040857017040253,
0.03098994866013527,
0.0969465896487236,
0.05126776546239853,
0.06283973902463913,
-0.018396923318505287,
0.043027665466070175,
0.012557199224829674,
-0.012010844424366951,
0.033641111105680466,
-0.07903333008289337,
0.013488688506186008,
-0.012431805953383446,
0.003622957970947027,
-0.035557832568883896,
-0.017017602920532227,
-0.018029700964689255,
-0.04256191849708557,
-0.07064992189407349,
-0.06871528923511505,
0.028929924592375755,
0.03274545073509216,
-0.018647709861397743,
0.011751102283596992,
0.029019489884376526,
-0.025813015177845955,
0.04478316381573677,
0.017984919250011444,
-0.057609062641859055,
-0.002819100162014365,
0.00918054860085249,
-0.0040909419767558575,
-0.08770334720611572,
0.011043528094887733,
0.06753300875425339,
0.06617160141468048,
0.011975018307566643,
0.007447440177202225,
0.011742145754396915,
0.011571969836950302,
0.03211848437786102,
-0.08899310231208801,
-0.028428351506590843,
0.05173351243138313,
0.07645381987094879,
-0.006735387723892927,
-0.03491295501589775,
0.05452797934412956,
-0.06445193290710449,
-0.03147360682487488,
-0.014617224223911762,
0.01049717329442501,
-0.023860469460487366,
-0.031151168048381805,
0.016686206683516502,
-0.009494030848145485,
-0.026529546827077866,
-0.055387817323207855,
-0.03783281520009041,
0.01304981391876936,
0.037152111530303955,
0.02312602661550045,
0.01822674833238125,
0.03308580070734024,
-0.033282846212387085,
-0.019758332520723343,
-0.05563860386610031,
0.008790935389697552,
-0.04456820338964462,
-0.021764617413282394,
-0.0253472700715065,
-0.03536078706383705,
-0.05893464386463165,
-0.022516975179314613,
0.005942726042121649,
0.025042744353413582,
0.047111887484788895,
-0.04686110094189644,
-0.0024877048563212156,
0.04094972461462021,
0.03220805153250694,
-0.00541428430005908,
-0.03983910381793976,
0.029180709272623062,
0.00003224037936888635,
-0.0484732948243618,
-0.06298304349184036,
0.03668636828660965,
-0.04370836913585663,
-0.01850440353155136,
0.015091925859451294,
-0.010282214730978012,
-0.0004942941595800221,
0.004140203353017569,
-0.013927564024925232,
-0.042096175253391266,
-0.055746082216501236,
-0.005696418229490519,
0.0031997570767998695,
0.03403520584106445,
0.005297848489135504,
0.019328413531184196,
-0.035020433366298676,
0.011303270235657692,
0.029556887224316597,
-0.0037931338883936405,
0.01127640064805746,
0.0018764145206660032,
0.01889849454164505,
0.0907127782702446,
-0.03682967275381088,
-0.01868353597819805,
0.04646700993180275,
-0.011213704012334347,
0.011563013307750225,
-0.056498438119888306,
0.03249466419219971,
0.07387430965900421,
-0.0044917515479028225,
-0.005167976953089237,
0.05474293977022171,
-0.041917040944099426,
-0.010945005342364311,
0.02414708212018013,
0.009296984411776066,
-0.02885827049612999,
-0.005275456700474024,
-0.009153679013252258,
0.022714020684361458,
0.04041232541203499,
0.018934322521090508,
0.013981304131448269,
-0.01654290035367012,
-0.04700440913438797,
-0.043242622166872025,
0.027317730709910393,
0.031061602756381035,
-0.02507857233285904,
0.12919047474861145,
0.08326085656881332,
0.038226909935474396,
0.018558142706751823,
-0.016130896285176277,
0.022033317014575005,
-0.022534888237714767,
-0.09623005986213684,
-0.0035983272828161716,
-0.0018484251340851188,
-0.013640951365232468,
-0.008132622577250004,
0.020259903743863106,
0.020170336589217186,
-0.04589378461241722,
-0.03980327770113945,
-0.03682967275381088,
0.0034841301385313272,
0.050802022218704224,
0.014626181684434414,
-0.014447048306465149,
-0.018208835273981094,
0.008244580589234829,
-0.02939566783607006,
-0.03521747887134552,
0.002270506462082267,
0.019310500472784042,
-0.00008039977547014132,
0.03231552988290787,
-0.002120482735335827,
0.0173489972949028,
-0.020976433530449867,
-0.03063168376684189,
-0.0066099949181079865,
0.009350724518299103,
-0.03847769275307655,
-0.022427408024668694,
0.008419235236942768,
-0.014214175753295422,
-0.02498900517821312,
-0.04463985934853554,
0.03700880706310272,
-0.051876816898584366,
-0.030309244990348816,
0.036937154829502106,
-0.011151007376611233,
0.00021775813365820795,
0.048759907484054565,
0.010183691047132015,
0.009001416154205799,
0.036578889936208725,
0.00652490695938468,
-0.020421123132109642,
0.014975490048527718,
0.004858973436057568,
-0.019776245579123497,
0.014429135248064995,
-0.02405751496553421,
0.013846954330801964,
-0.05305909365415573,
-0.017017602920532227,
-0.03416059911251068,
-0.005002279300242662,
0.030524203553795815,
-0.024308301508426666,
0.001715195132419467,
0.02117347903549671,
0.07702704519033432,
0.004608187358826399,
-0.030362984165549278,
0.014429135248064995,
0.06230233609676361,
0.0302375927567482,
-0.07631050795316696,
0.03344406560063362,
0.02294689230620861,
0.03790447115898132,
0.07150975614786148,
0.02525770477950573,
0.00692795543000102,
0.016175677999854088,
0.02330515906214714,
0.0038177648093551397,
0.034124769270420074,
-0.013112510554492474,
0.005812854506075382,
-0.006278599612414837,
0.04428159072995186,
0.04761346057057381,
-0.021245133131742477,
-0.03743872418999672,
-0.017859525978565216,
0.0373670719563961,
-0.06470271199941635,
0.03543243929743767,
-0.013443905860185623,
-0.04292018339037895,
-0.07100818306207657,
-0.052055951207876205,
0.027013204991817474,
0.06885859370231628,
0.027980521321296692,
-0.05108863487839699,
0.028356699272990227,
0.01739378087222576,
-0.06205155327916145,
0.01349764596670866,
-0.03854934871196747,
0.03588027134537697,
-0.07093653082847595,
0.019238846376538277,
0.057035837322473526,
0.049655571579933167,
-0.041737910360097885,
-0.01934632658958435,
-0.00591585598886013,
-0.0005113677470944822,
0.007129479665309191,
0.05610434710979462,
-0.03339032828807831,
-0.008065448142588139,
-0.008105752989649773,
0.01979415863752365,
0.026959463953971863,
0.04220365360379219,
-0.02231992967426777,
0.05352483689785004,
0.034805476665496826,
0.02939566783607006,
-0.016435422003269196,
0.031545259058475494,
-0.051697682589292526,
-0.0009874687530100346,
-0.04016154259443283,
0.015996545553207397,
-0.011312226764857769,
-0.06903772801160812,
-0.014223133213818073,
0.07387430965900421,
-0.0012516893912106752,
0.0271206833422184,
-0.0117869284003973,
-0.012978160753846169,
0.05764488875865936,
0.01441122218966484,
0.023770904168486595,
-0.013130423612892628,
-0.015862196683883667,
-0.02138843946158886,
0.045428041368722916,
-0.03077499009668827,
0.04385167360305786,
-0.015351668931543827,
0.025759276002645493,
0.009104417636990547,
-0.05990196019411087,
-0.001954785082489252,
0.012521372176706791,
-0.002330963732674718,
-0.010837526060640812,
0.018576055765151978,
-0.018862668424844742,
0.0029803195502609015,
0.07079322636127472,
-0.01895223557949066,
0.008961111307144165,
0.04442489892244339,
0.004171551670879126,
0.030792903155088425,
-0.03460842743515968,
-0.05739410221576691,
0.03672219440340996,
0.01943589374423027,
-0.06484602391719818,
-0.003154973965138197,
-0.056713398545980453,
0.014527658000588417,
0.03460842743515968,
0.017142994329333305,
0.036972980946302414,
-0.028159653767943382,
0.007156349718570709,
-0.02325141802430153,
-0.10325206071138382,
-0.00009845298336585984,
0.017465433105826378,
-0.020564429461956024,
0.03063168376684189,
0.0010568826692178845,
0.017331084236502647,
0.004791798535734415,
0.06337713450193405,
0.01841483637690544,
0.01588010974228382,
-0.00497988797724247,
-0.03125865012407303,
0.032799188047647476,
-0.010855439119040966,
0.033193282783031464,
-0.004312618635594845,
0.005839724559336901,
-0.004274553153663874,
0.08741673827171326,
-0.09730485826730728,
0.005499372724443674,
-0.043421756476163864,
-0.02828504703938961,
-0.014778443612158298,
-0.01605924218893051,
0.07702704519033432,
-0.004108855500817299,
0.00840132124722004,
0.0658133402466774,
0.000047687073674751446
] |
17,919 | imodels.rule_set.slipper_util | _grow_rule | Starts with empty conjunction of conditions and
greedily adds rules to maximize Z_tilde
| def _grow_rule(self, X, y):
""" Starts with empty conjunction of conditions and
greedily adds rules to maximize Z_tilde
"""
stop_condition = False
features = list(range(X.shape[1]))
# rule is stored as a list of dictionaries, each dictionary is a condition
curr_rule = []
while not stop_condition:
candidate_rule = curr_rule.copy()
for feat in features:
try:
pivots = np.percentile(X[:, feat], range(0, 100, 4),
method='linear')
except:
pivots = np.percentile(X[:, feat], range(0, 100, 4), # deprecated
interpolation='midpoint')
# get a list of possible rules
feature_candidates = [
self._make_candidate(X, y, curr_rule, feat, A_c)
for A_c in pivots
]
# get max Z_tilde and update candidate accordingly
tildes = [self._grow_rule_obj(X, y, r) for r in feature_candidates]
if max(tildes) > self._grow_rule_obj(X, y, candidate_rule):
candidate_rule = feature_candidates[
tildes.index(max(tildes))
]
preds = self._rule_predict(X, candidate_rule)
negative_coverage = np.where((preds == y) & (y == 0))
if self._grow_rule_obj(X, y, curr_rule) >= self._grow_rule_obj(X, y, candidate_rule) or \
len(negative_coverage) == 0:
stop_condition = True
else:
curr_rule = candidate_rule.copy()
return curr_rule
| (self, X, y) | [
0.016350524500012398,
0.021433066576719284,
-0.03260914236307144,
-0.02452119253575802,
0.005316907539963722,
-0.022627877071499825,
-0.03406129777431488,
-0.024061650037765503,
-0.026855668053030968,
-0.05793913081288338,
-0.0017083495622500777,
0.05356428399682045,
-0.0037085087969899178,
-0.010128318332135677,
-0.04790271818637848,
0.03430026024580002,
0.005367457401007414,
0.0014429637230932713,
0.029447488486766815,
0.03016437590122223,
0.021672029048204422,
-0.05959348380565643,
-0.00019056657038163394,
0.02663508802652359,
0.016865212470293045,
0.027002722024917603,
0.0040393793024122715,
0.015652021393179893,
-0.026561561971902847,
-0.010174272581934929,
-0.07712962478399277,
0.0346127487719059,
-0.0025987133849412203,
-0.01215030625462532,
0.03930008038878441,
-0.026561561971902847,
0.039483897387981415,
0.04168970510363579,
-0.04860122501850128,
-0.035348016768693924,
-0.019061826169490814,
-0.021469829604029655,
-0.0316716767847538,
0.030973169952630997,
-0.01957651413977146,
-0.009880165569484234,
-0.059372901916503906,
0.06786525249481201,
0.041910283267498016,
-0.045476336032152176,
0.00878185871988535,
-0.07069603353738785,
0.05731415003538132,
0.034796565771102905,
-0.0021196401212364435,
0.02718653902411461,
0.022646259516477585,
0.023013893514871597,
0.07462971657514572,
-0.0633433535695076,
0.022094808518886566,
0.008294743485748768,
-0.018822863698005676,
-0.032701049000024796,
-0.030936406925320625,
-0.04709392413496971,
-0.07896779477596283,
-0.010845204815268517,
0.01775672473013401,
0.020771324634552002,
-0.049005620181560516,
0.013951713219285011,
0.061137545853853226,
-0.011047404259443283,
-0.008896744810044765,
-0.05856410786509514,
-0.020513981580734253,
-0.07312241941690445,
0.026708615943789482,
-0.06815935671329498,
-0.0015670402208343148,
0.01808759570121765,
0.02395135909318924,
-0.04510870203375816,
-0.0004825197102036327,
-0.0069850473664700985,
0.09632012993097305,
-0.003085828386247158,
0.03641415387392044,
-0.03521934524178505,
-0.00738944485783577,
0.01950298808515072,
0.037756018340587616,
0.0032236913684755564,
0.059336140751838684,
0.05499805882573128,
-0.0384177602827549,
-0.014714553952217102,
0.013216445222496986,
-0.03757220134139061,
0.012076779268682003,
0.0342634953558445,
-0.04922620207071304,
0.047167450189590454,
0.023307999595999718,
0.0189515370875597,
0.01850118488073349,
0.01019265502691269,
-0.034778181463479996,
-0.04588073119521141,
-0.03933684527873993,
0.0005864912527613342,
-0.02724168449640274,
-0.012949910014867783,
-0.015348722226917744,
-0.0015624448424205184,
-0.05775531381368637,
-0.011856199242174625,
0.044814594089984894,
-0.022683022543787956,
0.00012443552259355783,
-0.05485100299119949,
-0.02071617916226387,
0.00424847099930048,
-0.01303262822329998,
-0.01022022683173418,
0.04757184907793999,
0.0333995558321476,
0.02010958455502987,
-0.025403514504432678,
-0.06150517985224724,
-0.008019017986953259,
-0.03053200989961624,
0.013280780985951424,
-0.04168970510363579,
-0.07617378234863281,
-0.019980911165475845,
-0.01950298808515072,
0.036579590290784836,
-0.041322071105241776,
0.04764537513256073,
0.016984693706035614,
-0.032370179891586304,
-0.016764113679528236,
0.011727526783943176,
-0.027021104469895363,
0.05128495395183563,
0.06069638580083847,
0.016966313123703003,
-0.0021989112719893456,
-0.057902365922927856,
0.02430061250925064,
0.006098130252212286,
-0.02338152751326561,
0.08330588042736053,
0.03867510333657265,
-0.04466753825545311,
-0.005588037893176079,
0.004043974913656712,
-0.015569303184747696,
-0.04260879009962082,
0.005344480276107788,
-0.09543780237436295,
0.00919085182249546,
0.00763300247490406,
-0.04231468215584755,
0.03255399689078331,
0.00919085182249546,
-0.043344058096408844,
0.0574612058699131,
-0.005050373263657093,
-0.07135777175426483,
-0.05679946392774582,
0.030679063871502876,
-0.024502810090780258,
0.057240623980760574,
0.014530736953020096,
-0.012894765473902225,
-0.020899996161460876,
0.04179999232292175,
0.024447666481137276,
-0.03988829627633095,
0.02075294405221939,
-0.046358656138181686,
0.007343490608036518,
0.005804022774100304,
0.07014457881450653,
-0.01699388399720192,
-0.017416663467884064,
0.04474106803536415,
-0.10999611765146255,
-0.06510799378156662,
0.04944678395986557,
-0.010578670538961887,
0.022866839542984962,
-0.02784828096628189,
0.009043797850608826,
0.095878966152668,
0.013556506484746933,
-0.032462090253829956,
-0.04018240422010422,
0.004742479417473078,
0.05889497697353363,
-0.034778181463479996,
0.01771996170282364,
0.0030927215702831745,
-0.02426384948194027,
0.027737990021705627,
-0.031543001532554626,
0.03543992340564728,
-0.06382127106189728,
0.01476969849318266,
-0.013437025249004364,
0.001545211998745799,
0.014962706714868546,
0.0032374775037169456,
0.041579414159059525,
0.016764113679528236,
0.01078086905181408,
-0.03433702141046524,
-0.04172646626830101,
-0.05146877095103264,
-0.027021104469895363,
0.016506770625710487,
0.04532928019762039,
-0.008464774116873741,
0.01763724535703659,
0.04944678395986557,
0.043380819261074066,
-0.04345434531569481,
0.008970270864665508,
-0.06830640882253647,
0.023510199040174484,
-0.06683587282896042,
0.007541093975305557,
0.0032259889412671328,
-0.01760048046708107,
0.028804128989577293,
-0.028565166518092155,
0.04172646626830101,
-0.019061826169490814,
-0.03235179930925369,
-0.0164424329996109,
0.035403162240982056,
-0.02130439504981041,
0.03439216688275337,
0.07587967067956924,
-0.021433066576719284,
0.017802679911255836,
0.006180847994983196,
-0.024668246507644653,
-0.04091767221689224,
-0.06933578848838806,
-0.038086891174316406,
-0.03282972425222397,
-0.0604022778570652,
-0.0005764387315139174,
-0.040402986109256744,
0.03602813929319382,
-0.04650570824742317,
0.02902470901608467,
-0.003437378676608205,
-0.002644667634740472,
-0.009213828481733799,
-0.06187281385064125,
0.023914596065878868,
0.016800876706838608,
-0.002180529525503516,
-0.030587155371904373,
0.01476969849318266,
0.00615327525883913,
-0.02369401603937149,
-0.022315388545393944,
-0.02071617916226387,
-0.018041642382740974,
0.08595284819602966,
0.03915302827954292,
-0.033748809248209,
0.02549542300403118,
-0.04466753825545311,
0.014595072716474533,
-0.03749867528676987,
0.0008283255156129599,
-0.0006129149114713073,
-0.017196083441376686,
0.006612817756831646,
-0.0455130971968174,
-0.0026653469540178776,
0.01182862650603056,
0.03457598388195038,
-0.03494361788034439,
0.0038050126750022173,
0.005165258888155222,
0.020054439082741737,
0.138818621635437,
-0.00762840686365962,
0.03584432229399681,
-0.061688996851444244,
0.01779348962008953,
-0.01363003347069025,
0.03698398917913437,
0.0005916610825806856,
0.028215914964675903,
-0.011194457300007343,
-0.013381879776716232,
-0.007890346460044384,
-0.016194280236959457,
-0.051909931004047394,
0.039778005331754684,
-0.016185089945793152,
0.06036551296710968,
0.028215914964675903,
0.03016437590122223,
-0.02071617916226387,
-0.013593269512057304,
-0.0005227297078818083,
-0.0037590584252029657,
-0.013914949260652065,
0.05415249988436699,
0.04819682613015175,
0.00031162731465883553,
-0.02720492146909237,
0.006635794881731272,
-0.0066587720066308975,
-0.014677789993584156,
-0.007141291629523039,
-0.01095549575984478,
-0.003113401122391224,
-0.039263319224119186,
-0.03707589581608772,
-0.046652764081954956,
0.01730637438595295,
-0.001181024475954473,
0.022425677627325058,
-0.0003998020547442138,
0.01793135143816471,
0.05422602593898773,
0.016800876706838608,
-0.00849694199860096,
-0.022609494626522064,
0.005546679254621267,
0.05003499612212181,
-0.011791862547397614,
0.012527130544185638,
0.04584397003054619,
-0.04091767221689224,
0.018712574616074562,
0.015946127474308014,
0.025973347947001457,
0.057240623980760574,
0.0012028526980429888,
0.0018657429609447718,
0.038013361394405365,
0.047498323023319244,
0.00434037996456027,
-0.020881615579128265,
-0.013924140483140945,
-0.029153382405638695,
0.03018275648355484,
-0.02007281966507435,
0.03615681082010269,
-0.023510199040174484,
-0.04918943718075752,
0.05529216304421425,
0.001750857220031321,
-0.024429284036159515,
-0.009962883777916431,
0.05536569282412529,
0.008699141442775726,
-0.04418961703777313,
-0.021488212049007416,
-0.013060200028121471,
0.05349075794219971,
0.004053165670484304,
-0.014163102954626083,
0.03733323886990547,
-0.006042985245585442,
-0.008391248062252998,
0.04727774113416672,
0.0332341194152832,
0.04911591112613678,
0.02845487743616104,
-0.03823394328355789,
0.013639223761856556,
-0.010918731801211834,
-0.017490191385149956,
-0.03262752294540405,
-0.023436671122908592,
0.0797765925526619,
-0.04029269516468048,
0.10543745011091232,
-0.015238432213664055,
0.026432890444993973,
-0.027076249942183495,
0.0037429744843393564,
0.029429107904434204,
0.023749161511659622,
0.04595425724983215,
-0.04404256120324135,
0.05084379017353058,
-0.052865780889987946,
0.014806462451815605,
-0.0021196401212364435,
0.015826646238565445,
-0.04106472432613373,
-0.06065962091088295,
0.049593836069107056,
0.07466647773981094,
0.00687016174197197,
0.09124677628278732,
-0.027094630524516106,
0.00033776380587369204,
0.020348545163869858,
-0.028344586491584778,
-0.02130439504981041,
-0.007541093975305557,
0.027168158441781998,
0.03130404278635979,
0.03483332693576813,
0.0009351691696792841,
0.06363745778799057,
-0.03900597617030144,
-0.027021104469895363,
-0.029723213985562325,
-0.07330623269081116,
-0.042755842208862305,
-0.04610131308436394,
-0.0156612116843462,
-0.08786454051733017,
0.02159850113093853,
-0.0408441461622715,
-0.020624270662665367,
-0.0053858389146625996,
-0.05437307804822922,
-0.03248047083616257,
-0.0168744046241045,
-0.0009001290309242904,
0.006199229508638382,
0.006286542396992445,
0.005054968409240246,
0.02904309146106243,
0.027995334938168526,
0.006911520380526781,
0.04312347620725632,
-0.030936406925320625,
0.010881968773901463,
0.0033431723713874817,
-0.04922620207071304,
-0.11323129385709763,
0.0206794161349535,
0.004060058854520321,
0.014760508202016354,
0.03277457877993584,
0.04389550909399986,
0.0030812330078333616,
0.007099932990968227,
-0.04474106803536415,
-0.016175899654626846,
-0.009314928203821182,
0.016966313123703003,
0.06977694481611252,
0.029723213985562325,
0.04143235832452774,
0.041836757212877274,
-0.08477641642093658,
0.025366751477122307,
-0.02014634758234024,
0.032112836837768555,
0.004501219838857651,
-0.0330503024160862,
-0.04643218219280243,
-0.04492488503456116,
-0.0657697319984436,
-0.01659867912530899,
-0.003409805940464139,
0.02959454245865345,
0.027333592996001244,
0.0351274348795414,
0.06194633990526199,
0.0005514511140063405,
0.025403514504432678,
-0.02014634758234024,
-0.007871964946389198,
-0.0057259006425738335,
-0.020863233134150505,
0.0014107957249507308,
-0.01879529096186161,
-0.044005800038576126,
-0.03621195629239082,
0.007564071100205183,
-0.0425720252096653,
-0.036818552762269974,
0.01763724535703659,
0.09036445617675781,
-0.01896991766989231,
0.003487928304821253,
0.03488847240805626,
0.001270635286346078,
0.09529075026512146,
-0.051395244896411896,
-0.002058750716969371,
0.028050480410456657,
-0.09580543637275696,
-0.019006680697202682,
0.004760861396789551,
0.035348016768693924,
-0.03793983533978462,
-0.0020024569239467382,
-0.06422567367553711,
0.012030825018882751,
0.039483897387981415,
-0.032682668417692184,
-0.004657464101910591,
0.030090847983956337,
-0.013317544013261795,
0.026212308555841446,
0.04882180318236351,
0.024760155007243156,
0.020183110609650612,
-0.020513981580734253,
-0.007228604983538389,
-0.02485206350684166,
-0.002555056707933545,
-0.033013541251420975,
0.03575241193175316,
0.05764502286911011,
0.03970447927713394,
-0.01730637438595295,
0.053123123943805695,
-0.03632224723696709,
0.029190145432949066,
-0.00303527875803411,
0.031212132424116135,
0.04466753825545311,
0.011148503050208092,
0.024999117478728294,
0.0072791543789207935,
-0.0449984110891819,
-0.028473258018493652,
-0.026874050498008728,
0.010459189303219318,
0.039851535111665726,
0.0269108135253191,
-0.018786100670695305,
-0.017269611358642578,
0.040991198271512985,
0.019466223195195198,
0.00962282158434391,
-0.023896215483546257,
-0.001102327834814787,
-0.003150164382532239,
0.07940895855426788,
-0.0073986356146633625,
0.010992258787155151,
0.07779137045145035,
0.024484429508447647,
0.009889356791973114,
-0.023271236568689346,
0.025642476975917816,
0.023271236568689346,
-0.02514616958796978,
-0.034961998462677,
0.021837463602423668,
-0.0604022778570652,
-0.054887767881155014,
0.004554067272692919,
-0.0041542649269104,
0.05838029086589813,
-0.003150164382532239,
0.06194633990526199,
0.03191063553094864,
0.008961080573499203,
0.002837675390765071,
-0.02663508802652359,
-0.005744282156229019,
-0.026451271027326584,
0.051321715116500854,
-0.020054439082741737,
-0.017802679911255836,
-0.013795468956232071,
0.01716851070523262,
-0.012177878990769386,
0.022609494626522064,
-0.07985012233257294,
-0.019080208614468575,
-0.0012166389496996999,
-0.04165294021368027,
0.09889356791973114,
0.010863586328923702,
0.009043797850608826,
-0.012113542295992374,
0.08132065832614899,
-0.03555021435022354,
-0.06308600306510925,
-0.033583372831344604,
0.007876560091972351,
-0.04654247313737869,
-0.0009960585739463568,
-0.02610201947391033,
0.044814594089984894,
-0.014916752465069294,
-0.0010529269929975271,
-0.03937361016869545,
0.027094630524516106,
-0.017940541729331017,
-0.024116795510053635,
-0.021396303549408913,
-0.052865780889987946,
0.0005353671149350703,
-0.04786595702171326,
-0.00027199176838621497,
0.022021280601620674,
0.03104669786989689,
0.010725723579525948,
-0.06503446400165558,
-0.026543179526925087,
-0.02926367148756981,
0.00590971764177084,
0.02398812398314476,
-0.010891159065067768,
-0.036009758710861206,
0.016497578471899033,
0.0442999042570591,
0.024649864062666893,
0.020642653107643127,
0.0012235321337357163,
0.04389550909399986,
-0.0726812556385994,
-0.027646081522107124,
0.025091025978326797,
-0.01896991766989231,
-0.022719785571098328,
0.010854396037757397,
-0.029208526015281677,
-0.02814238891005516,
0.006709321867674589,
0.031543001532554626,
0.04702039808034897,
-0.010845204815268517,
-0.08301177620887756,
-0.061688996851444244,
-0.007876560091972351,
0.04904238507151604,
0.012481176294386387,
-0.059042032808065414,
-0.016276998445391655,
0.0432705283164978,
0.05485100299119949,
0.01820707693696022,
-0.005289335269480944,
-0.008602636866271496,
0.020918378606438637,
-0.03277457877993584,
0.008280957117676735,
0.027756372466683388,
0.025293223559856415,
-0.009549294598400593,
0.045402806252241135,
0.010459189303219318,
-0.0735635757446289,
0.02128601260483265,
-0.010008838027715683,
-0.005013609770685434,
-0.0006272756145335734,
0.005895931273698807,
-0.02573438547551632,
0.0652550458908081,
-0.026212308555841446,
-0.06999752670526505,
0.02667185105383396,
0.021837463602423668,
-0.042167626321315765,
-0.02873060293495655,
0.0021207891404628754,
0.027315210551023483,
-0.05099084600806236,
-0.04650570824742317,
0.024153558537364006,
-0.029668070375919342,
-0.00947576854377985,
0.07054898142814636,
-0.003265050007030368,
-0.03317897394299507,
0.020661035552620888,
0.06602708250284195,
0.06863728165626526,
-0.008248789235949516,
0.0024723391979932785,
-0.015707165002822876,
0.006530100014060736,
0.0032719431910663843,
0.009852592833340168,
0.03882215917110443,
-0.004861960653215647,
-0.020587507635354996,
-0.021690409630537033,
-0.05771854892373085,
0.08007070422172546,
0.082717664539814,
-0.038601577281951904,
0.03251723200082779,
-0.0006669111899100244,
-0.037149421870708466,
-0.005137686152011156,
-0.010918731801211834,
0.035072289407253265,
-0.00945738609880209,
0.003926791250705719,
0.0281240064650774,
-0.02637774497270584,
0.0004009508993476629,
0.06275513768196106,
-0.02007281966507435,
-0.05323341488838196,
-0.005408816039562225,
0.025954965502023697,
-0.008501538075506687,
0.01465021725744009,
-0.016139136627316475,
-0.014107957482337952,
0.06900491565465927,
0.07349005341529846,
-0.0014946622541174293,
-0.03762734681367874,
-0.03930008038878441,
0.02016472816467285,
0.06779172271490097,
-0.0353112518787384,
-0.03319735825061798,
-0.07209303975105286,
0.008598041720688343,
0.052792251110076904,
0.017398282885551453,
0.03797660022974014,
0.04444696009159088,
0.011148503050208092,
-0.0034603558015078306,
-0.046358656138181686,
0.011883771046996117,
0.08852628618478775,
-0.0027802325785160065,
-0.0033362791873514652,
-0.011074976064264774,
-0.018041642382740974,
0.014521545730531216,
0.039557427167892456,
-0.012481176294386387,
0.011516137048602104,
0.01926402561366558,
-0.029502633959054947,
0.03431864082813263,
-0.01067057903856039,
0.051615823060274124,
0.016828449442982674,
0.01654353365302086,
0.008455583825707436,
0.013970094732940197,
-0.041027963161468506,
-0.0055237021297216415,
-0.03319735825061798,
-0.026800524443387985,
-0.006599031388759613,
0.010109936818480492,
0.04823359102010727,
-0.0018439146224409342,
0.020311782136559486,
0.022370534017682076,
0.03845452517271042
] |
17,920 | imodels.rule_set.slipper_util | _grow_rule_obj | equation to maximize in growing rule
equation 6 from Cohen & Singer (1999)
| def _grow_rule_obj(self, X, y, rule):
""" equation to maximize in growing rule
equation 6 from Cohen & Singer (1999)
"""
W_plus, W_minus = self._get_design_matrices(X, y, rule)
# C_R = self._sample_weight(W_plus, W_minus)
return np.sqrt(W_plus) - np.sqrt(W_minus)
| (self, X, y, rule) | [
0.027428286150097847,
0.014892425388097763,
0.012491564266383648,
-0.006772908847779036,
0.002376497955992818,
-0.03139723837375641,
-0.021652044728398323,
-0.0032292024698108435,
-0.016247892752289772,
-0.0414259247481823,
0.015450559556484222,
0.01009956281632185,
0.029979756101965904,
0.021191364154219627,
-0.06477895379066467,
0.019862473011016846,
-0.0034772618673741817,
-0.029660820960998535,
0.0034063877537846565,
0.03763416036963463,
0.02299865335226059,
-0.06460176408290863,
-0.000720369047485292,
0.02547924779355526,
-0.009754051454365253,
0.00805750209838152,
0.021970979869365692,
0.022892342880368233,
0.014821551740169525,
-0.030706215649843216,
-0.06878333538770676,
0.027339693158864975,
0.027534598484635353,
-0.018338680267333984,
0.0393705777823925,
-0.0356142483651638,
0.03820115327835083,
0.0009213636512868106,
-0.018010886386036873,
-0.05428957939147949,
-0.046422552317380905,
0.020854711532592773,
0.035986337810754776,
0.03279700130224228,
0.010879178531467915,
-0.007725279778242111,
-0.018267806619405746,
0.08802566677331924,
-0.012845935299992561,
-0.043658461421728134,
0.008270124904811382,
-0.06215660646557808,
0.041744861751794815,
0.01771853119134903,
-0.015415122732520103,
0.0234416164457798,
0.0016843678895384073,
0.009125043638050556,
0.06920858472585678,
-0.07512657344341278,
0.03552565723657608,
-0.02039402909576893,
-0.02652464248239994,
-0.060101259499788284,
-0.028420524671673775,
-0.04787547141313553,
-0.04376477375626564,
0.005616774316877127,
0.04443807527422905,
0.003944587893784046,
-0.015769492834806442,
0.01940179243683815,
0.05067500099539757,
-0.03088339976966381,
-0.008287843316793442,
-0.031220052391290665,
-0.0042391587048769,
-0.060420192778110504,
0.04596187174320221,
-0.042737096548080444,
0.007007678970694542,
0.051064807921648026,
0.025071721524000168,
-0.026187989860773087,
-0.019472666084766388,
-0.028987517580389977,
0.07434695959091187,
-0.010932333767414093,
-0.0024606611113995314,
-0.028828050941228867,
0.007840449921786785,
0.0070121088065207005,
0.04110699146986008,
-0.002892550313845277,
0.052340541034936905,
0.03517128527164459,
-0.02096102200448513,
-0.022254476323723793,
0.04535944014787674,
-0.011472749523818493,
-0.015858085826039314,
0.027233382686972618,
-0.07399258762598038,
0.05088762193918228,
-0.001986690331250429,
0.013359772972762585,
0.05847115442156792,
-0.01444060355424881,
-0.02967854030430317,
0.01711610145866871,
-0.018728487193584442,
0.011357578448951244,
-0.06024300679564476,
0.039937570691108704,
-0.0334525890648365,
0.028987517580389977,
-0.0862538143992424,
0.0026444909162819386,
0.059179894626140594,
-0.006896938197314739,
0.009948955848813057,
-0.04837159067392349,
-0.048619650304317474,
-0.024504728615283966,
0.02608167752623558,
0.03844921290874481,
0.03756328672170639,
-0.021935541182756424,
0.048017218708992004,
-0.012482705526053905,
-0.03603949397802353,
-0.029572229832410812,
-0.038980770856142044,
-0.005169381387531757,
-0.04316234216094017,
-0.04124874249100685,
-0.02935960702598095,
-0.04964732378721237,
0.04741479083895683,
-0.03552565723657608,
0.06329059600830078,
0.07477220147848129,
0.030334126204252243,
-0.019348636269569397,
-0.0017962161218747497,
-0.008947858586907387,
0.03976038470864296,
0.06811003386974335,
-0.022183600813150406,
0.01488356664776802,
-0.06268816441297531,
0.022750593721866608,
0.08348972350358963,
-0.035897742956876755,
0.0819304883480072,
0.038059405982494354,
-0.02944820001721382,
-0.03304506093263626,
0.0031273209024220705,
-0.055388130247592926,
-0.037705034017562866,
0.024345261976122856,
-0.06442458182573318,
0.010498229414224625,
0.035224441438913345,
-0.007339901756495237,
0.04496963322162628,
0.007131708785891533,
-0.0517735481262207,
0.025780463591217995,
-0.044827885925769806,
-0.1099257692694664,
-0.06364496797323227,
0.031822483986616135,
0.010002111084759235,
0.07852853089570999,
0.005793959833681583,
-0.0004786771896760911,
-0.0033687357790768147,
0.034427106380462646,
0.013979921117424965,
-0.010772867128252983,
0.061058059334754944,
-0.006378671154379845,
-0.014750677160918713,
0.0419929176568985,
0.020411748439073563,
0.02448701113462448,
0.00586040411144495,
0.021705200895667076,
-0.06446001678705215,
-0.036819107830524445,
-0.01436086930334568,
-0.025833619758486748,
-0.018834799528121948,
0.005873693153262138,
0.02712707221508026,
0.07300034910440445,
-0.014449462294578552,
0.025231188163161278,
-0.039335139095783234,
0.013873609714210033,
0.00306973559781909,
-0.01920688897371292,
0.01988019235432148,
-0.012473845854401588,
-0.03517128527164459,
0.016256753355264664,
-0.0419929176568985,
0.03318680822849274,
-0.010365340858697891,
0.05900270864367485,
-0.018498146906495094,
-0.0031140318606048822,
0.050108008086681366,
-0.020145969465374947,
0.004252447746694088,
-0.006795056629925966,
-0.014476040378212929,
-0.022786030545830727,
-0.06233379244804382,
-0.009461695328354836,
-0.03547250106930733,
0.00718043465167284,
0.017514768987894058,
-0.056096870452165604,
0.018214650452136993,
0.008146095089614391,
0.007379768416285515,
-0.04663517326116562,
-0.010808303952217102,
-0.05361627787351608,
0.07140567898750305,
-0.03364749252796173,
0.032495785504579544,
0.02420351468026638,
-0.04560749977827072,
0.036500174552202225,
-0.03410817310214043,
0.0347106046974659,
-0.039547763764858246,
-0.039618637412786484,
-0.018099479377269745,
0.04869052395224571,
-0.03488778695464134,
0.07363821566104889,
0.08448195457458496,
0.009993251413106918,
-0.009683177806437016,
-0.0017286642687395215,
-0.038059405982494354,
-0.025904493406414986,
-0.04805265739560127,
-0.011348719708621502,
-0.024097202345728874,
-0.010914615355432034,
0.0020952164195477962,
-0.056344930082559586,
-0.010312185622751713,
-0.0398312583565712,
0.021457141265273094,
0.03285015746951103,
0.029855726286768913,
0.012137194164097309,
-0.038980770856142044,
0.04571381211280823,
-0.009807206690311432,
0.03228316456079483,
-0.047024983912706375,
0.0398312583565712,
0.08845090866088867,
0.01663770154118538,
0.00612175278365612,
-0.008850406855344772,
-0.03692542016506195,
0.020854711532592773,
0.006325515918433666,
0.0452885664999485,
0.03440938889980316,
-0.033860113471746445,
-0.030050629749894142,
-0.03205282241106033,
-0.004752995911985636,
0.007676553912460804,
-0.078741155564785,
-0.009125043638050556,
-0.011251267045736313,
0.0036699508782476187,
0.005638922564685345,
0.03187563642859459,
-0.060739126056432724,
-0.00013773389218840748,
-0.00629893783479929,
0.03059990331530571,
0.08419845998287201,
0.014157106168568134,
0.02012825198471546,
-0.0026378463953733444,
0.014396307058632374,
0.04447351396083832,
0.030210096389055252,
0.038094840943813324,
-0.03887445852160454,
-0.002635631477460265,
-0.019065139815211296,
0.00438090693205595,
0.004739707335829735,
-0.05779784917831421,
0.027463722974061966,
0.017514768987894058,
0.007729709148406982,
0.02576274424791336,
-0.005674359854310751,
0.02407948486506939,
-0.018728487193584442,
0.017018649727106094,
0.01011728122830391,
-0.0063299452885985374,
0.056061431765556335,
0.06665711849927902,
0.0027065055910497904,
-0.06935033202171326,
0.005297841038554907,
-0.0301569402217865,
-0.03717347979545593,
-0.04656429961323738,
-0.029855726286768913,
0.022378504276275635,
-0.014192543923854828,
-0.055175505578517914,
-0.024823661893606186,
0.013501521199941635,
0.01800202764570713,
-0.017062945291399956,
-0.007787294685840607,
0.009275651536881924,
0.06534594297409058,
0.012606735341250896,
-0.02668410912156105,
-0.027428286150097847,
0.02588677406311035,
0.0715828686952591,
-0.010950052179396152,
0.029749413952231407,
0.03653561323881149,
-0.044579826295375824,
-0.00643182685598731,
-0.0463162399828434,
0.004172713961452246,
-0.03173388913273811,
-0.02544381096959114,
-0.0022391793318092823,
0.003793980460613966,
-0.010170437395572662,
-0.0012602305505424738,
0.022697439417243004,
-0.03536618873476982,
-0.035259876400232315,
0.007929042913019657,
-0.04170942306518555,
-0.034940943121910095,
-0.02696760557591915,
-0.05145461484789848,
0.05368715152144432,
-0.017700813710689545,
0.013315476477146149,
-0.032105978578329086,
0.0073443311266601086,
0.03890989348292351,
-0.018064042553305626,
-0.025993086397647858,
-0.04780459776520729,
-0.01256243884563446,
0.015627745538949966,
-0.019809318706393242,
0.07583531737327576,
-0.047060418874025345,
0.012704187072813511,
0.032779283821582794,
0.008575769141316414,
0.051419179886579514,
0.036021772772073746,
-0.0436939001083374,
0.007893606089055538,
-0.00644068606197834,
-0.012633312493562698,
-0.04879683628678322,
-0.001534867798909545,
0.023849142715334892,
-0.031663015484809875,
0.08476545661687851,
-0.003612365573644638,
0.04681235924363136,
-0.039654072374105453,
-0.023494772613048553,
0.040504563599824905,
0.02283918671309948,
0.04294972121715546,
-0.07200811058282852,
0.030263252556324005,
-0.037102606147527695,
-0.015512574464082718,
-0.02824333868920803,
0.013448365032672882,
-0.07916639745235443,
-0.06446001678705215,
0.01771853119134903,
0.1352986991405487,
-0.030422719195485115,
0.05102936923503876,
-0.012057460844516754,
-0.0035237730480730534,
-0.01477725524455309,
-0.010684274137020111,
-0.01892339065670967,
-0.030458156019449234,
0.06275904178619385,
0.014015357941389084,
0.01952582225203514,
0.013652128167450428,
0.02448701113462448,
-0.027658628299832344,
0.016141582280397415,
0.006254641804844141,
-0.043587587773799896,
-0.06818091124296188,
-0.01988019235432148,
-0.049824509769678116,
-0.023654239252209663,
0.004553662613034248,
-0.03400186076760292,
-0.02567415125668049,
0.00909846555441618,
-0.01920688897371292,
-0.04128417745232582,
-0.049470141530036926,
0.008655502460896969,
0.016930056735873222,
0.023228995501995087,
0.007503798231482506,
0.05209248140454292,
0.00190031249076128,
0.028952080756425858,
0.04408370703458786,
-0.07725279778242111,
-0.024097202345728874,
0.014803833328187466,
-0.06251098215579987,
-0.12317922711372375,
0.037740472704172134,
0.07944989204406738,
0.019136013463139534,
0.030529029667377472,
0.037456974387168884,
-0.009275651536881924,
-0.014945581555366516,
-0.027410568669438362,
-0.07753629237413406,
0.005537040997296572,
-0.011614497750997543,
0.025018567219376564,
0.03855552524328232,
0.03660648688673973,
0.005297841038554907,
-0.10815391689538956,
0.0012391897616907954,
-0.014750677160918713,
0.03483463451266289,
0.027339693158864975,
-0.04840702936053276,
-0.001953468192368746,
-0.013528098352253437,
-0.05152548849582672,
-0.045217692852020264,
0.0334525890648365,
0.01688576117157936,
-0.005984433926641941,
0.034303076565265656,
0.032141417264938354,
-0.01313829142600298,
-0.027410568669438362,
-0.03176932781934738,
-0.01156134158372879,
0.018622176721692085,
-0.012890231795608997,
0.024735070765018463,
-0.04192204400897026,
-0.04851333796977997,
-0.04124874249100685,
0.025904493406414986,
-0.028633147478103638,
0.04929295554757118,
0.007942331954836845,
0.03919339179992676,
-0.054395891726017,
0.009984392672777176,
-0.000027391050025471486,
-0.011375296860933304,
0.01616816036403179,
-0.00182500877417624,
-0.012208067812025547,
-0.0017618865240365267,
-0.08504895120859146,
-0.003720891661942005,
-0.01647823490202427,
0.014112810604274273,
-0.06205029785633087,
-0.005049781408160925,
-0.04465069994330406,
0.03256665915250778,
0.016256753355264664,
-0.002314483281224966,
-0.03316909074783325,
0.024575602263212204,
-0.010028689168393612,
-0.008292272686958313,
0.020252281799912453,
0.10418496280908585,
0.01648709364235401,
-0.04344584047794342,
0.015911241993308067,
-0.031538985669612885,
-0.0033908840268850327,
-0.031149178743362427,
0.04007931798696518,
0.015113906934857368,
0.0021550164092332125,
-0.03600405529141426,
0.05163180083036423,
-0.007986628450453281,
0.05156092718243599,
-0.007415205240249634,
0.02627658285200596,
0.06481438875198364,
-0.00322034303098917,
0.030971992760896683,
-0.0022336423862725496,
-0.04259534925222397,
-0.04691867157816887,
-0.01445832196623087,
-0.017133820801973343,
-0.007326612714678049,
0.01924232579767704,
0.02363652177155018,
-0.015131626278162003,
0.07356734573841095,
0.015751775354146957,
-0.023813705891370773,
-0.06414108723402023,
-0.021421704441308975,
-0.023937735706567764,
0.06027844548225403,
-0.0008848191355355084,
0.054183270782232285,
0.10142087191343307,
0.01027674786746502,
0.016221314668655396,
-0.03724435344338417,
0.0035769285168498755,
0.012314379215240479,
-0.031663015484809875,
-0.07005907595157623,
0.02967854030430317,
-0.021988697350025177,
0.0012192564317956567,
0.024026328697800636,
0.0009030913934111595,
0.07470133155584335,
-0.004628966562449932,
0.014981018379330635,
0.009195918217301369,
0.06612555682659149,
0.05216335505247116,
-0.011295563541352749,
-0.010356481187045574,
-0.02044718526303768,
0.015601166523993015,
0.0068083456717431545,
-0.05152548849582672,
-0.0040021734312176704,
0.03848465159535408,
-0.007220301777124405,
-0.005040922202169895,
-0.011844838038086891,
-0.008487176150083542,
0.01536196656525135,
-0.05134830251336098,
0.06173136457800865,
-0.033860113471746445,
-0.0028859057929366827,
0.009745192714035511,
0.032708410173654556,
-0.07321297377347946,
-0.039654072374105453,
-0.01968528889119625,
0.018250087276101112,
-0.022573409602046013,
-0.00306973559781909,
-0.00037845675251446664,
0.042666222900152206,
-0.03272612765431404,
0.0003499409940559417,
0.005630063358694315,
0.06307797133922577,
-0.004201506730169058,
0.011587919667363167,
-0.009488273411989212,
-0.059463392943143845,
-0.004434062633663416,
-0.03635842725634575,
-0.0005797282210551202,
-0.03667736053466797,
0.008221399039030075,
-0.027694065123796463,
-0.05896727368235588,
-0.015459418296813965,
-0.02624114416539669,
-0.021864667534828186,
0.010427355766296387,
-0.027215665206313133,
0.011348719708621502,
0.018267806619405746,
0.03727978840470314,
0.007800583261996508,
0.038342900574207306,
0.030529029667377472,
0.06300710141658783,
-0.041461363434791565,
-0.05365171283483505,
-0.03297418728470802,
-0.015911241993308067,
-0.015937818214297295,
0.02099645882844925,
-0.046139057725667953,
-0.008983295410871506,
0.034940943121910095,
0.02028771862387657,
0.043906521052122116,
-0.006821634713560343,
-0.03724435344338417,
-0.016150441020727158,
0.0117208082228899,
0.043056029826402664,
-0.004030965734273195,
-0.042099229991436005,
-0.02360108308494091,
0.04341040179133415,
0.012110616080462933,
-0.03579143434762955,
-0.016052989289164543,
-0.00873966608196497,
-0.002290120115503669,
-0.06187311187386513,
0.019667569547891617,
0.09709755331277847,
0.03699629381299019,
0.0060243005864322186,
-0.021067334339022636,
0.006520419381558895,
-0.046139057725667953,
0.0009911303641274571,
0.00659129349514842,
-0.010515948757529259,
-0.006936804857105017,
0.03125549107789993,
0.004899173974990845,
0.03731522709131241,
-0.02700304239988327,
-0.019029702991247177,
0.0007225838489830494,
-0.02115592733025551,
-0.038661833852529526,
-0.01289909053593874,
-0.004877025727182627,
-0.012695327401161194,
-0.048619650304317474,
0.018462710082530975,
0.005094077903777361,
-0.005324418656527996,
0.0005991078214719892,
0.0323185995221138,
0.0019324272871017456,
-0.02000422216951847,
-0.011109518818557262,
0.08377321809530258,
0.018551303073763847,
-0.016026411205530167,
0.03323996439576149,
0.02308724634349346,
0.0013455009320750833,
-0.02652464248239994,
0.005554759409278631,
0.009647740051150322,
-0.005838256329298019,
0.002903624437749386,
-0.035738278180360794,
-0.05145461484789848,
0.07640230655670166,
0.08207223564386368,
-0.007401916664093733,
0.027339693158864975,
0.008008776232600212,
-0.02003965899348259,
-0.005630063358694315,
0.012349816039204597,
-0.0053421370685100555,
-0.0152202183380723,
-0.005891411565244198,
0.02503628470003605,
-0.01571633666753769,
-0.006573575083166361,
0.03299190476536751,
-0.008952287957072258,
-0.03393098711967468,
0.013829314149916172,
0.0055237519554793835,
-0.0356142483651638,
0.044544387608766556,
-0.051667239516973495,
-0.0035769285168498755,
0.032300882041454315,
0.020819274708628654,
0.05531725659966469,
-0.05861290171742439,
-0.006631160620599985,
0.03127320855855942,
0.10461021214723587,
-0.057585228234529495,
-0.07335472106933594,
-0.04245360195636749,
0.017940012738108635,
0.02496541105210781,
0.016336485743522644,
0.049505576491355896,
0.05893183499574661,
0.07232704758644104,
-0.045182254165410995,
-0.049859948456287384,
0.04900945723056793,
0.05333277955651283,
-0.007295605260878801,
0.022980935871601105,
0.005160522181540728,
-0.07484307885169983,
0.010755148716270924,
0.03852008655667305,
-0.020429465919733047,
0.025496967136859894,
0.009576866403222084,
-0.011393015272915363,
0.033062778413295746,
0.01835639774799347,
0.08809653669595718,
0.03355889767408371,
0.02767634578049183,
-0.016301048919558525,
0.01704522781074047,
-0.029696257784962654,
0.005222537089139223,
-0.01680602692067623,
-0.017302146181464195,
-0.009302228689193726,
0.001992227276787162,
0.08781304210424423,
-0.004553662613034248,
0.008004346862435341,
0.06601924449205399,
0.024380698800086975
] |
17,921 | imodels.rule_set.slipper_util | _make_candidate | Make candidate rules for grow routine to compare scores | def _make_candidate(self, X, y, curr_rule, feat, A_c):
""" Make candidate rules for grow routine to compare scores"""
# make candidate rules
candidates = [curr_rule.copy() for _ in range(3)]
candidates = [
x + [{
'feature': int(feat),
'operator': operator,
'pivot': float(A_c)}]
for x, operator in zip(candidates, ['>', '<', '=='])
]
# pick best condition
Zs = [self._grow_rule_obj(X, y, r) for r in candidates]
return candidates[Zs.index(max(Zs))]
| (self, X, y, curr_rule, feat, A_c) | [
-0.017231231555342674,
-0.01724008098244667,
-0.02527601271867752,
-0.028302760794758797,
-0.01060247328132391,
-0.00471270177513361,
0.026762835681438446,
0.007403145544230938,
0.0012235324829816818,
-0.07752726227045059,
0.013956677168607712,
0.06202181056141853,
-0.008266034536063671,
0.003531207563355565,
-0.042374491691589355,
-0.020532334223389626,
0.004121954552829266,
-0.020620835945010185,
-0.026638934388756752,
0.03246232867240906,
0.012841559015214443,
-0.024868905544281006,
-0.02247936651110649,
0.043648913502693176,
0.05136623606085777,
0.06860631704330444,
0.03177201747894287,
0.016036462038755417,
-0.013753124512732029,
0.003624133998528123,
-0.03971944749355316,
0.030373694375157356,
-0.0142575828358531,
-0.006425204686820507,
0.019647320732474327,
0.03607318922877312,
0.035506777465343475,
0.03177201747894287,
0.02681593783199787,
-0.02600172348320484,
-0.015620504505932331,
-0.04485253244638443,
-0.027665551751852036,
0.02616102620959282,
-0.030196692794561386,
-0.014107130467891693,
-0.010080314241349697,
0.03377215191721916,
0.03377215191721916,
-0.07048255205154419,
-0.005438413470983505,
-0.0801469087600708,
0.03201982378959656,
0.025753919035196304,
0.002149478765204549,
-0.0006366572342813015,
0.0015952384565025568,
0.032426927238702774,
0.03642719238996506,
-0.025329113006591797,
0.01100072916597128,
0.0037303357385098934,
0.0011062680277973413,
-0.014646989293396473,
-0.02446179836988449,
-0.07844767719507217,
-0.05908356234431267,
-0.03132951259613037,
-0.029895788058638573,
0.047861579805612564,
-0.023789187893271446,
-0.009505054913461208,
0.06697789579629898,
-0.045064933598041534,
0.023169677704572678,
-0.03653339669108391,
-0.010823726654052734,
-0.038409627974033356,
0.041029270738363266,
-0.05317166820168495,
0.00602694833651185,
0.006960638333112001,
-0.0019746883772313595,
-0.037949420511722565,
0.02210766077041626,
-0.02435559779405594,
0.061597004532814026,
-0.008549239486455917,
0.020249130204319954,
0.01087682694196701,
0.004186118487268686,
-0.027665551751852036,
0.014841691590845585,
-0.005332211963832378,
0.05830474942922592,
0.06690709292888641,
0.001882868236862123,
0.01765603758394718,
0.06003937870264053,
-0.011319334618747234,
-0.013744274154305458,
0.016877224668860435,
-0.1204327642917633,
0.026780536398291588,
0.008128857240080833,
-0.018656104803085327,
0.02292187325656414,
0.019434917718172073,
-0.05458768829703331,
-0.01200079545378685,
-0.05819854885339737,
-0.014469985850155354,
-0.04881739616394043,
0.037595413625240326,
-0.04708276689052582,
0.005677367560565472,
-0.05625151842832565,
-0.00934575218707323,
-0.027293844148516655,
-0.043825913220644,
-0.000025063885914278217,
-0.06577426940202713,
-0.024019291624426842,
0.02633802965283394,
-0.030798502266407013,
0.0013441157061606646,
0.045171137899160385,
0.0025621168315410614,
0.005354337394237518,
-0.029665684327483177,
-0.005677367560565472,
-0.008372236974537373,
-0.025736220180988312,
-0.03639179468154907,
-0.05848175287246704,
-0.047967780381441116,
-0.02534681372344494,
-0.010159965604543686,
-0.02173595502972603,
-0.050764426589012146,
0.06680089235305786,
0.03327654302120209,
-0.02336438186466694,
-0.02230236306786537,
-0.025665419176220894,
-0.01521339826285839,
0.01636391691863537,
0.049773212522268295,
-0.0030776376370340586,
0.043825913220644,
-0.04187888279557228,
-0.0021240345668047667,
-0.019452616572380066,
-0.03692280128598213,
0.06697789579629898,
0.0006084474152885377,
-0.021346548572182655,
-0.05642852187156677,
0.034781068563461304,
-0.051826443523168564,
0.01902781054377556,
-0.009195299819111824,
-0.08545699715614319,
0.029258577153086662,
0.045348137617111206,
-0.012965461239218712,
-0.0020266829524189234,
0.000813107006251812,
-0.03359514847397804,
0.023417482152581215,
0.003641834482550621,
-0.03826802223920822,
-0.048958998173475266,
0.02371838688850403,
-0.06485385447740555,
0.023028075695037842,
0.008628890849649906,
-0.04548974335193634,
0.05370267480611801,
0.01941721700131893,
0.014859392307698727,
0.004232581704854965,
0.03224992752075195,
-0.020089827477931976,
0.027577050030231476,
-0.002847533905878663,
0.04017965495586395,
0.028001856058835983,
0.0012191074201837182,
0.037489213049411774,
-0.06789831072092056,
-0.027223043143749237,
-0.017797639593482018,
0.013832775875926018,
-0.031276408582925797,
-0.0012943336041644216,
-0.012744207866489887,
0.10159965604543686,
-0.015045245178043842,
0.01886850781738758,
-0.03936544060707092,
0.006460605189204216,
0.017098478972911835,
0.013877026736736298,
0.022957274690270424,
0.0480031818151474,
-0.010407770052552223,
0.005456114187836647,
-0.03738300874829292,
0.006496005691587925,
-0.02644423209130764,
0.020426133647561073,
-0.02129344642162323,
0.0011903444537892938,
0.022939573973417282,
-0.01322211604565382,
0.039825648069381714,
0.013310616835951805,
-0.01774453930556774,
-0.024691902101039886,
0.004071066156029701,
-0.03575458377599716,
0.04612695053219795,
0.032338425517082214,
0.05341947078704834,
-0.030922403559088707,
0.005283535923808813,
0.02644423209130764,
-0.015390400774776936,
-0.004805628210306168,
-0.01087682694196701,
-0.11257383227348328,
0.06545566767454147,
-0.039471644908189774,
-0.006438479758799076,
0.038480427116155624,
0.004460472613573074,
0.07030554860830307,
-0.08297895640134811,
0.030161291360855103,
-0.030479896813631058,
0.02426709607243538,
0.026497332379221916,
0.015310749411582947,
-0.010354668833315372,
-0.0016804211772978306,
0.0817045345902443,
-0.02200145833194256,
-0.026479631662368774,
0.014921342954039574,
-0.006177400704473257,
-0.020514635369181633,
-0.028196560218930244,
-0.025665419176220894,
-0.03858662769198418,
-0.049773212522268295,
-0.03653339669108391,
-0.045064933598041534,
0.008748367428779602,
-0.03465716540813446,
0.01141668576747179,
0.10096244513988495,
0.045879147946834564,
0.034692566841840744,
-0.07759806513786316,
0.0009663251112215221,
-0.006615482736378908,
0.035949286073446274,
-0.025134410709142685,
0.019735822454094887,
-0.030568398535251617,
-0.027488548308610916,
0.0031440136954188347,
0.031895920634269714,
-0.029470980167388916,
-0.014487686567008495,
-0.03724140673875809,
0.00947850476950407,
0.007429696153849363,
-0.07434121519327164,
-0.012009645812213421,
0.03787861764431,
-0.04828638583421707,
0.021700553596019745,
-0.04432152211666107,
-0.05133083835244179,
-0.02490430697798729,
-0.009274951182305813,
0.014434585347771645,
0.00393610168248415,
-0.06733189523220062,
-0.03724140673875809,
0.01141668576747179,
0.025311412289738655,
0.09501514583826065,
0.04538353905081749,
0.037666212767362595,
-0.023895390331745148,
0.06173860654234886,
-0.005336637143045664,
0.014646989293396473,
-0.0314888134598732,
-0.01743478514254093,
-0.02138194814324379,
-0.052640657871961594,
-0.015770956873893738,
-0.043719712644815445,
-0.07101355493068695,
0.024568000808358192,
-0.0020908466540277004,
0.033241141587495804,
-0.005243710707873106,
0.0210279431194067,
-0.007345619611442089,
-0.03879903256893158,
-0.004126379732042551,
-0.027311544865369797,
-0.016487818211317062,
0.06191560998558998,
0.03536517545580864,
-0.024886606261134148,
-0.0290638729929924,
-0.04584374651312828,
0.010806025937199593,
-0.01929331384599209,
-0.020886341109871864,
-0.06630527973175049,
-0.007628824561834335,
-0.026196427643299103,
-0.0011416686465963721,
-0.04527733847498894,
0.044533926993608475,
0.02789565548300743,
0.015974510461091995,
-0.011983095668256283,
0.03844502568244934,
0.03212602436542511,
0.022974975407123566,
-0.002127353334799409,
-0.048250988125801086,
0.012664556503295898,
0.03706440329551697,
-0.0025245037395507097,
0.03961324691772461,
0.04386131465435028,
-0.0008816956542432308,
0.021824456751346588,
-0.002604154869914055,
-0.008319135755300522,
-0.04871119558811188,
-0.03628559038043022,
-0.042551495134830475,
0.043542709201574326,
0.02329357899725437,
0.04665796086192131,
0.043365705758333206,
-0.04428612068295479,
-0.03194902092218399,
0.03492267057299614,
-0.04134787246584892,
0.06690709292888641,
-0.04559594392776489,
0.0012368076713755727,
0.03318804129958153,
-0.027488548308610916,
0.007788126822561026,
-0.017257781699299812,
-0.006199526134878397,
0.01966502144932747,
-0.05533110350370407,
0.0022125360555946827,
-0.015018695034086704,
0.03439166024327278,
-0.01759408600628376,
-0.0023696261923760176,
0.02318737842142582,
-0.009832510724663734,
-0.0007174148340709507,
0.030249793082475662,
-0.009850210510194302,
0.0579153448343277,
0.051401637494564056,
-0.015974510461091995,
0.040392059832811356,
-0.06156160309910774,
-0.046693362295627594,
-0.060676589608192444,
-0.011354735121130943,
0.07851848006248474,
0.041383273899555206,
0.0260902252048254,
0.03341814503073692,
0.009726308286190033,
-0.05674712359905243,
0.02563001774251461,
-0.017452483996748924,
0.042268287390470505,
0.01006261445581913,
-0.01308936346322298,
0.01367347314953804,
-0.012646855786442757,
0.008451887406408787,
0.012832709588110447,
-0.0036683848593384027,
-0.02994888834655285,
0.0038874258752912283,
0.06368564069271088,
0.0858817994594574,
-0.05940216779708862,
0.08064251393079758,
-0.0519680455327034,
0.015638204291462898,
0.0361085869371891,
-0.020780138671398163,
-0.06545566767454147,
0.016726773232221603,
0.03439166024327278,
0.056994929909706116,
-0.005181759595870972,
-0.002260105684399605,
0.031541913747787476,
-0.027223043143749237,
0.00895192101597786,
0.01476204115897417,
-0.0462331548333168,
0.016620570793747902,
0.00891652051359415,
-0.0006737172370776534,
-0.04152487590909004,
-0.016487818211317062,
-0.0440383180975914,
-0.030108191072940826,
0.027594750747084618,
-0.06280062347650528,
-0.049419205635786057,
-0.01750558614730835,
-0.04003805294632912,
0.059225164353847504,
0.03486957028508186,
0.002725844504311681,
0.06719029694795609,
0.009567005559802055,
0.009832510724663734,
0.0662698820233345,
-0.049773212522268295,
-0.011266233399510384,
0.01313361432403326,
-0.031807418912649155,
-0.12078677117824554,
0.008597915060818195,
0.04357811063528061,
0.01214239839464426,
-0.0020654024556279182,
0.07108435779809952,
0.05079982802271843,
0.012514104135334492,
-0.03745381161570549,
-0.020072126761078835,
0.01570015586912632,
-0.00312631344422698,
0.05628691613674164,
0.017452483996748924,
0.09211230278015137,
0.0140363285318017,
-0.08106732368469238,
-0.013399118557572365,
-0.02155895158648491,
0.021435050293803215,
-0.024479499086737633,
-0.013841625303030014,
-0.022089960053563118,
-0.04520653560757637,
-0.05561430752277374,
-0.008460737764835358,
-0.006376529112458229,
0.018160495907068253,
0.02672743611037731,
0.006531406659632921,
0.060959793627262115,
0.010779475793242455,
-0.005150783807039261,
-0.011434386484324932,
-0.007199592422693968,
0.010398919694125652,
-0.008549239486455917,
-0.03051529824733734,
-0.048675794154405594,
-0.01809854432940483,
-0.1204327642917633,
0.003398455446586013,
-0.043259505182504654,
0.03455096483230591,
0.030373694375157356,
0.025311412289738655,
-0.020001325756311417,
-0.011708741076290607,
0.059154365211725235,
0.0020078765228390694,
0.03439166024327278,
0.022957274690270424,
-0.007819102145731449,
-0.011390135623514652,
-0.09572315961122513,
0.00442064693197608,
0.04725977033376694,
-0.04793238267302513,
-0.05207424983382225,
-0.027470847591757774,
-0.07759806513786316,
0.026019424200057983,
0.012912360951304436,
-0.05200344696640968,
0.0380910225212574,
0.006765935104340315,
-0.021063342690467834,
0.027754053473472595,
0.05795074626803398,
0.01308936346322298,
-0.03901143744587898,
-0.026780536398291588,
0.029895788058638573,
-0.05341947078704834,
0.026922138407826424,
-0.009956412017345428,
0.054835494607686996,
0.05044582113623619,
0.036497995257377625,
-0.014399184845387936,
0.011151181533932686,
-0.02391308918595314,
-0.004925105255097151,
-0.020443832501769066,
0.013487620279192924,
0.05936676636338234,
-0.045879147946834564,
0.03224992752075195,
0.030090490356087685,
0.03292253613471985,
0.04694116488099098,
-0.05412748083472252,
0.03030289337038994,
0.0581277459859848,
0.021240346133708954,
0.02552381530404091,
0.014487686567008495,
0.022992674261331558,
0.00728809367865324,
0.016788722947239876,
-0.040462858974933624,
0.0010581454262137413,
0.009407703764736652,
0.04393211752176285,
-0.005672942381352186,
0.029205476865172386,
0.014894792810082436,
0.013248666189610958,
0.033241141587495804,
-0.042551495134830475,
0.024125494062900543,
0.012478703632950783,
-0.0031816267874091864,
-0.03663959726691246,
0.03439166024327278,
0.0007683031726628542,
-0.027541648596525192,
-0.00952275563031435,
0.03635639324784279,
0.03184282034635544,
0.023895390331745148,
-0.012319400906562805,
0.06244661659002304,
-0.0033276542089879513,
-0.02120494656264782,
-0.0110626807436347,
-0.041383273899555206,
-0.03474566712975502,
0.012222048826515675,
0.0005863220430910587,
-0.026869038119912148,
0.03186051920056343,
0.007221717853099108,
-0.01308051310479641,
0.03961324691772461,
-0.0673673003911972,
0.004163993056863546,
-0.010806025937199593,
-0.009310351684689522,
0.03996725007891655,
-0.025842420756816864,
-0.01799234375357628,
-0.006022523157298565,
0.09083788096904755,
-0.046976566314697266,
-0.06779210269451141,
-0.018833106383681297,
-0.00027836469234898686,
-0.015886008739471436,
0.024426398798823357,
-0.013514170423150063,
-0.016080712899565697,
-0.0559329129755497,
-0.0323738269507885,
-0.051755644381046295,
-0.0010299355490133166,
0.01476204115897417,
-0.011390135623514652,
-0.04658715799450874,
-0.036320991814136505,
-0.014133680611848831,
-0.013992078602313995,
0.03738300874829292,
0.0012279575457796454,
0.03724140673875809,
-0.026869038119912148,
-0.019806623458862305,
-0.016478968784213066,
-0.01578865759074688,
0.01208929717540741,
-0.015169147402048111,
-0.007664225064218044,
-0.031276408582925797,
0.010867977514863014,
0.021789055317640305,
0.0530654639005661,
0.007615549024194479,
0.020727038383483887,
0.04871119558811188,
-0.06361483782529831,
0.007451821584254503,
0.04729517176747322,
0.016620570793747902,
0.008832444436848164,
0.033152639865875244,
-0.009049272164702415,
0.00048814076581038535,
0.016151513904333115,
0.07717325538396835,
0.06701329350471497,
-0.00019138437346555293,
-0.03738300874829292,
-0.06085359305143356,
0.025488415732979774,
0.04775537922978401,
-0.04035665839910507,
-0.0016914837760850787,
-0.062305014580488205,
0.04885279759764671,
0.01984202302992344,
0.024249395355582237,
0.01842600107192993,
-0.009770559147000313,
-0.011903444305062294,
-0.04885279759764671,
0.02870986796915531,
0.01823129691183567,
0.02490430697798729,
0.035135071724653244,
0.05062282457947731,
0.030603798106312752,
-0.022585568949580193,
-0.0037635238841176033,
0.03157731518149376,
0.06368564069271088,
-0.025683118030428886,
-0.028851469978690147,
0.029134675860404968,
0.05497709661722183,
-0.03283403441309929,
-0.06403964757919312,
0.06492465734481812,
-0.04141867533326149,
-0.057348936796188354,
-0.025152109563350677,
-0.0032126023434102535,
0.02164745330810547,
-0.06308382749557495,
-0.0029692233074456453,
0.020266830921173096,
-0.023399781435728073,
-0.018178196623921394,
0.08460737764835358,
0.005199459847062826,
-0.016523219645023346,
0.0032081773970276117,
0.07717325538396835,
-0.0023386506363749504,
0.0043918839655816555,
0.015328450128436089,
0.01675332337617874,
-0.005841095466166735,
-0.03380754962563515,
0.04902980104088783,
0.05324246734380722,
-0.02653273195028305,
-0.03773701563477516,
-0.003241365309804678,
-0.10825496166944504,
0.07462441921234131,
0.04460472613573074,
-0.014638138934969902,
0.042445290833711624,
0.022886473685503006,
-0.03492267057299614,
0.024019291624426842,
0.0003559417382348329,
-0.015593954361975193,
-0.008137707598507404,
-0.007044714875519276,
0.06439364701509476,
-0.04934840649366379,
-0.01679757423698902,
0.033719051629304886,
-0.0350111722946167,
-0.0011704316129907966,
0.0018452551448717713,
0.028727568686008453,
0.007628824561834335,
0.018532201647758484,
0.012230899184942245,
0.01600991189479828,
0.042622294276952744,
0.008553664200007915,
0.031152507290244102,
-0.028922270983457565,
-0.004340995568782091,
0.02230236306786537,
0.10336968302726746,
-0.06414584815502167,
-0.023311279714107513,
-0.02996658906340599,
0.012284000404179096,
0.02148815058171749,
-0.002409451873973012,
0.06414584815502167,
0.031187908723950386,
0.011514037847518921,
0.01100957952439785,
-0.04329490661621094,
0.044073719531297684,
0.048038583248853683,
-0.027400046586990356,
0.03228532522916794,
0.007774851750582457,
-0.007513772696256638,
0.001043763943016529,
0.051295436918735504,
0.003986990079283714,
0.0003974268038291484,
-0.013788525015115738,
-0.04672876372933388,
-0.024302495643496513,
0.0075491731986403465,
0.09112108498811722,
0.021771354600787163,
-0.02164745330810547,
-0.03593158721923828,
-0.0010067039402201772,
-0.006438479758799076,
-0.019470317289233208,
-0.03175431862473488,
0.015797507017850876,
0.016664821654558182,
0.014337234199047089,
0.05232205241918564,
-0.02453259937465191,
-0.01313361432403326,
0.0510830320417881,
0.05387967824935913
] |
17,922 | imodels.rule_set.slipper_util | _make_default_rule |
Make the default rule that is true for every observation
of data set. Without default rule a SlipperBaseEstimator would never
predict negative
| def _make_default_rule(self, X, y):
"""
Make the default rule that is true for every observation
of data set. Without default rule a SlipperBaseEstimator would never
predict negative
"""
default_rule = []
features = random.choices(
range(X.shape[1]),
k=random.randint(2, 8)
)
default_rule.append({
'feature': str(features[0]),
'operator': '>',
'pivot': str(min(X[:, features[0]]))
})
for i, x in enumerate(features):
if i % 2:
default_rule.append({
'feature': x,
'operator': '<',
'pivot': str(max(X[:, x]))
})
else:
default_rule.append({
'feature': x,
'operator': '>',
'pivot': str(min(X[:, x]))
})
return default_rule
| (self, X, y) | [
0.003378144931048155,
-0.034095484763383865,
0.030488543212413788,
-0.03693079575896263,
-0.013351074419915676,
-0.01141301542520523,
-0.017639927566051483,
-0.015217353589832783,
-0.0073125846683979034,
0.01496612373739481,
0.008770614862442017,
0.06542744487524033,
-0.000268193514784798,
0.005459764041006565,
-0.010273508727550507,
0.02069057710468769,
0.010811857879161835,
-0.014643114060163498,
0.06162310391664505,
0.04069924354553223,
0.06994958221912384,
-0.048595041036605835,
-0.028711987659335136,
-0.009887690655887127,
0.022503020241856575,
0.017236165702342987,
-0.04468303173780441,
-0.016410695388913155,
-0.028353087604045868,
-0.018447453156113625,
-0.08290586620569229,
-0.03068593703210354,
-0.012839642353355885,
0.035261910408735275,
0.04676464945077896,
-0.04217073321342468,
-0.002116387477144599,
0.07902974635362625,
-0.04909750074148178,
-0.00463429419323802,
0.01669781655073166,
-0.07730703055858612,
-0.044144682586193085,
0.0336289145052433,
-0.05896724760532379,
0.0057468838058412075,
-0.038940634578466415,
0.052255820482969284,
0.05279416963458061,
-0.053978536278009415,
-0.008492467924952507,
-0.02316698618233204,
0.08254696428775787,
0.06539155542850494,
-0.04794901981949806,
0.017720680683851242,
0.0393713153898716,
0.014804619364440441,
0.014804619364440441,
0.01580953784286976,
0.008407228626310825,
0.020367566496133804,
-0.010408096015453339,
-0.04863093048334122,
0.027671178802847862,
-0.04662109166383743,
-0.058644235134124756,
0.010668298229575157,
0.02261069044470787,
0.045113712549209595,
-0.026145854964852333,
-0.02200056053698063,
0.028119804337620735,
0.02648680843412876,
0.010937472805380821,
-0.024835869669914246,
-0.02296959049999714,
-0.03847406432032585,
0.05868012458086014,
-0.039694324135780334,
-0.027294334024190903,
0.02916061319410801,
0.000005607810180663364,
0.008627055212855339,
-0.016311997547745705,
-0.053799089044332504,
0.0551987960934639,
0.02320287562906742,
0.08599240332841873,
-0.031385790556669235,
-0.02916061319410801,
0.03262399509549141,
0.030004028230905533,
0.019254976883530617,
0.023615609854459763,
0.07400514930486679,
-0.03782804310321808,
0.027186663821339607,
0.026899544522166252,
-0.04479070007801056,
-0.01853717677295208,
0.06435074657201767,
-0.04367811232805252,
0.05171746760606766,
0.0029676530975848436,
-0.014050928875803947,
0.01679651252925396,
0.031403739005327225,
-0.059577375650405884,
-0.03772037476301193,
-0.05986449494957924,
0.003591241780668497,
-0.02508709952235222,
0.005580892786383629,
-0.03962254524230957,
-0.027778849005699158,
-0.010587546043097973,
0.012139787897467613,
-0.0028667126316577196,
-0.01245382521301508,
-0.03553108498454094,
0.0029048456344753504,
-0.025194769725203514,
-0.02183905616402626,
-0.025786954909563065,
-0.01381764467805624,
0.04863093048334122,
0.04461125284433365,
0.009250643663108349,
0.01914730668067932,
-0.027707068249583244,
-0.02025989629328251,
-0.05885957553982735,
0.006859473418444395,
-0.04540083184838295,
-0.08592062443494797,
0.05405031889677048,
0.05720863491296768,
0.0668630450963974,
-0.013647167012095451,
0.06564278155565262,
-0.006195508874952793,
0.013315184973180294,
0.008129081688821316,
0.012094925157725811,
0.024674365296959877,
0.03926364332437515,
0.09266794472932816,
0.04834381118416786,
0.021982615813612938,
0.002577349543571472,
0.042780861258506775,
-0.005374525208026171,
-0.0629151463508606,
0.09087344259023666,
0.02628941461443901,
-0.03772037476301193,
-0.06445841491222382,
0.0057468838058412075,
-0.011305345222353935,
-0.0040465956553816795,
-0.050353650003671646,
-0.024297520518302917,
0.018501287326216698,
0.017774514853954315,
-0.0034970303531736135,
-0.005607810337096453,
-0.013395937159657478,
0.04690821096301079,
0.056885626167058945,
-0.01799882762134075,
-0.06226912513375282,
-0.04270908236503601,
-0.000436007248936221,
0.05082022026181221,
0.06754495203495026,
-0.0006516275461763144,
0.015235299244523048,
-0.011798832565546036,
0.056885626167058945,
0.03711024671792984,
-0.009313451126217842,
-0.015010986477136612,
-0.062089674174785614,
-0.0020681603346019983,
-0.01119767501950264,
0.02431546524167061,
-0.006303178612142801,
-0.08907894045114517,
0.05426565930247307,
-0.026989268139004707,
-0.02454875037074089,
0.014993041753768921,
0.018052661791443825,
-0.007819530554115772,
-0.026576533913612366,
-0.005500140134245157,
0.007949631661176682,
0.0474824495613575,
-0.034472331404685974,
-0.017657872289419174,
0.026522699743509293,
0.04428824037313461,
0.04385756328701973,
-0.028694042935967445,
0.016940074041485786,
-0.025230659171938896,
0.03201386705040932,
-0.06158721446990967,
-0.01600693352520466,
0.02300547994673252,
0.017936021089553833,
-0.014544416218996048,
0.007025464437901974,
0.02069057710468769,
0.0017159898998215795,
0.05347607657313347,
0.018447453156113625,
-0.042601414024829865,
0.02934006229043007,
0.016527337953448296,
-0.071995310485363,
0.009977416135370731,
0.03368275240063667,
0.1052294373512268,
0.006437766365706921,
0.024297520518302917,
-0.06341760605573654,
-0.013503607362508774,
0.015002014115452766,
0.015683922916650772,
-0.10034839808940887,
-0.012983202002942562,
-0.04636986181139946,
0.04069924354553223,
0.010461931116878986,
0.018824297934770584,
-0.018465397879481316,
-0.05268649756908417,
0.036787234246730804,
-0.010928500443696976,
-0.007317070849239826,
-0.011924447491765022,
-0.002978868782520294,
0.007124162279069424,
0.03743325546383858,
0.04593918099999428,
-0.021874945610761642,
-0.01129637286067009,
0.012669164687395096,
0.0314575731754303,
-0.00671591330319643,
-0.03181647136807442,
0.0014400857035070658,
0.018860187381505966,
-0.05878779664635658,
-0.019775381311774254,
-0.036446280777454376,
0.036571893841028214,
-0.034867119044065475,
-0.05042542889714241,
0.008716779761016369,
-0.05139445886015892,
-0.018608957529067993,
-0.038725294172763824,
-0.007644566707313061,
-0.028532538563013077,
0.024835869669914246,
0.034508220851421356,
0.010040223598480225,
-0.006195508874952793,
-0.02842486836016178,
-0.04274497181177139,
-0.02087002620100975,
0.03955076262354851,
0.06158721446990967,
0.023525886237621307,
-0.01625816337764263,
0.0698419138789177,
-0.011574520729482174,
0.03922775387763977,
0.00031291579944081604,
-0.031385790556669235,
0.006173077505081892,
0.005047029349952936,
0.008317504078149796,
-0.03510040417313576,
-0.027294334024190903,
-0.00030870994669385254,
-0.01786424033343792,
-0.012139787897467613,
0.04421646147966385,
0.03129606693983078,
0.004064540844410658,
0.052650608122348785,
0.003963600378483534,
0.06022339686751366,
-0.04662109166383743,
0.039155974984169006,
-0.04676464945077896,
0.022090286016464233,
-0.012498687021434307,
0.030811551958322525,
-0.004768881946802139,
-0.03285728022456169,
-0.007173510733991861,
-0.0051995618268847466,
-0.042206622660160065,
0.023077260702848434,
-0.04654931277036667,
0.049922969192266464,
0.030991002917289734,
-0.011377125047147274,
-0.02530243992805481,
-0.002292472869157791,
-0.0043808212503790855,
0.012731972150504589,
0.0034588973503559828,
0.068442203104496,
0.03319823741912842,
-0.042386073619127274,
0.008487981744110584,
-0.07145696133375168,
0.0011075425427407026,
-0.00845657754689455,
-0.000699854688718915,
0.007536896970123053,
-0.05279416963458061,
-0.056383166462183,
0.02858637273311615,
0.004984221886843443,
0.004849634133279324,
0.01257046777755022,
0.02645091898739338,
-0.041847724467515945,
0.0023844409734010696,
0.04156060144305229,
0.059613265097141266,
-0.0010935229947790504,
0.01624021865427494,
-0.01421243418008089,
0.00912054255604744,
-0.0014636385021731257,
0.029286228120326996,
0.04823613911867142,
0.006576839834451675,
-0.011556575074791908,
0.04166827350854874,
0.032534271478652954,
0.02200056053698063,
0.01970360241830349,
0.0016094415914267302,
0.04902572184801102,
0.04927695170044899,
0.062089674174785614,
-0.02759939804673195,
-0.03386219963431358,
0.001904412405565381,
0.03847406432032585,
-0.013952231965959072,
0.048810381442308426,
-0.0971183031797409,
-0.014131681993603706,
0.08218806982040405,
0.009537763893604279,
-0.002642400097101927,
0.015307079069316387,
0.04766190052032471,
-0.003344498109072447,
-0.030793607234954834,
-0.04034034535288811,
-0.047087661921978,
0.007985522039234638,
-0.036033544689416885,
0.003588998457416892,
0.023848894983530045,
-0.020403455942869186,
-0.012983202002942562,
0.050927888602018356,
0.01101822592318058,
0.028729934245347977,
0.02103153057396412,
-0.013988121412694454,
0.07174408435821533,
-0.0002742219076026231,
-0.020241951569914818,
-0.013019092381000519,
-0.026361193507909775,
0.07924509048461914,
-0.06815508008003235,
0.05893135443329811,
-0.015145573765039444,
0.0031044837087392807,
-0.01506482157856226,
-0.017873212695121765,
-0.035674646496772766,
-0.012866559438407421,
0.02914266847074032,
-0.01061446312814951,
-0.006998547352850437,
-0.0074471719563007355,
-0.006051948759704828,
0.03998144343495369,
-0.030452651903033257,
-0.04870270937681198,
-0.027922408655285835,
0.04195539280772209,
0.030596213415265083,
-0.011350207962095737,
0.07206708937883377,
-0.005553975235670805,
0.030991002917289734,
0.032570160925388336,
-0.049958858639001846,
0.015701869502663612,
0.01857306808233261,
0.061551325023174286,
0.08441324532032013,
0.00011439932859502733,
0.0037819072604179382,
0.04769778996706009,
-0.023507939651608467,
0.003846957813948393,
0.0008344421512447298,
0.014912288635969162,
-0.030380873009562492,
-0.03736147657036781,
-0.011475822888314724,
-0.01990099623799324,
0.028317198157310486,
-0.0409504733979702,
-0.0567779578268528,
-0.029106779024004936,
-0.06661181151866913,
0.013315184973180294,
-0.0361950509250164,
-0.009196808561682701,
0.00569304870441556,
-0.02494353987276554,
0.022485075518488884,
0.035046570003032684,
-0.02533832937479019,
0.028658153489232063,
0.04217073321342468,
-0.04166827350854874,
-0.02029578760266304,
-0.04504192993044853,
-0.004315770696848631,
-0.09101700037717819,
-0.024620529264211655,
0.025840789079666138,
-0.007850934751331806,
0.05850067734718323,
0.051896918565034866,
0.03689490631222725,
0.005549489054828882,
-0.005908388644456863,
-0.015351940877735615,
0.02977074310183525,
-0.013010120019316673,
0.06596579402685165,
0.011951365508139133,
-0.008505926467478275,
0.010793913155794144,
-0.028550483286380768,
-0.02878376841545105,
-0.017523285001516342,
0.001322321593761444,
-0.023113150149583817,
0.004100430756807327,
-0.003793122945353389,
-0.07386159151792526,
0.01814238727092743,
-0.03536958247423172,
-0.050497207790613174,
0.03958665207028389,
0.03111661784350872,
0.010174810886383057,
0.02668420411646366,
0.012552522122859955,
-0.003909765277057886,
-0.06086941435933113,
-0.02510504424571991,
0.015495501458644867,
-0.03685901686549187,
0.0070972447283566,
-0.08678198605775833,
-0.037217915058135986,
-0.0486668199300766,
0.025356274098157883,
0.00019332925148773938,
0.004620835650712252,
0.007308098487555981,
0.03361096978187561,
-0.038366395980119705,
0.0023821978829801083,
0.07059559971094131,
-0.0009314572671428323,
0.06722193956375122,
-0.01238204538822174,
0.01334210205823183,
-0.002440518932417035,
-0.09144768118858337,
-0.037612706422805786,
0.028711987659335136,
-0.015316051431000233,
-0.05426565930247307,
-0.026738038286566734,
-0.07515362650156021,
0.03152935206890106,
0.043390993028879166,
-0.024046290665864944,
-0.008712293580174446,
0.04500604048371315,
0.00976207572966814,
-0.009093625470995903,
0.04593918099999428,
0.038366395980119705,
0.020439347252249718,
-0.004741964396089315,
0.027366114780306816,
-0.027922408655285835,
-0.026755984872579575,
-0.01804368942975998,
0.022449186071753502,
0.03249838203191757,
0.010793913155794144,
-0.04636986181139946,
0.03847406432032585,
-0.005567433778196573,
0.03190619871020317,
-0.026989268139004707,
0.013404909521341324,
0.09919992089271545,
-0.04120170325040817,
0.07824017107486725,
-0.024961484596133232,
-0.037612706422805786,
-0.00899044144898653,
-0.039514873176813126,
0.03368275240063667,
0.038509953767061234,
-0.00388957723043859,
-0.018878132104873657,
0.04457536339759827,
0.030488543212413788,
-0.04870270937681198,
0.06366883218288422,
-0.028927328065037727,
-0.008043843321502209,
-0.03531574457883835,
0.04206306114792824,
-0.029663072898983955,
-0.02104947715997696,
0.057100966572761536,
0.004629808012396097,
0.01681445725262165,
0.032354820519685745,
0.025015320628881454,
0.05896724760532379,
-0.050138309597969055,
-0.05850067734718323,
0.08218806982040405,
-0.02743789367377758,
-0.030021972954273224,
0.032372765243053436,
-0.040268562734127045,
0.04497015103697777,
-0.06535566598176956,
-0.005536030046641827,
0.042960312217473984,
-0.05588070675730705,
-0.015002014115452766,
0.005491167772561312,
-0.0359976552426815,
0.0011002523824572563,
0.04597507044672966,
-0.01914730668067932,
-0.06266391277313232,
0.012050062417984009,
-0.042960312217473984,
0.0018539420561864972,
0.017738625407218933,
-0.11011047661304474,
0.005957737565040588,
0.00004514287138590589,
-0.004201371222734451,
0.052291709929704666,
-0.0034970303531736135,
0.011251510120928288,
-0.018106497824192047,
0.02765323407948017,
-0.023687390610575676,
-0.008555275388062,
-0.06754495203495026,
0.013449772261083126,
-0.013709974475204945,
-0.04389345273375511,
0.049958858639001846,
0.023454105481505394,
-0.02025989629328251,
0.04565206170082092,
0.012094925157725811,
-0.011224593035876751,
0.0348132848739624,
-0.048595041036605835,
-0.032839335501194,
-0.028335142880678177,
-0.0117719154804945,
-0.062484465539455414,
-0.007644566707313061,
0.03736147657036781,
0.014024011790752411,
-0.028155693784356117,
-0.0017855267506092787,
-0.005132267717272043,
-0.009331395849585533,
-0.012175677344202995,
0.02741994895040989,
-0.08161382377147675,
-0.00224312418140471,
-0.01950620673596859,
-0.030632102862000465,
0.019290866330266,
-0.015683922916650772,
-0.031798526644706726,
0.036446280777454376,
-0.06994958221912384,
-0.012705055065453053,
-0.02625352516770363,
0.0009875353425741196,
-0.03151140734553337,
0.05117911845445633,
-0.06898055225610733,
-0.002949708141386509,
0.03536958247423172,
0.051896918565034866,
0.03811516612768173,
0.006424307357519865,
-0.04615452140569687,
-0.030811551958322525,
-0.009286534041166306,
0.08161382377147675,
0.01061446312814951,
-0.04313976317644119,
-0.05527057871222496,
-0.027922408655285835,
0.057639315724372864,
0.04385756328701973,
-0.015019958838820457,
-0.0030080294236540794,
-0.0008725752704776824,
-0.02973485365509987,
0.021336596459150314,
0.018824297934770584,
0.005773801356554031,
0.03380836546421051,
0.021354541182518005,
0.023489994928240776,
-0.08269052952528,
-0.05006653070449829,
0.03249838203191757,
0.02783268317580223,
0.059397924691438675,
0.0007430348778143525,
-0.0007273330120369792,
-0.0014972853241488338,
-0.0326419435441494,
-0.03149346262216568,
0.017164384946227074,
0.01284861471503973,
0.004270908422768116,
-0.042206622660160065,
-0.002510055899620056,
0.0676526203751564,
-0.06833453476428986,
0.0212648157030344,
-0.01990099623799324,
-0.052435267716646194,
-0.03987377509474754,
0.035656701773405075,
-0.034867119044065475,
-0.020188117399811745,
-0.008465549908578396,
0.03127812221646309,
0.0034588973503559828,
-0.009075679816305637,
0.004849634133279324,
-0.0141944894567132,
0.023274656385183334,
-0.008761642500758171,
-0.0108298035338521,
0.047051772475242615,
-0.0038245266769081354,
-0.01950620673596859,
-0.03958665207028389,
-0.094175323843956,
0.023041371256113052,
-0.009403176605701447,
0.0026536157820373774,
0.0037235859781503677,
-0.013781754299998283,
-0.06596579402685165,
0.020403455942869186,
0.00045984043390490115,
0.019560042768716812,
-0.014813591726124287,
-0.01187958475202322,
0.04303209111094475,
-0.07565608620643616,
0.017200276255607605,
0.07493828982114792,
-0.020152226090431213,
-0.06255624443292618,
0.0059981136582791805,
0.0041632382199168205,
-0.04676464945077896,
0.014338049106299877,
-0.03536958247423172,
0.00004812202314496972,
0.022269735112786293,
-0.016859320923686028,
-0.0312601774930954,
-0.017200276255607605,
-0.04773367941379547,
0.0016890724655240774,
0.035477250814437866,
-0.06022339686751366,
-0.008855854161083698,
-0.04970762878656387,
0.03574642539024353,
0.036230940371751785,
0.05204048007726669,
0.017415614798665047,
0.038509953767061234,
0.023902731016278267,
0.043534550815820694,
-0.051250897347927094,
0.031008947640657425,
0.0272046085447073,
0.004378578159958124,
-0.021103311330080032,
0.02122892625629902,
-0.0008305166848003864,
0.012310264632105827,
0.0251229889690876,
0.020439347252249718,
0.02702515944838524,
-0.00706135481595993,
0.0030641076155006886,
-0.033323850482702255,
-0.004836175590753555,
0.028317198157310486,
-0.013790726661682129,
-0.0007637837552465498,
-0.02375916950404644,
0.027312278747558594,
-0.02103153057396412,
-0.011098978109657764,
-0.04138115420937538,
-0.03879707306623459,
-0.004165481310337782,
0.018016772344708443,
0.04062746465206146,
0.041811831295490265,
0.02104947715997696,
0.062089674174785614,
0.05297361686825752
] |
17,923 | imodels.rule_set.slipper_util | _make_feature_dict |
Map features to place holder names
| def _make_feature_dict(self, num_features, features):
"""
Map features to place holder names
"""
if features is None:
new_feats = ['X_' + str(i) for i in range(num_features)]
else:
new_feats = features
self.feature_dict = {
old_feat: new_feat for old_feat, new_feat in enumerate(new_feats)
}
| (self, num_features, features) | [
0.030188260599970818,
-0.05265267565846443,
-0.036334697157144547,
-0.009391902945935726,
-0.025075294077396393,
0.001967222895473242,
-0.017759399488568306,
0.06494555622339249,
-0.001783645711839199,
-0.012446991167962551,
-0.028483938425779343,
0.03276287391781807,
-0.007628655061125755,
0.021539730951189995,
0.036860499531030655,
-0.023842379450798035,
0.013643642887473106,
0.011096225120127201,
-0.03595394641160965,
-0.06762895733118057,
-0.0011751210549846292,
-0.015075999312102795,
-0.0011377257760614157,
-0.0018844999140128493,
0.025474177673459053,
0.047793544828891754,
-0.010570423677563667,
-0.014069723896682262,
0.05714918673038483,
-0.030986027792096138,
-0.07158153504133224,
-0.06124681234359741,
-0.027958136051893234,
0.021993009373545647,
-0.015094130299985409,
-0.049570392817258835,
-0.021884221583604813,
0.04119383171200752,
0.04500135779380798,
0.00982704944908619,
0.0667586624622345,
-0.0909455344080925,
-0.09000271558761597,
0.00911993719637394,
-0.017260795459151268,
0.05892603471875191,
-0.04369591921567917,
0.00029236378031782806,
0.0514560267329216,
-0.012256614863872528,
-0.03789397329092026,
-0.08021192997694016,
0.06849924474954605,
0.05022311210632324,
-0.022681990638375282,
-0.01532076857984066,
0.01718827150762081,
0.03205576166510582,
0.010370981879532337,
0.02329844795167446,
-0.02971685118973255,
0.0367879755795002,
-0.018892593681812286,
-0.02692466415464878,
-0.00656345346942544,
-0.022917693480849266,
-0.03559132292866707,
0.021376552060246468,
0.0045531694777309895,
0.022681990638375282,
0.04761223495006561,
-0.01292746514081955,
0.02210179530084133,
0.022972088307142258,
0.010923979803919792,
0.0463067963719368,
-0.030895372852683067,
-0.01912829652428627,
0.02926357463002205,
0.001834639348089695,
-0.01478590164333582,
-0.021902352571487427,
-0.08100970089435577,
-0.004303866997361183,
-0.0023819715715944767,
-0.0018539036391302943,
0.04050485044717789,
-0.019073903560638428,
-0.0020023519173264503,
-0.051782384514808655,
-0.06556200981140137,
0.04724961146712303,
0.01593722589313984,
-0.00879811029881239,
0.020578784868121147,
-0.02837515063583851,
-0.0021972612012177706,
-0.012274745851755142,
0.03843790665268898,
-0.029281705617904663,
0.02474893443286419,
-0.030170129612088203,
-0.07227051258087158,
0.034648507833480835,
-0.018158283084630966,
-0.030405832454562187,
0.0008510279003530741,
-0.044783785939216614,
-0.052181269973516464,
-0.040396060794591904,
-0.06052156910300255,
-0.01943652518093586,
0.04021475091576576,
0.02563735656440258,
-0.00919699389487505,
-0.059397440403699875,
0.03564571589231491,
0.02502090111374855,
-0.02541978470981121,
-0.01965409889817238,
-0.019237084314227104,
0.008662126958370209,
-0.03771265968680382,
0.016417698934674263,
-0.027124106884002686,
0.013625511899590492,
0.05693161487579346,
0.04521892964839935,
0.07208920270204544,
-0.049787964671850204,
-0.0025904790963977575,
-0.015275441110134125,
-0.04278936609625816,
0.05225379392504692,
0.046560630202293396,
-0.08521611243486404,
-0.03453972190618515,
0.003694209037348628,
0.04550902917981148,
0.029517410323023796,
0.02262759767472744,
-0.0046211606822907925,
-0.012800547294318676,
0.04086747020483017,
-0.012301942333579063,
-0.003891384694725275,
0.017723137512803078,
0.011730813421308994,
-0.07270565629005432,
-0.07266939431428909,
0.016281716525554657,
0.05932491645216942,
-0.03771265968680382,
-0.05885351076722145,
-0.015638062730431557,
-0.006740231532603502,
-0.0025474177673459053,
-0.047974858433008194,
0.0055390470661222935,
0.008172587491571903,
0.020778225734829903,
0.008394693024456501,
-0.04282562807202339,
-0.0161457322537899,
-0.023806117475032806,
0.03417709842324257,
0.026489518582820892,
-0.06215336546301842,
0.02935422956943512,
0.02036121115088463,
0.00546652264893055,
0.010896783322095871,
0.03497486561536789,
0.038945574313402176,
0.004172416403889656,
0.06940580159425735,
0.018040431663393974,
-0.043333299458026886,
0.04210038483142853,
0.08115474879741669,
0.06266103684902191,
-0.023099005222320557,
-0.08847970515489578,
-0.03742256388068199,
-0.0067900922149419785,
-0.055988796055316925,
0.016526486724615097,
0.04260805621743202,
0.03771265968680382,
0.05870845913887024,
0.05065825581550598,
-0.023751724511384964,
-0.008430955931544304,
0.010035556741058826,
-0.013734298758208752,
-0.011531371623277664,
-0.055408600717782974,
-0.050948355346918106,
-0.005131097510457039,
0.02846580743789673,
-0.026598304510116577,
0.011631092056632042,
-0.027613645419478416,
-0.0010844656499102712,
0.004854598548263311,
-0.013688971288502216,
-0.00740654906257987,
-0.0463067963719368,
-0.027033450081944466,
0.0038709871005266905,
0.03501112759113312,
-0.028139447793364525,
0.040577374398708344,
0.03727751597762108,
0.04659689590334892,
-0.06871682405471802,
0.024730803444981575,
0.05069452151656151,
-0.02164851874113083,
-0.028103185817599297,
0.017016025260090828,
0.025999978184700012,
0.008390160277485847,
0.001562673132866621,
0.027341678738594055,
-0.03180192783474922,
0.028900953009724617,
-0.014595525339245796,
-0.030170129612088203,
-0.037966497242450714,
0.02010737545788288,
-0.046560630202293396,
0.00443758349865675,
-0.009124469943344593,
0.025202210992574692,
-0.01842118427157402,
0.032037630677223206,
-0.028139447793364525,
0.011078094132244587,
-0.024640146642923355,
0.04572660103440285,
0.02059691585600376,
0.0325453020632267,
-0.021630387753248215,
-0.03941698372364044,
-0.004841000307351351,
-0.000015908966815914027,
0.03684236854314804,
-0.03880052641034126,
0.004108957480639219,
0.002595011843368411,
0.012129697017371655,
-0.03745882585644722,
0.04485630989074707,
-0.0394895076751709,
-0.048736363649368286,
-0.00807286612689495,
0.0128640066832304,
-0.019762884825468063,
-0.04293441399931908,
0.0023729060776531696,
-0.013027186505496502,
-0.03002507984638214,
0.024694541469216347,
-0.01086958684027195,
-0.00617816811427474,
0.04268058016896248,
0.02966245822608471,
-0.016997894272208214,
-0.062370941042900085,
0.08964009582996368,
0.014740574173629284,
-0.00443758349865675,
-0.021412814036011696,
0.023407233878970146,
-0.0418102853000164,
0.03599020838737488,
-0.05812826380133629,
-0.014949081465601921,
0.04293441399931908,
0.03410457447171211,
-0.06875308603048325,
-0.02471267245709896,
0.035319358110427856,
-0.006182700861245394,
0.04884514957666397,
-0.03232773020863533,
0.06429283320903778,
0.04210038483142853,
-0.07339464128017426,
-0.02532912790775299,
0.0203249491751194,
-0.007914219982922077,
0.033633165061473846,
-0.01596442237496376,
0.01346233207732439,
-0.036987416446208954,
0.0055707767605781555,
0.02465827949345112,
0.04724961146712303,
0.016617141664028168,
0.04891767352819443,
-0.0006725499988533556,
-0.006441068835556507,
-0.012981858104467392,
-0.06396647542715073,
0.050767045468091965,
-0.015538341365754604,
-0.03259969502687454,
0.015338899567723274,
0.045944176614284515,
0.02625381387770176,
0.007324959151446819,
0.013643642887473106,
0.005516383331269026,
-0.04246300458908081,
-0.011440715752542019,
-0.018656888976693153,
0.03076845407485962,
0.0585271492600441,
-0.010969308204948902,
-0.03724125400185585,
-0.07067497819662094,
0.0007790701347403228,
0.059760063886642456,
-0.021884221583604813,
0.04046858847141266,
-0.07143648713827133,
0.02152159996330738,
-0.012682695873081684,
-0.08086464554071426,
-0.008249645121395588,
0.03046022728085518,
0.06385768949985504,
-0.07288697361946106,
0.04826495423913002,
0.019871670752763748,
0.03444906696677208,
-0.04590791091322899,
0.03290792182087898,
-0.05504598096013069,
0.0018097091233357787,
-0.09856058657169342,
0.031149208545684814,
-0.0204518660902977,
-0.052181269973516464,
-0.0001528394059278071,
-0.026797747239470482,
0.023008350282907486,
-0.040577374398708344,
-0.014767770655453205,
-0.028230102732777596,
0.036026470363140106,
0.07839882373809814,
0.07984931021928787,
0.010216867551207542,
0.010216867551207542,
-0.04565407708287239,
-0.010606685653328896,
-0.0010147743159905076,
0.06512686610221863,
-0.04659689590334892,
0.016680600121617317,
0.005393998231738806,
-0.023570412769913673,
-0.008127260021865368,
0.01261923648416996,
0.03232773020863533,
0.005443858914077282,
-0.035228703171014786,
0.04750344902276993,
0.05087583139538765,
-0.02692466415464878,
0.04928029328584671,
0.01599161885678768,
-0.02895534597337246,
-0.01863875798881054,
0.02425939403474331,
-0.07810872048139572,
-0.024205001071095467,
-0.02284516952931881,
0.02453136071562767,
0.027831219136714935,
0.04724961146712303,
-0.036062732338905334,
-0.02594558522105217,
0.04398601874709129,
-0.04398601874709129,
0.06664987653493881,
-0.01235633622854948,
-0.05870845913887024,
0.03419522941112518,
0.00921059213578701,
0.03272661194205284,
0.0394895076751709,
-0.047974858433008194,
-0.028357019647955894,
-0.03559132292866707,
0.001731518772430718,
0.002570081502199173,
0.017614351585507393,
-0.0032137352973222733,
-0.020923275500535965,
0.022917693480849266,
0.004281202796846628,
0.005502785090357065,
0.008190718479454517,
0.03555506095290184,
0.016599010676145554,
0.027903743088245392,
-0.03843790665268898,
0.018212677910923958,
-0.0015887365443632007,
-0.0695871114730835,
0.00611017644405365,
0.028393281623721123,
0.011531371623277664,
-0.006296020001173019,
0.01744210533797741,
0.016254520043730736,
0.034340277314186096,
0.028266364708542824,
-0.02050625905394554,
0.042571794241666794,
-0.041919074952602386,
0.025292865931987762,
-0.022065533325076103,
0.025582963600754738,
0.03426775336265564,
0.054574571549892426,
-0.08964009582996368,
-0.03104042075574398,
0.0043809241615235806,
-0.018983248621225357,
0.02616315893828869,
-0.018493708223104477,
-0.0258549302816391,
-0.0304239634424448,
-0.037350039929151535,
0.017433039844036102,
0.022192450240254402,
-0.02474893443286419,
0.06066661700606346,
0.029916293919086456,
0.0033814478665590286,
-0.02480332739651203,
-0.0365341417491436,
-0.0008006007992662489,
0.04870010167360306,
-0.008494414389133453,
0.027069713920354843,
-0.0315118283033371,
-0.0030868176836520433,
-0.024549491703510284,
0.10777118057012558,
0.029118526726961136,
-0.023715462535619736,
0.0016941234935075045,
0.047793544828891754,
-0.0011705883080139756,
-0.01974475383758545,
0.02001672051846981,
-0.014903753995895386,
0.05714918673038483,
0.009292182512581348,
0.0109330452978611,
0.02794000506401062,
-0.02010737545788288,
-0.04369591921567917,
0.01694350130856037,
0.041955336928367615,
0.00922419037669897,
0.045545291155576706,
-0.09522446990013123,
-0.040359798818826675,
0.032436516135931015,
-0.019871670752763748,
0.04340582340955734,
0.029082264751195908,
-0.056387681514024734,
0.08079212158918381,
-0.012374467216432095,
0.03662479668855667,
-0.02170291170477867,
-0.009201526641845703,
0.0313849113881588,
0.000045469365431927145,
-0.0028873756527900696,
-0.015928160399198532,
0.030804717913269997,
-0.04289815202355385,
-0.04152018949389458,
0.043804705142974854,
0.039562031626701355,
0.04608922451734543,
0.018874462693929672,
0.054610833525657654,
0.05714918673038483,
0.025873061269521713,
0.0364072248339653,
-0.006268823519349098,
-0.020071113482117653,
-0.03629843518137932,
0.03198323771357536,
0.007456409744918346,
-0.019726622849702835,
-0.03015199862420559,
-0.010942110791802406,
-0.03276287391781807,
0.01022593304514885,
-0.017578089609742165,
-0.048953935503959656,
0.041919074952602386,
-0.012546712532639503,
0.04511014372110367,
0.030260784551501274,
-0.04891767352819443,
0.02391490340232849,
-0.04710456356406212,
0.050948355346918106,
0.015438620932400227,
0.030224522575736046,
0.03829285502433777,
-0.028483938425779343,
-0.005715825129300356,
0.03541001304984093,
0.05522729083895683,
-0.013979068025946617,
0.06849924474954605,
0.05733049660921097,
-0.05283398926258087,
-0.019110165536403656,
0.017269860953092575,
0.06266103684902191,
-0.023171529173851013,
-0.020179899409413338,
0.07411988079547882,
-0.08797203749418259,
0.0409037321805954,
-0.01357111893594265,
0.0392356738448143,
-0.0031933377031236887,
-0.020560652017593384,
-0.05602505803108215,
0.03250904008746147,
-0.0115766990929842,
0.001082765869796276,
-0.0352468341588974,
0.020959537476301193,
-0.050948355346918106,
-0.05642394348978996,
0.003578623291105032,
-0.041919074952602386,
-0.015982553362846375,
-0.01882006786763668,
-0.014695245772600174,
0.00991770438849926,
-0.03843790665268898,
0.011096225120127201,
0.01795884221792221,
-0.012909334152936935,
-0.03189258277416229,
0.07868891954421997,
0.0025882127229124308,
-0.029009738937020302,
0.023389102891087532,
-0.044747523963451385,
0.01943652518093586,
-0.06088419258594513,
-0.014151313342154026,
0.050150588154792786,
-0.0505494698882103,
-0.008027538657188416,
0.013607380911707878,
-0.08021192997694016,
-0.039743341505527496,
0.013616446405649185,
-0.003270394867286086,
0.02201114036142826,
-0.004890860989689827,
-0.06708502024412155,
0.06806410104036331,
0.01737864688038826,
-0.027649907395243645,
0.018928855657577515,
0.025165949016809464,
-0.021376552060246468,
0.03366943076252937,
0.009763590060174465,
-0.017614351585507393,
-0.052979037165641785,
-0.025619225576519966,
0.023443495854735374,
-0.05210874602198601,
-0.02395116537809372,
0.0128640066832304,
-0.020778225734829903,
-0.01590096391737461,
-0.023008350282907486,
0.0023751724511384964,
0.011640157550573349,
-0.000521552050486207,
-0.021140847355127335,
0.03024265356361866,
0.019980458542704582,
-0.01590096391737461,
-0.0022913161665201187,
-0.0009207192924804986,
-0.03082284890115261,
-0.031239863485097885,
0.01501253992319107,
-0.00012004762538708746,
0.05189117044210434,
-0.0209051426500082,
-0.02425939403474331,
-0.043550871312618256,
0.04663315787911415,
-0.007560663390904665,
-0.016127601265907288,
-0.04409480467438698,
-0.039163149893283844,
-0.0630236566066742,
-0.02567361854016781,
0.01235633622854948,
0.004768475890159607,
-0.06777400523424149,
0.03626217320561409,
-0.0189107246696949,
-0.024984637275338173,
0.018013235181570053,
-0.036425355821847916,
-0.025002770125865936,
0.050186850130558014,
-0.07470007985830307,
0.04199159890413284,
0.0645829290151596,
0.02603624202311039,
0.03684236854314804,
-0.014740574173629284,
0.005616104230284691,
0.005620636977255344,
0.023588543757796288,
0.019418394193053246,
-0.027341678738594055,
-0.01735145039856434,
-0.0299706868827343,
0.046741943806409836,
-0.03444906696677208,
0.057983215898275375,
-0.008390160277485847,
-0.005643300712108612,
-0.043333299458026886,
-0.04228169471025467,
0.019092034548521042,
-0.021104585379362106,
-0.005393998231738806,
-0.05925239250063896,
0.016172930598258972,
0.02766803838312626,
-0.04521892964839935,
-0.03669732064008713,
0.022029271349310875,
0.03789397329092026,
-0.04398601874709129,
-0.025528570637106895,
0.03269034996628761,
-0.004199612885713577,
-0.026362601667642593,
0.01343513559550047,
0.023987429216504097,
-0.0056387679651379585,
0.007216172758489847,
0.04046858847141266,
-0.007945949211716652,
0.019382132217288017,
-0.00908820703625679,
0.004686885979026556,
0.08876980096101761,
0.009663869626820087,
0.0015026138862594962,
0.03861921653151512,
0.04583538696169853,
0.005330539774149656,
0.03541001304984093,
0.028810298070311546,
-0.0231533981859684,
-0.05588001012802124,
0.010942110791802406,
-0.0014380218926817179,
0.09790787100791931,
0.006368544418364763,
-0.018466511741280556,
0.03559132292866707,
-0.019599705934524536,
-0.06980468332767487,
0.04126635566353798,
-0.02812131680548191,
-0.025800537317991257,
0.025619225576519966,
-0.026942795142531395,
-0.004918057471513748,
0.02511155605316162,
-0.027958136051893234,
0.003188804956153035,
-0.011567633599042892,
-0.027160368859767914,
-0.06501808017492294,
0.005407596938312054,
0.03517431020736694,
-0.01272802334278822,
0.0075561306439340115,
0.01992606557905674,
0.008748249150812626,
0.02471267245709896,
-0.026090634986758232,
0.0514560267329216,
0.01177614089101553,
0.012093435041606426,
0.030097605660557747,
0.00811819452792406,
0.08688417077064514,
0.017451170831918716,
0.0622621551156044,
0.07248808443546295,
-0.10254942625761032,
-0.03829285502433777,
0.006119241937994957,
-0.03771265968680382,
-0.02306274324655533,
-0.025999978184700012,
0.024549491703510284,
0.03250904008746147,
-0.07103759795427322,
0.025963716208934784,
-0.027921874076128006,
-0.04569033905863762,
0.04460247606039047,
-0.003544627455994487,
-0.014940015971660614,
0.0540306381881237,
-0.024912113323807716,
0.005180958192795515,
-0.0271422378718853,
0.08847970515489578,
0.002171197673305869,
0.0075651961378753185,
0.0761505663394928,
-0.005366801749914885,
-0.012990923598408699,
0.001635197433643043,
-0.007651318795979023,
0.031185470521450043,
-0.054393261671066284,
-0.023080874234437943,
0.002619942184537649,
-0.02794000506401062,
0.028193840757012367,
0.001986487302929163,
0.015075999312102795,
-0.03312549740076065,
-0.019364001229405403,
-0.024875851348042488,
0.009663869626820087,
-0.005684095900505781,
-0.003694209037348628,
0.033324938267469406,
0.06429283320903778,
0.025528570637106895
] |
17,925 | imodels.rule_set.slipper_util | _pop_condition |
Remove a condition from an existing Rule object
| def _pop_condition(self, rule, condition):
"""
Remove a condition from an existing Rule object
"""
temp = rule.copy()
temp.remove(condition)
return temp
| (self, rule, condition) | [
0.02388632670044899,
0.05974908545613289,
-0.04032065346837044,
-0.029292356222867966,
-0.04291554540395737,
-0.04837147518992424,
-0.016608981415629387,
0.029225818812847137,
0.07605034112930298,
-0.06899755448102951,
0.006923874374479055,
-0.021308068186044693,
0.0018889909842982888,
-0.04191751033067703,
-0.0500016026198864,
0.05159845948219299,
0.03409956023097038,
0.042383261024951935,
-0.028261052444577217,
-0.030007613822817802,
0.062477052211761475,
-0.027429355308413506,
0.0005070750485174358,
0.03692733123898506,
0.031155355274677277,
0.02553308755159378,
0.005788608454167843,
-0.005551575217396021,
0.030672971159219742,
-0.0016529971035197377,
-0.015868771821260452,
0.0171828530728817,
0.0063707963563501835,
-0.0052064210176467896,
0.005272956565022469,
0.04368070885539055,
-0.017282655462622643,
0.028377488255500793,
-0.04005451127886772,
-0.018480299040675163,
-0.013032685965299606,
0.035164132714271545,
0.01808108575642109,
0.043048616498708725,
0.004156403709203005,
-0.030456731095910072,
0.023337407037615776,
0.012475449591875076,
0.07305623590946198,
0.010612448677420616,
0.02380315773189068,
0.06630285829305649,
0.021025290712714195,
0.03306825831532478,
-0.035230670124292374,
-0.05888412147760391,
-0.045211028307676315,
0.01458795927464962,
0.03978836536407471,
0.005717914551496506,
0.0368940643966198,
0.024069299921393394,
-0.07491923123598099,
-0.06197803467512131,
0.030922481790184975,
-0.046774618327617645,
-0.020343299955129623,
0.03346747159957886,
0.0007906316313892603,
-0.04348110035061836,
-0.10160005837678909,
0.012957833707332611,
0.06280972808599472,
-0.010021944530308247,
-0.01455469150096178,
-0.06284299492835999,
0.04970218986272812,
-0.017232753336429596,
0.0797763392329216,
-0.07298969477415085,
-0.00573038961738348,
0.048038799315690994,
0.0004732873640023172,
0.054825443774461746,
-0.010196601040661335,
0.032103490084409714,
0.07831255346536636,
-0.0034245108254253864,
-0.029525229707360268,
-0.0323030985891819,
-0.016126597300171852,
0.0161764994263649,
-0.042982082813978195,
-0.03423263505101204,
0.08776062726974487,
0.06064732000231743,
-0.00560147687792778,
-0.01891278102993965,
0.0034598580095916986,
-0.00667852396145463,
0.004819681867957115,
0.0015396784292533994,
-0.03602909669280052,
-0.021041924133896828,
0.06773337721824646,
0.024235639721155167,
0.03869052603840828,
-0.03022385574877262,
0.0032207451295107603,
0.00571375573053956,
-0.0247180238366127,
0.0272463820874691,
-0.04823840409517288,
-0.0041460078209638596,
0.02842739038169384,
0.008208845742046833,
-0.1000032052397728,
-0.07285662740468979,
0.015644213184714317,
-0.0007417694432660937,
-0.0014575483510270715,
-0.045942921191453934,
-0.016018476337194443,
0.03469838201999664,
0.04181770607829094,
0.010254819877445698,
-0.0021998377051204443,
-0.02380315773189068,
0.05858471244573593,
-0.03935588523745537,
-0.035896025598049164,
-0.04205058142542839,
0.00029291314422152936,
-0.07432041317224503,
-0.05133231729269028,
-0.0332845002412796,
-0.027030140161514282,
-0.01927872747182846,
-0.0133903156965971,
-0.014271914027631283,
0.015760650858283043,
0.053028978407382965,
-0.030606435611844063,
0.006129604298621416,
0.009655998088419437,
-0.0868956670165062,
-0.05512485280632973,
0.04664154723286629,
-0.01391428429633379,
0.03935588523745537,
-0.048937030136585236,
0.005622269120067358,
-0.0224724430590868,
-0.02975810505449772,
0.02939215861260891,
0.07338891178369522,
-0.0363285094499588,
-0.03343420475721359,
-0.023753255605697632,
-0.039555493742227554,
0.00968094915151596,
0.004923644009977579,
-0.01874644123017788,
-0.021940156817436218,
0.014097257517278194,
-0.02114172838628292,
0.07478616386651993,
0.003235299838706851,
-0.026730729267001152,
0.031604472547769547,
0.0010058331536129117,
-0.012541985139250755,
0.023403942584991455,
0.043048616498708725,
-0.09361577033996582,
0.05532446131110191,
0.018729807808995247,
0.04740670695900917,
-0.02054290659725666,
-0.007589231710880995,
0.016284620389342308,
-0.022056594491004944,
-0.004474527668207884,
0.00012663881352636963,
0.05921680107712746,
-0.03809170424938202,
-0.02782856859266758,
0.02060944214463234,
0.009281734004616737,
0.043580904603004456,
-0.03978836536407471,
-0.036128900945186615,
0.0332845002412796,
0.014737664721906185,
-0.011718605645000935,
-0.050267744809389114,
-0.005264639854431152,
0.05768647789955139,
-0.004449577070772648,
0.03305162489414215,
-0.055856745690107346,
-0.031887248158454895,
0.02581586316227913,
0.03162110596895218,
-0.042083848267793655,
0.018779709935188293,
0.0024930106010288,
0.03669445589184761,
-0.05133231729269028,
0.021324701607227325,
-0.04354763403534889,
0.018280692398548126,
0.08509919792413712,
-0.002586576621979475,
0.05096637085080147,
-0.013282195664942265,
-0.04697422683238983,
0.045743316411972046,
0.014804200269281864,
0.03659465163946152,
-0.0933496281504631,
-0.03065633773803711,
0.03311815857887268,
-0.032103490084409714,
0.00026198444538749754,
0.00636247918009758,
-0.02910938300192356,
-0.0009429360507056117,
0.044845081865787506,
0.015843821689486504,
0.08163934201002121,
-0.007772204931825399,
0.07951019704341888,
-0.0797763392329216,
0.03305162489414215,
-0.011510681360960007,
-0.06048097833991051,
0.013739628717303276,
0.004243731964379549,
0.05366106703877449,
0.006803278345614672,
-0.0003506120992824435,
0.02716321125626564,
0.06513848155736923,
0.023570282384753227,
0.07086054980754852,
0.062477052211761475,
0.026015469804406166,
0.011211270466446877,
-0.0343657061457634,
-0.004815523512661457,
0.019910817965865135,
-0.018413763493299484,
0.040819671005010605,
0.00831280741840601,
0.004902851767838001,
-0.01756543293595314,
-0.03775902837514877,
0.003819566685706377,
0.005913363303989172,
0.008233796805143356,
-0.009489658288657665,
0.07851216197013855,
-0.06740069389343262,
-0.00593415554612875,
-0.027512524276971817,
-0.023387309163808823,
0.07052787393331528,
-0.009980360046029091,
0.05938313901424408,
0.017948012799024582,
-0.08350234478712082,
0.026880435645580292,
0.01421369519084692,
0.01421369519084692,
0.06184496358036995,
-0.037027135491371155,
0.0062917848117649555,
0.03226982802152634,
-0.02521704137325287,
0.07704837620258331,
0.0027342026587575674,
-0.011926529929041862,
0.013406950049102306,
-0.0529957078397274,
0.023703353479504585,
0.03348410502076149,
0.013673092238605022,
0.04351436719298363,
0.049003567546606064,
-0.01971120946109295,
-0.020958755165338516,
-0.0006700356025248766,
0.006537135690450668,
0.026331515982747078,
0.00318123959004879,
-0.030323660001158714,
-0.0464419387280941,
0.05825203284621239,
0.04254959896206856,
0.02165738120675087,
-0.014055673032999039,
-0.03562988340854645,
0.03273557871580124,
-0.03998797386884689,
0.00039661533082835376,
0.003162526525557041,
0.035896025598049164,
-0.017814941704273224,
-0.02381979115307331,
0.035164132714271545,
-0.028527194634079933,
-0.02634814940392971,
-0.0014211615780368447,
0.022904925048351288,
0.022455809637904167,
0.0161764994263649,
-0.02530021220445633,
0.028743436560034752,
0.03193715214729309,
-0.00838766060769558,
-0.06048097833991051,
-0.0444791354238987,
-0.014629543758928776,
-0.0032124281860888004,
-0.04374724254012108,
-0.04225018993020058,
0.011402560397982597,
0.025699425488710403,
0.05638903006911278,
-0.02360355108976364,
0.05003486946225166,
0.0006263715331442654,
-0.018114352598786354,
0.023836426436901093,
-0.012109503149986267,
0.01146077923476696,
0.008949055336415768,
0.014205378480255604,
-0.02619844488799572,
-0.02456831932067871,
0.0181642547249794,
0.009722533635795116,
0.004553539212793112,
0.05515811964869499,
-0.0009943973273038864,
-0.06314241141080856,
0.014155476354062557,
0.022073227912187576,
-0.0008379343780688941,
0.047672852873802185,
0.04787245765328407,
0.007506062276661396,
0.010853640735149384,
0.025765961036086082,
-0.014612909406423569,
-0.04368070885539055,
0.01927872747182846,
0.02114172838628292,
-0.05193113908171654,
0.09155316650867462,
0.015602628700435162,
0.01846366561949253,
0.012808128260076046,
0.059948693960905075,
-0.005738706793636084,
-0.05452603101730347,
0.0001287180493818596,
-0.061512283980846405,
-0.05984888970851898,
-0.03729327768087387,
-0.032785482704639435,
0.05246342346072197,
-0.037692490965127945,
-0.00457433145493269,
0.014712713658809662,
-0.01216772198677063,
0.02262214757502079,
0.006986251566559076,
0.010970078408718109,
0.03005751594901085,
0.00859142653644085,
-0.08802676945924759,
0.008574792183935642,
-0.022222934290766716,
0.009855604730546474,
-0.0677001029253006,
0.008666278794407845,
0.051831334829330444,
0.03825804591178894,
0.015386387705802917,
-0.029974346980452538,
0.014721030369400978,
-0.052130743861198425,
-0.006283468101173639,
0.016101647168397903,
-0.058983925729990005,
-0.016891758888959885,
-0.06014830246567726,
0.016717102378606796,
-0.00496938731521368,
0.030456731095910072,
-0.01027145329862833,
0.007834582589566708,
-0.015519458800554276,
-0.015003806911408901,
-0.020592808723449707,
0.09088780730962753,
-0.028261052444577217,
-0.021174997091293335,
0.019611407071352005,
-0.057786282151937485,
-0.028909774497151375,
-0.03815824165940285,
0.01063739974051714,
-0.029824640601873398,
0.1352006047964096,
0.000410130392992869,
0.025865765288472176,
0.00021624112559948117,
0.03626197203993797,
-0.0018058213172480464,
-0.019012585282325745,
-0.00411274004727602,
-0.033733613789081573,
0.02960840053856373,
-0.00669515784829855,
0.032852016389369965,
-0.123224176466465,
0.03842438384890556,
-0.02441861294209957,
-0.05738706886768341,
-0.019977353513240814,
0.017731772735714912,
0.009838971309363842,
0.02553308755159378,
-0.013207342475652695,
-0.00531869987025857,
0.021640745922923088,
0.07179205119609833,
0.0027258857153356075,
0.03742634877562523,
-0.02047637104988098,
0.03065633773803711,
-0.056821513921022415,
0.044379331171512604,
-0.02746262215077877,
-0.01432181615382433,
-0.025716060772538185,
0.008412611670792103,
0.039622027426958084,
0.04910336807370186,
0.022156398743391037,
0.025167139247059822,
-0.015311535447835922,
-0.052663031965494156,
-0.07545151561498642,
-0.03439897298812866,
-0.018513567745685577,
-0.003499363549053669,
0.024734657257795334,
0.0651717483997345,
-0.00970589928328991,
0.00444541871547699,
-0.04946931451559067,
0.05878431722521782,
0.024668121710419655,
-0.000645084714051336,
-0.024468515068292618,
0.0002049352478934452,
-0.03273557871580124,
-0.10306384414434433,
-0.019761111587285995,
0.00606306828558445,
-0.017232753336429596,
0.03140486404299736,
-0.009947091341018677,
0.003667782060801983,
0.049003567546606064,
0.04724036902189255,
-0.007834582589566708,
0.017731772735714912,
-0.06773337721824646,
-0.00465334253385663,
-0.014870735816657543,
0.005884253885596991,
0.01242554746568203,
-0.006882289424538612,
0.0046325502917170525,
0.03543027490377426,
-0.03065633773803711,
-0.02932562306523323,
0.02583249658346176,
-0.020293397828936577,
0.043414562940597534,
-0.022439174354076385,
-0.04441260173916817,
0.03842438384890556,
0.04650847613811493,
-0.02947532944381237,
-0.046175796538591385,
-0.0048862178809940815,
-0.08682912588119507,
-0.017365826293826103,
0.01700819656252861,
-0.03845765069127083,
-0.013564972206950188,
0.008832618594169617,
-0.03499779477715492,
-0.008998957462608814,
0.029009578749537468,
0.0302903912961483,
-0.01677532121539116,
0.02225620113313198,
0.006175347603857517,
0.00014346766693051904,
0.0013068033149465919,
0.01906248740851879,
0.002555387793108821,
-0.019145656377077103,
0.026830533519387245,
-0.03765922412276268,
-0.03406629338860512,
-0.037858832627534866,
-0.003773823380470276,
-0.024900997057557106,
-0.010837007313966751,
-0.02954186499118805,
0.07571766525506973,
-0.09361577033996582,
-0.004728195257484913,
-0.0024701389484107494,
-0.012317427434027195,
-0.011701971292495728,
0.040586795657873154,
0.019095754250884056,
-0.019445067271590233,
-0.00558484299108386,
0.004457893781363964,
0.00018453269149176776,
0.004387199878692627,
0.03639504313468933,
0.029791373759508133,
0.031088819727301598,
-0.06131267547607422,
0.07305623590946198,
-0.016392741352319717,
0.011543949134647846,
-0.08263737708330154,
0.02486773021519184,
-0.09341616928577423,
-0.009963725693523884,
-0.0034141147043555975,
-0.0056555368937551975,
0.06683514267206192,
0.026065371930599213,
0.01655907928943634,
0.01934526301920414,
0.02195679023861885,
0.008574792183935642,
-0.02694697119295597,
-0.01829732581973076,
0.03742634877562523,
-0.020792415365576744,
-0.020858950912952423,
-0.0090821273624897,
-0.0014367559924721718,
-0.0032207451295107603,
0.029658302664756775,
0.027346184477210045,
0.02135797031223774,
-0.015012124553322792,
0.02559962309896946,
0.02814461477100849,
0.013065953738987446,
-0.02463485486805439,
0.05575694143772125,
0.0033787675201892853,
0.012608520686626434,
0.03394985571503639,
0.006732584442943335,
-0.01861337013542652,
0.01384774874895811,
-0.03533047437667847,
-0.05811896175146103,
-0.02440197952091694,
0.054958514869213104,
0.04577658325433731,
-0.016376106068491936,
-0.02001062035560608,
0.04145175963640213,
0.08949055522680283,
0.03280211612582207,
-0.03696059808135033,
-0.00023417458578478545,
-0.04042045772075653,
0.04680788516998291,
-0.03271894529461861,
-0.1029973104596138,
0.09561184793710709,
-0.0106041319668293,
-0.03271894529461861,
0.035829491913318634,
0.04983526095747948,
-0.021707281470298767,
-0.02225620113313198,
-0.0646061971783638,
-0.05618942528963089,
-0.025915667414665222,
-0.025882398709654808,
-0.0112362215295434,
-0.018247423693537712,
0.009506292641162872,
0.010371256619691849,
0.0550583153963089,
-0.03351737558841705,
-0.021091826260089874,
0.0024015239905565977,
-0.02894304320216179,
-0.010246502235531807,
-0.02656439132988453,
-0.017066415399312973,
-0.0444791354238987,
0.04115235060453415,
0.006732584442943335,
-0.006628622300922871,
0.05239688977599144,
-0.06640265882015228,
-0.02864363230764866,
0.0484047457575798,
-0.028261052444577217,
-0.0041044228710234165,
0.017282655462622643,
0.006587037350982428,
-0.0696629136800766,
0.00889083743095398,
0.018779709935188293,
0.007102689240127802,
0.009315002709627151,
-0.03622870519757271,
0.042815741151571274,
-0.06064732000231743,
0.027346184477210045,
-0.0005535980453714728,
-0.04038718715310097,
-0.0017164138844236732,
0.031521301716566086,
-0.02202332764863968,
-0.02099202387034893,
-0.010038577951490879,
-0.014380034990608692,
0.03268567845225334,
-0.016209768131375313,
0.019761111587285995,
0.0006050593219697475,
0.01846366561949253,
0.016243034973740578,
-0.01365645881742239,
-0.004773938562721014,
-0.030390195548534393,
-0.0030252966098487377,
0.013273878023028374,
-0.012117819860577583,
0.007784680463373661,
0.011627119034528732,
0.011003346182405949,
0.03135496377944946,
-0.01838049478828907,
-0.01636778935790062,
0.0032020320650190115,
-0.021258166059851646,
-0.03446550667285919,
-0.07026173174381256,
-0.01309922244399786,
-0.01801454834640026,
-0.062410514801740646,
0.032569240778684616,
-0.005006813909858465,
0.0035783748608082533,
-0.019445067271590233,
-0.014762614853680134,
-0.004923644009977579,
-0.015494508668780327,
-0.025649523362517357,
0.03559661656618118,
0.058152228593826294,
-0.007863692007958889,
-0.006732584442943335,
-0.013448534533381462,
-0.05246342346072197,
-0.04660828039050102,
0.008412611670792103,
0.005460088606923819,
-0.01335704792290926,
-0.009689265862107277,
-0.033168062567710876,
-0.05918353423476219,
-0.005031764507293701,
0.02895967662334442,
0.051232513040304184,
0.018430396914482117,
0.009988676756620407,
-0.004457893781363964,
-0.09647680819034576,
0.024684756994247437,
-0.02485109493136406,
-0.011909895576536655,
-0.007356356829404831,
0.048937030136585236,
0.007913593202829361,
-0.02047637104988098,
0.052197281271219254,
0.007314771879464388,
-0.024085935205221176,
0.03729327768087387,
0.026614291593432426,
-0.05728726461529732,
-0.026830533519387245,
-0.08110705763101578,
-0.0003417753323446959,
0.02210649661719799,
0.024767925962805748,
0.027994908392429352,
-0.02814461477100849,
0.007015360984951258,
-0.023104531690478325,
0.03712693601846695,
-0.05386067554354668,
-0.0352972038090229,
0.052796103060245514,
-0.03676098957657814,
0.06773337721824646,
-0.00517315324395895,
0.028377488255500793,
0.046708084642887115,
0.0013993296306580305,
-0.024152470752596855,
-0.017515530809760094,
0.03599582985043526,
0.05053388699889183,
0.0030273757874965668,
0.013673092238605022,
-0.00020467535068746656,
-0.02031003125011921,
0.01906248740851879,
-0.016825223341584206,
0.0013411107938736677,
0.016201449558138847,
-0.0062668342143297195,
-0.0323529988527298,
0.014313499443233013,
0.011211270466446877,
0.04065333306789398,
0.023686720058321953,
-0.009215198457241058,
-0.0017288894159719348,
0.02544991672039032,
0.04867088794708252,
0.0037925366777926683,
0.032935187220573425,
-0.05106617510318756,
0.03775902837514877,
0.01291624829173088,
0.03215339034795761,
0.01126948930323124,
-0.022638782858848572,
0.005613952409476042,
-0.002434791997075081
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.