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,038
imodels.tree.figs
_predict_tree
Predict for a single tree
def _predict_tree(self, root: Node, X): """Predict for a single tree""" def _predict_tree_single_point(root: Node, x): if root.left is None and root.right is None: return root.value[0, 0] left = x[root.feature] <= root.threshold if left: if root.left is None: # we don't actually have to worry about this case return root.value else: return _predict_tree_single_point(root.left, x) else: if ( root.right is None ): # we don't actually have to worry about this case return root.value else: return _predict_tree_single_point(root.right, x) preds = np.zeros(X.shape[0]) for i in range(X.shape[0]): preds[i] = _predict_tree_single_point(root, X[i]) return preds
(self, root: imodels.tree.figs.Node, X)
[ -0.0017683332553133368, -0.0032412149012088776, 0.024318959563970566, 0.038588184863328934, 0.022655675187706947, -0.010863869450986385, -0.008066926151514053, 0.01010226085782051, 0.08502006530761719, -0.003967807162553072, 0.027260346338152885, -0.009279373101890087, -0.03820300102233887, -0.009130552411079407, 0.015862474218010902, -0.008154467679560184, 0.020519670099020004, 0.020379602909088135, -0.007344711106270552, 0.039708711206912994, 0.009489472024142742, 0.00046287436271086335, -0.0583374910056591, 0.01618637703359127, -0.029518909752368927, -0.06166405975818634, -0.01834864728152752, -0.01917153410613537, 0.015573589131236076, -0.02703273855149746, -0.03799290210008621, -0.015608604997396469, -0.04040904343128204, -0.044225841760635376, -0.0445760041475296, -0.02619234286248684, 0.0014116027159616351, 0.05136920511722565, -0.004000635351985693, -0.07773663103580475, -0.06548085808753967, -0.07465518265962601, -0.08340930193662643, 0.003512592753395438, -0.030219240114092827, -0.009708324447274208, 0.023916270583868027, 0.002186342841014266, 0.002836336614564061, -0.018453696742653847, -0.04510125145316124, -0.005659542046487331, 0.0048760478384792805, 0.022095412015914917, 0.0023942531552165747, -0.007033939473330975, 0.024984274059534073, -0.015205915085971355, 0.008649075403809547, -0.013814009726047516, 0.10182798653841019, 0.07976759225130081, -0.005510721821337938, 0.026419950649142265, -0.01008475199341774, -0.01358640193939209, -0.03687237575650215, 0.030884554609656334, -0.021885313093662262, 0.02297082543373108, -0.059598084539175034, -0.05350521206855774, 0.012781023047864437, 0.04131947085261345, 0.055536169558763504, 0.0028188282158225775, 0.02678762376308441, -0.04660696163773537, 0.014811979606747627, 0.047167226672172546, -0.08558032661676407, -0.014409289695322514, 0.02745293639600277, 0.04002385959029198, -0.03725755587220192, -0.05399544537067413, 0.03275793790817261, -0.010487441904842854, 0.02466912567615509, 0.05536108836531639, -0.017657071352005005, 0.028415890410542488, 0.023583613336086273, 0.06264451891183853, 0.024774175137281418, 0.04748237505555153, 0.042404983192682266, 0.0072090220637619495, 0.011450395919382572, -0.042790163308382034, 0.02339102327823639, 0.09958692640066147, -0.021044917404651642, 0.028520939871668816, -0.010329867713153362, 0.02955392748117447, -0.006285462062805891, 0.046466898173093796, -0.014470568858087063, 0.017123069614171982, -0.07955749332904816, -0.018383663147687912, -0.013376303017139435, -0.018856385722756386, -0.020344587042927742, -0.04699214547872543, -0.028240807354450226, 0.02691018022596836, -0.10476937144994736, -0.013997846283018589, 0.0518244206905365, 0.005764591507613659, -0.034368693828582764, -0.006780069787055254, -0.08593049645423889, 0.005164933856576681, 0.11058211326599121, 0.023426039144396782, -0.056796763092279434, -0.025719620287418365, -0.0224105603992939, 0.055571187287569046, -0.028520939871668816, 0.016921723261475563, 0.017639562487602234, -0.04107435420155525, 0.005939674098044634, 0.00810194294899702, 0.021272525191307068, -0.08018779009580612, 0.01232580840587616, -0.06365999579429626, 0.07892719656229019, -0.00592216569930315, 0.02283075824379921, -0.02286577597260475, -0.0028910499531775713, -0.0010844172211363912, 0.01318371295928955, 0.0003337510279379785, -0.013209975324571133, -0.02759300358593464, 0.022918300703167915, -0.03911343216896057, 0.03097209520637989, 0.021535148844122887, 0.025719620287418365, -0.07661610096693039, 0.006863234099000692, -0.011187772266566753, -0.016501525416970253, -0.023373514413833618, -0.025579553097486496, -0.07325451821088791, 0.018803860992193222, -0.02071226015686989, -0.03142730891704559, 0.00009547467925585806, -0.025386963039636612, 0.010548721067607403, 0.04159960150718689, -0.020554685965180397, -0.053295113146305084, 0.04891805350780487, -0.05494089052081108, 0.0004948816495016217, 0.025684602558612823, 0.0274354275316, -0.01281603891402483, 0.06894748657941818, 0.03750267252326012, 0.009410684928297997, -0.009086782112717628, -0.046887096017599106, 0.008281402289867401, -0.0445760041475296, 0.015433522872626781, 0.028468415141105652, -0.03876326605677605, 0.05784725770354271, -0.040268976241350174, -0.039848778396844864, 0.04975844919681549, 0.04440092295408249, 0.048532869666814804, -0.008084435015916824, 0.03261787071824074, 0.0027750576846301556, 0.02789064310491085, 0.011748036369681358, -0.015100865624845028, -0.040128909051418304, 0.03142730891704559, 0.03683735802769661, -0.06576098501682281, -0.015503555536270142, -0.014461814425885677, 0.055291056632995605, -0.017552021890878677, -0.029921600595116615, 0.0035891912411898375, 0.030884554609656334, 0.017070544883608818, 0.022533118724822998, -0.021762754768133163, -0.002825393807142973, -0.03331819921731949, 0.008237631991505623, -0.008679714985191822, -0.03701244294643402, -0.055956367403268814, -0.002038616919890046, -0.0009842918952926993, 0.014199190773069859, 0.015223423950374126, -0.021272525191307068, 0.02843339927494526, 0.007808679714798927, 0.03935854509472847, -0.03277544304728508, 0.025141848251223564, -0.021780263632535934, -0.019941898062825203, -0.08978230506181717, 0.034141089767217636, -0.0683872252702713, 0.02522938884794712, -0.044330891221761703, -0.009918424300849438, -0.012387087568640709, 0.036382146179676056, -0.04513626918196678, -0.014768209308385849, -0.04089927300810814, 0.02899366244673729, 0.018121039494872093, 0.015722408890724182, -0.0023723680060356855, 0.019521698355674744, -0.007839319296181202, -0.005852132569998503, -0.06373003125190735, 0.010601245798170567, -0.005221835803240538, 0.06786198168992996, -0.06176910921931267, 0.0658310204744339, 0.06653135269880295, 0.042510032653808594, 0.07241412252187729, -0.03463131934404373, 0.0006423339364118874, 0.02155265584588051, 0.053435180336236954, -0.03571683168411255, -0.03687237575650215, 0.02325095608830452, -0.024021320044994354, 0.04300026223063469, -0.015678638592362404, 0.046852078288793564, 0.012133217416703701, -0.04692211002111435, -0.045591484755277634, 0.04874296858906746, 0.027768084779381752, -0.00994468666613102, 0.02873103879392147, 0.008189484477043152, 0.008662207052111626, 0.007493531331419945, -0.09818626940250397, -0.004959212150424719, 0.026419950649142265, -0.03683735802769661, -0.0043157837353646755, -0.026104802265763283, -0.025316929444670677, 0.04650191217660904, -0.0231108907610178, 0.03193504735827446, 0.0613839253783226, -0.01792844757437706, 0.00902550294995308, -0.008517763577401638, -0.042369965463876724, -0.02185029722750187, -0.04751739278435707, 0.02200787141919136, 0.016055066138505936, -0.0008496972732245922, 0.002880107145756483, 0.04681706055998802, -0.06401016563177109, 0.021885313093662262, 0.047972604632377625, 0.007195890881121159, 0.023583613336086273, -0.02761051058769226, 0.008561534807085991, -0.003210575319826603, 0.02270819991827011, 0.029536418616771698, -0.03547171503305435, -0.06054352968931198, -0.09832633286714554, 0.08943214267492294, -0.05238468572497368, 0.07020808756351471, -0.009323143400251865, -0.03218016400933266, 0.01175678987056017, -0.0154072605073452, 0.037047456949949265, 0.04891805350780487, -0.019031468778848648, 0.07857702672481537, -0.01606382057070732, 0.006845725700259209, 0.02703273855149746, 0.004088176414370537, -0.022480593994259834, 0.008705977350473404, 0.011520428583025932, -0.0476224422454834, 0.01792844757437706, 0.008088811300694942, 0.021937837824225426, -0.019083993509411812, 0.02705024741590023, -0.03487643599510193, -0.022042887285351753, 0.000448922481155023, 0.05410049483180046, 0.010592491365969181, 0.03841309994459152, 0.024038827046751976, 0.027260346338152885, 0.006889496464282274, 0.062434419989585876, -0.04765745624899864, 0.009918424300849438, 0.019941898062825203, 0.04384065791964531, 0.0010565135162323713, -0.053330130875110626, 0.009900915436446667, 0.009060519747436047, -0.008180730044841766, -0.0015046152984723449, 0.07332455366849899, -0.021920328959822655, -0.024879224598407745, 0.015617359429597855, 0.0006341269472613931, -0.03799290210008621, -0.04103934019804001, 0.09811623394489288, 0.013350040651857853, -0.03296803683042526, 0.003400977700948715, -0.02256813459098339, -0.05711191147565842, 0.055150989443063736, -0.00002140657124982681, 0.0518244206905365, -0.01774461194872856, -0.020239537581801414, 0.04968841373920441, 0.02634991705417633, -0.014400536194443703, 0.010960164479911327, 0.0030617553275078535, -0.0005887149018235505, 0.028398381546139717, -0.06695155054330826, 0.06376504898071289, -0.035104043781757355, 0.03191754221916199, -0.023653646931052208, 0.0015746483113616705, -0.02085232548415661, -0.04555646702647209, -0.026279883459210396, -0.03711749240756035, 0.0035060271620750427, 0.031584884971380234, 0.004156020935624838, -0.0332481674849987, -0.012299546040594578, -0.03823801875114441, 0.009848390705883503, -0.01395407598465681, -0.03515656664967537, 0.026840148493647575, 0.0010537778725847602, 0.005143048707395792, -0.011713019572198391, -0.009384422563016415, 0.023846236988902092, -0.03960366174578667, 0.07318449020385742, 0.07290435582399368, 0.0066268728114664555, 0.015836212784051895, -0.026682574301958084, 0.06695155054330826, 0.09671557694673538, 0.01728939637541771, -0.07199392467737198, 0.018418679013848305, 0.010049736127257347, -0.021062424406409264, -0.0012594998115673661, 0.03834306821227074, 0.039848778396844864, 0.034123580902814865, 0.014689422212541103, -0.00029709312366321683, 0.05231465399265289, -0.007891844026744366, -0.06481554359197617, -0.03949861228466034, -0.0585826076567173, -0.02143009938299656, 0.04005887731909752, -0.015205915085971355, -0.0348939448595047, -0.031199702993035316, 0.006587479263544083, -0.023776203393936157, 0.0714336633682251, 0.027785593643784523, -0.01822608895599842, 0.03051687963306904, 0.0007588732405565679, -0.013008629903197289, -0.04485613852739334, -0.020292062312364578, -0.06632125377655029, -0.010329867713153362, -0.016755396500229836, 0.04594165086746216, 0.029606452211737633, 0.020537177100777626, -0.021342556923627853, -0.0747252106666565, -0.0026218604762107134, -0.013673943467438221, 0.04173966869711876, -0.02281324937939644, -0.01316620409488678, 0.027400411665439606, -0.01303489226847887, 0.03687237575650215, -0.0403740257024765, 0.03331819921731949, 0.009209339506924152, -0.030149206519126892, -0.05826745554804802, 0.05592135339975357, -0.06068359687924385, -0.011704265139997005, 0.036907393485307693, -0.018611270934343338, 0.02086983434855938, 0.003816798562183976, -0.030621929094195366, -0.0041735293343663216, -0.0361720435321331, -0.02775057777762413, -0.009288126602768898, -0.002606540685519576, -0.045171286910772324, -0.04089927300810814, -0.039848778396844864, -0.03599696233868599, 0.013700205832719803, -0.001371114864014089, -0.028941137716174126, -0.054730791598558426, -0.011599215678870678, 0.0389733649790287, 0.04215986654162407, -0.06376504898071289, 0.02018701285123825, 0.03613702952861786, 0.009752095676958561, 0.008465238846838474, -0.008723486214876175, 0.018593762069940567, -0.02985156700015068, -0.007646728307008743, -0.024756666272878647, -0.011047706007957458, 0.05210455507040024, -0.051614321768283844, 0.041144389659166336, -0.025106830522418022, 0.06166405975818634, 0.011284067295491695, -0.04047907516360283, 0.01889140158891678, 0.008377698250114918, 0.008881060406565666, 0.0641852468252182, 0.05231465399265289, 0.015976278111338615, -0.02591221034526825, 0.03288049250841141, -0.03331819921731949, -0.026017259806394577, 0.004884801805019379, -0.06506066024303436, 0.03785283863544464, 0.05185943841934204, 0.018121039494872093, 0.00539254117757082, 0.01904897578060627, -0.026927689090371132, -0.0005178612191230059, -0.021535148844122887, 0.046887096017599106, 0.03939356282353401, -0.012492137029767036, 0.005125540308654308, 0.052874915301799774, -0.007799925748258829, 0.009550750255584717, -0.02239305153489113, 0.01274600625038147, -0.060753628611564636, -0.01847120374441147, 0.03725755587220192, 0.03463131934404373, -0.014409289695322514, -0.010968918912112713, 0.02480919100344181, -0.035524241626262665, 0.05357524752616882, 0.0006724262493662536, -0.011931872926652431, 0.03865821659564972, 0.0023439170327037573, 0.03610201179981232, 0.03596194460988045, 0.022463085129857063, 0.015118374489247799, 0.027365395799279213, 0.016921723261475563, -0.02997412532567978, -0.027575494721531868, 0.0562715157866478, -0.0069376444444060326, 0.022620659321546555, -0.002740041119977832, -0.080748051404953, 0.05994825065135956, 0.019259074702858925, -0.03281046077609062, 0.042510032653808594, 0.01609008200466633, 0.010583736933767796, -0.023145906627178192, -0.011222788132727146, 0.004304841160774231, -0.008268271572887897, -0.04352550953626633, -0.09349405765533447, 0.028625989332795143, 0.02550952136516571, -0.021044917404651642, 0.008579042740166187, 0.018821369856595993, -0.0256670955568552, -0.011021443642675877, 0.024774175137281418, 0.07157372683286667, -0.03125222772359848, -0.021272525191307068, -0.04793759062886238, -0.03956864774227142, 0.041109371930360794, 0.03275793790817261, 0.04005887731909752, -0.02255062572658062, -0.061173826456069946, 0.0030530011281371117, 0.024756666272878647, -0.05956306681036949, 0.04513626918196678, -0.00841271411627531, 0.000970066525042057, 0.010461179539561272, -0.004981097299605608, -0.04093429073691368, -0.010968918912112713, -0.0004199244431219995, -0.029623959213495255, -0.007830564863979816, 0.02325095608830452, 0.004687834065407515, 0.04391069337725639, 0.011896856129169464, 0.01463689748197794, 0.006845725700259209, -0.007743023801594973, 0.029886582866311073, -0.024003811180591583, 0.01824359782040119, 0.01988937333226204, -0.008850420825183392, 0.011441641487181187, -0.016912970691919327, -0.030166715383529663, -0.02897615358233452, 0.05434560775756836, -0.1097417101264, 0.0010275153908878565, -0.03142730891704559, 0.023215940222144127, -0.012387087568640709, -0.02452905848622322, -0.04723725840449333, 0.0018668172415345907, 0.015932507812976837, 0.027943167835474014, 0.020782293751835823, 0.00018944473413284868, -0.013761484995484352, -0.06845726072788239, -0.009436947293579578, -0.01890891045331955, -0.0030508125200867653, 0.04089927300810814, -0.03939356282353401, -0.054275576025247574, 0.0660761371254921, 0.02143009938299656, -0.0015265005640685558, -0.051509272307157516, -0.004475546535104513, -0.018541237339377403, 0.036242078989744186, 0.0003747859736904502, -0.0013809632509946823, -0.020274553447961807, 0.06898250430822372, -0.000987574807368219, 0.006876365281641483, -0.04751739278435707, -0.028836088255047798, -0.0035804372746497393, 0.023320989683270454, 0.028941137716174126, 0.009200586006045341, -0.010583736933767796, -0.052629802376031876, -0.01892641931772232, 0.009078027680516243, -0.015433522872626781, -0.0149958161637187, 0.03673230856657028, -0.014146666042506695, 0.08950217813253403, -0.07160874456167221, 0.029466385021805763, 0.00003154562728013843, 0.047692473977804184, -0.0033747153356671333, 0.033545807003974915, 0.07185386121273041, 0.02326846495270729, -0.010049736127257347, 0.04373560845851898, 0.015879983082413673, -0.026419950649142265, 0.03571683168411255, 0.0004024161898996681, -0.0006937644211575389, -0.009935932233929634, -0.02522938884794712, 0.08235880732536316, 0.006828217767179012, -0.04930323362350464, 0.012824793346226215, -0.0263674259185791, 0.02409135177731514, -0.028205791488289833, -0.01892641931772232, 0.017411954700946808, -0.0294138602912426, -0.07710633426904678, -0.03375590592622757, -0.013358795084059238, 0.06008831411600113, -0.04580158367753029, 0.021079933270812035, -0.022480593994259834, -0.03133976832032204, -0.03275793790817261, 0.014260469935834408, -0.012080692686140537, -0.03422863036394119, -0.016615329310297966, 0.062434419989585876, -0.030621929094195366, -0.011415379121899605, -0.009813373908400536, 0.009078027680516243, -0.014015354216098785, -0.010487441904842854, 0.03792287036776543, 0.09832633286714554, -0.05798732489347458, 0.023443548008799553, 0.08894190937280655, -0.06527075916528702, -0.018015990033745766, 0.01778838224709034, -0.004037840291857719, 0.0473773255944252, 0.030621929094195366, -0.048392802476882935, -0.056796763092279434, -0.03443872928619385, 0.012570924125611782, -0.042369965463876724, 0.005313754081726074, 0.0008469616295769811, 0.020116979256272316, -0.01483824197202921, -0.03492895886301994, 0.027417920529842377, 0.029203761368989944, -0.005782099906355143, -0.01632644422352314, 0.03261787071824074, 0.03547171503305435, -0.03851814940571785, 0.030884554609656334, 0.023618629202246666, 0.026822639629244804, 0.0033572069369256496, 0.044050756841897964, 0.06933267414569855, -0.0058433786034584045, -0.015862474218010902, 0.011721774004399776, -0.014146666042506695, -0.00973458681255579, -0.08095815032720566, -0.06688151508569717, -0.0007605146383866668, -0.009454455226659775, 0.01071504969149828, 0.03904339671134949, 0.06092870980501175 ]
17,041
imodels.tree.figs
_tree_to_str
null
def _tree_to_str(self, root: Node, prefix=""): if root is None: return "" elif root.threshold is None: return "" pprefix = prefix + "\t" return ( prefix + str(root) + "\n" + self._tree_to_str(root.left, pprefix) + self._tree_to_str(root.right, pprefix) )
(self, root: imodels.tree.figs.Node, prefix='')
[ -0.038480088114738464, 0.019401423633098602, 0.050135284662246704, -0.003050524042919278, 0.04353664815425873, -0.026125576347112656, -0.004171216394752264, 0.02366901934146881, 0.10170505940914154, -0.056339435279369354, 0.045006997883319855, -0.04012974351644516, 0.0012899166904389858, -0.02216280810534954, -0.008588984608650208, 0.009198641404509544, -0.01585106924176216, -0.08119190484285355, 0.06017668545246124, 0.061503585427999496, 0.010202781297266483, 0.0030931103974580765, 0.03301110863685608, -0.0058813923969864845, -0.04005802050232887, -0.017133142799139023, -0.029747653752565384, -0.02847454696893692, -0.03566490858793259, -0.023005569353699684, -0.001073623076081276, -0.05321943014860153, 0.019777975976467133, -0.014757274650037289, -0.035073183476924896, -0.005702081602066755, -0.003075179411098361, -0.0024767296854406595, -0.04676424339413643, -0.08212432265281677, -0.025964196771383286, 0.005863461643457413, -0.08865123242139816, -0.03797801584005356, -0.024350399151444435, -0.030339378863573074, 0.0668829083442688, 0.015420724637806416, -0.008530708961188793, -0.0016485381638631225, 0.027326958253979683, 0.01904280111193657, -0.05963875353336334, -0.0012148303212597966, -0.0517849437892437, -0.0223779808729887, 0.02573109231889248, -0.04203043878078461, 0.02551591955125332, 0.010014505125582218, 0.027040060609579086, 0.08549536764621735, 0.021983496844768524, 0.0291200652718544, -0.04253251105546951, -0.03641801327466965, -0.06946498155593872, -0.002222332637757063, 0.020082803443074226, 0.04303457960486412, -0.03647180646657944, -0.05343460291624069, 0.02038763277232647, 0.04590355232357979, 0.015600034967064857, 0.0011167697375640273, -0.018316593021154404, -0.06114496663212776, -0.009646918624639511, -0.003341904142871499, -0.03467869758605957, -0.04633389785885811, 0.06530497223138809, 0.02756006270647049, 0.0318276584148407, -0.08406087756156921, -0.007826914079487324, 0.036543529480695724, 0.005540702026337385, -0.005661736708134413, -0.02788282185792923, -0.012731063179671764, -0.016487622633576393, 0.026627646759152412, -0.015375896356999874, 0.04142078384757042, 0.04977666214108467, -0.04303457960486412, -0.019652457907795906, -0.02431453764438629, 0.00017987108731176704, 0.0603918582201004, -0.03320835158228874, 0.02981937676668167, -0.00015003266162239015, 0.008938640356063843, -0.0047696661204099655, 0.023866260424256325, 0.03663318604230881, 0.05128287523984909, -0.029317306354641914, -0.04873666167259216, 0.047373898327350616, -0.0463697575032711, 0.049489766359329224, -0.07452154904603958, -0.058491166681051254, -0.011502784676849842, -0.005867944099009037, -0.024852469563484192, 0.05311184376478195, -0.02530074678361416, -0.014909688383340836, -0.007212774828076363, -0.03215041756629944, 0.012462097220122814, 0.027542131021618843, 0.044469065964221954, 0.011547612026333809, -0.07947052270174026, 0.036866288632154465, 0.04407458007335663, -0.016102105379104614, 0.0334235243499279, 0.09446090459823608, -0.01229175180196762, -0.0479835569858551, 0.01655934751033783, 0.04823458939790726, 0.016953831538558006, 0.029371099546551704, -0.08391743153333664, -0.002109142718836665, 0.02329246699810028, -0.0019892286509275436, -0.008355881087481976, 0.008257259614765644, 0.02383039891719818, 0.015815207734704018, -0.03797801584005356, 0.035575252026319504, -0.0339973159134388, -0.01065105851739645, -0.012408304028213024, 0.009306227788329124, -0.000697630865033716, 0.010355195961892605, -0.0679229125380516, 0.06774359941482544, -0.03353111073374748, 0.019544871523976326, -0.04611872509121895, 0.004984838888049126, -0.056554608047008514, 0.01591382920742035, -0.017733832821249962, -0.021337978541851044, -0.01866624876856804, -0.01747383177280426, -0.040631815791130066, 0.013277960941195488, -0.0614677257835865, -0.07373257726430893, 0.08692985028028488, 0.018101420253515244, -0.002248108386993408, -0.0017325901426374912, 0.07559741288423538, -0.0755256861448288, 0.028761444613337517, -0.0069707054644823074, 0.000805217307060957, 0.01898900792002678, 0.005361391231417656, 0.020315907895565033, -0.07233395427465439, 0.023417983204126358, -0.01909659430384636, -0.016102105379104614, -0.03532421588897705, -0.0029900067020207644, -0.01693589985370636, 0.02863592654466629, 0.035521458834409714, 0.0490594208240509, -0.051964253187179565, 0.06946498155593872, -0.0463697575032711, 0.040416643023490906, 0.0075669134967029095, -0.03865939751267433, 0.019401423633098602, 0.03758353367447853, 0.03500145673751831, 0.02686074934899807, -0.020620735362172127, -0.0223779808729887, 0.05996151268482208, -0.04034492000937462, 0.019168319180607796, 0.0533987395465374, 0.025175228714942932, -0.040631815791130066, 0.00787622481584549, -0.03295731544494629, 0.0029093169141560793, -0.053900811821222305, 0.04873666167259216, -0.04873666167259216, 0.044576652348041534, -0.048664938658475876, 0.02981937676668167, 0.014739343896508217, -0.032060761004686356, -0.04454078897833824, 0.011368301697075367, 0.03272421285510063, 0.013905548490583897, 0.09144847840070724, 0.014784171245992184, 0.06817394495010376, -0.032383520156145096, -0.06103738024830818, -0.004455871880054474, -0.023597294464707375, -0.04701527953147888, 0.011251749470829964, -0.06218496710062027, 0.02280832640826702, -0.04830631613731384, -0.019957285374403, -0.056662194430828094, 0.03548559546470642, -0.029209719970822334, 0.10077264159917831, -0.03378214314579964, 0.021804187446832657, -0.024852469563484192, 0.0019309526542201638, 0.054653916507959366, 0.008808640763163567, -0.016155898571014404, 0.013251064345240593, -0.011009680107235909, 0.023686949163675308, -0.029622135683894157, -0.0012215544702485204, 0.05687737092375755, -0.02071039192378521, 0.05831185355782509, -0.027111785486340523, -0.012569683603942394, -0.014228307642042637, 0.01709727942943573, 0.011206922121345997, -0.04561665281653404, -0.03661525622010231, -0.034266285598278046, 0.03406904265284538, -0.01070485170930624, 0.039233192801475525, -0.02296970598399639, -0.0582401305437088, 0.05867047607898712, -0.01560900080949068, -0.026896612718701363, -0.010480713099241257, 0.07437809556722641, -0.01984969899058342, -0.04256837069988251, -0.031253863126039505, -0.03351317718625069, -0.0021584532223641872, -0.03116420842707157, -0.010911058634519577, -0.01086623128503561, -0.001825607498176396, -0.035234563052654266, 0.04224561154842377, -0.0006365531589835882, 0.036489736288785934, 0.016155898571014404, -0.05311184376478195, 0.004550010431557894, 0.03112834505736828, -0.028115924447774887, 0.03566490858793259, -0.034589044749736786, -0.0061907037161290646, 0.024888331070542336, -0.028169717639684677, -0.018415214493870735, 0.04389527067542076, -0.03107455186545849, 0.008916227146983147, 0.039878711104393005, -0.045329757034778595, -0.015833139419555664, 0.0012002612929791212, 0.024511778727173805, -0.04740976169705391, -0.0426042340695858, 0.07136567682027817, -0.0366690494120121, 0.013573823496699333, 0.0393766388297081, 0.01807452365756035, -0.06193393096327782, 0.03498352691531181, 0.025766953825950623, -0.041169747710227966, 0.03150489926338196, -0.014174514450132847, 0.017984867095947266, -0.008131742477416992, -0.06240013986825943, 0.020997287705540657, 0.017330383881926537, 0.028779374435544014, -0.020477287471294403, -0.01785935088992119, -0.02060280553996563, 0.028295235708355904, 0.0039717331528663635, -0.01688210666179657, 0.013116581365466118, 0.07330223172903061, -0.02383039891719818, -0.06569945812225342, 0.03797801584005356, 0.08944020420312881, 0.022682810202240944, 0.014739343896508217, 0.038695260882377625, -0.01703452132642269, 0.0646953210234642, -0.004509665071964264, 0.02178625576198101, 0.03995043411850929, 0.02637661062180996, -0.03220421075820923, 0.01396830752491951, -0.013412443920969963, -0.02777523547410965, 0.029478687793016434, -0.01197795756161213, 0.01472141221165657, 0.02863592654466629, -0.020154528319835663, 0.09037261456251144, 0.049525629729032516, 0.006782428827136755, 0.017375212162733078, 0.03962767496705055, 0.03700973838567734, -0.004908631555736065, 0.026502128690481186, 0.027954544872045517, 0.02718350850045681, 0.00772829307243228, -0.0229159127920866, -0.017393141984939575, 0.0048593212850391865, -0.054223570972681046, -0.06125255301594734, 0.10163333266973495, 0.016971761360764503, -0.020351769402623177, -0.005321046337485313, -0.07760569453239441, 0.04120561107993126, 0.013143477961421013, 0.016353139653801918, -0.007943466305732727, -0.013690375722944736, -0.0011946578742936254, 0.018047627061605453, -0.0009161658235825598, -0.009611056186258793, -0.013277960941195488, -0.013555892743170261, 0.02820558100938797, 0.02162487618625164, -0.013824858702719212, -0.017653143033385277, 0.019670389592647552, 0.013000029139220715, -0.020566942170262337, -0.005504840053617954, 0.030500758439302444, 0.0007547861896455288, -0.019813837483525276, -0.060212548822164536, -0.03080558590590954, -0.020297976210713387, 0.04644148424267769, 0.014255204237997532, -0.02492419444024563, 0.022933844476938248, 0.009745539166033268, -0.040309056639671326, 0.018702110275626183, 0.0037072496488690376, 0.048521488904953, 0.04278354346752167, -0.03822905197739601, -0.002981041092425585, 0.04443320259451866, -0.02729109488427639, -0.017993833869695663, -0.06103738024830818, 0.04120561107993126, -0.009799332357943058, 0.04579596593976021, 0.06229255348443985, -0.007907603867352009, -0.0054017361253499985, 0.010373126715421677, 0.02173246257007122, 0.09890780597925186, 0.02836696058511734, -0.037404220551252365, -0.0025865575298666954, -0.06168289855122566, 0.0366690494120121, 0.03041110374033451, -0.003666904754936695, 0.0005561434663832188, 0.010767610743641853, 0.03700973838567734, 0.014057962223887444, -0.002651557791978121, 0.03051869012415409, 0.03360283374786377, 0.03277800604701042, 0.01086623128503561, -0.039233192801475525, -0.006396911107003689, -0.052071839570999146, 0.00513725308701396, -0.005164149682968855, 0.0031132828444242477, -0.04249664768576622, -0.012139338068664074, -0.00830657035112381, -0.04378768429160118, -0.008633812889456749, 0.04070353880524635, -0.034158699214458466, 0.027811096981167793, -0.025390401482582092, 0.03765525668859482, 0.026824887841939926, 0.026717301458120346, 0.018755903467535973, -0.018209006637334824, 0.03188145160675049, 0.015366931445896626, -0.05938772112131119, -0.02302349917590618, 0.02060280553996563, -0.03948422521352768, -0.026789026334881783, 0.028869030997157097, 0.03051869012415409, 0.02388419210910797, -0.04432561621069908, -0.015053137205541134, -0.02395591512322426, -0.013887617737054825, -0.059997376054525375, -0.012856580317020416, 0.024440055713057518, -0.017671074718236923, -0.023417983204126358, 0.018200041726231575, 0.0009217693004757166, 0.04296285659074783, 0.036866288632154465, -0.02458350360393524, -0.012829683721065521, 0.053793225437402725, -0.06734911352396011, -0.030644206330180168, -0.012444165535271168, 0.039448365569114685, -0.058813925832509995, -0.027793165296316147, -0.08728846907615662, 0.054653916507959366, 0.0016653485363349319, -0.014228307642042637, -0.017877280712127686, 0.021983496844768524, 0.0007267688633874059, -0.005563116166740656, 0.013062788173556328, 0.06347600370645523, 0.008055535145103931, 0.03134351968765259, 0.02917385846376419, -0.04977666214108467, 0.003803629195317626, 0.04568837955594063, -0.04324975237250328, 0.0057738060131669044, 0.001096036983653903, 0.007069326005876064, -0.00680932542309165, 0.012569683603942394, -0.10120298713445663, 0.004644148517400026, 0.003832767251878977, -0.03435593843460083, 0.0014535377267748117, 0.006858636159449816, 0.02221660129725933, 0.06379876285791397, -0.024332469329237938, 0.012740029022097588, -0.0011643992038443685, 0.029371099546551704, 0.06078634411096573, 0.013887617737054825, -0.0442180298268795, 0.032383520156145096, 0.011126232333481312, -0.036973875015974045, 0.03310076519846916, -0.03790629282593727, 0.031469035893678665, -0.010794507339596748, -0.03293938562273979, -0.025928333401679993, 0.021481428295373917, 0.04224561154842377, 0.08563881367444992, 0.04357251152396202, 0.035467665642499924, 0.011278646066784859, -0.005330012179911137, 0.022880051285028458, 0.029586274176836014, 0.0213021170347929, -0.00013343241880647838, 0.02092556469142437, 0.00519104627892375, 0.0048234593123197556, 0.04038077965378761, -0.01196899265050888, -0.035360079258680344, 0.0033598351292312145, -0.013161408714950085, 0.012363475747406483, 0.02436833083629608, 0.006473117973655462, -0.03704560175538063, -0.01785935088992119, 0.02928144484758377, 0.0071679470129311085, 0.02377660572528839, -0.06103738024830818, -0.0012518131406977773, -0.04525803402066231, -0.0684967041015625, -0.009041744284331799, -0.01108140405267477, -0.008929675444960594, -0.023471776396036148, 0.013367616571485996, 0.0043975962325930595, 0.013950375840067863, 0.026089712977409363, 0.024565571919083595, 0.027309026569128036, 0.0013818134320899844, 0.024601435288786888, 0.02361522614955902, 0.012049682438373566, -0.0647311806678772, -0.03851594775915146, -0.046620793640613556, 0.05375736206769943, -0.035180769860744476, 0.10335471481084824, -0.043931134045124054, -0.03387179970741272, 0.016155898571014404, 0.034750424325466156, -0.02885109931230545, 0.0695725679397583, 0.00587690994143486, 0.0004793760890606791, 0.07276429980993271, -0.015833139419555664, -0.008503812365233898, 0.046298034489154816, 0.011933130212128162, -0.023113155737519264, 0.06196979433298111, -0.012910373508930206, 0.025766953825950623, -0.0007138809305615723, -0.05128287523984909, -0.03279593586921692, -0.02895868569612503, 0.004043457563966513, -0.021929703652858734, -0.04235319793224335, -0.0169807281345129, 0.04253251105546951, 0.035019390285015106, -0.05020700767636299, 0.019347630441188812, -0.02442212402820587, 0.02868971973657608, 0.012282785959541798, -0.0776774138212204, 0.007916569709777832, -0.10765817016363144, 0.0028219029773026705, -0.03873112052679062, -0.01742003858089447, -0.02825937420129776, -0.10615196079015732, -0.01617383025586605, 0.011323473416268826, 0.018522800877690315, -0.09316986799240112, 0.0019948319531977177, -0.01164623349905014, -0.013125546276569366, -0.058491166681051254, -0.011323473416268826, -0.02895868569612503, -0.0030146618373692036, 0.008593467995524406, 0.016675898805260658, -0.0603918582201004, -0.045114584267139435, -0.05705668032169342, -0.0016944865928962827, 0.014013134874403477, 0.033190418034791946, 0.013932445086538792, 0.053793225437402725, 0.034535251557826996, 0.016093140468001366, -0.028456615284085274, 0.023220742121338844, -0.0074234651401638985, -0.03408697247505188, -0.018155213445425034, 0.020835908129811287, 0.003716215258464217, 0.0011543129803612828, -0.0021315566264092922, 0.0020037975627928972, 0.0213021170347929, -0.03571870177984238, -0.00026686483761295676, 0.022880051285028458, -0.027219371870160103, -0.04848562553524971, 0.0008181052980944514, -0.025928333401679993, 0.04984838888049126, 0.04242492467164993, 0.030644206330180168, -0.059459444135427475, 0.0145600326359272, 0.04891597107052803, -0.02065659873187542, -0.04766079783439636, -0.007145533338189125, 0.021051080897450447, -0.07416292279958725, 0.047373898327350616, 0.032598692923784256, -0.026466267183423042, -0.02103315107524395, -0.03148696571588516, 0.05235873907804489, 0.038480088114738464, 0.016353139653801918, 0.04622631147503853, 0.03024972230195999, 0.015949690714478493, -0.0049758730456233025, -0.05723598971962929, 0.045437343418598175, -0.04418216645717621, -0.020297976210713387, -0.03328007459640503, 0.04102629795670509, -0.008580019697546959, 0.035234563052654266, -0.008463467471301556, -0.08535191416740417, 0.03833663836121559, -0.012838649563491344, 0.06670359522104263, -0.02060280553996563, -0.038157328963279724, -0.028600065037608147, 0.0010125454282388091, -0.012937270104885101, -0.036166977137327194, 0.005518288351595402, -0.02361522614955902, -0.05953116714954376, -0.0035772493574768305, -0.008190018124878407, 0.02417108789086342, 0.025013849139213562, 0.07150912284851074, 0.043715961277484894, -0.024834537878632545, -0.0523228757083416, -0.008086915127933025, -0.0018132799305021763, 0.06168289855122566, 0.04249664768576622, -0.005585529841482639, 0.023095224052667618, 0.023328328505158424, -0.0036243184003978968, -0.029729722067713737, -0.01113519724458456, 0.01482899859547615, 0.02933523803949356, 0.041994575411081314, 0.012363475747406483, 0.03683042898774147, 0.04299871623516083, -0.04142078384757042, 0.04525803402066231, 0.05329115316271782, -0.015375896356999874, 0.006289324257522821, 0.06562773138284683, 0.027201440185308456, 0.004594837781041861, -0.006612083874642849, 0.05884978920221329, -0.017177969217300415, -0.030267653986811638, 0.013484167866408825, 0.008266225457191467, -0.02404557168483734, -0.03170213848352432, -0.06487462669610977, -0.02513936720788479, -0.00562139181420207, -0.026717301458120346, 0.037726979702711105, 0.015250379219651222, 0.0030124206095933914 ]
17,042
imodels.tree.figs
_tree_to_str_with_data
null
def _tree_to_str_with_data(self, X, y, root: Node, prefix=""): if root is None: return "" elif root.threshold is None: return "" pprefix = prefix + "\t" left = X[:, root.feature] <= root.threshold return ( prefix + root.print_root(y) + "\n" + self._tree_to_str_with_data(X[left], y[left], root.left, pprefix) + self._tree_to_str_with_data(X[~left], y[~left], root.right, pprefix) )
(self, X, y, root: imodels.tree.figs.Node, prefix='')
[ -0.022807741537690163, 0.03454547002911568, 0.061359502375125885, 0.005302185192704201, 0.06424122303724289, -0.027552032843232155, -0.017220020294189453, 0.031575895845890045, 0.08687324821949005, -0.07309722900390625, 0.06009436026215553, -0.048918917775154114, -0.010375941172242165, -0.03939519077539444, -0.010226584039628506, -0.009225010871887207, -0.023457884788513184, -0.07520580291748047, 0.051273491233587265, 0.04628320038318634, 0.013951730914413929, -0.019785452634096146, 0.006931936834007502, 0.0012958943843841553, -0.0230361707508564, -0.05608806759119034, -0.046845484524965286, -0.03203275427222252, -0.031646180897951126, -0.021858884021639824, -0.03921947628259659, -0.07843895256519318, -0.014162588864564896, -0.035353757441043854, -0.0263044610619545, 0.007191115990281105, 0.019486738368868828, -0.004151254892349243, -0.0013936356408521533, -0.07155094295740128, -0.050113774836063385, -0.028887463733553886, -0.09980583190917969, -0.0004145764105487615, -0.021156026050448418, -0.013881445862352848, 0.019961167126893997, 0.02763989008963108, -0.014391017146408558, 0.005113292019814253, 0.016894949600100517, -0.03644318878650665, -0.053382065147161484, 0.028553606942296028, -0.009119582362473011, -0.03612690046429634, 0.05408492311835289, 0.006176364608108997, 0.05773978307843208, 0.019785452634096146, 0.04747805744409561, 0.10043840855360031, 0.006967079825699329, 0.03967633470892906, -0.058126356452703476, -0.039078906178474426, -0.05995378643274307, 0.03169889748096466, -0.011491728015244007, 0.05215206369757652, -0.052327778190374374, -0.023264599964022636, 0.03329789638519287, 0.05387406423687935, 0.007955473847687244, -0.010595584288239479, -0.033034324645996094, -0.037813760340213776, -0.0197678804397583, 0.009075653739273548, -0.032841041684150696, -0.019978739321231842, 0.05506892502307892, 0.017299093306064606, 0.009532511234283447, -0.04413948208093643, 0.021208740770816803, 0.0562286414206028, 0.037602901458740234, -0.00833326019346714, -0.03410618379712105, -0.014153802767395973, -0.006334507837891579, 0.025548888370394707, 0.0066200438886880875, 0.008588045835494995, 0.017299093306064606, 0.0013442159397527575, -0.014452517963945866, -0.009954226203262806, 0.01962731033563614, 0.04023861885070801, -0.015998804941773415, 0.05752892792224884, -0.005675578489899635, 0.032085467129945755, -0.011096370406448841, 0.037813760340213776, -0.014935732819139957, 0.01182558573782444, -0.05665035545825958, -0.04392862319946289, 0.04726719856262207, -0.06431150436401367, 0.04364748299121857, -0.08033666759729385, -0.050113774836063385, -0.010077226907014847, -0.025232601910829544, -0.04536948353052139, 0.055842068046331406, -0.02351059950888157, -0.022825313732028008, 0.004487309139221907, -0.0863109603524208, -0.009040511213243008, 0.05292520672082901, 0.032120611518621445, 0.011113941669464111, -0.11414413899183273, 0.04828634485602379, 0.0471617728471756, -0.04392862319946289, 0.055666353553533554, 0.06779065728187561, -0.05169520527124405, -0.02296588569879532, 0.004581755492836237, 0.06287065148353577, -0.01587580516934395, 0.024863600730895996, -0.08033666759729385, -0.019328594207763672, 0.025373173877596855, 0.014935732819139957, -0.009154725819826126, 0.004968327470123768, 0.03725147247314453, 0.03672432899475098, -0.060410644859075546, 0.00957643985748291, -0.022104883566498756, 0.0007215276709757745, -0.07155094295740128, 0.046775199472904205, -0.021050596609711647, -0.023598456755280495, -0.06779065728187561, 0.0805475264787674, -0.006646400783210993, 0.018256736919283867, -0.06726351380348206, -0.043366339057683945, -0.022544169798493385, 0.014153802767395973, 0.014285588636994362, -0.02604088932275772, -0.013450944796204567, -0.006760615389794111, -0.014030802994966507, 0.03185703977942467, -0.05904007330536842, -0.08258581161499023, 0.10465555638074875, -0.007309723179787397, -0.01587580516934395, -0.0052977921441197395, 0.07077780365943909, -0.05492835119366646, 0.03904376178979874, 0.014619446359574795, 0.024037742987275124, 0.008566081523895264, -0.005280220881104469, 0.0029080749955028296, -0.09959498047828674, 0.03182189539074898, -0.03275318443775177, -0.0012289033038541675, 0.005767828319221735, -0.033965613692998886, -0.038938332349061966, 0.020980311557650566, 0.04364748299121857, 0.04807548597455025, -0.028553606942296028, 0.05303063616156578, -0.03292889893054962, 0.030679751187562943, 0.0054471492767333984, -0.020365310832858086, -0.0036834152415394783, 0.053663209080696106, 0.009427082724869251, -0.010419869795441628, -0.01303801592439413, -0.009145939722657204, 0.10486641526222229, -0.07668180763721466, 0.004999077413231134, 0.07408123463392258, -0.002657681703567505, -0.054506637156009674, 0.008113617077469826, -0.00604897178709507, 0.013705731369554996, -0.03630261495709419, 0.028237320482730865, -0.05935635790228844, -0.00234359223395586, -0.011184227652847767, 0.03291132673621178, 0.010516513139009476, 0.016042733564972878, -0.03292889893054962, 0.007226258981972933, 0.06413578987121582, 0.004726720042526722, 0.070356085896492, -0.028782034292817116, 0.08230467140674591, -0.011702585965394974, -0.05756406858563423, -0.03414132818579674, -0.03143532574176788, -0.05721263960003853, 0.03152318298816681, -0.018924452364444733, 0.04582634195685387, -0.023457884788513184, -0.01646444946527481, -0.06902065873146057, 0.02126145362854004, -0.0565800704061985, 0.07429209351539612, -0.03816518932580948, 0.03182189539074898, -0.013696945272386074, 0.020945169031620026, 0.042101193219423294, 0.007968652993440628, -0.010744941420853138, 0.0004538375942502171, -0.03132989630103111, 0.0024248601403087378, -0.05025434494018555, 0.0032002003863453865, 0.03928976133465767, -0.0022074133157730103, 0.01857302337884903, -0.03795433044433594, -0.0016165734268724918, -0.03143532574176788, 0.030890608206391335, -0.012800801545381546, -0.03869233280420303, -0.02082216739654541, -0.0562286414206028, 0.034984756261110306, -0.025338031351566315, -0.03837604820728302, -0.030064750462770462, -0.05028948932886124, 0.04164433479309082, -0.017641736194491386, -0.0014375642640516162, 0.011834371834993362, 0.012431800365447998, 0.03630261495709419, -0.03581061586737633, -0.021279025822877884, -0.031224466860294342, -0.011430228129029274, -0.031611040234565735, -0.012185800820589066, -0.023299742490053177, -0.01983816735446453, -0.03250718116760254, 0.03547675907611847, -0.020119309425354004, -0.00799061730504036, 0.007634794805198908, -0.039887189865112305, 0.03925462067127228, 0.025408316403627396, -0.019328594207763672, 0.030099892988801003, -0.029397035017609596, 0.0008933984208852053, 0.010200226679444313, -0.014162588864564896, 0.011834371834993362, 0.035863328725099564, -0.022913170978426933, 0.013055587187409401, 0.010086012072861195, -0.0044148266315460205, -0.0384463332593441, -0.008364010602235794, -0.007828081026673317, -0.006387222092598677, -0.038657188415527344, 0.0645575076341629, -0.04927034676074982, 0.012106728740036488, 0.021103311330080032, 0.023124027997255325, -0.0221224557608366, 0.03823547437787056, 0.03248961269855499, -0.016965234652161598, -0.006316936109215021, 0.015295946970582008, 0.02351059950888157, 0.019328594207763672, -0.02259688451886177, 0.038973476737737656, 0.012054014950990677, 0.02597060240805149, -0.03690004348754883, -0.006830901373177767, -0.005043006036430597, 0.0395357608795166, 0.007946688681840897, 0.01799316518008709, 0.03544161468744278, 0.015392590314149857, -0.011931014247238636, -0.05970778688788414, 0.03565247356891632, 0.007147187367081642, 0.015093875117599964, -0.0039030583575367928, 0.03185703977942467, 0.029976893216371536, 0.026111174374818802, -0.029625464230775833, 0.014452517963945866, 0.061429787427186966, 0.08539724349975586, -0.024459458887577057, 0.02252659946680069, -0.008829653263092041, -0.017843807116150856, 0.025021744892001152, -0.028852321207523346, 0.014136231504380703, 0.02688431926071644, -0.013705731369554996, 0.08385095745325089, 0.06877465546131134, -0.011746514588594437, -0.00047992021427489817, 0.052608922123909, 0.012449372559785843, -0.010226584039628506, 0.011641085147857666, 0.051273491233587265, 0.023422742262482643, 0.00422593392431736, -0.015190518461167812, -0.004638862796127796, 0.012475728988647461, -0.029625464230775833, -0.03250718116760254, 0.07886067032814026, 0.005499863997101784, -0.03145289421081543, 0.001843904028646648, -0.05324149504303932, 0.045439768582582474, 0.023422742262482643, -0.00764358090236783, 0.014268017373979092, -0.02154259756207466, 0.00814436748623848, -0.0025830031372606754, 0.0056008994579315186, -0.006883615627884865, -0.015234447084367275, 0.018994737416505814, 0.03693518787622452, 0.02517988719046116, 0.011430228129029274, -0.025689460337162018, -0.01878388039767742, 0.0006364159635268152, -0.014083516784012318, -0.014171374030411243, 0.03510775789618492, -0.034299470484256744, 0.002083315048366785, -0.07696294784545898, -0.042276907712221146, -0.009690654464066029, 0.018696023151278496, 0.03336818516254425, -0.026286888867616653, -0.011711371131241322, 0.04529919847846031, -0.025478601455688477, 0.030047180131077766, 0.0324544683098793, 0.055736638605594635, 0.02760474756360054, -0.033895328640937805, 0.026216603815555573, 0.06743922829627991, 0.002541271038353443, 0.009453440085053444, -0.06845837086439133, 0.01836216449737549, -0.00819708127528429, 0.006888008210808039, 0.017571449279785156, 0.01700037717819214, -0.06888008117675781, -0.01318737305700779, 0.02713031880557537, 0.11604185402393341, -0.013257659040391445, -0.03686490282416344, -0.027270890772342682, -0.03619718551635742, 0.01349487341940403, 0.01381994504481554, 0.007911545224487782, -0.011851943098008633, 0.027218176051974297, 0.03486175835132599, 0.006150007247924805, 0.004102933686226606, 0.05524463951587677, 0.031242037191987038, -0.024529743939638138, 0.007630402222275734, -0.04016833379864693, -0.0004299514112062752, -0.07172665745019913, 0.016042733564972878, 0.012546014972031116, -0.0013617873191833496, -0.0045070769265294075, 0.023229457437992096, -0.034264326095581055, -0.043401479721069336, 0.004245701711624861, 0.030205322429537773, 0.01049894094467163, 0.041187480092048645, -0.009892726317048073, 0.021823741495609283, 0.012800801545381546, 0.02923889271914959, 0.02742903307080269, -0.03326275572180748, 0.00758208055049181, 0.0034747542813420296, -0.04937577247619629, -0.011280870996415615, -0.004157844465225935, -0.044420626014471054, -0.036478329449892044, 0.023299742490053177, 0.03046889416873455, 0.05995378643274307, -0.020259881392121315, 0.01073615625500679, -0.004722326993942261, -0.042417481541633606, -0.06181636080145836, -0.029730893671512604, 0.0033275934401899576, -0.04132805019617081, -0.0039140405133366585, -0.00568436412140727, 0.0014002248644828796, 0.025531316176056862, 0.032630182802677155, -0.02317674271762371, 0.010525298304855824, 0.058091212064027786, -0.05443635210394859, -0.04048462212085724, -0.023088885471224785, 0.04252290725708008, -0.033034324645996094, -0.01683344878256321, -0.0703912302851677, 0.04962177574634552, -0.008627582341432571, 0.0011344567174091935, -0.020066596567630768, -0.005064970348030329, -0.006163185928016901, 0.0008626483613625169, 0.03152318298816681, 0.07077780365943909, -0.009356796741485596, 0.0317516103386879, 0.02477574348449707, -0.05868864431977272, 0.003808611771091819, 0.0302931796759367, -0.04234719276428223, 0.028430605307221413, 0.018696023151278496, 0.06086750328540802, -0.029572749510407448, -0.0016308502526953816, -0.09994640946388245, 0.007340473122894764, 0.012212157249450684, -0.04069547727704048, 0.02934432215988636, 0.030310751870274544, 0.009769726544618607, 0.05380377918481827, -0.05197634920477867, 0.01547166146337986, 0.011149085126817226, 0.01809859275817871, 0.08764639496803284, 0.007221865933388472, -0.037848904728889465, 0.026831604540348053, 0.030644608661532402, -0.03405347093939781, 0.0482512004673481, -0.025004172697663307, 0.031224466860294342, -0.027481747791171074, -0.028307605534791946, -0.02256174199283123, -0.0010158494114875793, 0.028975320979952812, 0.05559606850147247, 0.05499863997101784, 0.04807548597455025, 0.012185800820589066, -0.005438363645225763, 0.02180616930127144, 0.03693518787622452, 0.020945169031620026, 0.004638862796127796, 0.027042461559176445, 0.001619867980480194, 0.05844264104962349, 0.013714516535401344, -0.018291879445314407, -0.03278832510113716, -0.0017088234890252352, 0.035564616322517395, 0.011157870292663574, 0.01987330988049507, 0.017422093078494072, -0.042101193219423294, -0.02252659946680069, -0.004546612501144409, -0.035019900649785995, 0.016842234879732132, -0.06585779786109924, -0.020295023918151855, -0.038868047297000885, -0.06287065148353577, 0.006444329395890236, -0.00814436748623848, -0.013407016173005104, -0.017632950097322464, 0.003955772612243891, -0.00690997252240777, 0.029256464913487434, 0.04870805889368057, 0.01987330988049507, 0.0317516103386879, 0.018889307975769043, 0.033895328640937805, 0.04758348688483238, 0.02607603184878826, -0.06220293417572975, -0.01456673163920641, -0.013653016649186611, 0.051062632352113724, -0.059215787798166275, 0.09551840275526047, -0.0395357608795166, -0.03872747719287872, 0.02215759828686714, 0.05320635065436363, -0.04758348688483238, 0.06575236469507217, 0.010200226679444313, -0.020839739590883255, 0.01711459271609783, -0.03357904031872749, -0.017299093306064606, 0.028465749695897102, -0.0008148759952746332, -0.0446314811706543, 0.0252150297164917, 0.006822115276008844, 0.043542053550481796, 0.002249145647510886, -0.046669770032167435, -0.05538520961999893, -0.0034835399128496647, 0.03693518787622452, -0.03185703977942467, -0.04199576377868652, -0.03097846545279026, 0.03308704122900963, 0.019978739321231842, -0.02307131327688694, 0.02481088787317276, -0.016947664320468903, 0.02412560023367405, 0.025777317583560944, -0.060234930366277695, 0.012871086597442627, -0.08019609749317169, -0.024477029219269753, -0.034440040588378906, -0.010305655188858509, -0.0208573117852211, -0.10093040764331818, -0.034334614872932434, 0.0013288408517837524, 0.006286186166107655, -0.05735321342945099, -0.019328594207763672, -0.031224466860294342, -0.0026269317604601383, -0.042382337152957916, -0.002268913434818387, -0.039992619305849075, -0.004568576812744141, 0.016587449237704277, 0.010964584536850452, -0.05028948932886124, -0.03732176125049591, -0.04059004783630371, -0.007511795032769442, -0.010217797942459583, 0.029976893216371536, 0.010727370157837868, 0.06757979840040207, 0.021929169073700905, 0.04874320328235626, -0.025988174602389336, 0.01260751485824585, -0.004735505674034357, -0.03185703977942467, 0.0014101088745519519, 0.02800889126956463, -0.005302185192704201, 0.03357904031872749, 0.030012035742402077, -0.007287758868187666, 0.03094332292675972, -0.0395357608795166, 0.006092900410294533, 0.0077665806747972965, -0.013556373305618763, -0.057845212519168854, 0.022227883338928223, -0.053592924028635025, 0.03152318298816681, 0.029397035017609596, 0.015928519889712334, -0.03380747139453888, 0.03363175690174103, 0.03347361087799072, 0.015831876546144485, -0.03928976133465767, 0.004753077402710915, 0.05190606415271759, -0.04839177429676056, 0.038903191685676575, 0.02245631255209446, -0.03053917922079563, -0.0384463332593441, -0.012774444185197353, 0.05879407003521919, 0.013389444909989834, 0.013143444433808327, -0.00785883143544197, 0.017738379538059235, 0.029063178226351738, 0.007678723428398371, -0.04744291305541992, 0.031400181353092194, -0.014171374030411243, -0.020084166899323463, -0.030064750462770462, 0.037708330899477005, -0.016350233927369118, 0.000906027911696583, 0.0017099217511713505, -0.05046520382165909, 0.00779733108356595, -0.0007072508451528847, 0.05935635790228844, -0.05383892357349396, -0.06606864929199219, -0.024424314498901367, 0.03333304077386856, -0.050148919224739075, -0.023299742490053177, 0.013046802021563053, -0.004373094532638788, -0.015023590065538883, 0.04378805309534073, 0.0019021094776690006, 0.02971332147717476, -0.0010367155773565173, 0.08462410420179367, 0.0714455172419548, -0.03805975988507271, -0.052327778190374374, -0.03472118452191353, 0.02143716812133789, 0.09172296524047852, 0.055877212435007095, 0.029063178226351738, 0.009181082248687744, 0.023229457437992096, -0.0370054729282856, -0.04297976568341255, 0.013415802270174026, 0.03925462067127228, 0.011702585965394974, 0.045510053634643555, 0.013398231007158756, 0.05099234730005264, 0.0475132018327713, -0.022069741040468216, 0.04744291305541992, 0.029976893216371536, -0.018309451639652252, -0.004010683391243219, 0.04041433334350586, 0.015445304103195667, -0.017132163047790527, 0.009427082724869251, 0.02876446396112442, 0.02368631400167942, -0.029291607439517975, 0.007709473837167025, 0.016042733564972878, -0.04986777529120445, -0.012985301204025745, -0.040062904357910156, -0.029010463505983353, 0.00719990162178874, -0.03438732773065567, 0.04185519367456436, 0.001242081867530942, 0.0692666545510292 ]
17,045
imodels.tree.figs
fit
Params ------ _sample_weight: array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node.
def fit( self, X, y=None, feature_names=None, verbose=False, sample_weight=None, categorical_features=None, ): """ Params ------ _sample_weight: array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. """ if categorical_features is not None: X, self._encoder = self._encode_categories(X, categorical_features) X, y, feature_names = check_fit_arguments(self, X, y, feature_names) if sample_weight is not None: sample_weight = _check_sample_weight(sample_weight, X) self.trees_ = [] # list of the root nodes of added trees self.complexity_ = 0 # tracks the number of rules in the model y_predictions_per_tree = {} # predictions for each tree y_residuals_per_tree = {} # based on predictions above # set up initial potential_splits # everything in potential_splits either is_root (so it can be added directly to self.trees_) # or it is a child of a root node that has already been added idxs = np.ones(X.shape[0], dtype=bool) node_init = self._construct_node_with_stump( X=X, y=y, idxs=idxs, tree_num=-1, sample_weight=sample_weight, max_features=self.max_features, ) potential_splits = [node_init] for node in potential_splits: node.setattrs(is_root=True) potential_splits = sorted(potential_splits, key=lambda x: x.impurity_reduction) # start the greedy fitting algorithm finished = False while len(potential_splits) > 0 and not finished: # print('potential_splits', [str(s) for s in potential_splits]) # get node with max impurity_reduction (since it's sorted) split_node = potential_splits.pop() # don't split on node if split_node.impurity_reduction < self.min_impurity_decrease: finished = True break elif ( split_node.is_root and self.max_trees is not None and len(self.trees_) >= self.max_trees ): # If the node is the root of a new tree and we have reached self.max_trees, # don't split on it, but allow later splits to continue growing existing trees continue # split on node if verbose: print("\nadding " + str(split_node)) self.complexity_ += 1 # if added a tree root if split_node.is_root: # start a new tree self.trees_.append(split_node) # update tree_num for node_ in [split_node, split_node.left_temp, split_node.right_temp]: if node_ is not None: node_.tree_num = len(self.trees_) - 1 # add new root potential node node_new_root = Node( is_root=True, idxs=np.ones(X.shape[0], dtype=bool), tree_num=-1 ) potential_splits.append(node_new_root) # add children to potential splits # assign left_temp, right_temp to be proper children # (basically adds them to tree in predict method) split_node.setattrs(left=split_node.left_temp, right=split_node.right_temp) # add children to potential_splits potential_splits.append(split_node.left) potential_splits.append(split_node.right) # update predictions for altered tree for tree_num_ in range(len(self.trees_)): y_predictions_per_tree[tree_num_] = self._predict_tree( self.trees_[tree_num_], X ) # dummy 0 preds for possible new trees y_predictions_per_tree[-1] = np.zeros(X.shape[0]) # update residuals for each tree # -1 is key for potential new tree for tree_num_ in list(range(len(self.trees_))) + [-1]: y_residuals_per_tree[tree_num_] = deepcopy(y) # subtract predictions of all other trees # Since the current tree makes a constant prediction over the node being split, # one may ignore its contributions to the residuals without affecting the impurity decrease. for tree_num_other_ in range(len(self.trees_)): if not tree_num_other_ == tree_num_: y_residuals_per_tree[tree_num_] -= y_predictions_per_tree[ tree_num_other_ ] # recompute all impurities + update potential_split children potential_splits_new = [] for potential_split in potential_splits: y_target = y_residuals_per_tree[potential_split.tree_num] # re-calculate the best split potential_split_updated = self._construct_node_with_stump( X=X, y=y_target, idxs=potential_split.idxs, tree_num=potential_split.tree_num, sample_weight=sample_weight, max_features=self.max_features, ) # need to preserve certain attributes from before (value at this split + is_root) # value may change because residuals may have changed, but we want it to store the value from before potential_split.setattrs( feature=potential_split_updated.feature, threshold=potential_split_updated.threshold, impurity_reduction=potential_split_updated.impurity_reduction, impurity=potential_split_updated.impurity, left_temp=potential_split_updated.left_temp, right_temp=potential_split_updated.right_temp, ) # this is a valid split if potential_split.impurity_reduction is not None: potential_splits_new.append(potential_split) # sort so largest impurity reduction comes last (should probs make this a heap later) potential_splits = sorted( potential_splits_new, key=lambda x: x.impurity_reduction ) if verbose: print(self) if self.max_rules is not None and self.complexity_ >= self.max_rules: finished = True break # annotate final tree with node_id and value_sklearn, and prepare importance_data_ importance_data = [] for tree_ in self.trees_: node_counter = iter(range(0, int(1e06))) def _annotate_node(node: Node, X, y): if node is None: return # TODO does not incorporate sample weights value_counts = pd.Series(y).value_counts() try: neg_count = value_counts[0.0] except KeyError: neg_count = 0 try: pos_count = value_counts[1.0] except KeyError: pos_count = 0 value_sklearn = np.array([neg_count, pos_count], dtype=float) node.setattrs(node_id=next(node_counter), value_sklearn=value_sklearn) idxs_left = X[:, node.feature] <= node.threshold _annotate_node(node.left, X[idxs_left], y[idxs_left]) _annotate_node(node.right, X[~idxs_left], y[~idxs_left]) _annotate_node(tree_, X, y) # now that the samples per node are known, we can start to compute the importances importance_data_tree = np.zeros(len(self.feature_names_)) def _importances(node: Node): if node is None or node.left is None: return 0.0 # TODO does not incorporate sample weights, but will if added to value_sklearn importance_data_tree[node.feature] += ( np.sum(node.value_sklearn) * node.impurity - np.sum(node.left.value_sklearn) * node.left.impurity - np.sum(node.right.value_sklearn) * node.right.impurity ) return ( np.sum(node.value_sklearn) + _importances(node.left) + _importances(node.right) ) # require the tree to have more than 1 node, otherwise just leave
(self, X, y=None, feature_names=None, verbose=False, sample_weight=None, categorical_features=None)
[ 0.037031933665275574, -0.01456855982542038, 0.005315840244293213, 0.017094900831580162, 0.0285686943680048, 0.006773748900741339, -0.015852782875299454, -0.02941080741584301, -0.016831738874316216, 0.025663401931524277, -0.005478999577462673, 0.00850534439086914, 0.020494932308793068, 0.002184231299906969, -0.022252844646573067, 0.026526568457484245, 0.0036052975337952375, 0.012936965562403202, 0.030716082081198692, 0.05048469081521034, -0.0457688570022583, -0.06939013302326202, -0.03082134574651718, 0.03983195871114731, -0.014989616349339485, -0.05587421730160713, 0.013579077087342739, 0.005794791970402002, -0.008079024031758308, -0.004323725588619709, -0.04391620680689812, -0.014768562279641628, -0.050358373671770096, -0.04006354138255119, -0.020052822306752205, -0.06610589474439621, 0.010426415130496025, 0.022463371977210045, 0.0010138254147022963, -0.05911635234951973, -0.01890544407069683, -0.042231980711221695, -0.05928477644920349, -0.02543182112276554, -0.01911597140133381, 0.0571373887360096, 0.015621202066540718, 0.06808485835790634, -0.041095130145549774, -0.03364242613315582, -0.01701068878173828, -0.04077933728694916, 0.0033421372063457966, 0.057726867496967316, 0.020084401592612267, 0.05393735691905022, 0.06707432121038437, -0.02751605212688446, 0.0904429703950882, -0.07086383551359177, 0.08539028465747833, 0.046400442719459534, -0.043368835002183914, 0.015168565325438976, -0.04560043662786484, -0.021158097311854362, -0.07267437875270844, 0.0032500310335308313, -0.026252882555127144, 0.022168632596731186, -0.00816323608160019, -0.04858993738889694, 0.052632082253694534, 0.04010564461350441, 0.009094823151826859, 0.017210690304636955, 0.035495076328516006, -0.06370586901903152, 0.0018723863177001476, -0.011600110679864883, -0.03073713555932045, 0.020621249452233315, 0.010700101964175701, -0.043368835002183914, -0.029431859031319618, -0.020400194451212883, 0.040231961756944656, 0.01608436368405819, 0.004144776612520218, 0.0018394911894574761, -0.029642388224601746, 0.035410862416028976, 0.06240059435367584, 0.0698532983660698, 0.030758189037442207, 0.00933166779577732, -0.009968516416847706, -0.047410979866981506, -0.005652685649693012, -0.030379237607121468, 0.0025750244967639446, 0.055579476058483124, -0.029642388224601746, 0.07553756237030029, -0.03488454222679138, -0.022105474025011063, -0.03869510442018509, 0.037768781185150146, 0.0024263388477265835, -0.06437955796718597, -0.08808504790067673, 0.04880046471953392, 0.015663307160139084, 0.0501057393848896, -0.0430530421435833, -0.040716178715229034, -0.051411017775535583, 0.035495076328516006, -0.01409487146884203, 0.0054842629469931126, 0.015221198089420795, 0.016094889491796494, -0.027558157220482826, 0.013031703419983387, -0.018021224066615105, -0.025200240314006805, 0.0809691920876503, 0.035874027758836746, -0.009947462938725948, -0.07545334845781326, -0.0034974017180502415, -0.0009401405695825815, -0.03511612489819527, 0.014873825944960117, -0.01356855034828186, -0.05418999120593071, -0.017989644780755043, 0.019126499071717262, -0.0019408080261200666, -0.06686379760503769, 0.05515842139720917, -0.06808485835790634, 0.04187408462166786, -0.03404242917895317, -0.0011697480222210288, 0.02128441445529461, 0.008289553225040436, 0.008331658318638802, -0.030484501272439957, -0.013684340752661228, -0.015694886445999146, -0.02968449331820011, 0.006610589567571878, -0.04160039499402046, 0.018400175496935844, 0.012663278728723526, -0.016958056017756462, -0.01878965273499489, 0.013305390253663063, -0.01949492283165455, -0.02960028313100338, -0.06442166864871979, 0.05402156710624695, 0.00021727180865127593, 0.010421152226626873, 0.04073723033070564, -0.00610005808994174, -0.006005320232361555, -0.07675863057374954, -0.0023816016037017107, 0.016621211543679237, -0.03406348451972008, -0.07044278085231781, 0.05465315282344818, -0.022168632596731186, 0.04395831376314163, 0.04690571129322052, 0.0019013339187949896, -0.010157991200685501, 0.10080096125602722, -0.0018237016629427671, -0.04749519005417824, 0.015558043494820595, -0.07242174446582794, -0.013252758421003819, -0.018368596211075783, 0.014905405230820179, 0.02123178169131279, 0.004676360171288252, 0.05435841158032417, 0.01923176273703575, -0.05258997529745102, 0.020684408023953438, 0.021158097311854362, 0.04471621662378311, 0.016852792352437973, -0.02486339583992958, -0.0048053087666630745, -0.0022368633653968573, 0.023242326453328133, 0.003926353063434362, -0.015484358184039593, 0.06134795397520065, -0.03166345879435539, -0.047621507197618484, 0.01773701049387455, -0.05418999120593071, 0.024358127266168594, -0.019379131495952606, 0.003886879188939929, -0.04926362633705139, 0.010279045440256596, 0.0509057492017746, 0.06008478254079819, 0.008957980200648308, 0.0025500243064016104, -0.02762131579220295, -0.025389716029167175, 0.01854754611849785, -0.046105701476335526, -0.026421304792165756, -0.012958018109202385, -0.018347542732954025, 0.041958294808864594, 0.009884304367005825, -0.03770562261343002, 0.05120048671960831, -0.017137005925178528, 0.04132670909166336, -0.042610932141542435, 0.023389697074890137, -0.05865319073200226, 0.02488444745540619, -0.07044278085231781, -0.001994755817577243, -0.024337073788046837, -0.0008585608447901905, 0.006905328948050737, -0.02970554679632187, 0.016810687258839607, -0.05397946387529373, -0.04075828194618225, -0.0216633640229702, -0.05730580911040306, 0.0021237044129520655, 0.049895212054252625, 0.05212681367993355, 0.010789576917886734, 0.021621258929371834, -0.011315897107124329, 0.0017710694810375571, -0.02250547707080841, -0.017937013879418373, -0.031810831278562546, 0.005963214673101902, -0.07120067626237869, -0.000933561532292515, 0.032400310039520264, 0.008273763582110405, 0.002910554176196456, -0.013263284228742123, -0.024042334407567978, -0.025558138266205788, 0.07153752446174622, -0.06669536978006363, 0.003671087557449937, 0.045810963958501816, -0.023789700120687485, 0.022463371977210045, -0.04240040481090546, -0.02667393907904625, 0.05284260958433151, -0.0006588878459297121, 0.024189705029129982, -0.035979289561510086, 0.012589593417942524, -0.031137138605117798, -0.02837921865284443, 0.052168916910886765, 0.048463620245456696, 0.032505571842193604, -0.04551622271537781, -0.010926419869065285, -0.0029158173128962517, -0.002805289812386036, 0.027831844985485077, -0.0411582887172699, -0.009252719581127167, -0.007194805424660444, -0.009526406414806843, -0.04408463090658188, 0.01852649264037609, 0.021621258929371834, 0.041284605860710144, 0.07330596446990967, 0.03092661127448082, -0.001539488323032856, -0.0024894974194467068, -0.0003200688515789807, 0.017158057540655136, 0.01072641834616661, 0.00010682667925721034, 0.03404242917895317, -0.03593718633055687, 0.03987406566739082, -0.015915941447019577, 0.04378988966345787, -0.00027253548614680767, -0.015989625826478004, 0.046484652906656265, 0.030337130650877953, 0.06631642580032349, 0.06539009511470795, -0.03435822203755379, -0.014873825944960117, -0.1088852509856224, 0.04107407480478287, -0.04614780843257904, 0.06109531968832016, 0.03160030022263527, -0.014768562279641628, -0.01904228702187538, 0.014063292182981968, -0.0043763574212789536, -0.008100077509880066, 0.0076842838898301125, 0.08374816924333572, 0.03174767270684242, -0.025684455409646034, -0.029158173128962517, -0.016968583688139915, -0.046863604336977005, 0.02762131579220295, -0.023284433409571648, -0.02818974293768406, 0.02534761093556881, 0.043368835002183914, -0.04040038585662842, 0.007521124556660652, 0.011336950585246086, -0.00861060805618763, 0.02694762498140335, -0.02114756964147091, 0.05869529768824577, -0.02892659232020378, -0.006979013793170452, 0.05343208834528923, 0.019758082926273346, -0.013452759943902493, 0.06736906617879868, -0.0304634477943182, 0.014021186158061028, -0.01701068878173828, 0.05322156101465225, 0.014705403707921505, -0.02174757607281208, -0.005065837875008583, -0.005207944195717573, 0.01309486199170351, -0.03538981080055237, -0.024947606027126312, -0.04665307700634003, 0.0028631852474063635, 0.049684684723615646, -0.0003281281387899071, -0.07031646370887756, -0.02204231545329094, 0.0360213965177536, 0.039284586906433105, -0.06749538332223892, 0.025600243359804153, -0.06846380978822708, -0.003447401337325573, 0.01568436063826084, -0.011115895584225655, 0.04661097005009651, -0.0463162325322628, -0.016200155019760132, 0.04720044881105423, 0.017263323068618774, 0.0017421218799427152, 0.0297897569835186, 0.013358022086322308, -0.0020421247463673353, 0.0009302720427513123, -0.02038966864347458, 0.06496904045343399, -0.06475850939750671, 0.05911635234951973, -0.031431879848241806, 0.05355840548872948, 0.01072641834616661, -0.004815835505723953, 0.005123733077198267, -0.05654790624976158, 0.019558081403374672, 0.05048469081521034, 0.009336931630969048, -0.036842457950115204, 0.014210661873221397, -0.009736934676766396, -0.026337092742323875, -0.027452893555164337, -0.00023108773166313767, 0.004452674183994532, -0.006605326198041439, 0.010415888391435146, 0.025031818076968193, -0.010131675750017166, 0.03383190184831619, -0.0482109859585762, 0.015147512778639793, 0.03724246099591255, 0.006031636614352465, -0.022758111357688904, -0.023663382977247238, 0.029010802507400513, 0.08244289457798004, 0.07642178237438202, -0.05178996920585632, 0.005847424268722534, -0.001334223197773099, -0.012642226181924343, 0.00002061080522253178, -0.008510607294738293, -0.003947406075894833, -0.036252979189157486, -0.03945300728082657, -0.03509507328271866, 0.01187379751354456, -0.03717930242419243, -0.041937243193387985, -0.03707403689622879, -0.026989731937646866, -0.023494960740208626, -0.039474062621593475, -0.033431898802518845, 0.022526530548930168, -0.03252662718296051, 0.0035421389620751143, -0.004407936707139015, 0.013526445254683495, 0.08619029819965363, -0.028400270268321037, 0.019515976309776306, 0.012189590372145176, -0.014452769421041012, 0.03600034490227699, -0.10619048774242401, -0.036274030804634094, 0.04058986157178879, -0.021684417501091957, 0.036274030804634094, 0.07237964123487473, -0.07406386733055115, -0.0040053012780845165, 0.04555832967162132, -0.010800102725625038, 0.024947606027126312, 0.033347684890031815, -0.01703174225986004, 0.0022329159546643496, 0.030905557796359062, 0.04044249281287193, 0.012452750466763973, -0.008526396937668324, 0.06648484617471695, -0.014305399730801582, -0.008647451177239418, -0.028863433748483658, 0.02185283973813057, -0.024252863600850105, -0.009610617533326149, -0.03461085632443428, -0.013515918515622616, 0.016610683873295784, 0.0019105445826426148, -0.053768932819366455, -0.004586885683238506, -0.029452912509441376, 0.023200221359729767, -0.013063282705843449, 0.02440023235976696, -0.005021100398153067, -0.029473965987563133, -0.032779261469841, -0.016073837876319885, -0.041474081575870514, 0.025031818076968193, -0.027368681505322456, -0.08943243324756622, -0.05608474463224411, 0.03869510442018509, 0.017894906923174858, -0.053095243871212006, 0.028526587411761284, 0.04972679167985916, 0.015263303183019161, 0.04530569538474083, -0.06863223016262054, -0.0020684408955276012, 0.042042504996061325, -0.03496875613927841, -0.01716858521103859, 0.017452798783779144, 0.03404242917895317, -0.024084439501166344, 0.02637919969856739, -0.04328462481498718, 0.0090053491294384, 0.00398688018321991, -0.07557966560125351, 0.04938994348049164, 0.021547574549913406, 0.007521124556660652, 0.0438741035759449, 0.03311610594391823, 0.05153733491897583, 0.03648455813527107, 0.019831767305731773, 0.013600129634141922, -0.021768629550933838, 0.034758225083351135, -0.038821421563625336, 0.04753729701042175, 0.02467392012476921, -0.003226346569135785, 0.04132670909166336, 0.015094880945980549, -0.023516014218330383, 0.03808457404375076, -0.026463409885764122, 0.012600120157003403, 0.019537027925252914, 0.013305390253663063, 0.015505410730838776, 0.08299026638269424, -0.02133704535663128, 0.00917903520166874, -0.02800026722252369, -0.019915979355573654, 0.012589593417942524, -0.011273792013525963, 0.022842323407530785, 0.0077842846512794495, 0.014105397276580334, 0.0152317238971591, 0.011673795990645885, -0.005763212684541941, 0.007342175114899874, 0.02696867845952511, 0.04429515823721886, 0.034379273653030396, 0.04378988966345787, 0.10366414487361908, -0.04690571129322052, -0.012294854037463665, 0.01168432179838419, 0.024716025218367577, 0.01592646725475788, -0.024273915216326714, 0.017863327637314796, 0.04025301709771156, -0.0584847666323185, 0.08181130886077881, -0.008900084532797337, -0.06972698122262955, 0.030147656798362732, -0.05014784634113312, -0.021242307499051094, 0.022716006264090538, 0.0400845929980278, 0.027937108650803566, 0.013810657896101475, -0.061053212732076645, 0.010968525893986225, -0.045642539858818054, 0.007984287105500698, -0.07372701913118362, -0.007836916483938694, 0.020305456593632698, 0.00016570881416555494, -0.01797911897301674, -0.004363199695944786, 0.029347648844122887, 0.0009921147720888257, -0.02922133170068264, 0.06922171264886856, -0.030147656798362732, 0.02185283973813057, -0.010884314775466919, 0.008547450415790081, 0.0495583675801754, -0.006547430995851755, -0.003971090540289879, 0.00029128568712621927, -0.060379523783922195, -0.02686341479420662, 0.037874046713113785, -0.0690532922744751, 0.019758082926273346, -0.00475267693400383, -0.019694924354553223, 0.050653114914894104, 0.01782122254371643, -0.010447467677295208, 0.013779078610241413, -0.02656867541372776, 0.008752714842557907, 0.010573784820735455, 0.014694876968860626, 0.011273792013525963, 0.050442587584257126, -0.07107435911893845, -0.03496875613927841, 0.01703174225986004, 0.01882123202085495, 0.004694781731814146, 0.036063503473997116, -0.07806390523910522, 0.026526568457484245, -0.006705326959490776, 0.024568654596805573, 0.0018605440855026245, -0.04183197766542435, -0.013010650873184204, -0.0045079379342496395, -0.07376912236213684, -0.02334759198129177, -0.02353706583380699, -0.019505448639392853, -0.071495421230793, -0.016568578779697418, -0.036758244037628174, 0.04408463090658188, 0.04006354138255119, 0.032210834324359894, -0.019315972924232483, -0.003705298528075218, -0.018021224066615105, -0.027852896600961685, -0.0433267280459404, 0.0013894869480282068, 0.002900027669966221, -0.029916074126958847, -0.08808504790067673, -0.008357974700629711, 0.06720063835382462, 0.04833730310201645, 0.02894764393568039, -0.03176872432231903, 0.008289553225040436, -0.034189801663160324, -0.03282136470079422, -0.0036316136829555035, -0.007673757616430521, -0.03515823185443878, 0.04669518396258354, 0.02052651159465313, -0.0024631815031170845, -0.006142163649201393, 0.008768504485487938, 0.071495421230793, 0.05275839939713478, 0.012442223727703094, 0.020968621596693993, 0.035495076328516006, -0.022673901170492172, 0.004560569766908884, 0.04164250195026398, -0.08707451820373535, -0.017758063971996307, 0.005836897995322943, 0.013189599849283695, -0.0069842771627008915, -0.03884247690439224, -0.014979090541601181, 0.01134747639298439, -0.005421104375272989, 0.024926554411649704, 0.0685059130191803, 0.08766399323940277, 0.006005320232361555, -0.041768819093704224, 0.04480042681097984, 0.011368529871106148, -0.0647164061665535, -0.01701068878173828, 0.04002143442630768, -0.04149513319134712, -0.004315830767154694, 0.021273886784911156, 0.04816887900233269, -0.003860563039779663, -0.029937127605080605, 0.031052928417921066, -0.005118469707667828, 0.00816323608160019, 0.014705403707921505, -0.03054765984416008, 0.015168565325438976, -0.011000105179846287, -0.051495227962732315, 0.009000086225569248, 0.016673842445015907, 0.05966372787952423, -0.08307448029518127, 0.05646369606256485, -0.005668475292623043, -0.04492674395442009, -0.025179186835885048, 0.011421161703765392, -0.05456894263625145, -0.027873950079083443, -0.0037710885517299175, 0.025094976648688316, -0.026358146220445633, 0.008273763582110405, -0.03488454222679138, 0.002157915383577347, 0.03802141547203064, -0.008410606533288956, 0.07810600847005844, 0.046189915388822556, -0.04517937824130058, 0.001028957194648683, 0.0801691859960556, -0.04492674395442009, 0.039305638521909714, -0.024189705029129982, 0.042589880526065826, 0.08324290066957474, -0.008389553986489773, -0.017484378069639206, -0.011326423846185207, -0.0433267280459404, -0.00711585721001029, 0.005800055339932442, 0.04892678186297417, 0.03509507328271866, 0.03477928042411804, -0.03858984261751175, -0.07482176274061203, 0.014031712897121906, -0.012463277205824852, 0.052632082253694534, -0.018642283976078033, 0.01651594787836075, 0.0444214753806591, -0.005726370494812727, 0.027094995602965355, -0.027768686413764954, 0.01206327322870493, 0.052632082253694534, 0.020505458116531372, 0.03349505737423897, 0.012852754443883896, -0.020105455070734024, -0.007984287105500698, -0.07903233170509338, 0.02214757911860943, -0.04029512032866478, -0.0027131838724017143, -0.0013671183260157704, 0.005673738196492195, 0.03284242004156113, 0.033537160605192184, 0.02101072669029236 ]
17,048
imodels.tree.figs
plot
null
def plot( self, cols=2, feature_names=None, filename=None, label="all", impurity=False, tree_number=None, dpi=150, fig_size=None, ): is_single_tree = len(self.trees_) < 2 or tree_number is not None n_cols = int(cols) n_rows = int(np.ceil(len(self.trees_) / n_cols)) if feature_names is None: if hasattr(self, "feature_names_") and self.feature_names_ is not None: feature_names = self.feature_names_ n_plots = int(len(self.trees_)) if tree_number is None else 1 fig, axs = plt.subplots(n_plots, dpi=dpi) if fig_size is not None: fig.set_size_inches(fig_size, fig_size) n_classes = 1 if isinstance(self, RegressorMixin) else 2 ax_size = int(len(self.trees_)) for i in range(n_plots): r = i // n_cols c = i % n_cols if not is_single_tree: ax = axs[i] else: ax = axs try: dt = extract_sklearn_tree_from_figs( self, i if tree_number is None else tree_number, n_classes ) plot_tree( dt, ax=ax, feature_names=feature_names, label=label, impurity=impurity, ) except IndexError: ax.axis("off") continue ttl = f"Tree {i}" if n_plots > 1 else f"Tree {tree_number}" ax.set_title(ttl) if filename is not None: plt.savefig(filename) return plt.show()
(self, cols=2, feature_names=None, filename=None, label='all', impurity=False, tree_number=None, dpi=150, fig_size=None)
[ -0.0024200701154768467, -0.015404973179101944, 0.022709054872393608, 0.03390232473611832, -0.04424186795949936, -0.015442917123436928, 0.0062653846107423306, -0.02545994333922863, -0.04860534891486168, 0.026123952120542526, 0.003312923014163971, 0.005938123911619186, 0.04298974201083183, 0.01029211562126875, -0.008451866917312145, -0.0049753133207559586, 0.04693584144115448, 0.017482368275523186, -0.007474827114492655, 0.03543902933597565, -0.014171816408634186, -0.03297271579504013, 0.019075985997915268, 0.0066448175348341465, -0.009258161298930645, -0.03851243481040001, -0.017615169286727905, -0.0380571149289608, -0.01644841395318508, 0.008366494439542294, -0.0992596298456192, -0.05091988667845726, -0.058546487241983414, 0.006298585329204798, -0.05019896477460861, -0.019578734412789345, -0.02077394723892212, 0.0329916849732399, 0.053462088108062744, 0.03099966235458851, 0.04769470915198326, -0.02333511970937252, -0.023259233683347702, -0.056421663612127304, -0.010889722965657711, 0.046442579478025436, -0.0036259551998227835, 0.013574209995567799, -0.06029187887907028, -0.015708519145846367, -0.04500073567032814, -0.016372527927160263, -0.029557818546891212, 0.007593399845063686, 0.0529688261449337, 0.025042567402124405, 0.06973975896835327, 0.03261225298047066, 0.07239578664302826, -0.03999222069978714, 0.025535831227898598, 0.030563315376639366, -0.027281221002340317, -0.0030923776794224977, -0.011288126930594444, -0.02204504795372486, 0.01848786510527134, -0.0331055149435997, -0.049478042870759964, -0.004861483350396156, 0.009424163028597832, -0.007849517278373241, 0.01973050832748413, 0.027148419991135597, 0.014380504377186298, -0.021646643057465553, -0.01308094710111618, -0.04556988552212715, -0.014560735784471035, 0.026465440168976784, -0.037772540003061295, -0.03530622646212578, 0.04154789447784424, -0.024264730513095856, 0.01825072057545185, -0.02860923670232296, 0.04242059215903282, -0.017615169286727905, 0.008689012378454208, 0.037905339151620865, 0.00016259289986919612, -0.022139906883239746, 0.050881944596767426, -0.013555238023400307, -0.028381576761603355, -0.011136353947222233, 0.012834316119551659, 0.027926256880164146, -0.03858831897377968, -0.041509952396154404, 0.007465341128408909, -0.05737024545669556, 0.029026612639427185, 0.0086652971804142, -0.03016491048038006, 0.0027983172331005335, -0.049667760729789734, 0.05611811578273773, -0.032764025032520294, -0.028969697654247284, -0.04200321435928345, 0.06408620625734329, 0.04132023826241493, 0.028381576761603355, 0.020223770290613174, -0.01099406648427248, -0.045038677752017975, -0.0529688261449337, -0.049288325011730194, -0.07914969325065613, -0.04333123192191124, 0.01614486798644066, 0.030449485406279564, -0.009637594223022461, -0.05919152498245239, 0.0331624299287796, 0.024795936420559883, 0.03401615470647812, -0.06723549962043762, -0.06344117224216461, 0.016211267560720444, 0.01993919536471367, -0.01423821784555912, -0.009575936011970043, 0.04120640829205513, -0.047542933374643326, 0.00896410085260868, -0.0190285574644804, -0.008281121961772442, 0.008489809930324554, 0.012872259132564068, -0.05239967629313469, -0.019768450409173965, 0.017235737293958664, 0.00687722023576498, 0.03517342358827591, -0.03942307084798813, -0.03896775469183922, -0.04409009590744972, -0.08393054455518723, -0.035723600536584854, 0.008143577724695206, -0.002916889963671565, -0.038929808884859085, 0.052551448345184326, -0.0010458118049427867, 0.024321645498275757, 0.03754488006234169, -0.023316148668527603, 0.002921632956713438, 0.0031469210516661406, -0.019768450409173965, 0.0068345339968800545, 0.009262904524803162, -0.034756049513816833, 0.011496814899146557, -0.025478916242718697, -0.03439558669924736, -0.03824682906270027, 0.02462519146502018, -0.018668096512556076, -0.03589434549212456, -0.047353219240903854, 0.06302379816770554, -0.022234763950109482, 0.007289853412657976, 0.01986330933868885, 0.04276208207011223, 0.000003983303940913174, 0.04648052155971527, 0.04894683510065079, -0.04037165269255638, 0.022936714813113213, -0.003611726453527808, -0.004396677948534489, -0.026313668116927147, 0.03999222069978714, 0.020982636138796806, 0.015547260642051697, 0.05368974804878235, 0.009998055174946785, 0.015755949541926384, 0.025478916242718697, 0.02508051134645939, 0.05422095209360123, -0.031986188143491745, 0.01765311323106289, -0.04006810858845711, 0.04154789447784424, -0.03291580080986023, 0.03851243481040001, -0.002810174599289894, 0.037051618099212646, -0.015860293060541153, -0.005591891705989838, 0.05103371664881706, 0.016353555023670197, -0.0034504674840718508, 0.016325097531080246, 0.013251692056655884, 0.04955393075942993, -0.012103907763957977, 0.029083527624607086, 0.07569685578346252, -0.03054434433579445, 0.03889186680316925, -0.06002627685666084, -0.052817050367593765, -0.04936421290040016, -0.02995622344315052, 0.05164080858230591, 0.055131591856479645, -0.017662599682807922, 0.04712555930018425, -0.014769423753023148, -0.02572554722428322, 0.06894294917583466, -0.01015931461006403, 0.03915746882557869, 0.004501021932810545, 0.035913318395614624, -0.05998833104968071, 0.03445250168442726, -0.04667023941874504, -0.03549594059586525, -0.030961720272898674, 0.013963128440082073, 0.017340080812573433, 0.009504792280495167, 0.05399329215288162, -0.024511361494660378, -0.03221384808421135, -0.03830374404788017, -0.02141898311674595, 0.05205818638205528, 0.01379238348454237, -0.03614097833633423, 0.00941942073404789, -0.00967553723603487, -0.015974123030900955, 0.009087416343390942, -0.026010122150182724, -0.01860169507563114, -0.028134945780038834, 0.001038697431795299, -0.07592450827360153, -0.062264930456876755, 0.011990077793598175, 0.04298974201083183, 0.03289682790637016, 0.03285888582468033, 0.003270236775279045, -0.03686190024018288, 0.050616342574357986, 0.002390426816418767, -0.02790728583931923, 0.0014454020420089364, -0.04890889301896095, 0.0165242999792099, -0.03414895758032799, -0.05350003018975258, 0.07854259759187698, -0.008191006258130074, 0.03335214778780937, 0.003144549671560526, 0.023126432672142982, -0.008228950202465057, -0.06871528923511505, -0.016865789890289307, -0.012692028656601906, 0.013232720084488392, -0.1207355335354805, 0.023088488727808, 0.029292214661836624, -0.026522355154156685, -0.011800361797213554, -0.021229267120361328, 0.0380571149289608, -0.023088488727808, 0.014769423753023148, 0.023240260779857635, 0.026370583102107048, 0.005108114797621965, 0.030809946358203888, -0.010500803589820862, -0.034812964498996735, -0.01848786510527134, 0.017994603142142296, -0.06048159673810005, -0.011914190836250782, 0.009865254163742065, -0.07387557625770569, 0.05361386016011238, -0.04075108841061592, 0.07952912151813507, 0.007100136950612068, 0.04177555441856384, -0.01103200949728489, 0.03991633653640747, 0.044962793588638306, 0.024321645498275757, 0.08484118431806564, 0.010491318069398403, 0.030847890302538872, -0.01590772159397602, -0.0018841212149709463, 0.022652139887213707, -0.10024615377187729, 0.008413922972977161, -0.009770396165549755, -0.023259233683347702, -0.012549741193652153, -0.03509753942489624, -0.06325145810842514, 0.05156492441892624, 0.03183441609144211, -0.00005387649798649363, 0.0003041391319129616, 0.010111885145306587, 0.035514913499355316, -0.040219880640506744, -0.010975094512104988, 0.06769081950187683, -0.042724136263132095, -0.005079657305032015, 0.007313568145036697, 0.028950726613402367, 0.03606509044766426, -0.026920760050415993, 0.011828819289803505, 0.03339008986949921, -0.05877414718270302, -0.02212093397974968, 0.02982342056930065, -0.02745196595788002, 0.05460038781166077, 0.009476334787905216, 0.01439947634935379, 0.006161040626466274, 0.034547358751297, -0.014684051275253296, 0.0529688261449337, -0.03672909736633301, 0.02430267445743084, -0.023126432672142982, 0.0610886886715889, -0.0032038360368460417, 0.057825565338134766, -0.01681836135685444, -0.04063725844025612, 0.03771562501788139, -0.06746315956115723, -0.01935107447206974, 0.02874203771352768, -0.009286618791520596, -0.02578246220946312, 0.01668555848300457, 0.03792431205511093, 0.017074478790163994, -0.03659629821777344, 0.015888750553131104, 0.011487329378724098, -0.023942211642861366, -0.0012023277813568711, 0.0012284137774258852, -0.005179258529096842, -0.024226786568760872, -0.043369174003601074, 0.024890795350074768, -0.026503384113311768, 0.04412803798913956, -0.006678018253296614, 0.05858442932367325, -0.009713481180369854, -0.0025659145321696997, -0.05718052759766579, 0.015917208045721054, 0.004764253739267588, 0.00651201605796814, -0.025991149246692657, 0.008726955391466618, 0.03714647516608238, -0.010263658128678799, 0.047542933374643326, -0.060519538819789886, -0.01832660660147667, 0.044659245759248734, 0.026067037135362625, -0.054676271975040436, 0.030885834246873856, -0.0019884651992470026, 0.013669067993760109, -0.02242448180913925, -0.00005880467870156281, 0.019370047375559807, 0.018952669575810432, -0.023486893624067307, -0.009153817780315876, -0.002589629264548421, 0.010045484639704227, 0.044014208018779755, 0.05183052644133568, 0.0048187971115112305, 0.018241234123706818, 0.0248718224465847, 0.02341100573539734, -0.04723938927054405, 0.02860923670232296, 0.07816316932439804, -0.06803230941295624, 0.0001302077143918723, 0.03247945010662079, 0.0014750452246516943, 0.044583357870578766, 0.017131393775343895, -0.003291579894721508, -0.023771466687321663, -0.008584667928516865, 0.0012592427665367723, 0.03672909736633301, -0.09334047883749008, -0.05581457167863846, -0.042724136263132095, 0.02121029607951641, 0.04636669158935547, -0.054296839982271194, -0.050616342574357986, -0.022234763950109482, -0.04276208207011223, 0.006331785582005978, 0.010842293500900269, -0.03422484174370766, 0.0018556637223809958, -0.08142628520727158, 0.010813836008310318, 0.005146057810634375, -0.010434403084218502, 0.010111885145306587, -0.07019507884979248, -0.049591872841119766, 0.001434730482287705, 0.021703558042645454, 0.01660018600523472, -0.0050986288115382195, -0.04261031001806259, -0.04712555930018425, 0.0331624299287796, -0.0033247803803533316, 0.029083527624607086, 0.07228195667266846, -0.016457900404930115, -0.034490443766117096, 0.03767768293619156, 0.008717469871044159, 0.017150364816188812, -0.05733230337500572, 0.07930146157741547, 0.024321645498275757, -0.009931654669344425, -0.030070053413510323, 0.04276208207011223, -0.0331055149435997, -0.019303645938634872, -0.0046290806494653225, -0.052437618374824524, 0.045797545462846756, 0.02403707057237625, -0.03060125932097435, -0.04879506304860115, -0.010368002578616142, 0.009685023687779903, 0.0247579924762249, 0.03748796507716179, 0.007256653159856796, 0.015291143208742142, 0.03390232473611832, 0.006156297866255045, -0.0012284137774258852, 0.005359489005059004, -0.04765676334500313, -0.037127502262592316, -0.04359683394432068, -0.04678406938910484, 0.01662864349782467, 0.008062947541475296, 0.02392324060201645, 0.03813299909234047, 0.004292333964258432, -0.03851243481040001, -0.0546383298933506, 0.03889186680316925, 0.004776110872626305, 0.04196527227759361, 0.016050009056925774, 0.004667024128139019, 0.02193121798336506, 0.04386243596673012, 0.029652677476406097, -0.01356472447514534, -0.006919906474649906, -0.011202754452824593, -0.07573479413986206, 0.031796474009752274, 0.044014208018779755, 0.011041495949029922, 0.03896775469183922, -0.024131929501891136, 0.008575182408094406, 0.04120640829205513, 0.0445074737071991, 0.02018582634627819, -0.07258550077676773, 0.010263658128678799, 0.02306951768696308, -0.023695580661296844, 0.040485482662916183, 0.0330485999584198, 0.09531352669000626, -0.009395705536007881, 0.002473427914083004, 0.018497351557016373, 0.015528288669884205, -0.0010618191445246339, 0.0049089123494923115, -0.02121029607951641, -0.02295568771660328, -0.009286618791520596, 0.0022339108400046825, 0.04044754058122635, -0.01986330933868885, 0.006929392460733652, 0.013071461580693722, 0.03646349534392357, 0.019901253283023834, -0.0577496774494648, -0.0397266186773777, 0.032251790165901184, -0.018013574182987213, 0.12331567704677582, -0.005392689257860184, 0.04352094605565071, 0.02045143023133278, -0.004403792321681976, -0.0017264194320887327, 0.03908158466219902, 0.062454644590616226, 0.005748407449573278, 0.04917449504137039, -0.01224619522690773, -0.009471592493355274, -0.01690373383462429, 0.06693195551633835, 0.08461352437734604, -0.03375055268406868, 0.0878007560968399, 0.002696344628930092, -0.05399329215288162, 0.011809847317636013, -0.04003016650676727, -0.061430178582668304, -0.007849517278373241, 0.039574846625328064, 0.006009267643094063, -0.014190788380801678, -0.05023690685629845, 0.005060685332864523, 0.043748605996370316, 0.06401032209396362, -0.0794532373547554, 0.018013574182987213, -0.06188549846410751, -0.020356571301817894, 0.015348058193922043, -0.016941675916314125, 0.024928737431764603, 0.05824294313788414, 0.0024923994205892086, 0.018203290179371834, 0.010700006037950516, -0.018886270001530647, -0.008807584643363953, -0.04944010078907013, 0.0676528736948967, -0.028457462787628174, -0.0021177094895392656, 0.03606509044766426, -0.06833585351705551, -0.03781048208475113, -0.00161970395129174, 0.017672084271907806, -0.021836360916495323, 0.01773848570883274, 0.0036259551998227835, -0.010121370665729046, -0.009125360287725925, 0.0050085135735571384, 0.033086542040109634, 0.037506937980651855, -0.04925038293004036, -0.01427616085857153, 0.01841197907924652, 0.05372769013047218, 0.08294402062892914, -0.07569685578346252, -0.02403707057237625, -0.011809847317636013, -0.0007446369272656739, 0.008807584643363953, -0.041889384388923645, -0.031417038291692734, -0.02056526020169258, -0.020337600260972977, -0.042268820106983185, 0.04132023826241493, -0.04572165757417679, 0.0008839599322527647, 0.004498650785535574, -0.054676271975040436, 0.031227322295308113, 0.05103371664881706, -0.007261395920068026, -0.0628720223903656, -0.04636669158935547, -0.042458534240722656, -0.0009165674564428627, -0.06029187887907028, -0.0003874365065712482, -0.030639201402664185, 0.0037255561910569668, -0.02096366509795189, -0.006189498119056225, -0.046063147485256195, -0.03665321320295334, 0.003535839729011059, 0.03536314144730568, -0.01806100271642208, -0.044393643736839294, 0.021779445931315422, 0.10578587651252747, -0.014152845367789268, 0.013232720084488392, 0.024075014516711235, -0.011145839467644691, -0.030639201402664185, -0.001352915191091597, 0.0011981778079643846, -0.003839386161416769, 0.02276596985757351, 0.017216764390468597, 0.01980639435350895, 0.025801433250308037, -0.07497593015432358, 0.0975901260972023, 0.06594543159008026, 0.01243591122329235, 0.01153475884348154, -0.009789367206394672, -0.01029211562126875, -0.022936714813113213, -0.03663424029946327, -0.016894247382879257, 0.031151436269283295, -0.017890257760882378, -0.025877319276332855, -0.03769665211439133, 0.0058385226875543594, -0.008594153448939323, -0.027679625898599625, -0.01311889011412859, 0.033655691891908646, -0.02912147156894207, 0.05065428465604782, -0.039954278618097305, -0.02204504795372486, 0.000973482383415103, -0.00237856968306005, -0.012929174117743969, 0.04185144230723381, -0.017178822308778763, -0.002115338109433651, -0.027148419991135597, 0.034945763647556305, 0.04534222558140755, 0.022614197805523872, -0.02166561596095562, 0.08863551169633865, 0.007854259572923183, -0.07379968464374542, 0.08438586443662643, 0.009106388315558434, 0.03528725355863571, -0.0330485999584198, -0.054562442004680634, 0.07285110652446747, -0.01649584248661995, 0.018914727494120598, -0.04443158581852913, 0.03697573021054268, 0.0032844655215740204, -0.02686384506523609, -0.08157806098461151, 0.05331031605601311, 0.044659245759248734, -0.03614097833633423, -0.04803619906306267, -0.0019849080126732588, -0.0016446042573079467, -0.008034490048885345, 0.024530332535505295, -0.0346042737364769, 0.00408364599570632, 0.015063484199345112, 0.02339203469455242, 0.05228584632277489, 0.022139906883239746, 0.03128423914313316, 0.03672909736633301, -0.02390426956117153, 0.00485199736431241, 0.006701732520014048, 0.054676271975040436, 0.0365014411509037, -0.005473318975418806, -0.026844874024391174, -0.08628302812576294, 0.007285110652446747, 0.0315498411655426, -0.012416940182447433, 0.022614197805523872, -0.005482804495841265, -0.011876247823238373, -0.03595126047730446, -0.010775892995297909, 0.025497887283563614, 0.02269008383154869, -0.018174832686781883, -0.04006810858845711, 0.09554118663072586, 0.04344506189227104, 0.08514472842216492, 0.029425017535686493, 0.023240260779857635, -0.008726955391466618, 0.06055748090147972, 0.005169772543013096, -0.013574209995567799, 0.05042662471532822, -0.04761882126331329, 0.052361730486154556, -0.0560801737010479, -0.02276596985757351, -0.01709344983100891, -0.0430656261742115, -0.024075014516711235, 0.024473417550325394, 0.04113052040338516, 0.0012770286994054914, 0.027850370854139328 ]
17,049
imodels.tree.figs
predict
null
def predict(self, X, categorical_features=None): if hasattr(self, "_encoder"): X = self._encode_categories(X, categorical_features=categorical_features) X = check_array(X) preds = np.zeros(X.shape[0]) for tree in self.trees_: preds += self._predict_tree(tree, X) if isinstance(self, RegressorMixin): return preds elif isinstance(self, ClassifierMixin): return (preds > 0.5).astype(int)
(self, X, categorical_features=None)
[ 0.00899125449359417, -0.009070864878594875, 0.0005701485788449645, 0.011829119175672531, 0.07020671665668488, -0.02142915688455105, -0.03695780411362648, -0.012943660840392113, 0.04623003676533699, 0.0069494908675551414, 0.01477000955492258, 0.007904811762273312, 0.0374448299407959, -0.0066076358780264854, 0.043008167296648026, -0.03763214871287346, 0.005525875370949507, -0.02232828363776207, -0.01629664935171604, 0.0013241027481853962, -0.015931379050016403, 0.027985280379652977, -0.05469679832458496, -0.01527576707303524, 0.007366272620856762, 0.0004399041645228863, 0.008944425731897354, -0.009169206954538822, -0.01752358116209507, 0.008513594046235085, -0.03997362032532692, 0.026037175208330154, -0.056008026003837585, -0.025212977081537247, -0.031488124281167984, -0.0030298654455691576, 0.00016009819228202105, 0.028041476383805275, 0.09590671956539154, -0.032537102699279785, -0.03547799214720726, -0.06473703682422638, -0.07335365563631058, -0.0009494671248830855, -0.04383236542344093, 0.004451139364391565, -0.006771538872271776, 0.03152558580040932, 0.028865674510598183, -0.015406889840960503, -0.04649227857589722, 0.0053713382221758366, 0.03671428933739662, 0.0024983512703329325, 0.052186742424964905, 0.012494097463786602, 0.028472306206822395, 0.016090599820017815, -0.0267302505671978, -0.014048835262656212, 0.04079781845211983, 0.06275146454572678, 0.030944902449846268, 0.010742676444351673, 0.010077698156237602, -0.04757872223854065, -0.013824054040014744, 0.04454417526721954, 0.016680650413036346, -0.00007580517558380961, -0.008752424269914627, -0.04465656727552414, 0.012007071636617184, 0.019518515095114708, 0.024950731545686722, -0.004652506206184626, 0.043195486068725586, -0.0033576716668903828, 0.022927699610590935, 0.04304563254117966, 0.0015184449730440974, 0.002160008531063795, 0.006115926429629326, -0.010864432901144028, 0.004261480178683996, -0.09777989983558655, -0.0340731106698513, -0.012868733145296574, -0.034822382032871246, 0.022365747019648552, 0.032874274998903275, 0.04851531237363815, 0.045817937701940536, 0.031431928277015686, -0.0031047926750034094, 0.06496181339025497, -0.009637501090765, 0.023883020505309105, 0.01931246556341648, -0.03107602521777153, 0.023583311587572098, 0.10602188110351562, -0.032967932522296906, 0.023751897737383842, -0.03632092475891113, 0.061515167355537415, -0.005998852662742138, 0.04742886871099472, -0.05799359455704689, -0.022028574720025063, -0.035459261387586594, 0.005338557530194521, 0.027367131784558296, -0.02706742286682129, -0.04255860671401024, -0.07001939415931702, -0.03858746960759163, 0.004329382907599211, -0.13951429724693298, -0.008710278198122978, -0.02476341463625431, 0.025081854313611984, 0.0004366846405901015, 0.0012889807112514973, -0.04791589453816414, 0.00944081787019968, 0.08811429888010025, 0.032537102699279785, -0.028284989297389984, -0.012475365772843361, -0.0007516127079725266, 0.027367131784558296, -0.010958091355860233, 0.03388579189777374, -0.022796576842665672, -0.0331365205347538, 0.0007492712466046214, 0.009005303494632244, 0.053423039615154266, -0.0534605011343956, 0.07934782654047012, -0.021822525188326836, 0.023115018382668495, 0.026955032721161842, 0.007178955245763063, -0.029146650806069374, 0.03055153414607048, -0.012662683613598347, -0.006200219504535198, -0.04877755790948868, 0.00823730044066906, -0.04480642080307007, 0.03145065903663635, -0.0705813467502594, 0.04757872223854065, 0.021017057821154594, -0.015631671994924545, -0.05679475888609886, 0.007558273617178202, -0.029895922169089317, -0.04270846024155617, -0.005642949137836695, -0.04675452411174774, 0.009787355549633503, -0.006958856713026762, 0.016652552410960197, -0.02127930335700512, 0.019481051713228226, 0.00039746498805470765, 0.012494097463786602, 0.10789506137371063, 0.012222487479448318, 0.013496248051524162, 0.06882056593894958, -0.03205007687211037, 0.004249772988259792, 0.013355759903788567, 0.025980979204177856, 0.01616552658379078, 0.09186065196990967, 0.07432770729064941, -0.024594828486442566, -0.059304818511009216, -0.06035379692912102, 0.016184259206056595, -0.05967945232987404, -0.0035660627763718367, 0.03431662172079086, -0.015266401693224907, 0.03699526563286781, -0.00819047074764967, -0.005853681359440088, 0.01749548316001892, 0.00939398817718029, 0.005755339749157429, -0.012868733145296574, -0.021391693502664566, -0.003608209313824773, 0.006794953718781471, -0.009843550622463226, 0.0020839106291532516, -0.01577216014266014, 0.009201987646520138, 0.044244468212127686, -0.08241983503103256, 0.006734075024724007, -0.015360060147941113, 0.023227408528327942, -0.02558761276304722, -0.09463295340538025, -0.01921880804002285, 0.0027863522991538048, 0.011576240882277489, 0.0007311248336918652, 0.029970848932862282, 0.020192859694361687, 0.016652552410960197, -0.026411810889840126, -0.03257456794381142, -0.05533368140459061, -0.017973143607378006, -0.010161991231143475, -0.003327232552692294, 0.036414582282304764, 0.012475365772843361, -0.06840846687555313, 0.007843933068215847, 0.020530031993985176, -0.005722559057176113, -0.0213729627430439, 0.012025803327560425, -0.021635206416249275, 0.020923398435115814, -0.04465656727552414, 0.016390308737754822, 0.04454417526721954, 0.020380178466439247, -0.0021295694168657064, -0.006518659647554159, 0.027723034843802452, -0.011679265648126602, -0.03680795058608055, 0.010124527849256992, -0.042333826422691345, 0.021934915333986282, 0.05319825932383537, 0.002507717115804553, 0.030045775696635246, -0.009234768338501453, 0.01004023477435112, -0.005202752072364092, -0.03283681347966194, -0.022777846083045006, -0.04252114146947861, 0.004748506471514702, -0.05484665557742119, 0.013973908498883247, 0.034972235560417175, 0.03618980199098587, 0.0395989865064621, -0.06308864057064056, 0.022721650078892708, 0.007932908833026886, 0.07024417817592621, -0.055670853704214096, 0.0029198164120316505, 0.021110717207193375, 0.008171739056706429, 0.024463705718517303, -0.028715820983052254, 0.01028374768793583, 0.022215891629457474, -0.014535862021148205, -0.05750656872987747, 0.019574711099267006, 0.03632092475891113, -0.0036550387740135193, -0.04034825414419174, -0.010667748749256134, 0.016184259206056595, -0.008518277667462826, -0.0674344077706337, 0.01931246556341648, 0.003378744935616851, -0.006986954249441624, -0.011239068582654, -0.004626750014722347, -0.034822382032871246, -0.0042638215236365795, 0.0032242077868431807, -0.00015673231973778456, 0.028846941888332367, 0.0031282075215131044, -0.0023274237755686045, -0.004851531237363815, -0.05259884148836136, -0.011754192411899567, -0.028809478506445885, 0.04667959734797478, 0.0076332008466124535, -0.009141108952462673, 0.005469679832458496, 0.011379556730389595, -0.04963921755552292, -0.019387392327189445, -0.00516528869047761, 0.04237128794193268, 0.016371576115489006, -0.05402245745062828, 0.0251005869358778, 0.016071867197752, 0.027273472398519516, 0.03714512288570404, -0.020286519080400467, -0.08301924914121628, -0.08946298807859421, 0.04660467058420181, 0.009609404020011425, 0.05574578046798706, 0.030926169827580452, 0.017561044543981552, 0.017813922837376595, -0.049789074808359146, 0.030045775696635246, 0.034260425716638565, 0.02165393903851509, 0.047840967774391174, -0.040235865861177444, -0.015903281047940254, -0.006659148260951042, 0.003158646635711193, -0.0015605915104970336, 0.016577625647187233, 0.020548762753605843, -0.0405355729162693, 0.0181698277592659, -0.029858458787202835, 0.025325367227196693, -0.021672669798135757, 0.008916327729821205, -0.08684053272008896, 0.003495818702504039, -0.015622305683791637, 0.04049811139702797, 0.012203754857182503, 0.00812959298491478, -0.01671811379492283, 0.05274869501590729, 0.002486643847078085, 0.06492435187101364, -0.027891620993614197, -0.006064414046704769, 0.05589563399553299, 0.04289577901363373, -0.021785061806440353, -0.055146362632513046, 0.030907439067959785, 0.029820995405316353, 0.0073990533128380775, -0.0012889807112514973, 0.07548907399177551, -0.021298034116625786, 0.005923925898969173, 0.00897720642387867, -0.03384832665324211, 0.0014025421114638448, -0.03899956867098808, 0.05540860816836357, 0.022834040224552155, -0.039037030190229416, 0.013730395585298538, 0.06410015374422073, -0.10512275248765945, 0.05705700442194939, 0.006481196265667677, 0.023676970973610878, 0.01577216014266014, -0.008513594046235085, 0.04570554569363594, 0.0522991307079792, -0.06885802745819092, 0.031207146123051643, -0.024370046332478523, 0.008888229727745056, 0.005633583292365074, 0.0040928940288722515, -0.00668256264179945, -0.06398776173591614, 0.023770630359649658, -0.013861517421901226, -0.016830505803227425, -0.01527576707303524, -0.08084636926651001, -0.048702631145715714, -0.06147770583629608, -0.03116968274116516, 0.044057149440050125, 0.02873455174267292, 0.00442070048302412, 0.035552918910980225, -0.04832799360156059, 0.009984038770198822, 0.021335497498512268, -0.017298799008131027, 0.0026926936116069555, 0.05585816875100136, -0.010068331845104694, -0.028378648683428764, -0.02845357544720173, 0.049751609563827515, -0.022009842097759247, 0.102725088596344, 0.005207435227930546, -0.010358674451708794, -0.018581926822662354, -0.006972905248403549, 0.019424857571721077, 0.024875804781913757, 0.03978630155324936, -0.03113221935927868, 0.005923925898969173, 0.014563960023224354, -0.0330803245306015, -0.021597743034362793, -0.019612174481153488, 0.04488134756684303, 0.03510335832834244, 0.038137905299663544, 0.0025170829612761736, 0.03246217593550682, -0.05525875464081764, -0.08047173172235489, -0.06144024059176445, -0.019424857571721077, -0.02457609586417675, 0.018282217904925346, -0.031207146123051643, -0.01721450686454773, -0.06526152789592743, 0.019687101244926453, -0.009290963411331177, 0.0070618814788758755, 0.04132230952382088, 0.05001385509967804, 0.010236917994916439, -0.019162612035870552, -0.0029736701399087906, -0.033867061138153076, -0.04885248467326164, -0.037070196121931076, -0.020024273544549942, -0.04499373584985733, -0.002213862258940935, 0.05068819969892502, 0.012512830086052418, 0.00914579164236784, -0.02032398246228695, -0.005872413516044617, -0.007731542456895113, 0.016886699944734573, 0.003402159782126546, -0.003938356880098581, -0.023770630359649658, 0.021110717207193375, 0.019930614158511162, -0.037894394248723984, -0.028004013001918793, 0.032780617475509644, -0.01659635826945305, 0.01407693326473236, 0.047653649002313614, -0.005937974434345961, -0.01616552658379078, 0.0010952238226309419, -0.06541138142347336, 0.06990700960159302, 0.027329668402671814, 0.0007943445816636086, -0.0040975771844387054, 0.005731924902647734, 0.03328637406229973, 0.01678367517888546, -0.0004521968949120492, -0.0714055523276329, -0.012419170700013638, -0.023264871910214424, -0.0005265386425890028, 0.02710488624870777, 0.015781525522470474, -0.00011019555677194148, -0.0007867348031140864, 0.011632435955107212, 0.0662730410695076, 0.03366101160645485, -0.007422468159347773, -0.018825439736247063, 0.018900366500020027, 0.028509769588708878, 0.0052308496087789536, 0.012353609316051006, -0.002467912156134844, 0.02122310735285282, -0.010058966465294361, -0.02802274376153946, -0.04192172735929489, 0.026187028735876083, 0.016680650413036346, 0.027236009016633034, -0.004432407673448324, 0.006663830950856209, 0.02180379256606102, -0.036845412105321884, 0.008658765815198421, -0.026861373335123062, 0.04551822692155838, 0.05949213728308678, 0.06807129085063934, 0.021691402420401573, -0.05263630300760269, 0.04851531237363815, 0.015050985850393772, -0.04641735181212425, -0.0037674293853342533, -0.014741911552846432, -0.014376642182469368, 0.08279447257518768, 0.008307544514536858, -0.0042052846401929855, -0.004800018854439259, 0.031113488599658012, -0.018282217904925346, -0.047691114246845245, -0.013468150049448013, 0.08893849700689316, -0.03257456794381142, 0.031338270753622055, 0.0213167667388916, 0.003437281819060445, 0.021972378715872765, 0.012728244997560978, -0.018001241609454155, -0.026692787185311317, 0.04652974382042885, 0.02146662026643753, 0.02581239491701126, -0.061889804899692535, -0.007506761234253645, 0.034784916788339615, -0.009777989238500595, 0.041659481823444366, -0.04499373584985733, 0.010649017058312893, -0.007047832477837801, 0.021260570734739304, 0.14078806340694427, 0.025643808767199516, 0.031001096591353416, 0.06612318754196167, -0.016268551349639893, 0.07106837630271912, -0.03553418815135956, -0.07005686312913895, 0.07889825850725174, -0.029277773573994637, -0.009628135710954666, 0.0036620632745325565, -0.07402800023555756, 0.028097670525312424, -0.03433535248041153, -0.027704304084181786, 0.014086299575865269, 0.006242366041988134, -0.0746648758649826, 0.007253882009536028, -0.014479666948318481, 0.0218974519520998, -0.016343478113412857, -0.0036433313507586718, -0.05387260019779205, 0.05196195840835571, -0.044057149440050125, -0.00010785408085212111, -0.009712428785860538, -0.010480431839823723, 0.015444353222846985, -0.02156027965247631, 0.004622066859155893, 0.02777923084795475, -0.07271677255630493, -0.03178783133625984, -0.04757872223854065, -0.01644650287926197, -0.0028448891825973988, 0.013046685606241226, 0.03821283206343651, -0.05327318608760834, -0.01768280193209648, -0.008359056897461414, 0.0064858789555728436, -0.04727901518344879, 0.07110583782196045, -0.026374347507953644, -0.00036790387821383774, -0.013589907437562943, 0.038325224071741104, -0.0007135637570172548, -0.05368528515100479, 0.045593153685331345, -0.006139341276139021, -0.05784374102950096, -0.028041476383805275, 0.0030041092541068792, -0.01585645228624344, 0.038137905299663544, -0.009024035185575485, 0.02075481228530407, 0.00004990263551007956, 0.025231709703803062, -0.00864003412425518, 0.03437281772494316, 0.04518105462193489, -0.049227118492126465, 0.024107802659273148, 0.010030868463218212, -0.008363740518689156, -0.016643187031149864, 0.031769100576639175, -0.06724709272384644, 0.028940601274371147, 0.012035169638693333, 0.05799359455704689, 0.03735117241740227, 0.012700146995484829, 0.00281445006839931, 0.03598375245928764, -0.018366511911153793, -0.028903137892484665, 0.0545094832777977, 0.04690437763929367, -0.08279447257518768, -0.06990700960159302, 0.018778610974550247, -0.011688631027936935, -0.013037319295108318, 0.03682668134570122, -0.06129038706421852, -0.015313230454921722, 0.0009635159512981772, 0.08916327357292175, -0.002315716352313757, -0.009127059951424599, -0.05810598284006119, -0.02056749537587166, 0.02577492967247963, 0.03332383930683136, 0.019911883398890495, 0.009323744103312492, 0.07769943028688431, -0.020960863679647446, -0.04312055930495262, -0.06042872369289398, -0.007258565165102482, 0.01835714466869831, 0.02333979867398739, 0.014217421412467957, 0.06410015374422073, -0.034016914665699005, -0.10819476842880249, -0.02352711744606495, -0.02094213105738163, -0.024313852190971375, 0.0028565966058522463, 0.01477000955492258, -0.027666840702295303, 0.06844592839479446, -0.04079781845211983, 0.005867730360478163, 0.011651167646050453, 0.03135700151324272, -0.04488134756684303, 0.021391693502664566, 0.007305394392460585, 0.009019352495670319, 0.025175513699650764, 0.07282916456460953, -0.07043149322271347, -0.0503135621547699, -0.019387392327189445, -0.023208675906062126, 0.04173440858721733, 0.022777846083045006, 0.017870118841528893, 0.05465933680534363, -0.040760356932878494, -0.03141319751739502, 0.03557165339589119, -0.018900366500020027, 0.05922989174723625, -0.0024562047328799963, -0.02414526604115963, 0.01773899607360363, -0.04150962457060814, -0.057544030249118805, -0.017055286094546318, -0.027573181316256523, 0.05106283351778984, -0.02839737944304943, 0.013589907437562943, 0.05244898796081543, -0.035927556455135345, -0.05005132034420967, 0.045743007212877274, -0.022965162992477417, -0.053535427898168564, -0.026692787185311317, 0.04727901518344879, -0.001540689030662179, 0.03427916020154953, -0.03899956867098808, 0.024613559246063232, 0.022103501483798027, 0.0034864526242017746, 0.043382804840803146, 0.06983207911252975, -0.051474932581186295, -0.022627990692853928, 0.10347435623407364, -0.0735035091638565, 0.025906052440404892, 0.0009670282015576959, 0.02142915688455105, 0.037070196121931076, -0.020867204293608665, -0.009262865409255028, -0.039374202489852905, -0.050126247107982635, -0.03145065903663635, -0.07485219836235046, 0.025175513699650764, 0.015154010616242886, 0.024126533418893814, -0.027760500088334084, 0.008691546507179737, -0.027516985312104225, 0.06020394340157509, 0.007080613169819117, -0.0058068521320819855, 0.018375877290964127, -0.002322740852832794, -0.052861087024211884, -0.02558761276304722, 0.01678367517888546, 0.0031024510972201824, -0.037369903177022934, 0.024594828486442566, 0.046829450875520706, -0.019818224012851715, -0.04117245599627495, 0.013009222224354744, 0.0001924397802213207, -0.029858458787202835, -0.06578601151704788, -0.04446924850344658, -0.01862875558435917, -0.02146662026643753, 0.02118564397096634, 0.04806574806571007, 0.04139723628759384 ]
17,050
imodels.tree.figs
predict_proba
Predict probability for classifiers: Default behavior is to constrain the outputs to the range of probabilities, i.e. 0 to 1, with a sigmoid function. Set use_clipped_prediction=True to use prior behavior of clipping between 0 and 1 instead.
def predict_proba(self, X, categorical_features=None, use_clipped_prediction=False): """Predict probability for classifiers: Default behavior is to constrain the outputs to the range of probabilities, i.e. 0 to 1, with a sigmoid function. Set use_clipped_prediction=True to use prior behavior of clipping between 0 and 1 instead. """ if hasattr(self, "_encoder"): X = self._encode_categories(X, categorical_features=categorical_features) X = check_array(X) if isinstance(self, RegressorMixin): return NotImplemented preds = np.zeros(X.shape[0]) for tree in self.trees_: preds += self._predict_tree(tree, X) if use_clipped_prediction: # old behavior, pre v1.3.9 # constrain to range of probabilities by clipping preds = np.clip(preds, a_min=0.0, a_max=1.0) else: # constrain to range of probabilities with a sigmoid function preds = expit(preds) return np.vstack((1 - preds, preds)).transpose()
(self, X, categorical_features=None, use_clipped_prediction=False)
[ 0.015450946055352688, 0.02000361494719982, -0.016523197293281555, -0.014176551252603531, 0.042186886072158813, -0.0480930469930172, -0.05522966384887695, -0.033767085522413254, 0.08226442337036133, -0.004073671065270901, -0.0011634351685643196, 0.01796458102762699, 0.02889801561832428, 0.03206203132867813, -0.030392134562134743, -0.022464515641331673, 0.019405966624617577, -0.0190016757696867, -0.02467932738363743, 0.022112958133220673, 0.01838644966483116, 0.05312031880021095, -0.03733539208769798, 0.041061900556087494, -0.01607496105134487, -0.032993659377098083, -0.015231222845613956, -0.017692124471068382, -0.01444900780916214, 0.01963447965681553, 0.029689019545912743, 0.011381669901311398, -0.049780525267124176, -0.02090008556842804, 0.015160911716520786, 0.029144106432795525, 0.02286880649626255, 0.028739815577864647, 0.02800154499709606, -0.03471628949046135, -0.05199533700942993, -0.09611578285694122, -0.07382705062627792, -0.0243980810046196, -0.019950881600379944, -0.009527204558253288, 0.005827063228935003, 0.08500657230615616, 0.01843918487429619, -0.0039242589846253395, -0.002004975685849786, -0.0025553826708346605, 0.05217111483216286, -0.0029135316144675016, -0.008156131021678448, 0.08324878662824631, 0.023905901238322258, 0.02805427834391594, -0.007518933154642582, -0.05382343381643295, 0.033978018909692764, 0.029302306473255157, 0.03197414427995682, -0.042468130588531494, 0.05709291622042656, -0.0415189266204834, -0.019898146390914917, -0.005396405700594187, 0.01907198689877987, -0.002386195585131645, 0.004838308319449425, -0.03670258820056915, -0.01279668789356947, 0.024802371859550476, -0.011241046711802483, 0.035472139716148376, 0.02497815154492855, -0.047952424734830856, 0.021304376423358917, 0.049218032509088516, -0.027192963287234306, -0.004904225468635559, 0.013060356490314007, -0.05185471102595329, -0.00907896924763918, -0.06890524178743362, -0.015073021873831749, -0.022956697270274162, -0.0021983322221785784, 0.027263274416327477, -0.00003191138603142463, 0.06616310030221939, 0.07713168859481812, 0.06609278917312622, 0.008362671360373497, 0.05111644044518471, 0.0032365249935537577, 0.032800301909446716, 0.012612120248377323, -0.03719476982951164, 0.00731239328160882, 0.06103035807609558, -0.017736069858074188, 0.03274757042527199, -0.006710351444780827, 0.047741491347551346, -0.028353102505207062, 0.05505388602614403, -0.04278453066945076, -0.027052339166402817, -0.043171245604753494, -0.002836628584191203, 0.019669635221362114, -0.06844822317361832, -0.006415922194719315, -0.03677289932966232, -0.057479631155729294, 0.007518933154642582, -0.049780525267124176, -0.0036320271901786327, -0.019757524132728577, 0.013086723163723946, -0.002616905141621828, -0.01676928624510765, -0.06538967043161392, -0.01857980713248253, 0.06721776723861694, 0.03086673654615879, -0.028036700561642647, -0.0031486356165260077, 0.0032826669048517942, 0.02722811885178089, -0.02694687247276306, 0.02784334309399128, -0.004084657412022352, -0.05336640775203705, -0.012981255538761616, 0.022851228713989258, 0.06890524178743362, -0.04658135026693344, 0.1032172441482544, -0.017718492075800896, 0.02559337578713894, 0.031112827360630035, 0.041835326701402664, -0.034065909683704376, 0.08310816437005997, -0.01949385553598404, -0.01027426403015852, -0.040288474410772324, 0.02552306465804577, -0.044296227395534515, 0.0038781173061579466, -0.06180378422141075, 0.04215173050761223, 0.021550467237830162, -0.00782654620707035, -0.06088973581790924, -0.006618067622184753, -0.06282330304384232, -0.01332402415573597, 0.009518415667116642, -0.02448597177863121, 0.011531081981956959, -0.006560939364135265, 0.03466355800628662, 0.026894139125943184, 0.044155605137348175, 0.041694704443216324, -0.008534055203199387, 0.08247535675764084, -0.017296623438596725, 0.03239601105451584, 0.03471628949046135, -0.0013117484049871564, 0.021093443036079407, 0.032519057393074036, -0.0204079058021307, 0.019247766584157944, 0.06538967043161392, 0.0734051764011383, -0.018210671842098236, -0.042960312217473984, -0.04095643386244774, 0.016391362994909286, -0.011654126457870007, 0.020601261407136917, 0.05593277886509895, -0.041835326701402664, 0.0254527535289526, -0.02258756197988987, -0.007180559448897839, 0.018825897946953773, 0.03701899200677872, 0.020232126116752625, 0.0037968195974826813, 0.008982290513813496, 0.00940416008234024, -0.016329839825630188, 0.01718236692249775, 0.025224240496754646, -0.03687836974859238, -0.011337725445628166, 0.034628402441740036, -0.034329578280448914, -0.020460639148950577, -0.033837396651506424, 0.0035946741700172424, 0.023659810423851013, -0.1165764257311821, 0.018562229350209236, -0.006244537886232138, 0.03051517903804779, -0.029987843707203865, 0.009210803546011448, 0.03137649595737457, 0.045702457427978516, -0.014897244051098824, -0.031394071877002716, -0.03294092416763306, -0.03831975534558296, -0.017999736592173576, 0.01504665520042181, 0.058323368430137634, 0.04250328615307808, -0.033204592764377594, 0.0070882756263017654, 0.03765179589390755, 0.03543698415160179, -0.019247766584157944, -0.013658003881573677, -0.0182985607534647, 0.017446033656597137, -0.04144861549139023, 0.05470232665538788, 0.012638487853109837, -0.008810906670987606, -0.008050663396716118, -0.047460246831178665, 0.05617886781692505, 0.008648311719298363, 0.016118904575705528, 0.0035177709069103003, -0.01270001009106636, 0.002636680379509926, 0.060573335736989975, 0.024187147617340088, 0.02664804831147194, 0.03955020383000374, 0.0279136560857296, 0.015231222845613956, -0.01956416852772236, -0.03135891631245613, 0.004310972057282925, -0.013367968611419201, -0.013332813046872616, 0.012779110111296177, 0.010414887219667435, 0.029091373085975647, 0.06138191744685173, -0.043030623346567154, -0.0156530924141407, -0.024644171819090843, 0.03466355800628662, 0.02237662672996521, 0.01002817414700985, 0.008788933977484703, 0.0038012140430510044, 0.0429251566529274, 0.016382573172450066, 0.010660977102816105, 0.03206203132867813, 0.016751708462834358, -0.04447200894355774, 0.0016094736056402326, 0.03919864818453789, 0.001505104941315949, -0.03100736066699028, 0.009993018582463264, -0.01647046208381653, -0.004965747706592083, -0.05554606392979622, 0.017999736592173576, 0.00785291288048029, 0.006648828741163015, -0.011381669901311398, 0.013912882655858994, 0.02812458947300911, 0.025997668504714966, 0.02587462216615677, 0.014633575454354286, 0.03617525473237038, 0.012673643417656422, 0.004058290272951126, 0.04862038418650627, -0.02357192151248455, 0.0021148372907191515, -0.03863615542650223, 0.01367558166384697, -0.013447069562971592, 0.028036700561642647, -0.00557657890021801, 0.01584644801914692, -0.05132737755775452, -0.054104678332805634, 0.028142167255282402, 0.07122552394866943, -0.0012238591443747282, -0.061768628656864166, 0.008296754211187363, 0.027333585545420647, 0.03520847111940384, 0.027526943013072014, 0.03909318149089813, -0.10265475511550903, -0.065917007625103, 0.07424891740083694, 0.0029926321003586054, 0.054174989461898804, -0.01747240126132965, -0.05023754760622978, 0.028300369158387184, -0.00643789442256093, -4.5489602484849456e-7, 0.059378039091825485, 0.020144237205386162, 0.008744989521801472, 0.003170608077198267, -0.018966520205140114, -0.011785960756242275, 0.01504665520042181, 0.02511877380311489, 0.0070355418138206005, 0.044296227395534515, -0.07910040766000748, 0.035735808312892914, -0.02343129925429821, 0.014809354208409786, -0.00838024914264679, -0.028247633948922157, -0.0738973617553711, -0.002847614698112011, -0.02265787310898304, 0.04510480910539627, -0.006068759132176638, -0.018474340438842773, -0.03199172019958496, 0.07635825872421265, -0.005062425974756479, 0.0010090795112773776, -0.0003532053087837994, 0.005554606672376394, 0.06159285083413124, 0.09274083375930786, -0.01539821270853281, -0.057549942284822464, 0.05333125218749046, 0.028458569198846817, 0.022956697270274162, 0.001039291499182582, 0.0509055070579052, -0.059518661350011826, -0.003126663388684392, 0.012489075772464275, 0.010072118602693081, 0.0037616638001054525, -0.054807793349027634, 0.041975948959589005, 0.016953853890299797, -0.024116836488246918, 0.01991572603583336, 0.016672607511281967, -0.07910040766000748, 0.04334702342748642, 0.002975054318085313, 0.013218557462096214, -0.0254527535289526, -0.034751445055007935, 0.012963677756488323, 0.03086673654615879, -0.03708930313587189, -0.03128860518336296, -0.048022735863924026, 0.029917532578110695, 0.0033244143705815077, 0.0025465937796980143, 0.04510480910539627, -0.058182746171951294, 0.042890001088380814, -0.033907707780599594, -0.03211476653814316, -0.020460639148950577, -0.057057760655879974, -0.028353102505207062, -0.05322578549385071, -0.0499563030898571, 0.019669635221362114, 0.022218426689505577, 0.004097840748727322, 0.0032431166619062424, -0.029161684215068817, -0.005128343123942614, 0.009492048993706703, -0.04194079339504242, -0.013948039151728153, 0.001710546319372952, 0.01300762314349413, -0.025224240496754646, -0.023097319528460503, 0.053471874445676804, -0.03642134368419647, 0.12051386386156082, -0.005690834950655699, -0.0530148521065712, -0.03323974832892418, 0.039725981652736664, -0.025347286835312843, -0.010186375118792057, 0.02518908493220806, -0.027860920876264572, 0.0313061848282814, -0.01606617122888565, -0.017639391124248505, -0.009869973175227642, -0.0017665758496150374, 0.004220885690301657, 0.05603824555873871, 0.007444227114319801, 0.03141165152192116, 0.00014913722407072783, -0.023114897310733795, -0.06721776723861694, -0.044296227395534515, -0.027808187529444695, -0.0029091371688991785, -0.004974536597728729, -0.028247633948922157, -0.0043065776117146015, -0.027087494730949402, 0.0137810492888093, -0.024292614310979843, 0.0062401434406638145, 0.03874162212014198, 0.05051879584789276, 0.027878498658537865, -0.01392167154699564, -0.014642364345490932, -0.08135037869215012, -0.05382343381643295, -0.029583552852272987, -0.004904225468635559, -0.010406098328530788, 0.06767479330301285, 0.0471438430249691, 0.019476277753710747, 0.021568045020103455, -0.05758509784936905, -0.04935865476727486, -0.013306446373462677, 0.022675450891256332, 0.02209538035094738, 0.007620005868375301, 0.029653863981366158, 0.044366538524627686, 0.008498899638652802, -0.00661367317661643, -0.017832748591899872, 0.03079642541706562, -0.046054016798734665, 0.01907198689877987, 0.05305000767111778, -0.0071541923098266125, 0.01676928624510765, -0.013877727091312408, -0.04777664691209793, 0.06665527820587158, 0.02518908493220806, 0.01402713917195797, 0.02167351171374321, -0.007993536069989204, 0.04749540239572525, 0.004434017464518547, 0.021778978407382965, 0.0010041357018053532, -0.017832748591899872, -0.021655933931469917, 0.007769417949020863, 0.01949385553598404, -0.0059764753095805645, -0.006266510114073753, 0.01462478656321764, -0.011557448655366898, 0.03520847111940384, 0.10265475511550903, -0.0640185996890068, -0.015626724809408188, 0.06574122607707977, -0.028370680287480354, 0.004877858329564333, -0.015538835898041725, 0.017736069858074188, 0.011785960756242275, -0.014580842107534409, -0.048936787992715836, -0.00992270652204752, 0.003005815437063575, -0.01620679534971714, 0.03255421295762062, -0.05101097375154495, 0.03860099986195564, -0.018351294100284576, -0.044858720153570175, 0.033503416925668716, -0.03817912936210632, 0.007435438223183155, 0.057409320026636124, 0.08718622475862503, 0.014387485571205616, -0.016637451946735382, -0.019739946350455284, 0.030690958723425865, -0.00936900358647108, 0.007286026608198881, 0.002748739207163453, -0.021568045020103455, 0.06742870062589645, 0.04172986000776291, -0.018351294100284576, 0.002366420580074191, 0.01697143167257309, -0.011935372836887836, -0.028862860053777695, 0.014528108760714531, 0.03294092416763306, -0.03403075411915779, 0.03740570321679115, -0.02511877380311489, -0.011012534610927105, 0.03839006647467613, -0.0034584456589072943, 0.017349356785416603, -0.01175080519169569, 0.042960312217473984, 0.021445000544190407, 0.05579215660691261, -0.01845676265656948, -0.023870745673775673, 0.02230631560087204, -0.021937180310487747, 0.02784334309399128, -0.0268589835613966, -0.004458187147974968, -0.02385316789150238, 0.04819851741194725, 0.10490471869707108, 0.019546590745449066, 0.028300369158387184, 0.049710214138031006, -0.014440218918025494, 0.06201472133398056, -0.06486233323812485, -0.06370219588279724, 0.05016723647713661, -0.07776448875665665, -0.02230631560087204, 0.026841405779123306, -0.06788572669029236, 0.07938165217638016, -0.019810257479548454, -0.039585359394550323, 0.0509055070579052, 0.02483752742409706, -0.09140491485595703, 0.0018357886001467705, -0.05533513054251671, -0.0006042392342351377, 0.017718492075800896, -0.024257458746433258, -0.06721776723861694, 0.03824944049119949, -0.045632146298885345, 0.000630056718364358, 0.004390072543174028, -0.027192963287234306, -0.0010749965440481901, -0.002975054318085313, -0.0380033515393734, -0.0017259269952774048, -0.024960573762655258, -0.06180378422141075, -0.05772572010755539, 0.01845676265656948, -0.0005072862841188908, -0.0214625783264637, 0.02617344632744789, -0.01930049993097782, -0.012322085909545422, 0.006648828741163015, -0.005897374823689461, -0.018702851608395576, 0.03993691876530647, 0.024591438472270966, 0.025505486875772476, -0.000747608719393611, 0.062120188027620316, -0.024468393996357918, -0.03357372805476189, 0.0052469936199486256, 0.02434534765779972, -0.042397819459438324, -0.034065909683704376, 0.011074056848883629, -0.00540080014616251, -0.0022653478663414717, -0.0370541475713253, 0.012286930344998837, -0.045772768557071686, -0.008951529860496521, 0.015257589519023895, 0.018773162737488747, -0.0012809871695935726, -0.05336640775203705, 0.020636416971683502, 0.04816335812211037, -0.01357890386134386, -0.04475325345993042, 0.0036825635470449924, -0.09140491485595703, 0.025698844343423843, 0.02889801561832428, 0.04355795681476593, 0.028774971142411232, 0.021374687552452087, 0.007013569585978985, 0.03937442600727081, -0.013200979679822922, -0.006468655541539192, 0.02596251107752323, 0.0172438882291317, -0.07713168859481812, -0.09281114488840103, -0.030550336465239525, -0.012497864663600922, -0.01647046208381653, 0.06131160631775856, -0.04130798950791359, -0.048022735863924026, 0.0211110208183527, 0.0872565433382988, -0.021304376423358917, 0.004113221075385809, -0.08036601543426514, -0.021902024745941162, 0.014079872518777847, 0.0006789451581425965, 0.02525939792394638, 0.01037973165512085, 0.08838152140378952, -0.043804049491882324, -0.013868938200175762, -0.06433499604463577, -0.023255519568920135, 0.007795784622430801, -0.006908102426677942, 0.0012667051050812006, 0.05210080370306969, -0.04770633578300476, -0.08219411224126816, -0.02244693785905838, -0.012260563671588898, -0.001935762818902731, 0.026753516867756844, -0.01894894242286682, -0.0391634926199913, 0.06317485868930817, -0.031235871836543083, -0.03158742934465408, 0.011522293090820312, 0.00011089163308497518, -0.029724175110459328, 0.06654980778694153, -0.011838694103062153, -0.0024125624913722277, -0.03969082608819008, 0.0698896050453186, -0.05596793442964554, -0.013016412034630775, -0.024784794077277184, -0.029284728690981865, 0.02357192151248455, 0.011917795054614544, 0.006226960103958845, 0.009439315646886826, -0.020161814987659454, -0.007703500799834728, 0.02946050837635994, -0.03204445540904999, -0.003357372945174575, -0.00863073393702507, -0.03860099986195564, -0.005141526460647583, -0.032237809151411057, -0.042749375104904175, 0.022394204512238503, -0.027403896674513817, 0.08395189791917801, -0.05139768868684769, -0.012717587873339653, 0.02946050837635994, -0.03817912936210632, -0.04461263120174408, 0.07326455414295197, -0.006481838878244162, -0.06647949665784836, -0.031323760747909546, 0.044999342411756516, -0.013438280671834946, -0.0044472008012235165, -0.05234689265489578, 0.02399379014968872, -0.003680366324260831, 0.013130667619407177, 0.017279045656323433, 0.019318077713251114, -0.061276450753211975, -0.03884708881378174, 0.04833913967013359, -0.10237350314855576, 0.007075092289596796, 0.014115028083324432, 0.025417597964406013, 0.02202506922185421, -0.0656709149479866, -0.015090600587427616, -0.028247633948922157, -0.045913394540548325, -0.023325830698013306, -0.06468655914068222, 0.020724307745695114, 0.028089433908462524, -0.03779241815209389, -0.026911716908216476, 0.05702260509133339, -0.02687656134366989, 0.0023532372433692217, 0.02054852806031704, -0.042819686233997345, 0.004310972057282925, 0.028230056166648865, -0.05357734486460686, -0.01045004278421402, 0.024802371859550476, -0.004895436577498913, -0.022763339802622795, 0.06363188475370407, 0.02643711492419243, 0.01775364764034748, -0.0016347417840734124, -0.03141165152192116, -0.03824944049119949, -0.0767098218202591, 0.003748480463400483, -0.017446033656597137, -0.013236135244369507, 0.012225407175719738, -0.00036254353472031653, 0.03561276197433472, 0.04007754102349281 ]
17,051
imodels.tree.figs
print_tree
null
def print_tree(self, X, y, feature_names=None): s = "------------\n" + "\n\t+\n".join( [self._tree_to_str_with_data(X, y, t) for t in self.trees_] ) if feature_names is None: if hasattr(self, "feature_names_") and self.feature_names_ is not None: feature_names = self.feature_names_ if feature_names is not None: for i in range(len(feature_names))[::-1]: s = s.replace(f"X_{i}", feature_names[i]) return s
(self, X, y, feature_names=None)
[ -0.0061858962289988995, -0.012487417086958885, 0.031876713037490845, -0.01034392137080431, 0.0347406342625618, -0.0434747114777565, -0.006048036739230156, 0.053293876349925995, 0.013768177479505539, -0.028994999825954437, 0.029902204871177673, -0.025348389521241188, -0.014835478737950325, -0.0006153655122034252, -0.009685752913355827, -0.009828059934079647, 0.011909295804798603, -0.07222067564725876, 0.023373883217573166, 0.021630626171827316, -0.000659836339764297, -0.0009327762527391315, 0.01785949617624283, -0.05873711034655571, -0.027145011350512505, -0.023569554090499878, -0.04340355843305588, -0.04073530435562134, -0.052440036088228226, -0.02008303999900818, -0.04176703095436096, -0.062081318348646164, -0.0659947544336319, -0.02360513247549534, -0.06421592086553574, 0.025899827480316162, -0.023089269176125526, 0.0463208444416523, 0.06901877373456955, -0.04404393956065178, -0.051194850355386734, -0.04176703095436096, -0.026380112394690514, -0.01691671460866928, -0.047743912786245346, -0.006239261478185654, 0.017343634739518166, 0.032766129821538925, -0.026540208607912064, -0.04258529469370842, 0.026931552216410637, -0.04870448261499405, -0.012167226523160934, 0.010610747151076794, 0.018393147736787796, -0.05315157026052475, 0.08068792521953583, -0.0037088696844875813, 0.07926485687494278, -0.004647204652428627, 0.02316042222082615, 0.0809013843536377, -0.008338285610079765, 0.062081318348646164, -0.04756603017449379, -0.0634688064455986, 0.009801377542316914, 0.025170505046844482, -0.0016220745164901018, 0.056780390441417694, 0.003341984935104847, -0.03852955251932144, -0.0003866185143124312, 0.030667103826999664, 0.02335609495639801, 0.008071460761129856, -0.055926550179719925, -0.02792769856750965, 0.018286416307091713, -0.0024547914508730173, -0.06524764001369476, -0.006012460216879845, -0.014248463325202465, -0.0031040660105645657, 0.00959681160748005, -0.04489777982234955, 0.015600376762449741, -0.010824207216501236, 0.03813820704817772, -0.016445323824882507, -0.04671218991279602, -0.00038745233905501664, -0.010139355435967445, 0.03376227617263794, -0.045965079218149185, 0.008427227847278118, 0.012122755870223045, -0.013483564369380474, -0.028888270258903503, -0.012585252523422241, 0.011526846326887608, -0.020189769566059113, -0.037106484174728394, 0.06595917791128159, -0.04286990687251091, 0.0009116525761783123, -0.03424255922436714, 0.02408541738986969, -0.009063160978257656, 0.0050385482609272, -0.05848807096481323, -0.02732289582490921, 0.08815903216600418, -0.03595024347305298, 0.037391096353530884, -0.05923518165946007, -0.04404393956065178, -0.010228297673165798, -0.0028594762552529573, -0.09143208712339401, 0.020349863916635513, -0.04109107330441475, 0.019407082349061966, -0.010103778913617134, -0.11626461148262024, 0.07407066226005554, 0.044506434351205826, 0.002330272924154997, 0.016409747302532196, -0.08203984051942825, 0.057100582867860794, 0.0355411097407341, -0.0469612255692482, 0.05532174929976463, 0.06912550330162048, -0.03611033782362938, -0.062401507049798965, -0.03262382000684738, 0.09513206034898758, 0.003868964733555913, 0.041589148342609406, -0.09292630851268768, -0.021399376913905144, 0.027820969000458717, -0.014399663545191288, 0.008480592630803585, -0.02116812765598297, 0.006808488629758358, 0.0016654336359351873, -0.04144683852791786, -0.01756598986685276, -0.0016854455461725593, -0.0034220325760543346, -0.08943978697061539, 0.022537831217050552, 0.05699385330080986, -0.013857119716703892, -0.026895975694060326, 0.043332405388355255, 0.029973357915878296, 0.048562176525592804, -0.028852693736553192, -0.043047789484262466, 0.020189769566059113, 0.017637142911553383, 0.045680467039346695, 0.020065251737833023, 0.005456574261188507, 0.0006064713234081864, 0.024708008393645287, 0.013287892565131187, -0.034189194440841675, -0.0698014572262764, 0.07791294157505035, 0.00975690595805645, 0.007933600805699825, 0.0019033526768907905, 0.06499860435724258, -0.013038855977356434, 0.053044840693473816, 0.03988146409392357, -0.03465169295668602, -0.030702680349349976, -0.046214114874601364, 0.025437330827116966, -0.08332060277462006, 0.022199852392077446, 0.023783015087246895, 0.021755144000053406, 0.03331756591796875, -0.004727252293378115, -0.01012156717479229, 0.029759898781776428, 0.06741782277822495, 0.02894163504242897, -0.013768177479505539, 0.00945450458675623, -0.06652840226888657, 0.042122796177864075, -0.003906765021383762, 0.00654611038044095, 0.037177637219429016, 0.006345991510897875, -0.006697311066091061, 0.04119780287146568, 0.03214353695511818, 0.007448868826031685, 0.021666202694177628, -0.029724322259426117, -0.04290548339486122, 0.0758494958281517, -0.0072887735441327095, -0.030773833394050598, -0.004195825662463903, -0.013990531675517559, 0.023338306695222855, -0.042692024260759354, 0.0036643987987190485, -0.06222362443804741, -0.04671218991279602, 0.044506434351205826, 0.031076235696673393, 0.016400853171944618, 0.007938047870993614, -0.029528649523854256, -0.007324350532144308, 0.05482367426156998, -0.027500778436660767, 0.0006870747893117368, -0.037782441824674606, 0.04518239200115204, -0.034633904695510864, -0.04190933704376221, 0.013243421912193298, -0.03214353695511818, -0.03767571225762367, 0.015084515325725079, -0.0006203684606589377, 0.017681613564491272, 0.003206348977982998, -0.026095500215888023, -0.01963833160698414, -0.007008607033640146, -0.08879940956830978, 0.04955832287669182, -0.03011566586792469, 0.0005825682310387492, -0.02963537909090519, 0.01169583573937416, 0.01983400247991085, -0.03214353695511818, -0.009943683631718159, 0.004044624511152506, -0.015965038910508156, -0.010477334260940552, -0.05980440974235535, 0.013519140891730785, -0.007213173434138298, 0.011722518131136894, 0.027874333783984184, -0.027091646566987038, 0.0215772595256567, -0.058594804257154465, 0.07037068903446198, 0.015128985978662968, -0.00846280436962843, -0.029012788087129593, -0.07471103966236115, -0.004347026348114014, -0.06204574182629585, 0.0068840887397527695, 0.04237183555960655, -0.05233330652117729, 0.025241659954190254, 0.01663210056722164, -0.004175813402980566, -0.0020556654781103134, -0.025490695610642433, -0.04198049008846283, -0.025188293308019638, -0.005723399575799704, -0.06805820018053055, -0.02732289582490921, 0.02437002956867218, -0.01467538345605135, -0.001380820176564157, -0.004438191652297974, 0.0017710519023239613, 0.007226514630019665, -0.04738814756274223, 0.022199852392077446, 0.013608082197606564, 0.02227100543677807, 0.035274285823106766, 0.026807032525539398, -0.03080940991640091, -0.005412103608250618, 0.01853545382618904, -0.024316664785146713, 0.016587629914283752, -0.010326133109629154, 0.005879047326743603, 0.05525059252977371, -0.044221822172403336, 0.045965079218149185, -0.006528322119265795, 0.02639790065586567, -0.014132838696241379, 0.0037044223863631487, 0.003028465434908867, -0.014702065847814083, 0.013705918565392494, 0.03347766026854515, 0.009703541174530983, -0.018446512520313263, 0.02420993521809578, -0.0005289252731017768, -0.029404131695628166, 0.042763177305459976, 0.023267153650522232, 0.012362898327410221, -0.02764308638870716, -0.014506394043564796, 0.003888976527377963, 0.006746229249984026, -0.011322280392050743, -0.025526272132992744, 0.022893598303198814, 0.022377735003829002, -0.01837535947561264, -0.01004151999950409, -0.04984293878078461, 0.04052184522151947, 0.02323157712817192, 0.043012212961912155, 0.057100582867860794, -0.020189769566059113, 0.043367981910705566, -0.042976636439561844, 0.030097877606749535, -0.021239282563328743, 0.0033708910923451185, -0.05073235556483269, 0.03660840913653374, 0.0130121735855937, 0.043367981910705566, -0.016409747302532196, 0.018891220912337303, 0.0501275509595871, 0.022288793697953224, -0.03367333486676216, 0.03379785269498825, 0.0111088203266263, 0.003604362951591611, -0.03271276503801346, 0.021363800391554832, 0.003782246494665742, 0.038636282086372375, -0.02655799686908722, 0.02541954256594181, 0.009917001239955425, -0.004302555695176125, -0.008026990108191967, 0.023124845698475838, -0.044755470007658005, -0.0548948273062706, 0.03548774495720863, 0.054432328790426254, 0.0016343040624633431, -0.014203991740942001, 0.010068202391266823, 0.023267153650522232, -0.007142019923776388, 0.025170505046844482, -0.05983998626470566, 0.10103779286146164, 0.009054266847670078, -0.019602755084633827, 0.0066528404131531715, -0.07118894904851913, 0.027020493522286415, 0.043866053223609924, 0.014301828108727932, 0.020456595346331596, -0.03160988539457321, -0.023943109437823296, 0.0005931300693191588, 0.001188483671285212, 0.015511435456573963, -0.014017214067280293, -0.017343634739518166, 0.02214648760855198, -0.004493780434131622, 0.04169587790966034, -0.059448644518852234, -0.06386015564203262, 0.008351626805961132, 0.015217927284538746, -0.043866053223609924, -0.017228011041879654, -0.005879047326743603, 0.006715099792927504, -0.12309533357620239, -0.040628574788570404, -0.023249365389347076, 0.030667103826999664, -0.00783576536923647, 0.03340650722384453, -0.029724322259426117, 0.03621706739068031, 0.0042402963154017925, -0.0013085550162941217, 0.0160272978246212, 0.029653169214725494, 0.026575785130262375, 0.007395503576844931, 0.013857119716703892, 0.10238970071077347, 0.0396680049598217, 0.0020979128312319517, -0.058594804257154465, -0.008774100802838802, -0.004458203446120024, 0.020100828260183334, 0.027785392478108406, -0.0006565010407939553, -0.049807362258434296, 0.001875558402389288, 0.09313976764678955, 0.06926780939102173, -0.09634166955947876, -0.037142060697078705, -0.023373883217573166, 0.026344535872340202, 0.05382752791047096, -0.035043034702539444, 0.01567153073847294, -0.003333090804517269, -0.0013363492907956243, 0.05261791869997978, 0.009792483411729336, -0.03899204730987549, 0.03563005104660988, 0.0015787155134603381, -0.048562176525592804, 0.030987294390797615, -0.053898680955171585, -0.006292626261711121, -0.022982539609074593, 0.045075662434101105, 0.0018333111656829715, 0.008147060871124268, -0.01445302926003933, -0.031076235696673393, -0.017316952347755432, -0.02291138656437397, 0.06421592086553574, 0.007568940054625273, 0.018144110217690468, 0.048633329570293427, 0.005176407750695944, 0.006737335119396448, 0.05137273669242859, 0.05026985704898834, -0.007448868826031685, -0.07371489703655243, 0.023409459739923477, 0.0059057301841676235, -0.036572832614183426, -0.026824820786714554, 0.059484221041202545, 0.013154479674994946, -0.04429297521710396, -0.005870153196156025, 0.015760472044348717, 0.05717173591256142, -0.002512603532522917, 0.004291438031941652, -0.052689071744680405, -0.08161292225122452, -0.09627051651477814, -0.059519797563552856, 0.019531600177288055, -0.032445937395095825, 0.013003278523683548, 0.030667103826999664, 0.03735551983118057, 0.005367632489651442, 0.03160988539457321, -0.03175219148397446, 0.014817689545452595, 0.0010684123262763023, -0.049202557653188705, -0.060978442430496216, -0.03052479773759842, 0.016009509563446045, -0.02833683043718338, -0.01797512173652649, -0.07261201739311218, 0.03072046861052513, 0.007497786544263363, 0.016249651089310646, 0.07037068903446198, -0.013954955153167248, 0.003464279929175973, 0.031307484954595566, 0.07883793860673904, 0.007889130152761936, -0.014355192892253399, 0.021363800391554832, 0.01188261341303587, -0.06741782277822495, 0.008960877545177937, 0.003290843451395631, -0.021648414433002472, 0.046534307301044464, 0.0099970493465662, 0.08097253739833832, 0.04464874044060707, 0.03760455921292305, -0.04525354504585266, -0.000014704914974572603, -0.009890318848192692, -0.0180106982588768, 0.015466964803636074, 0.04738814756274223, -0.00025945965899154544, 0.08545520156621933, -0.03781801834702492, 0.0180106982588768, 0.016649888828396797, 0.03916993364691734, 0.02177293226122856, -0.011082137934863567, -0.009988155215978622, 0.04048626869916916, -0.009561234153807163, 0.0062970733270049095, 0.038316089659929276, 0.01663210056722164, 0.04902467504143715, -0.028283465653657913, -0.049807362258434296, -0.01232732180505991, -0.030169030651450157, -0.06499860435724258, 0.05809672921895981, -0.025277236476540565, 0.08040331304073334, 0.005247561261057854, -0.008427227847278118, -0.010157143697142601, -0.003341984935104847, 0.010468440130352974, 0.013172267936170101, 0.04500450938940048, -0.012540781870484352, 0.06080055609345436, 0.01129559800028801, 0.004985183011740446, 0.002123483456671238, 0.0325348787009716, 0.06428707391023636, 0.0008221549796871841, 0.04504008591175079, 0.0355411097407341, -0.04930928722023964, 0.004607181064784527, -0.016970079392194748, -0.046000655740499496, 0.045075662434101105, -0.019531600177288055, 0.011891507543623447, 0.0069952658377587795, -0.06464283913373947, 0.004651651717722416, 0.042727600783109665, 0.06973030418157578, -0.017752766609191895, 0.04560931399464607, -0.037782441824674606, 0.017059020698070526, 0.00011437349166953936, -0.029599802568554878, 0.006394909229129553, 0.05347175896167755, 0.016970079392194748, 0.001360808266326785, 0.036288220435380936, -0.04290548339486122, -0.0023547320161014795, -0.055037133395671844, 0.04724584147334099, -0.014844372868537903, 0.0469612255692482, -0.012603040784597397, -0.04059299826622009, 0.023836379870772362, 0.030898353084921837, -0.02303590439260006, 0.022110911086201668, 0.010948725044727325, 0.028141159564256668, 0.009303303435444832, 0.01587609574198723, -0.006208132021129131, 0.01947823539376259, -0.011624682694673538, -0.05407656356692314, 0.006933006923645735, 0.010575169697403908, 0.032410360872745514, 0.05823903530836105, -0.02198639325797558, -0.06891204416751862, 0.0007593398913741112, 0.06339765340089798, -0.03264160826802254, -0.06332650035619736, -0.038351669907569885, 0.012273957021534443, 0.0001323702890658751, -0.07001491636037827, 0.00959681160748005, -0.009641282260417938, 0.02307148091495037, 0.024476760998368263, -0.06304188817739487, 0.04101992025971413, -0.0061858962289988995, -0.030026722699403763, -0.0396680049598217, -0.02456570230424404, -0.03223247826099396, -0.05133716017007828, -0.04692564904689789, -0.0027883227448910475, -0.007938047870993614, -0.05194196105003357, -0.048882368952035904, -0.06293515861034393, 0.005901283118873835, -0.06517648696899414, 0.004829535260796547, -0.022964751347899437, -0.008102590218186378, -0.020421018823981285, 0.02109697461128235, 0.05411214008927345, -0.025526272132992744, -0.02719837613403797, 0.0002465353172738105, -0.03169882670044899, 0.035398803651332855, 0.0015186797827482224, 0.0510881207883358, -0.05055447295308113, 0.023996474221348763, 0.035772357136011124, 0.009845848195254803, -0.011766988784074783, -0.03299737721681595, 0.048953521996736526, 0.023107057437300682, -0.0007810194510966539, 0.026202229782938957, -0.013198950327932835, -0.004186931531876326, -0.001400832086801529, -0.04265644773840904, 0.004180260468274355, -0.0272873193025589, 0.055641938000917435, -0.051835231482982635, -0.019656119868159294, 0.007568940054625273, 0.035843510180711746, 0.03160988539457321, 0.034029100090265274, -0.006826276890933514, 0.011322280392050743, 0.025810886174440384, 0.015226821415126324, -0.02550848387181759, 0.0008210432133637369, 0.053293876349925995, -0.06268612295389175, 0.07641872018575668, -0.001936705899424851, 0.0023147081956267357, -0.04724584147334099, -0.048953521996736526, 0.044791050255298615, 0.009507869370281696, -0.02291138656437397, 0.07385720312595367, 0.03347766026854515, -0.07940716296434402, 0.04930928722023964, -0.03781801834702492, 0.03281949460506439, 0.008876383304595947, -0.04404393956065178, 0.021114762872457504, 0.027625296264886856, -0.02189745008945465, 0.0021868543699383736, 0.033050742000341415, -0.004780617076903582, -0.005354291293770075, -0.01756598986685276, 0.0009672411833889782, -0.005198643542826176, -0.04226510226726532, -0.01761046051979065, 0.037782441824674606, -0.02161283791065216, -0.004524909891188145, 0.05105254426598549, -0.004567157011479139, -0.01242515817284584, 0.038885317742824554, 0.018428724259138107, 0.023000327870249748, 0.02120370604097843, 0.0745687335729599, 0.03956127539277077, -0.04560931399464607, -0.02068784274160862, -0.03340650722384453, 0.01995852030813694, 0.08211099356412888, -0.0011907072039321065, 0.02351618930697441, -0.03703533113002777, -0.01947823539376259, -0.017103491351008415, -0.013074432499706745, 0.06606590747833252, 0.04027280956506729, -0.017183540388941765, 0.02501041069626808, 0.026059923693537712, 0.0099970493465662, 0.060338061302900314, -0.0041913785971701145, -0.008662923239171505, 0.03401131182909012, -0.01894458569586277, 0.0031796663533896208, 0.024192146956920624, 0.004980735946446657, -0.015893884003162384, 0.004069083370268345, 0.040628574788570404, 0.02040323056280613, -0.003646610304713249, -0.013599188067018986, 0.0028439112938940525, -0.03472284600138664, -0.006305967923253775, -0.018677759915590286, -0.03052479773759842, 0.013154479674994946, -0.009321091696619987, 0.06930338591337204, 0.009116525761783123, 0.051266007125377655 ]
17,053
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 ---------- categorical_features : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``categorical_features`` parameter in ``fit``. 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``. verbose : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``verbose`` 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.tree.figs.FIGSClassifier, *, categorical_features: Union[bool, NoneType, str] = '$UNCHANGED$', feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', sample_weight: Union[bool, NoneType, str] = '$UNCHANGED$', verbose: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.tree.figs.FIGSClassifier
[ 0.04387366771697998, -0.05837138369679451, -0.01911149173974991, 0.0047279298305511475, -0.0029371194541454315, -0.017294520512223244, -0.011529680341482162, 0.009979071095585823, 0.05703957378864288, 0.010920852422714233, -0.021518263965845108, 0.006487823557108641, 0.05125570669770241, -0.005355783738195896, -0.019863013178110123, 0.03750000149011612, 0.029927700757980347, 0.023839421570301056, 0.030175037682056427, -0.033637747168540955, 0.01915905624628067, -0.04280821979045868, -0.028786148875951767, 0.01488774735480547, 0.008461757563054562, 0.06548706442117691, 0.03799467161297798, -0.04543378949165344, 0.08995433896780014, -0.0065116058103740215, -0.025228310376405716, -0.014212328940629959, 0.014649923890829086, 0.06286149471998215, 0.02895738184452057, -0.03156392648816109, -0.01078767143189907, 0.022773971781134605, -0.06255707889795303, -0.015277777798473835, -0.037157535552978516, -0.0267123281955719, 0.048630136996507645, -0.09665144234895706, 0.05943683534860611, 0.031925417482852936, -0.005393835715949535, 0.10509893298149109, -0.019206620752811432, -0.01768455095589161, 0.013165906071662903, -0.011263318359851837, 0.015039954334497452, -0.0050751520320773125, -0.005869482643902302, 0.057343989610672, 0.05563165992498398, 0.04406392574310303, 0.0594748854637146, 0.028044139966368675, 0.0272450540214777, 0.03464611992239952, 0.03236301243305206, -0.008376142010092735, -0.04353120177984238, -0.038698628544807434, -0.046385083347558975, -0.013822298496961594, 0.008647260256111622, 0.0316971093416214, 0.028671994805336, -0.01796993985772133, 0.005450913216918707, 0.02675038017332554, 0.02157534286379814, -0.02638888917863369, -0.04041095823049545, -0.052473362535238266, 0.053044140338897705, -0.04170471802353859, 0.01711377501487732, -0.017218416556715965, -0.027054794132709503, -0.08105022460222244, -0.009156202897429466, -0.032134704291820526, -0.008380898274481297, -0.049277015030384064, 0.03942161425948143, 0.003025114070624113, -0.0854642316699028, 0.05159817263484001, -0.016152968630194664, -0.0030274924356490374, 0.009503425098955631, -0.030669711530208588, 0.001832429552450776, -0.05837138369679451, 0.0024234207812696695, -0.026617199182510376, 0.000684336933773011, 0.035882800817489624, 0.06651446223258972, 0.07572298496961594, 0.037024352699518204, -0.0505707748234272, -0.016733257099986076, -0.008685312233865261, -0.011282344348728657, -0.0038218225818127394, 0.011472602374851704, -0.01082572340965271, -0.05951293930411339, 0.01907343976199627, 0.0012997051235288382, 0.0010315591935068369, -0.019672755151987076, -0.04330289363861084, -0.050875190645456314, -0.014963850378990173, -0.026845509186387062, 0.011101597920060158, -0.02536149136722088, -0.0637366846203804, 0.000734874454792589, 0.004264174494892359, 0.009598554112017155, 0.013432268053293228, 0.0448630154132843, -0.07237442582845688, -0.03156392648816109, -0.006787480786442757, -0.03896499425172806, 0.09292237460613251, 0.04402587562799454, 0.016238585114479065, 0.047526635229587555, 0.020471841096878052, -0.011900684796273708, 0.059094369411468506, -0.003039383562281728, 0.020091325044631958, 0.03679604083299637, -0.021308980882167816, -0.0013615392381325364, -0.05068493261933327, 0.02699771709740162, -0.00012247907579876482, 0.025627853348851204, -0.034132421016693115, 0.025951294228434563, -0.01829337887465954, 0.0027920471038669348, -0.012728310190141201, -0.0027421042323112488, 0.0019763128366321325, 0.02304033562541008, -0.004770738072693348, 0.011206240393221378, -0.018188737332820892, -0.004730308428406715, -0.00563641544431448, -0.012081430293619633, -0.09140030294656754, 0.03525494784116745, 0.021537290886044502, -0.006159626878798008, -0.048515982925891876, -0.03826103359460831, 0.035559359937906265, -0.060882799327373505, -0.027720700949430466, -0.03378995507955551, 0.006777968257665634, 0.03538812696933746, 0.03930745646357536, 0.01711377501487732, 0.005565068684518337, 0.008632990531623363, 0.0281392689794302, 0.013755708001554012, -0.05266362428665161, -0.08554033190011978, -0.03582572191953659, 0.0063213468529284, 0.07127092778682709, 0.006345129571855068, 0.001902587478980422, -0.043645355850458145, 0.04562404751777649, 0.029433028772473335, -0.008390410803258419, 0.053691018372774124, 0.03439878299832344, -0.03129756450653076, -0.048059359192848206, -0.059132419526576996, 0.04874429106712341, 0.013793759047985077, 0.07686453312635422, 0.05833333358168602, 0.008965943939983845, 0.01883561722934246, 0.04904870688915253, 0.006126331631094217, 0.04988584294915199, 0.03649162873625755, -0.0001691519282758236, -0.05239725857973099, -0.013051750138401985, 0.013156392611563206, -0.02659817412495613, 0.018122145906090736, -0.008442732505500317, 0.003971651662141085, -0.010911338962614536, 0.017779679968953133, -0.015610730275511742, -0.012081430293619633, -0.022850075736641884, 0.09277016669511795, 0.048135463148355484, 0.033675797283649445, 0.0197678841650486, 0.025951294228434563, -0.031107306480407715, 0.05551750212907791, -0.051902588456869125, -0.03658675774931908, -0.0790715366601944, 0.0046898783184587955, 0.0007877901662141085, 0.018692921847105026, 0.04387366771697998, -0.03468417003750801, -0.0199391171336174, 0.03614916279911995, 0.038546424359083176, -0.01346080657094717, -0.006663812790066004, -0.0059170471504330635, 0.04942922294139862, 0.05007610470056534, 0.03316210210323334, -0.05502283200621605, -0.017018646001815796, -0.004582857713103294, 0.06780821830034256, 0.04292237386107445, -0.0017908104928210378, 0.0427321158349514, -0.025837138295173645, -0.05182648450136185, -0.00278729060664773, -0.03108827956020832, -0.03407534211874008, -0.04219939187169075, 0.0002636867284309119, 0.04292237386107445, -0.015325342305004597, -0.030745813623070717, 0.012167046777904034, 0.0018847507890313864, 0.041476406157016754, 0.01810312084853649, 0.011796042323112488, 0.04318873584270477, 0.013907914981245995, -0.05566971004009247, 0.004801655188202858, -0.009522450156509876, 0.04497716948390007, -0.0015922279562801123, 0.017617959529161453, -0.01826483942568302, -0.05232115834951401, -0.00006216853216756135, -0.024372145533561707, -0.04330289363861084, -0.012300228700041771, 0.05019025877118111, -0.023592084646224976, 0.04330289363861084, 0.006045471876859665, -0.014469178393483162, -0.030669711530208588, -0.004601883701980114, 0.053576864302158356, 0.012167046777904034, -0.020928462967276573, 0.011130137369036674, 0.007700723130255938, -0.005845699924975634, -0.04261796176433563, 0.032134704291820526, -0.003467465750873089, -0.07309741526842117, 0.0012188451364636421, 0.001686168136075139, -0.011453577317297459, 0.02090943604707718, -0.0011492817429825664, -0.03300989419221878, -0.01780821941792965, 0.05281582847237587, -0.021537290886044502, 0.08105022460222244, -0.008043188601732254, -0.011710425838828087, 0.005764840170741081, 0.0038622526917606592, 0.045319635421037674, -0.03354261815547943, -0.0445205494761467, -0.0012473838869482279, -0.0027207001112401485, -0.013964992016553879, 0.018245814368128777, 0.04014459624886513, 0.10410959273576736, -0.014459664933383465, 0.04733637720346451, -0.03434170410037041, -0.0073915524408221245, -0.013936453498899937, -0.012186072766780853, -0.003517408622428775, -0.0041642882861196995, -0.038299087435007095, 0.0008763793739490211, -0.03125951439142227, -0.0039169518277049065, 0.022678842768073082, 0.02475266344845295, -0.08614916354417801, 0.03120243549346924, -0.0040786718018352985, -0.023458903655409813, 0.014573819935321808, -0.012385845184326172, 0.035026635974645615, -0.017494292929768562, -0.006216704845428467, -0.012737823650240898, -0.03643454983830452, -0.011187214404344559, 0.051940638571977615, -0.0022819158621132374, 0.07914764434099197, -0.023382799699902534, 0.021461186930537224, -0.03816590458154678, 0.05216895043849945, 0.04908675700426102, 0.0843987837433815, -0.006601978559046984, -0.013774733990430832, -0.045890409499406815, -0.007472412660717964, -0.07092846184968948, 0.028462709859013557, -0.0484398789703846, -0.0036220510955899954, 0.006140601355582476, 0.010892313905060291, -0.0009138365858234465, -0.025513699278235435, 0.0037385844625532627, 0.025837138295173645, -0.05658295378088951, 0.003436548635363579, -0.09840182960033417, -0.05437595024704933, 0.02397260256111622, 0.019206620752811432, 0.002129708882421255, -0.03999238833785057, -0.01789383590221405, -0.05068493261933327, 0.028767123818397522, 0.032134704291820526, 0.022165143862366676, -0.005070395767688751, 0.011367960833013058, 0.010350076481699944, -0.045738205313682556, 0.025761034339666367, 0.016105404123663902, 0.0384703204035759, -0.017789192497730255, 0.021879756823182106, -0.05277777835726738, -0.014307457953691483, 0.010606925003230572, -0.018978310748934746, -0.06986301392316818, 0.026274733245372772, -0.010350076481699944, 0.007253614719957113, -0.04269406571984291, 0.0544901080429554, -0.056430745869874954, 0.013061263598501682, 0.02454337850213051, 0.034455858170986176, 0.009674657136201859, 0.03826103359460831, 0.026940640062093735, 0.015610730275511742, 0.019206620752811432, -0.04893455281853676, -0.04893455281853676, 0.020072298124432564, -0.024086758494377136, -0.0016421708278357983, 0.01654299907386303, 0.028671994805336, -0.004699391312897205, 0.029394976794719696, 0.006516362074762583, 0.05612633004784584, 0.008609208278357983, 0.019463470205664635, 0.03468417003750801, 0.05167427659034729, 0.006825532764196396, -0.04512937739491463, -0.042579907923936844, -0.0026184360031038523, 0.04128614813089371, 0.008866057731211185, 0.029356924816966057, -0.041476406157016754, -0.00851407926529646, -0.036301370710134506, -0.015487062744796276, -0.05654489994049072, -0.025133181363344193, 0.013280061073601246, 0.05110350251197815, -0.056430745869874954, -0.044634703546762466, -0.01764649897813797, -0.02218417078256607, -0.042503803968429565, -0.05403348430991173, 0.01054033450782299, 0.038869861513376236, 0.056925419718027115, -0.06647640466690063, 0.05319634824991226, 0.030783865600824356, 0.005360540468245745, 0.0416666679084301, -0.023477930575609207, -0.05220700055360794, 0.035312023013830185, -0.05053272470831871, -0.006093036383390427, 0.038793761283159256, 0.034208524972200394, 0.002753995358943939, -0.06263317912817001, -0.02090943604707718, -0.027834855020046234, 0.03462709113955498, 0.01675228402018547, 0.01057838648557663, -0.06655251234769821, -0.03251522034406662, 0.03023211658000946, -0.0697869136929512, -0.028462709859013557, -0.010331050492823124, -0.023306697607040405, 0.02168949693441391, -0.013299087062478065, 0.020662100985646248, -0.0712328776717186, -0.021993910893797874, 0.017009131610393524, -0.024600457400083542, 0.040905632078647614, 0.05121765658259392, -0.01711377501487732, -0.0662480965256691, -0.013308599591255188, -0.0020167427137494087, -0.02283105067908764, -0.007534246426075697, -0.009436833672225475, 0.06503044068813324, 0.054147642105817795, 0.028082191944122314, -0.017370624467730522, 0.05319634824991226, 0.045319635421037674, 0.015477549284696579, -0.018892694264650345, -0.014355022460222244, -0.018692921847105026, -0.03304794430732727, 0.02022450603544712, 0.041933029890060425, 0.015496575273573399, -0.05007610470056534, -0.046879757195711136, -0.015839040279388428, 0.0018134036799892783, -0.007115677464753389, -0.024809740483760834, -0.0042950911447405815, -0.0048753805458545685, 0.060844749212265015, -0.00436168210580945, -0.017418188974261284, -0.07747336477041245, 0.008024162612855434, -0.05566971004009247, -0.013993531465530396, 0.06849315017461777, 0.012775875627994537, 0.053538814187049866, -0.05171233043074608, 0.011596270836889744, -0.0009239440551027656, 0.012899543158710003, -0.018721461296081543, -0.012947107665240765, 0.028976408764719963, -0.011196727864444256, -0.006188165862113237, -0.010178843513131142, 0.017342085018754005, 0.015753423795104027, 0.061453577131032944, -0.024238964542746544, -0.01150114182382822, 0.046499237418174744, 0.005336758214980364, 0.02475266344845295, 0.040220700204372406, -0.06506849080324173, 0.03165905550122261, -0.005993150640279055, -0.04387366771697998, 0.023477930575609207, -0.013470320031046867, 0.022812023758888245, -0.09140030294656754, -0.06270928680896759, 0.03848934546113014, 0.04170471802353859, 0.01552511379122734, -0.012338279746472836, 0.010312024503946304, 0.053576864302158356, -0.018150685355067253, 0.030251141637563705, 0.016390791162848473, -0.02005327306687832, -0.026864536106586456, 0.025551751255989075, 0.028995433822274208, -0.03784246742725372, 0.07735920697450638, 0.05334855243563652, 0.015591704286634922, -0.04668949916958809, -0.09429223835468292, -0.00861872173845768, 0.0075390031561255455, -0.0031892124097794294, 0.02756849303841591, -0.03571156784892082, 0.05837138369679451, 0.01703767105937004, -0.018169710412621498, -0.032743532210588455, -0.06008371338248253, 0.02675038017332554, -0.04653729125857353, 0.021784627810120583, -0.022070014849305153, -0.06738965213298798, 0.0030084664467722178, -0.014649923890829086, 0.04292237386107445, -0.016894977539777756, 0.007324961945414543, -0.03158295154571533, -0.0701293796300888, -0.03517884388566017, -0.03649162873625755, 0.024619482457637787, 0.04493911564350128, -0.055898021906614304, -0.03222983330488205, 0.034208524972200394, -0.02749238908290863, -0.040182650089263916, 0.020110350102186203, 0.01194824930280447, 0.009960046038031578, -0.007700723130255938, 0.0027611302211880684, -0.0459284633398056, 0.02275494672358036, 0.016647640615701675, -0.022279299795627594, -0.0041262367740273476, -0.02083333395421505, 0.011910198256373405, -0.02454337850213051, 0.027016742154955864, 0.021175799891352654, -0.030898021534085274, 0.05422374606132507, 0.049771688878536224, -0.09824962168931961, -0.020167427137494087, -0.03234398737549782, 0.008594939485192299, 0.0059027778916060925, -0.056887365877628326, 0.014535768888890743, 0.009018264710903168, -0.0701674297451973, -0.010473744012415409, -0.052473362535238266, 0.012119482271373272, -0.02517123334109783, 0.04292237386107445, 0.002009608084335923, 0.09231354296207428, -0.016885465011000633, 0.07073820382356644, 0.024657534435391426, -0.06575342267751694, 0.01675228402018547, 0.0020619293209165335, 0.009555745869874954, -0.021061643958091736, 0.028329528868198395, -0.06613393872976303, 0.037766363471746445, -0.004009703174233437, -0.04280821979045868, 0.0879756435751915, -0.012366819195449352, -0.037766363471746445, 0.07716894894838333, -0.037195585668087006, 0.00500380527228117, 0.05882800742983818, -0.0160197876393795, -0.015068492852151394, -0.0033961187582463026, 0.030650684610009193, -0.04550989344716072, -0.02496194839477539, -0.004818303044885397, 0.05844748765230179, -0.032001521438360214, -0.001998906023800373, 0.021594367921352386, -0.03822298347949982, -0.05445205420255661, 0.07416286319494247, 0.05601217597723007, 0.01577245071530342, 0.008685312233865261, -0.0029133372008800507, 0.01564878225326538, 0.021175799891352654, -0.018436072394251823, 0.030460426583886147, -0.047412481158971786, -0.0272450540214777, 0.034417808055877686, -0.006915905512869358, 0.04216133803129196, -0.04874429106712341, 0.05159817263484001, 0.00011623620957834646, -0.007605593651533127, 0.027149923145771027, 0.00019798801804427058, -0.011491628363728523, -0.05372907221317291, 0.0003207643749192357, -0.08211567997932434, 0.05776255577802658, 0.024486301466822624, -0.009008752182126045, 0.00042778492206707597, -0.08386605978012085, -0.07671232521533966, 0.030441399663686752, -0.007163241971284151, -0.0026707572396844625, 0.01805555634200573, 0.005855212919414043, -0.014307457953691483, 0.007743531372398138, 0.007705479394644499, 0.00703481724485755, -0.020072298124432564, 0.004616152960807085, -0.029718417674303055, 0.04101978614926338, 0.0075532724149525166, 0.04128614813089371, -0.043036527931690216, 0.08021309226751328, 0.009484399110078812, -0.006530631799250841, -0.0071917809545993805, 0.010207382030785084, 0.028748096898198128, 0.014440638944506645, -0.008204909041523933, 0.04041095823049545, -0.038869861513376236, -0.006963470485061407, -0.00042600123560987413, -0.022355403751134872, -0.032857686281204224, -0.0012925703777000308, -0.01935882866382599, 0.08386605978012085, 0.006601978559046984, -0.012385845184326172, -0.00505612650886178, 0.03689117357134819, -0.08135464042425156, 0.006083523388952017, -0.0060026636347174644, 0.024866819381713867, 0.05007610470056534, -0.042579907923936844, 0.05894216150045395, -0.037519026547670364, 0.04387366771697998, 0.02075722999870777, 0.02218417078256607, 0.008181126788258553, 0.00576008390635252, 0.07416286319494247, -0.01356544904410839, 0.028006087988615036, 0.01601027324795723, 0.005983637645840645, 0.003664859104901552, 0.021670471876859665, -0.05426179617643356, 0.0036624809727072716, 0.014840182848274708, 0.03378995507955551, -0.026046423241496086, -0.05114155262708664, -0.020395739004015923, 0.002296185353770852, -0.015068492852151394, 0.021308980882167816, 0.027149923145771027, 0.020148402079939842, 0.056354641914367676 ]
17,055
sklearn.utils._metadata_requests
set_predict_proba_request
Request metadata passed to the ``predict_proba`` 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 ``predict_proba`` 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 ``predict_proba``. - ``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 ---------- categorical_features : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``categorical_features`` parameter in ``predict_proba``. use_clipped_prediction : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``use_clipped_prediction`` parameter in ``predict_proba``. 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.tree.figs.FIGSClassifier, *, categorical_features: Union[bool, NoneType, str] = '$UNCHANGED$', use_clipped_prediction: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.tree.figs.FIGSClassifier
[ 0.04387366771697998, -0.05837138369679451, -0.01911149173974991, 0.0047279298305511475, -0.0029371194541454315, -0.017294520512223244, -0.011529680341482162, 0.009979071095585823, 0.05703957378864288, 0.010920852422714233, -0.021518263965845108, 0.006487823557108641, 0.05125570669770241, -0.005355783738195896, -0.019863013178110123, 0.03750000149011612, 0.029927700757980347, 0.023839421570301056, 0.030175037682056427, -0.033637747168540955, 0.01915905624628067, -0.04280821979045868, -0.028786148875951767, 0.01488774735480547, 0.008461757563054562, 0.06548706442117691, 0.03799467161297798, -0.04543378949165344, 0.08995433896780014, -0.0065116058103740215, -0.025228310376405716, -0.014212328940629959, 0.014649923890829086, 0.06286149471998215, 0.02895738184452057, -0.03156392648816109, -0.01078767143189907, 0.022773971781134605, -0.06255707889795303, -0.015277777798473835, -0.037157535552978516, -0.0267123281955719, 0.048630136996507645, -0.09665144234895706, 0.05943683534860611, 0.031925417482852936, -0.005393835715949535, 0.10509893298149109, -0.019206620752811432, -0.01768455095589161, 0.013165906071662903, -0.011263318359851837, 0.015039954334497452, -0.0050751520320773125, -0.005869482643902302, 0.057343989610672, 0.05563165992498398, 0.04406392574310303, 0.0594748854637146, 0.028044139966368675, 0.0272450540214777, 0.03464611992239952, 0.03236301243305206, -0.008376142010092735, -0.04353120177984238, -0.038698628544807434, -0.046385083347558975, -0.013822298496961594, 0.008647260256111622, 0.0316971093416214, 0.028671994805336, -0.01796993985772133, 0.005450913216918707, 0.02675038017332554, 0.02157534286379814, -0.02638888917863369, -0.04041095823049545, -0.052473362535238266, 0.053044140338897705, -0.04170471802353859, 0.01711377501487732, -0.017218416556715965, -0.027054794132709503, -0.08105022460222244, -0.009156202897429466, -0.032134704291820526, -0.008380898274481297, -0.049277015030384064, 0.03942161425948143, 0.003025114070624113, -0.0854642316699028, 0.05159817263484001, -0.016152968630194664, -0.0030274924356490374, 0.009503425098955631, -0.030669711530208588, 0.001832429552450776, -0.05837138369679451, 0.0024234207812696695, -0.026617199182510376, 0.000684336933773011, 0.035882800817489624, 0.06651446223258972, 0.07572298496961594, 0.037024352699518204, -0.0505707748234272, -0.016733257099986076, -0.008685312233865261, -0.011282344348728657, -0.0038218225818127394, 0.011472602374851704, -0.01082572340965271, -0.05951293930411339, 0.01907343976199627, 0.0012997051235288382, 0.0010315591935068369, -0.019672755151987076, -0.04330289363861084, -0.050875190645456314, -0.014963850378990173, -0.026845509186387062, 0.011101597920060158, -0.02536149136722088, -0.0637366846203804, 0.000734874454792589, 0.004264174494892359, 0.009598554112017155, 0.013432268053293228, 0.0448630154132843, -0.07237442582845688, -0.03156392648816109, -0.006787480786442757, -0.03896499425172806, 0.09292237460613251, 0.04402587562799454, 0.016238585114479065, 0.047526635229587555, 0.020471841096878052, -0.011900684796273708, 0.059094369411468506, -0.003039383562281728, 0.020091325044631958, 0.03679604083299637, -0.021308980882167816, -0.0013615392381325364, -0.05068493261933327, 0.02699771709740162, -0.00012247907579876482, 0.025627853348851204, -0.034132421016693115, 0.025951294228434563, -0.01829337887465954, 0.0027920471038669348, -0.012728310190141201, -0.0027421042323112488, 0.0019763128366321325, 0.02304033562541008, -0.004770738072693348, 0.011206240393221378, -0.018188737332820892, -0.004730308428406715, -0.00563641544431448, -0.012081430293619633, -0.09140030294656754, 0.03525494784116745, 0.021537290886044502, -0.006159626878798008, -0.048515982925891876, -0.03826103359460831, 0.035559359937906265, -0.060882799327373505, -0.027720700949430466, -0.03378995507955551, 0.006777968257665634, 0.03538812696933746, 0.03930745646357536, 0.01711377501487732, 0.005565068684518337, 0.008632990531623363, 0.0281392689794302, 0.013755708001554012, -0.05266362428665161, -0.08554033190011978, -0.03582572191953659, 0.0063213468529284, 0.07127092778682709, 0.006345129571855068, 0.001902587478980422, -0.043645355850458145, 0.04562404751777649, 0.029433028772473335, -0.008390410803258419, 0.053691018372774124, 0.03439878299832344, -0.03129756450653076, -0.048059359192848206, -0.059132419526576996, 0.04874429106712341, 0.013793759047985077, 0.07686453312635422, 0.05833333358168602, 0.008965943939983845, 0.01883561722934246, 0.04904870688915253, 0.006126331631094217, 0.04988584294915199, 0.03649162873625755, -0.0001691519282758236, -0.05239725857973099, -0.013051750138401985, 0.013156392611563206, -0.02659817412495613, 0.018122145906090736, -0.008442732505500317, 0.003971651662141085, -0.010911338962614536, 0.017779679968953133, -0.015610730275511742, -0.012081430293619633, -0.022850075736641884, 0.09277016669511795, 0.048135463148355484, 0.033675797283649445, 0.0197678841650486, 0.025951294228434563, -0.031107306480407715, 0.05551750212907791, -0.051902588456869125, -0.03658675774931908, -0.0790715366601944, 0.0046898783184587955, 0.0007877901662141085, 0.018692921847105026, 0.04387366771697998, -0.03468417003750801, -0.0199391171336174, 0.03614916279911995, 0.038546424359083176, -0.01346080657094717, -0.006663812790066004, -0.0059170471504330635, 0.04942922294139862, 0.05007610470056534, 0.03316210210323334, -0.05502283200621605, -0.017018646001815796, -0.004582857713103294, 0.06780821830034256, 0.04292237386107445, -0.0017908104928210378, 0.0427321158349514, -0.025837138295173645, -0.05182648450136185, -0.00278729060664773, -0.03108827956020832, -0.03407534211874008, -0.04219939187169075, 0.0002636867284309119, 0.04292237386107445, -0.015325342305004597, -0.030745813623070717, 0.012167046777904034, 0.0018847507890313864, 0.041476406157016754, 0.01810312084853649, 0.011796042323112488, 0.04318873584270477, 0.013907914981245995, -0.05566971004009247, 0.004801655188202858, -0.009522450156509876, 0.04497716948390007, -0.0015922279562801123, 0.017617959529161453, -0.01826483942568302, -0.05232115834951401, -0.00006216853216756135, -0.024372145533561707, -0.04330289363861084, -0.012300228700041771, 0.05019025877118111, -0.023592084646224976, 0.04330289363861084, 0.006045471876859665, -0.014469178393483162, -0.030669711530208588, -0.004601883701980114, 0.053576864302158356, 0.012167046777904034, -0.020928462967276573, 0.011130137369036674, 0.007700723130255938, -0.005845699924975634, -0.04261796176433563, 0.032134704291820526, -0.003467465750873089, -0.07309741526842117, 0.0012188451364636421, 0.001686168136075139, -0.011453577317297459, 0.02090943604707718, -0.0011492817429825664, -0.03300989419221878, -0.01780821941792965, 0.05281582847237587, -0.021537290886044502, 0.08105022460222244, -0.008043188601732254, -0.011710425838828087, 0.005764840170741081, 0.0038622526917606592, 0.045319635421037674, -0.03354261815547943, -0.0445205494761467, -0.0012473838869482279, -0.0027207001112401485, -0.013964992016553879, 0.018245814368128777, 0.04014459624886513, 0.10410959273576736, -0.014459664933383465, 0.04733637720346451, -0.03434170410037041, -0.0073915524408221245, -0.013936453498899937, -0.012186072766780853, -0.003517408622428775, -0.0041642882861196995, -0.038299087435007095, 0.0008763793739490211, -0.03125951439142227, -0.0039169518277049065, 0.022678842768073082, 0.02475266344845295, -0.08614916354417801, 0.03120243549346924, -0.0040786718018352985, -0.023458903655409813, 0.014573819935321808, -0.012385845184326172, 0.035026635974645615, -0.017494292929768562, -0.006216704845428467, -0.012737823650240898, -0.03643454983830452, -0.011187214404344559, 0.051940638571977615, -0.0022819158621132374, 0.07914764434099197, -0.023382799699902534, 0.021461186930537224, -0.03816590458154678, 0.05216895043849945, 0.04908675700426102, 0.0843987837433815, -0.006601978559046984, -0.013774733990430832, -0.045890409499406815, -0.007472412660717964, -0.07092846184968948, 0.028462709859013557, -0.0484398789703846, -0.0036220510955899954, 0.006140601355582476, 0.010892313905060291, -0.0009138365858234465, -0.025513699278235435, 0.0037385844625532627, 0.025837138295173645, -0.05658295378088951, 0.003436548635363579, -0.09840182960033417, -0.05437595024704933, 0.02397260256111622, 0.019206620752811432, 0.002129708882421255, -0.03999238833785057, -0.01789383590221405, -0.05068493261933327, 0.028767123818397522, 0.032134704291820526, 0.022165143862366676, -0.005070395767688751, 0.011367960833013058, 0.010350076481699944, -0.045738205313682556, 0.025761034339666367, 0.016105404123663902, 0.0384703204035759, -0.017789192497730255, 0.021879756823182106, -0.05277777835726738, -0.014307457953691483, 0.010606925003230572, -0.018978310748934746, -0.06986301392316818, 0.026274733245372772, -0.010350076481699944, 0.007253614719957113, -0.04269406571984291, 0.0544901080429554, -0.056430745869874954, 0.013061263598501682, 0.02454337850213051, 0.034455858170986176, 0.009674657136201859, 0.03826103359460831, 0.026940640062093735, 0.015610730275511742, 0.019206620752811432, -0.04893455281853676, -0.04893455281853676, 0.020072298124432564, -0.024086758494377136, -0.0016421708278357983, 0.01654299907386303, 0.028671994805336, -0.004699391312897205, 0.029394976794719696, 0.006516362074762583, 0.05612633004784584, 0.008609208278357983, 0.019463470205664635, 0.03468417003750801, 0.05167427659034729, 0.006825532764196396, -0.04512937739491463, -0.042579907923936844, -0.0026184360031038523, 0.04128614813089371, 0.008866057731211185, 0.029356924816966057, -0.041476406157016754, -0.00851407926529646, -0.036301370710134506, -0.015487062744796276, -0.05654489994049072, -0.025133181363344193, 0.013280061073601246, 0.05110350251197815, -0.056430745869874954, -0.044634703546762466, -0.01764649897813797, -0.02218417078256607, -0.042503803968429565, -0.05403348430991173, 0.01054033450782299, 0.038869861513376236, 0.056925419718027115, -0.06647640466690063, 0.05319634824991226, 0.030783865600824356, 0.005360540468245745, 0.0416666679084301, -0.023477930575609207, -0.05220700055360794, 0.035312023013830185, -0.05053272470831871, -0.006093036383390427, 0.038793761283159256, 0.034208524972200394, 0.002753995358943939, -0.06263317912817001, -0.02090943604707718, -0.027834855020046234, 0.03462709113955498, 0.01675228402018547, 0.01057838648557663, -0.06655251234769821, -0.03251522034406662, 0.03023211658000946, -0.0697869136929512, -0.028462709859013557, -0.010331050492823124, -0.023306697607040405, 0.02168949693441391, -0.013299087062478065, 0.020662100985646248, -0.0712328776717186, -0.021993910893797874, 0.017009131610393524, -0.024600457400083542, 0.040905632078647614, 0.05121765658259392, -0.01711377501487732, -0.0662480965256691, -0.013308599591255188, -0.0020167427137494087, -0.02283105067908764, -0.007534246426075697, -0.009436833672225475, 0.06503044068813324, 0.054147642105817795, 0.028082191944122314, -0.017370624467730522, 0.05319634824991226, 0.045319635421037674, 0.015477549284696579, -0.018892694264650345, -0.014355022460222244, -0.018692921847105026, -0.03304794430732727, 0.02022450603544712, 0.041933029890060425, 0.015496575273573399, -0.05007610470056534, -0.046879757195711136, -0.015839040279388428, 0.0018134036799892783, -0.007115677464753389, -0.024809740483760834, -0.0042950911447405815, -0.0048753805458545685, 0.060844749212265015, -0.00436168210580945, -0.017418188974261284, -0.07747336477041245, 0.008024162612855434, -0.05566971004009247, -0.013993531465530396, 0.06849315017461777, 0.012775875627994537, 0.053538814187049866, -0.05171233043074608, 0.011596270836889744, -0.0009239440551027656, 0.012899543158710003, -0.018721461296081543, -0.012947107665240765, 0.028976408764719963, -0.011196727864444256, -0.006188165862113237, -0.010178843513131142, 0.017342085018754005, 0.015753423795104027, 0.061453577131032944, -0.024238964542746544, -0.01150114182382822, 0.046499237418174744, 0.005336758214980364, 0.02475266344845295, 0.040220700204372406, -0.06506849080324173, 0.03165905550122261, -0.005993150640279055, -0.04387366771697998, 0.023477930575609207, -0.013470320031046867, 0.022812023758888245, -0.09140030294656754, -0.06270928680896759, 0.03848934546113014, 0.04170471802353859, 0.01552511379122734, -0.012338279746472836, 0.010312024503946304, 0.053576864302158356, -0.018150685355067253, 0.030251141637563705, 0.016390791162848473, -0.02005327306687832, -0.026864536106586456, 0.025551751255989075, 0.028995433822274208, -0.03784246742725372, 0.07735920697450638, 0.05334855243563652, 0.015591704286634922, -0.04668949916958809, -0.09429223835468292, -0.00861872173845768, 0.0075390031561255455, -0.0031892124097794294, 0.02756849303841591, -0.03571156784892082, 0.05837138369679451, 0.01703767105937004, -0.018169710412621498, -0.032743532210588455, -0.06008371338248253, 0.02675038017332554, -0.04653729125857353, 0.021784627810120583, -0.022070014849305153, -0.06738965213298798, 0.0030084664467722178, -0.014649923890829086, 0.04292237386107445, -0.016894977539777756, 0.007324961945414543, -0.03158295154571533, -0.0701293796300888, -0.03517884388566017, -0.03649162873625755, 0.024619482457637787, 0.04493911564350128, -0.055898021906614304, -0.03222983330488205, 0.034208524972200394, -0.02749238908290863, -0.040182650089263916, 0.020110350102186203, 0.01194824930280447, 0.009960046038031578, -0.007700723130255938, 0.0027611302211880684, -0.0459284633398056, 0.02275494672358036, 0.016647640615701675, -0.022279299795627594, -0.0041262367740273476, -0.02083333395421505, 0.011910198256373405, -0.02454337850213051, 0.027016742154955864, 0.021175799891352654, -0.030898021534085274, 0.05422374606132507, 0.049771688878536224, -0.09824962168931961, -0.020167427137494087, -0.03234398737549782, 0.008594939485192299, 0.0059027778916060925, -0.056887365877628326, 0.014535768888890743, 0.009018264710903168, -0.0701674297451973, -0.010473744012415409, -0.052473362535238266, 0.012119482271373272, -0.02517123334109783, 0.04292237386107445, 0.002009608084335923, 0.09231354296207428, -0.016885465011000633, 0.07073820382356644, 0.024657534435391426, -0.06575342267751694, 0.01675228402018547, 0.0020619293209165335, 0.009555745869874954, -0.021061643958091736, 0.028329528868198395, -0.06613393872976303, 0.037766363471746445, -0.004009703174233437, -0.04280821979045868, 0.0879756435751915, -0.012366819195449352, -0.037766363471746445, 0.07716894894838333, -0.037195585668087006, 0.00500380527228117, 0.05882800742983818, -0.0160197876393795, -0.015068492852151394, -0.0033961187582463026, 0.030650684610009193, -0.04550989344716072, -0.02496194839477539, -0.004818303044885397, 0.05844748765230179, -0.032001521438360214, -0.001998906023800373, 0.021594367921352386, -0.03822298347949982, -0.05445205420255661, 0.07416286319494247, 0.05601217597723007, 0.01577245071530342, 0.008685312233865261, -0.0029133372008800507, 0.01564878225326538, 0.021175799891352654, -0.018436072394251823, 0.030460426583886147, -0.047412481158971786, -0.0272450540214777, 0.034417808055877686, -0.006915905512869358, 0.04216133803129196, -0.04874429106712341, 0.05159817263484001, 0.00011623620957834646, -0.007605593651533127, 0.027149923145771027, 0.00019798801804427058, -0.011491628363728523, -0.05372907221317291, 0.0003207643749192357, -0.08211567997932434, 0.05776255577802658, 0.024486301466822624, -0.009008752182126045, 0.00042778492206707597, -0.08386605978012085, -0.07671232521533966, 0.030441399663686752, -0.007163241971284151, -0.0026707572396844625, 0.01805555634200573, 0.005855212919414043, -0.014307457953691483, 0.007743531372398138, 0.007705479394644499, 0.00703481724485755, -0.020072298124432564, 0.004616152960807085, -0.029718417674303055, 0.04101978614926338, 0.0075532724149525166, 0.04128614813089371, -0.043036527931690216, 0.08021309226751328, 0.009484399110078812, -0.006530631799250841, -0.0071917809545993805, 0.010207382030785084, 0.028748096898198128, 0.014440638944506645, -0.008204909041523933, 0.04041095823049545, -0.038869861513376236, -0.006963470485061407, -0.00042600123560987413, -0.022355403751134872, -0.032857686281204224, -0.0012925703777000308, -0.01935882866382599, 0.08386605978012085, 0.006601978559046984, -0.012385845184326172, -0.00505612650886178, 0.03689117357134819, -0.08135464042425156, 0.006083523388952017, -0.0060026636347174644, 0.024866819381713867, 0.05007610470056534, -0.042579907923936844, 0.05894216150045395, -0.037519026547670364, 0.04387366771697998, 0.02075722999870777, 0.02218417078256607, 0.008181126788258553, 0.00576008390635252, 0.07416286319494247, -0.01356544904410839, 0.028006087988615036, 0.01601027324795723, 0.005983637645840645, 0.003664859104901552, 0.021670471876859665, -0.05426179617643356, 0.0036624809727072716, 0.014840182848274708, 0.03378995507955551, -0.026046423241496086, -0.05114155262708664, -0.020395739004015923, 0.002296185353770852, -0.015068492852151394, 0.021308980882167816, 0.027149923145771027, 0.020148402079939842, 0.056354641914367676 ]
17,056
sklearn.utils._metadata_requests
set_predict_request
Request metadata passed to the ``predict`` 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 ``predict`` 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 ``predict``. - ``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 ---------- categorical_features : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``categorical_features`` parameter in ``predict``. 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.tree.figs.FIGSClassifier, *, categorical_features: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.tree.figs.FIGSClassifier
[ 0.04387366771697998, -0.05837138369679451, -0.01911149173974991, 0.0047279298305511475, -0.0029371194541454315, -0.017294520512223244, -0.011529680341482162, 0.009979071095585823, 0.05703957378864288, 0.010920852422714233, -0.021518263965845108, 0.006487823557108641, 0.05125570669770241, -0.005355783738195896, -0.019863013178110123, 0.03750000149011612, 0.029927700757980347, 0.023839421570301056, 0.030175037682056427, -0.033637747168540955, 0.01915905624628067, -0.04280821979045868, -0.028786148875951767, 0.01488774735480547, 0.008461757563054562, 0.06548706442117691, 0.03799467161297798, -0.04543378949165344, 0.08995433896780014, -0.0065116058103740215, -0.025228310376405716, -0.014212328940629959, 0.014649923890829086, 0.06286149471998215, 0.02895738184452057, -0.03156392648816109, -0.01078767143189907, 0.022773971781134605, -0.06255707889795303, -0.015277777798473835, -0.037157535552978516, -0.0267123281955719, 0.048630136996507645, -0.09665144234895706, 0.05943683534860611, 0.031925417482852936, -0.005393835715949535, 0.10509893298149109, -0.019206620752811432, -0.01768455095589161, 0.013165906071662903, -0.011263318359851837, 0.015039954334497452, -0.0050751520320773125, -0.005869482643902302, 0.057343989610672, 0.05563165992498398, 0.04406392574310303, 0.0594748854637146, 0.028044139966368675, 0.0272450540214777, 0.03464611992239952, 0.03236301243305206, -0.008376142010092735, -0.04353120177984238, -0.038698628544807434, -0.046385083347558975, -0.013822298496961594, 0.008647260256111622, 0.0316971093416214, 0.028671994805336, -0.01796993985772133, 0.005450913216918707, 0.02675038017332554, 0.02157534286379814, -0.02638888917863369, -0.04041095823049545, -0.052473362535238266, 0.053044140338897705, -0.04170471802353859, 0.01711377501487732, -0.017218416556715965, -0.027054794132709503, -0.08105022460222244, -0.009156202897429466, -0.032134704291820526, -0.008380898274481297, -0.049277015030384064, 0.03942161425948143, 0.003025114070624113, -0.0854642316699028, 0.05159817263484001, -0.016152968630194664, -0.0030274924356490374, 0.009503425098955631, -0.030669711530208588, 0.001832429552450776, -0.05837138369679451, 0.0024234207812696695, -0.026617199182510376, 0.000684336933773011, 0.035882800817489624, 0.06651446223258972, 0.07572298496961594, 0.037024352699518204, -0.0505707748234272, -0.016733257099986076, -0.008685312233865261, -0.011282344348728657, -0.0038218225818127394, 0.011472602374851704, -0.01082572340965271, -0.05951293930411339, 0.01907343976199627, 0.0012997051235288382, 0.0010315591935068369, -0.019672755151987076, -0.04330289363861084, -0.050875190645456314, -0.014963850378990173, -0.026845509186387062, 0.011101597920060158, -0.02536149136722088, -0.0637366846203804, 0.000734874454792589, 0.004264174494892359, 0.009598554112017155, 0.013432268053293228, 0.0448630154132843, -0.07237442582845688, -0.03156392648816109, -0.006787480786442757, -0.03896499425172806, 0.09292237460613251, 0.04402587562799454, 0.016238585114479065, 0.047526635229587555, 0.020471841096878052, -0.011900684796273708, 0.059094369411468506, -0.003039383562281728, 0.020091325044631958, 0.03679604083299637, -0.021308980882167816, -0.0013615392381325364, -0.05068493261933327, 0.02699771709740162, -0.00012247907579876482, 0.025627853348851204, -0.034132421016693115, 0.025951294228434563, -0.01829337887465954, 0.0027920471038669348, -0.012728310190141201, -0.0027421042323112488, 0.0019763128366321325, 0.02304033562541008, -0.004770738072693348, 0.011206240393221378, -0.018188737332820892, -0.004730308428406715, -0.00563641544431448, -0.012081430293619633, -0.09140030294656754, 0.03525494784116745, 0.021537290886044502, -0.006159626878798008, -0.048515982925891876, -0.03826103359460831, 0.035559359937906265, -0.060882799327373505, -0.027720700949430466, -0.03378995507955551, 0.006777968257665634, 0.03538812696933746, 0.03930745646357536, 0.01711377501487732, 0.005565068684518337, 0.008632990531623363, 0.0281392689794302, 0.013755708001554012, -0.05266362428665161, -0.08554033190011978, -0.03582572191953659, 0.0063213468529284, 0.07127092778682709, 0.006345129571855068, 0.001902587478980422, -0.043645355850458145, 0.04562404751777649, 0.029433028772473335, -0.008390410803258419, 0.053691018372774124, 0.03439878299832344, -0.03129756450653076, -0.048059359192848206, -0.059132419526576996, 0.04874429106712341, 0.013793759047985077, 0.07686453312635422, 0.05833333358168602, 0.008965943939983845, 0.01883561722934246, 0.04904870688915253, 0.006126331631094217, 0.04988584294915199, 0.03649162873625755, -0.0001691519282758236, -0.05239725857973099, -0.013051750138401985, 0.013156392611563206, -0.02659817412495613, 0.018122145906090736, -0.008442732505500317, 0.003971651662141085, -0.010911338962614536, 0.017779679968953133, -0.015610730275511742, -0.012081430293619633, -0.022850075736641884, 0.09277016669511795, 0.048135463148355484, 0.033675797283649445, 0.0197678841650486, 0.025951294228434563, -0.031107306480407715, 0.05551750212907791, -0.051902588456869125, -0.03658675774931908, -0.0790715366601944, 0.0046898783184587955, 0.0007877901662141085, 0.018692921847105026, 0.04387366771697998, -0.03468417003750801, -0.0199391171336174, 0.03614916279911995, 0.038546424359083176, -0.01346080657094717, -0.006663812790066004, -0.0059170471504330635, 0.04942922294139862, 0.05007610470056534, 0.03316210210323334, -0.05502283200621605, -0.017018646001815796, -0.004582857713103294, 0.06780821830034256, 0.04292237386107445, -0.0017908104928210378, 0.0427321158349514, -0.025837138295173645, -0.05182648450136185, -0.00278729060664773, -0.03108827956020832, -0.03407534211874008, -0.04219939187169075, 0.0002636867284309119, 0.04292237386107445, -0.015325342305004597, -0.030745813623070717, 0.012167046777904034, 0.0018847507890313864, 0.041476406157016754, 0.01810312084853649, 0.011796042323112488, 0.04318873584270477, 0.013907914981245995, -0.05566971004009247, 0.004801655188202858, -0.009522450156509876, 0.04497716948390007, -0.0015922279562801123, 0.017617959529161453, -0.01826483942568302, -0.05232115834951401, -0.00006216853216756135, -0.024372145533561707, -0.04330289363861084, -0.012300228700041771, 0.05019025877118111, -0.023592084646224976, 0.04330289363861084, 0.006045471876859665, -0.014469178393483162, -0.030669711530208588, -0.004601883701980114, 0.053576864302158356, 0.012167046777904034, -0.020928462967276573, 0.011130137369036674, 0.007700723130255938, -0.005845699924975634, -0.04261796176433563, 0.032134704291820526, -0.003467465750873089, -0.07309741526842117, 0.0012188451364636421, 0.001686168136075139, -0.011453577317297459, 0.02090943604707718, -0.0011492817429825664, -0.03300989419221878, -0.01780821941792965, 0.05281582847237587, -0.021537290886044502, 0.08105022460222244, -0.008043188601732254, -0.011710425838828087, 0.005764840170741081, 0.0038622526917606592, 0.045319635421037674, -0.03354261815547943, -0.0445205494761467, -0.0012473838869482279, -0.0027207001112401485, -0.013964992016553879, 0.018245814368128777, 0.04014459624886513, 0.10410959273576736, -0.014459664933383465, 0.04733637720346451, -0.03434170410037041, -0.0073915524408221245, -0.013936453498899937, -0.012186072766780853, -0.003517408622428775, -0.0041642882861196995, -0.038299087435007095, 0.0008763793739490211, -0.03125951439142227, -0.0039169518277049065, 0.022678842768073082, 0.02475266344845295, -0.08614916354417801, 0.03120243549346924, -0.0040786718018352985, -0.023458903655409813, 0.014573819935321808, -0.012385845184326172, 0.035026635974645615, -0.017494292929768562, -0.006216704845428467, -0.012737823650240898, -0.03643454983830452, -0.011187214404344559, 0.051940638571977615, -0.0022819158621132374, 0.07914764434099197, -0.023382799699902534, 0.021461186930537224, -0.03816590458154678, 0.05216895043849945, 0.04908675700426102, 0.0843987837433815, -0.006601978559046984, -0.013774733990430832, -0.045890409499406815, -0.007472412660717964, -0.07092846184968948, 0.028462709859013557, -0.0484398789703846, -0.0036220510955899954, 0.006140601355582476, 0.010892313905060291, -0.0009138365858234465, -0.025513699278235435, 0.0037385844625532627, 0.025837138295173645, -0.05658295378088951, 0.003436548635363579, -0.09840182960033417, -0.05437595024704933, 0.02397260256111622, 0.019206620752811432, 0.002129708882421255, -0.03999238833785057, -0.01789383590221405, -0.05068493261933327, 0.028767123818397522, 0.032134704291820526, 0.022165143862366676, -0.005070395767688751, 0.011367960833013058, 0.010350076481699944, -0.045738205313682556, 0.025761034339666367, 0.016105404123663902, 0.0384703204035759, -0.017789192497730255, 0.021879756823182106, -0.05277777835726738, -0.014307457953691483, 0.010606925003230572, -0.018978310748934746, -0.06986301392316818, 0.026274733245372772, -0.010350076481699944, 0.007253614719957113, -0.04269406571984291, 0.0544901080429554, -0.056430745869874954, 0.013061263598501682, 0.02454337850213051, 0.034455858170986176, 0.009674657136201859, 0.03826103359460831, 0.026940640062093735, 0.015610730275511742, 0.019206620752811432, -0.04893455281853676, -0.04893455281853676, 0.020072298124432564, -0.024086758494377136, -0.0016421708278357983, 0.01654299907386303, 0.028671994805336, -0.004699391312897205, 0.029394976794719696, 0.006516362074762583, 0.05612633004784584, 0.008609208278357983, 0.019463470205664635, 0.03468417003750801, 0.05167427659034729, 0.006825532764196396, -0.04512937739491463, -0.042579907923936844, -0.0026184360031038523, 0.04128614813089371, 0.008866057731211185, 0.029356924816966057, -0.041476406157016754, -0.00851407926529646, -0.036301370710134506, -0.015487062744796276, -0.05654489994049072, -0.025133181363344193, 0.013280061073601246, 0.05110350251197815, -0.056430745869874954, -0.044634703546762466, -0.01764649897813797, -0.02218417078256607, -0.042503803968429565, -0.05403348430991173, 0.01054033450782299, 0.038869861513376236, 0.056925419718027115, -0.06647640466690063, 0.05319634824991226, 0.030783865600824356, 0.005360540468245745, 0.0416666679084301, -0.023477930575609207, -0.05220700055360794, 0.035312023013830185, -0.05053272470831871, -0.006093036383390427, 0.038793761283159256, 0.034208524972200394, 0.002753995358943939, -0.06263317912817001, -0.02090943604707718, -0.027834855020046234, 0.03462709113955498, 0.01675228402018547, 0.01057838648557663, -0.06655251234769821, -0.03251522034406662, 0.03023211658000946, -0.0697869136929512, -0.028462709859013557, -0.010331050492823124, -0.023306697607040405, 0.02168949693441391, -0.013299087062478065, 0.020662100985646248, -0.0712328776717186, -0.021993910893797874, 0.017009131610393524, -0.024600457400083542, 0.040905632078647614, 0.05121765658259392, -0.01711377501487732, -0.0662480965256691, -0.013308599591255188, -0.0020167427137494087, -0.02283105067908764, -0.007534246426075697, -0.009436833672225475, 0.06503044068813324, 0.054147642105817795, 0.028082191944122314, -0.017370624467730522, 0.05319634824991226, 0.045319635421037674, 0.015477549284696579, -0.018892694264650345, -0.014355022460222244, -0.018692921847105026, -0.03304794430732727, 0.02022450603544712, 0.041933029890060425, 0.015496575273573399, -0.05007610470056534, -0.046879757195711136, -0.015839040279388428, 0.0018134036799892783, -0.007115677464753389, -0.024809740483760834, -0.0042950911447405815, -0.0048753805458545685, 0.060844749212265015, -0.00436168210580945, -0.017418188974261284, -0.07747336477041245, 0.008024162612855434, -0.05566971004009247, -0.013993531465530396, 0.06849315017461777, 0.012775875627994537, 0.053538814187049866, -0.05171233043074608, 0.011596270836889744, -0.0009239440551027656, 0.012899543158710003, -0.018721461296081543, -0.012947107665240765, 0.028976408764719963, -0.011196727864444256, -0.006188165862113237, -0.010178843513131142, 0.017342085018754005, 0.015753423795104027, 0.061453577131032944, -0.024238964542746544, -0.01150114182382822, 0.046499237418174744, 0.005336758214980364, 0.02475266344845295, 0.040220700204372406, -0.06506849080324173, 0.03165905550122261, -0.005993150640279055, -0.04387366771697998, 0.023477930575609207, -0.013470320031046867, 0.022812023758888245, -0.09140030294656754, -0.06270928680896759, 0.03848934546113014, 0.04170471802353859, 0.01552511379122734, -0.012338279746472836, 0.010312024503946304, 0.053576864302158356, -0.018150685355067253, 0.030251141637563705, 0.016390791162848473, -0.02005327306687832, -0.026864536106586456, 0.025551751255989075, 0.028995433822274208, -0.03784246742725372, 0.07735920697450638, 0.05334855243563652, 0.015591704286634922, -0.04668949916958809, -0.09429223835468292, -0.00861872173845768, 0.0075390031561255455, -0.0031892124097794294, 0.02756849303841591, -0.03571156784892082, 0.05837138369679451, 0.01703767105937004, -0.018169710412621498, -0.032743532210588455, -0.06008371338248253, 0.02675038017332554, -0.04653729125857353, 0.021784627810120583, -0.022070014849305153, -0.06738965213298798, 0.0030084664467722178, -0.014649923890829086, 0.04292237386107445, -0.016894977539777756, 0.007324961945414543, -0.03158295154571533, -0.0701293796300888, -0.03517884388566017, -0.03649162873625755, 0.024619482457637787, 0.04493911564350128, -0.055898021906614304, -0.03222983330488205, 0.034208524972200394, -0.02749238908290863, -0.040182650089263916, 0.020110350102186203, 0.01194824930280447, 0.009960046038031578, -0.007700723130255938, 0.0027611302211880684, -0.0459284633398056, 0.02275494672358036, 0.016647640615701675, -0.022279299795627594, -0.0041262367740273476, -0.02083333395421505, 0.011910198256373405, -0.02454337850213051, 0.027016742154955864, 0.021175799891352654, -0.030898021534085274, 0.05422374606132507, 0.049771688878536224, -0.09824962168931961, -0.020167427137494087, -0.03234398737549782, 0.008594939485192299, 0.0059027778916060925, -0.056887365877628326, 0.014535768888890743, 0.009018264710903168, -0.0701674297451973, -0.010473744012415409, -0.052473362535238266, 0.012119482271373272, -0.02517123334109783, 0.04292237386107445, 0.002009608084335923, 0.09231354296207428, -0.016885465011000633, 0.07073820382356644, 0.024657534435391426, -0.06575342267751694, 0.01675228402018547, 0.0020619293209165335, 0.009555745869874954, -0.021061643958091736, 0.028329528868198395, -0.06613393872976303, 0.037766363471746445, -0.004009703174233437, -0.04280821979045868, 0.0879756435751915, -0.012366819195449352, -0.037766363471746445, 0.07716894894838333, -0.037195585668087006, 0.00500380527228117, 0.05882800742983818, -0.0160197876393795, -0.015068492852151394, -0.0033961187582463026, 0.030650684610009193, -0.04550989344716072, -0.02496194839477539, -0.004818303044885397, 0.05844748765230179, -0.032001521438360214, -0.001998906023800373, 0.021594367921352386, -0.03822298347949982, -0.05445205420255661, 0.07416286319494247, 0.05601217597723007, 0.01577245071530342, 0.008685312233865261, -0.0029133372008800507, 0.01564878225326538, 0.021175799891352654, -0.018436072394251823, 0.030460426583886147, -0.047412481158971786, -0.0272450540214777, 0.034417808055877686, -0.006915905512869358, 0.04216133803129196, -0.04874429106712341, 0.05159817263484001, 0.00011623620957834646, -0.007605593651533127, 0.027149923145771027, 0.00019798801804427058, -0.011491628363728523, -0.05372907221317291, 0.0003207643749192357, -0.08211567997932434, 0.05776255577802658, 0.024486301466822624, -0.009008752182126045, 0.00042778492206707597, -0.08386605978012085, -0.07671232521533966, 0.030441399663686752, -0.007163241971284151, -0.0026707572396844625, 0.01805555634200573, 0.005855212919414043, -0.014307457953691483, 0.007743531372398138, 0.007705479394644499, 0.00703481724485755, -0.020072298124432564, 0.004616152960807085, -0.029718417674303055, 0.04101978614926338, 0.0075532724149525166, 0.04128614813089371, -0.043036527931690216, 0.08021309226751328, 0.009484399110078812, -0.006530631799250841, -0.0071917809545993805, 0.010207382030785084, 0.028748096898198128, 0.014440638944506645, -0.008204909041523933, 0.04041095823049545, -0.038869861513376236, -0.006963470485061407, -0.00042600123560987413, -0.022355403751134872, -0.032857686281204224, -0.0012925703777000308, -0.01935882866382599, 0.08386605978012085, 0.006601978559046984, -0.012385845184326172, -0.00505612650886178, 0.03689117357134819, -0.08135464042425156, 0.006083523388952017, -0.0060026636347174644, 0.024866819381713867, 0.05007610470056534, -0.042579907923936844, 0.05894216150045395, -0.037519026547670364, 0.04387366771697998, 0.02075722999870777, 0.02218417078256607, 0.008181126788258553, 0.00576008390635252, 0.07416286319494247, -0.01356544904410839, 0.028006087988615036, 0.01601027324795723, 0.005983637645840645, 0.003664859104901552, 0.021670471876859665, -0.05426179617643356, 0.0036624809727072716, 0.014840182848274708, 0.03378995507955551, -0.026046423241496086, -0.05114155262708664, -0.020395739004015923, 0.002296185353770852, -0.015068492852151394, 0.021308980882167816, 0.027149923145771027, 0.020148402079939842, 0.056354641914367676 ]
17,058
imodels.tree.figs
FIGSClassifierCV
null
class FIGSClassifierCV(FIGSCV): def __init__( self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring="accuracy", *args, **kwargs, ): super(FIGSClassifierCV, self).__init__( figs=FIGSClassifier, n_rules_list=n_rules_list, n_trees_list=n_trees_list, cv=cv, scoring=scoring, *args, **kwargs, )
(n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring='accuracy', *args, **kwargs)
[ -0.002216313499957323, -0.08935394883155823, -0.04826391488313675, 0.0017302116611972451, -0.05749763175845146, -0.001494929543696344, -0.0032118232920765877, -0.013859450817108154, 0.0699276328086853, 0.028145072981715202, -0.017730507999658585, 0.03952740132808685, -0.02276465855538845, 0.0010948388371616602, 0.0019854705315083265, -0.003560307202860713, 0.06737060099840164, -0.00695636123418808, 0.015155722387135029, 0.02159268595278263, -0.014179078862071037, 0.02311980165541172, -0.0663762018084526, 0.0027146232314407825, 0.03004508651793003, 0.06975006312131882, 0.0458134301006794, -0.015661800280213356, -0.005016393028199673, 0.0016969169955700636, -0.08544737845659256, 0.024469343945384026, -0.05884717404842377, 0.033276885747909546, -0.00291883060708642, -0.04378911480307579, 0.006552386097609997, 0.03137687221169472, -0.05767520144581795, 0.0978773757815361, 0.006712200120091438, -0.01650526560842991, -0.037396546453237534, -0.04684334620833397, -0.031998373568058014, 0.06119111552834511, -0.0031563322991132736, 0.03173201531171799, 0.025428229942917824, -0.06875566393136978, -0.051353659480810165, -0.0591668039560318, 0.009260350838303566, 0.004439285956323147, -0.03569185733795166, 0.08502120524644852, 0.040308717638254166, 0.020509501919150352, 0.03428904339671135, 0.003131916280835867, 0.018822573125362396, -0.010370171628892422, 0.0523480586707592, -0.027417030185461044, -0.033738572150468826, 0.015981430187821388, -0.0549406036734581, 0.010947278700768948, -0.02383008599281311, 0.023173073306679726, -0.005087421741336584, -0.04364705830812454, 0.008865253999829292, 0.0007419156609103084, 0.042936772108078, 0.027150671929121017, -0.026227300986647606, -0.016158999875187874, 0.03123481571674347, 0.015617407858371735, 0.03508811444044113, -0.01068980060517788, 0.008319221436977386, -0.049826543778181076, 0.008922964334487915, -0.04492557421326637, 0.028606759384274483, -0.050785429775714874, 0.02560580149292946, 0.05131814628839493, -0.04563586041331291, 0.002623617881909013, 0.022746901959180832, -0.008958479389548302, 0.0015970331151038408, 0.07134820520877838, 0.003933207131922245, -0.07600057870149612, -0.012536543421447277, -0.0542658306658268, -0.011240271851420403, 0.014640765264630318, -0.0012663062661886215, 0.003911010921001434, -0.05266768857836723, -0.06371263414621353, -0.03789374604821205, -0.0007130603189580142, -0.013584215193986893, -0.0036624108906835318, -0.032353516668081284, 0.041622746735811234, 0.020935673266649246, 0.07983611524105072, -0.04211994633078575, -0.04904523119330406, -0.015093572437763214, -0.017064614221453667, 0.0006292687612585723, -0.04886765778064728, -0.04272368922829628, -0.00022987177362665534, -0.009349136613309383, 0.04194237291812897, -0.002348382258787751, 0.005238357465714216, -0.0044437251053750515, 0.063108891248703, 0.004175148438662291, -0.038568515330553055, 0.0507144033908844, -0.06939491629600525, -0.06726405769586563, -0.04393117502331734, 0.03627784550189972, -0.074722059071064, 0.048086345195770264, -0.027843201532959938, 0.017774900421500206, 0.006876453757286072, 0.02299550175666809, -0.03109275922179222, 0.0017934715142473578, -0.012643086723983288, -0.019692672416567802, 0.06999865919351578, -0.008399128913879395, -0.02370578609406948, -0.023989900946617126, 0.002683548256754875, -0.016931436955928802, 0.03888814523816109, -0.0014738428872078657, -0.004186246544122696, 0.05696491524577141, -0.02699085883796215, 0.039847031235694885, -0.06591451913118362, 0.04165825992822647, 0.0076488894410431385, 0.01736648567020893, 0.005611257627606392, -0.02148614451289177, 0.020154358819127083, 0.015768343582749367, 0.020580530166625977, -0.01625666581094265, -0.04339845851063728, -0.034235771745443344, 0.048086345195770264, -0.020740343257784843, -0.06193691864609718, -0.08459503203630447, 0.01761508733034134, 0.045493803918361664, 0.02816282957792282, 0.01507581491023302, 0.04439285770058632, 0.0627182349562645, 0.045493803918361664, 0.0002971547073684633, -0.013095893897116184, -0.010352415032684803, -0.038568515330553055, 0.006201682612299919, 0.03675728663802147, 0.023670272901654243, 0.06825845688581467, -0.023972144350409508, -0.008749832399189472, 0.05266768857836723, -0.027061887085437775, -0.01608797162771225, -0.0035292322281748056, 0.060978032648563385, -0.01914220117032528, -0.001299600931815803, 0.026387115940451622, -0.01303374394774437, 0.04673680290579796, 0.04222648963332176, 0.006694443058222532, 0.020580530166625977, -0.05185085907578468, 0.0068631358444690704, 0.07983611524105072, -0.006490236148238182, -0.001337334862910211, -0.02031417191028595, -0.01665620133280754, -0.027434786781668663, 0.014898243360221386, -0.004723400343209505, 0.005380414426326752, 0.029760973528027534, -0.05082094669342041, 0.00766220735386014, -0.010645407252013683, -0.06030325964093208, 0.007626693230122328, 0.06364160031080246, 0.0035358911845833063, -0.03718345984816551, 0.014614129438996315, -0.0028744377195835114, 0.010760828852653503, 0.0666603147983551, -0.027026372030377388, 0.005646771751344204, -0.0169048011302948, -0.0516732893884182, -0.05341348797082901, 0.05082094669342041, 0.03299277275800705, -0.030080601572990417, 0.04439285770058632, 0.009491193108260632, 0.04013114422559738, -0.08012023568153381, 0.013051500543951988, 0.01832537166774273, -0.00314079481177032, -0.03689934313297272, 0.011142607778310776, -0.012181400321424007, 0.009180443361401558, 0.0013761785812675953, 0.010743072256445885, 0.01759732887148857, 0.0248777586966753, 0.011604293249547482, -0.07479309290647507, -0.05771071836352348, 0.013007108122110367, -0.0542658306658268, -0.046772316098213196, -0.07813142985105515, -0.006343739572912455, 0.050785429775714874, -0.034448858350515366, -0.010308021679520607, 0.027328243479132652, 0.013175800442695618, 0.09304743260145187, -0.05362657457590103, 0.009677642956376076, 0.0073603359051048756, -0.013877207413315773, -0.0032007251866161823, -0.011400085873901844, 0.0490807443857193, 0.04343397170305252, 0.007946321740746498, 0.02830488793551922, -0.02253381535410881, -0.013726271688938141, -0.08729411661624908, 0.024362800642848015, -0.01143560092896223, 0.001514906296506524, 0.0975932627916336, -0.04961346089839935, -0.022036615759134293, 0.02359924465417862, 0.045848943293094635, -0.009615493007004261, -0.022143159061670303, 0.0005482517881318927, -0.014631886035203934, -0.022746901959180832, -0.030684344470500946, 0.024007657542824745, 0.047376058995723724, 0.022924471646547318, 0.04826391488313675, 0.012341215275228024, 0.02042071521282196, 0.0089451614767313, -0.0007396960281766951, 0.027168430387973785, 0.04567137360572815, -0.048761118203401566, 0.016176758334040642, -0.005771071650087833, -0.013637486845254898, -0.021681472659111023, 0.03462643176317215, -0.008510110899806023, 0.010982793755829334, 0.013903843238949776, 0.0066322931088507175, 0.08175388723611832, -0.018875842913985252, 0.031536687165498734, -0.039847031235694885, 0.008669925853610039, -0.029281530529260635, -0.06708648800849915, 0.053697600960731506, -0.006241635885089636, -0.020349686965346336, -0.014063658192753792, -0.029441343620419502, -0.02336840145289898, -0.0029055126942694187, -0.03389838710427284, 0.013894964940845966, -0.010547743178904057, -0.0034559841733425856, 0.03144790232181549, -0.03341894596815109, -0.008479036390781403, 0.07134820520877838, -0.023173073306679726, -0.04471248760819435, 0.037751685827970505, 0.03077312931418419, 0.05156674608588219, 0.004701203666627407, -0.04410874471068382, 0.03254884481430054, 0.023102043196558952, -0.03073761612176895, 0.039136745035648346, -0.017233308404684067, -0.005646771751344204, -0.005016393028199673, -0.03073761612176895, 0.03309931606054306, 0.006738835945725441, -0.016709472984075546, -0.09865868836641312, 0.031181544065475464, 0.0406283438205719, 0.011027186177670956, 0.06982108950614929, 0.004576903767883778, -0.03158995881676674, 0.05518920347094536, -0.08161183446645737, 0.046204086393117905, -0.031536687165498734, -0.025339443236589432, 0.021770257502794266, 0.037964772433042526, 0.0103257792070508, -0.004852139391005039, -0.01231457944959402, 0.027559086680412292, -0.0014194616815075278, -0.004718960728496313, -0.028944144025444984, -0.031856317073106766, -0.024948786944150925, 0.03462643176317215, -0.00909165758639574, -0.06928837299346924, 0.013637486845254898, 0.016709472984075546, -0.013477671891450882, -0.0033982733730226755, 0.017730507999658585, -0.00478555029258132, 0.0008684353088028729, -0.019994543865323067, -0.0351058728992939, -0.038781601935625076, 0.05834997445344925, 0.128703773021698, 0.00870543997734785, 0.006752153858542442, 0.007546786218881607, 0.011302421800792217, -0.0415872298181057, -0.036437660455703735, -0.041977886110544205, 0.01876930147409439, -0.006325982511043549, 0.029263772070407867, -0.02232072874903679, -0.004541389644145966, -0.02276465855538845, 0.0015404322184622288, 0.00472783949226141, 0.013930479064583778, 0.0403442308306694, -0.0103257792070508, 0.04929383099079132, -0.017224429175257683, 0.0017468590522184968, 0.01755293644964695, 0.0201721154153347, -0.012154764495790005, -0.017162280157208443, -0.03789374604821205, 0.004834382329136133, 0.007560104131698608, 0.018094530329108238, -0.014276743866503239, -0.02335064485669136, 0.04119657352566719, 0.0474470891058445, 0.018591729924082756, 0.074722059071064, 0.0130870146676898, 0.013051500543951988, -0.004290570039302111, -0.01203934382647276, 0.027452543377876282, -0.033649787306785583, -0.11570554971694946, 0.052277032285928726, -0.07166783511638641, 0.004634614568203688, -0.031039487570524216, -0.044890061020851135, -0.06655377149581909, -0.0068631358444690704, -0.018467430025339127, 0.017064614221453667, -0.00800403207540512, -0.015608529560267925, 0.029672186821699142, -0.009384650737047195, 0.020988943055272102, 0.00980194378644228, -0.04169377312064171, -0.004940925166010857, -0.04084143042564392, -0.06282477080821991, -0.004656810779124498, 0.0021253081504255533, -0.0006153960130177438, 0.07500617206096649, 0.016620686277747154, -0.007111736107617617, -0.016478629782795906, -0.024362800642848015, 0.033401187509298325, -0.018573971465229988, 0.00909165758639574, -0.00742248585447669, -0.0033893948420882225, -0.0035580876283347607, -0.06083597615361214, 0.015359929762780666, 0.0685780867934227, 0.030222658067941666, -0.01914220117032528, -0.042262002825737, 0.05245460197329521, -0.0005171768134459853, 0.01784592866897583, -0.06328646093606949, -0.02018987201154232, 0.06452946364879608, 0.02677777223289013, -0.052880775183439255, -0.013095893897116184, 0.005935325287282467, 0.04929383099079132, -0.03112827241420746, 0.0022329608909785748, 0.02043847180902958, -0.002812287537381053, -0.02441607229411602, -0.04105451703071594, -0.03595821559429169, -0.04922280088067055, -0.039278801530599594, -0.01661180704832077, -0.005855418276041746, -0.008820861577987671, 0.03952740132808685, 0.04574240371584892, 0.014143564738333225, 0.0565742589533329, 0.019195472821593285, -0.007804264780133963, -0.003376076929271221, -0.012598693370819092, 0.018520701676607132, -0.04627511650323868, -0.02114875800907612, 0.03295725956559181, -0.030311444774270058, -0.027559086680412292, 0.005855418276041746, -0.023741301149129868, -0.00448811799287796, 0.012873928993940353, -0.05412377417087555, 0.04247508943080902, 0.020598286762833595, 0.04013114422559738, -0.005349339451640844, -0.025268414989113808, 0.015723951160907745, 0.014294500462710857, 0.04503211751580238, 0.023315129801630974, -0.06389020383358002, 0.01935528591275215, -0.015821615234017372, 0.05291628837585449, 0.040663860738277435, 0.04116106033325195, 0.020491743460297585, 0.06911080330610275, 0.04776671528816223, 0.01057437900453806, -0.03158995881676674, -0.021983344107866287, 0.07536131888628006, -0.03487503156065941, 0.0913427472114563, 0.021273057907819748, 0.008035107515752316, 0.025055330246686935, -0.018875842913985252, -0.004516973625868559, 0.013158043846487999, 0.036437660455703735, 0.0481218583881855, 0.004909850191324949, 0.01467627938836813, -0.02818058617413044, -0.009358014911413193, 0.015928158536553383, -0.03970497474074364, 0.02301325835287571, 0.02771890163421631, -0.029867514967918396, -0.029547886922955513, 0.05597051605582237, 0.036100272089242935, 0.008922964334487915, -0.005913129076361656, 0.01688704453408718, -0.01830761507153511, -0.011746350675821304, -0.006991875357925892, 0.07756320387125015, -0.04133863002061844, -0.010947278700768948, -0.012598693370819092, -0.009997271932661533, 0.025854401290416718, -0.07372765988111496, -0.038923658430576324, 0.02686655893921852, 0.00239277514629066, -0.008536746725440025, 0.033649787306785583, -0.0812566876411438, 0.013868329115211964, 0.005793268326669931, 0.01613236591219902, -0.03237127140164375, -0.045955486595630646, -0.06744163483381271, -0.041267603635787964, 0.04776671528816223, -0.05355554446578026, -0.008168285712599754, 0.019106686115264893, -0.018467430025339127, 0.007435803767293692, -0.0685780867934227, 0.035034842789173126, 0.014356650412082672, 0.013406643643975258, 0.002198556438088417, -0.02674225904047489, -0.05192188918590546, -0.01694919355213642, -0.05337797477841377, -0.02674225904047489, 0.011586536653339863, -0.020456230267882347, -0.040415260940790176, 0.04286574572324753, -0.014134686440229416, 0.0331881009042263, 0.02311980165541172, -0.014010386541485786, 0.012518785893917084, 0.014250108040869236, 0.005571303889155388, 0.0048876539804041386, 0.007262671831995249, 0.05660977587103844, 0.0680098608136177, -0.0008889670134522021, 0.00029687726055271924, 0.01583937183022499, -0.005642332602292299, 0.03086191602051258, 0.028677787631750107, -0.003438226878643036, -0.019923515617847443, -0.01256317924708128, -0.02654692903161049, 0.01864500157535076, -0.018289858475327492, 0.002683548256754875, -0.03359651565551758, -0.10625874996185303, -0.03182080015540123, -0.014125808142125607, 0.058634087443351746, -0.045245200395584106, 0.009491193108260632, -0.04517417401075363, 0.002945466199889779, 0.006605657283216715, 0.00920707918703556, 0.04790877550840378, -0.030329201370477676, 0.026582444086670876, -0.06101354584097862, 0.0017446393612772226, 0.002139735734090209, 0.011524386703968048, 0.01021035760641098, -0.08296137303113937, -0.058989230543375015, -0.000691418768838048, 0.07997817546129227, 0.024806730449199677, 0.012172522023320198, 0.03441334515810013, -0.04403771460056305, -0.004781111143529415, -0.0112136360257864, 0.019177714362740517, 0.04520968720316887, 0.0145519794896245, 0.03560307249426842, -0.017224429175257683, -0.07713703066110611, 0.002969882218167186, 0.06545282900333405, 0.055224716663360596, 0.0015914840623736382, 0.01830761507153511, 0.047731202095746994, -0.05529574677348137, -0.05870511755347252, 0.021397357806563377, -0.04229751601815224, 0.023386158049106598, -0.04869008809328079, 0.02102445811033249, -0.03377408906817436, -0.041019003838300705, -0.011941678822040558, 0.03508811444044113, 0.05142468959093094, 0.00859001837670803, 0.07394074648618698, 0.050678886473178864, -0.015866007655858994, -0.033649787306785583, 0.026085244491696358, -0.020473986864089966, -0.05859857425093651, 0.014108050614595413, -0.02006557211279869, -0.011036064475774765, -0.041374143213033676, -0.006086261011660099, 0.04048628732562065, -0.03194510191679001, -0.0010615442879498005, 0.042084429413080215, -0.05600603297352791, -0.05472751706838608, 0.04123208671808243, -0.03341894596815109, 0.008012911304831505, 0.02136184461414814, -0.07038931548595428, 0.06729957461357117, -0.019284257665276527, -0.0001254098315257579, -0.002774553606286645, -0.012758507393300533, 0.02088240161538124, -0.057106975466012955, -0.009393529035151005, 0.032921742647886276, 0.00031019511516205966, -0.021059973165392876, -0.007737675216048956, 0.05156674608588219, 0.05177983269095421, -0.01320243626832962, -0.0513891726732254, -0.023972144350409508, 0.05106954649090767, -0.0013062598882243037, 0.050075143575668335, 0.036331117153167725, 0.00383110367693007, -0.02407868765294552, 0.04943588748574257, 0.009171565063297749, 0.06403225660324097, -0.03920777514576912, 0.07006968557834625, -0.013717393390834332, -0.06847154349088669, -0.07163231819868088, -0.06193691864609718, -0.0348217599093914, 0.029512373730540276, -0.05117608979344368, 0.017757143825292587, 0.02592542953789234, 0.00745800044387579, -0.04229751601815224, -0.030080601572990417, -0.014187958091497421, 0.014711793512105942, 0.03050677292048931, 0.011657564900815487, 0.0248777586966753, 0.007089539431035519, 0.001868939376436174, 0.021166514605283737, 0.02090015821158886, 0.028446944430470467, -0.007546786218881607, 0.04258162900805473, -0.00745800044387579, 0.05504714697599411, -0.03824888914823532, -0.019674915820360184, -0.0415872298181057, -0.001347323297522962, -0.05447891727089882, 0.030915187671780586, 0.0048121861182153225, 0.03436007350683212, 0.04769568890333176, 0.04609754681587219, 0.018467430025339127 ]
17,059
imodels.tree.figs
__init__
null
def __init__( self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring="accuracy", *args, **kwargs, ): super(FIGSClassifierCV, self).__init__( figs=FIGSClassifier, n_rules_list=n_rules_list, n_trees_list=n_trees_list, cv=cv, scoring=scoring, *args, **kwargs, )
(self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring='accuracy', *args, **kwargs)
[ -0.019864600151777267, -0.04891948401927948, -0.04226814955472946, -0.017307769507169724, -0.05825280398130417, 0.014768820255994797, 0.005761806853115559, -0.019077884033322334, 0.05056443810462952, 0.03196931257843971, -0.02074071578681469, 0.06304462999105453, -0.02072283625602722, 0.009914420545101166, 0.017799468711018562, -0.015975715592503548, 0.06082751601934433, 0.009217103011906147, 0.01096933614462614, 0.0267304927110672, -0.021187715232372284, 0.023297546431422234, -0.05249546840786934, 0.01863088458776474, 0.030968034639954567, 0.03958616033196449, 0.05224515125155449, -0.02243931032717228, -0.015492958016693592, 0.025568297132849693, -0.08539453893899918, 0.041588712483644485, -0.05621449276804924, 0.03538437932729721, 0.0034351812209933996, -0.04562957584857941, 0.008636005222797394, 0.038191527128219604, -0.050671715289354324, 0.0979820042848587, 0.0211519543081522, -0.02957340143620968, -0.031039554625749588, -0.03711872920393944, -0.02542525716125965, 0.05514169856905937, -0.004916980396956205, 0.029787959530949593, 0.014867160469293594, -0.07845712453126907, -0.07012508064508438, -0.052853066474199295, 0.006485943682491779, 0.0018103427719324827, -0.04162447154521942, 0.08482237905263901, 0.03733329102396965, 0.012962947599589825, 0.03719025105237961, -0.008573425933718681, 0.013830124400556087, 0.0006961997132748365, 0.0401940792798996, -0.0391928032040596, -0.035098299384117126, -0.00854213535785675, -0.06987475603818893, 0.004595141392201185, -0.009905479848384857, 0.028464846312999725, 0.006655803415924311, -0.029859479516744614, 0.032684508711099625, -0.009521061554551125, 0.045164696872234344, 0.027105970308184624, -0.02438822202384472, -0.00726819084957242, 0.02340482547879219, 0.026927171275019646, 0.018809683620929718, 0.0024763699620962143, 0.008573425933718681, -0.05492714047431946, 0.003980518784373999, -0.037047211080789566, 0.023297546431422234, -0.03257722780108452, 0.012453369796276093, 0.037798166275024414, -0.04795396700501442, -0.010128979571163654, 0.017513388767838478, -0.018452085554599762, -0.004943800158798695, 0.07931536436080933, 0.013052347116172314, -0.06336646527051926, -0.0077062491327524185, -0.05328218638896942, -0.01239079050719738, -0.013347365893423557, 0.003437416162341833, 0.0003095462452620268, -0.0566793717443943, -0.06619149446487427, -0.04169599339365959, 0.004711361136287451, -0.02624773420393467, 0.001774582895450294, -0.03740480914711952, 0.03297058865427971, 0.027999967336654663, 0.08003056049346924, -0.03740480914711952, -0.037547849118709564, -0.030485277995467186, -0.022904187440872192, 0.01773688942193985, -0.04380582273006439, -0.02664109319448471, 0.011595133692026138, -0.011854392476379871, 0.04284030944108963, -0.010549157857894897, 0.003330136649310589, -0.002612704411149025, 0.05288882553577423, -0.0013242322020232677, -0.055606577545404434, 0.04716724902391434, -0.06858740746974945, -0.06147119402885437, -0.03515193983912468, 0.024853099137544632, -0.08060271292924881, 0.03354274481534958, -0.031540192663669586, 0.007227960973978043, -0.019149402156472206, 0.045236218720674515, -0.025407377630472183, 0.01936396211385727, -0.019256683066487312, -0.0193460825830698, 0.07359378039836884, -0.002959128003567457, -0.011005096137523651, -0.025389498099684715, 0.006825662683695555, -0.02000764012336731, 0.035759855061769485, -0.014831400476396084, 0.007576619274914265, 0.05278154835104942, -0.02851848490536213, 0.049598921090364456, -0.07631153613328934, 0.045808374881744385, 0.006539583671838045, 0.026694731786847115, 0.016136635094881058, -0.031397152692079544, 0.005270108580589294, 0.009610461071133614, 0.017862048000097275, -0.029019122943282127, -0.0657266154885292, -0.02680201269686222, 0.02024007774889469, -0.03339970484375954, -0.0730573832988739, -0.08868443965911865, 0.02437034249305725, 0.023690905421972275, 0.014044683426618576, 0.010817356407642365, 0.03193354979157448, 0.02639077417552471, 0.05385434255003929, 0.0015253813471645117, -0.014688360504806042, 0.006365254521369934, -0.04534349590539932, -0.006919532082974911, 0.04412766173481941, 0.017593849450349808, 0.07126939296722412, -0.029430361464619637, 0.007250310853123665, 0.05793096870183945, -0.02542525716125965, -0.02347634546458721, -0.008837154135107994, 0.0539616234600544, -0.025872256606817245, 0.005954016000032425, 0.025818616151809692, -0.0131149273365736, 0.045808374881744385, 0.04262574762105942, 0.01288248784840107, 0.029466120526194572, -0.0439131036400795, 0.02218899130821228, 0.06393862515687943, -0.020544037222862244, 0.017692189663648605, -0.012283510528504848, -0.011326934210956097, -0.005650057457387447, 0.012042131274938583, 0.00785822793841362, 0.018022967502474785, 0.02099103480577469, -0.05846736580133438, 0.00960152130573988, -0.022707508876919746, -0.05360402539372444, -0.016217093914747238, 0.057072728872299194, 0.018166007474064827, -0.027713889256119728, 0.01684289239346981, -0.017209431156516075, 0.010182619094848633, 0.04673813283443451, -0.02129499427974224, 0.0030440576374530792, 0.00878798495978117, -0.06594117730855942, -0.058932241052389145, 0.04187479242682457, 0.029662800952792168, -0.021527433767914772, 0.03483010083436966, 0.004930390045046806, 0.03282754868268967, -0.10849540680646896, 0.023941224440932274, -0.0008135367534123361, -0.006999991834163666, -0.027284769341349602, -0.014482742175459862, 0.0006023300811648369, 0.024924619123339653, 0.0016762432642281055, 0.00441410718485713, 0.00972668081521988, 0.01966792158782482, 0.014303942210972309, -0.05460530146956444, -0.050242599099874496, 0.0031423973850905895, -0.07080451399087906, -0.03645717352628708, -0.05793096870183945, -0.010477637872099876, 0.04090927541255951, -0.039729200303554535, 0.0006028888165019453, 0.022886307910084724, 0.029019122943282127, 0.076168492436409, -0.0513511523604393, 0.0076347291469573975, 0.0007587794680148363, 0.001420336775481701, -0.014840340241789818, -0.01822858676314354, 0.0413026325404644, 0.03983648121356964, 0.021813511848449707, 0.030074039474129677, -0.031218353658914566, -0.029180042445659637, -0.06619149446487427, 0.014268182218074799, -0.010799476876854897, 0.01814812608063221, 0.10885300487279892, -0.03679689019918442, -0.03254146873950958, 0.0060702357441186905, 0.05092203617095947, -0.01291824784129858, -0.010191558860242367, 0.009083003737032413, -0.027999967336654663, -0.019381841644644737, -0.029215801507234573, 0.010155798867344856, 0.05793096870183945, 0.021259235218167305, 0.04670237377285957, -0.014196663163602352, 0.02317238599061966, -0.0027803287375718355, -0.003325666533783078, 0.035116177052259445, 0.034293703734874725, -0.04477133974432945, 0.04852612316608429, -0.030753476545214653, -0.007563209626823664, -0.03733329102396965, 0.02973432093858719, -0.002979242941364646, 0.03375730291008949, 0.02453126199543476, 0.042661506682634354, 0.07759888470172882, -0.011613013222813606, 0.027231130748987198, -0.032040830701589584, -0.0023981453850865364, -0.024799460545182228, -0.06422470510005951, 0.05621449276804924, -0.0024786051362752914, -0.016941232606768608, -0.02882244437932968, -0.03368578478693962, -0.02599741518497467, -0.010128979571163654, -0.034704938530921936, 0.013937403447926044, -0.019095763564109802, -0.012909308075904846, 0.02785692736506462, -0.031468674540519714, -0.0032653219532221556, 0.05428346246480942, -0.018613005056977272, -0.04756060987710953, 0.028214527294039726, 0.027660248801112175, 0.04541501775383949, -0.002816088730469346, -0.038012728095054626, 0.024477621540427208, 0.04205359145998955, -0.021044675260782242, 0.03338182717561722, -0.017629608511924744, -0.011630892753601074, -0.00805490743368864, -0.016556812450289726, 0.020347358658909798, -0.00603447575122118, -0.0132400868460536, -0.08882748335599899, 0.031879913061857224, 0.037619367241859436, 0.022546589374542236, 0.06937412172555923, -0.0014438042417168617, -0.023529985919594765, 0.056822411715984344, -0.08882748335599899, 0.03894248232245445, -0.03604593500494957, -0.019632160663604736, 0.027821168303489685, 0.04455678164958954, 0.017388230189681053, 0.003086522687226534, -0.010477637872099876, 0.035026777535676956, -0.01700381189584732, -0.011157074943184853, -0.043197907507419586, -0.03894248232245445, -0.013213266618549824, 0.04695269092917442, -0.011362694203853607, -0.0608990341424942, 0.005775216966867447, 0.021849272772669792, -0.017772648483514786, -0.02186715230345726, 0.011040855199098587, 0.00723243085667491, 0.004845460411161184, -0.05335370451211929, -0.0401940792798996, -0.03894248232245445, 0.06955292075872421, 0.10849540680646896, 0.009610461071133614, 0.027999967336654663, 0.010674317367374897, 0.0211519543081522, -0.053246427327394485, -0.02437034249305725, -0.010674317367374897, 0.02681989222764969, -0.009123233146965504, 0.015734337270259857, -0.03452613949775696, -0.005413148086518049, -0.029466120526194572, 0.016056176275014877, 0.024263061583042145, 0.009051713161170483, 0.04942012205719948, -0.01462578121572733, 0.06222214922308922, -0.021044675260782242, -0.002559064654633403, 0.005238818936049938, 0.005667936988174915, 0.016798192635178566, -0.020043399184942245, -0.04309062659740448, 0.007885048165917397, 0.01612769439816475, 0.009378022514283657, 0.00613281549885869, -0.04781092703342438, 0.04015832021832466, 0.03407914191484451, 0.018130246549844742, 0.07030387967824936, 0.022904187440872192, 0.001601371099241078, 0.0061551653780043125, -0.020794356241822243, 0.016816072165966034, -0.036242615431547165, -0.11936639994382858, 0.03990799933671951, -0.06751460582017899, 0.001859512529335916, -0.03404338285326958, -0.03958616033196449, -0.06261550635099411, 0.004228603094816208, -0.021527433767914772, -0.004244247917085886, -0.017942508682608604, -0.00878798495978117, 0.04437798261642456, -0.011291174218058586, 0.001755585428327322, 0.019417602568864822, -0.01732565090060234, -0.008980194106698036, -0.06651332974433899, -0.05692969262599945, -0.01226563099771738, -0.004599611274898052, -0.0018684525275602937, 0.06769340485334396, 0.01627073436975479, -0.003976048901677132, -0.029770080000162125, -0.022779028862714767, 0.049849238246679306, -0.02032947726547718, 0.03368578478693962, -0.018666645511984825, 0.011764992959797382, -0.0059942458756268024, -0.07012508064508438, 0.012623229064047337, 0.05499865859746933, 0.03311362490057945, -0.006114935502409935, -0.035098299384117126, 0.04226814955472946, 0.009994879364967346, 0.02179563231766224, -0.06050567701458931, -0.0312541127204895, 0.06554781645536423, 0.05077899619936943, -0.06651332974433899, -0.013660265132784843, 0.0007727481424808502, 0.045558057725429535, -0.019381841644644737, 0.013374186120927334, 0.007938687689602375, -0.020275838673114777, -0.02705233171582222, -0.054641060531139374, -0.04226814955472946, -0.04112383350729942, -0.02567557618021965, -0.023941224440932274, -0.012086831033229828, -0.00019793638784904033, 0.029287321493029594, 0.034776460379362106, 0.01251595001667738, 0.055034417659044266, 0.01975732110440731, -0.0009593698778189719, 0.009708801284432411, -0.017862048000097275, 0.011595133692026138, -0.035348616540431976, -0.016342254355549812, 0.027284769341349602, -0.0171826109290123, -0.04430646076798439, 0.009163463488221169, -0.024084262549877167, -0.0014113967772573233, 0.025121299549937248, -0.05306762456893921, 0.04155295342206955, 0.024477621540427208, 0.029501881450414658, 0.013579805381596088, -0.01920304261147976, 0.012730509042739868, 0.008600245229899883, 0.04859764501452446, 0.03254146873950958, -0.04638053476810455, 0.026676852256059647, -0.020293718203902245, 0.05728729069232941, 0.05492714047431946, 0.04495013877749443, 0.015573417767882347, 0.061828792095184326, 0.04559381678700447, 0.018452085554599762, -0.04162447154521942, -0.041767511516809464, 0.06905227899551392, -0.04115959256887436, 0.08482237905263901, 0.031718991696834564, 0.010352478362619877, 0.03654657304286957, -0.005471257958561182, -0.006007655989378691, 0.010951455682516098, 0.04963468015193939, 0.02358362451195717, 0.01644953340291977, 0.037690889090299606, -0.02882244437932968, 0.0008124192245304585, 0.0137675441801548, -0.03679689019918442, 0.04155295342206955, 0.024173662066459656, -0.037798166275024414, -0.02195655182003975, 0.06393862515687943, 0.02268962934613228, 0.012256690301001072, -0.030878635123372078, 0.016798192635178566, -0.012247750535607338, 0.0017946978332474828, -0.021813511848449707, 0.052209388464689255, -0.02681989222764969, -0.0018550425302237272, -0.016878651455044746, -0.012748388573527336, 0.008756694383919239, -0.08239071071147919, -0.032934825867414474, 0.01158619299530983, -0.0008979076519608498, -0.021688353270292282, 0.022385669872164726, -0.08324894309043884, 0.0054354979656636715, 0.003052997635677457, 0.0010292133083567023, -0.033560626208782196, -0.03955040127038956, -0.0423039086163044, -0.04001528024673462, 0.04931284114718437, -0.05685817077755928, 0.014134082943201065, 0.031701114028692245, -0.026211975142359734, 0.010039580054581165, -0.06358102709054947, 0.02211747132241726, 0.015340978279709816, 0.02851848490536213, -0.004387287423014641, -0.015734337270259857, -0.05764488875865936, 0.006740733049809933, -0.05753760784864426, -0.028876082971692085, 0.016780313104391098, -0.011425274424254894, -0.025711337104439735, 0.03733329102396965, -0.02721325121819973, 0.050028037279844284, 0.031128954142332077, -0.0204009972512722, 0.01644953340291977, 0.014196663163602352, 0.006673682946711779, 0.010495517402887344, 0.01839844509959221, 0.05335370451211929, 0.07169850915670395, -0.027570849284529686, 0.006450184155255556, -0.008837154135107994, -0.005149419419467449, 0.030395878478884697, 0.014008923433721066, -0.0027021041605621576, -0.016100876033306122, 0.0005439409287646413, -0.00516282906755805, 0.02867940440773964, -0.01904212310910225, 0.0035134057980030775, -0.052280910313129425, -0.10685045272111893, -0.03216598927974701, -0.0033368414733558893, 0.06751460582017899, -0.04355550557374954, -0.002588119590654969, -0.03822728618979454, -0.004230837803333998, 0.017128970474004745, 0.038584884256124496, 0.032112352550029755, -0.013293726369738579, 0.009628341533243656, -0.06375982612371445, 0.00927968230098486, 0.012015311978757381, 0.004043098539113998, 0.014232423156499863, -0.08653885126113892, -0.055535055696964264, 0.0030574677512049675, 0.07101907581090927, 0.027409929782152176, 0.0016158984508365393, 0.02787480689585209, -0.0401940792798996, 0.012784148566424847, 0.0017567028990015388, 0.033346064388751984, 0.035831376910209656, 0.013597684912383556, 0.035831376910209656, -0.021241353824734688, -0.07445202022790909, 0.010155798867344856, 0.06726428866386414, 0.0492413230240345, -0.005703696981072426, 0.00919028278440237, 0.038835205137729645, -0.05574961379170418, -0.06651332974433899, 0.03465130180120468, -0.055535055696964264, 0.007464869879186153, -0.03280966728925705, 0.02762448973953724, -0.017272010445594788, -0.02349422499537468, -0.030521037057042122, 0.032773908227682114, 0.047739408910274506, 0.001566728693433106, 0.08439326286315918, 0.0460229329764843, -0.019220922142267227, -0.04770364984869957, 0.03202294930815697, -0.012766269035637379, -0.0529603473842144, 0.02438822202384472, -0.007129621226340532, 0.0026529342867434025, -0.03493737801909447, -0.004541501868516207, 0.045236218720674515, -0.02640865370631218, -0.010298838838934898, 0.04022983834147453, -0.06265126913785934, -0.039979517459869385, 0.04423494264483452, -0.026945050805807114, -0.0014069268945604563, 0.01982884109020233, -0.07134091109037399, 0.055606577545404434, -0.030395878478884697, -0.00457726139575243, -0.004465512000024319, -0.010263078846037388, 0.02714173123240471, -0.0524597093462944, -0.012283510528504848, 0.02996675856411457, 0.012569589540362358, -0.023708784952759743, -0.03372154384851456, 0.05671513080596924, 0.06930260360240936, -0.009842900559306145, -0.05578537657856941, -0.039085522294044495, 0.05907528102397919, -0.01264110952615738, 0.05639329180121422, 0.0330599881708622, 0.019399721175432205, -0.022385669872164726, 0.04688117280602455, 0.0004162670811638236, 0.07159122824668884, -0.05939712002873421, 0.08610973507165909, -0.01222987100481987, -0.04684541001915932, -0.07234218716621399, -0.050421398133039474, -0.01716473139822483, 0.0513511523604393, -0.0550701767206192, 0.020937396213412285, 0.030753476545214653, 0.008528725244104862, -0.04448525980114937, -0.020615557208657265, -0.0000018421214917907491, 0.009020423516631126, 0.035438016057014465, 0.007464869879186153, 0.010316718369722366, 0.02413790300488472, -0.006146225146949291, 0.004930390045046806, 0.01961428113281727, 0.03254146873950958, -0.00007962155359564349, 0.028804564848542213, -0.009306502528488636, 0.07051843404769897, -0.04820428416132927, -0.023673024028539658, -0.04781092703342438, 0.013409946113824844, -0.041195355355739594, 0.025228578597307205, 0.01133587397634983, 0.04090927541255951, 0.043197907507419586, 0.06758613139390945, 0.002588119590654969 ]
17,060
imodels.tree.figs
fit
null
def fit(self, X, y): self.scores_ = [] for _i, n_rules in enumerate(self.n_rules_list): est = self._figs_class(max_rules=n_rules, max_trees=self.n_trees_list[_i]) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) mean_score = np.mean(cv_scores) if len(self.scores_) == 0: self.figs = est elif mean_score > np.max(self.scores_): self.figs = est self.scores_.append(mean_score) self.figs.fit(X=X, y=y)
(self, X, y)
[ -0.004419924225658178, 0.001353458734229207, -0.03697163611650467, -0.008578775450587273, -0.023139333352446556, 0.03277614340186119, 0.002145838923752308, -0.053313907235860825, 0.053826890885829926, 0.04851382225751877, 0.023835530504584312, -0.04268776625394821, 0.03059595264494419, -0.03636704385280609, 0.02286452054977417, 0.00903679896146059, -0.016360590234398842, -0.01620486192405224, 0.00809785071760416, 0.019676677882671356, 0.008253579027950764, -0.02418362721800804, -0.0497596450150013, -0.0027779110241681337, 0.006050487048923969, -0.0241103433072567, 0.01898048259317875, -0.010562015697360039, -0.05496278777718544, 0.009366575628519058, -0.06738437712192535, 0.03585406020283699, -0.015307136811316013, -0.02680351957678795, -0.008670380339026451, -0.05298412963747978, 0.0002766746620181948, 0.01940186507999897, 0.014345288276672363, -0.01842169463634491, -0.015563629567623138, -0.006819966249167919, -0.005739031359553337, 0.028910426422953606, -0.009123822674155235, 0.039170145988464355, -0.029038673266768456, 0.09988570958375931, 0.006856607738882303, -0.06218123435974121, -0.06313392519950867, -0.07200125604867935, 0.005262686870992184, 0.026986729353666306, 0.04063582047820091, 0.05342382937669754, 0.022168325260281563, 0.0030183731578290462, 0.06991266459226608, -0.054339878261089325, 0.042541198432445526, 0.008436787873506546, -0.0030458546243608, 0.019090408459305763, -0.0008639463339932263, -0.0006108885281719267, -0.0389869399368763, 0.006751262582838535, -0.030742520466446877, 0.025063032284379005, -0.028397440910339355, 0.0005461926921270788, 0.013942227698862553, -0.0336005836725235, -0.010021548718214035, 0.0018309479346498847, -0.03264789655804634, -0.016259824857115746, 0.006810805760324001, 0.003313798224553466, -0.015188050456345081, 0.0728440135717392, -0.02359735779464245, -0.02200343646109104, -0.031347110867500305, -0.028012702241539955, 0.05444980412721634, 0.04730464145541191, 0.023450789973139763, 0.0341135710477829, 0.01876063272356987, 0.059433095157146454, 0.05056576430797577, -0.014134597033262253, -0.002656534779816866, 0.04825732856988907, -0.03535939380526543, -0.009293291717767715, -0.027921097353100777, -0.027408109977841377, -0.013071983121335506, 0.02136220410466194, 0.029460055753588676, 0.08581523597240448, -0.026656953617930412, -0.02389049157500267, -0.0037305993027985096, 0.0015412481734529138, -0.0364220067858696, 0.052287932485342026, -0.04939322546124458, -0.014757509343326092, -0.0023038568906486034, 0.043310679495334625, -0.004344350658357143, -0.036568574607372284, -0.06192474067211151, -0.025887474417686462, 0.0069619533605873585, -0.047927550971508026, -0.05239785835146904, 0.029295166954398155, -0.01200936920940876, -0.014610941521823406, -0.019823245704174042, 0.015655234456062317, 0.009064280427992344, 0.023615678772330284, 0.010094832628965378, -0.10010556131601334, 0.016891896724700928, -0.016085775569081306, -0.0162873063236475, -0.011615469120442867, 0.011102483607828617, -0.06833706796169281, 0.0017049915622919798, -0.048697032034397125, 0.012018529698252678, -0.05855369195342064, 0.043493885546922684, 0.0017725499346852303, -0.019969813525676727, -0.011505544185638428, 0.013163588009774685, 0.023524073883891106, -0.01515140850096941, 0.004124499391764402, -0.005798574071377516, 0.036568574607372284, -0.047158073633909225, -0.0001182272462756373, 0.0430908277630806, -0.014162078499794006, 0.019328581169247627, 0.015334618277847767, -0.024458441883325577, -0.012064332142472267, 0.058956753462553024, -0.02684016153216362, -0.026547027751803398, -0.033912040293216705, -0.024037059396505356, -0.003444334724918008, 0.02225993014872074, 0.06419653445482254, -0.053313907235860825, 0.005761932581663132, -0.01560027152299881, 0.018604904413223267, -0.018394213169813156, -0.09211763739585876, -0.08354344218969345, 0.013914746232330799, -0.0016923958901315928, -0.02581419050693512, 0.010946755297482014, 0.024843180552124977, -0.014308646321296692, 0.06170489266514778, -0.0014679644955322146, -0.008707022294402122, 0.0243668369948864, -0.05774756893515587, -0.06012929230928421, -0.006458127871155739, 0.014766668900847435, 0.018275126814842224, -0.0487336739897728, 0.006087129004299641, -0.03438838571310043, -0.04140530154109001, -0.01641555316746235, -0.008761984296143055, 0.022424817085266113, 0.011478062719106674, -0.012604800052940845, 0.0459122508764267, 0.03407692909240723, -0.03530443087220192, 0.01614989899098873, -0.0100032277405262, 0.06045906990766525, -0.055072713643312454, -0.008794046007096767, 0.03323416784405708, -0.06819050014019012, 0.0438603051006794, -0.034809768199920654, -0.016598762944340706, -0.027792850509285927, 0.013071983121335506, -0.071818046271801, 0.004298548214137554, 0.042248062789440155, 0.026913445442914963, 0.059433095157146454, -0.05214136466383934, -0.06291407346725464, -0.03774111345410347, -0.00805662851780653, -0.008794046007096767, -0.06778743863105774, 0.02145380899310112, -0.017020143568515778, -0.01096507627516985, 0.08838016539812088, -0.00950856227427721, 0.06496601551771164, -0.03601894900202751, 0.020995784550905228, -0.025484412908554077, 0.011807839386165142, -0.03636704385280609, -0.0024160726461559534, 0.048916883766651154, 0.00485962675884366, 0.039683133363723755, -0.045325979590415955, 0.034205175936222076, 0.013007859699428082, -0.01953011192381382, -0.03953656554222107, -0.014647583477199078, 0.011716234497725964, 0.06760422885417938, 0.008940613828599453, -0.0034374643582850695, 0.014647583477199078, 0.02401873841881752, 0.020281268283724785, 0.007983345538377762, -0.002590121468529105, -0.06555228680372238, -0.01978660374879837, -0.056611672043800354, -0.07760746031999588, 0.0077222720719873905, 0.05265435203909874, -0.010351325385272503, 0.03858387842774391, 0.09761391580104828, -0.0032382244244217873, 0.06588206440210342, -0.04752449318766594, 0.0415518693625927, 0.00558788375928998, -0.025539375841617584, -0.009261230006814003, 0.026217250153422356, -0.07680133730173111, 0.021728621795773506, 0.05701473355293274, -0.004330609925091267, -0.006128351204097271, 0.0733570009469986, -0.025704264640808105, 0.006664238404482603, 0.05521928146481514, 0.0315486416220665, 0.09732078015804291, -0.057161301374435425, -0.003284026635810733, -0.006164992693811655, 0.06562557071447372, -0.020666008815169334, -0.019823245704174042, 0.019200334325432777, -0.015307136811316013, -0.013300995342433453, -0.014372769743204117, 0.004662676714360714, 0.05961630493402481, -0.009572685696184635, 0.017157550901174545, -0.02158205583691597, 0.019328581169247627, -0.0006297819782048464, -0.0067970650270581245, 0.0241103433072567, 0.03720980882644653, 0.01885223761200905, 0.0400129109621048, 0.009746734984219074, 0.01987820863723755, -0.010562015697360039, 0.031988345086574554, -0.0200064554810524, 0.031860098242759705, -0.012311664409935474, 0.04657180234789848, 0.08794046193361282, 0.01196356676518917, -0.02414698526263237, -0.06833706796169281, 0.009348254650831223, 0.03290439024567604, -0.04008619487285614, 0.015783481299877167, -0.0009389476617798209, 0.012000208720564842, -0.023743925616145134, 0.020244628190994263, -0.03720980882644653, 0.05210472270846367, 0.035707492381334305, 0.036128874868154526, 0.0428343340754509, -0.023707283660769463, -0.03228147700428963, 0.03261125460267067, -0.06423317641019821, 0.011597148142755032, -0.011670432053506374, 0.0027160777244716883, 0.011807839386165142, 0.0011164316674694419, 0.016507158055901527, 0.03427845984697342, -0.022168325260281563, -0.0379609651863575, -0.019291939213871956, -0.047121431678533554, 0.004293967969715595, 0.007300890516489744, -0.002404622035101056, 0.00020281842444092035, -0.0008015406783670187, -0.011762036941945553, 0.05173830687999725, -0.037154845893383026, -0.010781867429614067, 0.0466817282140255, 0.012989538721740246, 0.01675448939204216, 0.029460055753588676, 0.008693281561136246, -0.025740906596183777, 0.014730027876794338, -0.08134492486715317, 0.030797483399510384, -0.023780567571520805, -0.04880695790052414, 0.054596371948719025, -0.012888774275779724, 0.03523114696145058, -0.0016019362956285477, -0.026986729353666306, 0.015178889967501163, -0.009929943829774857, -0.004713059403002262, -0.014125436544418335, -0.05954302102327347, 0.0016431583790108562, 0.013117785565555096, 0.025795869529247284, -0.006471868604421616, -0.011844481341540813, 0.09072524309158325, 0.013493364676833153, 0.03239140287041664, 0.013026180677115917, 0.00594972213730216, -0.00622911611571908, -0.0034878470469266176, -0.061558324843645096, -0.03138375282287598, -0.05375360697507858, 0.08647479116916656, -0.018009474501013756, 0.1291259080171585, -0.005903919693082571, 0.037631191313266754, -0.014391090720891953, -0.055109355598688126, -0.011560507118701935, 0.03055931068956852, 0.018815595656633377, -0.03486473113298416, 0.011084162630140781, -0.035286109894514084, -0.005349711515009403, -0.004493208136409521, 0.017469005659222603, -0.016351429745554924, 0.015508666634559631, -0.032757822424173355, 0.05859033390879631, -0.04037933051586151, 0.09270390123128891, -0.01962171494960785, 0.01536209974437952, 0.03486473113298416, 0.012476553209125996, -0.012934576719999313, -0.0025969918351620436, 0.0062565975822508335, 0.03836402669548988, 0.04213813692331314, 0.005441315937787294, -0.004449695814400911, -0.005258106626570225, 0.03495633229613304, 0.04521605372428894, -0.009183365851640701, -0.016690367832779884, -0.06767751276493073, -0.056611672043800354, -0.014501015655696392, -0.06529579311609268, -0.05782085284590721, -0.004383282270282507, -0.06855691969394684, -0.03380211442708969, -0.05349711328744888, -0.05866361781954765, -0.057454437017440796, 0.025667622685432434, -0.02597907744348049, -0.022809557616710663, -0.0027664604131132364, 0.005945141892880201, 0.07929298281669617, 0.02158205583691597, -0.009165044873952866, 0.014015511609613895, -0.03517618402838707, 0.023487431928515434, -0.11718066781759262, 0.0021080519072711468, -0.041771721094846725, 0.017807943746447563, 0.05877354368567467, 0.07200125604867935, -0.0022477491293102503, 0.0006967678782530129, -0.00554666155949235, -0.04825732856988907, 0.03684338927268982, 0.04056253656744957, 0.029460055753588676, -0.03453495353460312, 0.020464478060603142, -0.013273513875901699, -0.07441961765289307, -0.03733805567026138, 0.012348306365311146, 0.03990298509597778, 0.022589705884456635, -0.053350549191236496, 0.013154427520930767, -0.027426430955529213, 0.013438401743769646, -0.027976060286164284, -0.031988345086574554, 0.042248062789440155, 0.07973268628120422, -0.015609432011842728, 0.034260138869285583, 0.015994172543287277, 0.055329207330942154, -0.009348254650831223, 0.006444387137889862, -0.010662781074643135, 0.011615469120442867, 0.01572851836681366, -0.053533755242824554, -0.05580555275082588, -0.03638536483049393, 0.013649092987179756, -0.007580284494906664, 0.0015080415178090334, 0.0013397180009633303, -0.022516421973705292, -0.05082225799560547, -0.011762036941945553, 0.06346370279788971, 0.01440025120973587, -0.013163588009774685, -0.041222091764211655, 0.004021443892270327, -0.006247437093406916, -0.04169843718409538, 0.01769801788032055, 0.01027804147452116, 0.02367064170539379, -0.044080156832933426, 0.033179204910993576, -0.02619892917573452, 0.021343883126974106, -0.010378806851804256, -0.06588206440210342, 0.02398209646344185, 0.03407692909240723, 0.003819913836196065, -0.021746942773461342, -0.010818509384989738, 0.03228147700428963, 0.03807089105248451, 0.020153023302555084, -0.020995784550905228, -0.01756061054766178, 0.041735079139471054, -0.02145380899310112, 0.06324385106563568, 0.07511581480503082, 0.005487118382006884, 0.027499714866280556, 0.006609275471419096, -0.006609275471419096, 0.08691448718309402, -0.010030709207057953, 0.030907409265637398, 0.03059595264494419, -0.04056253656744957, 0.046608444303274155, 0.054816219955682755, -0.04953979328274727, 0.0004036329919472337, 0.008281060494482517, 0.007813876494765282, 0.004195492714643478, 0.06141175702214241, 0.05162838101387024, -0.0032290639355778694, 0.028745539486408234, -0.014858273789286613, -0.008120751939713955, 0.0200064554810524, -0.0010133764008060098, 0.009137563407421112, 0.028012702241539955, 0.003902358002960682, 0.0011181492591276765, 0.046095460653305054, 0.01314526703208685, 0.011661271564662457, 0.034260138869285583, 0.016122417524456978, -0.022553063929080963, 0.007351273205131292, -0.008473429828882217, 0.03197002410888672, -0.05569562688469887, 0.019694998860359192, -0.05785749480128288, -0.05030927434563637, 0.022937804460525513, -0.032244835048913956, -0.029588300734758377, 0.01943850703537464, 0.04679165408015251, 0.027371469885110855, -0.022626347839832306, -0.008042887784540653, 0.07445625960826874, -0.008024566806852818, -0.0330876000225544, -0.09519555419683456, -0.0013259772676974535, -0.014904076233506203, -0.07570207864046097, 0.03543267771601677, -0.07291729748249054, 0.0065176705829799175, -0.011633790098130703, -0.035835739225149155, 0.009352834895253181, -0.048916883766651154, 0.02431187406182289, -0.02863561362028122, 0.07368677854537964, -0.013236871920526028, 0.00513902073726058, 0.00012008797057205811, 0.01795451156795025, -0.041771721094846725, -0.053826890885829926, -0.04059917852282524, -0.02898371033370495, -0.007731432560831308, 0.07302722334861755, -0.027188260108232498, 0.019511790946125984, 0.01816520094871521, -0.00959100667387247, 0.00614209147170186, 0.005125280003994703, -0.016378911212086678, -0.018998803570866585, 0.001786290667951107, 0.03906022384762764, 0.06672482937574387, -0.026986729353666306, 0.02337750606238842, 0.008693281561136246, 0.015865925699472427, 0.032574612647295, -0.008707022294402122, 0.00423213467001915, 0.0731005072593689, -0.009256649762392044, -0.010259720496833324, 0.038693804293870926, -0.018577422946691513, -0.0020656848791986704, -0.02051944099366665, -0.07493260502815247, -0.020739292725920677, -0.005679488182067871, 0.02244313806295395, -0.014885755255818367, -0.01653463952243328, -0.027426430955529213, 0.012247541919350624, 0.0034145633690059185, 0.05932316929101944, -0.011267371475696564, -0.029295166954398155, -0.08134492486715317, -0.08603508770465851, -0.019859887659549713, 0.0466817282140255, 0.018705669790506363, -0.013410920277237892, -0.050272632390260696, -0.06372019648551941, 0.02423859015107155, 0.05939645320177078, -0.01395138818770647, 0.027499714866280556, -0.05397345870733261, -0.03836402669548988, -0.017588092014193535, 0.05954302102327347, 0.05954302102327347, 0.04986957088112831, -0.0048504662699997425, 0.01769801788032055, -0.03755790740251541, -0.03407692909240723, 0.006471868604421616, 0.021472129970788956, 0.0507856160402298, 0.0014851404121145606, 0.005881018470972776, 0.01842169463634491, -0.025502733886241913, -0.0341135710477829, 0.01572851836681366, -0.05012606456875801, 0.0005885598948225379, -0.02594243735074997, 0.007786395028233528, -0.04679165408015251, -0.0400129109621048, -0.03666017949581146, 0.0021653049625456333, 0.024128664284944534, 0.0056428462266922, 0.004447405692189932, 0.07152491062879562, -0.007090199738740921, 0.003577161580324173, 0.022296572104096413, 0.04855046421289444, 0.004942070692777634, 0.010891792364418507, 0.00030458546825684607, 0.01773465983569622, -0.04646187648177147, 0.02042783610522747, 0.03182345628738403, -0.03777775540947914, -0.0469382219016552, 0.002322177868336439, -0.017679696902632713, -0.03957320749759674, 0.06551564484834671, -0.006792484782636166, 0.005592464003711939, 0.01508728601038456, -0.0397564172744751, 0.004653516225516796, -0.027719566598534584, -0.0041199191473424435, -0.05543913319706917, 0.03030281700193882, -0.025832511484622955, -0.0405258983373642, -0.00518024293705821, -0.002594701712951064, -0.03253797069191933, 0.01008567214012146, 0.014757509343326092, -0.00033407070441171527, 0.06987602263689041, -0.0330876000225544, 0.00011414798063924536, 0.004200072959065437, 0.09863988310098648, 0.0346265584230423, 0.01649799756705761, 0.006302400026470423, 0.012558997608721256, 0.0505291223526001, 0.09578181803226471, -0.03920678794384003, 0.05324062332510948, -0.08596180379390717, 0.07408984005451202, -0.005514599848538637, 0.006586374249309301, -0.0025237081572413445, -0.03517618402838707, 0.007145162671804428, -0.006558892782777548, -0.0512986034154892, 0.05518263950943947, -0.006714620627462864, -0.016598762944340706, -0.0536070391535759, -0.009435278363525867, 0.007195545360445976, -0.02966158464550972, -0.04162515327334404, -0.0020782805513590574, 0.01560027152299881, 0.023175975307822227, 0.04470307007431984, 0.011386457830667496, 0.017368242144584656, 0.0341135710477829, 0.05829719826579094, 0.0487336739897728, 0.05346047133207321, 0.024037059396505356, -0.06408660858869553, 0.049173373728990555, -0.018522460013628006, 0.020189665257930756, -0.029038673266768456, -0.007099360227584839, 0.03277614340186119, 0.0054321554489433765, 0.02581419050693512, 0.04158851131796837, 0.02863561362028122 ]
17,061
imodels.tree.figs
predict
null
def predict(self, X): return self.figs.predict(X)
(self, X)
[ 0.050891902297735214, -0.0549737885594368, -0.022647883743047714, -0.0023186923936009407, 0.0041518379002809525, 0.014023253694176674, -0.020886749029159546, -0.011258105747401714, 0.12449752539396286, 0.06241335719823837, 0.049278900027275085, -0.03309948742389679, 0.028523825109004974, -0.02677914872765541, 0.014566408470273018, -0.0006156776216812432, 0.009233621880412102, 0.009562806226313114, -0.038810838013887405, 0.014928511343896389, 0.03365910053253174, -0.018549539148807526, -0.053262028843164444, -0.016245247796177864, 0.011891785077750683, -0.021446362137794495, -0.007299663498997688, -0.030679982155561447, 0.0038905476685613394, -0.01506018452346325, -0.06731820106506348, -0.01065734401345253, -0.035749420523643494, -0.006735935341566801, -0.01710112765431404, 0.008978503756225109, 0.006801771931350231, 0.015693863853812218, 0.031387727707624435, -0.04684293642640114, -0.037790365517139435, -0.06093202531337738, -0.017907628789544106, 0.005921203643083572, -0.026334749534726143, -0.001340397633612156, -0.03397182747721672, 0.019553551450371742, 0.023339170962572098, -0.05431542173027992, -0.02093612588942051, -0.020870288833975792, -0.0005107501056045294, 0.014599326997995377, 0.04911430925130844, 0.025511788204312325, 0.031387727707624435, 0.05444709584116936, 0.005378049798309803, -0.0007602101541124284, 0.06379593163728714, 0.019224366173148155, 0.02078799344599247, 0.026565179228782654, 0.013891580514609814, 0.018928101286292076, 0.05066147446632385, 0.02184138260781765, -0.03558482974767685, -0.034399766474962234, -0.011554371565580368, -0.03433392941951752, -0.013784595765173435, 0.01566917635500431, 0.026762688532471657, 0.01150499377399683, 0.041674740612506866, -0.038580406457185745, 0.025742217898368835, 0.04243186488747597, -0.05359121412038803, 0.0044151851907372475, -0.05787061154842377, -0.004180641379207373, -0.01577616110444069, -0.10178380459547043, 0.029494918882846832, -0.027700863778591156, -0.03680281341075897, 0.08078184723854065, -0.009817923419177532, 0.06827283650636673, -0.0014093206264078617, 0.03588109463453293, 0.009011422283947468, 0.01282173115760088, 0.014549949206411839, 0.022944150492548943, 0.046941690146923065, -0.021627413108944893, -0.005727807991206646, 0.05968112498521805, -0.04282688722014427, 0.060569923371076584, -0.03128897398710251, 0.019306663423776627, 0.007694684434682131, 0.03930461406707764, -0.05513838306069374, -0.011373319663107395, -0.014327749609947205, 0.07525154948234558, -0.01754552684724331, -0.003933753352612257, -0.026746230199933052, -0.05237323418259621, -0.0222199447453022, -0.004299970809370279, -0.09546346962451935, 0.005810104310512543, -0.07222305238246918, 0.03607860580086708, -0.04048967733979225, 0.0036313149612396955, -0.06392760574817657, 0.05757434666156769, 0.0436827652156353, 0.025034470483660698, -0.03976546972990036, -0.05471044033765793, 0.00722148222848773, -0.009315917268395424, -0.03380723297595978, 0.016327545046806335, 0.022351618856191635, -0.02282893657684326, 0.06119537353515625, -0.031239597126841545, 0.041674740612506866, 0.010937150567770004, 0.04213560000061989, 0.00041919571231119335, 0.04839010164141655, 0.0538545623421669, 0.011011216789484024, -0.02862258069217205, 0.034926462918519974, -0.009348835796117783, 0.014920281246304512, -0.004830780439078808, -0.004801976960152388, 0.019553551450371742, 0.05000310391187668, -0.08190107345581055, 0.03305010870099068, -0.02271372079849243, 0.002713713562116027, -0.019191449508070946, 0.035946931689977646, -0.029544297605752945, -0.05155027285218239, -0.02406337670981884, 0.0010554473847150803, -0.020804451778531075, 0.01287933811545372, 0.0365394651889801, 0.004382266663014889, 0.02854028530418873, 0.005361590534448624, 0.014401815831661224, 0.0342680923640728, -0.03151940181851387, -0.004559203516691923, 0.02617015689611435, -0.0035058134235441685, 0.015496354550123215, 0.021298227831721306, 0.05178070068359375, 0.025050930678844452, 0.05418374761939049, 0.05721224471926689, -0.021742627024650574, -0.048785123974084854, -0.03815246745944023, -0.04654666781425476, -0.05359121412038803, -0.006575457751750946, 0.043518174439668655, -0.04786340519785881, 0.005855367053300142, 0.031239597126841545, 0.009085488505661488, 0.012854649685323238, 0.005188768729567528, 0.007497173734009266, -0.02519906312227249, -0.025857431814074516, -0.01116757933050394, -0.003970786463469267, -0.04124680161476135, 0.03403766453266144, -0.04239894822239876, 0.015356450341641903, 0.0034831820521503687, -0.0651455894112587, 0.004694992210716009, -0.031470026820898056, 0.016952995210886, -0.03736242651939392, -0.09098655730485916, -0.00643143942579627, -0.006723590660840273, 0.014220764860510826, -0.04048967733979225, 0.057673100382089615, 0.03630903735756874, 0.014006794430315495, -0.026499342173337936, -0.0246723685413599, -0.048818040639162064, -0.016179410740733147, -0.0058347927406430244, -0.01593252271413803, 0.07294725626707077, 0.0008610228542238474, -0.04891679808497429, 0.05889108404517174, 0.0011655184207484126, 0.02324041724205017, -0.08038682490587234, 0.020886749029159546, -0.019339581951498985, 0.01058327779173851, -0.07070880383253098, 0.02704249508678913, 0.04164182394742966, 0.0006887154304422438, 0.008994963020086288, -0.013471870683133602, 0.03558482974767685, 0.03983130678534508, 0.017380934208631516, 0.002911224262788892, -0.0058594816364347935, 0.02538011409342289, 0.03838289901614189, 0.006238043773919344, 0.02482050098478794, -0.00911017693579197, -0.015249465592205524, 0.04282688722014427, 0.0015245351241901517, -0.0025388344656676054, -0.0024894566740840673, 0.03374139592051506, -0.07867506146430969, 0.006933445576578379, 0.008443579077720642, 0.0704454556107521, 0.05671846494078636, -0.027997130528092384, 0.013513018377125263, 0.014747459441423416, 0.06066867709159851, -0.02090320736169815, 0.021759087219834328, -0.05155027285218239, 0.01597367227077484, 0.03374139592051506, 0.004760828800499439, 0.04052259400486946, 0.0195864699780941, -0.026861444115638733, -0.07439566403627396, 0.05721224471926689, 0.029494918882846832, -0.00034795815008692443, -0.0063944063149392605, 0.020738614723086357, 0.03099270910024643, 0.03046601265668869, -0.1013229489326477, -0.016887158155441284, 0.019010396674275398, -0.01728217862546444, -0.0020059673115611076, 0.010632654651999474, 0.01144738681614399, 0.052965763956308365, -0.03130543231964111, 0.02312520146369934, 0.0704454556107521, -0.01242670975625515, -0.03446560353040695, -0.028704876080155373, -0.029725348576903343, 0.015718553215265274, -0.01826973259449005, 0.02880363166332245, 0.03295135498046875, 0.024655908346176147, -0.016014819964766502, 0.015455205924808979, -0.005213457625359297, -0.03772452846169472, 0.02078799344599247, 0.06866785883903503, -0.011891785077750683, -0.05257074162364006, -0.03446560353040695, 0.010007204487919807, 0.08670715987682343, -0.014508800581097603, -0.001042074291035533, -0.09954535216093063, -0.02421151101589203, 0.07064296305179596, 0.0214628204703331, 0.029626592993736267, 0.016615580767393112, 0.0002188561629736796, -0.009842612780630589, -0.04266229271888733, 0.007846931926906109, 0.09625350683927536, 0.023734193295240402, 0.04964100196957588, 0.006674212869256735, 0.027733782306313515, 0.011570830829441547, 0.020969044417142868, -0.04967392235994339, -0.005176424048841, 0.0369015671312809, -0.024804042652249336, 0.005736037623137236, -0.03365910053253174, 0.01991565339267254, -0.008241953328251839, -0.009859072044491768, -0.037790365517139435, -0.09954535216093063, -0.02847444824874401, 0.044834911823272705, 0.015183628536760807, 0.03551899269223213, 0.034432683140039444, 0.007122726645320654, 0.010064812377095222, 0.0647834837436676, -0.049048472195863724, 0.043518174439668655, 0.048225510865449905, 0.053262028843164444, -0.016788402572274208, 0.016088886186480522, -0.0053739347495138645, 0.010879543609917164, 0.007398418616503477, -0.04338650032877922, 0.032292988151311874, -0.05810103937983513, -0.02733876183629036, -0.011101743206381798, -0.03436684608459473, 0.00235778302885592, -0.03555191308259964, 0.03341221436858177, 0.025775136426091194, 0.03416933864355087, -0.011661356315016747, 0.03430101275444031, -0.11988894641399384, 0.04450572654604912, 0.02526490017771721, 0.02180846408009529, 0.01157905999571085, -0.028408611193299294, 0.03565066680312157, 0.041444312781095505, -0.03719783201813698, -0.0008131882641464472, -0.020574022084474564, 0.016697876155376434, 0.04309023544192314, -0.015389368869364262, 0.0163769219070673, -0.06547477096319199, 0.0689312070608139, -0.04549327865242958, 0.0006449955981224775, -0.05237323418259621, 0.015405828133225441, -0.00894558522850275, -0.05039812624454498, -0.08703634887933731, 0.007130956277251244, 0.029889941215515137, -0.0011603748425841331, 0.024162132292985916, -0.05826563388109207, 0.03196380287408829, 0.012829960323870182, -0.022302240133285522, -0.03397182747721672, 0.00004651657945942134, -0.03660530224442482, 0.031470026820898056, -0.016220560297369957, -0.010163567028939724, -0.019520632922649384, 0.06679150462150574, -0.005777185782790184, -0.05339370295405388, 0.007349040824919939, 0.052669499069452286, -0.006472587585449219, 0.005044750403612852, -0.01371052861213684, -0.012599531561136246, 0.008348938077688217, 0.019668765366077423, 0.02157803438603878, 0.025445951148867607, -0.003812366398051381, 0.037823282182216644, -0.0019288146868348122, 0.04997018724679947, 0.02835923247039318, 0.029544297605752945, -0.053525377064943314, -0.06066867709159851, -0.05813395977020264, -0.06669275462627411, -0.0042835115455091, -0.015562190674245358, -0.03400474414229393, -0.0463162399828434, -0.02775024250149727, 0.014829755760729313, 0.0019781922455877066, 0.028836550191044807, 0.06547477096319199, 0.002101636491715908, 0.00764530710875988, -0.0016222617123275995, -0.05757434666156769, -0.03719783201813698, 0.01652505435049534, -0.0722888857126236, 0.02134760655462742, -0.003402943490073085, 0.08427120000123978, 0.018648294731974602, 0.03249049559235573, -0.028408611193299294, -0.060767434537410736, -0.0915132537484169, 0.0043040853925049305, 0.04549327865242958, -0.03821830451488495, -0.021709708496928215, -0.003740357467904687, -0.044571563601493835, 0.011932933703064919, -0.06567227840423584, -0.003394713858142495, 0.00683469045907259, -0.03588109463453293, -0.040423840284347534, 0.06537601351737976, -0.03867916390299797, 0.027964212000370026, -0.010007204487919807, -0.037494100630283356, 0.04078594222664833, 0.0195864699780941, -0.00012723747931886464, 0.008674007840454578, 0.00470733642578125, 0.019191449508070946, -0.05339370295405388, -0.00425470806658268, 0.005538526922464371, -0.012624220922589302, 0.025248441845178604, -0.03309948742389679, 0.004221789538860321, -0.027733782306313515, -0.010649113915860653, -0.02722354792058468, 0.07182803004980087, 0.023289794102311134, 0.006760623771697283, -0.0274868942797184, 0.0020964930299669504, 0.07097215205430984, -0.008674007840454578, -0.02865549921989441, -0.032441120594739914, 0.002291946206241846, -0.014434734359383583, -0.005760726518929005, -0.03716491535305977, -0.03107500448822975, 0.017561985179781914, -0.01201522909104824, 0.0224009957164526, -0.006735935341566801, 0.02794775366783142, -0.022121189162135124, -0.032967813313007355, 0.040654268115758896, 0.005604363977909088, 0.030103910714387894, 0.030910411849617958, 0.004378152079880238, 0.04733671247959137, -0.06231459975242615, 0.0036806927528232336, 0.010879543609917164, -0.01660735160112381, 0.029889941215515137, -0.01965230703353882, 0.004937765654176474, 0.10494397580623627, 0.018664753064513206, -0.03300073370337486, -0.00015661974612157792, 0.05378872528672218, 0.004851354751735926, -0.02880363166332245, 0.022532669827342033, 0.06833867728710175, -0.02809588611125946, 0.03983130678534508, 0.021742627024650574, -0.025429492816329002, -0.01826973259449005, 0.009982516057789326, -0.018138058483600616, -0.0662977322936058, -0.004221789538860321, 0.050595637410879135, 0.04190516844391823, -0.02835923247039318, -0.02768440544605255, 0.0353873185813427, -0.017068209126591682, 0.010369307361543179, -0.04447280988097191, 0.011216957122087479, 0.00805678777396679, -0.0034667227882891893, 0.0734081119298935, 0.08828724920749664, 0.030186206102371216, 0.03189796581864357, -0.012105755507946014, 0.001369201228953898, -0.01859891600906849, -0.05731099843978882, 0.09809694439172745, -0.007472485303878784, -0.016673188656568527, 0.027437517419457436, -0.05131984129548073, 0.048818040639162064, -0.01938895881175995, -0.09019652009010315, 0.08492956310510635, 0.028079425916075706, 0.05444709584116936, -0.0065055061131715775, 0.007517748046666384, 0.045592036098241806, 0.03923877701163292, -0.049542248249053955, -0.06540893018245697, 0.027305843308568, -0.0319967195391655, -0.01999795064330101, 0.008739844895899296, -0.01965230703353882, -0.021215932443737984, -0.0070651196874678135, -0.02707541361451149, 0.02037651278078556, -0.025100307539105415, -0.002368069952353835, -0.061557475477457047, -0.011266334913671017, -0.003079931251704693, 0.047962162643671036, 0.02794775366783142, -0.040456756949424744, -0.029626592993736267, -0.031157299876213074, -0.021857842803001404, -0.057673100382089615, 0.024491317570209503, 0.029396163299679756, -0.0066412948071956635, 0.00601584417745471, 0.003791792318224907, -0.01623701862990856, -0.027519812807440758, 0.005736037623137236, -0.025363655760884285, -0.04753422364592552, 0.005633167456835508, -0.020392971113324165, 0.004337003920227289, -0.003697152016684413, 0.021413443610072136, 0.0006444812752306461, 0.04839010164141655, 0.03242465853691101, -0.023717733100056648, 0.05652095749974251, 0.1013229489326477, -0.05968112498521805, -0.012146903201937675, 0.0418064147233963, 0.010056582279503345, -0.011570830829441547, 0.0418064147233963, -0.05210988596081734, 0.026631014421582222, -0.0350252166390419, 0.05510546267032623, 0.019257284700870514, -0.013957417570054531, -0.06093202531337738, 0.04085177928209305, 0.040884699672460556, 0.018236814066767693, 0.022203486412763596, -0.011686044745147228, -0.04397903010249138, -0.04522993043065071, -0.0005014918278902769, -0.00431231502443552, 0.019224366173148155, 0.04569078981876373, -0.03155232220888138, -0.0387779176235199, 0.005608478561043739, 0.06231459975242615, -0.00680588698014617, 0.0013825743226334453, -0.06313756108283997, -0.0323917418718338, 0.02236807718873024, 0.030910411849617958, 0.0036169132217764854, -0.005090013146400452, 0.029758267104625702, -0.028178181499242783, -0.024639450013637543, -0.08223025500774384, 0.008089705370366573, -0.02274663932621479, 0.026746230199933052, 0.040423840284347534, 0.021857842803001404, -0.04569078981876373, -0.05260366201400757, -0.043814439326524734, -0.022088270634412766, -0.031502943485975266, 0.018467243760824203, 0.0003852485679090023, -0.030910411849617958, 0.04506533965468407, -0.06152455881237984, 0.023981081321835518, 0.0008404488326050341, 0.04908138886094093, 0.01287933811545372, -0.01905977539718151, 0.04401195049285889, 0.004271167330443859, 0.026647474616765976, 0.015315302647650242, -0.016887158155441284, 0.016409840434789658, -0.025100307539105415, -0.013266130350530148, 0.049311816692352295, -0.014072631485760212, 0.023997539654374123, 0.03999590128660202, -0.044077787548303604, -0.011472075246274471, -0.011908244341611862, -0.03344513103365898, -0.03341221436858177, 0.027437517419457436, -0.008739844895899296, 0.030861034989356995, -0.030647065490484238, -0.045098260045051575, -0.00515996478497982, -0.013562396168708801, 0.027437517419457436, -0.07538322359323502, -0.02812880463898182, 0.006838805042207241, -0.03509105369448662, -0.018961019814014435, 0.03128897398710251, 0.012994552962481976, -0.005694889463484287, 0.01996503211557865, 0.06656108051538467, -0.047205038368701935, 0.005974696483463049, -0.026877904310822487, 0.05076022818684578, -0.004933650605380535, -0.008542334660887718, 0.029050519689917564, 0.0636313408613205, -0.08756304532289505, 0.01868121325969696, 0.04990435019135475, -0.04391319304704666, -0.029857022687792778, 0.024013999849557877, -0.0038740886375308037, 0.006011729594320059, -0.029577216133475304, 0.00005172437886358239, -0.05721224471926689, -0.029807643964886665, -0.01698591373860836, -0.03811955079436302, 0.04078594222664833, -0.040654268115758896, 0.019685225561261177, -0.06274253875017166, -0.0094146728515625, -0.015323532745242119, 0.04740254953503609, -0.05263657867908478, -0.0032116048969328403, 0.016804862767457962, 0.004098345525562763, -0.004048967733979225, 0.031173760071396828, 0.07558073103427887, -0.006345028523355722, -0.0049254209734499454, 0.037296589463949203, -0.0012426709290593863, 0.027997130528092384, -0.007176219020038843, 0.03397182747721672, 0.0001308379287365824, -0.04358401149511337, -0.04417654126882553, -0.033494509756565094, -0.0263676680624485, 0.01529061421751976, 0.006719476077705622, 0.019273744896054268, 0.024606531485915184 ]
17,062
imodels.tree.figs
predict_proba
null
def predict_proba(self, X): return self.figs.predict_proba(X)
(self, X)
[ 0.04200185462832451, -0.01305463071912527, -0.0332709439098835, -0.01474071480333805, 0.019665414467453957, -0.0032678311690688133, -0.01936492510139942, -0.0515841543674469, 0.13942745327949524, 0.028730202466249466, 0.03255310654640198, -0.02744477242231369, 0.023955747485160828, 0.011026321910321712, -0.027611711993813515, -0.02777865156531334, 0.023438235744833946, -0.010834341868758202, -0.02929779514670372, 0.0350571908056736, 0.02480713650584221, 0.035023804754018784, -0.05362080782651901, -0.0023893145844340324, -0.007366183679550886, -0.02936457097530365, -0.0068611931055784225, -0.03330433368682861, 0.011977873742580414, -0.005296139977872372, -0.03318747505545616, 0.001597397611476481, -0.04951411113142967, -0.02128472365438938, 0.03689352050423622, 0.04360446706414223, 0.022186193615198135, 0.01978227309882641, 0.03979825973510742, -0.06370392441749573, -0.05719330534338951, -0.07138311862945557, -0.062134698033332825, 0.0008180011645890772, -0.009674115106463432, -0.03592527285218239, -0.02228635735809803, 0.06043191999197006, 0.00821757223457098, 0.0034264230635017157, -0.002224462339654565, -0.010608973912894726, 0.03150139003992081, 0.012161506339907646, 0.010967892594635487, 0.05953045189380646, 0.006293600425124168, 0.03689352050423622, 0.00991617701947689, -0.0298153068870306, 0.07171699404716492, 0.018213044852018356, 0.02467358484864235, -0.007725102361291647, 0.054655831307172775, -0.012804222293198109, 0.03233608603477478, -0.002268283860757947, -0.016552003100514412, -0.024690279737114906, -0.009832707233726978, -0.03499041497707367, -0.034088946878910065, 0.008856114000082016, 0.009941217489540577, 0.025625137612223625, 0.017052819952368736, -0.048111822456121445, 0.015241531655192375, 0.04741067811846733, -0.037861768156290054, -0.008451287634670734, -0.04814520850777626, -0.033504657447338104, -0.027411384508013725, -0.07952973991632462, 0.030716776847839355, -0.02565852552652359, -0.0019542297814041376, 0.05415501445531845, -0.01441518310457468, 0.06183420866727829, 0.04026568681001663, 0.06300278007984161, 0.00423816405236721, 0.003820816520601511, 0.02771187573671341, 0.03836258500814438, 0.031184205785393715, -0.03645947948098183, -0.012027955614030361, 0.037861768156290054, -0.029130857437849045, 0.03742772713303566, -0.00763745978474617, 0.04931378364562988, 0.007791878189891577, 0.05819493904709816, -0.026159342378377914, -0.0294814296066761, -0.020283089950680733, 0.04039923846721649, -0.006339509040117264, -0.026159342378377914, -0.027227751910686493, -0.0337216779589653, -0.03993181139230728, 0.008856114000082016, -0.035023804754018784, 0.02287064492702484, -0.02659338340163231, 0.05455566942691803, -0.040299076586961746, 0.00321566266939044, -0.04991476237773895, 0.029798611998558044, 0.06440506875514984, 0.038262419402599335, -0.012103077955543995, -0.022720398381352425, 0.008939583785831928, -0.0036100561264902353, -0.04383818432688713, 0.012211588211357594, 0.013931060209870338, -0.05595795437693596, 0.045006755739450455, -0.047043412923812866, 0.08079847693443298, -0.031184205785393715, 0.04847908765077591, 0.000501860398799181, 0.030733471736311913, 0.010967892594635487, 0.04009874910116196, -0.028813673183321953, 0.07832778245210648, 0.008042287081480026, 0.021268028765916824, -0.017962636426091194, 0.019999293610453606, 0.011485403403639793, 0.01976557821035385, -0.08093202859163284, 0.033621516078710556, -0.009181645698845387, -0.0006312381010502577, -0.048979904502630234, 0.03675996884703636, -0.06697592884302139, -0.02255346067249775, 0.006502274423837662, -0.012520425952970982, -0.02427293173968792, 0.017445126548409462, 0.03188535198569298, 0.005559069104492664, 0.04654259607195854, 0.03161824867129326, -0.007725102361291647, 0.032770127058029175, -0.04931378364562988, -0.008847767487168312, 0.028129221871495247, 0.020850682631134987, 0.04039923846721649, 0.015233184210956097, 0.017612066119909286, 0.016910921782255173, 0.05709313973784447, 0.05205158144235611, -0.004432230722159147, -0.02552497386932373, -0.044205449521541595, -0.02190239727497101, -0.014590469188988209, 0.02004937455058098, 0.03231939300894737, -0.040900055319070816, 0.010692443698644638, -0.027878813445568085, -0.01918129250407219, 0.02235313318669796, 0.0267937108874321, 0.016201430931687355, 0.0004700376302935183, 0.002894305158406496, 0.016426797956228256, -0.006180916912853718, -0.03939760476350784, 0.04003197327256203, -0.0437714084982872, -0.021535132080316544, 0.028880449011921883, -0.050615906715393066, -0.027361303567886353, -0.04701002314686775, -0.00008581708243582398, 0.019131209701299667, -0.09161612391471863, 0.017002737149596214, -0.011184913106262684, 0.032970454543828964, -0.051350437104701996, 0.03736095130443573, 0.05692620202898979, 0.07245153188705444, -0.019748885184526443, -0.013680651783943176, -0.020667050033807755, -0.007629112806171179, -0.018279820680618286, -0.014690632931888103, 0.05211835727095604, 0.0386296845972538, -0.041033606976270676, 0.01958194561302662, 0.029214326292276382, 0.032836902886629105, -0.05218513309955597, -0.003534933552145958, -0.00312384613789618, -0.008580665104091167, -0.06567380577325821, 0.04610855504870415, 0.04190169274806976, -0.023304685950279236, -0.007040652446448803, -0.05746040493249893, 0.03632592782378197, 0.0486794151365757, 0.022336438298225403, 0.005617497488856316, -0.004077485296875238, 0.003303305711597204, 0.0395311564207077, 0.03575833514332771, 0.020583579316735268, -0.0008117409306578338, 0.005788610316812992, 0.031250983476638794, 0.01520814374089241, -0.015258225612342358, 0.0094904825091362, -0.003036203095689416, -0.03699368238449097, 0.03095049224793911, 0.029314490035176277, 0.05799461156129837, 0.05792783573269844, -0.015391776338219643, -0.01911451667547226, -0.005087466444820166, 0.0366264171898365, 0.026209423318505287, 0.04270299896597862, -0.009532216936349869, 0.005250231828540564, 0.03545784577727318, 0.006685907486826181, 0.03956454619765282, 0.006368723232299089, -0.013722386211156845, -0.05612489581108093, 0.021468356251716614, 0.03365490213036537, -0.011385240592062473, 0.009114869870245457, 0.05535697564482689, 0.02307097055017948, 0.023171134293079376, -0.07245153188705444, 0.0016286986647173762, 0.012937773019075394, -0.009582298807799816, -0.020550191402435303, 0.022002561017870903, 0.004757761489599943, 0.05555730313062668, -0.002291237935423851, 0.012612242251634598, 0.05235207453370094, -0.006439672317355871, -0.00906478799879551, 0.028913836926221848, -0.0017079947283491492, 0.04761100560426712, -0.0016735634999349713, 0.014690632931888103, 0.008989665657281876, 0.04707679897546768, 0.00984940119087696, -0.014790795743465424, -0.040365852415561676, -0.04383818432688713, 0.03246963769197464, 0.08734248578548431, -0.021000927314162254, -0.06423813104629517, -0.020934151485562325, -0.0018300688825547695, 0.07298573106527328, 0.00932354386895895, 0.04367124289274216, -0.12273355573415756, -0.03312069922685623, 0.0647723376750946, 0.01858031190931797, 0.038329195231199265, -0.012587200850248337, -0.04106699675321579, -0.014406836591660976, 0.01636837050318718, -0.021334804594516754, 0.058628980070352554, 0.02617603726685047, 0.004853751510381699, -0.002460263669490814, -0.019014352932572365, -0.029147550463676453, 0.011268382892012596, -0.030867023393511772, -0.0018759771483018994, 0.05979755148291588, -0.0551566481590271, 0.02190239727497101, -0.012904385104775429, 0.029147550463676453, 0.00823009293526411, -0.009315196424722672, -0.04547418653964996, -0.0855395495891571, -0.03390531241893768, 0.05211835727095604, -0.0057343547232449055, -0.022787174209952354, -0.011101444251835346, 0.04160119965672493, 0.014256590977311134, 0.012779180891811848, -0.02387227863073349, 0.009824360720813274, 0.03268665820360184, 0.07165022194385529, -0.01262893620878458, -0.01786247454583645, 0.0036580509040504694, 0.017895862460136414, 0.018730556592345238, 0.003739433828741312, 0.018279820680618286, -0.03909711539745331, -0.04059956595301628, 0.015892593190073967, -0.006886234041303396, 0.009991299360990524, -0.05455566942691803, 0.05719330534338951, 0.017244799062609673, 0.018680475652217865, 0.0008232179679907858, 0.03432266041636467, -0.09375294297933578, 0.03979825973510742, -0.0038583779241889715, 0.0159677155315876, -0.010266749188303947, -0.0515841543674469, 0.032035596668720245, 0.0029694274999201298, -0.029180938377976418, -0.044873204082250595, -0.02610926143825054, 0.010992933996021748, -0.0033158259466290474, 0.021084396168589592, 0.02519109658896923, -0.0777268037199974, 0.07151667028665543, -0.051283665001392365, -0.01104301493614912, -0.0267937108874321, -0.013572141528129578, -0.008889501914381981, -0.030266042798757553, -0.059229958802461624, 0.01666051335632801, 0.01844676025211811, 0.029932163655757904, 0.013764121569693089, -0.0596306137740612, 0.005475599318742752, 0.007303581573069096, -0.027094200253486633, -0.0328202098608017, -0.05826171487569809, -0.014381795190274715, 0.048646025359630585, -0.005867905914783478, 0.017478514462709427, -0.03589188680052757, 0.06513959914445877, 0.00812993012368679, -0.06897919625043869, -0.016810758039355278, 0.06340343505144119, -0.0156338382512331, -0.016743982210755348, 0.003457724116742611, -0.029531510546803474, 0.03016587905585766, 0.01686083897948265, -0.020667050033807755, 0.006339509040117264, -0.006427151616662741, 0.03913050517439842, 0.008555623702704906, 0.03959793224930763, 0.04971443489193916, 0.03522413223981857, -0.03869646042585373, -0.04971443489193916, -0.01260389480739832, -0.06016481667757034, -0.025942321866750717, -0.035558007657527924, -0.03913050517439842, -0.00991617701947689, -0.00913156382739544, 0.0034869385417550802, 0.025608444586396217, 0.04961427301168442, 0.04928039386868477, 0.021134478971362114, 0.026693547144532204, 0.015683919191360474, -0.04073311761021614, -0.06196776032447815, 0.004077485296875238, -0.03822903335094452, 0.003739433828741312, 0.004002362489700317, 0.09361939877271652, 0.00392932677641511, 0.041534423828125, -0.007879520766437054, -0.07432124763727188, -0.09715849906206131, -0.009565604850649834, 0.03645947948098183, -0.0015379255637526512, -0.004177648574113846, 0.014557081274688244, -0.012386874295771122, 0.0011247515212744474, -0.04954749718308449, -0.009056441485881805, 0.02883036620914936, -0.0466761477291584, -0.013004548847675323, 0.02849648892879486, -0.02335476689040661, 0.012545466423034668, -0.04383818432688713, -0.02420615591108799, 0.037260785698890686, 0.020416639745235443, 0.012094731442630291, 0.05301982909440994, 0.006389590445905924, 0.007040652446448803, -0.03592527285218239, 0.015475246123969555, 0.04066634178161621, 0.00859735906124115, 0.005016517359763384, -0.024690279737114906, -0.001620351686142385, -0.03472331538796425, -0.03589188680052757, 0.00913156382739544, 0.04250267148017883, 0.02467358484864235, 0.0998295247554779, -0.04794488474726677, -0.014498652890324593, 0.092884860932827, -0.034957028925418854, -0.018363291397690773, -0.011610607616603374, 0.018012719228863716, 0.018496841192245483, -0.020850682631134987, -0.03949777036905289, -0.029982246458530426, 0.005483946297317743, -0.048045046627521515, 0.029314490035176277, -0.03699368238449097, 0.041567813605070114, -0.03689352050423622, -0.04383818432688713, 0.009941217489540577, -0.011159872636198997, 0.01117656659334898, 0.04554096236824989, 0.04894651845097542, 0.03696029633283615, -0.037861768156290054, -0.010408647358417511, 0.025975709781050682, -0.006518968380987644, 0.027394691482186317, -0.01183597557246685, 0.0003643965465016663, 0.10350218415260315, 0.04911345615983009, -0.04517369717359543, -0.00869752187281847, 0.04200185462832451, 0.013797508552670479, -0.04560773819684982, 0.037194009870290756, 0.050682682543992996, -0.03485686331987381, 0.02963167428970337, 0.009498829953372478, -0.03769482672214508, 0.013630569912493229, 0.006869540084153414, 0.020333170890808105, -0.04964765906333923, 0.027745263651013374, 0.06904597580432892, 0.05038219317793846, 0.001927102217450738, -0.03973148390650749, 0.029581591486930847, -0.048111822456121445, 0.008255134336650372, -0.027812039479613304, 0.010784259997308254, 0.0034285099245607853, 0.02004937455058098, 0.0741209164261818, 0.05665909871459007, 0.03522413223981857, 0.01316314097493887, -0.01699439063668251, 0.0030069889035075903, -0.026860486716032028, -0.0960233137011528, 0.058562204241752625, -0.03522413223981857, -0.04767778143286705, 0.03522413223981857, -0.062468577176332474, 0.08914542943239212, -0.012545466423034668, -0.06857854127883911, 0.0850721150636673, 0.01956525258719921, -0.01871386356651783, -0.02460680902004242, -0.008434593677520752, -0.017244799062609673, 0.04066634178161621, -0.05104994773864746, -0.07786035537719727, 0.013430243358016014, -0.03983164578676224, 0.0013021242339164019, -0.007641633041203022, -0.033487964421510696, -0.015258225612342358, 0.010325177572667599, -0.0701143816113472, 0.023121053352952003, 0.010116503573954105, -0.05348725989460945, -0.07398736476898193, 0.011260036379098892, -0.014857571572065353, -0.012161506339907646, 0.00788369495421648, -0.006589917466044426, -0.016518615186214447, -0.01302958931773901, -0.0267937108874321, -0.04403851181268692, 0.006180916912853718, 0.04280316084623337, 0.033638209104537964, 0.008058981038630009, 0.01699439063668251, -0.026860486716032028, -0.022453296929597855, 0.02287064492702484, 0.011401934549212456, -0.017052819952368736, 0.006765203084796667, -0.010500463657081127, -0.017094554379582405, -0.0063353353179991245, -0.02347162365913391, 0.006226825062185526, -0.012470344081521034, 0.019732190296053886, -0.012211588211357594, 0.035357680171728134, 0.04013213887810707, -0.04450593888759613, 0.026994038373231888, 0.06210131198167801, 0.0008044373244047165, -0.016977697610855103, 0.03418910875916481, -0.09081482142210007, 0.025842158123850822, -0.03353804722428322, 0.04981460049748421, 0.021384887397289276, 0.025758689269423485, -0.04463949054479599, 0.048646025359630585, 0.012470344081521034, 0.01989912986755371, 0.0300323273986578, -0.04009874910116196, -0.06931307911872864, -0.09929531812667847, -0.027327915653586388, -0.016552003100514412, -0.001882237265817821, 0.05609150603413582, -0.035023804754018784, -0.06594090908765793, 0.01757867820560932, 0.07018116116523743, -0.02988208271563053, 0.02494068816304207, -0.1127839908003807, -0.03075016476213932, 0.044138673692941666, 0.00902305357158184, -0.0034723314456641674, 0.0028004017658531666, 0.06684237718582153, -0.03582511097192764, -0.018012719228863716, -0.06510621309280396, -0.038395971059799194, -0.04557434841990471, 0.01326330378651619, 0.05906302109360695, 0.026743629947304726, -0.05542375147342682, -0.050883010029792786, -0.048579249531030655, -0.0070990812964737415, 0.008142449893057346, 0.04190169274806976, -0.018546923995018005, -0.04320381581783295, 0.06607446074485779, -0.05265256389975548, -0.012153159826993942, 0.007641633041203022, 0.028279468417167664, 0.013705692254006863, 0.01806280016899109, 0.0026084219571202993, 0.02241990901529789, -0.018997659906744957, 0.02804575301706791, -0.02659338340163231, 0.03188535198569298, 0.000532900623511523, -0.013346773572266102, 0.0357249490916729, -0.010892770253121853, -0.01641010493040085, 0.031718410551548004, -0.01911451667547226, -0.023037582635879517, -0.0005143808084540069, -0.0050499048084020615, -0.013906019739806652, 0.020199619233608246, -0.03742772713303566, 0.01117656659334898, -0.02190239727497101, -0.03599204868078232, 0.01989912986755371, -0.028930529952049255, 0.07719259709119797, -0.05418840050697327, -0.04463949054479599, -0.01844676025211811, -0.040632955729961395, -0.041233934462070465, 0.02143496833741665, 0.008213398978114128, -0.04647582024335861, 0.020182926207780838, 0.07024793326854706, -0.03565817326307297, -0.008317735977470875, -0.04146764799952507, 0.025107625871896744, -0.013321733102202415, 0.021935785189270973, 0.014915999956429005, 0.055390361696481705, -0.06730980426073074, 0.010091463103890419, 0.04660937190055847, -0.07452157139778137, -0.023054277524352074, -0.0002491043123882264, 0.01676902361214161, 0.0037936889566481113, -0.05702636390924454, -0.021017620339989662, -0.03095049224793911, -0.025174401700496674, -0.027227751910686493, -0.044405777007341385, 0.022136112675070763, -0.026610078290104866, -0.01746181957423687, -0.0451069213449955, 0.023688646033406258, -0.013655610382556915, 0.01844676025211811, -0.018029412254691124, -0.019615333527326584, -0.0012384788133203983, 0.025007463991642, -0.037928543984889984, 0.026543302461504936, 0.07986362278461456, 0.010074769146740437, -0.007649980019778013, 0.027127588167786598, -0.000307793787214905, 0.048779577016830444, -0.017495207488536835, -0.02063366211950779, -0.034890253096818924, -0.08093202859163284, 0.006214304361492395, -0.023755419999361038, 0.002270370488986373, 0.04253605753183365, -0.01819635182619095, 0.02327129803597927, 0.003639270318672061 ]
17,063
imodels.tree.figs
FIGSRegressor
null
class FIGSRegressor(FIGS, RegressorMixin): ...
(max_rules: int = 12, max_trees: int = None, min_impurity_decrease: float = 0.0, random_state=None, max_features: str = None)
[ 0.015707949176430702, -0.08220983296632767, 0.03849915787577629, 0.039453379809856415, -0.06910763680934906, -0.03508597984910011, -0.09916561096906662, 0.002438310533761978, 0.06841032207012177, 0.020662561058998108, 0.053546492010354996, 0.016588769853115082, 0.04044429957866669, 0.04492180049419403, -0.019396381452679634, 0.011101997457444668, 0.0034338203258812428, -0.01484548021107912, -0.004220594186335802, -0.05134444311261177, -0.06830021739006042, -0.009184379130601883, -0.04000389203429222, 0.006353829056024551, 0.005165640264749527, 0.08969679474830627, 0.002775499364361167, -0.01626763679087162, 0.029617559164762497, -0.01874494180083275, -0.0635291114449501, -0.054684218019247055, -0.03415010869503021, 0.013221469707787037, 0.032351769506931305, -0.029103748500347137, -0.0402974970638752, 0.04594942182302475, -0.06231798604130745, 0.09740396589040756, 0.011973641812801361, -0.015028984285891056, -0.009753242135047913, -0.03503093123435974, 0.0135242510586977, 0.03057178109884262, -0.04015069454908371, 0.01776319555938244, 0.01657041907310486, -0.013790331780910492, -0.015607022680342197, -0.030498379841446877, 0.008487064391374588, 0.042205940932035446, 0.0053858449682593346, 0.08771495521068573, 0.04389417916536331, 0.09879860281944275, 0.02424089051783085, -0.05251887068152428, 0.014285793527960777, -0.03020477294921875, 0.024222539737820625, -0.02449779585003853, 0.007078669965267181, -0.002141263335943222, -0.05864790454506874, -0.01312971767038107, 0.001568959909491241, 0.012716833502054214, -0.002780086826533079, -0.010166126303374767, -0.028277980163693428, 0.028938595205545425, 0.04506860300898552, 0.026553042232990265, 0.016708046197891235, -0.06319880485534668, 0.026332836598157883, -0.03150765225291252, 0.03181960806250572, -0.019928542897105217, -0.055675141513347626, 0.010606536641716957, -0.007303462829440832, -0.1196446642279625, 0.012973738834261894, -0.0711628869175911, -0.013102191500365734, -0.0038467044942080975, -0.07127298414707184, 0.010551485233008862, 0.033287640661001205, 0.02429594099521637, 0.026920050382614136, 0.02124977298080921, -0.025085007771849632, -0.062464792281389236, -0.027782518416643143, -0.07699831575155258, 0.002273156773298979, 0.03956348076462746, -0.046243030577898026, 0.030791984871029854, 0.01912112534046173, 0.0035324536729604006, -0.022772857919335365, -0.015836402773857117, -0.028277980163693428, -0.03765503689646721, -0.014515173621475697, 0.08206302672624588, -0.0270485021173954, 0.006353829056024551, -0.06253819167613983, -0.062134481966495514, -0.0239289328455925, 0.019359681755304337, -0.015267539769411087, -0.0192128773778677, -0.034296914935112, 0.04176552966237068, -0.031470950692892075, 0.08587991446256638, 0.024057386443018913, 0.032204966992139816, 0.052041757851839066, 0.06642848253250122, 0.010120250284671783, -0.09534872323274612, -0.00813381839543581, 0.0017398481722921133, -0.06107015907764435, -0.00758789386600256, 0.01719433255493641, 0.0352327860891819, 0.053546492010354996, -0.007987014949321747, 0.016588769853115082, 0.03532453626394272, 0.04998651146888733, 0.03816885128617287, -0.006725424900650978, 0.012368175201117992, 0.00634465366601944, 0.02994786761701107, -0.01818525418639183, 0.028773440048098564, -0.05086733400821686, -0.04961950331926346, -0.0069731553085148335, 0.02912209928035736, 0.058464400470256805, -0.02994786761701107, 0.012313123792409897, 0.008404486812651157, -0.01580887660384178, 0.03191136196255684, 0.00679882662370801, -0.010624886490404606, -0.03446206822991371, 0.00367925688624382, 0.009381646290421486, -0.03615030646324158, -0.004982135724276304, 0.007147483993321657, 0.006473106797784567, -0.06613487005233765, -0.014074763283133507, 0.0717133954167366, 0.018469685688614845, -0.09388069063425064, -0.014111463911831379, 0.017864122986793518, 0.008051241748034954, 0.036554012447595596, 0.07259421795606613, 0.05384010076522827, -0.0038352354895323515, 0.08720114082098007, 0.09923900663852692, -0.028791790828108788, -0.07123629003763199, 0.023451821878552437, 0.011955291032791138, -0.001884357538074255, -0.02725035697221756, 0.007404389791190624, 0.0014565637102350593, -0.016753923147916794, 0.07765892893075943, 0.033232588320970535, -0.017341136932373047, -0.051160939037799835, 0.004706879612058401, -0.050426922738552094, 0.005110588856041431, -0.019506484270095825, -0.0013132011517882347, 0.04796796664595604, -0.04543561115860939, 0.023598626255989075, 0.00795490201562643, 0.007220885716378689, -0.034737322479486465, 0.042095836251974106, 0.01912112534046173, -0.010863441973924637, -0.05182155221700668, -0.029232200235128403, 0.000004215755325276405, 0.01445094682276249, 0.0014359194319695234, 0.046756841242313385, 0.054537415504455566, 0.0036333808675408363, 0.014625275507569313, -0.00790443830192089, 0.0006198997143656015, 0.004000389017164707, 0.03279218077659607, -0.027268707752227783, -0.006569446064531803, -0.011276326142251492, 0.0038788176607340574, -0.011092822067439556, 0.04165542870759964, -0.03253527358174324, 0.026644794270396233, -0.06452003866434097, 0.01235899981111288, -0.0352327860891819, 0.05391350015997887, -0.004950022790580988, 0.01646949164569378, 0.021433277055621147, -0.008817370980978012, 0.0007667029858566821, 0.03181960806250572, 0.03194805979728699, -0.030388277024030685, -0.0022353092208504677, -0.06918103992938995, -0.02668149396777153, 0.002507124561816454, 0.010478083044290543, 0.012276423163712025, 0.0434170663356781, -0.016974128782749176, -0.011808487586677074, 0.02128647454082966, -0.017965050414204597, -0.04646323621273041, 0.04646323621273041, -0.033232588320970535, -0.022038841620087624, -0.017010828480124474, -0.012294773943722248, 0.05938192084431648, -0.009771592915058136, -0.013221469707787037, 0.023598626255989075, -0.032406821846961975, 0.05897821485996246, -0.03372805193066597, 0.006459343712776899, -0.016350213438272476, -0.007115371059626341, 0.012652606703341007, 0.005982233211398125, 0.13403138518333435, 0.068593829870224, -0.05101413652300835, 0.028149526566267014, 0.007156659383326769, 0.03326928988099098, -0.025984179228544235, -0.00047940443619154394, 0.017542989924550056, -0.04396757856011391, 0.052225261926651, -0.0471605509519577, 0.008542114868760109, 0.015102386474609375, 0.0024130786769092083, -0.015983205288648605, -0.01481795497238636, 0.04462819546461105, 0.006808001548051834, 0.010147775523364544, 0.01554279588162899, 0.02258935384452343, 0.03170950710773468, 0.04477499797940254, 0.06349241733551025, -0.005950119812041521, 0.009918395429849625, 0.009514686651527882, 0.009991797618567944, -0.015616198070347309, 0.033709701150655746, -0.030333224684000015, -0.0017559047555550933, 0.02679159678518772, -0.0565926618874073, -0.03508597984910011, 0.08272363990545273, 0.016102483496069908, -0.0415453240275383, 0.02336006984114647, 0.01375363115221262, 0.0635291114449501, -0.05387679859995842, 0.016460316255688667, -0.018882570788264275, -0.03165445476770401, 0.022827908396720886, -0.015166612342000008, 0.027342109009623528, 0.04117831587791443, -0.04495850205421448, 0.0014542698627337813, 0.03262702748179436, -0.054684218019247055, 0.028002724051475525, 0.02636953815817833, -0.01150570623576641, 0.008748557418584824, -0.03514103218913078, 0.04213253781199455, -0.050426922738552094, -0.020699260756373405, 0.08499909192323685, -0.003124156966805458, -0.06554765999317169, 0.014836305752396584, 0.05314278230071068, -0.002408491214737296, -0.026277784258127213, -0.03464557230472565, 0.020222149789333344, 0.00922108069062233, -0.01983679085969925, 0.05963882803916931, -0.062464792281389236, -0.010267053730785847, -0.042352743446826935, -0.02622273378074169, 0.05629905313253403, 0.01688237674534321, -0.03640720993280411, -0.018845869228243828, 0.014074763283133507, 0.05974892899394035, 0.0003744630375877023, 0.01359765324741602, -0.03734308108687401, 0.033287640661001205, 0.03699442371726036, -0.07068577408790588, -0.010624886490404606, 0.018827518448233604, -0.03670081868767738, 0.026589741930365562, 0.01952483505010605, -0.014983108267188072, -0.011680034920573235, 0.024644598364830017, 0.055198028683662415, -0.010762514546513557, 0.009542212821543217, 0.019414732232689857, -0.03666411712765694, 0.009037576615810394, -0.03394825756549835, -0.006303365342319012, 0.033030737191438675, -0.01849721185863018, -0.008413662202656269, -0.0032159090042114258, 0.0029383592773228884, 0.00815675687044859, -0.04822487384080887, -0.0022605410777032375, 0.03703112527728081, -0.018588963896036148, -0.01968998834490776, 0.03376475349068642, 0.07861314713954926, -0.04616962745785713, -0.006170324981212616, -0.03926987573504448, -0.007753047626465559, -0.008193457499146461, -0.10782700031995773, -0.0654008537530899, 0.03176455572247505, 0.024571197107434273, -0.05912501737475395, 0.00305075547657907, -0.025874076411128044, -0.03864596039056778, 0.026828298345208168, 0.0073126377537846565, 0.0692911446094513, -0.02000194601714611, 0.028222927823662758, 0.005239041522145271, 0.053693294525146484, 0.005202340893447399, 0.027121903374791145, 0.017542989924550056, -0.06595136970281601, -0.019341330975294113, -0.04462819546461105, -0.015680424869060516, -0.025066658854484558, 0.0023327956441789865, 0.003940750379115343, 0.0029016584157943726, 0.02693839929997921, 0.07274101674556732, -0.017120931297540665, 0.02739715948700905, 0.013065490871667862, 0.036810919642448425, -0.017276909202337265, 0.0026929224841296673, -0.018221955746412277, 0.027635715901851654, -0.07152989506721497, 0.00022020490723662078, -0.06819012016057968, 0.004706879612058401, 0.01756134070456028, -0.0572899766266346, -0.03424186259508133, -0.003713663900271058, -0.046610038727521896, 0.021433277055621147, 0.03688432276248932, -0.023690378293395042, 0.011065296828746796, -0.0591617189347744, 0.009367883205413818, -0.043600570410490036, 0.001209980109706521, -0.020901115611195564, -0.02636953815817833, -0.0654008537530899, 0.038976266980171204, -0.016542892903089523, 0.01668052189052105, 0.07464946061372757, 0.002729623345658183, -0.02574562281370163, 0.05798729136586189, -0.061363767832517624, 0.003922400064766407, -0.03108559176325798, -0.05813409388065338, 0.016102483496069908, -0.01642361655831337, 0.0004418434400577098, 0.012652606703341007, -0.007028206717222929, 0.056702762842178345, 0.001869447878561914, -0.011624983511865139, -0.011514881625771523, 0.048628583550453186, -0.00445456150919199, -0.024736350402235985, -0.08331085741519928, -0.05776708573102951, 0.08698093891143799, -0.02594747766852379, 0.025525419041514397, -0.0008819664944894612, -0.014212391339242458, 0.04616962745785713, -0.04037090018391609, -0.005940944887697697, 0.06488704681396484, 0.021121321246027946, -0.02025885134935379, 0.006473106797784567, -0.033911556005477905, -0.03978368639945984, 0.023763779550790787, -0.00556934904307127, 0.003163151675835252, -0.007684233598411083, 0.07868655025959015, 0.003376475302502513, 0.033434443175792694, 0.022002140060067177, 0.0003586931561585516, 0.023708727210760117, -0.01757051609456539, 0.014359194785356522, -0.007000681012868881, -0.06055634841322899, -0.0138545585796237, 0.014019711874425411, -0.017029179260134697, -0.027782518416643143, 0.03684762120246887, -0.019855141639709473, 0.0048903836868703365, -0.014294967986643314, 0.006922691594809294, 0.01432249415665865, 0.04580261930823326, 0.028369732201099396, -0.05703306943178177, -0.01698330231010914, 0.03824225068092346, -0.03306743502616882, 0.02429594099521637, 0.02807612530887127, 0.005183990579098463, 0.012661782093346119, -0.014019711874425411, 0.039857085794210434, 0.039343275129795074, 0.03077363595366478, 0.017854947596788406, 0.049032293260097504, 0.028993645682930946, 0.020424004644155502, 0.0038788176607340574, 0.0041242544539272785, 0.05787719041109085, -0.007266761735081673, 0.03824225068092346, -0.018038451671600342, -0.04807807132601738, -0.015221663750708103, -0.044371288269758224, -0.027654066681861877, 0.030424976721405983, 0.05527143180370331, 0.023745428770780563, 0.008872422389686108, -0.03719627857208252, -0.0007970958831720054, -0.020167099311947823, -0.001878623035736382, -0.018524738028645515, -0.04117831587791443, -0.010212002322077751, -0.008982525207102299, 0.03314083814620972, 0.045252107083797455, 0.025672221556305885, -0.021066268905997276, 0.07211710512638092, -0.015607022680342197, 0.020277202129364014, -0.05057372525334358, -0.012652606703341007, 0.11443314701318741, 0.014808779582381248, -0.04455479234457016, 0.01963493786752224, 0.005523473024368286, 0.05072052776813507, -0.09527532011270523, -0.007936552166938782, -0.019506484270095825, -0.0012719127116724849, 0.014441771432757378, 0.042205940932035446, -0.047637660056352615, 0.016047433018684387, 0.014606925658881664, -0.0185522623360157, -0.05930852144956589, -0.049913112074136734, -0.04246284440159798, -0.02440604381263256, -0.026075931265950203, -0.03640720993280411, -0.0001452262804377824, -0.015065685845911503, -0.03849915787577629, 0.04884878918528557, -0.06892413645982742, 0.008427425287663937, 0.022497601807117462, 0.03268207609653473, -0.007950314320623875, -0.04881208762526512, 0.004780281335115433, -0.03912306949496269, -0.06683218479156494, -0.04396757856011391, -0.016708046197891235, 0.006569446064531803, -0.03532453626394272, 0.022938011214137077, 0.05251887068152428, -0.05101413652300835, 0.02170853316783905, -0.01864401437342167, -0.010111074894666672, 0.00367237557657063, -0.024534495547413826, -0.06782311201095581, -0.02315821498632431, 0.03332434222102165, 0.024956556037068367, 0.009211905300617218, 0.009055926464498043, -0.009496336802840233, -0.07006186246871948, 0.02528686262667179, 0.029764363542199135, -0.004667885135859251, 0.0020242794416844845, -0.02537861466407776, -0.0220204908400774, 0.04327026382088661, -0.007239236030727625, 0.038572557270526886, 0.04015069454908371, -0.07956737279891968, 0.007491554133594036, -0.038572557270526886, -0.004385747481137514, -0.02156173065304756, 0.04646323621273041, -0.06411632895469666, 0.05134444311261177, -0.022295746952295303, -0.01044138241559267, 0.06264829635620117, -0.034884124994277954, -0.040958113968372345, -0.022515950724482536, -0.013909609988331795, -0.01491888239979744, -0.012386525981128216, -0.013102191500365734, -0.04484839737415314, -0.04073790833353996, -0.042976658791303635, 0.05439061298966408, -0.016542892903089523, -0.017084229737520218, 0.08639372140169144, -0.05149124562740326, 0.012147970497608185, 0.0229563619941473, 0.008647629991173744, 0.019341330975294113, -0.04040759801864624, 0.03136084973812103, 0.0016492429422214627, -0.02253430150449276, -0.002176817273721099, 0.06745610386133194, 0.06037284433841705, 0.017442062497138977, -0.0009416053653694689, -0.03224166855216026, -0.014570224098861217, 0.000931283226236701, -0.02631448581814766, -0.03912306949496269, 0.01646949164569378, -0.06301530450582504, -0.0034452893305569887, -0.032351769506931305, 0.0013487550895661116, 0.013533426448702812, -0.035673193633556366, 0.019708339124917984, 0.022185644134879112, 0.012735183350741863, 0.024736350402235985, 0.0018327470170333982, 0.021928738802671432, 0.04246284440159798, -0.010331280529499054, -0.051674749702215195, 0.009459635242819786, -0.021488329395651817, 0.026516340672969818, 0.021726883947849274, -0.007532842922955751, 0.01579970121383667, -0.031122293323278427, 0.05310608446598053, -0.0016377739375457168, -0.0509774349629879, -0.060482945293188095, 0.006188675295561552, -0.05200505629181862, 0.023433471098542213, -0.007624594960361719, -0.018900921568274498, 0.040958113968372345, 0.028314679861068726, 0.03244352340698242, -0.028993645682930946, -0.017084229737520218, 0.015028984285891056, -0.0497296079993248, 0.020901115611195564, 0.04224264249205589, 0.03708617761731148, -0.0133682731539011, 0.010890967212617397, -0.004816982429474592, 0.0491056926548481, 0.018900921568274498, -0.03035157546401024, 0.0019210583996027708, 0.0020701554603874683, -0.012771883979439735, 0.05688626691699028, 0.03185630962252617, -0.0035370413679629564, -0.020350603386759758, 0.020112046971917152, -0.038829464465379715, 0.032498572021722794, 0.020644210278987885, 0.049142394214868546, 0.009413759224116802, -0.07898015528917313, -0.01724938489496708, -0.023965634405612946, -0.026846647262573242, -0.03827895224094391, 0.010221177712082863, -0.013478375039994717, 0.021469978615641594, 0.019194526597857475, -0.06499714404344559, -0.010973544791340828, -0.030057968571782112, 0.0210846196860075, 0.03409506008028984, -0.0005510856863111258, 0.047270651906728745, -0.011909415014088154, 0.014175690710544586, 0.057326678186655045, 0.026975100859999657, 0.011046946048736572, 0.01963493786752224, 0.038315653800964355, -0.011799313127994537, 0.009854169562458992, -0.030681883916258812, -0.031232396140694618, 0.004177011549472809, -0.01290033757686615, -0.03620535507798195, 0.022864609956741333, -0.028681688010692596, 0.038829464465379715, 0.014772078953683376, 0.0016205704305320978, 0.01183601375669241 ]
17,099
imodels.tree.figs
FIGSRegressorCV
null
class FIGSRegressorCV(FIGSCV): def __init__( self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring="r2", *args, **kwargs, ): super(FIGSRegressorCV, self).__init__( figs=FIGSRegressor, n_rules_list=n_rules_list, n_trees_list=n_trees_list, cv=cv, scoring=scoring, *args, **kwargs, )
(n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring='r2', *args, **kwargs)
[ 0.026700187474489212, -0.07561434805393219, -0.03976084664463997, 0.004275919403880835, -0.06703989952802658, -0.014037496410310268, -0.03464150428771973, -0.03943523392081261, 0.08024527877569199, 0.018686512485146523, 0.0005237492150627077, 0.037807174026966095, -0.0073172259144485, 0.00860158447176218, -0.003966135438531637, -0.0010034051956608891, 0.04359583556652069, -0.015936899930238724, 0.0002836385974660516, 0.014706810005009174, -0.02899756096303463, 0.009867853485047817, -0.05256825312972069, 0.011197436600923538, 0.025904245674610138, 0.07829160243272781, 0.04149744659662247, -0.018885498866438866, -0.013304869644343853, -0.007968449965119362, -0.07583142817020416, 0.0065936436876654625, -0.06472443789243698, 0.02199690230190754, -0.008615151979029179, -0.036088667809963226, -0.02156275324523449, 0.03205469623208046, -0.04663487896323204, 0.11280648410320282, 0.03321242704987526, 0.005802225787192583, -0.021617021411657333, -0.04717756435275078, -0.008904584683477879, 0.04164216294884682, -0.01311492919921875, 0.026754455640912056, 0.02783982828259468, -0.08017291873693466, -0.02650120109319687, -0.04225720837712288, -0.002010202035307884, 0.0005090514314360917, -0.02621176838874817, 0.07163465023040771, 0.04037589207291603, 0.07973877340555191, 0.07011512666940689, -0.04410234093666077, 0.03711977228522301, -0.016280602663755417, 0.001966108800843358, -0.006426315288990736, -0.032724007964134216, 0.0019446274964138865, -0.0527491495013237, -0.0021379597019404173, -0.008452345617115498, 0.016805199906229973, -0.007136330474168062, -0.02275666408240795, -0.0013420190662145615, -0.02127332054078579, 0.04374055191874504, 0.031258754432201385, -0.01288880966603756, -0.048877984285354614, 0.02796645648777485, -0.004140247590839863, 0.047430820763111115, -0.003873426467180252, -0.002331291791051626, -0.04634544625878334, -0.006109748035669327, -0.07510784268379211, 0.028093082830309868, -0.07308181375265121, 0.010808510705828667, 0.02375158853828907, -0.04764789342880249, -0.003525202628225088, 0.01794484071433544, -0.013865645974874496, 0.02635648474097252, 0.047430820763111115, 0.01013919711112976, -0.08031763881444931, -0.02172555774450302, -0.06533948332071304, 0.011215525679290295, 0.01662430353462696, -0.014127944596111774, 0.016986094415187836, -0.024312365800142288, -0.04041207209229469, -0.03162054717540741, 0.01013919711112976, -0.013123974204063416, 0.0005503182765096426, -0.033610399812459946, 0.07243058830499649, 0.0042578293941915035, 0.05321947857737541, -0.06291548162698746, -0.04374055191874504, -0.05039750784635544, 0.007167987059801817, -0.001854179659858346, -0.041171833872795105, -0.013666660524904728, 0.016081616282463074, -0.015439437702298164, 0.0734797865152359, -0.005458523984998465, 0.026048962026834488, 0.002523493254557252, 0.0734797865152359, -0.005151001736521721, -0.060274407267570496, 0.03324860706925392, -0.055607300251722336, -0.07098342478275299, -0.037517741322517395, 0.03914580121636391, -0.054702822118997574, 0.06613542139530182, -0.034171175211668015, 0.036197204142808914, 0.0029983441345393658, 0.04066532477736473, -0.0037784562446177006, -0.02215970866382122, -0.013874690979719162, -0.01720316894352436, 0.04033971205353737, -0.001426813891157508, 0.015195228159427643, -0.02054973691701889, -0.0045178672298789024, -0.0226119477301836, 0.04721374437212944, 0.008289540186524391, -0.011405466124415398, 0.06306019425392151, -0.008217181079089642, 0.0504336878657341, -0.048154402524232864, 0.04797350615262985, 0.0059378971345722675, 0.0056620314717292786, 0.02129140868782997, -0.018831228837370872, -0.0030639187898486853, 0.03384556248784065, 0.010989406146109104, 0.0020656012929975986, -0.057488612830638885, -0.045838937163352966, 0.055462583899497986, -0.030571352690458298, -0.0924738198518753, -0.09601937234401703, 0.029775410890579224, 0.03570878505706787, 0.036504726856946945, 0.0270981565117836, 0.049203597009181976, 0.024420902132987976, 0.054015420377254486, 0.034315891563892365, -0.0337008461356163, -0.013467676006257534, -0.02273857407271862, -0.0023052881006151438, 0.01732979528605938, -0.0009553547715768218, 0.052532076835632324, -0.015385168604552746, -0.006720270495861769, 0.07380539178848267, -0.016922781243920326, -0.01984424516558647, -0.026772545650601387, 0.04623690992593765, -0.042763713747262955, -0.008443300612270832, 0.012445615604519844, -0.005151001736521721, 0.031114039942622185, 0.01732979528605938, 0.01085373479872942, 0.009022166952490807, -0.03614293783903122, -0.004617359489202499, 0.07684443891048431, 0.007014226168394089, -0.006539375055581331, -0.00946083851158619, -0.0029101576656103134, -0.02168937958776951, 0.03207278624176979, 0.01143260020762682, 0.015466571785509586, 0.023118454962968826, -0.045694220811128616, -0.012979257851839066, -0.017528781667351723, -0.036938875913619995, 0.0055444492027163506, 0.05886342003941536, -0.023534514009952545, -0.027622753754258156, -0.006313255522400141, 0.0069283004850149155, 0.004870613571256399, 0.05379834398627281, -0.015140959993004799, 0.001136250328272581, -0.018686512485146523, -0.032868724316358566, -0.0568012110888958, 0.06863178312778473, -0.009885943494737148, -0.026465022936463356, 0.031222576275467873, -0.004902270156890154, 0.05144670233130455, -0.042329564690589905, 0.027857918292284012, 0.003703836817294359, 0.008474958129227161, -0.04620072990655899, -0.004189993720501661, -0.008814136497676373, 0.01794484071433544, 0.00878700241446495, 0.025180663913488388, 0.0019785454496741295, 0.0115954065695405, 0.007199644111096859, -0.058356910943984985, -0.06436264514923096, 0.03162054717540741, -0.0665333941578865, -0.03845839947462082, -0.04717756435275078, -0.008628718554973602, 0.052966225892305374, -0.03914580121636391, 0.005707255564630032, 0.04337875917553902, -0.006950912531465292, 0.06570127606391907, -0.04649016261100769, 0.012147137895226479, -0.017483556643128395, -0.008027241565287113, 0.01106176432222128, -0.00442515779286623, 0.059948794543743134, 0.05987643450498581, 0.004194516222923994, 0.03017338179051876, -0.010455763898789883, 0.012436570599675179, -0.06899357587099075, 0.021327588707208633, 0.004906792659312487, 0.0026523813139647245, 0.09254617989063263, -0.03306771069765091, -0.003939001355320215, 0.0165881235152483, 0.04739464074373245, -0.024438992142677307, -0.020151767879724503, 0.02373350039124489, -0.019753796979784966, -0.01231898833066225, -0.02825588919222355, 0.026862993836402893, 0.05083165690302849, 0.023245081305503845, 0.06888503581285477, 0.004140247590839863, 0.04287225008010864, 0.0016970266588032246, -0.0061142705380916595, 0.04142508655786514, 0.035220369696617126, -0.030390456318855286, 0.03292299434542656, -0.009203062392771244, -0.030860785394906998, -0.01563842222094536, 0.055715836584568024, -0.014218391850590706, 0.0034777175169438124, 0.01935582607984543, 0.016678571701049805, 0.09515107423067093, -0.027803650125861168, 0.02548818662762642, -0.03554598242044449, -0.003213157644495368, -0.0071182409301400185, -0.06783583760261536, 0.049275953322649, -0.008018196560442448, -0.019590990617871284, -0.036956965923309326, 0.007385062053799629, -0.05973171815276146, 0.014634451828897, -0.022684305906295776, -0.011504958383738995, -0.01935582607984543, 0.0027744858525693417, 0.04164216294884682, -0.0348585769534111, -0.02040502056479454, 0.07901518791913986, -0.01951863244175911, -0.01647958718240261, 0.02141803689301014, 0.04214866831898689, 0.03661326318979263, -0.02726096287369728, -0.05813983827829361, 0.03950759395956993, 0.012337078340351582, -0.02606705203652382, 0.03406263515353203, -0.04222102835774422, -0.0030458292458206415, 0.0005166829796507955, -0.03860311582684517, 0.03827750310301781, 0.011106988415122032, -0.024728424847126007, -0.08060707151889801, 0.03787953406572342, 0.0582483746111393, 0.005874583963304758, 0.06342198699712753, 0.0013612392358481884, -0.01784534938633442, 0.06197482347488403, -0.08104121685028076, 0.029214635491371155, -0.010365316644310951, -0.032705921679735184, 0.013802332803606987, 0.03232603892683983, -0.013313914649188519, -0.017356930300593376, 0.008678465150296688, 0.03670371323823929, -0.008913629688322544, -0.003758105682209134, -0.011921018362045288, -0.035491712391376495, -0.01842421479523182, 0.016036393120884895, -0.02170746959745884, -0.04439177364110947, -0.014354064129292965, 0.008791524916887283, -0.04109947383403778, -0.0015353511553257704, 0.024366633966565132, -0.013241556473076344, -0.0007247129105962813, -0.023679230362176895, -0.033013444393873215, -0.04706902801990509, 0.06675046682357788, 0.12394964694976807, -0.01107985433191061, 0.015439437702298164, 0.0013499332126230001, 0.045694220811128616, -0.023842036724090576, -0.05155523866415024, -0.03409881517291069, 0.03232603892683983, -0.0005992166115902364, -0.007832778617739677, -0.004771120846271515, -0.029341261833906174, -0.012101913802325726, -0.023425977677106857, -0.0015104780904948711, 0.025180663913488388, 0.008592539466917515, -0.003972919192165136, 0.04337875917553902, 0.0059378971345722675, 0.012237586081027985, 0.0015274370089173317, 0.0008451215107925236, -0.001286619808524847, -0.03266974166035652, -0.060853272676467896, -0.007746852934360504, 0.005110300146043301, 0.02885284461081028, -0.0032448144629597664, -0.015213318169116974, 0.03748156502842903, 0.04298079013824463, 0.010238689370453358, 0.07669972628355026, 0.023064186796545982, 0.01646149717271328, 0.007484554313123226, -0.002019246807321906, -0.0018677468178793788, -0.004431941546499729, -0.11049101501703262, 0.026157500222325325, -0.06852324306964874, 0.006656957324594259, -0.015566064044833183, -0.0576695092022419, -0.06465207785367966, 0.013368182815611362, -0.018577976152300835, 0.017356930300593376, 0.02082108147442341, -0.00983167439699173, 0.03719212859869003, -0.049275953322649, -0.0007179293315857649, 0.009148793295025826, -0.02259385772049427, -0.007457420229911804, -0.05278532952070236, -0.07981112599372864, 0.019916603341698647, 0.019012125208973885, -0.003163411282002926, 0.07452897727489471, 0.011342152953147888, -0.013223466463387012, -0.012807406485080719, -0.03936287760734558, 0.02387821674346924, -0.0360163077712059, -0.0033850085455924273, -0.0072041661478579044, 0.014688720926642418, 0.0016201459802687168, -0.06262604892253876, 0.004789210390299559, 0.061866287142038345, 0.008913629688322544, -0.0009287857101298869, -0.043921444565057755, 0.014326930046081543, -0.0028920681215822697, -0.0030865308362990618, -0.07568670809268951, -0.023787768557667732, 0.08270546048879623, 0.0008892148034647107, -0.047430820763111115, -0.02027839422225952, 0.0019141013035550714, 0.04439177364110947, -0.026266038417816162, 0.017176035791635513, 0.045838937163352966, 0.005422344896942377, -0.03480431064963341, -0.031855709850788116, -0.03625147417187691, -0.06989805400371552, -0.0012165227672085166, -0.024438992142677307, -0.010365316644310951, -0.004879658110439777, 0.05926138907670975, 0.009406570345163345, 0.016163019463419914, 0.046273089945316315, 0.02143612504005432, -0.0014087243471294641, -0.0033307396806776524, -0.01450782548636198, -0.0031950681004673243, -0.057778045535087585, -0.008217181079089642, 0.02610323205590248, -0.03860311582684517, -0.04005027934908867, 0.01732979528605938, -0.012635556049644947, -0.003455105470493436, -0.008651331067085266, -0.052821509540081024, 0.04254664108157158, 0.03896490857005119, 0.04703284800052643, -0.007697106804698706, -0.024276185780763626, 0.03332096338272095, -0.014272660948336124, 0.04240192472934723, 0.019428184255957603, -0.035618338733911514, 0.031132128089666367, -0.020314572378993034, 0.07872575521469116, 0.03972466662526131, 0.027876008301973343, 0.006819763220846653, 0.07879811525344849, 0.043197862803936005, 0.015810273587703705, -0.036812249571084976, -0.02373350039124489, 0.058356910943984985, -0.03429780155420303, 0.08277781307697296, 0.0331219807267189, -0.01755591481924057, -0.01231898833066225, -0.022630035877227783, -0.021020065993070602, 0.03355612978339195, 0.06834235042333603, 0.02333552949130535, 0.003789762267842889, 0.00970504805445671, -0.0021718775387853384, -0.018098602071404457, 0.002091604983434081, -0.06291548162698746, 0.018125737085938454, 0.016904691234230995, -0.012192361988127232, -0.014453556388616562, 0.03744538500905037, 0.05289386585354805, -0.002141351345926523, 0.012138092890381813, 0.019193019717931747, -0.013521944172680378, 0.005313807632774115, -0.0020407282281666994, 0.09493400156497955, -0.026157500222325325, -0.036197204142808914, 0.0023855604231357574, -0.015584154054522514, 0.024022933095693588, -0.08451441675424576, -0.029630694538354874, 0.015339944511651993, -0.018080512061715126, 0.023389797657728195, 0.03979702666401863, -0.07865339517593384, -0.004585702903568745, 0.02912418730556965, -0.004133463837206364, -0.05582437291741371, -0.046417806297540665, -0.05716300010681152, -0.05260443314909935, 0.022268244996666908, -0.07583142817020416, -0.008723689243197441, 0.025705261155962944, -0.020495468750596046, 0.034044548869132996, -0.07583142817020416, 0.03355612978339195, 0.03190997987985611, 0.04135273024439812, -0.008343808352947235, -0.03424353152513504, -0.04269135743379593, -0.023950574919581413, -0.06237279623746872, -0.013793287798762321, 0.0007286699838005006, 0.0033397844526916742, -0.054739002138376236, 0.00882770400494337, 0.005517315119504929, 0.01334104873239994, 0.0037988070398569107, -0.028943292796611786, 0.02841869555413723, -0.01093513797968626, 0.019482454285025597, -0.006693136412650347, 0.015032422728836536, 0.036360010504722595, 0.06154067441821098, 0.0038146355655044317, 0.01165871974080801, -0.0016190153546631336, -0.03192806988954544, 0.04048442840576172, 0.02769511193037033, -0.010690928436815739, -0.009922122582793236, 0.010781376622617245, -0.025379648432135582, 0.01984424516558647, -0.018541796132922173, 0.027496127411723137, 0.0015523101901635528, -0.10976743698120117, -0.021508483216166496, -0.0246379766613245, 0.03704741224646568, -0.03690269589424133, 0.012273765169084072, -0.056728851050138474, 0.006575554143637419, 0.015285676345229149, 0.010003525763750076, 0.05423249304294586, -0.03856693580746651, 0.010944182053208351, -0.04287225008010864, 0.0037648892030119896, -0.0036925310268998146, 0.021454215049743652, -0.010437674820423126, -0.05220646411180496, -0.05260443314909935, -0.02914227731525898, 0.08082414418458939, 0.00706849480047822, 0.00473946426063776, 0.0642179325222969, -0.0541963130235672, 0.0007738939020782709, -0.00041719042928889394, 0.02841869555413723, 0.03668562322854996, -0.025596724823117256, 0.027857918292284012, -0.0005655813147313893, -0.04996335878968239, -0.006471539381891489, 0.07901518791913986, 0.033610399812459946, -0.007484554313123226, 0.004246523603796959, 0.04952920973300934, -0.03759010136127472, -0.06074473261833191, 0.02302800677716732, -0.04923977702856064, 0.0028762395959347486, -0.046996671706438065, 0.02812926284968853, -0.018107647076249123, -0.020043229684233665, -0.02187027595937252, 0.014308840036392212, 0.03639619052410126, 0.009121659211814404, 0.06284312158823013, 0.04366819187998772, -0.013811376877129078, -0.018026243895292282, 0.03545553237199783, -0.022322513163089752, -0.07662736624479294, 0.02129140868782997, -0.0020757766906172037, 0.007669972255825996, -0.027170514687895775, -0.0113059738650918, 0.037228308618068695, -0.048624731600284576, -0.0062589868903160095, 0.05119344964623451, -0.0582483746111393, -0.048769447952508926, 0.03863929584622383, -0.023643052205443382, 0.005829359870404005, 0.015439437702298164, -0.04084622114896774, 0.08386319130659103, -0.0281111728399992, -0.0016608474543318152, -0.0007569349254481494, -0.028472963720560074, 0.03921816125512123, -0.06649721413850784, 0.003170195035636425, 0.030987411737442017, 0.024583708494901657, -0.01598212495446205, -0.009379435330629349, 0.024113379418849945, 0.055462583899497986, 0.004902270156890154, -0.04558568447828293, -0.03058944270014763, 0.0469604916870594, 0.002543844049796462, 0.0455133281648159, 0.028364425525069237, 0.02333552949130535, -0.00989498756825924, 0.05336419492959976, -0.015358034521341324, 0.06819763034582138, -0.03831368312239647, 0.07141757011413574, -0.0035071130841970444, -0.0475393570959568, -0.0895794928073883, -0.04692431166768074, -0.023643052205443382, 0.009035734459757805, -0.03411690518260002, 0.013313914649188519, 0.03867547586560249, 0.01623537763953209, -0.031421560794115067, -0.028617680072784424, -0.044645026326179504, 0.025705261155962944, 0.05220646411180496, 0.00326290400698781, 0.0363057404756546, 0.018478482961654663, 0.003131754696369171, 0.04442795366048813, 0.01303352601826191, 0.04026735574007034, -0.002374254399910569, 0.03176526352763176, -0.009307077154517174, 0.044066160917282104, -0.032850638031959534, -0.024583708494901657, -0.014706810005009174, 0.01420030277222395, -0.04489828273653984, 0.004560829605907202, 0.002810664940625429, 0.04298079013824463, 0.03205469623208046, 0.033302877098321915, 0.008194569498300552 ]
17,100
imodels.tree.figs
__init__
null
def __init__( self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring="r2", *args, **kwargs, ): super(FIGSRegressorCV, self).__init__( figs=FIGSRegressor, n_rules_list=n_rules_list, n_trees_list=n_trees_list, cv=cv, scoring=scoring, *args, **kwargs, )
(self, n_rules_list: List[int] = [6, 12, 24, 30, 50], n_trees_list: List[int] = [5, 5, 5, 5, 5], cv: int = 3, scoring='r2', *args, **kwargs)
[ 0.003918997477740049, -0.03552735969424248, -0.02917272225022316, -0.018551141023635864, -0.06530441343784332, 0.00509561225771904, -0.02759779803454876, -0.0477604903280735, 0.05391368269920349, 0.017983436584472656, -0.003346713725477457, 0.06394924223423004, -0.003868636442348361, 0.016234537586569786, 0.012178192846477032, -0.015135753899812698, 0.03772492706775665, -0.0014845033874735236, -0.00048558253911323845, 0.022580016404390335, -0.03272545710206032, 0.009962311014533043, -0.04006899893283844, 0.023495670408010483, 0.025784805417060852, 0.05036094784736633, 0.04072827100753784, -0.02197568491101265, -0.0252903513610363, 0.02071208320558071, -0.07061520218849182, 0.019008968025445938, -0.06222781538963318, 0.020821962505578995, -0.000258815212873742, -0.042449697852134705, -0.02477758564054966, 0.03900684043765068, -0.029593924060463905, 0.10592280328273773, 0.04354848340153694, -0.011390730738639832, -0.017287539318203926, -0.028916340321302414, -0.005910543724894524, 0.031553421169519424, -0.014000343158841133, 0.0240450631827116, 0.020254256203770638, -0.08819574862718582, -0.045416418462991714, -0.0320112481713295, -0.0007342397002503276, -0.007416794076561928, -0.03636975958943367, 0.06863739341497421, 0.03479483723640442, 0.07105471938848495, 0.06739210337400436, -0.059663984924554825, 0.03422712907195091, 0.0012796258088201284, -0.016719834879040718, -0.02757948637008667, -0.0316816121339798, -0.02353229746222496, -0.06977280229330063, -0.01132663432508707, 0.00676667969673872, 0.018560297787189484, 0.006459936033934355, -0.007343541830778122, 0.021499546244740486, -0.03208450227975845, 0.04182705655694008, 0.03021656721830368, -0.013496733270585537, -0.03508784621953964, 0.016600798815488815, 0.011692896485328674, 0.027854181826114655, 0.007696068380028009, 0.002618769183754921, -0.04519665986299515, -0.008135582320392132, -0.07211687415838242, 0.016097189858555794, -0.05233875662088394, -0.0016870916588231921, -0.00022791189257986844, -0.0534009151160717, -0.016582485288381577, 0.01345095131546259, -0.023861931636929512, 0.020254256203770638, 0.05409681424498558, 0.021041719242930412, -0.06248420104384422, -0.017983436584472656, -0.06046976149082184, 0.008785695768892765, -0.010557485744357109, -0.010127128101885319, 0.010237006470561028, -0.03072933293879032, -0.0389702171087265, -0.03250570222735405, 0.01829475909471512, -0.023056156933307648, 0.00676667969673872, -0.04530653730034828, 0.061898183077573776, 0.014311665669083595, 0.052814897149801254, -0.058089062571525574, -0.026627205312252045, -0.07079833745956421, 0.0002160370204364881, 0.01882583647966385, -0.029612235724925995, 0.006450779270380735, 0.03254232928156853, -0.01448563951998949, 0.0696629211306572, -0.009504484012722969, 0.027487920597195625, 0.006052470300346613, 0.061568547040224075, -0.0014673348050564528, -0.07178723812103271, 0.02670045755803585, -0.05468283221125603, -0.061055779457092285, -0.024686019867658615, 0.02739635482430458, -0.0527416467666626, 0.04299909248948097, -0.031535107642412186, 0.028055625036358833, -0.02880646102130413, 0.06493815034627914, 0.0022101588547229767, 0.009907371364533901, -0.022341948002576828, -0.015355510637164116, 0.047504108399152756, 0.001487937057390809, 0.035234350711107254, -0.02212218940258026, -0.0024722646921873093, -0.020089440047740936, 0.043475233018398285, -0.004775133449584246, -0.0037816492840647697, 0.06061626598238945, -0.00755414180457592, 0.05988374352455139, -0.059663984924554825, 0.04882264882326126, 0.005287899170070887, 0.01395456027239561, 0.0320112481713295, -0.02369711361825466, -0.01862439326941967, 0.024521201848983765, 0.005608377978205681, -0.012993124313652515, -0.07881946116685867, -0.03162667527794838, 0.023605549708008766, -0.045416418462991714, -0.10160092264413834, -0.08951429277658463, 0.03948298096656799, 0.015941528603434563, 0.02655395306646824, 0.015694301575422287, 0.03602181002497673, -0.015291414223611355, 0.06772173941135406, 0.0319196842610836, -0.03580205515027046, 0.0037152643781155348, -0.03263389319181442, -0.017836932092905045, 0.02318434789776802, -0.012141566723585129, 0.05076383426785469, -0.02706671878695488, 0.020821962505578995, 0.0728127732872963, -0.0153829799965024, -0.026920214295387268, -0.0369008406996727, 0.03298184275627136, -0.04970167577266693, -0.00032963528065010905, 0.010795556008815765, -0.005974639672785997, 0.028055625036358833, 0.013386854901909828, 0.022927965968847275, 0.019100533798336983, -0.024686019867658615, 0.010639894753694534, 0.0631800964474678, -0.01527310162782669, 0.011445669457316399, 0.0002829941804520786, 0.0033077984116971493, 0.004672122187912464, 0.028000686317682266, 0.016426825895905495, 0.02950235828757286, 0.015044188126921654, -0.041570670902729034, -0.01213240996003151, -0.029557297006249428, -0.031132221221923828, -0.021316414698958397, 0.05512234568595886, -0.013359385542571545, -0.01580418087542057, -0.0026897324714809656, 0.0064049968495965, 0.00448441319167614, 0.03812781348824501, -0.009815806522965431, 0.0033993639517575502, 0.013203724287450314, -0.05003131181001663, -0.06339985132217407, 0.062191192060709, -0.009852432645857334, -0.015575267374515533, 0.017131878063082695, -0.006386683788150549, 0.03823769465088844, -0.0738016813993454, 0.03706565499305725, -0.0180750023573637, 0.007224506698548794, -0.035545673221349716, -0.03316497057676315, 0.0027034671511501074, 0.03510615602135658, 0.009889058768749237, 0.018487045541405678, -0.009252679534256458, 0.0025134689640253782, 0.01159217394888401, -0.029593924060463905, -0.0555618591606617, 0.018706802278757095, -0.08533891290426254, -0.02093183994293213, -0.021517859771847725, -0.01686633937060833, 0.037541795521974564, -0.04622219130396843, 0.01827644556760788, 0.03281702473759651, 0.003930442966520786, 0.03719384968280792, -0.04501352831721306, 0.007998233661055565, -0.02796405926346779, 0.006817040964961052, 0.0019812453538179398, -0.012947341427206993, 0.06131216138601303, 0.052814897149801254, 0.01882583647966385, 0.03019825555384159, -0.021316414698958397, -0.0010570075828582048, -0.04852963984012604, 0.011106877587735653, -0.000017329459296888672, 0.020455701276659966, 0.10108815133571625, -0.021188223734498024, -0.013057219795882702, -0.0017271515680477023, 0.04798024520277977, -0.02792743407189846, -0.005640426184982061, 0.030527889728546143, -0.03477652370929718, -0.005626691039651632, -0.026315882802009583, 0.01317625492811203, 0.0590413436293602, 0.022048937156796455, 0.0650114044547081, -0.02549179457128048, 0.05537872761487961, -0.009477014653384686, -0.004472967702895403, 0.050507452338933945, 0.028055625036358833, -0.022799773141741753, 0.06662295013666153, -0.03849407657980919, -0.022012311965227127, -0.03320159763097763, 0.05116672068834305, -0.011161817237734795, 0.025070594623684883, 0.032066188752651215, 0.05585486814379692, 0.09310365468263626, -0.02177424170076847, 0.019741490483283997, -0.02931922674179077, -0.015126597136259079, -0.006450779270380735, -0.06197143346071243, 0.04834650829434395, -0.0035962294787168503, -0.014796962030231953, -0.05211900174617767, 0.002518047345802188, -0.06215456500649452, 0.0036877947859466076, -0.020455701276659966, -0.01239794958382845, -0.021884121000766754, -0.010374355129897594, 0.03578374162316322, -0.027890807017683983, -0.019192099571228027, 0.06387599557638168, -0.016097189858555794, -0.023825306445360184, 0.0165000781416893, 0.03849407657980919, 0.037505168467760086, -0.0362415686249733, -0.046441949903964996, 0.025949621573090553, 0.03186474367976189, -0.017305852845311165, 0.030949091538786888, -0.043511856347322464, -0.012516984716057777, 0.0006438189302571118, -0.020803648978471756, 0.026663832366466522, -0.008776539005339146, -0.027176598086953163, -0.06841763108968735, 0.034886401146650314, 0.04757735878229141, 0.01634441688656807, 0.05995699390769005, -0.010218693874776363, -0.0026302149053663015, 0.06512128561735153, -0.08687721192836761, 0.0158408060669899, -0.02369711361825466, -0.02598624862730503, 0.02353229746222496, 0.035234350711107254, -0.0018976919818669558, -0.004875855054706335, 0.015694301575422287, 0.040471889078617096, -0.021902432665228844, -0.0064049968495965, -0.027634425088763237, -0.04406125098466873, 0.0030216567683964968, 0.027359727770090103, -0.02071208320558071, -0.03409893810749054, -0.024539515376091003, 0.013020593672990799, -0.041534047573804855, -0.0268652755767107, 0.015309727750718594, 0.005379464942961931, 0.002515758154913783, -0.06039651110768318, -0.03356786072254181, -0.045599546283483505, 0.07361854612827301, 0.09588724374771118, -0.015593579970300198, 0.036809273064136505, -0.0010718869743868709, 0.052814897149801254, -0.03409893810749054, -0.044390883296728134, 0.0011417055502533913, 0.04061839357018471, -0.0021552196703851223, -0.023275913670659065, -0.011802774854004383, -0.025912996381521225, -0.01582249440252781, -0.004724772647023201, 0.013286133296787739, 0.019649924710392952, 0.02197568491101265, -0.012773367576301098, 0.05955410748720169, 0.0026737083680927753, 0.009733397513628006, -0.010740616358816624, -0.016820555552840233, 0.027634425088763237, -0.03658951818943024, -0.0678316131234169, 0.001391793368384242, 0.017434043809771538, 0.017150191590189934, 0.019649924710392952, -0.04307234287261963, 0.03849407657980919, 0.02215881645679474, 0.003921286202967167, 0.07142097502946854, 0.035435792058706284, 0.0030399698298424482, 0.0167106781154871, -0.015712615102529526, -0.00975171010941267, -0.005022360011935234, -0.10460426658391953, 0.006620175205171108, -0.06413237750530243, 0.006336322519928217, -0.009971467778086662, -0.04973830282688141, -0.057686176151037216, 0.029410792514681816, -0.025748178362846375, -0.005530547350645065, 0.004136465024203062, -0.00742595037445426, 0.05845532566308975, -0.044683896005153656, -0.020419074222445488, 0.019247038289904594, 0.007151254452764988, -0.011051938869059086, -0.08035776019096375, -0.07292264699935913, 0.017653800547122955, 0.008662083186209202, -0.00016310079081449658, 0.07079833745956421, 0.01353335939347744, -0.012562766671180725, -0.027359727770090103, -0.03658951818943024, 0.04299909248948097, -0.03321991115808487, 0.021536171436309814, -0.018917402252554893, 0.031040655449032784, 0.0012510117376223207, -0.07299590110778809, 0.003870925400406122, 0.0436217375099659, 0.011225912719964981, 0.008163051679730415, -0.03605843707919121, 0.0017603440210223198, 0.007604503072798252, -0.001940040965564549, -0.07299590110778809, -0.0408015213906765, 0.08262857794761658, 0.03356786072254181, -0.06263070553541183, -0.012599392794072628, -0.0012109518283978105, 0.04233982041478157, -0.01369817741215229, 0.030967403203248978, 0.035490732640028, -0.01124422624707222, -0.03761504963040352, -0.047174472361803055, -0.04373161494731903, -0.062191192060709, 0.018514515832066536, -0.028257068246603012, -0.016435980796813965, 0.007457998115569353, 0.04940866678953171, -0.002653106115758419, 0.010877964086830616, 0.044390883296728134, 0.02316603623330593, 0.004534774459898472, 0.012159879319369793, -0.01475117914378643, -0.014146847650408745, -0.045453041791915894, 0.00046269118320196867, 0.02320266142487526, -0.02355060912668705, -0.05625775456428528, 0.022415200248360634, -0.021389666944742203, -0.0003533850540407002, 0.003976225852966309, -0.04193693399429321, 0.0361500047147274, 0.044903650879859924, 0.0330001562833786, 0.010072189383208752, -0.017324166372418404, 0.032560642808675766, -0.012947341427206993, 0.04589255526661873, 0.03164498880505562, -0.012718427926301956, 0.03845744952559471, -0.02598624862730503, 0.08240882307291031, 0.049115657806396484, 0.04076489806175232, 0.00929846242070198, 0.07222675532102585, 0.042413074523210526, 0.026407448574900627, -0.04673495888710022, -0.04688146337866783, 0.050873711705207825, -0.041021279990673065, 0.07493709027767181, 0.040142253041267395, -0.016582485288381577, 0.0009471291559748352, -0.008831478655338287, -0.02142629399895668, 0.031333666294813156, 0.07867295295000076, -0.006267648655921221, 0.016408512368798256, 0.033311475068330765, -0.009513640776276588, -0.0027904543094336987, -0.002579853869974613, -0.058052435517311096, 0.03149848431348801, 0.007462576497346163, -0.016454294323921204, 0.0036488794721663, 0.041900306940078735, 0.02898959256708622, 0.0033650267869234085, -0.007393902633339167, 0.023806992918252945, -0.004761398769915104, 0.016609955579042435, -0.023056156933307648, 0.0696629211306572, -0.008662083186209202, -0.028568390756845474, 0.0021037140395492315, -0.02457614243030548, 0.014650457538664341, -0.09530122578144073, -0.026224318891763687, -0.0031315351370722055, -0.01827644556760788, 0.005301634315401316, 0.025583360344171524, -0.07881946116685867, -0.013505890034139156, 0.025528421625494957, -0.01653670333325863, -0.05794255807995796, -0.03602181002497673, -0.03378761559724808, -0.04739422723650932, 0.014091908000409603, -0.07962523400783539, 0.018386323004961014, 0.0411311574280262, -0.03373267874121666, 0.03845744952559471, -0.06940653920173645, 0.017745366320014, 0.03386086970567703, 0.05417006462812424, -0.013881308026611805, -0.022268693894147873, -0.047320976853370667, 0.005013203248381615, -0.07021231204271317, -0.02267158217728138, 0.005590064916759729, 0.014430699869990349, -0.036314819008111954, 0.005379464942961931, -0.009257257916033268, 0.029447419568896294, 0.016628269106149673, -0.033641111105680466, 0.03131535276770592, -0.009486171416938305, 0.02091352827847004, -0.0006855956162326038, 0.021755928173661232, 0.03193799778819084, 0.0668427124619484, -0.026535639539361, 0.01536466646939516, -0.02827538177371025, -0.032249320298433304, 0.038201067596673965, 0.011967591941356659, -0.013661551289260387, -0.002100280486047268, 0.022598329931497574, 0.0003705535491462797, 0.03164498880505562, -0.017443200573325157, 0.026297571137547493, -0.012864932417869568, -0.11141672730445862, -0.025015655905008316, -0.021151596680283546, 0.04340197890996933, -0.039629485458135605, -0.0004804319760296494, -0.04885927587747574, -0.0014753468567505479, 0.029465731233358383, 0.03992249444127083, 0.03951960802078247, -0.016939591616392136, -0.01029194612056017, -0.0499214343726635, 0.009770023636519909, 0.011299164965748787, 0.009623519144952297, -0.00976086687296629, -0.0583820715546608, -0.05006793886423111, -0.024319758638739586, 0.0706518292427063, 0.010346885770559311, -0.003113222075626254, 0.05530547723174095, -0.04922553524374962, 0.023587236180901527, 0.014256726019084454, 0.04658845439553261, 0.021755928173661232, -0.028843088075518608, 0.03195631131529808, -0.009962311014533043, -0.04614894092082977, 0.0024768428411334753, 0.08057751506567001, 0.03021656721830368, -0.011262538842856884, 0.0008710154797881842, 0.029062844812870026, -0.03514278307557106, -0.06032325699925423, 0.03845744952559471, -0.0625208243727684, -0.010667364113032818, -0.03422712907195091, 0.03376930207014084, 0.006684271153062582, 0.0015943817561492324, -0.04025213047862053, 0.012278914451599121, 0.03263389319181442, -0.003941888455301523, 0.07431444525718689, 0.03007006272673607, -0.013945403508841991, -0.03618662804365158, 0.038750458508729935, -0.01345095131546259, -0.0693332850933075, 0.03552735969424248, 0.011747835204005241, 0.025601673871278763, -0.020254256203770638, -0.013203724287450314, 0.037541795521974564, -0.04563617333769798, -0.013753117062151432, 0.046844836324453354, -0.06907690316438675, -0.033641111105680466, 0.04186367988586426, -0.01791934110224247, -0.003905262565240264, 0.016738146543502808, -0.04058176651597023, 0.07200700044631958, -0.04072827100753784, -0.006162348669022322, -0.004495859146118164, -0.02616937831044197, 0.04358511045575142, -0.06922341138124466, -0.0016939591150730848, 0.025052281096577644, 0.03849407657980919, -0.018670177087187767, -0.03779818117618561, 0.026407448574900627, 0.07618238031864166, 0.010255319997668266, -0.0537305511534214, -0.05233875662088394, 0.05695365369319916, -0.009815806522965431, 0.04633207246661186, 0.02616937831044197, 0.042962465435266495, -0.014696239493787289, 0.04673495888710022, -0.027506234124302864, 0.06834438443183899, -0.05951748043298721, 0.08643769472837448, -0.0016985373804345727, -0.020089440047740936, -0.09559423476457596, -0.03360448777675629, -0.003216233104467392, 0.024191567674279213, -0.0411311574280262, 0.014833588153123856, 0.042449697852134705, 0.01809331402182579, -0.0315900482237339, -0.02318434789776802, -0.03166329860687256, 0.02193905971944332, 0.05750304460525513, -0.0021929903887212276, 0.0174157302826643, 0.03761504963040352, -0.0030010545160621405, 0.021224848926067352, 0.010923746973276138, 0.04376824200153351, 0.0030376806389540434, 0.018313070759177208, -0.009898215532302856, 0.059114594012498856, -0.04072827100753784, -0.02759779803454876, -0.01582249440252781, 0.03232257068157196, -0.029960185289382935, -0.005681630223989487, 0.008327868767082691, 0.05233875662088394, 0.01930197700858116, 0.059847116470336914, -0.007934138178825378 ]
17,104
imodels.rule_set.fplasso
FPLassoClassifier
null
class FPLassoClassifier(FPLasso, ClassifierMixin): def _init_prediction_task(self): self.prediction_task = 'classification'
(minsupport=0.1, maxcardinality=2, verbose=False, n_estimators=100, tree_size=4, sample_fract='default', max_rules=2000, 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, random_state=None)
[ 0.0010514750611037016, -0.03364720195531845, -0.0348043330013752, 0.006196979433298111, 0.010802904143929482, -0.005862496327608824, -0.00860616285353899, 0.03227311000227928, 0.009736173786222935, 0.026812897995114326, 0.03475009277462959, 0.03209230676293373, 0.042741529643535614, -0.003620554693043232, 0.030374692752957344, 0.0044680628925561905, 0.05322803184390068, 0.011101226322352886, 0.000872933364007622, -0.005970977246761322, -0.0017492568586021662, 0.038293808698654175, -0.0436093807220459, -0.0196169875562191, 0.02117188274860382, 0.02880171686410904, 0.013044845312833786, -0.03035661205649376, 0.007060308009386063, 0.01891186088323593, -0.06436541676521301, 0.0055325329303741455, -0.036630433052778244, 0.07087428122758865, 0.015702631324529648, 0.015413347631692886, 0.0002826439740601927, 0.07904651761054993, -0.062014997005462646, 0.010432260110974312, -0.017121924087405205, -0.0669328048825264, -0.05894136801362038, -0.003145950147882104, -0.012583800591528416, 0.047695498913526535, -0.021117642521858215, -0.014437018893659115, 0.0551445297896862, -0.044658027589321136, -0.06259356439113617, -0.029000598937273026, -0.003177590435370803, 0.052432503551244736, -0.049358874559402466, 0.10435876250267029, 0.020665638148784637, 0.020683718845248222, -0.04386250302195549, 0.02672249637544155, -0.007720234338194132, -0.004120019730180502, 0.0030148690566420555, -0.011372429318726063, 0.004813846200704575, -0.0013164626434445381, -0.053734276443719864, 0.0317668654024601, 0.008357560262084007, 0.04259688779711723, 0.012610920704901218, -0.04964815825223923, -0.003654455067589879, 0.038329970091581345, 0.066318079829216, 0.0007028667605482042, -0.001326632802374661, -0.03587106615304947, 0.044658027589321136, 0.026595935225486755, -0.005107649136334658, 0.0007469371776096523, -0.008014037273824215, -0.05933912843465805, -0.03540097922086716, -0.10392484068870544, 0.018966102972626686, -0.042741529643535614, -0.006676103919744492, -0.010387060232460499, -0.07477959990501404, 0.06422077864408493, 0.023070301860570908, 0.015223505906760693, 0.017311766743659973, 0.04635756462812424, -0.01765528880059719, -0.009681932628154755, -0.04096967354416847, -0.03690163418650627, -0.018315216526389122, 0.026342812925577164, -0.032490070909261703, -0.0033493521623313427, -0.001735696685500443, -0.05026288330554962, -0.041367437690496445, 0.024679437279701233, -0.013749971985816956, -0.02021363377571106, -0.02053907699882984, 0.059990014880895615, -0.042922332882881165, 0.06718592345714569, -0.0646185427904129, -0.04816558212041855, 0.0015718451468273997, -0.02279909886419773, -0.03258047252893448, -0.03138718008995056, -0.04516427218914032, 0.056916385889053345, -0.043211616575717926, -0.0032725115306675434, 0.0006000357680022717, 0.0010831153485924006, 0.03487665578722954, 0.04964815825223923, 0.014843822456896305, -0.07192292809486389, 0.027011780068278313, -0.049033429473638535, -0.04972047731280327, -0.013180446811020374, -0.00846152100712061, -0.013822292909026146, 0.011887714266777039, 0.018342336639761925, -0.026975618675351143, 0.014247177168726921, 0.008154158480465412, -0.006016177590936422, 0.012981564737856388, 0.01699536293745041, 0.04245224967598915, 0.02180469036102295, -0.03106173872947693, 0.014554539695382118, -0.012864043936133385, -0.03652195259928703, 0.04183752089738846, -0.00685690576210618, 0.03760676085948944, -0.023124542087316513, 0.022564057260751724, 0.02424551360309124, 0.006233139894902706, -0.027120260521769524, 0.011489950120449066, -0.013207566924393177, 0.0375344417989254, -0.01549470890313387, 0.023160701617598534, 0.05655478313565254, -0.011526110582053661, -0.023106461390852928, 0.000016367501302738674, -0.03117021918296814, 0.004205900244414806, 0.05149233341217041, 0.011462830007076263, -0.09242584556341171, 0.008230999112129211, -0.021497325971722603, -0.008592602796852589, 0.03865541145205498, 0.038221485912799835, -0.02449863590300083, 0.05597621947526932, 0.08215630799531937, 0.00986273493617773, 0.005853456445038319, -0.03326752036809921, -0.013569170609116554, 0.02135268598794937, 0.036558110266923904, 0.0077383145689964294, 0.027608424425125122, -0.030627815052866936, 0.03523825854063034, 0.012520520016551018, -0.005582253448665142, -0.036178428679704666, 0.0015277747297659516, 0.03534673899412155, -0.029561083763837814, 0.009455930441617966, 0.003686095355078578, -0.00006981348269619048, 0.0275722648948431, -0.0015707151032984257, 0.015675511211156845, 0.049395035952329636, 0.06234043836593628, -0.02572808787226677, 0.06107482686638832, 0.010730583220720291, 0.0608578659594059, -0.03214654698967934, -0.049178071320056915, -0.001736826729029417, 0.0015243845991790295, -0.03872773051261902, 0.061870355159044266, 0.06306364387273788, -0.04205448552966118, 0.007815155200660229, 0.00547829270362854, -0.005663614254444838, 0.01643487811088562, 0.016715120524168015, 0.0013345428742468357, 0.00547829270362854, 0.027156420052051544, 0.010793863795697689, 0.00980849377810955, 0.027554184198379517, -0.0557592548429966, -0.00513476924970746, 0.003491733456030488, -0.04216296598315239, -0.04353705793619156, 0.046285245567560196, 0.05156465619802475, 0.03317711874842644, -0.008764363825321198, 0.0031233499757945538, 0.008004996925592422, -0.09170264005661011, 0.014346618205308914, -0.002682645805180073, 0.012303558178246021, -0.04946735501289368, -0.044585708528757095, 0.003256691386923194, 0.00923444889485836, 0.00007677011308260262, 0.030103489756584167, -0.01316236611455679, -0.015304867178201675, 0.04733389616012573, -0.0392339751124382, -0.032182708382606506, -0.008750803768634796, -0.01378613244742155, -0.05727798864245415, 0.016371596604585648, -0.021370764821767807, 0.05026288330554962, 0.04212680459022522, -0.06924706697463989, -0.008271679282188416, 0.00756203243508935, 0.06385917216539383, -0.034370411187410355, -0.03449697047472, -0.03156798332929611, 0.006210539489984512, 0.001305162557400763, -0.04592364281415939, 0.12453623861074448, 0.018450817093253136, -0.026704415678977966, 0.0014543239958584309, 0.02261829748749733, -0.049395035952329636, -0.06592031568288803, -0.010432260110974312, 0.005225170403718948, -0.02124420367181301, 0.08324111998081207, -0.0733693465590477, -0.008271679282188416, 0.01519638579338789, -0.0006717914366163313, -0.015648391097784042, 0.007955276407301426, 0.005961937364190817, 0.007914596237242222, -0.022419415414333344, -0.02791578881442547, 0.03710051625967026, 0.0012904723407700658, 0.043066974729299545, 0.02961532399058342, -0.028494354337453842, 0.0036702752113342285, 0.025854649022221565, 0.005455692298710346, -0.04017414525151253, 0.0527217872440815, -0.06667967885732651, -0.036738913506269455, -0.0392339751124382, -0.040065664798021317, -0.007986917160451412, 0.04241608828306198, 0.03361104428768158, -0.055433813482522964, 0.000008117538527585566, 0.04592364281415939, 0.038221485912799835, -0.010025456547737122, 0.05438516288995743, -0.061436429619789124, -0.0071552288718521595, 0.03634114935994148, 0.01016105804592371, 0.045959800481796265, 0.010983705520629883, -0.055723097175359726, 0.0036137746647000313, -0.034623533487319946, 0.030031168833374977, 0.009202808141708374, -0.01489806268364191, 0.01628119684755802, -0.025221841409802437, -0.055216848850250244, 0.06498014181852341, -0.010676342993974686, 0.021461166441440582, 0.023938149213790894, -0.0026148450560867786, -0.10067040473222733, 0.06548638641834259, 0.027825387194752693, 0.039704062044620514, 0.03847460821270943, -0.003374212421476841, -0.020936841145157814, -0.004097419325262308, -0.052251700311899185, 0.10898728668689728, -0.02135268598794937, -0.014373738318681717, -0.018568338826298714, 0.0063371011056005955, 0.05170929804444313, -0.0487079881131649, -0.05008208006620407, -0.03042893297970295, 0.029940767213702202, 0.05358963459730148, 0.02513144165277481, 0.030338531360030174, -0.031332939863204956, -0.008090877905488014, 0.015648391097784042, -0.043175455182790756, -0.000452569336630404, -0.06798145174980164, -0.002664565574377775, 0.02583656832575798, -0.00724562956020236, 0.016968242824077606, -0.01441893819719553, 0.031224459409713745, 0.06454622000455856, -0.0388723723590374, -0.005026288330554962, -0.03384608402848244, -0.013894613832235336, 0.0187672208994627, 0.007015107199549675, 0.0026261452585458755, -0.014979423955082893, 0.01732984557747841, -0.010730583220720291, 0.015856312587857246, -0.016688000410795212, 0.004382181912660599, -0.00790103618055582, 0.023775428533554077, -0.03028429113328457, -0.016904963180422783, -0.011598431505262852, -0.0023685027845203876, 0.07731082290410995, -0.007331510540097952, 0.015087905339896679, 0.002166230697184801, -0.04201832413673401, -0.0513838529586792, -0.013144286349415779, -0.04979280009865761, -0.03180302679538727, 0.004316641483455896, 0.010513621382415295, -0.035961464047431946, 0.027047939598560333, -0.05264946445822716, 0.058326639235019684, 0.025004880502820015, 0.04592364281415939, 0.05196242034435272, 0.014663021080195904, 0.0009475140832364559, 0.00814511813223362, -0.012059476226568222, 0.04639372602105141, 0.01362341083586216, -0.02484215795993805, -0.04053574800491333, -0.05033520236611366, 0.019237304106354713, -0.0017390866996720433, -0.01486190315335989, 0.020484836772084236, -0.01580207236111164, 0.014409898780286312, 0.07232069224119186, 0.008805044926702976, -0.008637802675366402, 0.0008983586449176073, 0.03625074774026871, 0.03106173872947693, 0.02802426926791668, 0.050877608358860016, -0.012647081166505814, -0.10291235148906708, 0.031821105629205704, -0.06309980899095535, 0.02021363377571106, 0.004495183005928993, 0.005401452071964741, -0.004382181912660599, 0.004237540531903505, -0.03227311000227928, 0.004759605508297682, 0.0005390151636675, -0.026143930852413177, 0.045995961874723434, -0.007363150827586651, -0.023757347837090492, 0.021153803914785385, -0.05481908842921257, 0.01026953849941492, -0.0693555474281311, -0.0470084510743618, -0.017384087666869164, 0.00923444889485836, 0.011607471853494644, 0.08128846436738968, 0.0297599658370018, -0.0019560488872230053, 0.010341859422624111, -0.06078554317355156, 0.01965314894914627, -0.01471726130694151, -0.011851553805172443, 0.017827050760388374, -0.02343190461397171, 0.0058579761534929276, 0.04635756462812424, -0.03941477835178375, 0.047803979367017746, 0.025348404422402382, -0.02742762304842472, -0.02675865776836872, 0.035111695528030396, -0.00970001332461834, 0.03162222355604172, -0.029416441917419434, -0.09032854437828064, 0.054132040590047836, 0.058579761534929276, 0.017121924087405205, 0.025402644649147987, 0.0174021665006876, 0.05008208006620407, -0.02261829748749733, 0.01654335856437683, 0.017293686047196388, -0.02343190461397171, -0.019833950325846672, -0.017962653189897537, -0.041367437690496445, 0.029669564217329025, -0.0064229816198349, -0.0128459632396698, 0.009510171599686146, 0.03699203580617905, 0.041331276297569275, -0.014319497160613537, 0.02028595469892025, 0.045851320028305054, 0.008895445615053177, 0.04548971727490425, -0.0027549664955586195, 0.015006544068455696, 0.035111695528030396, -0.01584727317094803, -0.033592961728572845, 0.03402688726782799, -0.011037945747375488, -0.033737603574991226, 0.01880338042974472, -0.06856001913547516, 0.04852718487381935, 0.046104442328214645, 0.012321637943387032, 0.0030329490546137094, -0.006477222312241793, 0.029217559844255447, -0.000018239081327919848, -0.0211357232183218, 0.014120616018772125, 0.01724848523736, 0.027662666514515877, 0.022310934960842133, 0.02173236943781376, 0.023775428533554077, -0.014653980731964111, -0.022636378183960915, 0.03569026291370392, 0.0327974334359169, -0.005062448792159557, 0.01245723944157362, 0.07141668349504471, -0.02749994397163391, -0.06678815931081772, -0.014852862805128098, 0.06093018501996994, 0.022039731964468956, 0.09994719922542572, -0.050841446965932846, 0.004637564532458782, 0.015829192474484444, -0.026288572698831558, -0.02561960555613041, -0.02406471036374569, -0.0005189575022086501, -0.002231771359220147, 0.03543714061379433, -0.010341859422624111, -0.050624486058950424, 0.02742762304842472, -0.012412039563059807, 0.010124897584319115, 0.00046951952390372753, -0.010468420572578907, -0.07018723338842392, -0.035780664533376694, 0.038221485912799835, 0.03738979995250702, 0.004280481021851301, 0.002942548366263509, 0.01846889778971672, 0.031405262649059296, -0.046140603721141815, -0.02317878231406212, 0.035364821553230286, 0.0014046034775674343, -0.0005915606743656099, -0.014925183728337288, -0.05995385721325874, 0.02802426926791668, -0.058362800627946854, -0.049286551773548126, 0.06787297129631042, -0.012674202211201191, -0.031260620802640915, 0.032923996448516846, -0.027481863275170326, 0.012276438064873219, 0.018604498356580734, 0.016452958807349205, -0.012204117141664028, -0.0019786490593105555, -0.06881313771009445, 0.02243749611079693, 0.05207090079784393, -0.02643321454524994, -0.04982895776629448, -0.01843273639678955, -0.015530869364738464, -0.006133698858320713, -0.014735342003405094, -0.02665017545223236, -0.019852031022310257, -0.003559534205123782, 0.005943857133388519, 0.005003687925636768, -0.002768526552245021, -0.06993411481380463, -0.022347094491124153, -0.05496372655034065, 0.019924351945519447, -0.024462474510073662, 0.0006949566886760294, 0.05619318038225174, -0.042922332882881165, -0.020737959071993828, 0.07268229871988297, -0.04241608828306198, -0.10833640396595001, 0.021298443898558617, -0.04335625469684601, -0.020557157695293427, -0.005722375120967627, 0.007073868066072464, 0.039704062044620514, 0.001941358670592308, 0.0058579761534929276, -0.01869489997625351, -0.03493089601397514, -0.017827050760388374, 0.007548472378402948, -0.010278578847646713, 0.005288450978696346, -0.041439756751060486, -0.002145890612155199, 0.05123921111226082, -0.04863566905260086, -0.0027120260056108236, 0.0022905319929122925, -0.11817201226949692, -0.028042349964380264, -0.001175211276859045, 0.012384919449687004, -0.024534795433282852, 0.03174878656864166, -0.047587018460035324, 0.029362201690673828, -0.032182708382606506, 0.021226124837994576, 0.05330035090446472, 0.039704062044620514, -0.07206757366657257, -0.08779732137918472, -0.022112052887678146, 0.01825193502008915, -0.053806595504283905, 0.03455121070146561, -0.09430618584156036, -0.04371786117553711, 0.03194766864180565, 0.041656721383333206, -0.001346972887404263, -0.03556369990110397, 0.02813274972140789, -0.01376805268228054, 0.050407525151968, -0.002230641432106495, 0.009935055859386921, -0.013352207839488983, 0.010703463107347488, 0.02106340229511261, -0.03876389190554619, -0.09539099782705307, 0.03652195259928703, 0.03102557733654976, 0.07752778381109238, 0.034189607948064804, 0.022365175187587738, -0.04346473887562752, -0.0510222502052784, -0.06736672669649124, -0.007891995832324028, -0.03183918446302414, 0.03060973435640335, 0.0025832047685980797, -0.034153446555137634, 0.04487499222159386, -0.04046342894434929, 0.018405616283416748, -0.00971809308975935, 0.03465969115495682, -0.007566552609205246, 0.05340883135795593, -0.03343024104833603, 0.00791911594569683, 0.027825387194752693, 0.03308671712875366, 0.045887481421232224, -0.036738913506269455, -0.019146904349327087, -0.02679481729865074, 0.007792554795742035, 0.02328726463019848, 0.055650774389505386, 0.013894613832235336, 0.008258119225502014, 0.0017424767138436437, -0.005808255635201931, -0.11122922599315643, -0.058507442474365234, 0.005518972873687744, -0.026378974318504333, -0.0014260737225413322, -0.047623176127672195, -0.07116356492042542, -0.026342812925577164, -0.027680745348334312, 0.052215542644262314, -0.05930297076702118, -0.014455098658800125, -0.021226124837994576, -0.06798145174980164, 0.02713834121823311, 0.020412515848875046, -0.014608779922127724, -0.05149233341217041, -0.003884977428242564, 0.050732966512441635, 0.0008955335943028331, -0.01632639765739441, -0.05655478313565254, -0.00006864815804874524, 0.03764292225241661, -0.027373382821679115, 0.04592364281415939, 0.03411728888750076, 0.01976162940263748, -0.047587018460035324, 0.004818366374820471, -0.026595935225486755, 0.05109456926584244, 0.03876389190554619, 0.04545355588197708, 0.001530034700408578, -0.09560795873403549, -0.008357560262084007, -0.011779232881963253, 0.003751636017113924, 0.04527275636792183, 0.003448793198913336, -0.008113478310406208, 0.028928278014063835, 0.023920070379972458, -0.058362800627946854, -0.013270847499370575, 0.03487665578722954, 0.06555870920419693, 0.024824079126119614, -0.0029809686820954084, -0.0018283575773239136, -0.014391818083822727, -0.008538361638784409, -0.000905703695025295, 0.03493089601397514, 0.012963484972715378, 0.023920070379972458, 0.041548240929841995, -0.0334664024412632, 0.07564744353294373, -0.0009170037810690701, -0.0016441658372059464, -0.019707389175891876, -0.018568338826298714, -0.036775074899196625, -0.007412871345877647, -0.017230406403541565, 0.08447057008743286, 0.04993743821978569, 0.052432503551244736, 0.032707035541534424 ]
17,106
imodels.rule_set.fplasso
__init__
null
def __init__(self, minsupport=0.1, maxcardinality=2, verbose=False, n_estimators=100, tree_size=4, sample_fract='default', max_rules=2000, 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, random_state=None): super().__init__(n_estimators, tree_size, sample_fract, max_rules, memory_par, tree_generator, lin_trim_quantile, lin_standardise, exp_rand_tree_size, include_linear, alpha, random_state) self.minsupport = minsupport self.maxcardinality = maxcardinality self.verbose = verbose
(self, minsupport=0.1, maxcardinality=2, verbose=False, n_estimators=100, tree_size=4, sample_fract='default', max_rules=2000, 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, random_state=None)
[ 0.0012813181383535266, -0.008098918944597244, 0.00030208114185370505, 0.0031847660429775715, -0.0033015557564795017, 0.02750847302377224, -0.061018142849206924, -0.06371328979730606, -0.06432419270277023, -0.0025446685031056404, 0.004011278040707111, 0.10018762201070786, 0.0029466948471963406, 0.07064880430698395, -0.022423628717660904, 0.0029377108439803123, 0.03543220832943916, -0.011391490697860718, 0.03845077380537987, 0.07431420683860779, -0.04714711755514145, 0.031461358070373535, -0.044451966881752014, 0.03974444419145584, -0.023896975442767143, 0.04962665215134621, 0.0035441191866993904, -0.029592720791697502, 0.00521960249170661, 0.011373522691428661, -0.07611096650362015, -0.011517263948917389, -0.05066877603530884, 0.037408649921417236, 0.044559773057699203, -0.06144936755299568, -0.0032229474745690823, 0.05066877603530884, -0.132816880941391, 0.019890189170837402, -0.004941103979945183, -0.07003790140151978, -0.04897981509566307, -0.03059890866279602, -0.014005783945322037, 0.020123768597841263, 0.045494090765714645, 0.057137131690979004, -0.03501895070075989, -0.03367137908935547, 0.01645836792886257, -0.004658113699406385, 0.01043920498341322, 0.043877001851797104, -0.038774192333221436, 0.07054099440574646, 0.062383685261011124, -0.008413353003561497, 0.05627468228340149, -0.002877070102840662, -0.01575762964785099, 0.02511877566576004, 0.040139731019735336, -0.05196244642138481, -0.014472942799329758, -0.008664899505674839, -0.09422235935926437, -0.0019348914502188563, -0.010421237908303738, 0.07524852454662323, 0.03791174292564392, -0.032593317329883575, 0.0074790348298847675, 0.0534357950091362, 0.016916543245315552, 0.019458966329693794, -0.06701933592557907, -0.0374445840716362, 0.007523953914642334, -0.03456975892186165, 0.008691851049661636, 0.03331202641129494, 0.03164103254675865, -0.0534357950091362, -0.03200038522481918, -0.06346174329519272, 0.04348171502351761, -0.006059590261429548, 0.05627468228340149, 0.00106346036773175, -0.08042320609092712, 0.029844267293810844, 0.028137341141700745, 0.020123768597841263, 0.026394478976726532, 0.03376121446490288, 0.0049141524359583855, -0.019135547801852226, -0.011876617558300495, -0.04175681993365288, -0.018704324960708618, 0.029934106394648552, 0.003252144902944565, 0.028460759669542313, -0.0483689159154892, -0.007407164201140404, -0.012020358815789223, 0.000714214111212641, -0.004415550269186497, -0.022118179127573967, -0.09357552975416183, 0.06895984709262848, -0.005785583518445492, 0.05135154724121094, -0.04833298176527023, -0.0013588035944849253, -0.03823516145348549, -0.024723486974835396, 0.02695147693157196, -0.023250140249729156, 0.022549401968717575, 0.03737271577119827, -0.035216595977544785, 0.047542404383420944, -0.019351160153746605, 0.011885601095855236, 0.0534357950091362, 0.028676370158791542, -0.03377918526530266, -0.03554001450538635, 0.046176861971616745, -0.02558593451976776, -0.012514469213783741, 0.017491508275270462, 0.0217947605997324, -0.04200836643576622, -0.014931118115782738, 0.02833498641848564, -0.011175879277288914, 0.0019045709632337093, 0.047218985855579376, -0.018524648621678352, 0.03153322637081146, -0.04854859411716461, 0.004896184895187616, 0.03435415029525757, 0.00032229474163614213, -0.02752644196152687, -0.020285477861762047, -0.02499300241470337, -0.021058086305856705, -0.018578551709651947, 0.014598716050386429, -0.030095815658569336, 0.024058684706687927, -0.0015418489929288626, 0.021435407921671867, -0.05817925184965134, 0.01169694121927023, -0.020051898434758186, -0.037624262273311615, 0.021758824586868286, 0.016970446333289146, -0.032503481954336166, -0.028856046497821808, 0.0435895211994648, -0.059293247759342194, -0.05853860825300217, -0.0493391677737236, 0.007950685918331146, 0.002335794735699892, -0.053723275661468506, -0.025603903457522392, 0.03176680579781532, -0.058646414428949356, 0.046284668147563934, 0.014931118115782738, 0.04384106770157814, -0.009720498695969582, 0.05490913987159729, -0.023681363090872765, -0.02659212425351143, 0.005534036550670862, -0.051100000739097595, 0.0032476529013365507, -0.015074859373271465, 0.027777988463640213, 0.0027804940473288298, 0.022890787571668625, 0.03336592763662338, 0.01976441591978073, -0.027490505948662758, 0.007910258136689663, -0.006001195404678583, 0.0033577047288417816, -0.01690755970776081, 0.028388887643814087, -0.020231574773788452, 0.04326610267162323, 0.06209620088338852, -0.02156118117272854, 0.04186462610960007, 0.045170675963163376, -0.043661393225193024, -0.003211717586964369, 0.029646623879671097, -0.047003373503685, 0.03562985360622406, 0.02123776264488697, 0.07805147767066956, -0.04901575297117233, -0.011166894808411598, 0.025046905502676964, 0.05569971725344658, 0.012388695031404495, -0.030203621834516525, -0.0010168567532673478, -0.000002627593403303763, 0.022118179127573967, -0.007254438940435648, 0.11010576784610748, -0.0072903744876384735, 0.010744655504822731, -0.0029444487299770117, 0.017284879460930824, 0.01266719400882721, 0.047542404383420944, -0.05034535750746727, -0.0054801334626972675, -0.027364732697606087, -0.009163501672446728, -0.05117186903953552, 0.004128067754209042, -0.013367932289838791, -0.0284248236566782, 0.00839987676590681, 0.01324215903878212, 0.005803551059216261, -0.07848270237445831, -0.003932669758796692, -0.06008382514119148, -0.007196044083684683, -0.0009090508101508021, -0.027903761714696884, 0.011077056638896465, -0.018560582771897316, -0.005340884439647198, 0.03816328942775726, 0.006001195404678583, 0.00013566980487667024, 0.0012105704518035054, -0.06037130579352379, -0.051531221717596054, 0.0020011470187455416, 0.02168695442378521, 0.02729286253452301, 0.007196044083684683, -0.029988009482622147, 0.021884599700570107, -0.056238748133182526, 0.014724490232765675, -0.06673185527324677, -0.02912556193768978, 0.09386301040649414, -0.05117186903953552, -0.006454878486692905, 0.007002891972661018, -0.02351965568959713, 0.006562684662640095, -0.006495305802673101, 0.07661406695842743, 0.07675780355930328, -0.030850457027554512, 0.011652021668851376, -0.04060688987374306, -0.031802743673324585, -0.031335584819316864, -0.052142124623060226, -0.03483927622437477, 0.013835091143846512, -0.0029938598163425922, -0.04136153310537338, 0.008000096306204796, 0.01598222553730011, -0.009486919268965721, -0.01124774944037199, -0.03902573883533478, -0.02581951394677162, -0.013691349886357784, 0.0020348364487290382, -0.060119759291410446, 0.037408649921417236, -0.03766019642353058, 0.00936114601790905, 0.10011575371026993, -0.06432419270277023, -0.0046850647777318954, 0.005974243860691786, -0.01039428636431694, 0.04682369902729988, 0.029520850628614426, -0.08071068674325943, 0.007977637462317944, 0.007465559057891369, 0.02010580152273178, 0.00326562044210732, 0.06867235898971558, -0.018120376393198967, 0.028802145272493362, 0.047218985855579376, 0.019548803567886353, 0.08761026710271835, 0.03758832439780235, 0.0013778941938653588, 0.0069534811191260815, -0.06008382514119148, -0.012029342353343964, -0.03444398567080498, 0.03221599757671356, 0.052788957953453064, -0.05034535750746727, 0.014428023248910904, 0.002279645763337612, -0.042978622019290924, -0.03845077380537987, -0.02136353775858879, 0.0010320169385522604, 0.00913655012845993, -0.061485301703214645, -0.024274297058582306, -0.05817925184965134, -0.0301317498087883, 0.04998600482940674, 0.0027715100441128016, -0.03834296762943268, 0.049842264503240585, 0.03288080170750618, 0.034875210374593735, 0.004438009578734636, -0.010852460749447346, 0.05925731360912323, 0.031191842630505562, -0.022208016365766525, 0.02441803738474846, -0.031353551894426346, -0.046284668147563934, 0.049375105649232864, -0.03255738317966461, 0.016359545290470123, 0.03173087164759636, -0.024849262088537216, 0.011112991720438004, 0.01255040429532528, 0.04671589285135269, 0.05113593488931656, 0.009918143041431904, -0.018524648621678352, -0.007164600770920515, 0.010133755393326283, 0.0023605001624673605, 0.02317827008664608, 0.0009657612536102533, -0.03058094158768654, 0.05584345757961273, 0.031191842630505562, -0.06295865029096603, -0.03325812146067619, 0.013439802452921867, 0.05483727157115936, -0.02635854482650757, 0.00816629733890295, -0.06752242892980576, -0.024939099326729774, -0.00602365517988801, 0.027580345049500465, 0.03187461197376251, -0.10025949031114578, 0.00033492824877612293, -0.005489117465913296, 0.02441803738474846, 0.02078857272863388, 0.020860442891716957, 0.03633059188723564, -0.006427926942706108, -0.03370731323957443, -0.020842475816607475, 0.037947677075862885, 0.01278398372232914, 0.040570955723524094, -0.018219197168946266, -0.010421237908303738, -0.009415049105882645, -0.04125372692942619, 0.012200035154819489, -0.047218985855579376, 0.0007288128254003823, 0.055663783103227615, 0.0194050632417202, -0.05652622878551483, -0.01756337843835354, -0.0063650403171777725, 0.0005168507341295481, -0.02844279073178768, 0.01987222209572792, 0.03185664489865303, -0.08221997320652008, 0.03791174292564392, 0.03244957700371742, 0.019674578681588173, 0.042403656989336014, 0.006648031063377857, -0.017096219584345818, 0.007802452426403761, 0.052573345601558685, -0.0394928976893425, -0.042295850813388824, 0.03719303756952286, -0.030077848583459854, 0.030095815658569336, -0.03469553217291832, 0.02853262983262539, 0.03394089266657829, -0.015946289524435997, 0.029970042407512665, 0.05817925184965134, -0.010807542130351067, -0.01576661318540573, -0.0312996469438076, -0.0016114737372845411, -0.02100418321788311, -0.03616888076066971, 0.003213963471353054, -0.04725492373108864, 0.0035867923870682716, 0.035557981580495834, -0.029592720791697502, -0.07341582328081131, -0.00496356375515461, -0.011346571147441864, -0.01770712062716484, 0.008431320078670979, -0.04862046241760254, 0.07675780355930328, -0.031084036454558372, -0.006549208890646696, -0.010582946240901947, -0.00027597189182415605, 0.021327601745724678, -0.05077658221125603, -0.05224992707371712, 0.019926125183701515, -0.027238959446549416, -0.008202232420444489, 0.0015643086517229676, 0.027939697727560997, -0.015335390344262123, 0.005511576775461435, 0.017545411363244057, 0.042403656989336014, -0.0049141524359583855, 0.036707911640405655, 0.0037193037569522858, -0.022747045382857323, -0.0003663716197479516, -0.015515066683292389, 0.06838487833738327, 0.05961666628718376, 0.0513874813914299, 0.011211814358830452, -0.02795766480267048, 0.027562376111745834, 0.03870232030749321, -0.045601896941661835, -0.05217805877327919, -0.009055696427822113, 0.015101810917258263, -0.0229626577347517, -0.02887401543557644, 0.011669989675283432, -0.022172080352902412, 0.028945885598659515, -0.0394928976893425, 0.06953480839729309, 0.019926125183701515, -0.04107404872775078, -0.023142334073781967, -0.012855853885412216, -0.015371325425803661, 0.014176476746797562, 0.01859651878476143, -0.03845077380537987, -0.01455379743129015, -0.0011471222387626767, 0.07402671873569489, -0.0022504483349621296, 0.03137151896953583, 0.05695745348930359, 0.022333789616823196, 0.03963663801550865, -0.013835091143846512, 0.016242755576968193, 0.0018663897644728422, -0.018901968374848366, 0.011786779388785362, 0.02190256677567959, 0.01963864266872406, -0.03147932514548302, 0.0013835091376677155, -0.06141342967748642, 0.0009118582820519805, 0.038774192333221436, -0.024723486974835396, 0.012343776412308216, 0.029826300218701363, -0.007402671966701746, -0.0038607988972216845, -0.0022347266785800457, 0.030778586864471436, 0.023771202191710472, 0.02569374069571495, 0.0067423610016703606, 0.017617281526327133, 0.03151525929570198, -0.04919542744755745, 0.00590686546638608, -0.022118179127573967, 0.011086040176451206, 0.03413853794336319, 0.05904170125722885, 0.0575324185192585, 0.026178866624832153, -0.04621279984712601, -0.01963864266872406, 0.0636773556470871, -0.002930972957983613, 0.03164103254675865, 0.013808139599859715, -0.009873224422335625, 0.07140344381332397, -0.030095815658569336, -0.004047213587909937, -0.010969250462949276, 0.04089437425136566, -0.0004682819126173854, -0.03164103254675865, 0.01976441591978073, 0.02479535900056362, 0.06586940586566925, 0.03309641405940056, -0.003103911643847823, 0.06763023883104324, -0.00805399939417839, -0.013323012739419937, -0.02292672172188759, 0.06475541740655899, -0.03275502845644951, 0.016251740977168083, -0.020716700702905655, 0.04121779277920723, 0.016512271016836166, -0.003690106328576803, 0.028388887643814087, 0.032233964651823044, 0.008682867512106895, 0.017671184614300728, -0.011041121557354927, -0.06500696390867233, 0.018470745533704758, -0.03575562685728073, 0.0008158436394296587, 0.023034527897834778, 0.016152918338775635, -0.02833498641848564, 0.037480518221855164, -0.07208621501922607, -0.008350465446710587, -0.007672186940908432, 0.04272707551717758, -0.047003373503685, -0.0123347919434309, 0.02716708742082119, 0.028029534965753555, -0.009504887275397778, -0.04671589285135269, -0.0037282875273376703, 0.03207225725054741, -0.07330801337957382, 0.030347362160682678, -0.009235372766852379, -0.006100017577409744, 0.032701123505830765, 0.012370727956295013, -0.0342283733189106, -0.056777775287628174, -0.022225983440876007, -0.007905766367912292, -0.06608501821756363, -0.06525851041078568, 0.007613792084157467, -0.008718802593648434, -0.04578157514333725, 0.04890794679522514, -0.0017945191357284784, 0.02204630710184574, 0.015119777992367744, -0.046644020825624466, 0.014374121092259884, 0.010232577100396156, -0.017284879460930824, 0.030634844675660133, 0.015559985302388668, 0.02899978868663311, 0.01324215903878212, -0.05983227863907814, -0.03737271577119827, -0.04121779277920723, -0.037157103419303894, -0.04028347507119179, 0.034749437123537064, -0.06975042074918747, -0.028263114392757416, 0.01124774944037199, -0.004752443637698889, 0.01016969047486782, -0.04923136532306671, -0.0616290420293808, 0.015083842910826206, -0.10773403197526932, -0.001703557907603681, -0.0312996469438076, 0.02522658184170723, -0.051782768219709396, 0.01688959263265133, -0.07841082662343979, 0.0011302775237709284, -0.025028938427567482, 0.03456975892186165, 0.04621279984712601, 0.013547608628869057, -0.015955274924635887, -0.012388695031404495, 0.016575157642364502, -0.019387096166610718, -0.031802743673324585, -0.028281083330512047, -0.07230182737112045, -0.03672587871551514, 0.04430822655558586, 0.06500696390867233, 0.037408649921417236, -0.014392088167369366, 0.05544817075133324, -0.015551001764833927, 0.0012959168525412679, -0.012801951728761196, -0.00986423995345831, -0.0038518151268363, 0.05171089991927147, 0.051423415541648865, -0.00616739597171545, -0.05135154724121094, 0.006576160434633493, 0.02795766480267048, 0.046859633177518845, 0.027813924476504326, 0.0077036302536726, 0.005704729352146387, 0.008992808870971203, -0.04786582291126251, 0.01825513318181038, -0.02260330505669117, 0.022333789616823196, -0.0008433565963059664, -0.03194648399949074, -0.01974644884467125, 0.009109598584473133, -0.02281891740858555, 0.00442678015679121, 0.002293121535331011, 0.01032241526991129, 0.045170675963163376, 0.05649029463529587, -0.027454569935798645, -0.017320815473794937, 0.04614092782139778, 0.020123768597841263, -0.09235372394323349, 0.03239567577838898, -0.017419638112187386, 0.0277420524507761, -0.005237570032477379, -0.02522658184170723, 0.012640242464840412, -0.007973144762217999, -0.031209809705615044, 0.038307033479213715, -0.05652622878551483, -0.07046912610530853, 0.027490505948662758, -0.05056096985936165, 0.04006786271929741, 0.012945692054927349, -0.06270710378885269, 0.03981631621718407, -0.005772107746452093, 0.026448382064700127, -0.047326792031526566, 0.044559773057699203, 0.01791374757885933, -0.054298240691423416, 0.05925731360912323, 0.06479135155677795, -0.016116982325911522, -0.053831081837415695, -0.039097607135772705, 0.05271708965301514, 0.05235773324966431, 0.032233964651823044, -0.043877001851797104, -0.013969848863780499, 0.006917545571923256, -0.01387102622538805, 0.03038329817354679, 0.0194050632417202, -0.02386104129254818, 0.04337390884757042, 0.03708523139357567, -0.021094022318720818, 0.0435895211994648, -0.0646476075053215, 0.044128552079200745, 0.05048909783363342, -0.02772408537566662, -0.040139731019735336, 0.00023708876688033342, -0.06105407699942589, -0.0002964662271551788, -0.00008590782817918807, 0.04987819865345955, 0.013969848863780499, 0.028748242184519768, 0.006454878486692905, -0.004837790038436651, 0.01529047079384327, -0.0024862736463546753, 0.014715505763888359, 0.012253938242793083, 0.019818319007754326, 0.037157103419303894, -0.02328607626259327, 0.003512675641104579, -0.025262517854571342, 0.03798361495137215, 0.0476861447095871, 0.020231574773788452, -0.0351986289024353, 0.027346765622496605, -0.030670780688524246, -0.027688149362802505, -0.09206624329090118, -0.0023088431917130947, -0.06346174329519272, 0.014922133646905422, 0.0011892338516190648, 0.02501096948981285, 0.060335371643304825, 0.06561785936355591, 0.0016563928220421076 ]
17,110
imodels.rule_set.rule_fit
__str__
null
def __str__(self): if not hasattr(self, 'coef'): s = self.__class__.__name__ s += "(" s += "max_rules=" s += repr(self.max_rules) s += ")" return s else: s = '> ------------------------------\n' s += '> RuleFit:\n' s += '> \tPredictions are made by summing the coefficients of each rule\n' s += '> ------------------------------\n' return s + self.visualize().to_string(index=False) + '\n'
(self)
[ 0.015840841457247734, 0.0026030594017356634, 0.05161622166633606, -0.028851687908172607, 0.009193027392029762, -0.035917770117521286, -0.03178847208619118, -0.07916860282421112, 0.028833890333771706, -0.03194866329431534, -0.002153642475605011, 0.002287132665514946, 0.007786930073052645, -0.01351811084896326, -0.0024139482993632555, 0.020432904362678528, 0.022924723103642464, -0.10750412940979004, 0.018403852358460426, 0.03833839297294617, 0.023316293954849243, 0.039655499160289764, -0.024010442197322845, -0.015609458088874817, 0.03395991399884224, -0.002118044998496771, 0.005415253806859255, -0.026520058512687683, -0.019970137625932693, 0.007070532534271479, -0.12409251928329468, -0.01792328804731369, 0.0021881272550672293, -0.033906519412994385, -0.035223621875047684, -0.019578566774725914, 0.0029390098061412573, -0.010332143865525723, -0.04883962497115135, -0.026003897190093994, 0.0153780747205019, 0.017887691035866737, -0.010590224526822567, 0.02369006536900997, -0.04773610830307007, -0.05560313165187836, -0.008311991579830647, 0.08650167286396027, -0.005993711296468973, -0.12188547849655151, -0.015013201162219048, -0.0043473318219184875, -0.024633396416902542, 0.029456844553351402, -0.04204052314162254, -0.020628690719604492, 0.015066597610712051, -0.0401538610458374, 0.04958717152476311, -0.025113962590694427, -0.03830279782414436, 0.011836133897304535, 0.012014120817184448, -0.05193660035729408, -0.004876843187958002, -0.028673700988292694, -0.04107939451932907, 0.028424520045518875, 0.024668995290994644, 0.020415106788277626, 0.02102026157081127, -0.02529194951057434, 0.03321237117052078, 0.004845695570111275, -0.03506343439221382, -0.0441407710313797, 0.010634721256792545, -0.04196932911872864, 0.015280181542038918, -0.030916336923837662, -0.010616922751069069, 0.04172014817595482, 0.0535384826362133, -0.06008840352296829, 0.0019878919702023268, -0.08173161745071411, 0.020806677639484406, -0.015280181542038918, -0.025345345959067345, -0.0013749493518844247, -0.014230058528482914, 0.007973816245794296, -0.010367740876972675, 0.017149044200778008, -0.06727907806634903, 0.01284176018089056, -0.008765858598053455, -0.03702129051089287, 0.027783766388893127, -0.019756553694605827, 0.014879710972309113, 0.03314117342233658, -0.0668875053524971, 0.03994027525186539, -0.03784003108739853, -0.023049313575029373, -0.019596366211771965, 0.008988342247903347, -0.0013393519911915064, 0.03890795260667801, 0.0006985988584347069, 0.04050983488559723, 0.03360394015908241, -0.007413157261908054, 0.07254748791456223, 0.032411426305770874, -0.08707122504711151, -0.011417864821851254, 0.036309342831373215, 0.012405691668391228, 0.011622549034655094, 0.009709189645946026, -0.03452947363257408, -0.015280181542038918, -0.03607796132564545, 0.05713381990790367, -0.010456734336912632, 0.016659580171108246, 0.07696156948804855, -0.11063670367002487, 0.038801159709692, -0.051046665757894516, -0.004569815471768379, 0.013268928974866867, 0.051046665757894516, -0.0010212002089247108, 0.025647923350334167, -0.018386054784059525, 0.0011869505979120731, 0.06304298341274261, 0.05136704072356224, 0.043001651763916016, -0.0060248589143157005, -0.012610376812517643, -0.012512484565377235, -0.013767292723059654, 0.004313959274441004, 0.06756385415792465, 0.022782333195209503, -0.0628649964928627, 0.0063051884062588215, -0.034422680735588074, -0.03638053685426712, -0.02392144873738289, 0.03036457858979702, 0.04200492426753044, -0.007199573330581188, -0.019898943603038788, 0.03691449761390686, -0.025719117373228073, -0.027730369940400124, -0.02208818309009075, -0.014755120500922203, -0.03360394015908241, 0.027196409180760384, 0.008165152743458748, -0.003128121141344309, -0.00943330954760313, -0.004632111173123121, 0.03787562996149063, -0.035917770117521286, -0.10002867877483368, -0.04976515844464302, 0.060800351202487946, 0.012067517265677452, 0.04054543375968933, 0.0032504871487617493, 0.07311704754829407, -0.04389158636331558, 0.0374840572476387, 0.012209906242787838, 0.000015087177416717168, -0.05521155893802643, -0.013580406084656715, 0.0016285808524116874, -0.04827006906270981, 0.013046445325016975, 0.0036687564570456743, -0.018421651795506477, -0.00045803835382685065, 0.006176148075610399, 0.0046766079030931, 0.0093532158061862, -0.0054908981546759605, -0.0360957570374012, -0.060657959431409836, 0.0400826670229435, 0.006923693232238293, 0.048234470188617706, -0.04652579501271248, -0.03009759820997715, 0.07311704754829407, 0.013073143549263477, 0.010634721256792545, -0.008449931629002094, 0.025790313258767128, 0.004712204914540052, 0.009602397680282593, -0.02459779940545559, -0.002179228002205491, 0.031628284603357315, 0.02315610460937023, -0.030916336923837662, -0.01738932728767395, 0.03294539079070091, 0.008930496871471405, 0.030649356544017792, 0.03680770471692085, -0.07179994881153107, 0.024099435657262802, 0.0026920530945062637, -0.07112359255552292, 0.04894641786813736, -0.009246422909200191, -0.032963186502456665, -0.012832860462367535, 0.05325370281934738, -0.0028633654583245516, 0.007204022724181414, -0.011497958563268185, 0.008774757385253906, -0.02418842911720276, -0.010946199297904968, 0.03306997939944267, -0.04752252250909805, 0.07518170028924942, -0.0415065623819828, 0.004026955459266901, -0.04588504135608673, 0.016072222962975502, -0.03225123882293701, -0.011533555574715137, -0.01706005074083805, 0.022960320115089417, 0.012681571766734123, 0.009637994691729546, 0.05247056111693382, 0.008841503411531448, -0.047949690371751785, -0.02128724195063114, 0.05492677912116051, 0.008974993601441383, -0.007506600581109524, -0.009664692915976048, -0.0050904275849461555, -0.03545500710606575, -0.030115395784378052, -0.027872759848833084, 0.0427524708211422, 0.0015740722883492708, -0.018119074404239655, 0.037377264350652695, -0.04492391273379326, 0.019578566774725914, 0.017442723736166954, -0.0023205052129924297, -0.06617555767297745, 0.019293788820505142, -0.016090022400021553, 0.037662044167518616, 0.08714242279529572, 0.008881550282239914, -0.021500825881958008, 0.012788363732397556, -0.0254343394190073, -0.011916227638721466, 0.025256352499127388, 0.025256352499127388, -0.02233736589550972, -0.026573454961180687, 0.033639539033174515, -0.03652292862534523, -0.020949067547917366, -0.027783766388893127, 0.01477291900664568, -0.038160406053066254, 0.02445540949702263, -0.01015415694564581, -0.00023138306278269738, 0.022016989067196846, 0.011569153517484665, -0.002136956201866269, 0.028317727148532867, 0.016882063820958138, 0.06585518270730972, -0.04204052314162254, 0.12373654544353485, -0.033247966319322586, 0.009112932719290257, 0.01049233227968216, -0.020148126408457756, -0.026306474581360817, 0.07073202729225159, -0.03855197876691818, -0.0629005953669548, -0.03666531667113304, -0.010928399860858917, -0.04172014817595482, 0.05656426027417183, 0.016063325107097626, -0.012023020535707474, 0.041542161256074905, 0.05012113228440285, 0.017602911219000816, -0.02125164493918419, 0.0829419270157814, -0.00957569945603609, 0.007172875106334686, 0.06144110485911369, 0.0695573091506958, 0.0032415876630693674, -0.0010089636780321598, 0.005704482551664114, -0.03321237117052078, 0.01398087665438652, -0.06795542687177658, 0.00006671035225735977, -0.025986097753047943, 0.027659175917506218, -0.06350575387477875, 0.007858124561607838, -0.06969969719648361, 0.03627374395728111, -0.03492104262113571, -0.0026586803141981363, 0.02700062468647957, 0.046632587909698486, 0.02406383864581585, -0.023583274334669113, -0.007671238388866186, 0.05364527553319931, -0.008013863116502762, -0.0061005037277936935, 0.023992644622921944, -0.0207532811909914, 0.03266061097383499, -0.05560313165187836, 0.03009759820997715, 0.02461559884250164, 0.01991674304008484, -0.018261464312672615, -0.03088073991239071, 0.03787562996149063, -0.004658808931708336, -0.011391166597604752, -0.01423895824700594, 0.004127073101699352, 0.0029545838478952646, -0.019827749580144882, 0.016357002779841423, -0.02890508435666561, -0.01924039237201214, -0.019471775740385056, 0.07041164487600327, 0.002369451569393277, 0.0026564556173980236, 0.03826719895005226, 0.006972639821469784, 0.10907042026519775, -0.004071452189236879, -0.0494803786277771, 0.001906685414724052, 0.011578052304685116, -0.04075901582837105, -0.04898201674222946, 0.10287646949291229, 0.03997587412595749, -0.0016575036570429802, 0.007150626741349697, -0.06920133531093597, 0.016517192125320435, -0.005499797407537699, -0.03504563495516777, 0.03961990028619766, -0.0014127716422080994, 0.03235803171992302, -0.03586437553167343, -0.001764295855537057, 0.03292759135365486, 0.018813222646713257, 0.06204625964164734, -0.029189864173531532, -0.002304931404069066, -0.013055344112217426, -0.05763218179345131, 0.0008020537788979709, 0.006888095755130053, 0.004645459819585085, -0.07503930479288101, 0.0018443900626152754, -0.008245246484875679, -0.0481632761657238, 0.0069281430914998055, 0.000144475357956253, -0.01424785703420639, 0.007849225774407387, 0.029723824933171272, 0.08735600858926773, -0.02395704761147499, 0.011684845201671124, -0.01642819680273533, -0.0387655645608902, -0.039121538400650024, -0.02568352036178112, 0.00264088180847466, 0.02098466455936432, -0.014381347224116325, -0.011052991263568401, 0.011346669867634773, -0.02020152099430561, -0.0014995402889326215, 0.013099840842187405, 0.04859044402837753, 0.017175743356347084, 0.00615389971062541, 0.01632140576839447, -0.030649356544017792, 0.014675025828182697, 0.0387655645608902, 0.038053616881370544, -0.02474018931388855, -0.0307561494410038, -0.00742205698043108, -0.023031514137983322, -0.029065273702144623, -0.05446401238441467, -0.005166071932762861, 0.015395873226225376, -0.034173499792814255, 0.003023553639650345, 0.04592064023017883, -0.03961990028619766, 0.03315897285938263, 0.05845092236995697, -0.05417923629283905, 0.03944191336631775, -0.007898172363638878, -0.05563872680068016, -0.08885109424591064, 0.028406720608472824, 0.03759085014462471, 0.05980362370610237, -0.013616003096103668, 0.013402419164776802, 0.03476085513830185, -0.013001948595046997, 0.002502941759303212, -0.051580626517534256, 0.000040186121623264626, 0.004131522495299578, 0.01954296976327896, 0.06774184107780457, 0.02274673618376255, 0.06977089494466782, -0.05720501393079758, -0.04759371653199196, 0.015360276214778423, 0.05827293545007706, -0.03159268945455551, -0.024046041071414948, 0.005775677505880594, 0.013126539066433907, -0.01964976266026497, -0.01617901585996151, -0.013073143549263477, 0.0856473296880722, 0.03887235373258591, 0.0004991978639736772, -0.011960724368691444, 0.0080272126942873, -0.03246482461690903, -0.0830131247639656, -0.053431689739227295, -0.016001028940081596, 0.019204795360565186, 0.045529067516326904, -0.05179420858621597, -0.00957569945603609, -0.04328643158078194, 0.030115395784378052, 0.0009761473047547042, 0.04570705443620682, -0.03607796132564545, -0.019044606015086174, -0.026644650846719742, 0.03890795260667801, 0.03515242785215378, -0.015351376496255398, -0.06706549227237701, 0.04293045774102211, -0.018902216106653214, -0.028317727148532867, -0.02005913108587265, -0.02767697535455227, 0.015840841457247734, -0.0036643068306148052, -0.0024918175768107176, 0.02247975394129753, -0.01900900900363922, -0.01271716970950365, 0.011133085004985332, -0.04827006906270981, -0.00081150938058272, 0.06030198559165001, -0.023618871346116066, -0.05400124937295914, 0.030061999335885048, 0.034832049161195755, 0.019080203026533127, 0.018021181225776672, 0.0005728955729864538, 0.021750008687376976, -0.052612949162721634, -0.04830566421151161, 0.010972896590828896, 0.0548199862241745, -0.007640090771019459, -0.00995837152004242, -0.011595851741731167, 0.03379972651600838, 0.08244356513023376, -0.008289743214845657, -0.00003681410089484416, 0.06492964923381805, -0.011061890050768852, 0.06631794571876526, -0.04855484515428543, -0.008845952339470387, -0.0003223232924938202, 0.023476481437683105, -0.006505423691123724, -0.008886000141501427, -0.017113447189331055, -0.06571278721094131, 0.049693964421749115, 0.020397307351231575, 0.05232816934585571, 0.04649019613862038, 0.020699884742498398, -0.04371359944343567, -0.013802889734506607, 0.04075901582837105, -0.01591203548014164, -0.05909167602658272, 0.043428823351860046, 0.07404258102178574, 0.009807081893086433, 0.031058726832270622, 0.008912697434425354, 0.010002868250012398, -0.012014120817184448, -0.011907328851521015, 0.03264281153678894, -0.030720552429556847, 0.014105468057096004, 0.024668995290994644, 0.014327951706945896, 0.06457367539405823, -0.08073489367961884, -0.01075931265950203, -0.004171569831669331, 0.01666847988963127, 0.0021458554547280073, -0.012690471485257149, -0.026253078132867813, 0.011150883510708809, 0.022372962906956673, 0.04374919831752777, -0.017282534390687943, 0.05791696161031723, -0.03088073991239071, 0.028015149757266045, -0.010608023963868618, -0.024313021451234818, 0.025487734004855156, 0.04748692363500595, -0.019169196486473083, 0.011355568654835224, -0.01924039237201214, -0.026306474581360817, -0.05307571589946747, 0.04385599121451378, -0.045671459287405014, 0.0050281318835914135, 0.02913646772503853, 0.02112705446779728, -0.01583194173872471, 0.014950905926525593, -0.013153237290680408, 0.052506156265735626, -0.034582868218421936, 0.022034786641597748, -0.007849225774407387, 0.06706549227237701, 0.022568749263882637, 0.02034391090273857, 0.02164321579039097, 0.034992240369319916, -0.048626042902469635, 0.014488140121102333, -0.039797887206077576, 0.0415065623819828, -0.015342476777732372, -0.08408104628324509, -0.03723487630486488, -0.0574897937476635, -0.0014639428118243814, -0.003303883131593466, -0.02474018931388855, -0.010928399860858917, 0.06859617680311203, 0.05140263959765434, -0.05606589838862419, 0.035490602254867554, -0.01423895824700594, 0.07539527863264084, -0.02164321579039097, -0.05108226090669632, 0.011871730908751488, -0.08920706808567047, 0.011133085004985332, 0.052114587277173996, -0.01718464307487011, -0.07532408833503723, -0.04791409522294998, 0.02262214384973049, 0.023992644622921944, 0.030044201761484146, -0.008596770465373993, -0.0441407710313797, -0.05147383362054825, 0.009976170025765896, -0.013153237290680408, 0.00541970320045948, -0.031503695994615555, 0.011017393320798874, -0.047166548669338226, -0.023084910586476326, 0.03848078474402428, -0.04453234001994133, -0.034707460552453995, -0.007875923998653889, 0.003766649402678013, 0.033621739596128464, 0.08002294600009918, 0.014123266562819481, 0.016312506049871445, -0.00401360634714365, 0.019827749580144882, -0.044496744871139526, -0.06991328299045563, -0.0415065623819828, 0.02997300587594509, -0.06713669002056122, 0.05339609086513519, 0.015814142301678658, 0.0046766079030931, -0.007226271089166403, 0.002360552316531539, -0.056777846068143845, -0.035757582634687424, -0.002738774521276355, -0.02527415007352829, -0.01897341199219227, -0.03776883706450462, 0.0508686788380146, -0.00005443898407975212, 0.010056263767182827, 0.04168454930186272, -0.07781590521335602, 0.023494280874729156, -0.0032215642277151346, -0.007235170342028141, -0.050761885941028595, 0.044995106756687164, 0.04570705443620682, -0.03887235373258591, 0.03954870626330376, -0.026822637766599655, -0.007924869656562805, -0.06699429452419281, -0.035508401691913605, -0.0006796877714805305, -0.04236089810729027, 0.09960150718688965, -0.01693546026945114, -0.018795425072312355, -0.0061716982163488865, 0.03063155896961689, -0.0240816380828619, 0.03285639360547066, 0.020913468673825264, 0.007030485663563013, -0.0030257785692811012, -0.001475066994316876, 0.01820806786417961, 0.033639539033174515, -0.041257381439208984, -0.03638053685426712, -0.05375206470489502, 0.023885851725935936, 0.06969969719648361, 0.014390246942639351, -0.03422689437866211, -0.04097260162234306, -0.04841245710849762, 0.00793376937508583, 0.03250041976571083, -0.02235516346991062, -0.006309638265520334, 0.023992644622921944, 0.042182911187410355, 0.02808634378015995, -0.02449100837111473, 0.0401182621717453, 0.06578398495912552, -0.0133757209405303, -0.019364982843399048, 0.010670319199562073, -0.04478152096271515, 0.017834294587373734, 0.032019857317209244, -0.0427880696952343, -0.007132827769964933, 0.018813222646713257, 0.06717228144407272, -0.016410399228334427, -0.03061375953257084, 0.03260721266269684, -0.015404772944748402, 0.031361304223537445, 0.030133195221424103, 0.03894355148077011, -0.014764019288122654, 0.009985068812966347, 0.024437611922621727, 0.011408965103328228, 0.06471606343984604, -0.013010847382247448, -0.010723715648055077, 0.02913646772503853, 0.015093295834958553, 0.010323244147002697, -0.006843599025160074, 0.05802375450730324, -0.03652292862534523, 0.035259220749139786, -0.010625822469592094, 0.0327318049967289, -0.022782333195209503, 0.024010442197322845, -0.019436176866292953, 0.06144110485911369, 0.03305217996239662, 0.0016463794745504856, 0.02434861846268177, -0.005059279967099428, -0.04442554712295532 ]
17,114
imodels.rule_set.fplasso
_extract_rules
null
def _extract_rules(self, X, y) -> List[str]: X = pd.DataFrame(X, columns=self.feature_placeholders) itemsets = extract_fpgrowth(X, minsupport=self.minsupport, maxcardinality=self.maxcardinality, verbose=self.verbose) return itemsets_to_rules(itemsets)
(self, X, y) -> List[str]
[ 0.014051931910216808, 0.0232956912368536, -0.008183653466403484, -0.041055772453546524, 0.012259956449270248, 0.012774484232068062, 0.016606828197836876, 0.0028565165121108294, 0.07600817829370499, -0.001177647733129561, 0.045917171984910965, 0.04183643311262131, -0.010742985643446445, -0.025123151019215584, 0.012410765513777733, -0.02900872379541397, -0.04172997921705246, 0.01054782047867775, 0.0487559475004673, -0.0009165026713162661, -0.0066977329552173615, -0.031989436596632004, 0.017369749024510384, 0.010308299213647842, 0.03289429470896721, -0.005469075869768858, 0.017210068181157112, -0.007780015468597412, -0.02125532180070877, -0.013253526762127876, -0.06397887319326401, 0.003967630676925182, -0.048968855291604996, -0.01747620292007923, -0.04655589535832405, -0.04080737754702568, 0.012472864240407944, 0.014185000211000443, 0.03275235742330551, 0.01176317036151886, -0.009607476182281971, -0.04155255854129791, 0.013448692858219147, 0.034118518233299255, -0.04620105028152466, -0.026595765724778175, -0.05674000084400177, 0.0007529404829256237, -0.023171493783593178, -0.05975619703531265, -0.034579817205667496, -0.03640728071331978, 0.026755446568131447, 0.05801744759082794, 0.04336227476596832, -0.005850536283105612, -0.03800408914685249, 0.052943140268325806, 0.08814393728971481, 0.0021324073895812035, -0.01378579717129469, 0.05422058701515198, -0.05439801141619682, -0.0034043111372739077, 0.009634089656174183, -0.054788343608379364, -0.06241754814982414, 0.0021202093921601772, -0.02831677347421646, 0.01731652207672596, -0.03544919192790985, 0.008778021670877934, 0.07274358719587326, -0.0008627212373539805, 0.0003235204494558275, -0.019658511504530907, 0.010742985643446445, -0.012951907701790333, 0.06071428209543228, -0.024466685950756073, -0.02776676043868065, 0.10326041281223297, -0.020776279270648956, -0.0171834547072649, 0.01839880459010601, -0.03016197495162487, 0.06082073599100113, 0.04694622755050659, 0.0172189399600029, -0.014344681054353714, -0.02375699207186699, -0.0022288812324404716, -0.025815103203058243, -0.007456217892467976, 0.00025670946342870593, 0.03846539184451103, -0.09119562059640884, 0.009527635760605335, 0.010130875743925571, -0.007473960053175688, 0.005256167612969875, -0.0014171693474054337, -0.04048801586031914, 0.10304750502109528, 0.01442452147603035, 0.007957438938319683, -0.03729439526796341, -0.046733319759368896, -0.05585288256406784, -0.018017344176769257, -0.07764047384262085, 0.03761375695466995, 0.015205183997750282, 0.0034309248439967632, 0.027057066559791565, -0.037046004086732864, -0.05514318868517876, -0.04020414128899574, -0.02911517769098282, -0.027411913499236107, 0.013581760227680206, -0.0016766509506851435, 0.0045686522498726845, 0.05273022875189781, -0.029221631586551666, 0.03152813762426376, 0.007895341143012047, -0.020084327086806297, 0.0464494414627552, -0.07423394173383713, 0.004344655200839043, 0.009359084069728851, -0.05404316261410713, 0.0026147770695388317, -0.062311094254255295, -0.07735659927129745, 0.06071428209543228, -0.029984552413225174, 0.06571762263774872, -0.07622108608484268, 0.03193620964884758, 0.017884276807308197, 0.008188089355826378, -0.020953701809048653, -0.04336227476596832, 0.004040817730128765, 0.0007801084429956973, 0.08133088052272797, 0.030374884605407715, -0.03381689637899399, -0.04031059518456459, -0.00808163546025753, -0.0036260904744267464, -0.0928988829255104, 0.01928592287003994, 0.04180094972252846, -0.051701173186302185, 0.0033976577688008547, 0.09807965159416199, 0.004362397361546755, -0.03246847912669182, -0.05244635418057442, -0.1153252050280571, 0.02221340872347355, 0.02719900570809841, 0.04208482801914215, 0.03138619661331177, -0.040558986365795135, 0.021308548748493195, 0.0022310991771519184, 0.03269913047552109, -0.03725891187787056, -0.052162475883960724, -0.001778669422492385, -0.021202094852924347, 0.023206979036331177, -0.01273012813180685, 0.04254612699151039, 0.013626116327941418, 0.10524754971265793, 0.022390831261873245, -0.02618769183754921, -0.017396362498402596, -0.08062119036912918, 0.0199069045484066, -0.00907077081501484, 0.002548243384808302, 0.007225567474961281, -0.023419886827468872, 0.053901225328445435, -0.006169898435473442, -0.06720797717571259, -0.0016844132915139198, 0.05489479750394821, -0.0001806114596547559, -0.04034607857465744, -0.03754279017448425, 0.060962677001953125, -0.037471819669008255, -0.02411183901131153, -0.02480378933250904, 0.007212260738015175, 0.0016943933442234993, 0.04062995687127113, -0.041907403618097305, -0.0032135811634361744, -0.054823826998472214, 0.019569799304008484, -0.1022668406367302, -0.014131772331893444, 0.00833002757281065, 0.0034664093982428312, -0.05819487199187279, -0.017502816393971443, 0.03190072625875473, -0.008702617138624191, -0.006387242116034031, 0.008361076936125755, -0.008001795038580894, -0.05109793692827225, 0.00659571448341012, -0.04293645918369293, -0.030800700187683105, 0.016553601250052452, 0.04534941911697388, -0.014548717997968197, 0.04737204313278198, -0.007513880264014006, 0.016243111342191696, -0.010130875743925571, -0.013014005497097969, -0.03899766132235527, 0.06032394990324974, -0.005402542185038328, 0.03452659025788307, 0.06326918303966522, 0.032379768788814545, 0.03693955019116402, 0.034650787711143494, 0.035928234457969666, -0.049394670873880386, -0.042333219200372696, 0.023703765124082565, -0.04084286466240883, 0.007602591998875141, 0.04158804193139076, 0.009793770499527454, -0.009687316603958607, -0.01734313555061817, 0.0017099179094657302, -0.005726339761167765, 0.018842363730072975, 0.03686857968568802, -0.03486369550228119, -0.042368706315755844, -0.06199173256754875, -0.06039492040872574, -0.03112006187438965, 0.029984552413225174, -0.07015320658683777, 0.04712365195155144, 0.045065540820360184, 0.0138301532715559, -0.017077000811696053, -0.06213366985321045, 0.017857663333415985, -0.00962521880865097, 0.018576228991150856, -0.025353802368044853, 0.01394547801464796, -0.03825248405337334, -0.009589734487235546, -0.02861839160323143, 0.029523251578211784, -0.03913959860801697, 0.04566878080368042, 0.004488811828196049, -0.013750312849879265, 0.0007579305092804134, -0.010059906169772148, 0.015018889680504799, 0.020261751487851143, -0.0014881386887282133, -0.012925293296575546, -0.0008222464821301401, -0.030641019344329834, -0.006968303583562374, -0.026826415210962296, -0.029718417674303055, -0.035963721573352814, -0.03860732913017273, -0.04165901243686676, 0.04169449582695961, 0.018487516790628433, 0.07465976476669312, 0.04031059518456459, 0.03401206433773041, -0.08289220929145813, 0.023774733766913414, 0.024466685950756073, 0.006041266489773989, 0.025158636271953583, 0.0553206130862236, 0.02499895542860031, -0.05510770529508591, -0.035768553614616394, 0.045065540820360184, -0.02634737268090248, 0.025974784046411514, -0.026134464889764786, 0.03491692245006561, 0.012180115096271038, 0.024040868505835533, -0.0598626509308815, -0.0399557463824749, -0.020314978435635567, -0.07629205286502838, 0.07622108608484268, 0.03640728071331978, 0.02457313984632492, 0.01210914645344019, -0.03127974271774292, 0.04825916141271591, 0.028032895177602768, 0.02198275737464428, 0.030676502734422684, -0.016074558719992638, -0.041942887008190155, 0.0007645839359611273, -0.0555335208773613, -0.006493696011602879, -0.0015003365697339177, 0.009044157341122627, 0.01866494119167328, 0.03614114224910736, 0.0021346251014620066, 0.050317272543907166, 0.05865617096424103, -0.006675554905086756, -0.0376492440700531, -0.04297194257378578, 0.03846539184451103, 0.01685522124171257, 0.012898679822683334, 0.05241086706519127, -0.013386594131588936, -0.08558904379606247, 0.026240918785333633, 0.01668666861951351, 0.04559781029820442, 0.009669574908912182, -0.04492359980940819, 0.02129080705344677, 0.0333910807967186, 0.04307840019464493, 0.022035984322428703, -0.06983384490013123, 0.014335809275507927, -0.009616347961127758, 0.030995866283774376, 0.0933956727385521, -0.04925273358821869, -0.001984924077987671, 0.031102320179343224, 0.008015101775527, 0.002142387442290783, 0.0210956409573555, 0.04439133033156395, 0.014859208837151527, -0.029576478525996208, -0.0288490429520607, 0.03182975575327873, 0.027216747403144836, -0.019498830661177635, 0.004883578512817621, 0.027624821290373802, 0.0685209110379219, -0.010485721752047539, 0.012889808975160122, 0.03754279017448425, 0.0037680291570723057, 0.04155255854129791, -0.024200549349188805, 0.013643858022987843, -0.01800847426056862, 0.020155297592282295, -0.06039492040872574, -0.018505258485674858, 0.028405483812093735, -0.004990032874047756, 0.06969190388917923, 0.007700175046920776, 0.014043061062693596, -0.02904420904815197, 0.010343783535063267, -0.03163459151983261, -0.03559113293886185, 0.047655921429395676, 0.021379517391324043, 0.019729480147361755, -0.05109793692827225, -0.03637179359793663, -0.017662497237324715, 0.027837729081511497, -0.061459459364414215, 0.0029363571666181087, 0.008769150823354721, 0.06731443107128143, -0.03479272499680519, 0.018647197633981705, 0.012455121614038944, 0.008622776716947556, 0.019197210669517517, -0.004941241350024939, -0.06074976921081543, 0.010423623956739902, 0.06621440500020981, 0.054327040910720825, 0.02861839160323143, 0.02569090574979782, 0.02368602156639099, -0.025176377967000008, -0.0013262397842481732, -0.0014992275973781943, -0.03305397555232048, 0.01563987135887146, -0.0750855803489685, 0.011816397309303284, -0.03956541419029236, 0.014397908002138138, -0.05574642866849899, -0.008662696927785873, -0.038784753531217575, -0.053368955850601196, -0.029523251578211784, -0.054717373102903366, -0.01790202036499977, 0.027607079595327377, 0.02082950621843338, 0.01350191980600357, 0.008631647564470768, 0.017955247312784195, 0.09807965159416199, 0.04130416363477707, -0.02467959374189377, -0.021397260949015617, -0.04758495092391968, 0.004901321139186621, -0.1021248996257782, 0.0008094942313618958, -0.045455873012542725, 0.001570196938700974, 0.050281789153814316, 0.024236034601926804, -0.003708148840814829, 0.06021749600768089, 0.011088961735367775, -0.033852383494377136, -0.021113382652401924, 0.05145278200507164, 0.10013776272535324, 0.007522751577198505, 0.027021581307053566, 0.036584701389074326, -0.061388492584228516, -0.024786047637462616, -0.0377202108502388, 0.00821470282971859, -0.0012353103375062346, 0.039742838591337204, -0.046875257045030594, -0.01613665744662285, -0.0244489423930645, -0.0466623492538929, 0.027819987386465073, 0.043610669672489166, 0.061920762062072754, 0.010228457860648632, 0.043717123568058014, -0.03222008794546127, 0.016615699976682663, -0.01409628801047802, -0.022923100739717484, -0.021273063495755196, -0.041126739233732224, -0.003763593500480056, -0.010361526161432266, -0.06915963441133499, -0.043220337480306625, -0.02299407124519348, -0.008618340827524662, 0.023011812940239906, 0.0021202093921601772, -0.029878098517656326, 0.030303914099931717, -0.008817941881716251, 0.03312494605779648, 0.021574683487415314, 0.04158804193139076, 0.027163520455360413, -0.01563987135887146, -0.003337777452543378, -0.054717373102903366, 0.03379915654659271, 0.026489311829209328, 0.016047945246100426, 0.004067431204020977, -0.021042414009571075, -0.03952993080019951, -0.051701173186302185, -0.04126868024468422, -0.03571532666683197, -0.008644954301416874, 0.03360398858785629, -0.025353802368044853, 0.018984302878379822, 0.01537373661994934, 0.05354637652635574, -0.03942347690463066, 0.0932537317276001, 0.006888463161885738, -0.015533417463302612, 0.017458461225032806, -0.03387012332677841, 0.019800450652837753, 0.06600149720907211, 0.008201396092772484, 0.012180115096271038, 0.023739248514175415, -0.060536861419677734, 0.06117558479309082, -0.04265258088707924, 0.016269724816083908, 0.015400350093841553, -0.010565563105046749, 0.06369499862194061, 0.020581113174557686, -0.015347123146057129, 0.02499895542860031, 0.010192973539233208, 0.029949067160487175, 0.005180763080716133, -0.0034154001623392105, 0.02599252574145794, -0.005961425602436066, -0.004830351565033197, 0.017422975972294807, 0.016615699976682663, -0.010778470896184444, 0.01862945593893528, -0.018017344176769257, -0.0002686301013454795, 0.005265038926154375, -0.01345756370574236, 0.07579527050256729, -0.000041375689761480317, 0.0254957415163517, 0.05422058701515198, -0.01610117219388485, -0.01971173845231533, -0.0009985610377043486, -0.1156090795993805, 0.03301849216222763, 0.017955247312784195, -0.0600045882165432, -0.010583304800093174, -0.01807057112455368, 0.032149117439985275, -0.09616347402334213, -0.007709046360105276, -0.004821480717509985, 0.009722801856696606, 0.004604137036949396, -0.023579567670822144, -0.01240189466625452, -0.054788343608379364, 0.000975828617811203, -0.04332679137587547, 0.002878694562241435, -0.022852132096886635, -0.023242464289069176, 0.04914627969264984, 0.025602195411920547, -0.02973615936934948, 0.023366659879684448, -0.00027486763428896666, 0.0030028908513486385, 0.05148826539516449, -0.012943035922944546, -0.002929703565314412, 0.02411183901131153, 0.05585288256406784, 0.02033272013068199, -0.018576228991150856, -0.021823076531291008, -0.036194369196891785, -0.028955496847629547, -0.04006220027804375, -0.03690406307578087, -0.020297234877943993, 0.033852383494377136, 0.03491692245006561, 0.03397657722234726, -0.004444455727934837, 0.04126868024468422, -0.02680867351591587, 0.014859208837151527, -0.029221631586551666, -0.05723678320646286, -0.028405483812093735, -0.010751857422292233, 0.03147491067647934, 0.050814058631658554, -0.05716581642627716, -0.031155547127127647, 0.0003598368202801794, 0.006480389274656773, 0.016642313450574875, -0.028210317716002464, -0.07057902216911316, 0.011922851204872131, -0.009367954917252064, -0.010370397008955479, 0.039636384695768356, 0.02345537208020687, 0.03647824749350548, -0.011310741305351257, -0.003863394260406494, 0.006777573376893997, -0.002767804777249694, -0.022390831261873245, -0.014397908002138138, 0.042333219200372696, 0.016482632607221603, -0.0072610522620379925, 0.044142939150333405, 0.00510092219337821, 0.017538301646709442, -0.03363947570323944, -0.07128871977329254, -0.09176337718963623, 0.02402312681078911, 0.039246052503585815, 0.008671567775309086, -0.03938799351453781, -0.030570048838853836, -0.02375699207186699, -0.021415002644062042, 0.04655589535832405, 0.011381709948182106, -0.0035462500527501106, -0.0013351109810173512, -0.035768553614616394, 0.03637179359793663, 0.02526509016752243, 0.08140184730291367, -0.015480190515518188, 0.018487516790628433, -0.019853677600622177, -0.06667570769786835, 0.006852978374809027, 0.013972091488540173, 0.0276603065431118, 0.0322023443877697, -0.03553790599107742, 0.021876303479075432, 0.06770476698875427, -0.0222488921135664, -0.029611963778734207, 0.051665689796209335, 0.015426963567733765, -0.03732988238334656, 0.002758933696895838, 0.0210601557046175, -0.01537373661994934, -0.01658908650279045, -0.015205183997750282, 0.024484427645802498, 0.014131772331893444, 0.006928383372724056, 0.01006877701729536, -0.009261501021683216, 0.0013362198369577527, -0.009784899652004242, 0.01734313555061817, 0.0310490932315588, -0.015364864841103554, 0.01266802940517664, -0.015533417463302612, 0.006715475115925074, -0.05276571586728096, 0.025211863219738007, 0.0665692538022995, 0.0028387741185724735, 0.0020558934193104506, 0.01751168817281723, 0.0017465114360675216, 0.0058061801828444, 0.08260832726955414, 0.014176128432154655, -0.04222676530480385, -0.011851882562041283, -0.0254957415163517, -0.0020226265769451857, 0.03952993080019951, -0.04513651132583618, -0.020314978435635567, 0.02299407124519348, -0.011984949931502342, 0.0005669231759384274, 0.009044157341122627, 0.001370595651678741, -0.010813955217599869, 0.008990930393338203, 0.004710590932518244, -0.02164565399289131, 0.009057464078068733, 0.017458461225032806, -0.02522960491478443, -0.031989436596632004, 0.07451782375574112, 0.042191281914711, 0.03009100630879402, 0.016775380820035934, -0.014992276206612587, 0.07742756605148315, 0.0210601557046175, -0.038323450833559036, 0.007159033790230751, -0.04864949360489845, 0.02467959374189377, 0.0600045882165432, -0.00388113665394485, 0.07054353505373001, -0.013989834114909172, -0.00900423713028431, -0.015817295759916306, -0.04346872866153717, 0.025939298793673515, 0.03628308326005936, 0.012588188983500004, -0.0028210319578647614, 0.014610815793275833, 0.013581760227680206, -0.001026283367536962, 0.04605911299586296, 0.026028010994195938, 0.025779617950320244, -0.05013984814286232, -0.025052182376384735, 0.0007529404829256237, -0.0030627711676061153, 0.022160181775689125, 0.004706155508756638, 0.00426259683445096, 0.027394171804189682, 0.04960757866501808, -0.08033730834722519, -0.029416797682642937, -0.04655589535832405, -0.0030472467187792063, 0.028565164655447006, -0.04432036355137825, 0.05812390148639679, 0.026436084881424904, -0.021894045174121857, 0.054327040910720825, 0.048933371901512146 ]
17,118
imodels.rule_set.rule_fit
_get_rules
Return the estimated rules Parameters ---------- exclude_zero_coef: If True (default), returns only the rules with an estimated coefficient not equalt to zero. subregion: If None (default) returns global importances (FP 2004 eq. 28/29), else returns importance over subregion of inputs (FP 2004 eq. 30/31/32). Returns ------- rules: pandas.DataFrame with the rules. Column 'rule' describes the rule, 'coef' holds the coefficients and 'support' the support of the rule in the training data set (X)
def _get_rules(self, exclude_zero_coef=False, subregion=None): """Return the estimated rules Parameters ---------- exclude_zero_coef: If True (default), returns only the rules with an estimated coefficient not equalt to zero. subregion: If None (default) returns global importances (FP 2004 eq. 28/29), else returns importance over subregion of inputs (FP 2004 eq. 30/31/32). Returns ------- rules: pandas.DataFrame with the rules. Column 'rule' describes the rule, 'coef' holds the coefficients and 'support' the support of the rule in the training data set (X) """ n_features = len(self.coef) - len(self.rules_) rule_ensemble = list(self.rules_without_feature_names_) output_rules = [] # Add coefficients for linear effects for i in range(0, n_features): if self.lin_standardise: coef = self.coef[i] * self.friedscale.scale_multipliers[i] else: coef = self.coef[i] if subregion is None: importance = abs(coef) * self.stddev[i] else: subregion = np.array(subregion) importance = sum(abs(coef) * abs([x[i] for x in self.winsorizer.trim(subregion)] - self.mean[i])) / len( subregion) output_rules += [(self.feature_names[i], 'linear', coef, 1, importance)] # Add rules for i in range(0, len(self.rules_)): rule = rule_ensemble[i] coef = self.coef[i + n_features] if subregion is None: importance = abs(coef) * (rule.support * (1 - rule.support)) ** (1 / 2) else: rkx = self.transform(subregion, [rule])[:, -1] importance = sum( abs(coef) * abs(rkx - rule.support)) / len(subregion) output_rules += [(self.rules_[i].rule, 'rule', coef, rule.support, importance)] rules = pd.DataFrame(output_rules, columns=[ "rule", "type", "coef", "support", "importance"]) if exclude_zero_coef: rules = rules.ix[rules.coef != 0] return rules
(self, exclude_zero_coef=False, subregion=None)
[ -0.017657751217484474, -0.016344044357538223, -0.0024209374096244574, -0.03821337968111038, -0.013620037585496902, -0.01839187927544117, -0.04447280243039131, -0.0579962432384491, -0.01524285040795803, -0.014103017747402191, 0.005303120706230402, 0.033499497920274734, -0.0014585996977984905, -0.004815311171114445, -0.03004135936498642, 0.03042774274945259, -0.007394424639642239, 0.006080718711018562, 0.0075248293578624725, -0.001223146915435791, -0.046559277921915054, -0.05382329598069191, 0.012335310690104961, 0.02438083291053772, 0.026409348472952843, 0.008780577220022678, -0.012122799642384052, -0.015416722744703293, 0.029539059847593307, -0.04702293872833252, -0.06487388163805008, 0.03253353759646416, -0.038831595331430435, -0.04087943211197853, -0.02204320952296257, -0.049109410494565964, 0.012315991334617138, -0.00005844813131261617, -0.0342915840446949, 0.06313515454530716, 0.0003918175643775612, -0.04609561711549759, 0.011717095971107483, 0.014499060809612274, -0.0698968693614006, -0.027066200971603394, -0.05274141952395439, 0.0315868966281414, 0.02830263040959835, -0.05115724727511406, -0.015426382422447205, -0.0072978283278644085, 0.04810481145977974, 0.024342194199562073, -0.00020345534721855074, -0.00776631897315383, -0.02492177113890648, -0.0008910981705412269, 0.05884628742933273, -0.0693172961473465, 0.0005149774951860309, -0.021540910005569458, -0.026641178876161575, 0.007814616896212101, 0.016392342746257782, -0.03879295662045479, -0.04261815920472145, -0.024071725085377693, 0.03351881355047226, 0.048684388399124146, -0.017551494762301445, 0.00036797040957026184, 0.08693640679121017, 0.007747000083327293, -0.012557481415569782, -0.026699136942625046, 0.023743299767374992, -0.05312780663371086, 0.024206960573792458, -0.01758047379553318, -0.010326113551855087, 0.03270740807056427, -0.0006810018676333129, 0.01148526556789875, 0.029423143714666367, -0.023801255971193314, 0.052007291465997696, -0.009142812341451645, 0.027819650247693062, -0.011253435164690018, -0.010210198350250721, 0.021347718313336372, -0.0025911880657076836, -0.03214715048670769, -0.004969864618033171, 0.024805855005979538, -0.05838262662291527, -0.023820575326681137, -0.020942015573382378, -0.04899349436163902, 0.007148104719817638, 0.06850589066743851, -0.04621152952313423, 0.06680580228567123, 0.03036978468298912, -0.036648526787757874, -0.03141302242875099, -0.008553576655685902, -0.0054480149410665035, 0.004767013248056173, -0.003779318882152438, 0.04304318130016327, -0.0014259986346587539, 0.033943839371204376, -0.0148081686347723, -0.054016489535570145, -0.06479660421609879, 0.004919151775538921, -0.021347718313336372, 0.0033639559987932444, 0.016566215083003044, 0.015976980328559875, -0.047370683401823044, 0.024361513555049896, 0.021135207265615463, -0.0035040201619267464, 0.039913471788167953, 0.012035862542688847, 0.1052510142326355, -0.055639300495386124, 0.012209735810756683, -0.027510544285178185, -0.003040359355509281, -0.032031238079071045, -0.014083698391914368, -0.023086445406079292, 0.062169190496206284, -0.015928681939840317, 0.014267230406403542, -0.025076324120163918, 0.07329705357551575, 0.030620934441685677, -0.04138173162937164, -0.02111588791012764, -0.018517455086112022, 0.006853486876934767, 0.018758945167064667, 0.060121357440948486, -0.005438355263322592, -0.002912369789555669, -0.005119588691741228, -0.012769992463290691, -0.06908546388149261, -0.04540012404322624, 0.024419471621513367, 0.0025211558677256107, -0.009814154356718063, -0.027684416621923447, 0.02509564347565174, -0.033171068876981735, -0.045245569199323654, 0.01496272161602974, -0.04354548081755638, -0.007094976957887411, 0.0249797273427248, 0.012258033268153667, -0.007983660325407982, -0.06560800969600677, -0.007737340405583382, -0.006399485748261213, -0.02656390331685543, -0.0599668025970459, -0.03239830210804939, 0.0433136522769928, -0.004090840928256512, 0.025675218552350998, 0.013909825123846531, 0.01627642847597599, -0.062169190496206284, 0.09821882098913193, 0.07944055646657944, 0.0030355295166373253, -0.04795026034116745, -0.00862119346857071, 0.004274373408406973, 0.013339908793568611, 0.010847731493413448, -0.03096868097782135, 0.00010542548989178613, 0.013069439679384232, -0.00943742971867323, -0.04033849388360977, 0.03274604678153992, -0.015407063066959381, -0.031142553314566612, -0.044820547103881836, 0.024631982669234276, 0.06514434516429901, 0.027665097266435623, -0.005530121736228466, -0.05757122114300728, 0.026042284443974495, 0.008268618024885654, 0.028321949765086174, -0.076619952917099, 0.030717531219124794, -0.06676716357469559, -0.011417648755013943, -0.0839998871088028, 0.02416832186281681, -0.00035317917354404926, -0.048568472266197205, 0.002912369789555669, 0.022062528878450394, 0.05699164420366287, 0.013639356940984726, 0.012499523349106312, 0.03268808871507645, -0.01289556734263897, 0.00421641580760479, -0.012644417583942413, -0.03531550243496895, 0.025597942993044853, -0.05718483775854111, 0.04795026034116745, -0.03291992098093033, 0.022159123793244362, 0.00010972702875733376, 0.013368887826800346, 0.00257186871021986, -0.010809093713760376, -0.03755652904510498, 0.0313357450067997, -0.06182144582271576, 0.05424831807613373, 0.046559277921915054, -0.0029582527931779623, 0.014682593755424023, 0.029268590733408928, 0.030949361622333527, -0.026621859520673752, -0.0632510706782341, 0.00210217060521245, -0.016353704035282135, -0.02698892541229725, 0.08144975453615189, 0.08137247711420059, -0.009751367382705212, -0.0276457779109478, -0.013127397745847702, -0.01741626113653183, -0.00029929669108241796, -0.0296163372695446, 0.02105792984366417, -0.020555630326271057, -0.09613234549760818, -0.019241925328969955, -0.0023835066240280867, 0.030736850574612617, -0.03722810372710228, 0.015503659844398499, 0.015522978268563747, 0.010413049720227718, -0.04505237936973572, -0.0446273572742939, 0.008877173066139221, -0.027838969603180885, 0.018691327422857285, 0.022217081859707832, 0.019135668873786926, -0.035779163241386414, 0.04435688629746437, -0.0063560171984136105, 0.010181219317018986, -0.010277815163135529, 0.029597017914056778, 0.024419471621513367, -0.04010666161775589, 0.029809528961777687, 0.01742592081427574, 0.019628308713436127, -0.00045520870480686426, -0.03253353759646416, 0.018739625811576843, 0.007447552401572466, -0.06707626581192017, -0.01742592081427574, 0.0030113805551081896, -0.017049195244908333, -0.011436967179179192, -0.007756659761071205, 0.0021178675815463066, 0.09118663519620895, 0.010210198350250721, 0.09389132261276245, 0.01969592645764351, 0.034310903400182724, -0.10973306745290756, 0.031316425651311874, -0.003984585404396057, -0.026679817587137222, 0.03618486598134041, 0.09814154356718063, -0.008828875608742237, -0.04424097388982773, -0.03423362597823143, 0.007346126716583967, -0.007872574962675571, 0.03477456420660019, -0.032958559691905975, 0.01069317851215601, 0.02246823161840439, 0.0592326745390892, -0.016788385808467865, -0.05100269243121147, -0.03543141484260559, -0.029249271377921104, 0.011726755648851395, 0.07302658259868622, 0.05320508033037186, -0.023434191942214966, 0.045631956309080124, 0.06676716357469559, -0.009389132261276245, 0.038657721132040024, 0.013533100485801697, 0.05590977147221565, -0.040570322424173355, -0.0009176621097140014, -0.02938450686633587, -0.04752523824572563, -0.02803216129541397, 0.015880383551120758, -0.00037491327384486794, -0.05204593017697334, -0.026428667828440666, 0.06205327808856964, 0.009379472583532333, -0.009901090525090694, 0.02324100024998188, 0.035392776131629944, 0.024033086374402046, -0.027549181133508682, -0.002987231593579054, 0.0024245597887784243, -0.03740197420120239, -0.028283311054110527, 0.05077086389064789, 0.018546434119343758, 0.05011400952935219, 0.007548978086560965, -0.036822397261857986, 0.05459606274962425, 0.07349024713039398, 0.016740089282393456, -0.0010601412504911423, -0.03228238597512245, -0.013272291980683804, 0.048027534037828445, -0.03521890565752983, 0.04022257775068283, 0.0030548488721251488, -0.028341269120573997, 0.07198334485292435, -0.0018715476617217064, -0.028978802263736725, 0.011581861414015293, 0.04273407533764839, 0.013108078390359879, -0.05675981566309929, -0.013243312947452068, 0.020014693960547447, 0.02036243863403797, -0.009379472583532333, -0.0037334358785301447, 0.0052596526220440865, 0.06692171841859818, -0.03286196291446686, 0.05807352066040039, -0.006312549114227295, -0.04478190839290619, 0.05965769663453102, -0.037517890334129333, 0.020536310970783234, 0.042154498398303986, -0.005607398226857185, -0.03320970758795738, -0.024303555488586426, 0.07731544226408005, -0.0352768637239933, 0.06889227032661438, 0.04284999147057533, -0.014499060809612274, -0.027742374688386917, -0.04211585968732834, 0.004247809294611216, 0.04292726516723633, 0.005530121736228466, -0.002721592551097274, -0.0020599099807441235, -0.047370683401823044, -0.03506435081362724, 0.02378193661570549, 0.036436013877391815, -0.04852983355522156, 0.0009218881605193019, 0.01719409041106701, 0.018218006938695908, 0.029597017914056778, 0.016527576372027397, -0.017107153311371803, -0.008857853710651398, -0.01856575347483158, 0.014972381293773651, -0.051891375333070755, 0.021695462986826897, 0.01388084702193737, 0.026254795491695404, 0.01844017766416073, 0.006071059033274651, 0.06927865743637085, -0.025945687666535378, 0.05111860856413841, 0.022178443148732185, 0.003639254719018936, -0.013349568471312523, -0.05849854275584221, -0.011591521091759205, -0.04968898743391037, 0.015638893470168114, -0.03653261065483093, -0.07758591324090958, -0.03792359307408333, -0.0839226096868515, -0.017889581620693207, -0.052934613078832626, 0.010074963793158531, 0.05942586436867714, -0.039217978715896606, 0.029751570895314217, 0.052664145827293396, -0.018353242427110672, 0.03740197420120239, 0.0376531258225441, -0.05451878905296326, -0.049341242760419846, 0.02438083291053772, -0.019087372347712517, -0.12217463552951813, -0.009959048591554165, 0.017937878146767616, 0.03405975177884102, 0.02836058847606182, 0.02569453790783882, -0.03205055743455887, 0.0606236569583416, 0.07233109325170517, 0.005399717018008232, -0.01795719750225544, 0.001820834819227457, 0.07244700938463211, 0.0363394170999527, 0.031490299850702286, 0.06468068808317184, -0.03599167242646217, 0.019068052992224693, 0.016913961619138718, 0.0055784196592867374, -0.0027336671482771635, -0.035566650331020355, -0.03172212839126587, 0.01276033278554678, -0.024728577584028244, -0.0891774371266365, -0.01175573468208313, 0.07584718614816666, -0.005636377260088921, -0.008853023871779442, 0.010934668593108654, -0.00046366083552129567, 0.015204211696982384, -0.016237789765000343, -0.042965903878211975, -0.004668002016842365, -0.00017915540956892073, -0.015300807543098927, -0.020285161212086678, -0.02922995202243328, -0.038561128079891205, -0.02606160379946232, 0.003702042158693075, -0.02252618968486786, 0.02063290774822235, 0.006331868469715118, -0.02812875807285309, 0.028148077428340912, 0.05181409791111946, 0.014218932949006557, 0.036822397261857986, -0.022004570811986923, 0.019396478310227394, -0.02264210395514965, -0.07766319066286087, 0.04756387323141098, -0.04354548081755638, 0.028321949765086174, -0.047100212424993515, 0.01175573468208313, 0.012277352623641491, -0.03869635984301567, -0.030794808641076088, 0.016121873632073402, -0.006945252884179354, 0.05927131325006485, 0.009205599315464497, -0.026699136942625046, 0.012287012301385403, 0.026969606056809425, -0.0239558108150959, 0.029790209606289864, 0.02660254016518593, -0.007292998488992453, 0.011494925245642662, -0.006684443913400173, 0.020922696217894554, 0.1132877990603447, -0.01524285040795803, -0.0011301733320578933, 0.05305052921175957, -0.0672694593667984, 0.009022067300975323, -0.04358411952853203, 0.008770917542278767, 0.07824277132749557, -0.030620934441685677, -0.017010556533932686, 0.011234115809202194, -0.10741475969552994, -0.003805882763117552, 0.021096568554639816, 0.003933872561901808, 0.03979755565524101, 0.026409348472952843, -0.041884031146764755, 0.05196865275502205, -0.010171559639275074, 0.01622813008725643, -0.004989183973520994, -0.019502734765410423, -0.013088759034872055, 0.010055644437670708, 0.02362738363444805, 0.03564392775297165, -0.02716279774904251, 0.14211204648017883, 0.0720219835639, -0.000575349957216531, 0.020014693960547447, -0.02905607968568802, 0.009785175323486328, -0.01708783395588398, -0.08013604581356049, 0.006616826634854078, -0.035392776131629944, -0.03968163952231407, -0.008727448992431164, 0.033383581787347794, 0.06881500035524368, -0.1013098955154419, 0.023163722828030586, -0.0002233782724943012, -0.017271365970373154, 0.010103942826390266, 0.028283311054110527, -0.04771842807531357, -0.0014525625156238675, 0.02884356863796711, -0.037691764533519745, -0.0004289466596674174, -0.005887526553124189, -0.005481823347508907, -0.030949361622333527, -0.00759244617074728, -0.04284999147057533, 0.035354141145944595, 0.029751570895314217, -0.011243775486946106, 0.07642675936222076, 0.008017469197511673, -0.031161872670054436, -0.006254591513425112, 0.042579520493745804, 0.016092894598841667, -0.04087943211197853, -0.04076351597905159, 0.0006966987275518477, -0.04965034872293472, -0.01610255427658558, -0.010132920928299427, 0.0070563387125730515, -0.044704634696245193, -0.011330711655318737, 0.02611956186592579, -0.015870723873376846, 0.022120486944913864, -0.007239870727062225, -0.0038082976825535297, -0.00908968411386013, -0.01666281186044216, -0.03668716549873352, -0.03075616993010044, 0.017329324036836624, 0.0362621434032917, -0.0753062516450882, 0.03639737516641617, -0.025984326377511024, -0.04555467888712883, 0.006003441754728556, 0.027877608314156532, -0.038348615169525146, 0.04053168371319771, -0.010876710526645184, -0.01882656291127205, 0.044975101947784424, -0.02998340129852295, 0.046288806945085526, 0.024902451783418655, -0.09396860003471375, 0.0026732946280390024, -0.016575874760746956, 0.004745278973132372, 0.026196837425231934, -0.003784148721024394, -0.018111752346158028, 0.03220510855317116, 0.04837528243660927, 0.04965034872293472, 0.026873009279370308, 0.0007534488686360419, -0.05691437050700188, -0.032958559691905975, 0.0003320487739983946, 0.07774046808481216, -0.013407526537775993, -0.06394656002521515, 0.005911675747483969, -0.022603467106819153, -0.014305869117379189, 0.07642675936222076, -0.0002989948261529207, -0.042965903878211975, 0.034967754036188126, 0.013851867988705635, 0.03608826920390129, 0.036918994039297104, 0.024013767018914223, 0.03168348968029022, -0.012586460448801517, 0.05950314179062843, -0.042309053242206573, -0.012779652141034603, -0.018913498148322105, 0.018546434119343758, -0.012789311818778515, 0.011890968307852745, -0.0007003210484981537, 0.0473320446908474, 0.0028181886300444603, -0.02013060823082924, -0.005839228630065918, 0.002170995343476534, 0.024419471621513367, -0.06352153420448303, 0.05683709308505058, 0.00860187504440546, 0.023820575326681137, -0.023492150008678436, -0.03293924033641815, -0.005747462622821331, -0.02213980443775654, 0.01675940677523613, 0.037479251623153687, 0.021077249199151993, -0.03069821186363697, 0.06236238405108452, 0.01958967000246048, -0.019937416538596153, -0.019628308713436127, -0.0014634295366704464, -0.028012841939926147, 0.0032142321579158306, 0.008056106977164745, 0.01553263794630766, -0.0006369299371726811, 0.037305377423763275, 0.02590704895555973, -0.05220048502087593, 0.002924444153904915, -0.004610044416040182, 0.001113872742280364, 0.008350725285708904, 0.003305998397991061, 0.012605778872966766, 0.04559331759810448, -0.01958967000246048, 0.020285161212086678, 0.00677620992064476, -0.025211557745933533, -0.012837609276175499, -0.06178280711174011, -0.010335773229598999, 0.05386193469166756, 0.022835297510027885, -0.010886370204389095, -0.011852330528199673, -0.03282332420349121, 0.04984354227781296, 0.0579962432384491, -0.03591439500451088, -0.029268590733408928, 0.07337433099746704, -0.007790468167513609, 0.01303080189973116, 0.0024161075707525015, -0.021251121535897255, -0.004185022320598364, -0.009804494678974152, -0.04424097388982773, -0.004607629496604204, -0.06564664840698242, 0.06363745033740997, 0.040183939039707184, -0.01311773806810379, 0.0319925993680954, 0.0024776875507086515, 0.003856595605611801, 0.02159886807203293, -0.04891622066497803, -0.020227205008268356, 0.0369962714612484, 0.008442491292953491, -0.00810923520475626, -0.006636145990341902, 0.0019717661198228598, -0.06742401421070099, 0.09775516390800476, 0.03492911532521248, 0.037575848400592804, 0.009823814034461975, 0.016092894598841667, 0.025443388149142265, -0.03688035532832146, 0.0685831680893898, -0.016556555405259132, 0.0018486061599105597, -0.00928287673741579, 0.018198687583208084, -0.07789502292871475, -0.018324263393878937, -0.00007610709144501016, 0.005829568952322006, 0.025076324120163918, -0.006916274316608906, 0.06757856905460358, 0.040415771305561066, 0.009369812905788422, 0.014692253433167934, -0.02525019645690918 ]
17,120
imodels.rule_set.fplasso
_init_prediction_task
null
def _init_prediction_task(self): self.prediction_task = 'classification'
(self)
[ 0.027542825788259506, -0.006545348092913628, -0.04628870263695717, 0.0025941396597772837, -0.0031744937878102064, 0.006689345929771662, -0.02598939649760723, 0.03529251739382744, 0.017908072099089622, 0.02007240056991577, 0.028485355898737907, 0.053270407021045685, 0.04248367249965668, -0.007500968873500824, 0.019217142835259438, -0.008103140629827976, 0.05962375923991203, 0.046567969024181366, -0.015106664039194584, -0.017035359516739845, 0.0005203551845625043, 0.008028960786759853, -0.047510500997304916, 0.007535877637565136, 0.02869480662047863, 0.0362001396715641, 0.0004819012538064271, -0.05487620085477829, 0.025064319372177124, -0.0029519519302994013, -0.051943883299827576, -0.00046608332195319235, -0.040109895169734955, 0.05644708126783371, 0.003202856983989477, 0.003846482839435339, 0.014233950525522232, 0.07034067809581757, -0.07309845089912415, -0.012226710096001625, 0.007317699491977692, -0.06622146815061569, -0.03707285225391388, 0.01564774662256241, -0.023196713998913765, 0.019060054793953896, -0.024540692567825317, -0.034140534698963165, 0.048383213579654694, -0.047056689858436584, -0.041925135999917984, -0.0281013622879982, -0.006388260051608086, 0.07068976014852524, -0.05651690065860748, 0.06772253662347794, 0.026094121858477592, 0.020107310265302658, -0.027246102690696716, 0.002441414864733815, -0.011336542665958405, 0.01810006983578205, -0.01726226508617401, 0.0124274343252182, 0.0053759124130010605, 0.020770572125911713, -0.049674827605485916, 0.038573917001485825, 0.01723608374595642, 0.050861719995737076, 0.010481283999979496, -0.053270407021045685, -0.003859573742374778, 0.008046414703130722, 0.047301050275564194, -0.009067488834261894, -0.040493886917829514, -0.051350437104701996, 0.004533744417130947, 0.03249983489513397, -0.014155406504869461, 0.03766629844903946, -0.022306546568870544, -0.07575149834156036, -0.02291744574904442, -0.07096903026103973, 0.004191204439848661, -0.05599327012896538, -0.03585105389356613, -0.036165229976177216, -0.06524403393268585, 0.04314693436026573, 0.011336542665958405, 0.039900440722703934, 0.04422909766435623, 0.04108733311295509, -0.026931926608085632, -0.04471781849861145, -0.04733595624566078, -0.040214620530605316, -0.02002003788948059, -0.005463183857500553, -0.02091020531952381, -0.03461180254817009, 0.0058602686040103436, -0.058785952627658844, -0.042274221777915955, 0.01402449980378151, -0.021974915638566017, -0.030649684369564056, -0.023842521011829376, 0.09948929399251938, -0.04586980119347572, 0.05508565157651901, -0.053026046603918076, -0.009564935229718685, 0.002126147272065282, -0.033302731812000275, -0.009695842862129211, 0.0011792535660788417, -0.02653047814965248, 0.051594797521829605, -0.03031805343925953, 0.011502358131110668, -0.0017705167410895228, 0.023947246372699738, 0.034681618213653564, 0.06437131762504578, 0.012505978345870972, -0.08496734499931335, 0.055888544768095016, -0.057564154267311096, -0.035083066672086716, 0.01591828651726246, -0.03588596358895302, 0.015115390531718731, 0.01813497766852379, 0.036165229976177216, -0.02317925915122032, 0.027490463107824326, 0.020822934806346893, 0.003517033765092492, 0.003220311366021633, 0.0010903459042310715, 0.046114157885313034, -0.009844203479588032, -0.04091278836131096, 0.020142218098044395, 0.00871403981000185, -0.021957460790872574, 0.036793582141399384, -0.026303572580218315, -0.005615908652544022, -0.027542825788259506, 0.0014748851535841823, 0.03363436087965965, 0.029148617759346962, -0.02385997585952282, 0.030108600854873657, -0.025710128247737885, 0.006410077679902315, -0.026792291551828384, 0.028328267857432365, 0.03777102380990982, 0.0011956169037148356, -0.013884865678846836, -0.0039032092317938805, 0.03445471450686455, -0.018204795196652412, 0.029026437550783157, 0.025116682052612305, -0.06957268714904785, -0.026984289288520813, -0.010594736784696579, 0.006759162992238998, 0.014574308879673481, 0.05019845813512802, -0.021259291097521782, 0.049919188022613525, 0.08810911327600479, -0.0009256213088519871, 0.029113708063960075, -0.05114098638296127, 0.00871403981000185, 0.010062381625175476, 0.021678192541003227, 0.0021196019370108843, 0.02942788600921631, -0.04182041063904762, 0.0405287966132164, 0.019147325307130814, -0.0021817826200276613, -0.024540692567825317, 0.019269505515694618, 0.03588596358895302, -0.01541211362928152, 0.013300147838890553, 0.00691625103354454, 0.008543861098587513, -0.0004679923877120018, 0.027141377329826355, -0.0022210548631846905, 0.055050741881132126, 0.06203244626522064, 0.002766500459983945, 0.031173311173915863, -0.0015207026153802872, 0.04604434221982956, -0.016607729718089104, -0.03599068894982338, -0.03801538050174713, -0.02488977648317814, 0.005594091024249792, 0.04398474097251892, 0.043810196220874786, -0.022655632346868515, 0.002725046593695879, 0.016441915184259415, 0.006039174739271402, 0.006026084069162607, 0.03380890563130379, -0.007823873311281204, 0.043705470860004425, -0.00242832419462502, 0.021625829860568047, -0.009250759147107601, 0.023441074416041374, -0.04733595624566078, -0.041925135999917984, 0.018414245918393135, -0.017541533336043358, -0.020107310265302658, 0.0408080630004406, -0.01653791218996048, 0.02464541792869568, -0.013902319595217705, 0.01947895623743534, -0.0026312300469726324, -0.0675479918718338, -0.014932121150195599, 0.006929342169314623, 0.024086881428956985, -0.05819251015782356, -0.0605313815176487, -0.02207964099943638, 0.023091988638043404, 0.01672990992665291, 0.020037492737174034, -0.04388001561164856, -0.028310813009738922, 0.04963992163538933, -0.04855775460600853, -0.03274419531226158, -0.01552556548267603, -0.010097290389239788, -0.02080547995865345, 0.04695196449756622, -0.0031919481698423624, 0.067024365067482, 0.05281659588217735, -0.043705470860004425, 0.00874022115021944, -0.0061133550480008125, 0.03475143387913704, -0.021922552958130836, -0.008954036049544811, -0.014233950525522232, 0.01639827899634838, -0.013230330310761929, -0.05477147176861763, 0.124832883477211, 0.06419677287340164, -0.03185402601957321, -0.014094316400587559, 0.01020201575011015, -0.06433641165494919, -0.04977955296635628, -0.024593055248260498, -0.04520653933286667, -0.0044312006793916225, 0.07034067809581757, -0.08329173922538757, 0.02736828289926052, 0.059728484600782394, -0.024435967206954956, -0.05550455302000046, 0.010245651938021183, 0.016084102913737297, 0.012759065255522728, -0.03588596358895302, -0.02804899960756302, 0.06513930857181549, -0.004751922562718391, 0.020526211708784103, 0.0372823029756546, -0.03745684772729874, 0.0034188535064458847, 0.012104530818760395, 0.0030414052307605743, -0.005528637208044529, 0.061753179877996445, -0.06011247634887695, -0.030038785189390182, -0.04196004569530487, -0.03920227289199829, 0.040493886917829514, 0.04356583580374718, 0.03948153927922249, -0.007692965678870678, -0.010734370909631252, 0.03469907119870186, 0.021259291097521782, 0.008548224344849586, 0.05955393984913826, -0.03469907119870186, -0.007876235991716385, 0.06063610687851906, 0.009399119764566422, 0.03129549324512482, 0.014993211254477501, -0.04583489149808884, 0.004826103337109089, -0.023493437096476555, 0.009154760278761387, 0.013352510519325733, -0.029759516939520836, 0.012750337831676006, -0.04415928199887276, -0.05763397365808487, 0.059972845017910004, 0.0018261520890519023, 0.014391038566827774, 0.01872842386364937, 0.008971490897238255, -0.05093153566122055, 0.0348561592400074, 0.00030954042449593544, 0.026146484538912773, 0.017366990447044373, -0.002073784591630101, -0.0033926721662282944, -0.030492596328258514, -0.03958626464009285, 0.10004782676696777, 0.012985970824956894, 0.0003239947254769504, -0.015115390531718731, 0.0009392574429512024, 0.03742193803191185, -0.044403642416000366, -0.05819251015782356, 0.016625184565782547, 0.008561315014958382, 0.07041049003601074, 0.023598162457346916, 0.0467425137758255, -0.02312689647078514, -0.012087075971066952, 0.0026094121858477592, -0.04531126469373703, -0.0204040315002203, -0.03209838643670082, -0.0005566273466683924, 0.0053322771564126015, -0.00272941030561924, -0.014696488156914711, -0.004121387377381325, 0.04028443619608879, 0.05190897360444069, -0.03578123822808266, 0.01575247198343277, -0.0529562309384346, -0.01867605932056904, 0.03517033904790878, -0.002783954842016101, 0.024051973596215248, -0.040703337639570236, -0.015333568677306175, -0.018955327570438385, -0.008840583264827728, -0.027699913829565048, 0.026635203510522842, 0.0049744644202291965, 0.03564160317182541, -0.033110734075307846, -0.03211584314703941, -0.012802701443433762, -0.015220115892589092, 0.07631003111600876, 0.011284179985523224, 0.05204860866069794, -0.00933802966028452, -0.036060504615306854, -0.033110734075307846, 0.02726355753839016, -0.028764624148607254, -0.03126058354973793, 0.01758516952395439, -0.0012228891719132662, -0.011659447103738785, -0.016171373426914215, -0.037003036588430405, 0.03548451513051987, 0.03997026011347771, 0.04737086594104767, 0.039411723613739014, 0.021573467180132866, 0.040005169808864594, -0.0043853833340108395, -0.02248108945786953, 0.006898797117173672, -0.004926465451717377, -0.017009178176522255, -0.03284892067313194, -0.06712909042835236, 0.026687566190958023, -0.012697975151240826, -0.012366344220936298, 0.03361690789461136, -0.014556854031980038, -0.004804285708814859, 0.08001033961772919, 0.05058244988322258, -0.005755542777478695, 0.018501518294215202, 0.04911629110574722, 0.06622146815061569, 0.036653950810432434, 0.030771862715482712, -0.011729263700544834, -0.09062252938747406, 0.05285150557756424, -0.046812329441308975, 0.005253732670098543, 0.029707154259085655, 0.020177125930786133, 0.01639827899634838, -0.013736504130065441, -0.011973623186349869, -0.002301780739799142, -0.009407847188413143, -0.03888809680938721, 0.04506690427660942, -0.026687566190958023, -0.03923717886209488, 0.024819960817694664, -0.07288900017738342, 0.03798047453165054, -0.04761522635817528, -0.06255607306957245, -0.010961276479065418, 0.030143510550260544, 0.022865083068609238, 0.031382761895656586, 0.046114157885313034, 0.0029214071109890938, -0.0353972427546978, -0.028310813009738922, -0.0053759124130010605, -0.018257157877087593, -0.04056370630860329, 0.024907231330871582, -0.03293619304895401, 0.005685725715011358, 0.03825974091887474, -0.0353972427546978, 0.04712650552392006, 0.020299306139349937, -0.04552071541547775, -0.03874846175312996, -0.00777587341144681, -0.012113257311284542, 0.04276294261217117, 0.00035235792165622115, -0.09069234132766724, 0.017035359516739845, 0.03993535041809082, -0.00929439440369606, 0.02204473316669464, 0.01758516952395439, 0.055888544768095016, -0.005415184888988733, 0.017148811370134354, 0.06475531309843063, -0.03529251739382744, -0.0033381276298314333, -0.03126058354973793, -0.042029861360788345, 0.019758224487304688, -0.04604434221982956, -0.04108733311295509, -0.0010407103691250086, 0.060461562126874924, 0.04915120080113411, -0.04995409771800041, 0.009355484507977962, 0.03839937597513199, 0.009599843993782997, 0.03738702833652496, 0.02869480662047863, 0.028223540633916855, 0.030998768284916878, -0.028764624148607254, -0.013788866810500622, 0.01899023726582527, 0.022498544305562973, -0.0707944855093956, -0.010289287194609642, -0.08119722455739975, 0.03272674232721329, 0.05072208493947983, 0.009512572549283504, -0.01323905773460865, -0.022166913375258446, 0.03913245350122452, -0.005550455302000046, -0.014600490219891071, -0.009748205542564392, 0.016119010746479034, 0.029166070744395256, -0.007614421658217907, 0.028782077133655548, 0.02015967294573784, -0.013911047019064426, -0.00154033862054348, 0.01740189827978611, 0.009084943681955338, -0.030998768284916878, 0.0016799727454781532, 0.07219082862138748, -0.024139244109392166, -0.09222831577062607, -0.011895079165697098, 0.05693580210208893, 0.024767598137259483, 0.06671018898487091, -0.006030447315424681, -0.003303219098597765, 0.006767889950424433, 0.007090793922543526, -0.0408080630004406, -0.041541144251823425, 0.0034821252338588238, -0.027630096301436424, 0.04265821725130081, -0.0050879172049462795, -0.06611674278974533, 0.0726795494556427, -0.01844915561378002, 0.014094316400587559, 0.0022177821956574917, 0.0015545202186331153, -0.05606308951973915, -0.02731592021882534, 0.030928952619433403, 0.02455814555287361, 0.025378497317433357, 0.0017759711481630802, 0.03529251739382744, 0.054701656103134155, -0.03801538050174713, -0.024732688441872597, -0.006122082471847534, 0.003632668172940612, 0.014417219907045364, -0.013954682275652885, -0.09760423004627228, 0.018030252307653427, -0.03578123822808266, -0.04098260775208473, 0.07631003111600876, -0.023441074416041374, -0.0008705313084647059, 0.012034713290631771, -0.03440235182642937, 0.017061540856957436, 0.013300147838890553, 0.03372163325548172, -0.02548322267830372, 0.012750337831676006, -0.028974074870347977, 0.03801538050174713, 0.044997088611125946, 0.006519166752696037, -0.053968578577041626, -0.01064709946513176, -0.0001975876948563382, 0.0032094023190438747, -0.015220115892589092, -0.02988169714808464, -0.026984289288520813, 0.01942659355700016, 0.011371451430022717, 0.0543176643550396, -0.00109252764377743, -0.05560927838087082, 0.00231050793081522, -0.05930958315730095, 0.013535779900848866, -0.02385997585952282, -0.020177125930786133, 0.01467030681669712, -0.020351668819785118, -0.0037853929679840803, 0.05274678021669388, -0.03983062505722046, -0.09865149110555649, -0.0012250710278749466, -0.04314693436026573, -0.007474787533283234, 0.020526211708784103, -0.031278036534786224, 0.02893916517496109, 0.006266079843044281, -0.0018108796793967485, -0.03780592978000641, -0.020630937069654465, 0.015132845379412174, 0.009582390077412128, -0.025029411539435387, 0.022446181625127792, -0.00859186053276062, -0.004051570314913988, 0.0281013622879982, -0.0489068403840065, -0.018571333959698677, 0.010175834409892559, -0.12469324469566345, 0.0014508855529129505, -0.009250759147107601, 0.025064319372177124, -0.01937423087656498, -0.004407200962305069, -0.07393625378608704, 0.06112482398748398, -0.03056241199374199, 0.015080481767654419, 0.03899282217025757, 0.05979830026626587, -0.06475531309843063, -0.04164586961269379, -0.0018185159424319863, 0.039516448974609375, -0.027106469497084618, 0.0486275739967823, -0.06447604298591614, -0.045485805720090866, 0.03368672356009483, 0.04555562511086464, 0.02682720124721527, -0.06143900007009506, 0.02061348408460617, 0.008971490897238255, 0.04374038055539131, -0.0222890917211771, -0.0071737016551196575, -0.06922360509634018, -0.020107310265302658, 0.0003594486915972084, -0.037491753697395325, -0.10814660787582397, 0.030946405604481697, -0.007719147484749556, 0.039900440722703934, 0.0405287966132164, 0.03071950003504753, -0.04147132486104965, -0.05190897360444069, -0.07027085870504379, 0.017419353127479553, -0.017977889627218246, -0.007426788564771414, 0.04688214883208275, -0.01967095397412777, 0.04709159955382347, -0.012270346283912659, 0.02618139237165451, -0.004743195604532957, 0.027036651968955994, -0.016956815496087074, -0.0015632472932338715, -0.021364016458392143, 0.02263817749917507, 0.0029781335033476353, 0.021137110888957977, 0.0281013622879982, -0.05393366888165474, -0.02775227651000023, 0.04325165972113609, 0.026355935260653496, -0.0014225223567336798, 0.05822741612792015, -0.0066457102075219154, 0.014556854031980038, -0.016119010746479034, -0.0096609340980649, -0.11177708953619003, -0.08329173922538757, -0.004189022816717625, 0.0005239005549810827, 0.015246298164129257, -0.06426659226417542, -0.08650331944227219, -0.04733595624566078, -0.02790936455130577, 0.050756994634866714, -0.06632619351148605, -0.010001292452216148, -0.05023336410522461, -0.07561185956001282, 0.0540383942425251, 0.016276098787784576, -0.01912987045943737, -0.05058244988322258, -0.0025810489896684885, 0.04744068533182144, -0.013815048150718212, 0.007802055217325687, -0.05850668624043465, -0.0064362590201199055, 0.0174280796200037, -0.040109895169734955, 0.040354251861572266, 0.0362001396715641, 0.021364016458392143, -0.03071950003504753, -0.021189473569393158, -0.04077315703034401, 0.04925592616200447, 0.04771995171904564, 0.009372938424348831, 0.013823775574564934, -0.07519295811653137, -0.006824616342782974, -0.00678970804437995, -0.014181587845087051, 0.05449220538139343, 0.006156990770250559, 0.01454812753945589, 0.03386126831173897, 0.02361561544239521, -0.05142025649547577, -0.020089855417609215, 0.009067488834261894, 0.05180424824357033, 0.02790936455130577, -0.007850054651498795, -0.028328267857432365, 0.007605694700032473, -0.0034428532235324383, 0.006523530464619398, 0.04108733311295509, 0.019758224487304688, 0.03307582437992096, 0.049081385135650635, -0.017707347869873047, 0.07826490700244904, 0.04279784858226776, -0.006139536388218403, -0.011528539471328259, -0.00593008566647768, -0.03422780707478523, -0.009276940487325191, -0.03293619304895401, 0.09118106216192245, 0.049430470913648605, 0.06545348465442657, 0.014111770316958427 ]
17,122
imodels.rule_set.rule_fit
_predict_continuous_output
Predict outcome of linear model for X
def _predict_continuous_output(self, X): """Predict outcome of linear model for X """ if type(X) == pd.DataFrame: X = X.values.astype(np.float32) y_pred = np.zeros(X.shape[0]) y_pred += self._eval_weighted_rule_sum(X) if self.include_linear: if self.lin_standardise: X = self.friedscale.scale(X) y_pred += X @ self.coef[:X.shape[1]] return y_pred + self.intercept
(self, X)
[ -0.033241864293813705, -0.024913525208830833, -0.0034850339870899916, -0.0037531135603785515, 0.04836154729127884, -0.016066899523139, -0.049970027059316635, -0.03243762254714966, 0.05018448829650879, -0.015057134442031384, 0.030203627422451973, -0.014154599979519844, 0.05182871222496033, -0.02502075769007206, -0.010428293608129025, 0.051471270620822906, -0.0034626941196620464, -0.02568201906979084, -0.025056499987840652, 0.0037531135603785515, 0.03397461399435997, 0.0045082042925059795, -0.026450514793395996, 0.033563558012247086, -0.022429320961236954, -0.027236880734562874, -0.03717369586229324, -0.037674110382795334, -0.010142342187464237, -0.02653987519443035, -0.05004151538014412, 0.008994068950414658, -0.01010659895837307, -0.05983535200357437, 0.023769719526171684, -0.035708192735910416, -0.009588311426341534, 0.0014978944091126323, 0.0276836808770895, -0.04964832961559296, -0.022643785923719406, -0.0417131744325161, -0.03132956102490425, 0.031865719705820084, -0.04553777724504471, 0.00012370753393042833, -0.04074808955192566, 0.0530797503888607, 0.057762205600738525, -0.05072064697742462, -0.017157090827822685, 0.004289272706955671, 0.021839546039700508, 0.011027004569768906, 0.02453821338713169, 0.03511841967701912, 0.032705701887607574, 0.012698033824563026, -0.01956980675458908, -0.06666244566440582, -0.0006221679504960775, 0.012233362533152103, -0.0005573820671997964, 0.02139274775981903, 0.054759714752435684, -0.007966429926455021, 0.0008634395198896527, -0.00013445864897221327, 0.026093075051903725, -0.003940769005566835, -0.04274975135922432, -0.06044299900531769, -0.007747498806566, 0.026432642713189125, 0.018006008118391037, -0.01457459107041359, 0.02584286779165268, -0.04021193087100983, 0.014824798330664635, 0.022804632782936096, -0.04800410941243172, -0.001914534717798233, 0.011152109131217003, 0.004602032247930765, -0.02816622331738472, -0.0952218547463417, -0.016826458275318146, -0.02764793671667576, -0.011277212761342525, 0.07956600934267044, -0.012072515673935413, 0.051113832741975784, 0.0066215647384524345, 0.07763583213090897, 0.04675307124853134, 0.03283080831170082, -0.01990937441587448, 0.03286655247211456, 0.021768057718873024, -0.012063579633831978, 0.01871195249259472, 0.09772393107414246, -0.0437505804002285, 0.05025597661733627, -0.00667518051341176, 0.013779288157820702, 0.005232018884271383, 0.016165196895599365, -0.020481277257204056, -0.0047494759783148766, -0.02416290156543255, 0.03048957884311676, -0.05254358798265457, -0.05851282551884651, -0.04868324473500252, -0.010088726878166199, -0.0779217854142189, 0.02834494411945343, -0.06816369295120239, 0.030989995226264, -0.00036414136411622167, -0.005571586545556784, -0.02718326449394226, -0.01576307602226734, -0.027433473616838455, 0.012099322862923145, 0.0606217198073864, 0.0026919653173536062, 0.0280232485383749, -0.007166659459471703, -0.023483768105506897, -0.016522634774446487, 0.01919449493288994, 0.01158997230231762, -0.023126328364014626, 0.014824798330664635, 0.013269937597215176, 0.01126827672123909, 0.02516373246908188, 0.0008349560666829348, 0.08178213238716125, 0.02652200311422348, 0.03125807270407677, 0.021839546039700508, 0.07499078661203384, 0.018497487530112267, 0.06948621571063995, 0.08771562576293945, -0.008426633663475513, -0.04028341919183731, -0.015369893983006477, -0.020320428535342216, -0.003931833431124687, -0.037531133741140366, 0.021839546039700508, 0.05729753524065018, -0.0023501638788729906, -0.025235220789909363, 0.015128621831536293, -0.043822068721055984, -0.07205978035926819, -0.01839025691151619, -0.008502589538693428, -0.0061211492866277695, 0.01919449493288994, 0.018694080412387848, -0.01675497181713581, -0.001738048973493278, 0.02900620549917221, 0.0015984242781996727, 0.039318330585956573, -0.02317994460463524, 0.03317037597298622, 0.042999956756830215, -0.001144923036918044, 0.034886084496974945, 0.03150828182697296, 0.020606379956007004, -0.033527813851833344, 0.07549119740724564, 0.09407804906368256, -0.021160410717129707, -0.06112213432788849, -0.045466288924217224, -0.026057330891489983, -0.005611798260360956, -0.011947411112487316, -0.002013947581872344, -0.026790082454681396, 0.025092244148254395, -0.0009918942814692855, -0.007184531539678574, 0.04110553115606308, -0.04786113277077675, -0.023966310545802116, -0.02902407757937908, -0.006371357012540102, 0.03613712266087532, 0.027773039415478706, -0.05100660026073456, 0.0013046537060290575, -0.0123584670946002, 0.016477955505251884, 0.03325973451137543, -0.08492759615182877, -0.009347040206193924, -0.050756391137838364, 0.02021319791674614, -0.0715593621134758, -0.05082787945866585, -0.019587678834795952, 0.0044836304150521755, -0.007282827515155077, 0.007836858741939068, 0.03132956102490425, 0.08507057279348373, -0.022590169683098793, -0.012894625775516033, -0.005973705556243658, -0.04625265672802925, 0.01376141607761383, -0.07134490460157394, -0.011491675861179829, 0.007412399165332317, 0.04918365925550461, -0.05404483526945114, 0.06373143941164017, 0.020963819697499275, 0.018283024430274963, -0.00787260290235281, -0.01160784438252449, 0.0030404687859117985, 0.0026763274800032377, -0.043321654200553894, 0.03938981890678406, 0.012483570724725723, -0.01158997230231762, 0.012519314885139465, -0.013278872705996037, 0.053294211626052856, -0.041319992393255234, 0.003659285604953766, -0.006661776453256607, 0.006416036747395992, 0.015262661501765251, 0.058584313839673996, 0.01969490945339203, 0.06455355137586594, -0.00023861871159169823, 0.012501442804932594, 0.00008161066944012418, -0.025556916370987892, -0.0423923097550869, -0.006076469551771879, 0.024770548567175865, -0.07592012733221054, 0.003073978703469038, 0.015352021902799606, 0.05054192990064621, 0.02766580879688263, -0.05679711699485779, 0.026468386873602867, -0.008645565249025822, -0.01175975613296032, -0.037209440022706985, 0.0033576961141079664, -0.07148787379264832, 0.01654050685465336, 0.07227424532175064, 0.06773476302623749, 0.06612628698348999, 0.04618116840720177, -0.044501204043626785, -0.05483120307326317, 0.03974726051092148, 0.048647500574588776, 0.044143762439489365, -0.03125807270407677, 0.0013370467349886894, 0.03249124065041542, 0.016531571745872498, -0.07913707941770554, -0.0061568934470415115, -0.007600055076181889, -0.015861373394727707, -0.01234059501439333, 0.0172107070684433, -0.022661656141281128, 0.029363645240664482, -0.01919449493288994, 0.008055790327489376, 0.06855687499046326, 0.051435526460409164, 0.020159581676125526, 0.011840179562568665, -0.005379462614655495, 0.005759241990745068, -0.04543054476380348, 0.041498713195323944, 0.03681625798344612, -0.026146691292524338, 0.03913961350917816, 0.009516824036836624, -0.030078524723649025, -0.033063143491744995, -0.00970447901636362, 0.00629093311727047, 0.02566414698958397, -0.05551033467054367, -0.0078055826015770435, 0.018006008118391037, 0.08013790845870972, 0.008618757128715515, -0.027916016057133675, -0.08171064406633377, -0.03846047818660736, 0.05039895325899124, 0.04485864192247391, 0.07398995012044907, 0.04446545988321304, -0.021285515278577805, -0.006688584573566914, 0.013314616866409779, -0.0064294408075511456, 0.03216954320669174, 0.02223272994160652, 0.0706300213932991, -0.016290299594402313, 0.003480565967038274, -0.028452174738049507, 0.04689604789018631, -0.04871898889541626, -0.04106978699564934, 0.01737155392765999, -0.028094734996557236, -0.05987109616398811, -0.019623422995209694, -0.017103474587202072, -0.0016498061595484614, -0.00629093311727047, -0.060550231486558914, 0.01034787017852068, -0.02235783264040947, 0.026647105813026428, -0.013135896995663643, -0.04589521884918213, -0.012689097784459591, 0.05132829397916794, -0.014824798330664635, 0.03131169080734253, -0.045144595205783844, 0.026432642713189125, 0.04854026809334755, 0.05157850310206413, 0.011688267812132835, 0.005835197865962982, -0.004164168611168861, 0.01376141607761383, 0.02251868136227131, -0.04782538861036301, 0.02087445929646492, -0.018497487530112267, -0.013359297066926956, 0.007376655470579863, -0.010955517180263996, -0.013439720496535301, -0.03401035815477371, 0.04425099492073059, 0.041677433997392654, 0.03989023715257645, -0.05847708508372307, 0.0016844330821186304, -0.06612628698348999, 0.037352416664361954, -0.027719425037503242, 0.029113437980413437, 0.018622592091560364, -0.03227677568793297, 0.016808586195111275, -0.004517140332609415, -0.020427661016583443, -0.014923094771802425, -0.06176552549004555, 0.010187022387981415, 0.04585947468876839, 0.005406270734965801, 0.055260129272937775, -0.04854026809334755, 0.03774559870362282, -0.058584313839673996, 0.033045269548892975, -0.05014874413609505, -0.0011516250669956207, -0.0583341084420681, -0.05904898792505264, -0.06301656365394592, 0.03397461399435997, 0.05022023245692253, -0.022447193041443825, 0.022161241620779037, -0.08714371919631958, 0.03524352237582207, 0.013788224197924137, -0.01772005669772625, -0.05783369392156601, -0.014619271270930767, 0.0024864377919584513, -0.0036637536250054836, -0.01990937441587448, 0.010526590049266815, -0.062408916652202606, 0.06701988726854324, 0.008404293097555637, -0.03774559870362282, -0.014360127039253712, 0.038031551986932755, 0.023948438465595245, -0.02035617269575596, -0.010008302517235279, 0.006326677277684212, 0.022339962422847748, -0.012349531054496765, 0.02850579097867012, 0.015995413064956665, 0.017103474587202072, -0.029399389401078224, -0.004400972276926041, 0.027147522196173668, 0.018676208332180977, 0.014243959449231625, -0.05164999142289162, -0.08678628504276276, -0.09171894937753677, -0.05433078482747078, -0.002600371604785323, -0.00447469437494874, 0.018854927271604538, 0.032580599188804626, -0.05182871222496033, 0.04553777724504471, -0.026093075051903725, 0.014824798330664635, 0.056082241237163544, 0.04982705041766167, -0.022572297602891922, -0.003909493330866098, -0.021339131519198418, -0.06369569897651672, -0.08185362070798874, -0.01989150233566761, 0.034546516835689545, 0.00009724864503368735, 0.054259300231933594, 0.021339131519198418, -0.019623422995209694, -0.05164999142289162, -0.0460381917655468, -0.05754774063825607, 0.016942627727985382, 0.003250464331358671, -0.025735635310411453, 0.05618946999311447, 0.02416290156543255, -0.008685776963829994, 0.014136727899312973, -0.037388160824775696, -0.017934521660208702, 0.009418527595698833, -0.026915185153484344, -0.028291327878832817, 0.01755920983850956, -0.006920920219272375, 0.01871195249259472, -0.018148984760046005, -0.01299292128533125, 0.018944287672638893, -0.012161875143647194, -0.00028106465470045805, 0.01923023909330368, 0.0033755681943148375, -0.026075202971696854, -0.01953406259417534, 0.020963819697499275, -0.004318314604461193, -0.007166659459471703, 0.03517203405499458, 0.01956980675458908, -0.025431811809539795, -0.007555374875664711, 0.026557745411992073, 0.015405637212097645, 0.08414123207330704, 0.050112999975681305, 0.020481277257204056, -0.056403934955596924, -0.01905152015388012, 0.044143762439489365, -0.005678818095475435, 0.03050745092332363, -0.006022853776812553, 0.003493970027193427, -0.01939108595252037, -0.06948621571063995, -0.04610968008637428, -0.01659412309527397, 0.03824601322412491, -0.04907642677426338, 0.03166912868618965, -0.040998298674821854, 0.014270767569541931, -0.007421335205435753, 0.03760262206196785, 0.007921750657260418, -0.007220275700092316, 0.008551737293601036, 0.03640520200133324, 0.020499149337410927, 0.000795861124061048, -0.01709453947842121, 0.0012901327572762966, 0.007501759100705385, -0.002723241224884987, -0.013207385316491127, -0.03699497506022453, 0.023483768105506897, 0.12510378658771515, -0.017040923237800598, -0.030578939244151115, 0.004812027793377638, 0.026146691292524338, -0.020838716998696327, -0.027451345697045326, 0.011169981211423874, 0.07599161565303802, -0.021249771118164062, 0.03583329916000366, -0.001703422050923109, -0.054795458912849426, -0.041498713195323944, -0.01226017065346241, -0.037209440022706985, -0.028559407219290733, 0.014467359520494938, 0.010187022387981415, 0.020016605034470558, -0.007604523096233606, -0.02698667347431183, 0.06326676905155182, -0.04768241569399834, 0.027916016057133675, -0.07188106328248978, 0.004530544392764568, 0.03724518418312073, 0.036208610981702805, 0.1043723002076149, 0.10144129395484924, 0.013037601485848427, 0.07642053812742233, -0.02469906210899353, 0.051435526460409164, -0.014118855819106102, -0.06094341352581978, 0.08635735511779785, -0.05522438511252403, -0.04460843652486801, 0.019319599494338036, -0.023430151864886284, 0.06047874316573143, -0.021946778520941734, 0.0005160531145520508, 0.005366058554500341, 0.0005987109616398811, 0.009641927666962147, -0.010767861269414425, -0.023733975365757942, 0.01621881127357483, 0.04543054476380348, -0.06144383177161217, -0.03913961350917816, 0.02334079146385193, -0.030400220304727554, -0.03048957884311676, -0.02205400913953781, -0.045966703444719315, 0.010267446748912334, -0.020624252036213875, -0.033402711153030396, 0.04553777724504471, -0.016933690756559372, -0.03159764036536217, -0.06369569897651672, 0.0054509504698216915, -0.0203919168561697, 0.005348186939954758, 0.041355736553668976, -0.009311296045780182, -0.07205978035926819, 0.020677868276834488, 0.03629796952009201, -0.022107625380158424, 0.004555118270218372, 0.03981874883174896, -0.004380866419523954, -0.0027723892126232386, 0.05082787945866585, -0.016299236565828323, -0.04986279457807541, -0.04457269236445427, -0.020767228677868843, -0.06830666959285736, -0.029542366042733192, 0.020016605034470558, -0.014690758660435677, 0.023162072524428368, 0.01643327623605728, 0.00927555188536644, -0.030525323003530502, 0.02053489349782467, -0.027093905955553055, 0.04064085707068443, 0.09121853113174438, -0.018837055191397667, -0.013564825057983398, 0.03327760845422745, -0.013189513236284256, 0.04493013024330139, 0.07134490460157394, -0.04757518321275711, 0.03200869634747505, 0.017702186480164528, 0.024573957547545433, 0.07584863901138306, -0.01709453947842121, -0.023305047303438187, 0.05358016490936279, 0.0331525020301342, -0.011455932632088661, 0.038353245705366135, 0.038353245705366135, -0.06283784657716751, -0.043357398360967636, 0.008234510198235512, 0.030435964465141296, -0.02153572253882885, 0.027951760217547417, -0.047289229929447174, -0.011241468600928783, -0.021142540499567986, 0.046788815408945084, -0.03202657029032707, -0.008958324790000916, -0.026236051693558693, 0.018184728920459747, 0.03667328134179115, 0.05068490654230118, -0.0004202705167699605, -0.050970856100320816, 0.05515289679169655, 0.033527813851833344, -0.03524352237582207, -0.06001407280564308, -0.009838518686592579, -0.013037601485848427, -0.011804435402154922, 0.05018448829650879, 0.008314933627843857, -0.02203613892197609, -0.06741306930780411, -0.06830666959285736, -0.06012130528688431, -0.008842157199978828, 0.006666244473308325, -0.021160410717129707, 0.010356806218624115, 0.049469612538814545, -0.05983535200357437, -0.00836854986846447, -0.0034626941196620464, 0.008167490363121033, -0.0193732138723135, 0.0030851487535983324, -0.010580205358564854, 0.023501640185713768, 0.0013080047210678458, 0.050649162381887436, -0.06848538666963577, 0.007282827515155077, -0.015486061573028564, -0.041534457355737686, -0.029238542541861534, 0.017353681847453117, 0.003802261548116803, -0.0009371613850817084, -0.04889770969748497, 0.014520974829792976, -0.04121275991201401, -0.06258763372898102, 0.05089936777949333, 0.0007606756989844143, 0.009257679805159569, 0.03992597758769989, -0.014646078459918499, 0.0008718169992789626, 0.019677037373185158, 0.0003406844043638557, 0.07009386271238327, -0.022911865264177322, -0.06273061037063599, -0.005821793805807829, -0.02748708799481392, 0.01626349240541458, 0.04871898889541626, 0.0010187022853642702, -0.035904787480831146, -0.011393380351364613, 0.027612192556262016, -0.05118532106280327, 0.021750187501311302, -0.032741446048021317, 0.04014044255018234, 0.010410422459244728, -0.029542366042733192, 0.012447826564311981, 0.018148984760046005, -0.08692926168441772, 0.003496204037219286, 0.031115097925066948, -0.019748525694012642, 0.0006238433998078108, 0.04689604789018631, 0.01209038682281971, 0.024627573788166046, -0.006219445262104273, 0.03297378495335579, 0.012635482475161552, 0.027737297117710114, -0.06094341352581978, -0.046645838767290115, 0.012733777984976768, -0.032544855028390884, 0.005357122980058193, -0.017988137900829315, 0.06158680468797684, -0.0444297157227993, 0.006152425426989794, 0.03115084208548069, -0.018926415592432022, 0.023555254563689232, 0.04829006269574165, -0.03828175738453865, 0.012197619304060936, 0.029381517320871353, 0.007586651016026735, -0.016826458275318146, 0.08449867367744446, 0.01655837893486023, 0.005719030275940895, 0.004132892936468124, -0.0034626941196620464, 0.029077693819999695, -0.0075464388355612755, -0.022411448881030083, -0.006371357012540102, 0.03667328134179115, 0.0072917635552585125, 0.009829582646489143, 0.04174891859292984, 0.043178677558898926 ]
17,126
imodels.rule_set.rule_fit
_score_rules
null
def _score_rules(self, X, y, rules) -> Tuple[List[Rule], List[float], float]: X_concat = np.zeros([X.shape[0], 0]) # standardise linear variables if requested (for regression model only) if self.include_linear: # standard deviation and mean of winsorized features self.winsorizer.train(X) winsorized_X = self.winsorizer.trim(X) self.stddev = np.std(winsorized_X, axis=0) self.mean = np.mean(winsorized_X, axis=0) if self.lin_standardise: self.friedscale.train(X) X_regn = self.friedscale.scale(X) else: X_regn = X.copy() X_concat = np.concatenate((X_concat, X_regn), axis=1) X_rules = self.transform(X, rules) if X_rules.shape[0] > 0: X_concat = np.concatenate((X_concat, X_rules), axis=1) # no rules fit and self.include_linear == False if X_concat.shape[1] == 0: return [], [], 0 prediction_task = 'regression' if isinstance( self, RegressorMixin) else 'classification' return score_linear(X_concat, y, rules, prediction_task=prediction_task, max_rules=self.max_rules, alpha=self.alpha, cv=self.cv, random_state=self.random_state)
(self, X, y, rules) -> Tuple[List[imodels.util.rule.Rule], List[float], float]
[ -0.02757408283650875, -0.0021550795063376427, -0.022981438785791397, -0.024421196430921555, 0.023473508656024933, -0.012155923992395401, -0.04034964740276337, -0.0068889642134308815, 0.03267701715230942, 0.0011732197599485517, 0.017705367878079414, 0.00666571082547307, 0.04891529306769371, -0.007813871838152409, 0.014926088973879814, 0.030544720590114594, -0.02821194939315319, -0.029706381261348724, -0.012019237503409386, -0.016593655571341515, 0.00021172060223761946, 0.0006350194453261793, -0.0034239792730659246, -0.0009539529564790428, 0.02289031445980072, -0.006219204049557447, 0.047712456434965134, -0.031219037249684334, -0.027792779728770256, 0.0020445918198674917, -0.03827202320098877, 0.05015457421541214, -0.019664529711008072, -0.027428284287452698, -0.04322916269302368, -0.04228147491812706, -0.006255653221160173, 0.041989877820014954, 0.01213769894093275, -0.010688829235732555, -0.0374336838722229, -0.02686331607401371, 0.008383396081626415, 0.036504220217466354, -0.061891328543424606, -0.000135475565912202, -0.07858522236347198, 0.04129733517765999, 0.023200135678052902, -0.10256902128458023, -0.03661356866359711, -0.026936214417219162, 0.015727980062365532, 0.020593993365764618, 0.029505908489227295, 0.037688832730054855, 0.0028157273773103952, 0.002458066213876009, 0.023619305342435837, -0.08937428891658783, 0.06065204367041588, 0.008884577080607414, -0.03690516576170921, 0.005604117643088102, 0.021468782797455788, -0.05806412920355797, -0.04107863828539848, -0.009531556628644466, 0.025970302522182465, 0.029360109940171242, -0.0419534295797348, 0.004018562380224466, 0.061927780508995056, -0.06302126497030258, 0.017732704058289528, 0.01434289664030075, 0.010625042952597141, -0.022270672023296356, 0.061344586312770844, -0.014834965579211712, -0.007330914959311485, 0.05416402593255043, 0.015035438351333141, -0.02578805387020111, -0.02686331607401371, -0.05678839236497879, 0.03592102974653244, -0.0004026535898447037, -0.023218361660838127, -0.00398439122363925, -0.019974350929260254, 0.00499814422801137, 0.011791428551077843, -0.02292676456272602, -0.02555113285779953, 0.052961189299821854, -0.06211002543568611, -0.019773878157138824, 0.009226291440427303, -0.02558758109807968, 0.015645967796444893, 0.07122241705656052, -0.03426257520914078, 0.06801485270261765, 0.0017632468370720744, -0.017031051218509674, -0.008046237751841545, -0.007936888374388218, -0.013468107208609581, 0.04971718043088913, -0.03429902344942093, -0.019810328260064125, -0.021487006917595863, 0.030945664271712303, -0.013960176147520542, -0.0438852533698082, -0.07632534950971603, 0.007367364596575499, -0.039912253618240356, -0.00012600721674971282, -0.027355384081602097, 0.02174215391278267, -0.019008439034223557, -0.01792406477034092, -0.015627743676304817, 0.006952750962227583, 0.024457646533846855, -0.006811508908867836, 0.05445562303066254, -0.04537968710064888, -0.02777455374598503, -0.0010621625697240233, 0.010105636902153492, -0.005171279422938824, -0.029669931158423424, -0.04297401383519173, 0.07370097935199738, 0.013058049604296684, 0.04745731130242348, -0.03426257520914078, 0.08558353781700134, 0.062255825847387314, -0.000324059248669073, -0.03267701715230942, 0.012192373163998127, 0.008032568730413914, 0.02403847500681877, 0.08077219873666763, 0.0075131626799702644, 0.0319480262696743, -0.02002902515232563, -0.016803240403532982, 0.0340985506772995, -0.019901452586054802, 0.01895376481115818, 0.010060074739158154, -0.007859433069825172, -0.04753020778298378, 0.029433008283376694, -0.039839353412389755, -0.0330597385764122, -0.03885521739721298, -0.05456497147679329, -0.03244009613990784, 0.06207357719540596, 0.03675936907529831, -0.026043200865387917, 0.003310074331238866, 0.009732028469443321, -0.010834627784788609, -0.01200101338326931, -0.08186568319797516, -0.050555519759655, 0.03295039013028145, -0.011226460337638855, -0.015035438351333141, -0.021231859922409058, 0.01847992092370987, -0.04880594089627266, 0.0684157982468605, 0.04465069621801376, -0.023892678320407867, -0.008738778531551361, -0.0679784044623375, -0.015782654285430908, 0.053471483290195465, 0.014652717858552933, 0.00403450895100832, -0.057954780757427216, 0.025496458634734154, -0.06156328320503235, -0.06251097470521927, -0.022999664768576622, -0.00184070214163512, -0.00693452637642622, 0.0034376478288322687, 0.0016470638802275062, 0.06666622310876846, 0.03373405709862709, -0.04756665974855423, -0.006583699490875006, 0.03167465701699257, 0.02669929340481758, 0.007066655904054642, -0.042463719844818115, 0.0159011147916317, -0.06243807449936867, 0.01732264645397663, -0.07413838058710098, -0.04614512622356415, -0.006159973330795765, 0.016438744962215424, -0.07147756218910217, 0.03366115689277649, 0.04446844756603241, 0.010734391398727894, 0.0684157982468605, -0.02241647057235241, -0.02396557666361332, -0.049534935504198074, 0.033679381012916565, -0.0550023652613163, -0.03845427185297012, -0.004414951428771019, 0.03641309589147568, -0.01430644653737545, 0.041516032069921494, -0.0033624707721173763, 0.010005400516092777, 0.01784205250442028, 0.01080729067325592, -0.06622882932424545, 0.052159301936626434, -0.01080729067325592, -0.0005532927461899817, 0.02992507815361023, 0.022944988682866096, 0.0318022295832634, -0.03635842353105545, 0.042573072016239166, -0.03497333824634552, -0.013158285990357399, -0.007868546061217785, -0.03138305991888046, -0.009394871070981026, 0.03165643289685249, 0.04676476866006851, 0.00639689527451992, -0.03497333824634552, 0.0026084205601364374, -0.005043705925345421, 0.02710023708641529, 0.01334964670240879, -0.022307122126221657, -0.05762673169374466, -0.056569695472717285, -0.05449207127094269, -0.0008354919264093041, 0.04147958382964134, -0.043374959379434586, 0.02141410857439041, 0.07749173790216446, -0.005863820668309927, -0.028758691623806953, -0.033478908240795135, 0.005121161229908466, -0.016274722293019295, 0.03679581731557846, 0.00927640963345766, 0.04968073219060898, 0.035301387310028076, 0.010688829235732555, -0.02154168114066124, -0.008324164897203445, -0.008547418750822544, 0.05817347764968872, 0.011973676271736622, -0.017550457268953323, 0.08223018050193787, 0.020138373598456383, 0.04789470508694649, -0.01664832979440689, -0.04034964740276337, -0.029815729707479477, 0.0636044591665268, -0.013440770097076893, 0.013167398981750011, -0.006802396383136511, -0.02507728710770607, -0.002733716042712331, 0.010461020283401012, -0.03453594446182251, 0.030471820384263992, 0.00675683468580246, 0.061781980097293854, 0.015727980062365532, 0.024731017649173737, -0.04545258358120918, 0.046947017312049866, 0.0039023796562105417, -0.03776172921061516, 0.06123523786664009, 0.09899696707725525, -0.044723592698574066, -0.018844416365027428, -0.057918328791856766, 0.011153561063110828, -0.03921971097588539, 0.035228487104177475, -0.024731017649173737, 0.0307634174823761, 0.03914681449532509, 0.037615932524204254, -0.027628757059574127, -0.03615795075893402, 0.025933852419257164, 0.013559231534600258, 0.010861964896321297, 0.0751589685678482, 0.039438407868146896, 0.0016732619842514396, -0.049097537994384766, 0.04268242046236992, 0.025186637416481972, 0.004649595357477665, 0.01334964670240879, 0.0049708071164786816, -0.017313534393906593, -0.0021482452284544706, -0.017149511724710464, 0.019026663154363632, -0.058720219880342484, -0.008747891522943974, -0.013376983813941479, -0.006114411633461714, -0.011764091439545155, 0.0307634174823761, 0.045598383992910385, 0.030289573594927788, -0.0021903899032622576, -0.05817347764968872, 0.0375065840780735, -0.007107661571353674, 0.009531556628644466, 0.03665002062916756, -0.03511913865804672, -0.05153965950012207, 0.043338511139154434, -0.019445832818746567, 0.008274046704173088, -0.027209585532546043, -0.05861087143421173, 0.03568410500884056, 0.0029729162342846394, 0.03644954785704613, -0.01856193132698536, -0.016994601115584373, -0.018097199499607086, 0.05718933790922165, -0.06262031942605972, 0.0036312860902398825, -0.052159301936626434, -0.022307122126221657, 0.07647114992141724, -0.010533918626606464, 0.01832501031458378, -0.009208066388964653, -0.013559231534600258, 0.028977390378713608, -0.05474722012877464, -0.03929261118173599, 0.006670266855508089, -0.030052650719881058, 0.0003625021199695766, -0.0023111291229724884, 0.0837610587477684, 0.0702747255563736, 0.004346608649939299, 0.0550023652613163, -0.028066150844097137, 0.01661188155412674, 0.025733379647135735, -0.012502194382250309, 0.013823490589857101, 0.008725110441446304, -0.0012210598215460777, -0.039839353412389755, -0.02658994495868683, 0.016794128343462944, -0.027920352295041084, 0.07676274329423904, 0.01313094887882471, 0.0011578425765037537, -0.08157408237457275, -0.06119878962635994, 0.028558218851685524, 0.013641242869198322, 0.02571515552699566, -0.04191697761416435, -0.032604120671749115, -0.06662976741790771, -0.027920352295041084, 0.0014557037502527237, 0.03346068412065506, -0.045598383992910385, 0.03143773227930069, 0.0035766116343438625, 0.07967870682477951, -0.045634832233190536, 0.09549780935049057, -0.029742829501628876, -0.0017769153928384185, 0.01622004806995392, -0.023309484124183655, -0.03863652050495148, 0.025733379647135735, 0.04045899584889412, 0.05817347764968872, 0.035738781094551086, 0.02309078723192215, 0.01570064201951027, -0.04665542021393776, 0.037652380764484406, 0.009558893740177155, 0.0016117533668875694, -0.011408708058297634, -0.04844144731760025, -0.04020385071635246, -0.04763955622911453, -0.027209585532546043, -0.03462706878781319, -0.023345934227108955, -0.06371380388736725, -0.05543975904583931, -0.03504623845219612, -0.05011812597513199, 0.00540364533662796, 0.04898818954825401, -0.022744517773389816, 0.018388796597719193, 0.03511913865804672, 0.012420183047652245, 0.05693419277667999, 0.0659007802605629, -0.04264596849679947, -0.007704522926360369, -0.031929802149534225, -0.03787107765674591, -0.12997908890247345, 0.022908540442585945, -0.022799191996455193, 0.05117516219615936, 0.04585352912545204, 0.07617954909801483, 0.007107661571353674, 0.026681067422032356, -0.023983800783753395, -0.05379953235387802, 0.00010258553811581805, 0.0031255485955625772, 0.04753020778298378, 0.023345934227108955, 0.01724063605070114, 0.028066150844097137, -0.10694296658039093, -0.027246035635471344, -0.011171786114573479, 0.019846778362989426, 0.0040891836397349834, -0.017313534393906593, -0.00264714821241796, -0.03225784748792648, -0.0016687058378010988, -0.029870403930544853, -0.026407696306705475, 0.06845224648714066, 0.06775970757007599, -0.019409382715821266, 0.02383800409734249, 0.00864309910684824, 0.004761221818625927, -0.0068889642134308815, -0.04490584135055542, -0.0019557459745556116, 0.027865678071975708, 0.0209402646869421, -0.028758691623806953, -0.0396571047604084, -0.03393452614545822, 0.0037406347692012787, 0.012365508824586868, -0.0012108084047213197, 0.03271346911787987, -0.03167465701699257, -0.08674991875886917, -0.004984475672245026, 0.020812690258026123, -0.0010433682473376393, -0.012529531493782997, -0.017222410067915916, 0.002012698445469141, -0.029469458386301994, -0.04443199560046196, 0.01551839429885149, 0.024311847984790802, 0.024348296225070953, -0.03867296874523163, -0.0016208657762035728, -0.0395113080739975, -0.011991900391876698, -0.054783668369054794, -0.022143099457025528, 0.017614243552088737, 0.00015975152200553566, -0.021960852667689323, 0.011436045169830322, 0.05379953235387802, 0.03675936907529831, -0.004148413892835379, -0.006027843803167343, 0.012401957996189594, -0.026407696306705475, -0.010032737627625465, -0.02030239813029766, 0.04392170533537865, 0.09600810706615448, -0.02380155399441719, 0.003957054112106562, 0.03918326273560524, -0.050373274832963943, 0.03608505055308342, -0.006670266855508089, -0.011472494341433048, 0.014789403416216373, -0.0121194738894701, 0.07260749489068985, 0.002681319834664464, -0.06644752621650696, -0.03719676285982132, 0.036267299205064774, 0.0022724014706909657, 0.019281810149550438, 0.02766520529985428, -0.005212285090237856, 0.010533918626606464, 0.01110799890011549, 0.010533918626606464, 0.021450558677315712, -0.030271347612142563, -0.01162740495055914, -0.005576780531555414, 0.00961356796324253, 0.008173811249434948, 0.010379008017480373, 0.0704934224486351, 0.02400202676653862, -0.016320284456014633, 0.035465408116579056, -0.014406682923436165, 0.021322984248399734, 0.012894026935100555, -0.07118596136569977, -0.004050455987453461, -0.0441039502620697, -0.06692136824131012, 0.0014932923950254917, -0.004002615809440613, 0.04545258358120918, -0.05474722012877464, -0.006633817683905363, -0.02750118263065815, 0.055731356143951416, -0.006838846020400524, -0.03725143522024155, -0.00928096566349268, 0.024621669203042984, 0.04049544781446457, -0.03477286919951439, -0.04224502295255661, 0.02396557666361332, -0.005690685473382473, -0.005982281640172005, 0.005339858587831259, -0.05336213484406471, 0.015545731410384178, 0.010861964896321297, -0.019372934475541115, 0.05693419277667999, -0.008880021050572395, -0.003070874372497201, -0.028321297839283943, 0.07391968369483948, -0.01398751325905323, -0.02682686597108841, -0.016074249520897865, 0.011363145895302296, -0.043338511139154434, -0.013158285990357399, -0.022817416116595268, 0.01454336941242218, -0.013951064087450504, 0.01878974214196205, 0.0033806953579187393, 0.0009072520188055933, 0.068197101354599, -0.010798178613185883, -0.02268984355032444, 0.00374974706210196, -0.02392912656068802, -0.020484644919633865, -0.012866689823567867, 0.0008816234185360372, 0.047311510890722275, -0.035793453454971313, 0.08587513118982315, -0.006724941544234753, -0.008880021050572395, 0.04392170533537865, -0.002681319834664464, -0.02551468275487423, 0.031182587146759033, 0.025860954076051712, -0.01661188155412674, 0.03428079932928085, 0.01082551572471857, 0.04137023538351059, 0.003929716534912586, -0.06294836848974228, -0.017094837501645088, -0.04574418067932129, -0.03147418424487114, 0.006091630551964045, 0.006565474439412355, -0.0057818093337118626, 0.012930477038025856, 0.014023963361978531, 0.056496795266866684, 0.03052649460732937, 0.01776915416121483, -0.08886399120092392, -0.05598650500178337, -0.01082551572471857, 0.06965508311986923, -0.004774890374392271, -0.019026663154363632, -0.019737429916858673, -0.040386099368333817, 0.015208573080599308, 0.09309214353561401, 0.008506412617862225, -0.006647486239671707, -0.025897402316331863, -0.049097537994384766, 0.04034964740276337, 0.07045697420835495, 0.08397975564002991, 0.028558218851685524, -0.02555113285779953, 0.017094837501645088, -0.0703476220369339, -0.05988660454750061, -0.009376646019518375, 0.04581708088517189, 0.03132838383316994, -0.02626189775764942, 0.021268310025334358, 0.019263586029410362, -0.015919338911771774, -0.006296659354120493, -0.015491057187318802, -0.010479244403541088, -0.01196456328034401, -0.0024899595882743597, 0.04745731130242348, 0.02507728710770607, -0.0013361036544665694, -0.009349308907985687, -0.02026594802737236, -0.005895714275538921, -0.04239082336425781, 0.02134121023118496, 0.030617618933320045, -0.0030458152759820223, -0.047712456434965134, 0.029742829501628876, 0.014452245086431503, 0.02507728710770607, -0.000523962255101651, -0.015099224634468555, 0.00010578911314951256, -0.03907391428947449, 0.03267701715230942, 0.030745193362236023, -0.029305435717105865, -0.012283497489988804, -0.021031389012932777, -0.06444279849529266, 0.040750592947006226, 0.0551481656730175, 0.008046237751841545, -0.04268242046236992, -0.01633850857615471, -0.025842728093266487, 0.009568005800247192, 0.0015775819774717093, 0.013121836818754673, -0.020849140360951424, -0.0009630653657950461, 0.01621093600988388, -0.03274991735816002, -0.011882551945745945, -0.03437192365527153, 0.017614243552088737, -0.008205704391002655, -0.005667904391884804, -0.04501518979668617, 0.08521904051303864, 0.017696253955364227, -0.015645967796444893, 0.012174148112535477, 0.06914479285478592, -0.0025514683220535517, 0.05554910749197006, -0.025368884205818176, 0.017896726727485657, -0.015345258638262749, 0.10592237859964371, -0.07406547665596008, 0.04060479626059532, -0.057881880551576614, 0.051248062402009964, 0.023892678320407867, 0.004414951428771019, 0.04869659245014191, 0.01899021305143833, 0.04056834429502487, -0.004870570730417967, -0.09958016127347946, 0.019245360046625137, 0.04352075979113579, 0.021359434351325035, -0.029597030952572823, 0.012155923992395401, -0.04392170533537865, -0.028284847736358643, 0.05117516219615936, 0.008255822584033012, 0.03178400546312332, 0.0048341210931539536, 0.023655755445361137, 0.020758016034960747, -0.027045562863349915, 0.05321633815765381, 0.033114414662122726, 0.036303747445344925, 0.04213567450642586, 0.01811542548239231, -0.08128248900175095, -0.0016709838528186083, -0.01164563000202179, 0.041661832481622696, 0.004414951428771019, -0.028631119057536125, 0.07588795572519302, 0.01692170277237892, -0.015245023183524609, 0.033478908240795135, 0.060032401233911514 ]
17,129
imodels.rule_set.fplasso
fit
null
def fit(self, X, y=None, feature_names=None, undiscretized_features=[]): self.undiscretized_features = undiscretized_features super().fit(X, y, feature_names=feature_names) return self
(self, X, y=None, feature_names=None, undiscretized_features=[])
[ -0.020465780049562454, -0.05150040239095688, 0.06526532024145126, -0.007799514569342136, -0.04710579663515091, -0.022263573482632637, -0.002496934263035655, -0.011694731190800667, 0.044527146965265274, 0.021991180256009102, -0.02259044349193573, -0.01744222082197666, -0.01843191310763359, -0.00726834824308753, -0.02496934123337269, 0.04227536544203758, 0.0007201384869404137, -0.01237571332603693, -0.0029418424237519503, 0.0008824392571114004, -0.019648602232336998, -0.007853993214666843, -0.05037451162934303, 0.025623084977269173, -0.02705768682062626, 0.0042334385216236115, 0.007731416262686253, -0.03453940898180008, -0.020774492993950844, -0.03987830877304077, -0.020320504903793335, 0.06257770955562592, -0.03038087859749794, 0.002442455617710948, 0.0007598624797537923, -0.05905476212501526, 0.011059148237109184, 0.04147634655237198, 0.09028913825750351, -0.005797427147626877, -0.05538653954863548, -0.05451488122344017, 0.027711428701877594, 0.0005759972846135497, 0.006714482791721821, 0.05495071038603783, -0.05636715516448021, 0.0956643596291542, 0.02128295972943306, -0.00023408757988363504, -0.014681972563266754, -0.006600985769182444, 0.0173423420637846, 0.023480260744690895, -0.019485166296362877, 0.03463020548224449, 0.05026555433869362, 0.059490591287612915, 0.024642469361424446, -0.017015472054481506, -0.01933988928794861, 0.01718798652291298, 0.002196167130023241, -0.05215414613485336, -0.007454483304172754, -0.023934248834848404, -0.0013494794256985188, 0.04572567343711853, -0.012021603062748909, 0.08578557521104813, -0.003920186776667833, -0.028564926236867905, -0.04332861676812172, 0.03588321432471275, 0.057420406490564346, 0.015181359834969044, -0.04336493834853172, -0.0008398778736591339, -0.026930570602416992, -0.01364688016474247, 0.0013245100853964686, 0.03177916258573532, -0.04536248371005058, 0.014409580267965794, -0.05909108370542526, -0.041984811425209045, 0.02999952808022499, -0.022463327273726463, 0.03433965519070625, 0.015707986429333687, -0.026313146576285362, 0.06413942575454712, 0.020701853558421135, -0.012793382629752159, 0.049539174884557724, 0.02437007799744606, -0.056330833584070206, 0.030961982905864716, -0.0051346044056117535, -0.038825057446956635, -0.006950556766241789, -0.014454978518188, 0.015462832525372505, 0.0647568553686142, -0.006324053276330233, -0.00028970109997317195, 0.031888119876384735, -0.036518797278404236, -0.040749967098236084, -0.003858898300677538, -0.031579408794641495, -0.005239021964371204, 0.022100137546658516, 0.06762605905532837, -0.07332814484834671, -0.06700862944126129, -0.03352247551083565, -0.020629215985536575, 0.002399326767772436, -0.008253502659499645, -0.05171831697225571, 0.05157304182648659, -0.02999952808022499, -0.05051978677511215, -0.006001721601933241, 0.027511674910783768, 0.020683694630861282, 0.01788712851703167, 0.03838922828435898, -0.07903023809194565, -0.009506509639322758, 0.014227984473109245, -0.02605891227722168, 0.015381114557385445, -0.014863568358123302, -0.06802556663751602, 0.026876091957092285, -0.03334088250994682, 0.09203245490789413, 0.018595349043607712, 0.03962407633662224, 0.013674119487404823, 0.04278383031487465, 0.05727513134479523, 0.018395595252513885, 0.054878074675798416, 0.010850314050912857, -0.003986014984548092, -0.03715438023209572, -0.013356328010559082, -0.04990236461162567, 0.05371586233377457, -0.008939024060964584, -0.06265034526586533, -0.008248962461948395, 0.016470685601234436, -0.01827755756676197, -0.02560492418706417, 0.020538417622447014, 0.01595313847064972, 0.014100868254899979, -0.03533842787146568, -0.003150676842778921, 0.03499339893460274, -0.007050434127449989, 0.030108485370874405, 0.03969671204686165, -0.03433965519070625, 0.018068723380565643, 0.03346799686551094, 0.02560492418706417, -0.0478321798145771, 0.0025718421675264835, 0.04194849357008934, 0.03639167919754982, 0.037517569959163666, 0.0071094525046646595, -0.00586098525673151, -0.0025718421675264835, 0.07118532061576843, 0.07961133867502213, -0.03484812006354332, -0.03788075968623161, -0.08687514811754227, 0.04045941308140755, -0.032505542039871216, -0.03846186399459839, 0.01919461414217949, -0.04572567343711853, 0.014082708396017551, 0.052081506699323654, -0.023117071017622948, 0.028782840818166733, 0.032051555812358856, -0.0015810133190825582, -0.013374486938118935, -0.030671430751681328, -0.018150441348552704, 0.007386385463178158, -0.019939154386520386, -0.04750530794262886, -0.015608108602464199, 0.014173505827784538, -0.030290082097053528, -0.01618921384215355, 0.0724564865231514, -0.03408542275428772, -0.009933258406817913, -0.009229576215147972, -0.049466535449028015, 0.05749304220080376, -0.014155346900224686, -0.041912175714969635, -0.006383071653544903, 0.019212773069739342, -0.003942885901778936, 0.017796330153942108, -0.037590209394693375, -0.022535966709256172, -0.04038677364587784, 0.05357058718800545, 0.005347978789359331, 0.010568841360509396, -0.026422103866934776, 0.026803452521562576, 0.010741356760263443, 0.05160935968160629, -0.0378081239759922, -0.007881232537329197, -0.028964435681700706, -0.011803688481450081, -0.05051978677511215, -0.004228898324072361, -0.005102825351059437, -0.03254186362028122, 0.03179732337594032, 0.030017688870429993, -0.011513136327266693, 0.0009766417788341641, 0.019158294424414635, -0.0023334985598921776, 0.0033572413958609104, -0.0066509246826171875, -0.03926088660955429, -0.01874062605202198, 0.018758784979581833, -0.00720932986587286, 0.03711806237697601, 0.019612282514572144, -0.008248962461948395, -0.007245649117976427, 0.012275836430490017, -0.038207631558179855, 0.000915920827537775, -0.013056695461273193, -0.06163341552019119, -0.0020588357001543045, -0.005856445524841547, 0.001709264935925603, -0.029327627271413803, -0.008167244493961334, 0.030871186405420303, -0.02052025869488716, 0.11375124007463455, -0.05182727426290512, 0.012775222770869732, -0.0008909514872357249, -0.02190038189291954, -0.023316824808716774, -0.004031413700431585, 0.017069950699806213, 0.03606480732560158, 0.022263573482632637, -0.006274114362895489, 0.008689330890774727, 0.09777086228132248, 0.013211051933467388, -0.059018444269895554, 0.012130560353398323, 0.04449082538485527, 0.054478563368320465, -0.055313900113105774, 0.06413942575454712, 0.034357812255620956, 0.015490071848034859, -0.0029191430658102036, -0.015326635912060738, -0.0006282059475779533, -0.027402717620134354, -0.05749304220080376, 0.011694731190800667, 0.06976888328790665, 0.09166926145553589, 0.03479364141821861, 0.02220909483730793, -0.02368001639842987, 0.009052521549165249, -0.009560988284647465, 0.028855478391051292, 0.028129098936915398, -0.042602237313985825, 0.017024550586938858, 0.00952466856688261, -0.028201736509799957, 0.047069478780031204, -0.11004669964313507, 0.0717664286494255, -0.009697183966636658, -0.03448493033647537, 0.020302344113588333, 0.03740861266851425, 0.06530164182186127, -0.02954554185271263, -0.04841328412294388, -0.05567709356546402, -0.006174237001687288, 0.057819914072752, -0.019539644941687584, 0.04111315682530403, 0.028274374082684517, 0.006655464414507151, -0.09900570660829544, -0.023171549662947655, -0.05273525044322014, -0.025495966896414757, 0.047468990087509155, 0.01834111660718918, -0.0035479164216667414, -0.06777133047580719, -0.030653271824121475, 0.019612282514572144, -0.051318805664777756, 0.0131111741065979, -0.0017365042585879564, -0.052481018006801605, 0.019230931997299194, 0.007127611897885799, 0.024624310433864594, 0.01773277297616005, 0.027039527893066406, -0.09130607545375824, 0.02513277716934681, -0.06798924505710602, -0.0011735591106116772, -0.018686147406697273, -0.011758290231227875, 0.006333133205771446, -0.015608108602464199, 0.08520447462797165, 0.02173694595694542, -0.0393335223197937, -0.013592401519417763, 0.05371586233377457, 0.018994858488440514, 0.06570114940404892, 0.03484812006354332, -0.039987266063690186, 0.060798075050115585, 0.003320922376587987, -0.07488986849784851, 0.02805645950138569, -0.041440028697252274, -0.060870714485645294, 0.015544550493359566, -0.008898165076971054, -0.02190038189291954, 0.012057921849191189, 0.024043206125497818, -0.032342106103897095, -0.03344983980059624, 0.012974977493286133, -0.0034276095684617758, -0.08505919575691223, 0.05106457322835922, 0.034049101173877716, 0.008130925707519054, 0.008494116365909576, -0.012030682526528835, -0.00013832448166795075, 0.037372294813394547, -0.011367860250175, 0.01441865973174572, 0.0051663839258253574, -0.006923317443579435, -0.006809820421040058, 0.005139144603163004, -0.04209376871585846, -0.03361327201128006, 0.07289231568574905, -0.010986510664224625, 0.04489033669233322, -0.015099641866981983, -0.011277062818408012, 0.0663548931479454, -0.03788075968623161, -0.01895854063332081, 0.02389792911708355, -0.003209695452824235, -0.03484812006354332, -0.016525164246559143, -0.013392646797001362, 0.00715031148865819, -0.05251733586192131, 0.035429224371910095, 0.0037794504314661026, 0.04797745496034622, -0.017451299354434013, -0.003277793526649475, 0.009016201831400394, 0.040205180644989014, -0.009778901934623718, 0.01827755756676197, 0.011794609017670155, 0.005002947989851236, -0.02836517244577408, 0.028546767309308052, -0.006097059231251478, 0.00043696348438970745, 0.04913966357707977, 0.0315975658595562, 0.033722229301929474, -0.009470189921557903, -0.026640018448233604, 0.04303806647658348, 0.017387742176651955, 0.013574241660535336, -0.04656101390719414, -0.07656054198741913, 0.056403473019599915, -0.006019881460815668, -0.1102646142244339, -0.013347247615456581, -0.08367907255887985, -0.015135960653424263, -0.030816707760095596, -0.00883006677031517, -0.018404673784971237, -0.03733597695827484, -0.04478137940168381, 0.02482406608760357, -0.044527146965265274, -0.06363096088171005, 0.04979340732097626, 0.010414485819637775, -0.023189708590507507, -0.027547992765903473, -0.028728362172842026, 0.032178670167922974, -0.03867977857589722, 0.0003118330205325037, 0.036591436713933945, -0.0161982923746109, -0.009860619902610779, -0.012920499779284, -0.0339401438832283, 0.0067780413664877415, 0.06846139580011368, -0.020175227895379066, 0.03185179829597473, 0.04147634655237198, 0.01665228046476841, -0.0030757689382880926, -0.006796200759708881, 0.0273663979023695, -0.0017671483801677823, 0.03915192931890488, -0.0014992954675108194, -0.03911560773849487, -0.0006196936592459679, -0.02244516834616661, 0.02745719626545906, 0.0009108135127462447, 0.04714211821556091, -0.052771568298339844, -0.03147045150399208, 0.06617329269647598, 0.02113768272101879, 0.035429224371910095, 0.029127871617674828, -0.050301872193813324, 0.03441229090094566, -0.022190934047102928, 0.028437810018658638, -0.007159391418099403, 0.013256450183689594, 0.0011582369916141033, -0.022100137546658516, -0.03915192931890488, -0.001483405940234661, 0.05291684344410896, 0.010151172056794167, 0.0100240558385849, 0.02220909483730793, -0.0005595402326434851, -0.0304535161703825, 0.009052521549165249, 0.036827508360147476, 0.0200481116771698, 0.02237253077328205, 0.020611057057976723, -0.012884180061519146, -0.004517180845141411, -0.014999764040112495, 0.012366633862257004, -0.005688469856977463, 0.024460874497890472, -0.006678164005279541, 0.002323283813893795, -0.026022594422101974, -0.004188039340078831, -0.05636715516448021, -0.06308617442846298, 0.03228762745857239, 0.011040989309549332, 0.06217820197343826, 0.02128295972943306, -0.025169096887111664, 0.03995094820857048, 0.009461110457777977, 0.01299313735216856, -0.01726062409579754, 0.07162114977836609, 0.0524446964263916, -0.041367389261722565, 0.03383118659257889, 0.03708174079656601, 3.9014597064124246e-7, 0.0169519130140543, 0.05545917898416519, 0.019067497923970222, 0.054878074675798416, -0.02458799257874489, 0.0014187125489115715, 0.04950285330414772, 0.006773501168936491, 0.039297204464673996, -0.02985425293445587, -0.04993868246674538, -0.008961724117398262, 0.0020508908201009035, -0.0378081239759922, 0.021101363003253937, 0.037063583731651306, 0.0005751460557803512, -0.030199283733963966, -0.07100372761487961, -0.03453940898180008, 0.026476582512259483, 0.01515412051230669, -0.01943068765103817, -0.06344936788082123, -0.02705768682062626, 0.018758784979581833, 0.03655511513352394, 0.04710579663515091, -0.013002216815948486, -0.028110938146710396, 0.07982925325632095, -0.005152764264494181, 0.028256215155124664, -0.018613509833812714, 0.0008222858305089176, 0.08549502491950989, -0.03521130979061127, -0.006532887928187847, 0.019249092787504196, -0.06650016456842422, 0.04518088698387146, -0.08774680644273758, -0.04405499994754791, -0.002431105822324753, 0.01605301722884178, -0.05535022169351578, 0.08120937645435333, -0.04481769725680351, 0.04056837037205696, 0.050774022936820984, -0.030562473461031914, -0.08244422823190689, 0.007931170985102654, -0.019775718450546265, -0.00891178473830223, -0.051173530519008636, -0.06806188821792603, -0.016452526673674583, -0.027003208175301552, -0.009361233562231064, 0.018704306334257126, -0.03788075968623161, -0.031125418841838837, 0.015916820615530014, -0.04387340322136879, 0.022463327273726463, -0.022790199145674706, -0.025350691750645638, 0.006274114362895489, -0.0663548931479454, -0.04071364551782608, 0.03256002068519592, -0.030399037525057793, 0.026422103866934776, 0.013338168151676655, 0.005120984744280577, -0.00044093586620874703, 0.04409131780266762, 0.0021394186187535524, -0.07518041878938675, 0.04038677364587784, -0.011794609017670155, -0.03991462662816048, -0.00014995792298577726, 0.03170652315020561, 0.037590209394693375, 0.020157068967819214, -0.039587754756212234, 0.019249092787504196, 0.021155841648578644, -0.029327627271413803, 0.021918542683124542, -0.004274297505617142, -0.0038430087734013796, -0.06686335802078247, -0.021573511883616447, 0.04794113710522652, -0.02722112275660038, -0.03533842787146568, -0.01010577380657196, -0.031488608568906784, -0.019485166296362877, 0.03867977857589722, -0.001912424573674798, -0.0416216216981411, -0.04263855516910553, 0.02660369873046875, 0.04056837037205696, 0.029708975926041603, -0.032741617411375046, 0.01657964289188385, -0.0005042104749009013, -0.016870195046067238, -0.02676713466644287, 0.02536885067820549, 0.02807462029159069, 0.020937927067279816, -0.0678076520562172, -0.006310433614999056, -0.07332814484834671, -0.00001571224129293114, 0.04525352641940117, -0.020865289494395256, -0.008199024014174938, -0.02783854678273201, 0.010305528528988361, -0.002048620954155922, 0.015862341970205307, 0.016298171132802963, -0.034049101173877716, 0.02019338682293892, 0.06192396581172943, -0.017641974613070488, -0.034739162772893906, -0.00489399116486311, 0.08193575590848923, 0.047214753925800323, 0.00855767447501421, 0.06410311162471771, -0.029109712690114975, -0.06668176501989365, -0.04049573093652725, -0.01780541054904461, -0.0585826151072979, 0.035193152725696564, 0.021246640011668205, -0.007518041878938675, -0.020483938977122307, 0.007527121342718601, -0.043982360512018204, -0.04543512314558029, 0.024188483133912086, 0.03090750426054001, 0.028092779219150543, 0.019321730360388756, 0.012557309120893478, 0.009166018106043339, 0.008289821445941925, 0.03270529583096504, -0.08658459782600403, 0.022318052127957344, -0.03715438023209572, 0.0005643638432957232, 0.05458752065896988, -0.0562945157289505, 0.019085656851530075, -0.021791424602270126, -0.020266026258468628, 0.05215414613485336, -0.043074384331703186, -0.09544644504785538, 0.06762605905532837, 0.012793382629752159, 0.01064147986471653, 0.059417951852083206, -0.04881279170513153, 0.0173514224588871, -0.006823440082371235, 0.029472902417182922, -0.036500636488199234, 0.041984811425209045, 0.006737182382494211, -0.03915192931890488, 0.029273148626089096, 0.00022075168089941144, -0.028328852728009224, -0.004889450967311859, 0.04449082538485527, 0.010305528528988361, 0.0142643041908741, -0.011340620927512646, 0.04282015189528465, 0.031034622341394424, 0.06700862944126129, -0.013991910964250565, -0.004812273196876049, 0.025713881477713585, 0.0005612426903098822, 0.0018624858930706978, -0.008848226629197598, -0.03245106339454651, 0.022917315363883972, -0.05723880976438522, 0.05371586233377457, 0.05466016009449959, -0.02297179400920868, 0.04427291080355644, -0.011694731190800667, -0.03308664634823799, -0.009188718162477016, 0.025931796059012413, 0.06686335802078247, 0.026040753349661827, -0.049866046756505966, -0.0300721675157547, 0.023879770189523697, 0.036355361342430115, 0.018795104697346687, 0.015671666711568832, -0.0008495250949636102, 0.007477182894945145, 0.006283194292336702, 0.03867977857589722, -0.009915098547935486, 0.00782221369445324, -0.0189040619879961, 0.02821989543735981, 0.07180275022983551, 0.012366633862257004, -0.021718787029385567, -0.0009647245751693845, -0.0018942650640383363, -0.037735484540462494, -0.028001980856060982, -0.033595114946365356, -0.03299584984779358, 0.008389698341488838, -0.027202961966395378, 0.05731144919991493, 0.06613697856664658, 0.051173530519008636 ]
17,133
imodels.rule_set.rule_fit
predict
Predict. For regression returns continuous output. For classification, returns discrete output.
def predict(self, X): '''Predict. For regression returns continuous output. For classification, returns discrete output. ''' check_is_fitted(self) if scipy.sparse.issparse(X): X = X.toarray() X = check_array(X) if isinstance(self, RegressorMixin): return self._predict_continuous_output(X) else: return np.argmax(self.predict_proba(X), axis=1)
(self, X)
[ 0.024784933775663376, -0.0023162327706813812, -0.013361052609980106, -0.0044197384268045425, 0.04602140560746193, -0.03812788426876068, -0.022304629907011986, -0.010636339895427227, 0.09588094055652618, -0.022087376564741135, 0.022377047687768936, -0.006852518301457167, 0.03725887089967728, -0.02702988125383854, -0.0056033143773674965, 0.014773196540772915, 0.024241801351308823, -0.018647540360689163, -0.045007556676864624, 0.04808530583977699, 0.021598558872938156, 0.03121199831366539, -0.04627486690878868, 0.0002551589859649539, -0.01686425507068634, -0.0008005542913451791, 0.035122551023960114, -0.0245133675634861, 0.0011914963833987713, -0.02199685573577881, -0.05221311002969742, -0.0014981396961957216, -0.03492340072989464, -0.003745349356904626, 0.006332016550004482, 0.011613977141678333, -0.014845614321529865, 0.034452687948942184, 0.048483602702617645, -0.0493888258934021, -0.05706509202718735, -0.058115147054195404, -0.05311833322048187, 0.0014155383687466383, -0.020023474469780922, -0.004184381105005741, -0.029600705951452255, 0.0493888258934021, 0.008309923112392426, -0.040083158761262894, -0.012446780689060688, -0.021453723311424255, 0.012654980644583702, -0.0031841127201914787, 0.0013736719265580177, 0.05214069411158562, 0.04718008637428284, 0.06423443555831909, -0.020675234496593475, -0.03743991628289223, 0.029039470478892326, 0.024350428953766823, 0.013578305952250957, 0.000824316288344562, 0.05246657505631447, -0.0029329140670597553, 0.0016011085826903582, 0.006707683205604553, 0.0207657553255558, 0.02795320563018322, -0.013053277507424355, -0.05587020143866539, -0.03439837321639061, 0.028152354061603546, 0.05641333386301994, 0.01547926850616932, 0.024658203125, -0.03028867393732071, 0.01562410406768322, 0.025708258152008057, -0.025816885754466057, 0.010419086553156376, -0.0023162327706813812, -0.010790226981043816, -0.03501392528414726, -0.10189160704612732, 0.010790226981043816, -0.038489971309900284, -0.037295080721378326, 0.06901400536298752, -0.01775137148797512, 0.060215260833501816, 0.03964865207672119, 0.06810878217220306, 0.023463312536478043, 0.021489931270480156, -0.0007960281800478697, 0.034778568893671036, 0.02894894778728485, -0.03018004819750786, 0.00010961652878904715, 0.11246457695960999, -0.04750596731901169, 0.03217153251171112, -0.024965977296233177, 0.028405815362930298, 0.014519735239446163, 0.0572461374104023, -0.03646227717399597, -0.026522956788539886, -0.04594898596405983, 0.05822377651929855, -0.02199685573577881, -0.02802562341094017, -0.06810878217220306, -0.03124820813536644, -0.06188086420297623, 0.029636915773153305, -0.1152888685464859, 0.014673622325062752, -0.015922825783491135, 0.03649848699569702, -0.04290744662284851, -0.00999363325536251, -0.022576196119189262, 0.008300870656967163, 0.053371794521808624, 0.040517665445804596, 0.01615818403661251, -0.025744467973709106, -0.03758475184440613, -0.01955275982618332, -0.009350926615297794, 0.004879137966781855, 0.011288098059594631, 0.01573272980749607, 0.020584711804986, -0.003299528267234564, 0.001425722148269415, -0.02114594727754593, 0.10732293128967285, -0.017135821282863617, 0.0405900813639164, 0.008527176454663277, 0.06952092796564102, -0.0033561044838279486, 0.07379356771707535, 0.03975727781653404, -0.003883395344018936, -0.014610256999731064, -0.008002148009836674, -0.0059608761221170425, 0.05152514576911926, -0.07299697399139404, 0.016773734241724014, 0.02366246096789837, -0.017126768827438354, -0.009957424364984035, 0.014773196540772915, -0.021308887749910355, -0.05579778552055359, 0.000020526578737189993, -0.0123291015625, -0.013379157520830631, 0.03401818126440048, 0.03776579350233078, -0.02188822813332081, 0.006576426327228546, 0.015895670279860497, 0.000039320511859841645, 0.045188602060079575, -0.034561313688755035, 0.001278623822145164, 0.012636876665055752, -0.031972382217645645, 0.028930842876434326, 0.010165625251829624, 0.04055387154221535, 0.02954639308154583, 0.09399808198213577, 0.08501829952001572, -0.026016034185886383, -0.07227279245853424, -0.041893597692251205, -0.01643880270421505, -0.005526370368897915, -0.012139005586504936, 0.014447317458689213, -0.038489971309900284, 0.040046948939561844, 0.009722067043185234, 0.0024848298635333776, 0.03124820813536644, -0.029256721958518028, -0.008409497328102589, -0.023608148097991943, -0.014574048109352589, 0.021725289523601532, 0.003980706445872784, 0.01562410406768322, 0.0067846267484128475, -0.03539411723613739, 0.022648613899946213, 0.02699367143213749, -0.07466257363557816, 0.022159794345498085, -0.01973380520939827, -0.005476583261042833, -0.02158045396208763, -0.0737573578953743, -0.021073531359434128, -0.0016961566871032119, 0.010111311450600624, 0.0030777493957430124, 0.05807894095778465, 0.05250278115272522, 0.024386636912822723, -0.0413866750895977, 0.01881047897040844, -0.019534656777977943, 0.01700003817677498, -0.034452687948942184, -0.007078823633491993, 0.027156611904501915, 0.03405439108610153, -0.06188086420297623, 0.025020292028784752, 0.00574814947322011, -0.00006672464223811403, -0.019643282517790794, -0.0023218903224915266, -0.029419662430882454, 0.02954639308154583, -0.03269656002521515, 0.04964228719472885, 0.0030098578426986933, 0.0047207241877913475, 0.004299796652048826, -0.01351494062691927, 0.04757838323712349, -0.014130489900708199, 0.03412680700421333, -0.02188822813332081, -0.0033402631524950266, 0.014166698791086674, 0.05438563972711563, 0.021761497482657433, 0.050149209797382355, 0.010410034097731113, -0.010346668772399426, -0.004833877086639404, -0.014936136081814766, -0.038743432611227036, -0.02281155437231064, 0.014465421438217163, -0.07241763174533844, 0.01105274073779583, 0.023644356057047844, 0.036969199776649475, 0.05427701398730278, -0.060070425271987915, 0.02795320563018322, -0.006639791652560234, 0.020983008667826653, -0.02080196514725685, 0.002579878084361553, -0.009138199500739574, 0.016348280012607574, 0.07661785185337067, 0.04670937359333038, 0.08863917738199234, 0.036516591906547546, -0.06285850703716278, -0.03964865207672119, 0.018294503912329674, 0.05970833823084831, -0.0006296939100138843, -0.030994746834039688, 0.04413854703307152, 0.02791699580848217, 0.01399470679461956, -0.06427064538002014, 0.021037321537733078, -0.015234858728945255, -0.005843197461217642, -0.0046324655413627625, 0.019824326038360596, -0.03968486189842224, 0.013469679281115532, 0.018158720806241035, 0.013641671277582645, 0.05456668511033058, 0.007146714720875025, 0.03255172446370125, 0.03546653315424919, -0.023752983659505844, 0.016212496906518936, -0.032750874757766724, 0.03903310373425484, 0.02277534455060959, 0.004648306872695684, 0.014709831215441227, -0.05941866710782051, -0.05402355268597603, -0.050257835537195206, -0.011831230483949184, 0.029039470478892326, 0.002403360093012452, -0.05087338387966156, 0.03827271610498428, 0.0072643933817744255, 0.06821741163730621, 0.003150166943669319, 0.008472862653434277, -0.10123984515666962, -0.03812788426876068, 0.07198312133550644, 0.01576893962919712, 0.05532706901431084, 0.027084194123744965, -0.040191784501075745, -0.012808868661522865, -0.0044672624208033085, -0.03740370646119118, 0.03365609422326088, 0.04670937359333038, 0.00458946730941534, -0.015117180533707142, -0.012039431370794773, 0.007766790688037872, 0.028079936280846596, -0.03595535457134247, -0.010690652765333652, 0.027627326548099518, -0.04591277614235878, -0.021779602393507957, -0.012736450880765915, -0.007540485821664333, 0.0041097006760537624, 0.002557247644290328, -0.06952092796564102, -0.022684823721647263, -0.04254535958170891, 0.04482651501893997, -0.00611928990110755, -0.013306739740073681, -0.0050058686174452305, 0.03812788426876068, 0.009142725728452206, 0.03409060090780258, -0.05623228847980499, -0.01573272980749607, 0.05290107801556587, 0.06734839826822281, -0.005589735694229603, -0.04475409537553787, 0.0073549156077206135, 0.020095892250537872, 0.021381305530667305, -0.041929807513952255, 0.021562349051237106, -0.02284776233136654, -0.017226343974471092, -0.004417475312948227, -0.03903310373425484, -0.010582026094198227, -0.08624939620494843, 0.04768700897693634, 0.07024510204792023, 0.004168539773672819, -0.01021993812173605, 0.023517625406384468, -0.10080534219741821, 0.036932989954948425, -0.03139304369688034, 0.036263126879930496, 0.013795558363199234, -0.019281193614006042, 0.01764274574816227, -0.012066587805747986, -0.03410870581865311, -0.03758475184440613, -0.05072855204343796, 0.005114495288580656, -0.011722603812813759, 0.02206927351653576, 0.02699367143213749, -0.05413217842578888, 0.05764443427324295, -0.04431958869099617, -0.01584135740995407, -0.030705075711011887, -0.046781789511442184, -0.06231537088751793, -0.05384250730276108, -0.029184306040406227, 0.050330255180597305, 0.03401818126440048, 0.0034104178193956614, 0.01140577718615532, -0.0813974142074585, 0.048592228442430496, 0.018086303025484085, 0.00099404517095536, -0.01569652184844017, 0.0054222699254751205, 0.033112961798906326, -0.010500556789338589, -0.01891910657286644, 0.030795598402619362, -0.027971310541033745, 0.0661897137761116, 0.029492080211639404, -0.05934624746441841, -0.02547290176153183, 0.03358367457985878, 0.00012178043107269332, 0.027047984302043915, -0.0002660499303601682, -0.005345326382666826, 0.003206743160262704, 0.01164113450795412, 0.004698093980550766, -0.019824326038360596, -0.007463542278856039, 0.022721031680703163, -0.0017776265740394592, 0.01397660281509161, 0.016846152022480965, 0.011351463384926319, -0.0733228474855423, -0.06727597862482071, -0.08943577110767365, -0.05601503700017929, -0.02558152750134468, -0.01362356636673212, -0.024676308035850525, 0.014990449883043766, -0.05558053031563759, 0.01852986216545105, 0.001502665807493031, 0.01630301959812641, 0.040191784501075745, 0.04978712275624275, 0.041929807513952255, -0.022413257509469986, 0.006485904101282358, -0.0829181894659996, -0.04283502697944641, -0.05409596860408783, -0.0021329254377633333, -0.016665106639266014, 0.05138031020760536, 0.035231176763772964, 0.0038856584578752518, -0.05590641126036644, -0.03816409036517143, -0.06445169448852539, 0.045369647443294525, -0.007454489823430777, -0.02688504569232464, 0.03217153251171112, -0.013895132578909397, -0.01404902059584856, -0.006594530306756496, -0.017977677285671234, -0.009767328388988972, 0.012691189534962177, -0.0075766947120428085, -0.018158720806241035, 0.030379196628928185, -0.007142188958823681, 0.020168310031294823, -0.03780200332403183, -0.06267745792865753, 0.05449426546692848, 0.0204398762434721, 0.01827639900147915, 0.019860535860061646, 0.012989912182092667, 0.026269495487213135, -0.008776111528277397, 0.0035733573604375124, -0.0064994823187589645, 0.008368762210011482, -0.0001399555621901527, -0.012618771754205227, -0.004870085511356592, -0.04062629118561745, 0.0326603502035141, 0.0028604965191334486, 0.03488719463348389, 0.048519812524318695, 0.06383614242076874, -0.04602140560746193, -0.0165474284440279, 0.05648575350642204, -0.012292892672121525, -0.0027020827401429415, -0.01626680977642536, 0.020095892250537872, -0.010808330960571766, -0.048628438264131546, -0.05148893594741821, -0.029039470478892326, 0.0015581105835735798, -0.040083158761262894, 0.05771685019135475, -0.022123586386442184, 0.02069333754479885, -0.05377009138464928, 0.020584711804986, 0.024893561378121376, -0.014537839218974113, 0.02692125365138054, 0.03416301682591438, 0.02684883587062359, 0.0030935907270759344, -0.04446442425251007, 0.021797707304358482, 0.0016893675783649087, -0.006481377873569727, 0.011233785189688206, -0.01082643587142229, 0.008210348896682262, 0.1144922748208046, 0.012971808202564716, -0.041640136390924454, 0.012890337966382504, 0.04301607236266136, -0.007151240948587656, -0.041676346212625504, 0.03528549149632454, 0.11282666772603989, -0.00672126142308116, 0.02643243595957756, 0.02540048398077488, -0.016637951135635376, -0.012836025096476078, 0.008653907105326653, -0.022539988160133362, -0.03899689391255379, 0.010582026094198227, 0.009667754173278809, 0.0025708258617669344, -0.0104371914640069, -0.03447079285979271, 0.04562310874462128, -0.06028767675161362, 0.014230064116418362, -0.07002785056829453, 0.004820298403501511, 0.016556480899453163, 0.041676346212625504, 0.09740171581506729, 0.061663612723350525, -0.006476851645857096, 0.08516313135623932, 0.019932953640818596, 0.03570189327001572, -0.03736749663949013, -0.058296192437410355, 0.08574247360229492, -0.017153926193714142, -0.0415315106511116, 0.04232810437679291, -0.05536327883601189, 0.055001191794872284, -0.011767865158617496, -0.02125457488000393, 0.06112048029899597, -0.014148594811558723, -0.05554432421922684, 0.01888289675116539, -0.01284507755190134, 0.04250914976000786, 0.03517686575651169, -0.04450063407421112, -0.06930366903543472, 0.03678815811872482, -0.018439339473843575, -0.00940523948520422, -0.020421771332621574, -0.06325680017471313, -0.0011722603812813759, -0.027192819863557816, -0.04297986254096031, 0.00265229563228786, -0.03914172947406769, -0.05728234723210335, -0.04956986755132675, 0.02951018512248993, 0.009685858152806759, -0.02313743345439434, 0.02795320563018322, 0.00248030386865139, -0.03472425416111946, -0.020349353551864624, 0.01665605418384075, -0.05300970748066902, 0.022413257509469986, 0.029600705951452255, 0.02565394528210163, -0.012464884668588638, 0.06908641755580902, -0.022051168605685234, -0.06854328513145447, -0.006028767675161362, 0.02717471681535244, -0.05626849830150604, -0.040083158761262894, -0.015995243564248085, -0.026522956788539886, 0.02284776233136654, -0.011948908679187298, 0.026233287528157234, -0.026052242144942284, 0.007029036059975624, -0.03805546462535858, 0.045478273183107376, 0.07647302001714706, -0.04290744662284851, 0.013723140582442284, 0.0415315106511116, -0.025816885754466057, 0.041784971952438354, 0.02239515259861946, -0.07180207967758179, 0.033710408955812454, -0.009894059039652348, 0.03903310373425484, 0.04598519578576088, 0.025147022679448128, -0.032044801861047745, 0.03838134557008743, 0.01164113450795412, -0.010373825207352638, 0.06246020644903183, 0.036118295043706894, -0.03914172947406769, -0.08885643631219864, 0.018647540360689163, 0.027301447466015816, -0.017172031104564667, -0.0017006827984005213, -0.06984680145978928, -0.00457815220579505, 0.022413257509469986, 0.051561351865530014, -0.028279084712266922, -0.0056349970400333405, -0.033637989312410355, -0.0245133675634861, 0.018077250570058823, 0.03403628617525101, -0.006929461844265461, 0.0026998198591172695, 0.05807894095778465, -0.017443597316741943, -0.025056499987840652, -0.048483602702617645, -0.011134210973978043, 0.01746170036494732, -0.023010702803730965, 0.02806183136999607, 0.029636915773153305, -0.024096965789794922, -0.04830256104469299, -0.04634728282690048, -0.03791062906384468, -0.028713591396808624, 0.01888289675116539, -0.00039094206294976175, -0.02110973931849003, 0.048556022346019745, -0.05644954368472099, -0.002858233405277133, -0.02558152750134468, 0.032895710319280624, -0.0009216275066137314, 0.043667830526828766, 0.006540217436850071, 0.0057979365810751915, 0.0013702773721888661, 0.06122910603880882, -0.03961244225502014, -0.005585209932178259, -0.01789620704948902, -0.057028885930776596, -0.01917256787419319, 0.046999040991067886, -0.010600131005048752, 0.028894634917378426, -0.06376372277736664, 0.004254535771906376, 0.015071919187903404, -0.06944850832223892, 0.051995858550071716, 0.0000927850924199447, -0.0204398762434721, 0.0022211845498532057, -0.01881047897040844, -0.030107630416750908, 0.0415315106511116, -0.01547926850616932, 0.07459016144275665, -0.07201933115720749, -0.03762095794081688, 0.01277265977114439, -0.05597882717847824, -0.0035575160291045904, 0.045297227799892426, 0.004569099750369787, -0.04406612738966942, -0.010066051036119461, 0.002736028516665101, -0.034597523510456085, 0.015352537855505943, -0.02313743345439434, 0.05967212840914726, -0.013080434873700142, -0.025165127590298653, 0.03242499381303787, 0.04290744662284851, -0.07343147695064545, -0.01661079376935959, 0.04826635122299194, -0.04421096295118332, 0.04739733785390854, 0.01870185323059559, 0.006834413856267929, 0.0027858156245201826, -0.03772958740592003, 0.008269187994301319, -0.013469679281115532, -0.016212496906518936, -0.043486788868904114, -0.05587020143866539, 0.041676346212625504, 0.008364235982298851, -0.004422001540660858, -0.03043350949883461, 0.033927660435438156, -0.006504008546471596, -0.010419086553156376, 0.016312072053551674, -0.038634806871414185, 0.040191784501075745, 0.016004296019673347, -0.05373388156294823, 0.015850409865379333, 0.004897242411971092, 0.02699367143213749, -0.026613479480147362, 0.05568915978074074, 0.013695984147489071, -0.015968088060617447, -0.005336274392902851, 0.00425227265805006, 0.013849872164428234, -0.002957807620987296, -0.041169423609972, -0.03242499381303787, -0.002151029882952571, -0.006282229442149401, 0.0014460895908996463, 0.040191784501075745, 0.026088451966643333 ]
17,134
imodels.rule_set.rule_fit
predict_proba
null
def predict_proba(self, X): check_is_fitted(self) if scipy.sparse.issparse(X): X = X.toarray() X = check_array(X) continuous_output = self._predict_continuous_output(X) logits = np.vstack( (1 - continuous_output, continuous_output)).transpose() return softmax(logits, axis=1)
(self, X)
[ 0.02160496450960636, 0.028627028688788414, -0.02657967433333397, -0.02889641746878624, 0.05847528576850891, -0.04615524783730507, -0.032326631247997284, -0.06465326249599457, 0.09583050012588501, 0.005540425423532724, 0.005993896164000034, -0.018156791105866432, 0.0024491914082318544, -0.009536356665194035, -0.02305966429412365, 0.018982917070388794, 0.02262864261865616, -0.04640667513012886, -0.027675189077854156, 0.06422223895788193, 0.03611603006720543, 0.051686692982912064, -0.040228698402643204, 0.027316004037857056, -0.02740580029785633, -0.04629892110824585, 0.003933073487132788, -0.013128204271197319, -0.006891858298331499, -0.02313150092959404, -0.008615945465862751, 0.010991054587066174, -0.013334735296666622, -0.05290792137384415, 0.015310252085328102, 0.039510328322649, 0.014969026669859886, 0.006972674746066332, 0.05359037220478058, -0.08548597991466522, -0.07323777675628662, -0.0649765282869339, -0.10811462253332138, 0.018058015033602715, -0.005100423935800791, -0.024029463529586792, 0.004426952451467514, 0.09647703915834427, 0.006829001009464264, 0.013783716596662998, -0.004009400028735399, -0.0029857235495001078, 0.0248017106205225, -0.02160496450960636, -0.011197585612535477, 0.04945974424481392, 0.024604158475995064, -0.00832859706133604, -0.017519237473607063, -0.06989736109972, 0.03572092950344086, 0.02537640556693077, 0.0426352359354496, 0.0037377667613327503, 0.07693738490343094, -0.011646566912531853, 0.005446139257401228, 0.008355536498129368, 0.016540460288524628, 0.017393523827195168, -0.029668664559721947, -0.07693738490343094, -0.03968992084264755, 0.011754322797060013, 0.011727383360266685, 0.01964740827679634, 0.011026972904801369, -0.048382192850112915, -0.001194289419800043, 0.020293941721320152, -0.023867828771471977, 0.0018890874926000834, -0.005643690936267376, -0.028950294479727745, -0.031087443232536316, -0.07083123922348022, 0.026076816022396088, -0.013783716596662998, -0.028070291504263878, 0.04748423025012016, -0.002622049069032073, 0.0709749162197113, 0.05290792137384415, 0.07514145970344543, 0.012149425223469734, 0.016917603090405464, 0.00028019220917485654, 0.056320175528526306, 0.03284744918346405, -0.006573081947863102, -0.011727383360266685, 0.10502563416957855, -0.05430874228477478, 0.04116257652640343, -0.015588619746267796, 0.05003444105386734, 0.008166964165866375, 0.05779283493757248, 0.0033426634036004543, -0.048274435102939606, -0.02733396366238594, 0.026292327791452408, -0.01169146504253149, -0.037283383309841156, -0.022035986185073853, -0.020150266587734222, -0.04899280518293381, 0.03954624757170677, -0.027800902724266052, 0.04364095255732536, 0.010595951229333878, 0.02683110348880291, -0.02632824517786503, -0.02469395473599434, -0.05818793550133705, 0.006837980356067419, 0.04978301376104355, -0.013262898661196232, 0.037247464060783386, -0.015013924799859524, -0.03864828497171402, -0.02280823513865471, -0.0045055244117975235, 0.027926618233323097, 0.004361850209534168, -0.05086056515574455, 0.007286961656063795, -0.024460485205054283, 0.03331438824534416, -0.04583197832107544, 0.06174386665225029, 0.0025120486970990896, 0.02345476672053337, 0.003948787692934275, 0.07772758603096008, -0.02708253264427185, 0.11034157127141953, 0.024352729320526123, 0.0415576808154583, -0.03175193443894386, 0.001966536743566394, -0.04198870062828064, -0.012284119613468647, -0.03958216309547424, 0.005585323553532362, 0.029129886999726295, 0.002145006787031889, -0.052548736333847046, 0.03372745215892792, -0.04116257652640343, -0.03056662529706955, -0.011754322797060013, -0.03911522403359413, 0.012436773627996445, 0.007120838388800621, 0.005446139257401228, -0.006698796525597572, 0.0757879912853241, 0.027172328904271126, -0.011422076262533665, 0.04906464368104935, -0.02643600106239319, 0.018875161185860634, 0.020347818732261658, 0.0007868391694501042, 0.03512827306985855, 0.0024514361284673214, -0.009536356665194035, 0.021730680018663406, 0.08088841289281845, 0.04716096445918083, -0.018695568665862083, -0.013801675289869308, -0.0461193285882473, -0.016702093183994293, -0.004857974126935005, 0.0008844925323501229, 0.030189482495188713, -0.05851120129227638, 0.02765722945332527, -0.051399342715740204, -0.0457601435482502, 0.0429944209754467, -0.012095548212528229, 0.01736658439040184, 0.044934019446372986, 0.0030440911650657654, 0.047987088561058044, 0.009760846383869648, -0.020311899483203888, 0.03153642639517784, -0.024496402591466904, 0.005531445611268282, 0.018138831481337547, -0.08203780651092529, -0.018309444189071655, -0.03570296987891197, 0.0006785225123167038, 0.009105334058403969, -0.05046546459197998, -0.011897996068000793, -0.0010337787680327892, 0.0017588830087333918, -0.0629291757941246, 0.03317071497440338, 0.05118383467197418, 0.05269240960478783, -0.02537640556693077, 0.0007834718562662601, -0.028878457844257355, 0.014115962199866772, -0.05265649035573006, -0.01694454252719879, 0.03455357626080513, 0.03889971226453781, -0.03175193443894386, -0.00714328745380044, 0.01151187252253294, 0.015884947031736374, -0.011709424667060375, -0.004287768620997667, 0.008988599292933941, -0.010272685438394547, -0.032865408807992935, 0.07492595165967941, 0.018390260636806488, -0.017923321574926376, -0.02447844296693802, -0.059265490621328354, 0.008400434628129005, 0.018237607553601265, 0.006766143720597029, -0.0019070467678830028, 0.016486581414937973, -0.008530639111995697, 0.040336452424526215, 0.012185344472527504, 0.021982109174132347, 0.03782215714454651, -0.003302255179733038, 0.0027814372442662716, 0.014151880517601967, -0.02661559358239174, 0.0018969447119161487, 0.011296361684799194, -0.027818862348794937, 0.027693146839737892, 0.040551964193582535, 0.022610682994127274, 0.03212907910346985, -0.02270047925412655, -0.002756743226200342, -0.02067108452320099, 0.012616366147994995, 0.008750639855861664, 0.027351921424269676, -0.0024581709876656532, -0.0000488968362333253, 0.04313809424638748, 0.04877729341387749, 0.09410641342401505, 0.02668743021786213, -0.01138615794479847, -0.0670238807797432, 0.017680872231721878, 0.01332575548440218, 0.013289837166666985, -0.01747434027493, 0.036924198269844055, 0.040516044944524765, -0.013954329304397106, -0.051902201026678085, 0.01609147898852825, -0.01794128119945526, 0.019234346225857735, 0.01223922148346901, 0.007363288197666407, -0.02868090569972992, 0.037067871540784836, 0.010326562449336052, 0.02110210619866848, 0.06989736109972, 0.014627800323069096, 0.02537640556693077, 0.03979767486453056, 0.0052261389791965485, 0.028734782710671425, -0.004343891050666571, 0.03904338553547859, -0.0005864814156666398, 0.02719028852880001, 0.04198870062828064, -0.05825977399945259, -0.06063039228320122, -0.01968332752585411, 0.020545370876789093, 0.03448174148797989, -0.008270230144262314, -0.04496993497014046, 0.02255680412054062, 0.01055105309933424, 0.0541650652885437, 0.02665151096880436, 0.02501722052693367, -0.1058158427476883, -0.029991930350661278, 0.0750696212053299, 0.01993475668132305, 0.05438057705760002, -0.002213476225733757, -0.02494538389146328, 0.01747434027493, 0.031374793499708176, -0.03455357626080513, 0.013909431174397469, -0.003266336629167199, -0.0003061489260289818, -0.01993475668132305, -0.03821726143360138, -0.05010627955198288, 0.04152176156640053, -0.01936005987226963, -0.009105334058403969, 0.060091614723205566, -0.040551964193582535, 0.010982074774801731, -0.008710231631994247, 0.009302886202931404, 0.01760903373360634, -0.029956011101603508, -0.06587449461221695, -0.03494868054986, -0.03469724953174591, 0.05107607692480087, -0.010326562449336052, -0.0492442362010479, -0.028070291504263878, 0.04644259437918663, -0.024388646706938744, 0.005374302621930838, 0.0024559260345995426, -0.022161701694130898, 0.04741239175200462, 0.05287200212478638, -0.01989883743226528, -0.04241972416639328, 0.02476579137146473, 0.029956011101603508, 0.037462975829839706, -0.004705320578068495, -0.010191868059337139, -0.023652318865060806, -0.0457601435482502, -0.005459608975797892, -0.022071905434131622, 0.01778862625360489, -0.0640067309141159, 0.05355445295572281, 0.03606215491890907, 0.02577150985598564, 0.020527411252260208, 0.01629800908267498, -0.06565897911787033, 0.059983860701322556, -0.01961148902773857, 0.03358377888798714, -0.01601964235305786, -0.041270334273576736, 0.012302079237997532, -0.025951100513339043, -0.02693885937333107, -0.03854052722454071, -0.028591109439730644, -0.009599213488399982, 0.007987371645867825, 0.05276424437761307, 0.044143810868263245, -0.07930800318717957, 0.059912022203207016, -0.037067871540784836, -0.01768985018134117, -0.027908658608794212, -0.06109733507037163, -0.055889155715703964, -0.026166612282395363, -0.03124907612800598, 0.03983359411358833, 0.04928015545010567, 0.029776418581604958, -0.006492265034466982, -0.08555781841278076, 0.01337963342666626, -0.01506780181080103, -0.025466201826930046, -0.034894801676273346, -0.06080998480319977, 0.014484127052128315, -0.0016466378001496196, -0.016594337299466133, 0.04920831695199013, -0.04593973606824875, 0.09051457047462463, 0.05021403357386589, -0.05725405737757683, -0.004799606744199991, 0.04292258247733116, -0.009374722838401794, 0.005190220195800066, 0.000008203549441532232, -0.022179661318659782, 0.007924514822661877, 0.0197551641613245, -0.01686372607946396, -0.040516044944524765, -0.03918706253170967, 0.013963309116661549, -0.019593531265854836, 0.03846869245171547, 0.04748423025012016, 0.015337190590798855, -0.034571535885334015, -0.05341077968478203, -0.015139639377593994, -0.05053729936480522, -0.06228264421224594, -0.04644259437918663, -0.017986178398132324, 0.024711914360523224, -0.028914375230669975, 0.007004103623330593, 0.012984530068933964, 0.020078429952263832, 0.0587267130613327, 0.07945167273283005, 0.03588256239891052, 0.00010066996037494391, -0.0205992478877306, -0.04123441502451897, -0.052405063062906265, -0.0006195937748998404, 0.002397558419033885, -0.01821964792907238, 0.07287859171628952, 0.010748605243861675, 0.03401479870080948, -0.0288245789706707, -0.06899940222501755, -0.06332428008317947, 0.008687782101333141, 0.03625970333814621, 0.0017510259058326483, 0.024532321840524673, 0.0433536060154438, -0.018623732030391693, -0.025340486317873, -0.05129158869385719, -0.03731929883360863, 0.012311059050261974, -0.01601964235305786, 0.0049432809464633465, 0.031267035752534866, 0.004157564137130976, 0.011179626919329166, -0.03882787749171257, -0.034212350845336914, 0.01330779679119587, 0.04953158274292946, 0.025107016786932945, 0.06160019338130951, 0.013595144264400005, 0.01091023813933134, -0.03568501025438309, 0.020689044147729874, 0.006909817457199097, -0.007771860808134079, -0.0010320950532332063, -0.0001919393689604476, -0.013658002018928528, -0.0012537793954834342, -0.0012481671292334795, 0.01885720156133175, 0.030979689210653305, 0.047591984272003174, 0.08555781841278076, -0.07916432619094849, -0.03872011974453926, 0.056104663759469986, -0.027280084788799286, -0.010955136269330978, -0.006568592041730881, -0.009011048823595047, 0.022233538329601288, -0.048920970410108566, -0.05028587207198143, -0.013289837166666985, -0.002411027904599905, -0.04629892110824585, 0.03785807639360428, -0.026418041437864304, 0.0016264336882159114, -0.055027108639478683, -0.032901328057050705, -0.02277231588959694, -0.03114132210612297, 0.0005135220126248896, 0.03342214599251747, 0.0541650652885437, 0.01573229394853115, -0.019018834456801414, 0.0041845026426017284, 0.010667788796126842, 0.0157951507717371, 0.011709424667060375, -0.01569637469947338, 0.006829001009464264, 0.07277084141969681, 0.0429944209754467, -0.03035111539065838, -0.01453800406306982, 0.036960113793611526, 0.007313900161534548, -0.04479034245014191, 0.033188674598932266, 0.05879855155944824, -0.012320038862526417, 0.03929481655359268, 0.009617173112928867, -0.040264613926410675, -0.008687782101333141, -0.01441228948533535, -0.013334735296666622, -0.03480500727891922, 0.022574763745069504, 0.05057321861386299, 0.033188674598932266, 0.00009568907262291759, -0.05355445295572281, 0.07693738490343094, -0.05894222483038902, -0.0019261284032836556, -0.05042954534292221, 0.01055105309933424, 0.025951100513339043, 0.015929846093058586, 0.07729656994342804, 0.03778624162077904, 0.0009361253469251096, 0.06961001455783844, -0.0116196284070611, 0.024496402591466904, -0.02519681304693222, -0.07377655804157257, 0.03893563151359558, -0.02447844296693802, -0.05912181735038757, 0.017995158210396767, -0.06899940222501755, 0.0706157311797142, 0.004415728151798248, 0.01506780181080103, 0.05398547276854515, 0.004597565159201622, -0.08318720012903214, -0.006609000265598297, 0.019809041172266006, 0.002727559534832835, 0.02120986208319664, -0.026956818997859955, -0.0569307915866375, 0.048920970410108566, -0.01037146057933569, 0.008211862295866013, -0.029201723635196686, -0.028052331879734993, -0.006348591297864914, -0.008894313126802444, -0.06454550474882126, 0.0075249215587973595, -0.014906168915331364, -0.07190879434347153, -0.0461193285882473, 0.044682588428258896, -0.005702058784663677, -0.015391068533062935, 0.03220091760158539, 0.0023010275326669216, -0.020240062847733498, 0.01535515021532774, 0.020545370876789093, -0.055386293679475784, 0.0030306216794997454, 0.022538846358656883, 0.0018464343156665564, 0.0096979895606637, 0.05154301971197128, -0.03836093470454216, -0.05890630558133125, 0.002216843655332923, 0.05840344727039337, -0.02577150985598564, -0.007753901649266481, -0.012320038862526417, -0.0433536060154438, 0.03175193443894386, -0.051758527755737305, 0.02939927577972412, -0.021784557029604912, 0.008642883971333504, -0.009222069755196571, 0.0035312355030328035, 0.060127533972263336, -0.0333862267434597, 0.03432010859251022, 0.03270377591252327, -0.013747798278927803, 0.016459643840789795, 0.010236766189336777, -0.05463200807571411, 0.030800096690654755, 0.03252418339252472, 0.044682588428258896, 0.04177319258451462, 0.019862918183207512, 0.017770668491721153, 0.022538846358656883, 0.020293941721320152, -0.01506780181080103, 0.04353319853544235, 0.005513486452400684, -0.05761324241757393, -0.10057174414396286, 0.021766599267721176, 0.009172681719064713, -0.028483353555202484, 0.04604749009013176, -0.05746956542134285, -0.02907600812613964, 0.03933073580265045, 0.04910056293010712, -0.056535687297582626, 0.0014659229200333357, -0.10768359899520874, -0.010209827683866024, 0.015400048345327377, 0.030189482495188713, -0.029489072039723396, -0.0013278613332659006, 0.09123294055461884, -0.039510328322649, -0.01811189390718937, -0.03541561961174011, -0.05527853965759277, 0.0017128625186160207, -0.030512748286128044, 0.03739113733172417, 0.02298782765865326, -0.03324255347251892, -0.055889155715703964, -0.055960990488529205, -0.023778032511472702, 0.013675960712134838, 0.00020442665845621377, 0.008741660043597221, -0.032865408807992935, 0.08448026329278946, -0.05495527386665344, -0.008449822664260864, 0.026382122188806534, 0.0036030723713338375, -0.022359253838658333, 0.07442308962345123, -0.009029007516801357, 0.03904338553547859, -0.034391943365335464, 0.051686692982912064, -0.0538058802485466, -0.0018307199934497476, 0.004554911982268095, -0.04338952153921127, 0.016989441588521004, 0.018031077459454536, -0.048130761831998825, 0.018533935770392418, -0.020796800032258034, -0.011134728789329529, 0.03317071497440338, -0.008997579105198383, 0.059732429683208466, -0.0004767616919707507, -0.03356581926345825, -0.0036255214363336563, -0.0009782173437997699, -0.032290711998939514, 0.022969868034124374, -0.029794378206133842, 0.08088841289281845, -0.03408663719892502, -0.032973162829875946, -0.022502927109599113, -0.03171601891517639, 0.0006111753755249083, 0.01355922594666481, -0.0055763437412679195, -0.04680177941918373, 0.024460485205054283, 0.055709563195705414, -0.036565013229846954, 0.005042056553065777, -0.036996033042669296, 0.04184502735733986, -0.013702900148928165, 0.0005943385767750442, -0.0024222524370998144, 0.02846539579331875, -0.06267774850130081, -0.011628607288002968, 0.04180911183357239, -0.05700262635946274, 0.020617207512259483, 0.01053309440612793, 0.004615524783730507, -0.002684906357899308, -0.05412914976477623, -0.01658535748720169, 0.008647373877465725, -0.008252270519733429, -0.02338293008506298, -0.04561647027730942, 0.029740501195192337, -0.017025358974933624, -0.03248826414346695, -0.0027814372442662716, 0.05876263231039047, -0.0027522535528987646, -0.013146163895726204, 0.015633517876267433, -0.05075281113386154, -0.018911078572273254, 0.007062471006065607, -0.036888279020786285, 0.007260022684931755, 0.018237607553601265, 0.03252418339252472, -0.03299112245440483, 0.05894222483038902, 0.008122066035866737, -0.008297168649733067, -0.005926548969000578, -0.03128499537706375, -0.010227787308394909, -0.03135683387517929, -0.030225399881601334, -0.009473498910665512, -0.00022785784676671028, -0.005567364394664764, -0.016998419538140297, 0.0326678566634655, 0.01622617244720459 ]
17,136
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``. undiscretized_features : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``undiscretized_features`` 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.fplasso.FPLassoClassifier, *, feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', undiscretized_features: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_set.fplasso.FPLassoClassifier
[ 0.04387366771697998, -0.05837138369679451, -0.01911149173974991, 0.0047279298305511475, -0.0029371194541454315, -0.017294520512223244, -0.011529680341482162, 0.009979071095585823, 0.05703957378864288, 0.010920852422714233, -0.021518263965845108, 0.006487823557108641, 0.05125570669770241, -0.005355783738195896, -0.019863013178110123, 0.03750000149011612, 0.029927700757980347, 0.023839421570301056, 0.030175037682056427, -0.033637747168540955, 0.01915905624628067, -0.04280821979045868, -0.028786148875951767, 0.01488774735480547, 0.008461757563054562, 0.06548706442117691, 0.03799467161297798, -0.04543378949165344, 0.08995433896780014, -0.0065116058103740215, -0.025228310376405716, -0.014212328940629959, 0.014649923890829086, 0.06286149471998215, 0.02895738184452057, -0.03156392648816109, -0.01078767143189907, 0.022773971781134605, -0.06255707889795303, -0.015277777798473835, -0.037157535552978516, -0.0267123281955719, 0.048630136996507645, -0.09665144234895706, 0.05943683534860611, 0.031925417482852936, -0.005393835715949535, 0.10509893298149109, -0.019206620752811432, -0.01768455095589161, 0.013165906071662903, -0.011263318359851837, 0.015039954334497452, -0.0050751520320773125, -0.005869482643902302, 0.057343989610672, 0.05563165992498398, 0.04406392574310303, 0.0594748854637146, 0.028044139966368675, 0.0272450540214777, 0.03464611992239952, 0.03236301243305206, -0.008376142010092735, -0.04353120177984238, -0.038698628544807434, -0.046385083347558975, -0.013822298496961594, 0.008647260256111622, 0.0316971093416214, 0.028671994805336, -0.01796993985772133, 0.005450913216918707, 0.02675038017332554, 0.02157534286379814, -0.02638888917863369, -0.04041095823049545, -0.052473362535238266, 0.053044140338897705, -0.04170471802353859, 0.01711377501487732, -0.017218416556715965, -0.027054794132709503, -0.08105022460222244, -0.009156202897429466, -0.032134704291820526, -0.008380898274481297, -0.049277015030384064, 0.03942161425948143, 0.003025114070624113, -0.0854642316699028, 0.05159817263484001, -0.016152968630194664, -0.0030274924356490374, 0.009503425098955631, -0.030669711530208588, 0.001832429552450776, -0.05837138369679451, 0.0024234207812696695, -0.026617199182510376, 0.000684336933773011, 0.035882800817489624, 0.06651446223258972, 0.07572298496961594, 0.037024352699518204, -0.0505707748234272, -0.016733257099986076, -0.008685312233865261, -0.011282344348728657, -0.0038218225818127394, 0.011472602374851704, -0.01082572340965271, -0.05951293930411339, 0.01907343976199627, 0.0012997051235288382, 0.0010315591935068369, -0.019672755151987076, -0.04330289363861084, -0.050875190645456314, -0.014963850378990173, -0.026845509186387062, 0.011101597920060158, -0.02536149136722088, -0.0637366846203804, 0.000734874454792589, 0.004264174494892359, 0.009598554112017155, 0.013432268053293228, 0.0448630154132843, -0.07237442582845688, -0.03156392648816109, -0.006787480786442757, -0.03896499425172806, 0.09292237460613251, 0.04402587562799454, 0.016238585114479065, 0.047526635229587555, 0.020471841096878052, -0.011900684796273708, 0.059094369411468506, -0.003039383562281728, 0.020091325044631958, 0.03679604083299637, -0.021308980882167816, -0.0013615392381325364, -0.05068493261933327, 0.02699771709740162, -0.00012247907579876482, 0.025627853348851204, -0.034132421016693115, 0.025951294228434563, -0.01829337887465954, 0.0027920471038669348, -0.012728310190141201, -0.0027421042323112488, 0.0019763128366321325, 0.02304033562541008, -0.004770738072693348, 0.011206240393221378, -0.018188737332820892, -0.004730308428406715, -0.00563641544431448, -0.012081430293619633, -0.09140030294656754, 0.03525494784116745, 0.021537290886044502, -0.006159626878798008, -0.048515982925891876, -0.03826103359460831, 0.035559359937906265, -0.060882799327373505, -0.027720700949430466, -0.03378995507955551, 0.006777968257665634, 0.03538812696933746, 0.03930745646357536, 0.01711377501487732, 0.005565068684518337, 0.008632990531623363, 0.0281392689794302, 0.013755708001554012, -0.05266362428665161, -0.08554033190011978, -0.03582572191953659, 0.0063213468529284, 0.07127092778682709, 0.006345129571855068, 0.001902587478980422, -0.043645355850458145, 0.04562404751777649, 0.029433028772473335, -0.008390410803258419, 0.053691018372774124, 0.03439878299832344, -0.03129756450653076, -0.048059359192848206, -0.059132419526576996, 0.04874429106712341, 0.013793759047985077, 0.07686453312635422, 0.05833333358168602, 0.008965943939983845, 0.01883561722934246, 0.04904870688915253, 0.006126331631094217, 0.04988584294915199, 0.03649162873625755, -0.0001691519282758236, -0.05239725857973099, -0.013051750138401985, 0.013156392611563206, -0.02659817412495613, 0.018122145906090736, -0.008442732505500317, 0.003971651662141085, -0.010911338962614536, 0.017779679968953133, -0.015610730275511742, -0.012081430293619633, -0.022850075736641884, 0.09277016669511795, 0.048135463148355484, 0.033675797283649445, 0.0197678841650486, 0.025951294228434563, -0.031107306480407715, 0.05551750212907791, -0.051902588456869125, -0.03658675774931908, -0.0790715366601944, 0.0046898783184587955, 0.0007877901662141085, 0.018692921847105026, 0.04387366771697998, -0.03468417003750801, -0.0199391171336174, 0.03614916279911995, 0.038546424359083176, -0.01346080657094717, -0.006663812790066004, -0.0059170471504330635, 0.04942922294139862, 0.05007610470056534, 0.03316210210323334, -0.05502283200621605, -0.017018646001815796, -0.004582857713103294, 0.06780821830034256, 0.04292237386107445, -0.0017908104928210378, 0.0427321158349514, -0.025837138295173645, -0.05182648450136185, -0.00278729060664773, -0.03108827956020832, -0.03407534211874008, -0.04219939187169075, 0.0002636867284309119, 0.04292237386107445, -0.015325342305004597, -0.030745813623070717, 0.012167046777904034, 0.0018847507890313864, 0.041476406157016754, 0.01810312084853649, 0.011796042323112488, 0.04318873584270477, 0.013907914981245995, -0.05566971004009247, 0.004801655188202858, -0.009522450156509876, 0.04497716948390007, -0.0015922279562801123, 0.017617959529161453, -0.01826483942568302, -0.05232115834951401, -0.00006216853216756135, -0.024372145533561707, -0.04330289363861084, -0.012300228700041771, 0.05019025877118111, -0.023592084646224976, 0.04330289363861084, 0.006045471876859665, -0.014469178393483162, -0.030669711530208588, -0.004601883701980114, 0.053576864302158356, 0.012167046777904034, -0.020928462967276573, 0.011130137369036674, 0.007700723130255938, -0.005845699924975634, -0.04261796176433563, 0.032134704291820526, -0.003467465750873089, -0.07309741526842117, 0.0012188451364636421, 0.001686168136075139, -0.011453577317297459, 0.02090943604707718, -0.0011492817429825664, -0.03300989419221878, -0.01780821941792965, 0.05281582847237587, -0.021537290886044502, 0.08105022460222244, -0.008043188601732254, -0.011710425838828087, 0.005764840170741081, 0.0038622526917606592, 0.045319635421037674, -0.03354261815547943, -0.0445205494761467, -0.0012473838869482279, -0.0027207001112401485, -0.013964992016553879, 0.018245814368128777, 0.04014459624886513, 0.10410959273576736, -0.014459664933383465, 0.04733637720346451, -0.03434170410037041, -0.0073915524408221245, -0.013936453498899937, -0.012186072766780853, -0.003517408622428775, -0.0041642882861196995, -0.038299087435007095, 0.0008763793739490211, -0.03125951439142227, -0.0039169518277049065, 0.022678842768073082, 0.02475266344845295, -0.08614916354417801, 0.03120243549346924, -0.0040786718018352985, -0.023458903655409813, 0.014573819935321808, -0.012385845184326172, 0.035026635974645615, -0.017494292929768562, -0.006216704845428467, -0.012737823650240898, -0.03643454983830452, -0.011187214404344559, 0.051940638571977615, -0.0022819158621132374, 0.07914764434099197, -0.023382799699902534, 0.021461186930537224, -0.03816590458154678, 0.05216895043849945, 0.04908675700426102, 0.0843987837433815, -0.006601978559046984, -0.013774733990430832, -0.045890409499406815, -0.007472412660717964, -0.07092846184968948, 0.028462709859013557, -0.0484398789703846, -0.0036220510955899954, 0.006140601355582476, 0.010892313905060291, -0.0009138365858234465, -0.025513699278235435, 0.0037385844625532627, 0.025837138295173645, -0.05658295378088951, 0.003436548635363579, -0.09840182960033417, -0.05437595024704933, 0.02397260256111622, 0.019206620752811432, 0.002129708882421255, -0.03999238833785057, -0.01789383590221405, -0.05068493261933327, 0.028767123818397522, 0.032134704291820526, 0.022165143862366676, -0.005070395767688751, 0.011367960833013058, 0.010350076481699944, -0.045738205313682556, 0.025761034339666367, 0.016105404123663902, 0.0384703204035759, -0.017789192497730255, 0.021879756823182106, -0.05277777835726738, -0.014307457953691483, 0.010606925003230572, -0.018978310748934746, -0.06986301392316818, 0.026274733245372772, -0.010350076481699944, 0.007253614719957113, -0.04269406571984291, 0.0544901080429554, -0.056430745869874954, 0.013061263598501682, 0.02454337850213051, 0.034455858170986176, 0.009674657136201859, 0.03826103359460831, 0.026940640062093735, 0.015610730275511742, 0.019206620752811432, -0.04893455281853676, -0.04893455281853676, 0.020072298124432564, -0.024086758494377136, -0.0016421708278357983, 0.01654299907386303, 0.028671994805336, -0.004699391312897205, 0.029394976794719696, 0.006516362074762583, 0.05612633004784584, 0.008609208278357983, 0.019463470205664635, 0.03468417003750801, 0.05167427659034729, 0.006825532764196396, -0.04512937739491463, -0.042579907923936844, -0.0026184360031038523, 0.04128614813089371, 0.008866057731211185, 0.029356924816966057, -0.041476406157016754, -0.00851407926529646, -0.036301370710134506, -0.015487062744796276, -0.05654489994049072, -0.025133181363344193, 0.013280061073601246, 0.05110350251197815, -0.056430745869874954, -0.044634703546762466, -0.01764649897813797, -0.02218417078256607, -0.042503803968429565, -0.05403348430991173, 0.01054033450782299, 0.038869861513376236, 0.056925419718027115, -0.06647640466690063, 0.05319634824991226, 0.030783865600824356, 0.005360540468245745, 0.0416666679084301, -0.023477930575609207, -0.05220700055360794, 0.035312023013830185, -0.05053272470831871, -0.006093036383390427, 0.038793761283159256, 0.034208524972200394, 0.002753995358943939, -0.06263317912817001, -0.02090943604707718, -0.027834855020046234, 0.03462709113955498, 0.01675228402018547, 0.01057838648557663, -0.06655251234769821, -0.03251522034406662, 0.03023211658000946, -0.0697869136929512, -0.028462709859013557, -0.010331050492823124, -0.023306697607040405, 0.02168949693441391, -0.013299087062478065, 0.020662100985646248, -0.0712328776717186, -0.021993910893797874, 0.017009131610393524, -0.024600457400083542, 0.040905632078647614, 0.05121765658259392, -0.01711377501487732, -0.0662480965256691, -0.013308599591255188, -0.0020167427137494087, -0.02283105067908764, -0.007534246426075697, -0.009436833672225475, 0.06503044068813324, 0.054147642105817795, 0.028082191944122314, -0.017370624467730522, 0.05319634824991226, 0.045319635421037674, 0.015477549284696579, -0.018892694264650345, -0.014355022460222244, -0.018692921847105026, -0.03304794430732727, 0.02022450603544712, 0.041933029890060425, 0.015496575273573399, -0.05007610470056534, -0.046879757195711136, -0.015839040279388428, 0.0018134036799892783, -0.007115677464753389, -0.024809740483760834, -0.0042950911447405815, -0.0048753805458545685, 0.060844749212265015, -0.00436168210580945, -0.017418188974261284, -0.07747336477041245, 0.008024162612855434, -0.05566971004009247, -0.013993531465530396, 0.06849315017461777, 0.012775875627994537, 0.053538814187049866, -0.05171233043074608, 0.011596270836889744, -0.0009239440551027656, 0.012899543158710003, -0.018721461296081543, -0.012947107665240765, 0.028976408764719963, -0.011196727864444256, -0.006188165862113237, -0.010178843513131142, 0.017342085018754005, 0.015753423795104027, 0.061453577131032944, -0.024238964542746544, -0.01150114182382822, 0.046499237418174744, 0.005336758214980364, 0.02475266344845295, 0.040220700204372406, -0.06506849080324173, 0.03165905550122261, -0.005993150640279055, -0.04387366771697998, 0.023477930575609207, -0.013470320031046867, 0.022812023758888245, -0.09140030294656754, -0.06270928680896759, 0.03848934546113014, 0.04170471802353859, 0.01552511379122734, -0.012338279746472836, 0.010312024503946304, 0.053576864302158356, -0.018150685355067253, 0.030251141637563705, 0.016390791162848473, -0.02005327306687832, -0.026864536106586456, 0.025551751255989075, 0.028995433822274208, -0.03784246742725372, 0.07735920697450638, 0.05334855243563652, 0.015591704286634922, -0.04668949916958809, -0.09429223835468292, -0.00861872173845768, 0.0075390031561255455, -0.0031892124097794294, 0.02756849303841591, -0.03571156784892082, 0.05837138369679451, 0.01703767105937004, -0.018169710412621498, -0.032743532210588455, -0.06008371338248253, 0.02675038017332554, -0.04653729125857353, 0.021784627810120583, -0.022070014849305153, -0.06738965213298798, 0.0030084664467722178, -0.014649923890829086, 0.04292237386107445, -0.016894977539777756, 0.007324961945414543, -0.03158295154571533, -0.0701293796300888, -0.03517884388566017, -0.03649162873625755, 0.024619482457637787, 0.04493911564350128, -0.055898021906614304, -0.03222983330488205, 0.034208524972200394, -0.02749238908290863, -0.040182650089263916, 0.020110350102186203, 0.01194824930280447, 0.009960046038031578, -0.007700723130255938, 0.0027611302211880684, -0.0459284633398056, 0.02275494672358036, 0.016647640615701675, -0.022279299795627594, -0.0041262367740273476, -0.02083333395421505, 0.011910198256373405, -0.02454337850213051, 0.027016742154955864, 0.021175799891352654, -0.030898021534085274, 0.05422374606132507, 0.049771688878536224, -0.09824962168931961, -0.020167427137494087, -0.03234398737549782, 0.008594939485192299, 0.0059027778916060925, -0.056887365877628326, 0.014535768888890743, 0.009018264710903168, -0.0701674297451973, -0.010473744012415409, -0.052473362535238266, 0.012119482271373272, -0.02517123334109783, 0.04292237386107445, 0.002009608084335923, 0.09231354296207428, -0.016885465011000633, 0.07073820382356644, 0.024657534435391426, -0.06575342267751694, 0.01675228402018547, 0.0020619293209165335, 0.009555745869874954, -0.021061643958091736, 0.028329528868198395, -0.06613393872976303, 0.037766363471746445, -0.004009703174233437, -0.04280821979045868, 0.0879756435751915, -0.012366819195449352, -0.037766363471746445, 0.07716894894838333, -0.037195585668087006, 0.00500380527228117, 0.05882800742983818, -0.0160197876393795, -0.015068492852151394, -0.0033961187582463026, 0.030650684610009193, -0.04550989344716072, -0.02496194839477539, -0.004818303044885397, 0.05844748765230179, -0.032001521438360214, -0.001998906023800373, 0.021594367921352386, -0.03822298347949982, -0.05445205420255661, 0.07416286319494247, 0.05601217597723007, 0.01577245071530342, 0.008685312233865261, -0.0029133372008800507, 0.01564878225326538, 0.021175799891352654, -0.018436072394251823, 0.030460426583886147, -0.047412481158971786, -0.0272450540214777, 0.034417808055877686, -0.006915905512869358, 0.04216133803129196, -0.04874429106712341, 0.05159817263484001, 0.00011623620957834646, -0.007605593651533127, 0.027149923145771027, 0.00019798801804427058, -0.011491628363728523, -0.05372907221317291, 0.0003207643749192357, -0.08211567997932434, 0.05776255577802658, 0.024486301466822624, -0.009008752182126045, 0.00042778492206707597, -0.08386605978012085, -0.07671232521533966, 0.030441399663686752, -0.007163241971284151, -0.0026707572396844625, 0.01805555634200573, 0.005855212919414043, -0.014307457953691483, 0.007743531372398138, 0.007705479394644499, 0.00703481724485755, -0.020072298124432564, 0.004616152960807085, -0.029718417674303055, 0.04101978614926338, 0.0075532724149525166, 0.04128614813089371, -0.043036527931690216, 0.08021309226751328, 0.009484399110078812, -0.006530631799250841, -0.0071917809545993805, 0.010207382030785084, 0.028748096898198128, 0.014440638944506645, -0.008204909041523933, 0.04041095823049545, -0.038869861513376236, -0.006963470485061407, -0.00042600123560987413, -0.022355403751134872, -0.032857686281204224, -0.0012925703777000308, -0.01935882866382599, 0.08386605978012085, 0.006601978559046984, -0.012385845184326172, -0.00505612650886178, 0.03689117357134819, -0.08135464042425156, 0.006083523388952017, -0.0060026636347174644, 0.024866819381713867, 0.05007610470056534, -0.042579907923936844, 0.05894216150045395, -0.037519026547670364, 0.04387366771697998, 0.02075722999870777, 0.02218417078256607, 0.008181126788258553, 0.00576008390635252, 0.07416286319494247, -0.01356544904410839, 0.028006087988615036, 0.01601027324795723, 0.005983637645840645, 0.003664859104901552, 0.021670471876859665, -0.05426179617643356, 0.0036624809727072716, 0.014840182848274708, 0.03378995507955551, -0.026046423241496086, -0.05114155262708664, -0.020395739004015923, 0.002296185353770852, -0.015068492852151394, 0.021308980882167816, 0.027149923145771027, 0.020148402079939842, 0.056354641914367676 ]
17,140
sklearn.utils._metadata_requests
set_transform_request
Request metadata passed to the ``transform`` 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 ``transform`` 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 ``transform``. - ``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 ---------- rules : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``rules`` parameter in ``transform``. 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.fplasso.FPLassoClassifier, *, rules: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_set.fplasso.FPLassoClassifier
[ 0.04387366771697998, -0.05837138369679451, -0.01911149173974991, 0.0047279298305511475, -0.0029371194541454315, -0.017294520512223244, -0.011529680341482162, 0.009979071095585823, 0.05703957378864288, 0.010920852422714233, -0.021518263965845108, 0.006487823557108641, 0.05125570669770241, -0.005355783738195896, -0.019863013178110123, 0.03750000149011612, 0.029927700757980347, 0.023839421570301056, 0.030175037682056427, -0.033637747168540955, 0.01915905624628067, -0.04280821979045868, -0.028786148875951767, 0.01488774735480547, 0.008461757563054562, 0.06548706442117691, 0.03799467161297798, -0.04543378949165344, 0.08995433896780014, -0.0065116058103740215, -0.025228310376405716, -0.014212328940629959, 0.014649923890829086, 0.06286149471998215, 0.02895738184452057, -0.03156392648816109, -0.01078767143189907, 0.022773971781134605, -0.06255707889795303, -0.015277777798473835, -0.037157535552978516, -0.0267123281955719, 0.048630136996507645, -0.09665144234895706, 0.05943683534860611, 0.031925417482852936, -0.005393835715949535, 0.10509893298149109, -0.019206620752811432, -0.01768455095589161, 0.013165906071662903, -0.011263318359851837, 0.015039954334497452, -0.0050751520320773125, -0.005869482643902302, 0.057343989610672, 0.05563165992498398, 0.04406392574310303, 0.0594748854637146, 0.028044139966368675, 0.0272450540214777, 0.03464611992239952, 0.03236301243305206, -0.008376142010092735, -0.04353120177984238, -0.038698628544807434, -0.046385083347558975, -0.013822298496961594, 0.008647260256111622, 0.0316971093416214, 0.028671994805336, -0.01796993985772133, 0.005450913216918707, 0.02675038017332554, 0.02157534286379814, -0.02638888917863369, -0.04041095823049545, -0.052473362535238266, 0.053044140338897705, -0.04170471802353859, 0.01711377501487732, -0.017218416556715965, -0.027054794132709503, -0.08105022460222244, -0.009156202897429466, -0.032134704291820526, -0.008380898274481297, -0.049277015030384064, 0.03942161425948143, 0.003025114070624113, -0.0854642316699028, 0.05159817263484001, -0.016152968630194664, -0.0030274924356490374, 0.009503425098955631, -0.030669711530208588, 0.001832429552450776, -0.05837138369679451, 0.0024234207812696695, -0.026617199182510376, 0.000684336933773011, 0.035882800817489624, 0.06651446223258972, 0.07572298496961594, 0.037024352699518204, -0.0505707748234272, -0.016733257099986076, -0.008685312233865261, -0.011282344348728657, -0.0038218225818127394, 0.011472602374851704, -0.01082572340965271, -0.05951293930411339, 0.01907343976199627, 0.0012997051235288382, 0.0010315591935068369, -0.019672755151987076, -0.04330289363861084, -0.050875190645456314, -0.014963850378990173, -0.026845509186387062, 0.011101597920060158, -0.02536149136722088, -0.0637366846203804, 0.000734874454792589, 0.004264174494892359, 0.009598554112017155, 0.013432268053293228, 0.0448630154132843, -0.07237442582845688, -0.03156392648816109, -0.006787480786442757, -0.03896499425172806, 0.09292237460613251, 0.04402587562799454, 0.016238585114479065, 0.047526635229587555, 0.020471841096878052, -0.011900684796273708, 0.059094369411468506, -0.003039383562281728, 0.020091325044631958, 0.03679604083299637, -0.021308980882167816, -0.0013615392381325364, -0.05068493261933327, 0.02699771709740162, -0.00012247907579876482, 0.025627853348851204, -0.034132421016693115, 0.025951294228434563, -0.01829337887465954, 0.0027920471038669348, -0.012728310190141201, -0.0027421042323112488, 0.0019763128366321325, 0.02304033562541008, -0.004770738072693348, 0.011206240393221378, -0.018188737332820892, -0.004730308428406715, -0.00563641544431448, -0.012081430293619633, -0.09140030294656754, 0.03525494784116745, 0.021537290886044502, -0.006159626878798008, -0.048515982925891876, -0.03826103359460831, 0.035559359937906265, -0.060882799327373505, -0.027720700949430466, -0.03378995507955551, 0.006777968257665634, 0.03538812696933746, 0.03930745646357536, 0.01711377501487732, 0.005565068684518337, 0.008632990531623363, 0.0281392689794302, 0.013755708001554012, -0.05266362428665161, -0.08554033190011978, -0.03582572191953659, 0.0063213468529284, 0.07127092778682709, 0.006345129571855068, 0.001902587478980422, -0.043645355850458145, 0.04562404751777649, 0.029433028772473335, -0.008390410803258419, 0.053691018372774124, 0.03439878299832344, -0.03129756450653076, -0.048059359192848206, -0.059132419526576996, 0.04874429106712341, 0.013793759047985077, 0.07686453312635422, 0.05833333358168602, 0.008965943939983845, 0.01883561722934246, 0.04904870688915253, 0.006126331631094217, 0.04988584294915199, 0.03649162873625755, -0.0001691519282758236, -0.05239725857973099, -0.013051750138401985, 0.013156392611563206, -0.02659817412495613, 0.018122145906090736, -0.008442732505500317, 0.003971651662141085, -0.010911338962614536, 0.017779679968953133, -0.015610730275511742, -0.012081430293619633, -0.022850075736641884, 0.09277016669511795, 0.048135463148355484, 0.033675797283649445, 0.0197678841650486, 0.025951294228434563, -0.031107306480407715, 0.05551750212907791, -0.051902588456869125, -0.03658675774931908, -0.0790715366601944, 0.0046898783184587955, 0.0007877901662141085, 0.018692921847105026, 0.04387366771697998, -0.03468417003750801, -0.0199391171336174, 0.03614916279911995, 0.038546424359083176, -0.01346080657094717, -0.006663812790066004, -0.0059170471504330635, 0.04942922294139862, 0.05007610470056534, 0.03316210210323334, -0.05502283200621605, -0.017018646001815796, -0.004582857713103294, 0.06780821830034256, 0.04292237386107445, -0.0017908104928210378, 0.0427321158349514, -0.025837138295173645, -0.05182648450136185, -0.00278729060664773, -0.03108827956020832, -0.03407534211874008, -0.04219939187169075, 0.0002636867284309119, 0.04292237386107445, -0.015325342305004597, -0.030745813623070717, 0.012167046777904034, 0.0018847507890313864, 0.041476406157016754, 0.01810312084853649, 0.011796042323112488, 0.04318873584270477, 0.013907914981245995, -0.05566971004009247, 0.004801655188202858, -0.009522450156509876, 0.04497716948390007, -0.0015922279562801123, 0.017617959529161453, -0.01826483942568302, -0.05232115834951401, -0.00006216853216756135, -0.024372145533561707, -0.04330289363861084, -0.012300228700041771, 0.05019025877118111, -0.023592084646224976, 0.04330289363861084, 0.006045471876859665, -0.014469178393483162, -0.030669711530208588, -0.004601883701980114, 0.053576864302158356, 0.012167046777904034, -0.020928462967276573, 0.011130137369036674, 0.007700723130255938, -0.005845699924975634, -0.04261796176433563, 0.032134704291820526, -0.003467465750873089, -0.07309741526842117, 0.0012188451364636421, 0.001686168136075139, -0.011453577317297459, 0.02090943604707718, -0.0011492817429825664, -0.03300989419221878, -0.01780821941792965, 0.05281582847237587, -0.021537290886044502, 0.08105022460222244, -0.008043188601732254, -0.011710425838828087, 0.005764840170741081, 0.0038622526917606592, 0.045319635421037674, -0.03354261815547943, -0.0445205494761467, -0.0012473838869482279, -0.0027207001112401485, -0.013964992016553879, 0.018245814368128777, 0.04014459624886513, 0.10410959273576736, -0.014459664933383465, 0.04733637720346451, -0.03434170410037041, -0.0073915524408221245, -0.013936453498899937, -0.012186072766780853, -0.003517408622428775, -0.0041642882861196995, -0.038299087435007095, 0.0008763793739490211, -0.03125951439142227, -0.0039169518277049065, 0.022678842768073082, 0.02475266344845295, -0.08614916354417801, 0.03120243549346924, -0.0040786718018352985, -0.023458903655409813, 0.014573819935321808, -0.012385845184326172, 0.035026635974645615, -0.017494292929768562, -0.006216704845428467, -0.012737823650240898, -0.03643454983830452, -0.011187214404344559, 0.051940638571977615, -0.0022819158621132374, 0.07914764434099197, -0.023382799699902534, 0.021461186930537224, -0.03816590458154678, 0.05216895043849945, 0.04908675700426102, 0.0843987837433815, -0.006601978559046984, -0.013774733990430832, -0.045890409499406815, -0.007472412660717964, -0.07092846184968948, 0.028462709859013557, -0.0484398789703846, -0.0036220510955899954, 0.006140601355582476, 0.010892313905060291, -0.0009138365858234465, -0.025513699278235435, 0.0037385844625532627, 0.025837138295173645, -0.05658295378088951, 0.003436548635363579, -0.09840182960033417, -0.05437595024704933, 0.02397260256111622, 0.019206620752811432, 0.002129708882421255, -0.03999238833785057, -0.01789383590221405, -0.05068493261933327, 0.028767123818397522, 0.032134704291820526, 0.022165143862366676, -0.005070395767688751, 0.011367960833013058, 0.010350076481699944, -0.045738205313682556, 0.025761034339666367, 0.016105404123663902, 0.0384703204035759, -0.017789192497730255, 0.021879756823182106, -0.05277777835726738, -0.014307457953691483, 0.010606925003230572, -0.018978310748934746, -0.06986301392316818, 0.026274733245372772, -0.010350076481699944, 0.007253614719957113, -0.04269406571984291, 0.0544901080429554, -0.056430745869874954, 0.013061263598501682, 0.02454337850213051, 0.034455858170986176, 0.009674657136201859, 0.03826103359460831, 0.026940640062093735, 0.015610730275511742, 0.019206620752811432, -0.04893455281853676, -0.04893455281853676, 0.020072298124432564, -0.024086758494377136, -0.0016421708278357983, 0.01654299907386303, 0.028671994805336, -0.004699391312897205, 0.029394976794719696, 0.006516362074762583, 0.05612633004784584, 0.008609208278357983, 0.019463470205664635, 0.03468417003750801, 0.05167427659034729, 0.006825532764196396, -0.04512937739491463, -0.042579907923936844, -0.0026184360031038523, 0.04128614813089371, 0.008866057731211185, 0.029356924816966057, -0.041476406157016754, -0.00851407926529646, -0.036301370710134506, -0.015487062744796276, -0.05654489994049072, -0.025133181363344193, 0.013280061073601246, 0.05110350251197815, -0.056430745869874954, -0.044634703546762466, -0.01764649897813797, -0.02218417078256607, -0.042503803968429565, -0.05403348430991173, 0.01054033450782299, 0.038869861513376236, 0.056925419718027115, -0.06647640466690063, 0.05319634824991226, 0.030783865600824356, 0.005360540468245745, 0.0416666679084301, -0.023477930575609207, -0.05220700055360794, 0.035312023013830185, -0.05053272470831871, -0.006093036383390427, 0.038793761283159256, 0.034208524972200394, 0.002753995358943939, -0.06263317912817001, -0.02090943604707718, -0.027834855020046234, 0.03462709113955498, 0.01675228402018547, 0.01057838648557663, -0.06655251234769821, -0.03251522034406662, 0.03023211658000946, -0.0697869136929512, -0.028462709859013557, -0.010331050492823124, -0.023306697607040405, 0.02168949693441391, -0.013299087062478065, 0.020662100985646248, -0.0712328776717186, -0.021993910893797874, 0.017009131610393524, -0.024600457400083542, 0.040905632078647614, 0.05121765658259392, -0.01711377501487732, -0.0662480965256691, -0.013308599591255188, -0.0020167427137494087, -0.02283105067908764, -0.007534246426075697, -0.009436833672225475, 0.06503044068813324, 0.054147642105817795, 0.028082191944122314, -0.017370624467730522, 0.05319634824991226, 0.045319635421037674, 0.015477549284696579, -0.018892694264650345, -0.014355022460222244, -0.018692921847105026, -0.03304794430732727, 0.02022450603544712, 0.041933029890060425, 0.015496575273573399, -0.05007610470056534, -0.046879757195711136, -0.015839040279388428, 0.0018134036799892783, -0.007115677464753389, -0.024809740483760834, -0.0042950911447405815, -0.0048753805458545685, 0.060844749212265015, -0.00436168210580945, -0.017418188974261284, -0.07747336477041245, 0.008024162612855434, -0.05566971004009247, -0.013993531465530396, 0.06849315017461777, 0.012775875627994537, 0.053538814187049866, -0.05171233043074608, 0.011596270836889744, -0.0009239440551027656, 0.012899543158710003, -0.018721461296081543, -0.012947107665240765, 0.028976408764719963, -0.011196727864444256, -0.006188165862113237, -0.010178843513131142, 0.017342085018754005, 0.015753423795104027, 0.061453577131032944, -0.024238964542746544, -0.01150114182382822, 0.046499237418174744, 0.005336758214980364, 0.02475266344845295, 0.040220700204372406, -0.06506849080324173, 0.03165905550122261, -0.005993150640279055, -0.04387366771697998, 0.023477930575609207, -0.013470320031046867, 0.022812023758888245, -0.09140030294656754, -0.06270928680896759, 0.03848934546113014, 0.04170471802353859, 0.01552511379122734, -0.012338279746472836, 0.010312024503946304, 0.053576864302158356, -0.018150685355067253, 0.030251141637563705, 0.016390791162848473, -0.02005327306687832, -0.026864536106586456, 0.025551751255989075, 0.028995433822274208, -0.03784246742725372, 0.07735920697450638, 0.05334855243563652, 0.015591704286634922, -0.04668949916958809, -0.09429223835468292, -0.00861872173845768, 0.0075390031561255455, -0.0031892124097794294, 0.02756849303841591, -0.03571156784892082, 0.05837138369679451, 0.01703767105937004, -0.018169710412621498, -0.032743532210588455, -0.06008371338248253, 0.02675038017332554, -0.04653729125857353, 0.021784627810120583, -0.022070014849305153, -0.06738965213298798, 0.0030084664467722178, -0.014649923890829086, 0.04292237386107445, -0.016894977539777756, 0.007324961945414543, -0.03158295154571533, -0.0701293796300888, -0.03517884388566017, -0.03649162873625755, 0.024619482457637787, 0.04493911564350128, -0.055898021906614304, -0.03222983330488205, 0.034208524972200394, -0.02749238908290863, -0.040182650089263916, 0.020110350102186203, 0.01194824930280447, 0.009960046038031578, -0.007700723130255938, 0.0027611302211880684, -0.0459284633398056, 0.02275494672358036, 0.016647640615701675, -0.022279299795627594, -0.0041262367740273476, -0.02083333395421505, 0.011910198256373405, -0.02454337850213051, 0.027016742154955864, 0.021175799891352654, -0.030898021534085274, 0.05422374606132507, 0.049771688878536224, -0.09824962168931961, -0.020167427137494087, -0.03234398737549782, 0.008594939485192299, 0.0059027778916060925, -0.056887365877628326, 0.014535768888890743, 0.009018264710903168, -0.0701674297451973, -0.010473744012415409, -0.052473362535238266, 0.012119482271373272, -0.02517123334109783, 0.04292237386107445, 0.002009608084335923, 0.09231354296207428, -0.016885465011000633, 0.07073820382356644, 0.024657534435391426, -0.06575342267751694, 0.01675228402018547, 0.0020619293209165335, 0.009555745869874954, -0.021061643958091736, 0.028329528868198395, -0.06613393872976303, 0.037766363471746445, -0.004009703174233437, -0.04280821979045868, 0.0879756435751915, -0.012366819195449352, -0.037766363471746445, 0.07716894894838333, -0.037195585668087006, 0.00500380527228117, 0.05882800742983818, -0.0160197876393795, -0.015068492852151394, -0.0033961187582463026, 0.030650684610009193, -0.04550989344716072, -0.02496194839477539, -0.004818303044885397, 0.05844748765230179, -0.032001521438360214, -0.001998906023800373, 0.021594367921352386, -0.03822298347949982, -0.05445205420255661, 0.07416286319494247, 0.05601217597723007, 0.01577245071530342, 0.008685312233865261, -0.0029133372008800507, 0.01564878225326538, 0.021175799891352654, -0.018436072394251823, 0.030460426583886147, -0.047412481158971786, -0.0272450540214777, 0.034417808055877686, -0.006915905512869358, 0.04216133803129196, -0.04874429106712341, 0.05159817263484001, 0.00011623620957834646, -0.007605593651533127, 0.027149923145771027, 0.00019798801804427058, -0.011491628363728523, -0.05372907221317291, 0.0003207643749192357, -0.08211567997932434, 0.05776255577802658, 0.024486301466822624, -0.009008752182126045, 0.00042778492206707597, -0.08386605978012085, -0.07671232521533966, 0.030441399663686752, -0.007163241971284151, -0.0026707572396844625, 0.01805555634200573, 0.005855212919414043, -0.014307457953691483, 0.007743531372398138, 0.007705479394644499, 0.00703481724485755, -0.020072298124432564, 0.004616152960807085, -0.029718417674303055, 0.04101978614926338, 0.0075532724149525166, 0.04128614813089371, -0.043036527931690216, 0.08021309226751328, 0.009484399110078812, -0.006530631799250841, -0.0071917809545993805, 0.010207382030785084, 0.028748096898198128, 0.014440638944506645, -0.008204909041523933, 0.04041095823049545, -0.038869861513376236, -0.006963470485061407, -0.00042600123560987413, -0.022355403751134872, -0.032857686281204224, -0.0012925703777000308, -0.01935882866382599, 0.08386605978012085, 0.006601978559046984, -0.012385845184326172, -0.00505612650886178, 0.03689117357134819, -0.08135464042425156, 0.006083523388952017, -0.0060026636347174644, 0.024866819381713867, 0.05007610470056534, -0.042579907923936844, 0.05894216150045395, -0.037519026547670364, 0.04387366771697998, 0.02075722999870777, 0.02218417078256607, 0.008181126788258553, 0.00576008390635252, 0.07416286319494247, -0.01356544904410839, 0.028006087988615036, 0.01601027324795723, 0.005983637645840645, 0.003664859104901552, 0.021670471876859665, -0.05426179617643356, 0.0036624809727072716, 0.014840182848274708, 0.03378995507955551, -0.026046423241496086, -0.05114155262708664, -0.020395739004015923, 0.002296185353770852, -0.015068492852151394, 0.021308980882167816, 0.027149923145771027, 0.020148402079939842, 0.056354641914367676 ]
17,141
imodels.rule_set.rule_fit
transform
Transform dataset. Parameters ---------- X : array-like matrix, shape=(n_samples, n_features) Input data to be transformed. Use ``dtype=np.float32`` for maximum efficiency. Returns ------- X_transformed: matrix, shape=(n_samples, n_out) Transformed data set
def _score_rules(self, X, y, rules) -> Tuple[List[Rule], List[float], float]: X_concat = np.zeros([X.shape[0], 0]) # standardise linear variables if requested (for regression model only) if self.include_linear: # standard deviation and mean of winsorized features self.winsorizer.train(X) winsorized_X = self.winsorizer.trim(X) self.stddev = np.std(winsorized_X, axis=0) self.mean = np.mean(winsorized_X, axis=0) if self.lin_standardise: self.friedscale.train(X) X_regn = self.friedscale.scale(X) else: X_regn = X.copy() X_concat = np.concatenate((X_concat, X_regn), axis=1) X_rules = self.transform(X, rules) if X_rules.shape[0] > 0: X_concat = np.concatenate((X_concat, X_rules), axis=1) # no rules fit and self.include_linear == False if X_concat.shape[1] == 0: return [], [], 0 prediction_task = 'regression' if isinstance( self, RegressorMixin) else 'classification' return score_linear(X_concat, y, rules, prediction_task=prediction_task, max_rules=self.max_rules, alpha=self.alpha, cv=self.cv, random_state=self.random_state)
(self, X=None, rules=None)
[ -0.027497487142682076, -0.0021764289122074842, -0.02308768406510353, -0.02441791445016861, 0.02339746430516243, -0.012117845937609673, -0.040344227105379105, -0.006888038478791714, 0.03269084915518761, 0.0011992567451670766, 0.017757654190063477, 0.006582814734429121, 0.04898160696029663, -0.007790043484419584, 0.014924083836376667, 0.030522393062710762, -0.02818993479013443, -0.029647720977663994, -0.012017622590065002, -0.016582315787672997, 0.00023760202748235315, 0.0005594823160208762, -0.003521464066579938, -0.0008832132443785667, 0.022869016975164413, -0.006241146009415388, 0.04766960069537163, -0.031178396195173264, -0.027843711897730827, 0.0021308730356395245, -0.03837621584534645, 0.05014783516526222, -0.019643666222691536, -0.02731526456773281, -0.04322335124015808, -0.04231223464012146, -0.006263923831284046, 0.041984234005212784, 0.012163401581346989, -0.010760282166302204, -0.03742865473031998, -0.026896150782704353, 0.00843693595379591, 0.03649931401014328, -0.06188301369547844, -0.00012869515921920538, -0.07857466489076614, 0.04140112176537514, 0.023251686245203018, -0.10262812674045563, -0.03669976070523262, -0.026950817555189133, 0.015689421445131302, 0.02070056088268757, 0.029447276145219803, 0.03775665536522865, 0.002867738250643015, 0.0023916801437735558, 0.0236525759100914, -0.08936227858066559, 0.060643892735242844, 0.008851493708789349, -0.03684553876519203, 0.005525919608771801, 0.021520564332604408, -0.05805632472038269, -0.04107311740517616, -0.009530275128781796, 0.025966811925172806, 0.029301496222615242, -0.041874900460243225, 0.0039815776981413364, 0.06188301369547844, -0.06301279366016388, 0.017748543992638588, 0.01429541315883398, 0.010568947531282902, -0.022304125130176544, 0.06133634224534035, -0.014823860488831997, -0.007339041214436293, 0.05419319123029709, 0.015033417381346226, -0.025857478380203247, -0.026896150782704353, -0.05681720748543739, 0.03593442216515541, -0.0003895021800417453, -0.023215241730213165, -0.00405218917876482, -0.019953444600105286, 0.004961027763783932, 0.011789843440055847, -0.022814350202679634, -0.025511253625154495, 0.05295407399535179, -0.06217456981539726, -0.01977122202515602, 0.0091977184638381, -0.025620587170124054, 0.015589198097586632, 0.07117639482021332, -0.034276191145181656, 0.06800571084022522, 0.0017220096196979284, -0.01702876202762127, -0.00810437835752964, -0.00792671088129282, -0.013575631193816662, 0.049674056470394135, -0.03440374881029129, -0.019752999767661095, -0.02146589756011963, 0.030868617817759514, -0.013885410502552986, -0.043806467205286026, -0.07631509006023407, 0.007398263551294804, -0.03990688920021057, -0.00012179061013739556, -0.027351709082722664, 0.0217574555426836, -0.019042328000068665, -0.01783965528011322, -0.015662087127566338, 0.00693359412252903, 0.024490803480148315, -0.006737704388797283, 0.05448474735021591, -0.04541003331542015, -0.0277890432626009, -0.0010352557292208076, 0.01009516790509224, -0.005220695864409208, -0.029629498720169067, -0.04296823963522911, 0.07365463674068451, 0.013028961606323719, 0.04745093360543251, -0.034330859780311584, 0.0856449231505394, 0.06217456981539726, -0.0002955433155875653, -0.0326179601252079, 0.012218068353831768, 0.008036045357584953, 0.023998800665140152, 0.08076134324073792, 0.007503041997551918, 0.0319255106151104, -0.01998988911509514, -0.016700759530067444, 0.034130413085222244, -0.01988055557012558, 0.018951216712594032, 0.010113390162587166, -0.007881155237555504, -0.047523822635412216, 0.029392609372735023, -0.039834000170230865, -0.03303707391023636, -0.0389593280851841, -0.05459408462047577, -0.032435737550258636, 0.062065236270427704, 0.0367179811000824, -0.02603970095515251, 0.003307351842522621, 0.009648720733821392, -0.010787615552544594, -0.011999400332570076, -0.08192756772041321, -0.0505487285554409, 0.03296418488025665, -0.011243173852562904, -0.015006083995103836, -0.021192563697695732, 0.018477436155080795, -0.04876293987035751, 0.0684066042304039, 0.04460825026035309, -0.023925911635160446, -0.008778604678809643, -0.06804215908050537, -0.015762310475111008, 0.053500741720199585, 0.014659859240055084, 0.004068133886903524, -0.05794699117541313, 0.025565920397639275, -0.06148212030529976, -0.06257545948028564, -0.022978350520133972, -0.0018529825611039996, -0.006947260815650225, 0.0033688521943986416, 0.001661648158915341, 0.06665726006031036, 0.03374774381518364, -0.04759671166539192, -0.006541814189404249, 0.03159750998020172, 0.02665925957262516, 0.007042928133159876, -0.042530905455350876, 0.015862533822655678, -0.06235679239034653, 0.017311207950115204, -0.07409197092056274, -0.04613892361521721, -0.00618192320689559, 0.01641831360757351, -0.07146795839071274, 0.033674854785203934, 0.04453536123037338, 0.010669170878827572, 0.06844305247068405, -0.022395236417651176, -0.023944133892655373, -0.04952827841043472, 0.03363841027021408, -0.05499497428536415, -0.03852199390530586, -0.004343746695667505, 0.03635353595018387, -0.014304524287581444, 0.041510455310344696, -0.0033688521943986416, 0.010058722458779812, 0.01779409870505333, 0.010760282166302204, -0.06621992588043213, 0.05215229094028473, -0.01080583781003952, -0.0005509405746124685, 0.02986638993024826, 0.022960128262639046, 0.031834401190280914, -0.0364082045853138, 0.04260379448533058, -0.03491397202014923, -0.013156518340110779, -0.007858376950025558, -0.0313059538602829, -0.00940271932631731, 0.03167039901018143, 0.04683137312531471, 0.00642336905002594, -0.03496864065527916, 0.002637681318446994, -0.004961027763783932, 0.027078373357653618, 0.013311407528817654, -0.02226768061518669, -0.05761898681521416, -0.05652564764022827, -0.05444830283522606, -0.0008285462972708046, 0.041510455310344696, -0.04336913302540779, 0.021374786272644997, 0.07762710005044937, -0.005853921640664339, -0.028736604377627373, -0.033510852605104446, 0.005166029091924429, -0.01626342348754406, 0.036827318370342255, 0.0091977184638381, 0.049674056470394135, 0.03526019677519798, 0.010696504265069962, -0.021520564332604408, -0.008291157893836498, -0.00859182607382536, 0.0582021027803421, 0.011944733560085297, -0.017566319555044174, 0.08221912384033203, 0.020099222660064697, 0.04796115681529045, -0.016737204045057297, -0.0402713343501091, -0.029848167672753334, 0.06359591335058212, -0.013438964262604713, 0.013211185112595558, -0.006714926566928625, -0.025001028552651405, -0.00271968194283545, 0.010404947213828564, -0.03449485823512077, 0.03054061532020569, 0.006778704468160868, 0.061810124665498734, 0.015725865960121155, 0.024782361462712288, -0.04537358507514, 0.04694070667028427, 0.0038813550490885973, -0.03768376633524895, 0.061190564185380936, 0.09898366779088974, -0.0447540283203125, -0.01891477219760418, -0.057874102145433426, 0.011224951595067978, -0.03921443969011307, 0.03526019677519798, -0.024800583720207214, 0.030813949182629585, 0.039177995175123215, 0.03757443279027939, -0.02757037617266178, -0.03618953377008438, 0.0258939228951931, 0.01348451990634203, 0.010896950028836727, 0.07522175461053848, 0.039469555020332336, 0.0016081200446933508, -0.04909094050526619, 0.04267668351531029, 0.025092139840126038, 0.004639859311282635, 0.01330229640007019, 0.005002027843147516, -0.01728387363255024, -0.0022629848681390285, -0.01718365214765072, 0.01906055025756359, -0.05871232971549034, -0.008705715648829937, -0.013448075391352177, -0.006131811998784542, -0.011735176667571068, 0.030704615637660027, 0.045592255890369415, 0.03034016862511635, -0.002168456558138132, -0.058238547295331955, 0.03746509924530983, -0.007088484242558479, 0.009594053961336613, 0.036626871675252914, -0.035096194595098495, -0.05156917870044708, 0.04336913302540779, -0.01942499727010727, 0.008241046220064163, -0.02716948464512825, -0.05856654793024063, 0.03573397919535637, 0.003052239306271076, 0.0364810936152935, -0.01865966059267521, -0.016992317512631416, -0.01809476688504219, 0.05718165263533592, -0.06264834851026535, 0.0035829644184559584, -0.05215229094028473, -0.02232234738767147, 0.07653376460075378, -0.010496058501303196, 0.018322546035051346, -0.009238718077540398, -0.013548297807574272, 0.029028162360191345, -0.05473986268043518, -0.039323776960372925, 0.006569148041307926, -0.030048612505197525, 0.0004213912470731884, -0.0023074017371982336, 0.08367691189050674, 0.0702652782201767, 0.004359690938144922, 0.055031418800354004, -0.02808060124516487, 0.016646092757582664, 0.025766367092728615, -0.012573403306305408, 0.013794299215078354, 0.008719381876289845, -0.00126189598813653, -0.03976111114025116, -0.02665925957262516, 0.016901206225156784, -0.02793482318520546, 0.07689820975065231, 0.013138296082615852, 0.0011115617817267776, -0.08149023354053497, -0.06126345321536064, 0.02859082631766796, 0.013520964421331882, 0.025729920715093613, -0.04191134497523308, -0.032545071095228195, -0.06662081927061081, -0.02793482318520546, 0.0014236191054806113, 0.03343796357512474, -0.045592255890369415, 0.03139706328511238, 0.003576131071895361, 0.07966800034046173, -0.04566514492034912, 0.09555786848068237, -0.0297206100076437, -0.0017914822092279792, 0.016245201230049133, -0.02328813076019287, -0.038667771965265274, 0.025729920715093613, 0.04041711613535881, 0.05809276923537254, 0.035806868225336075, 0.023069461807608604, 0.015734976157546043, -0.046612706035375595, 0.03768376633524895, 0.009512052871286869, 0.0016673426143825054, -0.01138895284384489, -0.048398490995168686, -0.040198445320129395, -0.04759671166539192, -0.027205929160118103, -0.03460419178009033, -0.023379242047667503, -0.06374169141054153, -0.055432308465242386, -0.03505975008010864, -0.05011139065027237, 0.0053755855187773705, 0.048908717930316925, -0.022705016657710075, 0.018377214670181274, 0.035096194595098495, 0.012400291860103607, 0.056853652000427246, 0.0659283697605133, -0.04267668351531029, -0.007708042860031128, -0.03187084570527077, -0.037902433425188065, -0.13010738790035248, 0.022923683747649193, -0.02288723923265934, 0.05124117434024811, 0.04588381201028824, 0.07624220103025436, 0.007079373113811016, 0.026677481830120087, -0.023980578407645226, -0.05386519059538841, 0.000121719429444056, 0.0030772949103266, 0.04756026715040207, 0.023361019790172577, 0.017201874405145645, 0.028007712215185165, -0.10692859441041946, -0.027151262387633324, -0.011206729337573051, 0.01988055557012558, 0.0040977452881634235, -0.017311207950115204, -0.002624014625325799, -0.03221707046031952, -0.0016297590918838978, -0.029848167672753334, -0.02651348151266575, 0.06844305247068405, 0.06782349199056625, -0.01937033049762249, 0.02374368906021118, 0.008605492301285267, 0.004787915851920843, -0.006847038399428129, -0.044936250895261765, -0.002001038985326886, 0.027861934155225754, 0.020882783457636833, -0.02870015986263752, -0.03972466662526131, -0.03394819051027298, 0.0037241873797029257, 0.01236384641379118, -0.0012527847429737449, 0.03278196230530739, -0.03165217861533165, -0.08673826605081558, -0.004879027139395475, 0.02084633894264698, -0.0010284223826602101, -0.012445847503840923, -0.017265651375055313, 0.0020215390250086784, -0.029374387115240097, -0.04446247220039368, 0.015479864552617073, 0.02430858090519905, 0.024326803162693977, -0.03874066099524498, -0.001593314460478723, -0.03961533308029175, -0.01189917791634798, -0.05473986268043518, -0.022158345207571983, 0.017620988190174103, 0.0001901955110952258, -0.021957900375127792, 0.01144361961632967, 0.053755857050418854, 0.03669976070523262, -0.004170634318143129, -0.006031589116901159, 0.012427625246345997, -0.02634948119521141, -0.010067833587527275, -0.020372558385133743, 0.04395224526524544, 0.09599520266056061, -0.023761911317706108, 0.004002077970653772, 0.039177995175123215, -0.05033005774021149, 0.03608020022511482, -0.006669370457530022, -0.01144361961632967, 0.01486030500382185, -0.012099622748792171, 0.07256129384040833, 0.002758404240012169, -0.06636570394039154, -0.037191763520240784, 0.03620775789022446, 0.0022515959572046995, 0.019206330180168152, 0.02762504294514656, -0.005270807072520256, 0.010532503016293049, 0.011152062565088272, 0.010532503016293049, 0.021393008530139923, -0.030249057337641716, -0.011580286547541618, -0.00555780902504921, 0.009630498476326466, 0.008190934546291828, 0.010332058183848858, 0.07052039355039597, 0.023998800665140152, -0.016236091032624245, 0.035497087985277176, -0.014304524287581444, 0.021338341757655144, 0.012883183546364307, -0.07121284306049347, -0.004074967000633478, -0.0441344678401947, -0.06687592715024948, 0.001527258544228971, -0.00408863415941596, 0.04551936686038971, -0.054776307195425034, -0.006632925942540169, -0.027461042627692223, 0.055833201855421066, -0.006837927270680666, -0.03724643215537071, -0.009261496365070343, 0.024581914767622948, 0.04056289419531822, -0.034841082990169525, -0.0422029010951519, 0.023925911635160446, -0.005694476421922445, -0.005972366780042648, 0.00540291890501976, -0.05335496366024017, 0.015516309067606926, 0.010824060067534447, -0.019406775012612343, 0.05681720748543739, -0.00886516086757183, -0.003106906311586499, -0.02833571471273899, 0.07390974462032318, -0.013958300463855267, -0.0268597062677145, -0.016072090715169907, 0.011370730586349964, -0.04336913302540779, -0.013192962855100632, -0.022796127945184708, 0.014541414566338062, -0.013921855948865414, 0.018823660910129547, 0.0033597410656511784, 0.0008923244313336909, 0.06829726696014404, -0.010787615552544594, -0.02274146117269993, 0.0037583543453365564, -0.0239623561501503, -0.02044544741511345, -0.01294696144759655, 0.0008923244313336909, 0.0473051518201828, -0.035861533135175705, 0.08579070121049881, -0.0067331488244235516, -0.008842382580041885, 0.04395224526524544, -0.002667292719706893, -0.02549303136765957, 0.031160173937678337, 0.025857478380203247, -0.01661876030266285, 0.03436730429530144, 0.010796726681292057, 0.04132823273539543, 0.0039018550887703896, -0.06293990463018417, -0.01718365214765072, -0.04573803395032883, -0.03145173192024231, 0.0060680340975522995, 0.006550925318151712, -0.005758254323154688, 0.012928739190101624, 0.014031189493834972, 0.05648920312523842, 0.030522393062710762, 0.017757654190063477, -0.08892494440078735, -0.05597897991538048, -0.010896950028836727, 0.06957283616065979, -0.004724137485027313, -0.019078772515058517, -0.019844111055135727, -0.04045356065034866, 0.015334085561335087, 0.09300674498081207, 0.008550825528800488, -0.006655703764408827, -0.025930367410182953, -0.04912738502025604, 0.04038067162036896, 0.07044750452041626, 0.08396846801042557, 0.028554381802678108, -0.025511253625154495, 0.017101651057600975, -0.0703381672501564, -0.05995144695043564, -0.009284273721277714, 0.04577447846531868, 0.03128772974014282, -0.026276592165231705, 0.021229008212685585, 0.019242774695158005, -0.015971867367625237, -0.006277590524405241, -0.015416085720062256, -0.010523391887545586, -0.012017622590065002, -0.002546569798141718, 0.047523822635412216, 0.025055695325136185, -0.0013678132090717554, -0.009357163682579994, -0.02028144709765911, -0.00591314397752285, -0.04234868288040161, 0.021374786272644997, 0.030558837577700615, -0.003054517088457942, -0.04759671166539192, 0.029738832265138626, 0.014541414566338062, 0.025037473067641258, -0.000492572202347219, -0.015106306411325932, 0.00009089808008866385, -0.039068661630153656, 0.03270907327532768, 0.030704615637660027, -0.029246829450130463, -0.012227179482579231, -0.02101033926010132, -0.06450702995061874, 0.04067222774028778, 0.05510430783033371, 0.007985933683812618, -0.042640239000320435, -0.016345424577593803, -0.02583925612270832, 0.00948471948504448, 0.0015853422228246927, 0.013129184022545815, -0.020937450230121613, -0.0009225051617249846, 0.01620875671505928, -0.03276373818516731, -0.011862733401358128, -0.03440374881029129, 0.0175845418125391, -0.00813171174377203, -0.005662587005645037, -0.04504558444023132, 0.08513469994068146, 0.017666542902588844, -0.015680309385061264, 0.012190734967589378, 0.06913549453020096, -0.002532903105020523, 0.055541642010211945, -0.025365475565195084, 0.017866989597678185, -0.01537053007632494, 0.10590814799070358, -0.07409197092056274, 0.04067222774028778, -0.057874102145433426, 0.05124117434024811, 0.02379835583269596, 0.004380191210657358, 0.0486171618103981, 0.018951216712594032, 0.04056289419531822, -0.0048425826244056225, -0.09956678003072739, 0.019333885982632637, 0.04362424463033676, 0.02130189724266529, -0.029593054205179214, 0.012117845937609673, -0.043915800750255585, -0.028281046077609062, 0.05124117434024811, 0.008218267932534218, 0.031725067645311356, 0.004920027684420347, 0.02359790913760662, 0.020755227655172348, -0.027005484327673912, 0.05320918560028076, 0.03318285197019577, 0.03633531555533409, 0.042239345610141754, 0.018112991005182266, -0.08127156645059586, -0.0016422870103269815, -0.011671398766338825, 0.041619788855314255, 0.004416635725647211, -0.028627270832657814, 0.07595064491033554, 0.01691942848265171, -0.015206529758870602, 0.033510852605104446, 0.060024335980415344 ]
17,142
imodels.rule_set.rule_fit
visualize
null
def visualize(self, decimals=2): rules = self._get_rules() rules = rules[rules.coef != 0].sort_values("support", ascending=False) pd.set_option('display.max_colwidth', None) return rules[['rule', 'coef']].round(decimals)
(self, decimals=2)
[ 0.005538546945899725, -0.018116578459739685, 0.05336666479706764, 0.015413135290145874, 0.00337930372916162, 0.00237867864780128, -0.00809716247022152, -0.08840609341859818, -0.000307483715005219, 0.04013032838702202, 0.024962959811091423, 0.002659555757418275, 0.014008749276399612, -0.06186319887638092, -0.028807466849684715, 0.014052636921405792, 0.01625576801598072, -0.10954210162162781, 0.05554346367716789, 0.03918236866593361, 0.024366095662117004, -0.023593682795763016, -0.012200603261590004, -0.021574879065155983, 0.012139161117374897, -0.041218727827072144, -0.011278974823653698, 0.002852658974006772, -0.014403733424842358, -0.008527255617082119, -0.057298947125673294, 0.013973640277981758, -0.046801161020994186, -0.00541127473115921, -0.004594975151121616, -0.01350843720138073, 0.026893990114331245, -0.04560743272304535, -0.003115981351584196, 0.03869083151221275, -0.00348682701587677, 0.014096523635089397, 0.022277072072029114, -0.018555449321866035, -0.07541552186012268, -0.029825646430253983, 0.0028197437059134245, 0.08756346255540848, 0.012823798693716526, -0.08004999905824661, 0.03530275076627731, 0.015018152073025703, -0.01619432494044304, 0.03119492344558239, 0.014588058926165104, -0.03781308978796005, 0.03154601901769638, -0.016527866944670677, 0.07681991159915924, -0.03284507617354393, -0.019503409042954445, 0.012534144334495068, 0.005766759626567364, -0.008057664148509502, 0.008009388111531734, -0.008048886433243752, -0.005876477342098951, 0.012911573052406311, 0.017835700884461403, -0.00921628251671791, -0.007280863355845213, 0.013139786198735237, 0.027157312259078026, -0.012174270115792751, -0.024524088948965073, -0.01850278489291668, 0.012393705546855927, -0.005779925733804703, -0.005323500372469425, -0.020117828622460365, 0.010453897528350353, 0.03144069015979767, 0.057474493980407715, -0.020451370626688004, 0.04406260699033737, -0.08665060997009277, 0.025314057245850563, 0.007803119253367186, 0.04272844269871712, 0.08264811336994171, -0.015448245219886303, -0.012762357480823994, 0.0065567269921302795, -0.01594855822622776, -0.05276980251073837, 0.007175534497946501, -0.02633223682641983, -0.005718484055250883, 0.0012036026455461979, -0.013289001770317554, 0.032195545732975006, 0.06358357518911362, -0.01832723617553711, 0.04016543924808502, -0.03014163300395012, -0.031142259016633034, -0.009031957015395164, 0.01134041603654623, -0.027227532118558884, 0.04623940587043762, -0.02310214936733246, 0.038796160370111465, 0.005727261304855347, -0.05319111794233322, 0.04841620475053787, 0.007675847038626671, -0.07018418610095978, -0.007895282469689846, 0.017695263028144836, 0.013139786198735237, -0.01451783999800682, 0.021750427782535553, -0.0016391817480325699, 0.03837484493851662, -0.07864560931921005, 0.04729269817471504, 0.0006275849882513285, 0.04206135869026184, 0.01658930815756321, -0.045747872442007065, 0.107716403901577, -0.044799912720918655, -0.006012527272105217, -0.03484632447361946, 0.03988455981016159, 0.012762357480823994, 0.053577322512865067, -0.023769231513142586, 0.06807760894298553, 0.08566754311323166, 0.015500909648835659, 0.00118933932390064, -0.05568390339612961, -0.021873310208320618, 0.013148562982678413, 0.03447767347097397, 0.017388053238391876, 0.0764688178896904, -0.01601877622306347, -0.05150585249066353, -0.03623315691947937, 0.034530337899923325, 0.043571073561906815, -0.09114464372396469, 0.06389956176280975, -0.006600613705813885, 0.024787411093711853, -0.024998068809509277, 0.050277017056941986, 0.0057579823769629, -0.02910589799284935, 0.020907795056700706, 0.03312595188617706, 0.008641362190246582, -0.014860158786177635, 0.014526616781949997, -0.03247642517089844, -0.0634080246090889, -0.00006908783689141273, 0.011928503401577473, -0.011436968110501766, -0.02232973650097847, -0.037146009504795074, 0.02598113939166069, 0.017194950953125954, 0.01351721491664648, -0.015386803075671196, 0.07134280353784561, -0.016527866944670677, -0.006289015989750624, 0.07172901183366776, 0.00023808730475138873, -0.04652028530836105, 0.01929275132715702, 0.0008859700174070895, -0.024348540231585503, 0.030264517292380333, -0.042096469551324844, -0.05803624913096428, -0.04013032838702202, 0.04307954013347626, 0.01920497789978981, 0.048872631043195724, -0.027139758691191673, 0.0016347930068150163, -0.04824065789580345, 0.0312826968729496, -0.023049484938383102, -0.0007965501281432807, -0.07267697155475616, -0.030738497152924538, -0.02448897995054722, 0.004298737738281488, 0.017853256314992905, -0.015650125220417976, -0.02199619449675083, 0.004796855617314577, 0.005130397155880928, -0.03707578778266907, 0.0191172044724226, 0.01707206666469574, -0.005354221444576979, -0.01799369417130947, -0.00682004913687706, 0.013622543774545193, 0.027315305545926094, 0.014561726711690426, -0.0006648889393545687, -0.02987831085920334, 0.03135291486978531, 0.010752329602837563, -0.07246631383895874, 0.049504604190588, 0.017747927457094193, 0.001361596048809588, 0.03173912316560745, 0.04030587524175644, 0.023242587223649025, 0.008527255617082119, -0.03718111664056778, 0.017914697527885437, -0.03718111664056778, -0.06126633659005165, -0.024208102375268936, -0.03293285146355629, 0.009593711234629154, -0.018730998039245605, 0.055648792535066605, 0.008588697761297226, 0.013569879345595837, -0.013315333984792233, -0.030562948435544968, 0.019573628902435303, 0.035495854914188385, -0.00290971202775836, -0.03781308978796005, 0.021785536780953407, -0.04223690554499626, 0.02492785081267357, 0.021223781630396843, 0.023260142654180527, -0.0417102612555027, 0.010655778460204601, -0.02910589799284935, 0.010629446245729923, -0.03760243207216263, -0.11312329024076462, 0.020662028342485428, 0.03015918843448162, -0.043219976127147675, -0.043746620416641235, 0.052172936499118805, -0.021311556920409203, -0.016949182376265526, 0.015325361862778664, 0.030791161581873894, -0.05873844027519226, -0.011919725686311722, 0.03802374750375748, 0.02814038284122944, -0.0029119064565747976, 0.021873310208320618, -0.02650778368115425, 0.0005074441432952881, -0.008162993006408215, 0.024541644379496574, 0.05768515169620514, -0.02796483412384987, 0.029772982001304626, 0.04076230153441429, -0.015009374357759953, -0.041394274681806564, -0.03574162349104881, 0.008878352120518684, 0.003293723799288273, -0.01168273575603962, -0.02190842106938362, -0.03858550265431404, -0.030650723725557327, 0.006754218600690365, -0.004101245664060116, 0.014157965779304504, 0.047643791884183884, 0.012481479905545712, 0.018379900604486465, -0.04058675467967987, 0.07632837444543839, -0.05684252083301544, -0.003091843333095312, 0.03223065659403801, -0.041745372116565704, -0.03321372717618942, 0.10280104726552963, 0.0721152201294899, 0.01038367860019207, 0.0060695805586874485, 0.03231843188405037, -0.052102718502283096, 0.025665152817964554, 0.008935405872762203, -0.03623315691947937, 0.04925883561372757, 0.053120896220207214, -0.011191200464963913, -0.005297168157994747, 0.016141660511493683, -0.0564914233982563, 0.011498410254716873, 0.017747927457094193, 0.03658425435423851, -0.01658930815756321, 0.008342930115759373, -0.010866436176002026, 0.02111845277249813, 0.031247587874531746, -0.03022940643131733, 0.00475735729560256, -0.027596183121204376, 0.043571073561906815, -0.009707817807793617, -0.04160493239760399, -0.04989080876111984, 0.025261392816901207, -0.01177928689867258, 0.03502187505364418, -0.019696513190865517, 0.05954596400260925, -0.005793091841042042, -0.030896490439772606, 0.018397456035017967, 0.020223157480359077, -0.010155465453863144, -0.01007646881043911, -0.008926628157496452, -0.03138802573084831, 0.03370526060461998, -0.021785536780953407, 0.03337172046303749, -0.04329019784927368, 0.053752873092889786, -0.018292127177119255, 0.015957335010170937, 0.0008519575349055231, 0.008610641583800316, -0.0028087717946618795, -0.01177928689867258, 0.012226935476064682, 0.005586822982877493, 0.007596850395202637, 0.023786786943674088, 0.0625302866101265, 0.012876463122665882, -0.03284507617354393, 0.06920111924409866, 0.032195545732975006, -0.023839451372623444, 0.017036957666277885, -0.002628834918141365, 0.024172993376851082, 0.04616918787360191, -0.047573573887348175, -0.004963626619428396, 0.005643875803798437, -0.04048142582178116, -0.01577300950884819, 0.06748074293136597, 0.040621861815452576, -0.016176771372556686, 0.06814783066511154, -0.029913419857621193, -0.02034604176878929, -0.009453272446990013, -0.042201798409223557, 0.028210602700710297, -0.015132258646190166, 0.005117231048643589, -0.04511589929461479, -0.009137285873293877, 0.022996820509433746, -0.029650097712874413, 0.04107828810811043, -0.024699637666344643, -0.001967237563803792, 0.05515725910663605, -0.03465322405099869, 0.0014592447550967336, 0.020047608762979507, -0.0017664541956037283, -0.018660778179764748, 0.049048177897930145, -0.01407896913588047, -0.0642857626080513, 0.009453272446990013, -0.03170401230454445, -0.08033087849617004, 0.006293404381722212, 0.012139161117374897, 0.002949210349470377, 0.030984263867139816, 0.0001994118356378749, -0.03704068064689636, 0.006508450955152512, -0.026911545544862747, 0.04290398955345154, -0.0068902685306966305, 0.030299626290798187, -0.013956084847450256, -0.023172367364168167, -0.034196797758340836, -0.027929725125432014, 0.043149758130311966, -0.03570651262998581, 0.034530337899923325, 0.06530394405126572, 0.05873844027519226, -0.022540394216775894, -0.03330150246620178, 0.002854853169992566, 0.02763129398226738, 0.02910589799284935, -0.012929128482937813, -0.04406260699033737, -0.019661402329802513, -0.05722872540354729, 0.03189711645245552, -0.05828201770782471, -0.0004876949533354491, 0.026279572397470474, -0.025665152817964554, -0.010146688669919968, 0.02519117295742035, -0.010401233099400997, 0.036373596638441086, -0.04076230153441429, -0.03382814675569534, -0.020539144054055214, 0.026718443259596825, -0.0608099102973938, -0.0972537249326706, -0.03988455981016159, 0.040446314960718155, 0.0026880824007093906, 0.018485229462385178, -0.006859547458589077, -0.004634473472833633, 0.0025564213283360004, 0.008996847085654736, -0.04511589929461479, 0.02703442983329296, 0.05578923225402832, 0.06635723263025284, 0.025770481675863266, -0.051646292209625244, 0.020012499764561653, -0.055051930248737335, -0.013104676268994808, 0.03668958321213722, 0.008426315151154995, -0.011594961397349834, -0.03493409976363182, 0.024120328947901726, -0.014368623495101929, -0.02197863906621933, -0.017361721023917198, -0.017958585172891617, 0.09107442945241928, 0.00248620193451643, 0.01247270219027996, -0.0032827521208673716, 0.02591092139482498, -0.036970458924770355, -0.07745188474655151, -0.0382344089448452, 0.004232907202094793, 0.014561726711690426, 0.05498170852661133, -0.03423190861940384, -0.019591184332966805, -0.04318486899137497, -0.07218543440103531, 0.019485855475068092, 0.059124648571014404, -0.05147074535489082, 0.012376151047647, -0.01155107468366623, 0.03240620717406273, 0.0755559653043747, -0.039568573236465454, -0.031826894730329514, -0.0047003040090203285, 0.029685208573937416, -0.007926003076136112, -0.032195545732975006, -0.007934780791401863, 0.016756080090999603, -0.0010916906176134944, 0.023821895942091942, 0.025770481675863266, -0.024892739951610565, -0.03451278433203697, -0.00969026330858469, -0.030773606151342392, -0.02371656708419323, 0.056596752256155014, -0.0443083755671978, -0.03770776093006134, -0.029070788994431496, -0.03805885836482048, -0.013824423775076866, 0.0037479549646377563, -0.015808118507266045, -0.011270197108387947, -0.02805260941386223, -0.013289001770317554, 0.022557949647307396, 0.05206760764122009, 0.0055209919810295105, 0.021065788343548775, -0.009110953658819199, -0.004616918973624706, 0.06407510489225388, 0.002008930081501603, 0.004432593006640673, 0.033670153468847275, -0.03554851934313774, 0.007816285826265812, -0.0221541877835989, 0.0008481174590997398, 0.03382814675569534, -0.001098273671232164, 0.0010582268005236983, 0.005099676549434662, 0.007443245500326157, -0.0773114487528801, 0.055648792535066605, -0.0029119064565747976, 0.06453153491020203, 0.005793091841042042, -0.0002405559498583898, -0.010489007458090782, 0.020732248201966286, 0.04701181873679161, 0.06070458143949509, -0.03876105323433876, 0.07724122703075409, 0.14008750021457672, 0.02527894638478756, 0.014983042143285275, 0.0173792764544487, -0.04016543924808502, 0.017054511234164238, -0.046801161020994186, 0.08468446880578995, 0.0030062636360526085, -0.03623315691947937, -0.0001364613272016868, 0.02875480242073536, 0.08910828828811646, -0.0764688178896904, -0.041148506104946136, -0.0042372955940663815, 0.010392456315457821, 0.006052025593817234, 0.017747927457094193, -0.04655539244413376, -0.023874560371041298, 0.06579548120498657, 0.02527894638478756, -0.047222476452589035, 0.006289015989750624, -0.07330894470214844, 0.00840437225997448, -0.03605761006474495, -0.029509659856557846, 0.030369846150279045, 0.014456397853791714, -0.005446384195238352, -0.0026617501862347126, 0.04371151328086853, -0.05203250050544739, -0.03833973780274391, -0.030773606151342392, -0.03619804605841637, -0.03268708288669586, -0.0221541877835989, 0.009409385733306408, -0.10876969248056412, 0.01981939561665058, 0.04732780531048775, 0.04876730218529701, -0.02250528521835804, 0.039498355239629745, 0.01393853034824133, -0.044273268431425095, 0.0295272134244442, 0.01295546069741249, 0.06010771915316582, -0.016571754589676857, -0.051295194774866104, -0.02877235598862171, -0.014324736781418324, 0.08889763057231903, -0.04058675467967987, -0.05308578908443451, -0.015149813145399094, -0.02972031757235527, -0.010164243169128895, -0.04153471440076828, -0.03718111664056778, -0.005599989090114832, -0.007588072679936886, 0.03721622750163078, -0.0373566672205925, 0.06944688409566879, 0.022786160930991173, 0.05891399085521698, 0.0027956056874245405, -0.059651292860507965, 0.030896490439772606, -0.050347235053777695, 0.031335361301898956, 0.06463686376810074, -0.028947904706001282, -0.04441370442509651, -0.08636973798274994, -0.016817521303892136, 0.008865186013281345, -0.012235712260007858, 0.006302182096987963, 0.0055824341252446175, 0.04360618442296982, -0.00462569622322917, 0.005226948764175177, 0.026086468249559402, -0.02789461612701416, 0.002534477738663554, -0.05508703738451004, -0.025752926245331764, 0.05133030563592911, 0.008979292586445808, -0.041675154119729996, -0.0019376137061044574, 0.032107774168252945, -0.005218171514570713, 0.008040109649300575, -0.00625829491764307, 0.024401206523180008, 0.02171531692147255, -0.0134733272716403, -0.009997472167015076, -0.07674968987703323, -0.05280490964651108, -0.02336547151207924, 0.02294415608048439, 0.09290012717247009, 0.01841501146554947, 0.006372401025146246, 0.0005996069521643221, -0.03509209305047989, -0.036092717200517654, 0.018695887178182602, 0.05480616167187691, -0.05150585249066353, 0.023997444659471512, -0.060880132019519806, 0.037391774356365204, -0.02294415608048439, 0.0247698575258255, -0.04599364101886749, -0.028789911419153214, 0.02787706069648266, 0.00951471459120512, -0.030896490439772606, -0.021399330347776413, 0.005797480698674917, -0.015667680650949478, -0.028614362701773643, 0.022786160930991173, -0.023786786943674088, -0.0005392622551880777, -0.06807760894298553, 0.017809368669986725, 0.010015027597546577, -0.009005624800920486, 0.0325993075966835, -0.014052636921405792, -0.02153977006673813, 0.0028592420276254416, 0.03865572437644005, 0.01841501146554947, 0.0425528921186924, 0.027912169694900513, -0.033003069460392, 0.05828201770782471, 0.05090899020433426, 0.02833348698914051, 0.06505817919969559, -0.02329525165259838, -0.02884257584810257, -0.055051930248737335, 0.006332902703434229, 0.11312329024076462, -0.005753593519330025, -0.022435065358877182, -0.05603499710559845, 0.020539144054055214, 0.005823812913149595, 0.023681458085775375, -0.01695796102285385, -0.008794967085123062, -0.003210338531062007, 0.04441370442509651, -0.006196852773427963, -0.041920918971300125, -0.010936655104160309, 0.13692763447761536, -0.0015634765150025487, 0.005709706339985132, -0.05273469164967537, -0.06305693089962006, 0.03858550265431404, -0.011542296968400478, -0.015018152073025703, -0.00827271118760109, -0.014026304706931114, 0.0347585529088974, -0.00939183123409748, -0.03833973780274391, 0.025594932958483696, -0.043395526707172394, -0.008395594544708729, -0.013999972492456436, 0.032897740602493286, -0.026981765404343605, 0.00009847159526543692, 0.030545394867658615, 0.02640245482325554, 0.07408136129379272, 0.015290251933038235, 0.015123480930924416, 0.019520964473485947, -0.008149826899170876, 0.053823091089725494, -0.02327769622206688, 0.04894284904003143, -0.010883990675210953, -0.0029865144751966, -0.06396977603435516, -0.006881491281092167, -0.03351216018199921, 0.021785536780953407, -0.0022162965033203363, 0.018537893891334534, 0.03668958321213722, -0.007658292073756456, -0.007658292073756456, -0.017036957666277885, 0.016510311514139175 ]
17,143
imodels.rule_set.fplasso
FPLassoRegressor
null
class FPLassoRegressor(FPLasso, RegressorMixin): def _init_prediction_task(self): self.prediction_task = 'regression'
(minsupport=0.1, maxcardinality=2, verbose=False, n_estimators=100, tree_size=4, sample_fract='default', max_rules=2000, 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, random_state=None)
[ 0.031809546053409576, -0.019774504005908966, -0.00953545793890953, 0.009683582000434399, -0.00786443892866373, -0.021440893411636353, -0.05695353075861931, 0.013794012367725372, 0.017052732408046722, 0.01424764096736908, 0.05462058633565903, 0.03610513359308243, 0.06287847459316254, 0.005628697574138641, 0.02490328438580036, 0.02092246152460575, 0.02112613245844841, 0.006873861886560917, -0.009794674813747406, -0.006994212046265602, -0.011701766401529312, 0.018237721174955368, -0.05754602700471878, -0.02092246152460575, 0.0071053048595786095, 0.049917660653591156, 0.0012058188440278172, -0.03234649449586868, 0.016043640673160553, 0.006971067748963833, -0.04884376376867294, -0.027550993487238884, -0.05254685506224632, 0.055064957588911057, -0.002501900540664792, 0.013164486736059189, -0.0282916110008955, 0.07158073782920837, -0.05132483318448067, 0.025847572833299637, 0.009813189506530762, -0.043807562440633774, -0.03367960825562477, 0.012960816733539104, -0.00535096600651741, 0.016765741631388664, -0.050880465656518936, -0.019737472757697105, 0.05162108317017555, -0.03810480237007141, -0.03332781419157982, -0.006526696961373091, -0.01207207515835762, 0.05458355322480202, -0.022755490615963936, 0.09576192498207092, 0.020515121519565582, 0.06865529716014862, -0.006119356956332922, -0.03264274448156357, 0.017274918034672737, -0.006526696961373091, -0.033216722309589386, 0.006137872580438852, 0.013331125490367413, -0.019367164000868797, -0.059545695781707764, 0.007665397599339485, 0.020033719018101692, 0.036401379853487015, 0.005559264682233334, -0.02112613245844841, -0.026217881590127945, 0.0032494619954377413, 0.0579533651471138, 0.018089598044753075, 0.011609189212322235, -0.06161942705512047, 0.02458852156996727, 0.015849227085709572, -0.0012914527906104922, 0.019107947126030922, -0.027217715978622437, -0.02856934443116188, -0.04873267188668251, -0.1327187716960907, -0.002930070273578167, -0.06635938584804535, -0.00997982919216156, -0.03234649449586868, -0.06421159207820892, 0.04495551809668541, 0.014886423945426941, 0.007045129779726267, 0.044363025575876236, 0.010451973415911198, -0.024033058434724808, -0.011646219529211521, -0.05650916323065758, -0.06221191957592964, -0.012016529217362404, 0.023070253431797028, -0.04358537495136261, 0.014840135350823402, 0.029161838814616203, -0.042400386184453964, -0.03392031043767929, 0.010035375133156776, 0.002775003435090184, -0.022829553112387657, -0.03984525427222252, 0.08546733111143112, -0.07072903215885162, 0.048510484397411346, -0.09591004252433777, -0.027032561600208282, -0.027588024735450745, -0.013284836895763874, -0.03903057426214218, -0.019904112443327904, -0.010748220607638359, 0.08250485360622406, -0.04125242680311203, 0.032050248235464096, 0.007790376897901297, 0.019219039008021355, 0.04747362062335014, 0.05699056386947632, 0.021440893411636353, -0.08154205232858658, 0.010526034981012344, -0.03130963072180748, -0.045696135610342026, 0.0008783267694525421, -0.018052566796541214, 0.026551159098744392, 0.04169679805636406, 0.025773510336875916, -0.0015981149626895785, -0.0182654932141304, 0.03240204229950905, 0.030402373522520065, -0.012571992352604866, 0.013673662208020687, 0.04884376376867294, 0.008456933312118053, -0.035549670457839966, 0.05673134699463844, -0.01838584430515766, -0.03477201983332634, 0.041030243039131165, 0.0002587823837529868, 0.0397711917757988, -0.030050579458475113, 0.04028962552547455, 0.034512802958488464, -0.004744584672152996, 0.006304511800408363, 0.007174737751483917, -0.005971233360469341, 0.011433292180299759, -0.009220695123076439, 0.03130963072180748, 0.01951528713107109, 0.013507022522389889, -0.021866749972105026, 0.0024255244061350822, -0.040104471147060394, 0.003240204183384776, 0.04773283749818802, 0.01609918661415577, -0.10094624757766724, -0.002345676301047206, -0.01522895973175764, -0.004010910168290138, 0.03743824362754822, 0.05754602700471878, -0.014053228311240673, 0.02394048124551773, 0.10442715138196945, 0.041474614292383194, -0.0027356580831110477, -0.0469922199845314, -0.005920316092669964, 0.011461065150797367, 0.01770077273249626, -0.03164291009306908, 0.004251610953360796, -0.037364184856414795, 0.02788427099585533, 0.029402539134025574, 0.012868239544332027, -0.023366501554846764, -0.028921136632561684, 0.009081829339265823, -0.04643675684928894, -0.0051148938946425915, -0.010766735300421715, 0.029032230377197266, 0.010276076383888721, -0.024532975628972054, 0.02969878539443016, 0.03814183175563812, 0.08043112605810165, -0.03947494551539421, 0.04021556302905083, 0.006480408366769552, 0.03569779172539711, -0.035753339529037476, -0.03799371048808098, 0.005026945378631353, 0.009433623403310776, -0.005318563897162676, 0.07495055347681046, 0.060064129531383514, -0.016191763803362846, -0.0024833851493895054, -0.0017138365656137466, 0.01527524832636118, 0.010998179204761982, 0.013831043615937233, -0.043770529329776764, 0.01275714673101902, -0.0037447502836585045, 0.041474614292383194, -0.003966935910284519, 0.016562072560191154, -0.05380590632557869, -0.012303518131375313, -0.0012521074386313558, -0.01460869237780571, -0.050732340663671494, 0.05502792447805405, 0.004159033764153719, 0.03903057426214218, -0.017756318673491478, -0.02040402963757515, -0.0038998171221464872, -0.03951197490096092, 0.007322861347347498, -0.015154898166656494, 0.021496441215276718, -0.05517604947090149, -0.05043609440326691, 0.0044390796683728695, 0.029087776318192482, 0.004980656784027815, 0.048954855650663376, -0.03936385363340378, -0.040067438036203384, 0.04495551809668541, -0.010387169197201729, -0.02966175600886345, 0.018682092428207397, -0.026051241904497147, -0.05276903882622719, 0.04232632368803024, -0.004559430293738842, 0.060064129531383514, 0.029069261625409126, -0.05473167821764946, 0.0032980649266391993, -0.018904278054833412, 0.042437419295310974, -0.021496441215276718, -0.03814183175563812, -0.04747362062335014, -0.002450983040034771, 0.010748220607638359, -0.03832698613405228, 0.13879182934761047, 0.037808556109666824, -0.04543692246079445, 0.000950074172578752, 0.029513631016016006, -0.010729704983532429, -0.036679111421108246, -0.014238382689654827, 0.03243907168507576, -0.03253164887428284, 0.07317306846380234, -0.06713703274726868, 0.007174737751483917, 0.013868073932826519, -0.005026945378631353, -0.030032064765691757, 0.009739127941429615, 0.005670357495546341, 0.009572489187121391, 0.006313769146800041, -0.012238713912665844, 0.02592163346707821, 0.0027773180045187473, 0.042844757437705994, 0.05017687752842903, -0.0221259668469429, 0.0418449230492115, 0.01284046657383442, 0.01565481536090374, -0.026532644405961037, 0.06124911829829216, -0.03151329979300499, -0.022755490615963936, -0.026180850341916084, -0.06576688587665558, -0.009757643565535545, 0.05924944952130318, 0.021718626841902733, -0.058731015771627426, -0.0017034217016771436, 0.04577019810676575, 0.05117671191692352, -0.01311819814145565, 0.04688112437725067, -0.05621291324496269, -0.029587693512439728, 0.047992054373025894, 0.01863580383360386, 0.04254851117730141, 0.012886755168437958, -0.059693820774555206, -0.005230615381151438, 0.004399734549224377, -0.021237224340438843, 0.03130963072180748, 0.014303186908364296, -0.0020459576044231653, -0.03466092795133591, -0.05565745010972023, 0.07087714970111847, -0.012275745160877705, -0.004209951031953096, 0.044325992465019226, 0.00005865637649549171, -0.0864301323890686, 0.051695145666599274, 0.0277731791138649, 0.02684740722179413, 0.016608361154794693, 0.002321374835446477, 0.002262356923893094, -0.010868570767343044, -0.0341239795088768, 0.09716909378767014, -0.030254250392317772, -0.016126958653330803, -0.004165976773947477, 0.0092577263712883, 0.05502792447805405, -0.048399392515420914, -0.06221191957592964, -0.007429325487464666, 0.01215539500117302, 0.06339690834283829, 0.016960155218839645, 0.03727160766720772, -0.04391865432262421, 0.02797684818506241, 0.03843807801604271, -0.05025094002485275, -0.03629028797149658, -0.03164291009306908, -0.014664238318800926, 0.026977013796567917, -0.011396260932087898, -0.011562900617718697, -0.02990245632827282, 0.043844591826200485, 0.06850717216730118, -0.030920805409550667, -0.007947757840156555, -0.026865921914577484, -0.004154404625296593, 0.038364019244909286, -0.01347924955189228, -0.0008864272967912257, 0.015478918328881264, -0.02177417278289795, 0.008655973710119724, 0.0006370472838170826, -0.01698792725801468, -0.000475037086289376, -0.010387169197201729, 0.0318836085498333, -0.022885099053382874, -0.018561741337180138, -0.02455149032175541, -0.015256732702255249, 0.0792461410164833, -0.029402539134025574, 0.01899685524404049, -0.007003469858318567, -0.012562735006213188, -0.027217715978622437, -0.033624060451984406, -0.03682723641395569, -0.017497103661298752, 0.015303021296858788, -0.04591832309961319, -0.0102853337302804, 0.004749213811010122, -0.05065827816724777, 0.024255242198705673, 0.010729704983532429, 0.05439839884638786, 0.020459575578570366, 0.014136548154056072, -0.0025412458926439285, 0.02712513878941536, -0.005073233973234892, 0.022551821544766426, -0.019978173077106476, -0.020329967141151428, -0.041993048042058945, -0.061434272676706314, 0.012942301109433174, -0.011775827966630459, 0.0027541734743863344, 0.0435483455657959, -0.007762603461742401, 0.024088604375720024, 0.06802577525377274, -0.017256401479244232, -0.003068936290219426, 0.01838584430515766, 0.052176546305418015, 0.03279086574912071, 0.03336484730243683, 0.009378076530992985, 0.022588852792978287, -0.08191236108541489, 0.00695255259051919, -0.06228598207235336, 0.009989086538553238, 0.014303186908364296, 0.0002699205942917615, 0.003210116643458605, 0.023996027186512947, -0.042992882430553436, -0.0001413249847246334, 0.04095618054270744, -0.02164456434547901, 0.056768376380205154, -0.03747527673840523, -0.04347428306937218, 0.0005508346948772669, -0.01582145504653454, -0.0070127276703715324, -0.07280275970697403, -0.07487648725509644, 0.015404856763780117, 0.017552649602293968, 0.006785913370549679, 0.09613223373889923, 0.01642320677638054, -0.024051573127508163, 0.029365507885813713, -0.06717406213283539, 0.00009156469604931772, -0.012988589704036713, -0.025866087526082993, 0.03255016729235649, -0.024292273446917534, 0.007804263383150101, 0.036438409239053726, -0.04328912869095802, 0.06350800395011902, 0.012525703758001328, -0.020589184015989304, -0.02482922188937664, 0.01308116689324379, -0.0185154527425766, 0.006758140400052071, -0.03504975140094757, -0.09857627004384995, 0.06391534209251404, 0.03042088821530342, 0.00997982919216156, 0.024736644700169563, 0.015802938491106033, 0.04825127124786377, -0.03303156793117523, 0.024884767830371857, 0.059693820774555206, -0.010535292327404022, -0.019126461818814278, -0.015349309891462326, -0.05432434007525444, -0.0038396420422941446, 0.01713605225086212, -0.011720281094312668, -0.007183995563536882, 0.04365943744778633, 0.07513570785522461, -0.05565745010972023, 0.025810541585087776, 0.0394379124045372, 0.0036382863763719797, 0.05321341007947922, 0.00672110915184021, 0.019793018698692322, 0.011461065150797367, -0.027236230671405792, -0.02719919942319393, 0.02675483003258705, -0.0019013055134564638, -0.05162108317017555, 0.03442022576928139, -0.07583929598331451, 0.048510484397411346, 0.02318134717643261, 0.01995965838432312, -0.0004657793615479022, 0.01738600991666317, 0.023125801235437393, -0.016025124117732048, -0.007582077756524086, 0.01594180427491665, 0.0025250448379665613, 0.01975598745048046, 0.010414942167699337, 0.06073068454861641, 0.013266322202980518, -0.03492014482617378, 0.008540252223610878, 0.025421716272830963, 0.013868073932826519, -0.009322530589997768, 0.021144647151231766, 0.06921076029539108, -0.012544219382107258, -0.06554470211267471, -0.00824863463640213, 0.045288797467947006, 0.029513631016016006, 0.06210082769393921, -0.038734328001737595, -0.030957836657762527, -0.02334798499941826, -0.037290122359991074, -0.046177539974451065, 0.0017404526006430387, 0.015756649896502495, -0.021218709647655487, 0.026977013796567917, -0.030235733836889267, -0.020329967141151428, 0.027458416298031807, -0.02966175600886345, -0.009285499341785908, -0.013034878298640251, -0.015201186761260033, -0.0483623631298542, 0.006572985555976629, 0.010535292327404022, 0.0449184887111187, -0.014358733780682087, 0.0341239795088768, 0.019015369936823845, 0.027014045044779778, -0.03327227011322975, -0.024403367191553116, 0.04125242680311203, 0.020459575578570366, -0.02314431592822075, 0.005323192570358515, -0.05428730696439743, 0.042437419295310974, -0.08309735357761383, -0.027421385049819946, 0.042844757437705994, -0.02534765563905239, -0.007762603461742401, 0.03160587698221207, -0.025810541585087776, -0.005318563897162676, 0.030291279777884483, -0.0005178540595807135, -0.03140220791101456, 0.00458720326423645, -0.0528060719370842, 0.011137044988572598, -0.004707553889602423, -0.04162273928523064, -0.032735321670770645, 0.0005618282593786716, -0.018172916024923325, 0.024810707196593285, -0.029550662264227867, -0.030402373522520065, -0.006540583446621895, 0.009405850432813168, -0.0009101502364501357, -0.01522895973175764, -0.0024278387427330017, -0.05843476951122284, -0.045659106224775314, -0.03891948238015175, 0.01457166112959385, 0.006989583373069763, -0.028032395988702774, 0.038401048630476, -0.012664569541811943, -0.0552130788564682, 0.059656787663698196, -0.03610513359308243, -0.09139227122068405, 0.0004429243563208729, -0.0341239795088768, -0.027217715978622437, -0.005184326786547899, -0.008600427769124508, 0.03332781419157982, 0.0002946560853160918, 0.019663410261273384, -0.023773841559886932, -0.07058090716600418, -0.002242684131488204, 0.019144978374242783, -0.01923755556344986, 0.021311286836862564, -0.011016693897545338, -0.011053725145757198, 0.05532417446374893, -0.04925110563635826, 0.029439570382237434, 0.03758636862039566, -0.12264636158943176, -0.03164291009306908, -0.02386641874909401, -0.017450815066695213, -0.01570110395550728, 0.03999337926506996, -0.05288013443350792, 0.04725143685936928, -0.03782707080245018, 0.030717136338353157, 0.05606479197740555, 0.04351131245493889, -0.09391037374734879, -0.07395071536302567, 0.00007370018283836544, 0.01203504391014576, -0.05295419320464134, 0.019848564639687538, -0.07317306846380234, -0.04551098123192787, -0.00026543636340647936, 0.05573151260614395, -0.012266487814486027, -0.03604958578944206, 0.058212582021951675, -0.025218047201633453, 0.052139513194561005, 0.01245164219290018, 0.02136683277785778, -0.0221259668469429, -0.0329204760491848, 0.02136683277785778, -0.01605289801955223, -0.0754319578409195, 0.020626213401556015, 0.034512802958488464, 0.06410049647092819, 0.02973581664264202, 0.016191763803362846, -0.06850717216730118, -0.021626049652695656, -0.04725143685936928, -0.00517969811335206, -0.04273366555571556, 0.011053725145757198, 0.004006281029433012, 0.0014719784958288074, 0.0726916640996933, -0.012646053917706013, 0.014562403783202171, -0.017089763656258583, 0.010507519356906414, 0.001572656212374568, 0.030754167586565018, -0.007975530810654163, 0.021459409967064857, 0.029124807566404343, 0.030569013208150864, 0.04917704313993454, -0.05443543195724487, 0.003973878920078278, -0.005499089602380991, 0.03782707080245018, 0.031698454171419144, 0.030050579458475113, 0.00893370620906353, -0.00999834481626749, 0.0019846251234412193, -0.014210609719157219, -0.1142033115029335, -0.05650916323065758, -0.0009888409404084086, -0.02314431592822075, -0.0014939656248316169, -0.053102318197488785, -0.0483623631298542, -0.011322199366986752, -0.026736313477158546, 0.04028962552547455, -0.0418449230492115, -0.033420391380786896, -0.02366274781525135, -0.092577263712883, 0.027699116617441177, 0.012257229536771774, 0.005952718202024698, -0.04876970127224922, 0.004709868226200342, 0.019107947126030922, 0.014710526913404465, -0.010738962329924107, -0.055842604488134384, -0.011498096399009228, 0.03306859731674194, -0.02616233378648758, 0.06228598207235336, 0.027588024735450745, 0.037771522998809814, -0.04399271681904793, 0.007619109004735947, -0.0462886318564415, 0.05150998756289482, 0.027458416298031807, 0.04510364308953285, 0.00409654388204217, -0.062434107065200806, -0.02534765563905239, -0.0011907750740647316, 0.012877496890723705, 0.011016693897545338, 0.019811535254120827, -0.004179863259196281, 0.04691815748810768, 0.02294064499437809, -0.04495551809668541, -0.02925441600382328, -0.00264539523050189, 0.07032168656587601, 0.049399226903915405, -0.00012483465252444148, 0.005688872653990984, -0.01035939622670412, -0.017478587105870247, 0.020348481833934784, 0.022829553112387657, 0.029106291010975838, 0.047547683119773865, 0.03514232859015465, -0.009591004811227322, 0.06132318079471588, 0.008197716437280178, -0.007346005644649267, 0.005267646163702011, -0.009766900911927223, -0.01951528713107109, -0.022181512787938118, -0.016765741631388664, 0.0833195373415947, 0.025625387206673622, 0.03932682052254677, 0.037327151745557785 ]
17,159
imodels.rule_set.fplasso
_init_prediction_task
null
def _init_prediction_task(self): self.prediction_task = 'regression'
(self)
[ 0.04170858860015869, -0.006965998560190201, -0.03214672952890396, 0.006445952225476503, -0.01089912187308073, 0.0002536045212764293, -0.04933010786771774, 0.03922635316848755, 0.0042849197052419186, 0.018057407811284065, 0.0355379544198513, 0.0486658476293087, 0.05009925365447998, -0.009990133345127106, 0.015015791170299053, -0.006476543378084898, 0.053175829350948334, 0.04170858860015869, -0.01672014594078064, -0.01373097114264965, -0.007564707659184933, 0.0035878827329725027, -0.05478404089808464, 0.006856745108962059, 0.018721668049693108, 0.050588708370923996, -0.004702267702668905, -0.05873464420437813, 0.037373412400484085, -0.007883727550506592, -0.06156649440526962, -0.018004965037107468, -0.04618361219763756, 0.051497697830200195, -0.0010553881293162704, -0.004426949191838503, 0.0018048667116090655, 0.05817526578903198, -0.07551597058773041, -0.012175202369689941, 0.026273265480995178, -0.06373408436775208, -0.012664658017456532, 0.025206951424479485, -0.02954212762415409, -0.001729481853544712, -0.040694717317819595, -0.03265366703271866, 0.04202324151992798, -0.04751213267445564, -0.02017255313694477, -0.02108154259622097, -0.005034398287534714, 0.07048157602548599, -0.0405898354947567, 0.06883840262889862, 0.03475132957100868, 0.03198940306901932, -0.008464955724775791, -0.020714450627565384, 0.0022014565765857697, 0.02022499591112137, -0.03233901411294937, 0.023581260815262794, 0.00003059095979551785, 0.010007614269852638, -0.04768693819642067, 0.02823108620941639, 0.02349385805428028, 0.0541197806596756, 0.007722032722085714, -0.042582616209983826, -0.015662571415305138, 0.0033016386441886425, 0.04964476078748703, 0.002650488168001175, -0.03406959027051926, -0.059888359159231186, -0.004829001612961292, 0.027287136763334274, -0.022147854790091515, 0.042372848838567734, -0.025154510512948036, -0.05803542211651802, -0.03901658579707146, -0.08635391294956207, 0.0015251778531819582, -0.059888359159231186, -0.02588869258761406, -0.03922635316848755, -0.06642608344554901, 0.03856208920478821, 0.00878397561609745, 0.033020757138729095, 0.05737116187810898, 0.017200859263539314, -0.024874821305274963, -0.02712981216609478, -0.05366528406739235, -0.045834001153707504, -0.021186424419283867, -0.013320178724825382, -0.03025883063673973, -0.02127382718026638, 0.009124846197664738, -0.05908425524830818, -0.03656930848956108, 0.016615262255072594, -0.01210528053343296, -0.035502996295690536, -0.03518834337592125, 0.10851924866437912, -0.06076238676905632, 0.04663810506463051, -0.07446713745594025, 0.0021184240467846394, -0.010007614269852638, -0.03155238926410675, -0.012166461907327175, -0.0008286872762255371, -0.02380850724875927, 0.059958282858133316, -0.03148246929049492, 0.020382320508360863, 0.001717463950626552, 0.028091242536902428, 0.041673630475997925, 0.0650276392698288, 0.018249692395329475, -0.08719297498464584, 0.051497697830200195, -0.05030902102589607, -0.031779639422893524, 0.028580697253346443, -0.03943611681461334, 0.021553516387939453, 0.028091242536902428, 0.039855651557445526, -0.007582188118249178, 0.008665981702506542, 0.025224432349205017, 0.012481112033128738, -0.0114847207441926, -0.0018168846145272255, 0.039261311292648315, -0.008639761246740818, -0.044855087995529175, 0.0396808460354805, 0.0022986922413110733, -0.01588107831776142, 0.040240224450826645, -0.024997185915708542, -0.014229167252779007, -0.048491042107343674, 0.015837376937270164, 0.04286230728030205, 0.0234239362180233, -0.011965435929596424, 0.035940010100603104, -0.03260122239589691, -0.004562423098832369, -0.02452521026134491, 0.036534346640110016, 0.030206387862563133, 0.01998026669025421, -0.0003100066096521914, -0.010453368537127972, 0.034506604075431824, -0.02550412155687809, 0.03038119338452816, 0.021099023520946503, -0.06334950774908066, -0.017751498147845268, -0.0038544610142707825, 0.007735142949968576, 0.012061579152941704, 0.06044773757457733, -0.01807488687336445, 0.03989061340689659, 0.09852037578821182, 0.003677470376715064, 0.027112331241369247, -0.055133651942014694, 0.01122251246124506, 0.000564293994102627, 0.004418208729475737, -0.012690878473222256, 0.013949478045105934, -0.04905042052268982, 0.0347338505089283, 0.02179824374616146, 0.00640662107616663, 0.001063035917468369, 0.0018463829765096307, 0.021221386268734932, -0.012402449734508991, 0.004584273789077997, 0.004824631381779909, 0.03546803444623947, -0.012166461907327175, 0.019036317244172096, 0.005589405540376902, 0.04894553869962692, 0.06768468767404556, 0.0014202946331351995, 0.025713887065649033, -0.011178811080753803, 0.029716933146119118, -0.02751438319683075, -0.02686760388314724, -0.025032145902514458, -0.019141200929880142, 0.006939778104424477, 0.05516861379146576, 0.049225226044654846, -0.0058909449726343155, 0.005506373010575771, 0.017253302037715912, 0.008945670910179615, 0.000894785625860095, 0.03674411401152611, -0.032234132289886475, 0.05205707624554634, -0.010269822552800179, 0.032828472554683685, -0.016055883839726448, 0.03852713108062744, -0.04377129301428795, -0.0468478724360466, 0.018179770559072495, -0.0028340339194983244, -0.02459513209760189, 0.05177738517522812, -0.03209428861737251, 0.01919364184141159, -0.019735539332032204, 0.00007784306944813579, -0.012481112033128738, -0.05314086750149727, -0.0216584000736475, -0.0024494619574397802, 0.03351021185517311, -0.04796662554144859, -0.05681178346276283, -0.01814481057226658, 0.032373975962400436, 0.023791026324033737, 0.012961827218532562, -0.04891057685017586, -0.0405898354947567, 0.052022114396095276, -0.04038006812334061, -0.026115940883755684, -0.00871405377984047, -0.020539645105600357, -0.024228040128946304, 0.07146048545837402, 0.0017229266231879592, 0.06932785362005234, 0.04083456099033356, -0.03779294714331627, 0.005309716798365116, -0.028021320700645447, 0.029262438416481018, -0.018529381603002548, -0.006821784190833569, -0.01737566478550434, 0.005099950358271599, 0.0048377420753240585, -0.04649826139211655, 0.13159357011318207, 0.06541221588850021, -0.048491042107343674, -0.018564343452453613, 0.010427147150039673, -0.04527462273836136, -0.027619266882538795, -0.030468596145510674, -0.01945585012435913, -0.01581115648150444, 0.06408369541168213, -0.08257811516523361, 0.02655295468866825, 0.056706901639699936, -0.02980433590710163, -0.06373408436775208, 0.007791954558342695, 0.005960867274552584, 0.019088760018348694, -0.028196126222610474, -0.02622082270681858, 0.061776261776685715, -0.0031443138141185045, 0.01359986700117588, 0.04072967916727066, -0.02784651517868042, 0.021745802834630013, 0.011537162587046623, 0.012148981913924217, 0.00046050321543589234, 0.054609235376119614, -0.05314086750149727, -0.027426980435848236, -0.03768806532025337, -0.05356040224432945, 0.026273265480995178, 0.051392812281847, 0.02199053019285202, -0.018756629899144173, -0.02199053019285202, 0.03712868690490723, 0.03441920131444931, 0.012035357765853405, 0.049469955265522, -0.03901658579707146, -0.013258996419608593, 0.06279013305902481, 0.024630093947052956, 0.03284595161676407, 0.016833769157528877, -0.04898049682378769, -0.005064988974481821, -0.0074292332865297794, -0.01076801773160696, 0.027671709656715393, -0.009430755861103535, 0.014902167953550816, -0.055727988481521606, -0.05258149281144142, 0.0641186535358429, 0.002630822593346238, 0.003056911053135991, 0.03181459754705429, 0.0018605858786031604, -0.04656818136572838, 0.029769374057650566, -0.007201986387372017, 0.01705227605998516, 0.008600429631769657, 0.003852275898680091, 0.001574341906234622, -0.0395759642124176, -0.03293335437774658, 0.09306643903255463, 0.018057407811284065, -0.006244926247745752, -0.0006451415247283876, 0.008958781138062477, 0.04181347414851189, -0.03461148589849472, -0.05876960605382919, 0.03494361788034439, 0.00020676212443504483, 0.07306869328022003, 0.011982915922999382, 0.049994371831417084, -0.03391226381063461, 0.008093493990600109, 0.013713490217924118, -0.049085382372140884, -0.049609798938035965, -0.015522727742791176, -0.006415361538529396, 0.016947392374277115, -0.0007298128912225366, -0.04405098408460617, 0.0016245985170826316, 0.036604270339012146, 0.05086839571595192, -0.02237510308623314, 0.007931798696517944, -0.04377129301428795, -0.008683462627232075, 0.05086839571595192, -0.013119151815772057, 0.019875384867191315, -0.025906173512339592, -0.02784651517868042, -0.004361397121101618, -0.017812678590416908, -0.03761814162135124, 0.014692401513457298, 0.010287303477525711, 0.03649938479065895, -0.031902000308036804, -0.031657274812459946, -0.01750676892697811, -0.02875550277531147, 0.0713905617594719, -0.0074947853572666645, 0.06188114359974861, -0.015723753720521927, -0.028807945549488068, -0.01950829289853573, 0.02277715504169464, -0.03378990292549133, -0.025451678782701492, 0.01574997417628765, -0.022235257551074028, -0.0030044694431126118, -0.025469159707427025, -0.03193696215748787, 0.018249692395329475, 0.029314881190657616, 0.04345664381980896, 0.02316172793507576, 0.019018838182091713, 0.03667419031262398, -0.0033497102558612823, -0.01476232334971428, -0.0066819400526583195, -0.01964813657104969, -0.019875384867191315, -0.038492169231176376, -0.05848991498351097, 0.027811553329229355, -0.011816850863397121, 0.005108690354973078, 0.042128123342990875, -0.013809633441269398, 0.0016016552690416574, 0.07292885333299637, 0.03719860687851906, -0.012358748354017735, 0.02550412155687809, 0.04859592765569687, 0.05349047854542732, 0.03667419031262398, 0.015103193931281567, 0.005475781857967377, -0.07376791536808014, 0.036534346640110016, -0.04653321951627731, 0.006559575907886028, 0.024682534858584404, 0.018966395407915115, 0.015243038535118103, 0.0026832642033696175, -0.005182982888072729, -0.009168547578155994, 0.005772951524704695, -0.041603706777095795, 0.05457427352666855, -0.03153491020202637, -0.04974964261054993, 0.015557688660919666, -0.045379504561424255, 0.02452521026134491, -0.05425962433218956, -0.07292885333299637, 0.008320741355419159, 0.040694717317819595, 0.020504683256149292, 0.03578268364071846, 0.034908656030893326, -0.016475416719913483, -0.010287303477525711, -0.03950604051351547, -0.0061968546360731125, -0.006175003945827484, -0.0355379544198513, 0.029419763013720512, -0.03260122239589691, 0.009754146449267864, 0.0347338505089283, -0.050378940999507904, 0.052336763590574265, 0.014377751387655735, -0.04086952283978462, -0.036534346640110016, -0.012953086756169796, -0.010663134977221489, 0.035940010100603104, -0.0017862935783341527, -0.09425511956214905, 0.021448632702231407, 0.026517992839217186, -0.014202945865690708, 0.02842337265610695, 0.01866922713816166, 0.04010038077831268, -0.01561013050377369, 0.029105113819241524, 0.0802706778049469, -0.03856208920478821, -0.004147260449826717, -0.0337199792265892, -0.056636977940797806, 0.014744843356311321, -0.038037676364183426, -0.03821248188614845, -0.006904816720634699, 0.07090110331773758, 0.04478516802191734, -0.06660088896751404, 0.010296043008565903, 0.041289057582616806, 0.00582539290189743, 0.04135897755622864, 0.03723356872797012, 0.028510775417089462, 0.019822942093014717, -0.02629074640572071, -0.018127329647541046, 0.016230689361691475, 0.023249130696058273, -0.06810422241687775, -0.0037757984828203917, -0.09180784225463867, 0.03552047535777092, 0.038422245532274246, 0.011642045341432095, -0.016947392374277115, -0.011038966476917267, 0.039121467620134354, -0.012157721444964409, -0.010942823253571987, -0.0037757984828203917, 0.01938592828810215, 0.021973049268126488, -0.006655719131231308, 0.04723244160413742, 0.016702665016055107, -0.03209428861737251, 0.01056699175387621, 0.0017830160213634372, -0.01290938537567854, -0.02719973400235176, 0.003852275898680091, 0.08159920573234558, -0.008403774350881577, -0.08831173181533813, -0.006699420511722565, 0.04352656751871109, 0.027024928480386734, 0.056636977940797806, -0.008246448822319508, -0.016536599025130272, -0.009028703905642033, -0.0038544610142707825, -0.049924448132514954, -0.03649938479065895, 0.000050051727157551795, -0.03567780181765556, 0.03730349242687225, -0.010549511760473251, -0.06009812653064728, 0.08537500351667404, -0.03122026100754738, 0.01241992972791195, 0.0030612810514867306, 0.008823307231068611, -0.04831623658537865, -0.009640522301197052, 0.014823505654931068, 0.02595861442387104, 0.01711345836520195, 0.012297566048800945, 0.027811553329229355, 0.051742423325777054, -0.039645884186029434, -0.02074941247701645, -0.0000552071251149755, 0.014063101261854172, 0.009614301845431328, -0.003308193990960717, -0.08229842782020569, 0.02789895609021187, -0.04859592765569687, -0.03901658579707146, 0.0674399584531784, -0.03929627314209938, 0.01109140831977129, 0.011423538438975811, -0.030695844441652298, 0.014508855529129505, 0.023703623563051224, 0.028475813567638397, -0.03667419031262398, 0.030416155233979225, -0.020539645105600357, 0.04377129301428795, 0.01828465424478054, -0.005917165894061327, -0.04254765436053276, 0.0001677040127106011, 0.0040926337242126465, 0.01588107831776142, -0.014989570714533329, -0.026273265480995178, -0.02543419785797596, 0.019892863929271698, 0.003369375830516219, 0.03733845427632332, -0.00618374440819025, -0.046812910586595535, -0.015522727742791176, -0.053840089589357376, 0.017200859263539314, -0.008967521600425243, -0.02536427602171898, 0.012297566048800945, -0.007551596965640783, -0.020906737074255943, 0.05030902102589607, -0.02328409068286419, -0.09516410529613495, -0.02282959781587124, -0.05002932995557785, -0.0032011254224926233, 0.020207514986395836, -0.04551934823393822, 0.030818207189440727, -0.004411653615534306, 0.002438536612316966, -0.039191391319036484, -0.03193696215748787, 0.014482635073363781, 0.022305181249976158, -0.025609003379940987, 0.0432119183242321, 0.007105843164026737, -0.0016267836326733232, 0.028790464624762535, -0.04097440838813782, -0.009806588292121887, 0.023406455293297768, -0.12355252355337143, 0.003795464290305972, -0.016475416719913483, 0.003677470376715064, -0.010794239118695259, 0.005366528406739235, -0.07971130311489105, 0.07167024910449982, -0.0343317985534668, 0.027759112417697906, 0.033615097403526306, 0.07149544358253479, -0.07236947119235992, -0.04363144934177399, 0.009614301845431328, 0.04282734543085098, -0.028021320700645447, 0.03936619684100151, -0.05681178346276283, -0.05009925365447998, 0.032234132289886475, 0.05177738517522812, 0.023563779890537262, -0.05862976238131523, 0.028126202523708344, -0.0038479059003293514, 0.043876178562641144, -0.01828465424478054, -0.007896837778389454, -0.07502651959657669, -0.03310815989971161, 0.008163416758179665, -0.03205932676792145, -0.10061804205179214, 0.032111767679452896, -0.007175765465945005, 0.04268750175833702, 0.037373412400484085, 0.032041847705841064, -0.049085382372140884, -0.03730349242687225, -0.052266839891672134, 0.007988611236214638, -0.026063498109579086, -0.012524813413619995, 0.04534454271197319, -0.00503876805305481, 0.06212587282061577, -0.004724118392914534, 0.02985677681863308, -0.0036687301471829414, 0.01593352109193802, -0.013626087456941605, 0.0021544776391237974, -0.010837940499186516, 0.02992670051753521, -0.0017338519683107734, 0.012245124205946922, 0.03625465929508209, -0.05548326298594475, -0.012079059146344662, 0.04814143106341362, 0.03466392681002617, 0.004968846216797829, 0.049155302345752716, -0.002216752152889967, 0.0029039562214165926, -0.01033974438905716, -0.015828637406229973, -0.11362356692552567, -0.07999099045991898, -0.010916602797806263, -0.007171395234763622, 0.007276278454810381, -0.06880343705415726, -0.08076013624668121, -0.03765310347080231, -0.022742195054888725, 0.047127559781074524, -0.06432841718196869, -0.02172832190990448, -0.044016022235155106, -0.09873013943433762, 0.05457427352666855, 0.004461910109966993, -0.01154590304940939, -0.05436450615525246, 0.012647177092730999, 0.030031582340598106, -0.02641310915350914, -0.00034032444818876684, -0.05335063487291336, -0.006061380263417959, 0.014709881506860256, -0.04370137304067612, 0.04919026419520378, 0.024630093947052956, 0.01866922713816166, -0.02401827462017536, -0.02407071553170681, -0.0469527542591095, 0.04789670556783676, 0.04366641119122505, 0.001418109517544508, 0.014622478745877743, -0.04926018789410591, -0.006612017750740051, 0.002131534507498145, -0.009448236785829067, 0.027426980435848236, 0.011808110401034355, 0.03004906326532364, 0.033737458288669586, 0.02564396522939205, -0.04716252163052559, -0.02517199143767357, 0.0023598740808665752, 0.05999324470758438, 0.0404849499464035, -0.009649262763559818, -0.017026055604219437, 0.003930938430130482, -0.019088760018348694, 0.014963350258767605, 0.03677907586097717, 0.023563779890537262, 0.048246316611766815, 0.053840089589357376, -0.011336135677993298, 0.08355702459812164, 0.04656818136572838, -0.004741598851978779, 0.0007401920156553388, 0.001117116305977106, -0.013084190897643566, -0.009658003225922585, -0.02707737125456333, 0.07838278263807297, 0.042652539908885956, 0.057930540293455124, 0.02275967411696911 ]
17,182
imodels.rule_set.fpskope
FPSkopeClassifier
null
class FPSkopeClassifier(SkopeRulesClassifier): def __init__(self, minsupport=0.1, maxcardinality=2, verbose=False, precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=.8, max_samples_features=1., 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): super().__init__(precision_min, recall_min, n_estimators, max_samples, max_samples_features, bootstrap, bootstrap_features, max_depth, max_depth_duplication, max_features, min_samples_split, n_jobs, random_state, verbose) self.minsupport = minsupport self.maxcardinality = maxcardinality self.verbose = verbose def fit(self, X, y=None, feature_names=None, undiscretized_features=[], sample_weight=None): self.undiscretized_features = undiscretized_features super().fit(X, y, feature_names=feature_names, sample_weight=sample_weight) return self def _extract_rules(self, X, y) -> List[str]: X = pd.DataFrame(X, columns=self.feature_placeholders) itemsets = extract_fpgrowth(X, minsupport=self.minsupport, maxcardinality=self.maxcardinality, verbose=self.verbose) return [itemsets_to_rules(itemsets)], [np.arange(X.shape[0])], [np.arange(len(self.feature_names))] 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, oob=False)
(minsupport=0.1, maxcardinality=2, verbose=False, precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=0.8, max_samples_features=1.0, 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)
[ -0.006500395480543375, -0.0704818144440651, -0.032794129103422165, 0.02202100306749344, -0.031095992773771286, -0.03357928991317749, -0.032447200268507004, 0.007901814766228199, 0.030785581097006798, -0.011813920922577381, -0.03805287554860115, 0.016077524051070213, 0.03531394526362419, 0.03754160925745964, 0.006459311582148075, 0.009157158434391022, 0.024869490414857864, -0.021071506664156914, 0.039002373814582825, 0.03808939456939697, -0.0012678966159000993, -0.0051081059500575066, -0.007468150928616524, 0.031095992773771286, 0.012936882674694061, 0.016616178676486015, 0.02892310731112957, 0.01256256178021431, -0.011868699453771114, 0.015967965126037598, -0.06292236596345901, 0.02908744476735592, -0.06913060694932938, 0.03878325968980789, 0.026458069682121277, -0.06149812415242195, 0.016114043071866035, 0.04860689118504524, -0.05594722554087639, 0.019209034740924835, -0.04426112025976181, -0.046561822295188904, -0.006637341808527708, -0.03067602403461933, -0.07037226110696793, 0.037121642380952835, -0.04338466376066208, 0.08487033098936081, 0.037614647299051285, -0.03231938183307648, -0.023627841845154762, -0.03151596337556839, 0.0074544562958180904, 0.04867992922663689, -0.03447400778532028, 0.04597751796245575, 0.013722042553126812, -0.028649214655160904, 0.020596759393811226, -0.03372536599636078, 0.03819895163178444, -0.001384301227517426, 0.060548629611730576, -0.029215261340141296, -0.005080716218799353, -0.03031083382666111, -0.05459601804614067, 0.008527204394340515, 0.013932027854025364, 0.030913397669792175, 0.006902105174958706, -0.04524713382124901, 0.052916139364242554, 0.03776072338223457, 0.03241068124771118, -0.0009746028226800263, -0.011430471204221249, -0.052587468177080154, 0.01685355417430401, -0.027279749512672424, -0.001610263017937541, 0.026622407138347626, 0.013219905085861683, -0.0640544593334198, -0.018880361691117287, -0.02669544517993927, 0.09100553393363953, 0.02601984143257141, 0.03410881757736206, -0.00843590684235096, -0.050359804183244705, 0.023810436949133873, 0.023846955969929695, -0.0031725948210805655, 0.043676815927028656, 0.033670589327812195, -0.051382340490818024, -0.022605307400226593, -0.053281333297491074, -0.04086484760046005, -0.010800516232848167, 0.056896720081567764, -0.002962609985843301, 0.04619663208723068, 0.004829647950828075, 0.0029123963322490454, -0.03259327635169029, 0.03440096974372864, -0.018971659243106842, -0.029489153996109962, -0.058649636805057526, 0.027425825595855713, 0.006559738889336586, 0.031095992773771286, -0.006559738889336586, -0.07227125018835068, -0.02202100306749344, 0.00659169303253293, -0.005824792664498091, -0.023700879886746407, -0.03133336827158928, 0.0013044157531112432, -0.03405403718352318, 0.01651575230062008, -0.031954191625118256, -0.036446038633584976, 0.04203345626592636, 0.049665942788124084, 0.053829118609428406, -0.06277628988027573, -0.009860150516033173, -0.00014636160631198436, -0.04287339374423027, -0.021966224536299706, -0.013347722589969635, -0.05463253706693649, 0.056202858686447144, 0.01774827018380165, -0.017656972631812096, 0.021071506664156914, 0.08552767336368561, -0.0059480443596839905, 0.02928829938173294, -0.018697766587138176, -0.017675232142210007, 0.025380758568644524, 0.010983112268149853, 0.004181434400379658, -0.003453335026279092, 0.005272441543638706, 0.0031862894538789988, -0.005957174114882946, 0.01961074396967888, -0.02340872772037983, 0.04747479781508446, -0.024376483634114265, -0.00878283753991127, -0.03396274149417877, 0.009358013048768044, -0.011065280064940453, -0.015958836302161217, -0.013649004511535168, -0.04068224877119064, 0.012169982306659222, -0.016059264540672302, 0.037285976111888885, 0.008591112680733204, -0.04499150067567825, 0.0054093883372843266, 0.00783790647983551, 0.003220526035875082, -0.030347352847456932, 0.00131126306951046, 0.04411504417657852, -0.025782467797398567, 0.06230154260993004, 0.008057021535933018, 0.022769642993807793, 0.0316985584795475, 0.04911815747618675, 0.0049255103804171085, -0.02927003987133503, -0.0602564737200737, -0.07380504906177521, 0.02309831604361534, 0.04926423355937004, 0.0011800226056948304, 0.021217582747340202, 0.001186869922094047, 0.03186289221048355, 0.009070425294339657, -0.020012453198432922, 0.03509483113884926, 0.04017098248004913, 0.012489523738622665, -0.025399018079042435, -0.0077739981934428215, 0.021254101768136024, 0.010919203981757164, 0.04411504417657852, -0.030767321586608887, 0.053098734468221664, 0.049008600413799286, -0.014607630670070648, -0.03955015912652016, 0.04499150067567825, 0.004156327340751886, 0.042289089411497116, -0.08655021339654922, 0.009768852964043617, -0.018862102180719376, -0.011065280064940453, -0.0316985584795475, 0.032465457916259766, 0.06281281262636185, -0.05463253706693649, 0.0392945259809494, 0.007805952336639166, -0.03467486426234245, -0.01032576896250248, 0.006253891624510288, -0.015137157402932644, -0.06040254980325699, 0.036409519612789154, 0.004446197301149368, 0.00982363149523735, 0.04645226523280144, 0.00011483537673484534, 0.035733915865421295, -0.03635473921895027, -0.028996145352721214, -0.07289207726716995, 0.04393244907259941, 0.014507202431559563, 0.0312785878777504, 0.008609372191131115, 0.0036815793719142675, 0.043311625719070435, -0.0856737494468689, 0.020231567323207855, -0.01584014855325222, -0.06197287142276764, -0.009129769168794155, -0.04181434214115143, -0.01839648373425007, 0.03768768534064293, 0.08552767336368561, -0.03199071064591408, 0.020724575966596603, -0.0017232438549399376, 0.05441342294216156, -0.015474958345293999, -0.02253226935863495, 0.029854344204068184, -0.03976927325129509, -0.08676932752132416, -0.020377643406391144, -0.025782467797398567, 0.04867992922663689, -0.036573853343725204, -0.0003195419267285615, -0.0012918623397126794, -0.0033985564950853586, 0.022459231317043304, -0.06902105361223221, 0.022787902504205704, -0.02339046820998192, 0.01669834740459919, 0.013585096225142479, -0.001156627549789846, 0.08289830386638641, -0.010006226599216461, -0.04404200613498688, 0.044699348509311676, -0.050359804183244705, 0.0036815793719142675, -0.06953231990337372, 0.015785370022058487, 0.014443294145166874, -0.02218533866107464, 0.07245384901762009, -0.04922771453857422, -0.01248039398342371, 0.01137569174170494, 0.03266631439328194, -0.004425655584782362, -0.010919203981757164, 0.03345147520303726, 0.037614647299051285, -0.0028028390370309353, -0.044188082218170166, -0.006997968070209026, 0.04006142541766167, -0.003199984086677432, 0.04626967012882233, 0.04024402052164078, 0.019555965438485146, -0.043494220823049545, 0.024339964613318443, -0.02994564175605774, -0.0007977135828696191, -0.036263443529605865, 0.04751131683588028, -0.013731172308325768, -0.00290326657705009, -0.05470557510852814, 0.055508993566036224, -0.02412085048854351, 0.010919203981757164, -0.006167158950120211, -0.0019457819871604443, 0.026056360453367233, 0.011850439943373203, -0.013922898098826408, -0.056750643998384476, -0.01360335573554039, -0.03531394526362419, -0.012343447655439377, 0.07800474762916565, 0.026257215067744255, -0.04327510669827461, -0.008285265415906906, -0.007669006008654833, 0.039878830313682556, 0.0007794540142640471, -0.028375321999192238, -0.021564513444900513, -0.02377391792833805, -0.023043537512421608, -0.01376769132912159, -0.04959290474653244, -0.03493049740791321, 0.05010417103767395, 0.025088604539632797, -0.057919252663850784, 0.04805910214781761, 0.04170478507876396, 0.04301946982741356, 0.0010738890850916505, -0.0010910073760896921, 0.0386371836066246, 0.0482051819562912, -0.0399518683552742, 0.0261659175157547, -0.00015962831093929708, -0.017109187319874763, -0.024248667061328888, 0.033323656767606735, 0.05989128351211548, 0.0399518683552742, 0.03186289221048355, -0.06387186050415039, 0.03215504810214043, 0.029050925746560097, 0.048460815101861954, -0.016059264540672302, -0.0409378856420517, 0.014580241404473782, 0.04550276696681976, -0.04992157593369484, 0.03922148793935776, -0.08786489814519882, -0.026823261752724648, 0.05076151713728905, 0.029343077912926674, -0.012334317900240421, -0.01026186067610979, 0.01759306527674198, 0.01930033229291439, -0.03629996255040169, -0.017656972631812096, -0.029690008610486984, 0.013009920716285706, -0.053829118609428406, 0.024723414331674576, 0.039331045001745224, 0.028795290738344193, 0.035879991948604584, 0.01324729435145855, 0.000659625802654773, 0.025216421112418175, 0.002921526087448001, -0.05583766847848892, 0.010389677248895168, -0.002640785649418831, -0.007805952336639166, -0.05539943650364876, 0.007865295745432377, 0.10305683314800262, -0.037797242403030396, 0.04937379062175751, -0.00844047125428915, -0.00014486376312561333, -0.03580695390701294, -0.03622692450881004, 0.0005492126801982522, -0.018652118742465973, 0.040718767791986465, -0.01999419368803501, -0.008568287827074528, -0.030876878648996353, -0.07566752284765244, -0.014945431612432003, 0.025070345029234886, -0.014680668711662292, 0.015310622751712799, 0.013292944058775902, 0.03047516942024231, -0.011229615658521652, 0.08523552119731903, 0.005747189745306969, 0.017839567735791206, -0.016132302582263947, -0.017127446830272675, -0.05583766847848892, 0.01599535532295704, -0.009326059371232986, 0.029872603714466095, 0.026951078325510025, -0.003238785546272993, 0.03531394526362419, 0.03405403718352318, 0.013365982100367546, 0.004916380625218153, 0.00636801403015852, -0.011896088719367981, -0.04199693724513054, -0.0016639004461467266, -0.007988547906279564, 0.02634851261973381, -0.08560071140527725, -0.03739553317427635, -0.09283149242401123, -0.010563142597675323, -0.030767321586608887, -0.04645226523280144, -0.037943318486213684, 0.010992242023348808, -0.030785581097006798, -0.00998796708881855, 0.014169401489198208, -0.019519446417689323, 0.027791017666459084, 0.04652530327439308, -0.0020062667317688465, -0.03465660288929939, -0.03323235735297203, -0.04729220271110535, -0.09560693800449371, -0.0016159691149368882, -0.004414243157953024, 0.005327220074832439, 0.01739221066236496, 0.05046936124563217, -0.021473215892910957, 0.035040054470300674, 0.008317219093441963, -0.03668341040611267, 0.0333419144153595, -0.021984484046697617, 0.056056782603263855, 0.014434164389967918, -0.008207662031054497, 0.022477490827441216, -0.04170478507876396, 0.027791017666459084, 0.03662863373756409, 0.040024906396865845, -0.03462008386850357, -0.0196472629904747, 0.034017518162727356, -0.04137611389160156, 0.012909493409097195, -0.07705525308847427, -0.041777823120355606, 0.08793793618679047, -0.005555464420467615, -0.012891233898699284, 0.039842311292886734, -0.005007678177207708, 0.051382340490818024, -0.032100267708301544, 0.008632196113467216, 0.004215670749545097, 0.00042396364733576775, -0.041412632912397385, -0.0038481976371258497, -0.04064572975039482, -0.019555965438485146, -0.018323445692658424, 0.004037640523165464, -0.029160482808947563, 0.0263302531093359, 0.0609138198196888, -0.02549031563103199, 0.02253226935863495, 0.05788273364305496, 0.037304237484931946, 0.009116074070334435, -0.042800355702638626, 0.002599701751023531, 0.03699382394552231, -0.045904479920864105, -0.014616760425269604, 0.03319583833217621, -0.03472964093089104, -0.0010676123201847076, 0.009102379903197289, -0.04079180955886841, 0.0090384716168046, -0.006304105278104544, -0.030694283545017242, 0.06821763515472412, 0.021911446005105972, -0.008586547337472439, 0.02390173450112343, 0.03827198967337608, 0.050177209079265594, -0.009179982356727123, 0.018661247566342354, 0.040536172688007355, -0.024047810584306717, 0.03387144207954407, -0.01290036365389824, -0.000547500851098448, 0.047766949981451035, 0.040390096604824066, 0.03304976224899292, 0.08012285083532333, 0.013256424106657505, 0.039331045001745224, -0.0018533430993556976, -0.011393951252102852, 0.05284310132265091, 0.005272441543638706, 0.02790057472884655, -0.0023965644650161266, -0.025198161602020264, 0.08026892691850662, -0.027809277176856995, 0.008034196682274342, 0.026403291150927544, 0.004715525545179844, 0.0025882895570248365, -0.011083539575338364, 0.002524381037801504, 0.013046439737081528, 0.009412791579961777, -0.03467486426234245, -0.016607049852609634, 0.04619663208723068, 0.002210545353591442, 0.02912396378815174, 0.012370836921036243, 0.07844297587871552, 0.017492637038230896, 0.012087814509868622, 0.0491911955177784, 0.00598912825807929, -0.0009940036106854677, -0.06244761869311333, -0.03955015912652016, 0.08589286357164383, -0.0447358675301075, -0.01420592050999403, -0.024339964613318443, -0.03031083382666111, 0.05163797363638878, -0.11182141304016113, -0.021254101768136024, 0.037432052195072174, 0.01859734021127224, -0.028028391301631927, 0.0182412788271904, -0.07051833719015121, -0.03595302999019623, 0.0051081059500575066, -0.014744576998054981, -0.01549321785569191, -0.01395941711962223, -0.03432793170213699, 0.01753828674554825, 0.01505498867481947, -0.06774288415908813, 0.013092088513076305, 0.0037591822911053896, -0.0007640475523658097, 0.03273935243487358, -0.045356690883636475, -0.004879861604422331, -0.0024627551902085543, 0.01946466788649559, 0.010024486109614372, -0.0843590646982193, -0.04247168451547623, 0.01774827018380165, -0.03699382394552231, -0.06284932792186737, 0.0453932099044323, 0.02976304665207863, -0.035204388201236725, 0.03304976224899292, 0.009494959376752377, -0.03595302999019623, 0.056750643998384476, -0.01497282087802887, -0.04645226523280144, 0.024723414331674576, 0.017866957932710648, -0.0006853032973594964, -0.005660456605255604, 0.053829118609428406, 0.036391258239746094, -0.04170478507876396, -0.01653401181101799, 0.008933478966355324, -0.019738560542464256, -0.027298009023070335, 0.021947965025901794, -0.07910031825304031, -0.02134539932012558, 0.014005065895617008, 0.004427937790751457, 0.039842311292886734, -0.007239906582981348, -0.012243020348250866, -0.04353073984384537, -0.11897914856672287, -0.011257004924118519, -0.020943690091371536, 0.023134835064411163, -0.026932818815112114, 0.036263443529605865, -0.04696353152394295, 0.021290620788931847, 0.014361126348376274, 0.02066979743540287, 0.04678093641996384, -0.028375321999192238, -0.03892933577299118, -0.07234428822994232, -0.020943690091371536, 0.016050133854150772, 0.00012881532893516123, -0.05528987944126129, -0.06847326457500458, -0.03253849595785141, -0.002830228302627802, 0.08903350681066513, 0.025216421112418175, -0.007057311479002237, 0.025198161602020264, -0.027626680210232735, -0.012690379284322262, 0.009280410595238209, 0.028028391301631927, 0.03754160925745964, 0.01566668413579464, 0.027462344616651535, -0.06368926912546158, -0.059818245470523834, -0.008513509295880795, 0.063397116959095, 0.041923899203538895, -0.016114043071866035, 0.026202436536550522, 0.06664731353521347, 0.0122977988794446, -0.03379840403795242, 0.03976927325129509, -0.04323858767747879, 0.05032328516244888, -0.038308512419462204, 0.01685355417430401, 0.009148028679192066, -0.03715816140174866, -0.033999260514974594, 0.0009455016697756946, -0.016287507489323616, -0.022331414744257927, 0.08392083644866943, 0.03947712108492851, -0.049994613975286484, -0.01144873071461916, 0.05130930244922638, 0.02391999401152134, -0.010800516232848167, 0.002999129006639123, -0.06781592220067978, -0.04133959487080574, 0.012662990018725395, 0.015904057770967484, 0.06493091583251953, 0.015757981687784195, -0.0037044037599116564, 0.010910074226558208, -0.0571158342063427, -0.021254101768136024, 0.02687804028391838, -0.0437498539686203, -0.021655812859535217, 0.030876878648996353, -0.024906009435653687, 0.004667594563215971, -0.010234471410512924, 0.08735363185405731, -0.0754484087228775, 0.026038100942969322, 0.030730802565813065, -0.042946431785821915, -0.010225341655313969, 0.0592704601585865, 0.005181143991649151, -0.03757812827825546, -0.015566255897283554, -0.006158029194921255, 0.022787902504205704, -0.0122977988794446, -0.058649636805057526, 0.011823050677776337, 0.016588790342211723, 0.034364450722932816, 0.026896299794316292, -0.014635019935667515, -0.03390796110033989, -0.0170452781021595, 0.02306179702281952, -0.03100469522178173, 0.015027599409222603, -0.029379596933722496, 0.05196664482355118, 0.031771596521139145, -0.058978307992219925, -0.012799936346709728, 0.013512058183550835, -0.04597751796245575, 0.05528987944126129, -0.05667760595679283, 0.043822892010211945, 0.0304569099098444, 0.03270283341407776, -0.014187660999596119, -0.056750643998384476, 0.011521768756210804, 0.007477280683815479, 0.08764578402042389, 0.008367433212697506, 0.022075781598687172, 0.0193185918033123, -0.01584014855325222, 0.015566255897283554, -0.028357062488794327, 0.03325061872601509, -0.005655891727656126, 0.03270283341407776, -0.0330132432281971, 0.03290368616580963, -0.04269079864025116, -0.040024906396865845, -0.08866831660270691, -0.04930075258016586, -0.04681745544075966, -0.004103831015527248, 0.06263021379709244, 0.035021793097257614, 0.023500025272369385, 0.00225961790420115, 0.013932027854025364 ]
17,184
imodels.rule_set.fpskope
__init__
null
def __init__(self, minsupport=0.1, maxcardinality=2, verbose=False, precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=.8, max_samples_features=1., 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): super().__init__(precision_min, recall_min, n_estimators, max_samples, max_samples_features, bootstrap, bootstrap_features, max_depth, max_depth_duplication, max_features, min_samples_split, n_jobs, random_state, verbose) self.minsupport = minsupport self.maxcardinality = maxcardinality self.verbose = verbose
(self, minsupport=0.1, maxcardinality=2, verbose=False, precision_min=0.5, recall_min=0.01, n_estimators=10, max_samples=0.8, max_samples_features=1.0, 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)
[ 0.004061134997755289, -0.009660187177360058, -0.008296285755932331, 0.02170955389738083, -0.00943443737924099, 0.0002410343731753528, -0.040634866803884506, -0.0386783741414547, -0.048949964344501495, -0.0013709564227610826, -0.034671325236558914, 0.08902046084403992, 0.008465597406029701, 0.06298404186964035, 0.00519223278388381, -0.00044062259257771075, 0.04458547756075859, -0.02355317212641239, 0.024380920454859734, 0.07355663180351257, -0.012256303802132607, 0.02944146655499935, -0.041838862001895905, 0.06196817383170128, -0.012397397309541702, 0.05865718424320221, 0.017570817843079567, -0.0221234280616045, 0.011315681971609592, 0.027785971760749817, -0.07886174321174622, 0.009641374461352825, -0.030024651437997818, 0.06437616050243378, 0.042929984629154205, -0.05974830314517021, -0.004679594188928604, 0.04473597928881645, -0.11731436848640442, 0.0255661029368639, 0.0008124621817842126, -0.08638671785593033, -0.05256195366382599, -0.04338148236274719, -0.00781656801700592, 0.02233036421239376, 0.04951433837413788, 0.05512044578790665, -0.046579595655202866, -0.03606344386935234, 0.005845965351909399, -0.017815379425883293, 0.008108161389827728, 0.02530273050069809, -0.059221554547548294, 0.0781092420220375, 0.07573887705802917, -0.0023280391469597816, 0.0051216864958405495, -0.018041128292679787, -0.03444557636976242, 0.01142855640500784, 0.04831034317612648, -0.03390001505613327, -0.008747783489525318, -0.01967781037092209, -0.0770181193947792, -0.01769309863448143, -0.012058773078024387, 0.06332267075777054, 0.06855252385139465, -0.03335445374250412, -0.003106403863057494, 0.040220994502305984, 0.006259839050471783, 0.029403841122984886, -0.081721231341362, -0.025547292083501816, -0.024098733440041542, -0.031698957085609436, 0.005606106482446194, 0.024851230904459953, 0.003435621503740549, -0.05376594886183739, -0.030193964019417763, -0.05771655961871147, 0.035235695540905, 0.003590824082493782, 0.045036979019641876, 0.009773061610758305, -0.07976473867893219, 0.03779418766498566, 0.03875362128019333, 0.03017515130341053, 0.040860615670681, 0.0158965103328228, -0.011776586063206196, 0.002739561256021261, -0.015087575651705265, -0.036627817898988724, -0.03611988201737404, 0.002298644743859768, 0.0007777767605148256, 0.01628216542303562, -0.04936383664608002, -0.009707218036055565, -0.019527310505509377, -0.003922393545508385, -0.012594927102327347, -0.035423822700977325, -0.07667949795722961, 0.08111923187971115, -0.01772131770849228, 0.05346494913101196, -0.06998226791620255, -0.010901807807385921, -0.003804815700277686, 0.0030734820757061243, 0.014156360179185867, -0.015576698817312717, 0.008649018593132496, 0.03702287748456001, -0.01542619988322258, 0.030532587319612503, -0.019847122952342033, 0.014184578321874142, 0.01975305937230587, 0.0454508513212204, -0.016122259199619293, -0.051583707332611084, 0.05474419519305229, -0.0430428571999073, -0.029780089855194092, 0.003713105106726289, 0.02571660280227661, -0.06193054839968681, 0.011212212964892387, 0.054556071758270264, -0.019978810101747513, 0.0060246833600103855, 0.05749081075191498, -0.02076893113553524, 0.04059724137187004, -0.03395644947886467, 0.003191059920936823, 0.021502617746591568, 0.032639581710100174, -0.03326039016246796, -0.0295543409883976, 0.0037930579856038094, -0.003503816667944193, -0.019160468131303787, 0.014833607710897923, -0.04627859964966774, -0.0014332726132124662, -0.021502617746591568, 0.04356960579752922, -0.07916273921728134, 0.026676038280129433, -0.03559313341975212, -0.03243264555931091, 0.010958245024085045, 0.010798339731991291, -0.026036415249109268, -0.03245145455002785, 0.05771655961871147, -0.052938200533390045, -0.05350257456302643, -0.0278612207621336, 0.008178707212209702, 0.012237491086125374, -0.008846549317240715, 0.022161051630973816, 0.02050555869936943, -0.059560179710388184, 0.067837655544281, 0.010751308873295784, -0.002339797094464302, 0.009039376862347126, 0.045902349054813385, -0.011202806606888771, -0.029930589720606804, -0.003802464110776782, -0.0589958056807518, 0.012773646041750908, 0.007449725642800331, -0.0002613165124785155, 0.015031138435006142, 0.019922371953725815, 0.03871599957346916, 0.04108636453747749, -0.027522597461938858, 0.0022433833219110966, 0.01123102568089962, -0.009867124259471893, -0.004522040020674467, 0.015379168093204498, -0.022763051092624664, 0.05026683583855629, 0.05237383022904396, -0.012585521675646305, 0.05195995420217514, 0.03642088174819946, -0.04778359457850456, 0.022292738780379295, 0.018934719264507294, -0.0311910230666399, 0.015341543592512608, 0.009495578706264496, 0.03198114410042763, -0.027447348460555077, -0.028444407507777214, 0.02577304095029831, 0.04714396968483925, 0.030739523470401764, -0.031830646097660065, 0.03604463115334511, -0.023515548557043076, 0.026619600132107735, 0.003696644213050604, 0.12363534420728683, -0.01397764217108488, 0.01995999738574028, 0.033862389624118805, -0.002704288111999631, 0.033862389624118805, 0.056061066687107086, -0.04417160525918007, 0.00017019377264659852, -0.011785992421209812, -0.022085802629590034, -0.056324440985918045, -0.015388574451208115, -0.019094625487923622, -0.030269213020801544, 0.03591294586658478, 0.02029862068593502, 0.024870043620467186, -0.06874065101146698, -0.005370951257646084, -0.027221597731113434, 0.03245145455002785, 0.015830667689442635, -0.034332700073719025, 0.005507341120392084, -0.0488370917737484, 0.006857133936136961, 0.04383298009634018, 0.002967662177979946, -0.006019980181008577, 0.0027842409908771515, -0.03450201079249382, -0.03943087160587311, 0.018285689875483513, 0.01284889504313469, -0.006466775666922331, 0.006052901968359947, -0.032714828848838806, 0.00564843462780118, -0.037775374948978424, 0.0049758898094296455, -0.04518747702240944, -0.021935302764177322, 0.09338494390249252, -0.06418804079294205, 0.0005373302847146988, -0.007529678288847208, -0.019160468131303787, 0.016743069514632225, 0.003981182351708412, 0.1346970647573471, 0.043870605528354645, -0.05034208670258522, 0.024982918053865433, -0.04925096407532692, -0.04703109711408615, -0.03779418766498566, -0.06828915327787399, -0.02387298457324505, 0.021276867017149925, 0.008023505099117756, -0.036101069301366806, 0.005333326291292906, 0.014626670628786087, 0.010092873126268387, -0.017683692276477814, -0.03849025070667267, -0.0046161022037267685, -0.0018777165096253157, 0.0005558487609960139, -0.05271245166659355, 0.028632530942559242, 0.002157551469281316, 0.009138141758739948, 0.06219392269849777, -0.06298404186964035, 0.010008216835558414, 0.007656662259250879, -0.002979419892653823, 0.029140466824173927, 0.019847122952342033, -0.07344376295804977, 0.000994707690551877, 0.0037248628214001656, 0.024512607604265213, -0.04379535838961601, 0.0737447589635849, -0.015379168093204498, 0.023365048691630363, 0.0715625137090683, 0.03181183338165283, 0.06072654947638512, 0.02319573611021042, -0.012754833325743675, -0.028181033208966255, -0.0567006878554821, 0.0027325067203491926, -0.038791246712207794, 0.01336623728275299, 0.02821865677833557, -0.044961728155612946, -0.013742486014962196, 0.007811864838004112, -0.017081694677472115, -0.05527094379067421, -0.019198093563318253, 0.0037907063961029053, 0.0004079947539139539, -0.0636989176273346, -0.017843598499894142, -0.06591878086328506, -0.02874540537595749, 0.04409635439515114, 0.015021732077002525, -0.03559313341975212, 0.03939324617385864, 0.0052862949669361115, 0.03692881762981415, 0.01688416302204132, -0.00044679539860226214, 0.0465419739484787, 0.036101069301366806, -0.043005235493183136, 0.019790684804320335, -0.028707781806588173, -0.03038208745419979, 0.04104873910546303, -0.005850668530911207, 0.010393871925771236, -0.005474419798702002, -0.016667820513248444, -0.005925917997956276, -0.005182826891541481, 0.038264498114585876, 0.05068070814013481, 0.005827152635902166, -0.03286533057689667, -0.016150478273630142, 0.04432210326194763, -0.003191059920936823, 0.007092289160937071, -0.02874540537595749, -0.026901787146925926, 0.039807118475437164, 0.0317365825176239, -0.03595057129859924, -0.053615450859069824, 0.0003104052448179573, 0.03072071261703968, -0.03245145455002785, 0.0045408522710204124, -0.0567006878554821, -0.030156338587403297, -0.014438546262681484, 0.016216322779655457, 0.03939324617385864, -0.08698871731758118, 0.006189292296767235, -0.0035296836867928505, 0.007412100676447153, 0.016564352437853813, -0.02637503854930401, 0.018022315576672554, -0.02976127713918686, -0.06960602104663849, -0.008437378332018852, 0.024456169456243515, -0.005408576223999262, 0.06083942577242851, 0.00132274953648448, -0.004343321546912193, 0.002753670560196042, -0.05275007709860802, -0.0022539652418345213, -0.035348571836948395, 0.008813627064228058, 0.06757427752017975, 0.018727783113718033, -0.02503935620188713, -0.018624313175678253, -0.02253730036318302, 0.014363296329975128, -0.021352117881178856, 0.011522618122398853, 0.02462548203766346, -0.046579595655202866, 0.03807637467980385, 0.019658997654914856, 0.006269244942814112, 0.041575487703084946, 0.008329207077622414, -0.015501448884606361, 0.0005881826509721577, 0.026882974430918694, -0.04146261513233185, -0.021690741181373596, -0.005276889074593782, -0.0221234280616045, 0.03388120234012604, -0.038527872413396835, 0.01842678338289261, 0.046165723353624344, -0.02503935620188713, 0.028444407507777214, 0.047934092581272125, 0.0000280900567304343, -0.026487912982702255, -0.017232192680239677, 0.0210323054343462, -0.03882887214422226, -0.06384941935539246, 0.01573660410940647, -0.06136617437005043, 0.007186351343989372, 0.03544263541698456, -0.030701899901032448, -0.06298404186964035, 0.025829477235674858, -0.02217986434698105, -0.022763051092624664, 0.011748367920517921, -0.06309691816568375, 0.07175064086914062, -0.02611166425049305, 0.022763051092624664, -0.007835380733013153, 0.005690762773156166, 0.010262184776365757, -0.047181595116853714, -0.025998789817094803, 0.02225511521100998, -0.03262076899409294, -0.011447369121015072, -0.013686048798263073, 0.023967046290636063, -0.012538489885628223, -0.020072871819138527, 0.011607274413108826, 0.06230679526925087, -0.04255373403429985, 0.021502617746591568, -0.01123102568089962, -0.024324482306838036, -0.002967662177979946, -0.016451478004455566, 0.06516628712415695, 0.053088702261447906, 0.034407950937747955, -0.006419744808226824, -0.017476756125688553, 0.03320395201444626, 0.04341910779476166, -0.0055543724447488785, -0.054217446595430374, -0.027974095195531845, 0.014316265471279621, -0.022273927927017212, -0.0244185458868742, 0.03768131509423256, -0.019263936206698418, 0.017580224201083183, -0.025791853666305542, 0.06497815996408463, 0.02929096668958664, -0.018285689875483513, -0.04661722108721733, -0.022556113079190254, -0.01844559609889984, 0.014730139635503292, 0.016526727005839348, -0.02470073103904724, 0.009298047982156277, 0.01397764217108488, 0.07160013914108276, -0.008456191048026085, 0.012651365250349045, 0.06516628712415695, 0.029385028406977654, 0.038791246712207794, 0.009791874326765537, 0.017025256529450417, 0.01988474652171135, -0.02233036421239376, 0.004971186630427837, 0.009537906385958195, -0.013610798865556717, -0.0385654978454113, -0.006057605147361755, -0.052674826234579086, 0.013375643640756607, 0.006231620442122221, -0.028839468955993652, 0.027447348460555077, 0.029121654108166695, -0.01670544594526291, 0.0015731902094557881, -0.025001730769872665, 0.032997015863657, 0.027428535744547844, 0.03585650771856308, 0.029949402436614037, 0.02942265383899212, 0.032921768724918365, -0.03051377460360527, -0.01571779139339924, -0.018360940739512444, 0.04567660018801689, 0.019734248518943787, 0.046654846519231796, 0.08134498447179794, -0.000119929296488408, -0.04876184090971947, -0.03092764876782894, 0.06637028604745865, -0.007731912191957235, 0.030005838721990585, -0.006838321220129728, 0.002525569871068001, 0.06362366676330566, -0.03448319807648659, 0.0037530814297497272, 0.013676642440259457, 0.05591056868433952, -0.0038965262938290834, -0.048611339181661606, 0.014429139904677868, -0.00009714860789244995, 0.08540847152471542, 0.026469100266695023, -0.00663138460367918, 0.07171301543712616, -0.0038589013274759054, -0.010290403850376606, -0.010036435909569263, 0.028124595060944557, -0.04274186119437218, 0.033711887896060944, -0.017062881961464882, 0.039543744176626205, 0.011983523145318031, -0.008997048251330853, 0.022556113079190254, 0.05485707148909569, 0.0009141669142991304, -0.011663711629807949, -0.004096408374607563, -0.05542144179344177, 0.02170955389738083, -0.052336204797029495, -0.005512044299393892, 0.021747179329395294, 0.004406813532114029, -0.0477459691464901, 0.045149851590394974, -0.07803399115800858, -0.0017566113965585828, 0.012529083527624607, 0.04947671294212341, -0.037587251514196396, 0.028594905510544777, 0.025885915383696556, 0.024644294753670692, -0.0015096982242539525, -0.06339791417121887, -0.013911798596382141, 0.04526272788643837, -0.06975652277469635, -0.013243956491351128, -0.0012145780492573977, -0.035216882824897766, 0.02517104335129261, 0.03171776980161667, -0.01474895142018795, -0.07118626683950424, -0.02611166425049305, 0.010619621723890305, -0.048874713480472565, -0.0656554102897644, 0.03004346415400505, -0.012331553734838963, -0.028651343658566475, 0.043193358927965164, 0.0035555509384721518, -0.00341680902056396, 0.001134037273004651, -0.065994031727314, -0.007252194918692112, 0.029460279271006584, -0.006363307125866413, 0.04052199050784111, 0.0050840615294873714, -0.009312156587839127, 0.001152261858806014, -0.07103576511144638, -0.03469013795256615, -0.027823597192764282, -0.02868896909058094, -0.03111577220261097, 0.04330623149871826, -0.07780824601650238, -0.028124595060944557, 0.0038918231148272753, -0.0002407404244877398, 0.04232798516750336, -0.05989880487322807, -0.049627210944890976, -0.028914717957377434, -0.09978117048740387, 0.0036049336194992065, -0.02707109972834587, 0.03160489723086357, -0.036232754588127136, 0.021559054031968117, -0.07276651263237, 0.02402348443865776, -0.013827142305672169, 0.04364485666155815, 0.03790706396102905, 0.03348613902926445, 0.006946492940187454, -0.009575530886650085, 0.011174588464200497, -0.005074655171483755, -0.02577304095029831, -0.04059724137187004, -0.06776240468025208, -0.016404446214437485, 0.04142498970031738, 0.07878649234771729, 0.024324482306838036, -0.0122092729434371, 0.028519656509160995, -0.024813605472445488, 0.010958245024085045, -0.023383861407637596, -0.02050555869936943, -0.002131684450432658, 0.06810102611780167, 0.05628681555390358, -0.01910403184592724, -0.05782943591475487, 0.005662544164806604, 0.029121654108166695, 0.02123924344778061, 0.018219847232103348, 0.0033039345871657133, -0.004174009896814823, -0.0017895331839099526, -0.03796350210905075, 0.03143558278679848, -0.023929420858621597, 0.021615492179989815, 0.0016166939167305827, -0.019602561369538307, -0.012406802736222744, 0.008837142959237099, -0.0464290976524353, 0.0019788334611803293, 0.010835964232683182, 0.0072757103480398655, 0.09105220437049866, 0.044811226427555084, -0.04003286734223366, -0.024945292621850967, 0.060049302875995636, -0.01302761398255825, -0.06862777471542358, 0.044209230691194534, -0.024644294753670692, 0.011569649912416935, 0.01651732064783573, -0.004355079494416714, 0.020054059103131294, 0.0005320392665453255, -0.030814774334430695, 0.05384119972586632, -0.06121567264199257, -0.06110280007123947, 0.035141635686159134, -0.04940146207809448, 0.012585521675646305, 0.04025861993432045, -0.08029148727655411, 0.06433854252099991, -0.00926512572914362, 0.05839380994439125, -0.0759270042181015, 0.046654846519231796, 0.03262076899409294, -0.05060546100139618, 0.05417982116341591, 0.06764952838420868, -0.0040728929452598095, -0.07047139108181, -0.03243264555931091, 0.054029323160648346, 0.06121567264199257, -0.0023668399080634117, -0.03329801559448242, 0.015445011667907238, -0.00009031440276885405, -0.009857717901468277, 0.0244185458868742, 0.010610215365886688, -0.014739545062184334, 0.017871815711259842, 0.016357414424419403, -0.02191649004817009, 0.06264542043209076, -0.04469835385680199, 0.0396566204726696, 0.02550966665148735, -0.053013451397418976, -0.003242793958634138, 0.008611394092440605, -0.06813865154981613, 0.02705228701233864, -0.016855943948030472, 0.052599579095840454, 0.012670177035033703, 0.02793647162616253, -0.012322147376835346, 0.012632552534341812, 0.042929984629154205, -0.01559551153331995, 0.02759784646332264, 0.0055919974111020565, 0.00011199279833817855, 0.04232798516750336, -0.03557432070374489, -0.008531440980732441, -0.03354257717728615, 0.029215717688202858, 0.021295679733157158, 0.01093002688139677, -0.05173420533537865, 0.000627277244348079, -0.017439130693674088, -0.02428685873746872, -0.08894520998001099, -0.0029347403906285763, -0.05034208670258522, 0.015247480943799019, 0.014090516604483128, 0.011287462897598743, 0.0577918104827404, 0.05952255427837372, -0.010854776948690414 ]
17,191
imodels.rule_set.fpskope
_extract_rules
null
def _extract_rules(self, X, y) -> List[str]: X = pd.DataFrame(X, columns=self.feature_placeholders) itemsets = extract_fpgrowth(X, minsupport=self.minsupport, maxcardinality=self.maxcardinality, verbose=self.verbose) return [itemsets_to_rules(itemsets)], [np.arange(X.shape[0])], [np.arange(len(self.feature_names))]
(self, X, y) -> List[str]
[ 0.013511553406715393, 0.02117255888879299, -0.01155839767307043, -0.04787459969520569, 0.015081211924552917, 0.017471374943852425, 0.013502635061740875, -0.0006789221079088748, 0.07009954005479813, -0.004115895368158817, 0.04020467400550842, 0.04323697090148926, -0.01136219035834074, -0.028236024081707, 0.018015403300523758, -0.030108913779258728, -0.03449682518839836, 0.0038505697157233953, 0.030804557725787163, 0.0031616142950952053, -0.009792531840503216, -0.032142333686351776, 0.012806990183889866, 0.0017145848833024502, 0.030911579728126526, 0.0049319397658109665, 0.013502635061740875, -0.011397864669561386, -0.020869329571723938, -0.0337119922041893, -0.07698463648557663, -0.007759109605103731, -0.04887347295880318, -0.0211012102663517, -0.042416468262672424, -0.0394911915063858, 0.010987612418830395, 0.010425746440887451, 0.04762488231062889, 0.019174812361598015, 0.0034470066893845797, -0.05629367753863335, 0.0012274108594283462, 0.03133966773748398, -0.05397486314177513, -0.02308112196624279, -0.05850547179579735, -0.009721183218061924, -0.03073320910334587, -0.05722120404243469, -0.031179135665297508, -0.05247655510902405, 0.033961713314056396, 0.049158863723278046, 0.04327264428138733, 0.011567316018044949, -0.02914571389555931, 0.042808882892131805, 0.08897112309932709, -0.0034759920090436935, -0.009029998444020748, 0.05932597443461418, -0.045306067913770676, -0.003698954824358225, 0.002653258852660656, -0.05351110175251961, -0.058719515800476074, 0.002100310754030943, -0.016980856657028198, 0.015036619268357754, -0.018372144550085068, 0.011085717007517815, 0.0767705962061882, 0.0005498823011294007, 0.00551164336502552, -0.014225034974515438, 0.0009258535574190319, -0.01056844275444746, 0.06788775324821472, -0.021993063390254974, -0.02852141670882702, 0.09938795119524002, -0.021315256133675575, -0.018907256424427032, 0.01609792374074459, -0.035156793892383575, 0.05183441936969757, 0.04644763469696045, 0.009935228154063225, -0.023313002660870552, -0.02431187778711319, 0.0005671619437634945, -0.012182693928480148, -0.009203909896314144, -0.007081302348524332, 0.0375291183590889, -0.08504697680473328, 0.002584140282124281, 0.014724471606314182, -0.012610782869160175, 0.007326561491936445, -0.0021348700392991304, -0.04248781502246857, 0.11422836780548096, 0.0038617178797721863, 0.01461744960397482, -0.0364767350256443, -0.04270185902714729, -0.057720642536878586, -0.026541506871581078, -0.06171613559126854, 0.03767181560397148, 0.028307372704148293, 0.0012028849450871348, 0.017872707918286324, -0.039883606135845184, -0.04141759127378464, -0.029003016650676727, -0.030126750469207764, -0.02657718025147915, 0.0147958192974329, -0.013217242434620857, -0.003912999294698238, 0.044913649559020996, -0.028771135956048965, 0.022991936653852463, 0.009150397963821888, -0.01155839767307043, 0.038099903613328934, -0.08811494708061218, 0.006082428619265556, 0.0034648438449949026, -0.059397321194410324, 0.006729021202772856, -0.05675744265317917, -0.08804360032081604, 0.06442736834287643, -0.0397409126162529, 0.05929030105471611, -0.07855429500341415, 0.030394306406378746, 0.01760515198111534, 0.004370073322206736, -0.012307553552091122, -0.037101030349731445, 0.016053330153226852, 0.013449123129248619, 0.07826890796422958, 0.0399906300008297, -0.04148894175887108, -0.037493444979190826, -0.0028762216679751873, -0.007964235730469227, -0.0986744686961174, 0.023883787915110588, 0.030786721035838127, -0.051334984600543976, -0.005618665833026171, 0.09838908165693283, 0.0027246070094406605, -0.03344443812966347, -0.05276194587349892, -0.12592945992946625, 0.02327732928097248, 0.019941803067922592, 0.049194540828466415, 0.025275077670812607, -0.039241474121809006, 0.013698842376470566, 0.006399035919457674, 0.03132183104753494, -0.04013332724571228, -0.05611530691385269, 0.000016147392670973204, -0.00983712449669838, 0.026238277554512024, -0.018693212419748306, 0.04944425821304321, 0.01277131587266922, 0.112944096326828, 0.025203729048371315, -0.014885004609823227, -0.030322957783937454, -0.09025539457798004, 0.012628619559109211, -0.008704472333192825, 0.005574073176831007, 0.010693301446735859, -0.01646358147263527, 0.055508848279714584, -0.002345569897443056, -0.06000378355383873, 0.004905184265226126, 0.06025350093841553, 0.0028561551589518785, -0.028503580018877983, -0.044235844165086746, 0.0567217692732811, -0.02807549200952053, -0.03251691162586212, -0.013841538690030575, 0.011808115988969803, -0.0018661996582522988, 0.04477095603942871, -0.03945551812648773, 0.00604675430804491, -0.04469960555434227, 0.01681140437722206, -0.11230196803808212, -0.010381153784692287, 0.010247375816106796, -0.0036922660656273365, -0.04680437594652176, -0.013351019471883774, 0.03695833310484886, 0.002737984759733081, -0.006943065673112869, 0.011567316018044949, -0.012610782869160175, -0.05072852596640587, 0.011237331666052341, -0.03148236498236656, -0.033961713314056396, 0.012262960895895958, 0.04077545925974846, -0.01824728585779667, 0.05208414047956467, -0.01518823392689228, 0.013654249720275402, -0.0019063330255448818, -0.017988648265600204, -0.044485561549663544, 0.05397486314177513, -0.008735687471926212, 0.03303418681025505, 0.07512958347797394, 0.030233772471547127, 0.03201747685670853, 0.02502535842359066, 0.035602718591690063, -0.05504508689045906, -0.04223809763789177, 0.02304544858634472, -0.0430586002767086, 0.009997657500207424, 0.049123190343379974, 0.01566091552376747, -0.004633169621229172, -0.02320598065853119, 0.00696982117369771, -0.019923966377973557, 0.019442366436123848, 0.02515021711587906, -0.03917012736201286, -0.043201297521591187, -0.06282203644514084, -0.05404621362686157, -0.033533625304698944, 0.03228503093123436, -0.05925462767481804, 0.04334399104118347, 0.037850186228752136, 0.008245169185101986, -0.017301922664046288, -0.059111930429935455, 0.02391946315765381, -0.007500472944229841, 0.018621863797307014, -0.02534642443060875, 0.013163731433451176, -0.02158281020820141, -0.00006023482637829147, -0.03447898477315903, 0.026238277554512024, -0.03510328382253647, 0.04409314692020416, 0.012423493899405003, -0.020869329571723938, -0.0027134588453918695, 0.0005181101150810719, 0.022706544026732445, 0.013021035119891167, 0.00041721935849636793, -0.017854871228337288, -0.003837191965430975, -0.03092941641807556, -0.004878428764641285, -0.016766812652349472, -0.030162423849105835, -0.04020467400550842, -0.03867068886756897, -0.03462168201804161, 0.03824260085821152, 0.0147958192974329, 0.07170487940311432, 0.03938417136669159, 0.03437196463346481, -0.06549759209156036, 0.014947433955967426, 0.025435609742999077, 0.009177153930068016, 0.020138010382652283, 0.032623935490846634, 0.017997566610574722, -0.05276194587349892, -0.04091815650463104, 0.04584117606282234, -0.0209763515740633, 0.025756677612662315, -0.02887815795838833, 0.038099903613328934, 0.014519345946609974, 0.020566100254654884, -0.06927903741598129, -0.03274879604578018, -0.020209359005093575, -0.066924549639225, 0.07355992496013641, 0.04940858483314514, 0.03199964016675949, 0.009997657500207424, -0.03244556486606598, 0.0408468060195446, 0.02026287093758583, 0.021939551457762718, 0.04156028851866722, -0.008494887501001358, -0.044485561549663544, -0.004570739809423685, -0.0627506822347641, -0.011888382956385612, -0.004958695266395807, 0.018389981240034103, 0.021564973518252373, 0.03595945984125137, -0.003045673482120037, 0.05361812561750412, 0.06043187156319618, -0.01752488501369953, -0.04298725351691246, -0.04159596189856529, 0.031428854912519455, 0.0038617178797721863, 0.023098958656191826, 0.06068158894777298, -0.019139137119054794, -0.07990991324186325, 0.027700914070010185, 0.015027700923383236, 0.05244087800383568, 0.0060556731186807156, -0.041346244513988495, 0.018140263855457306, 0.03504977002739906, 0.040704112499952316, 0.028735460713505745, -0.057256877422332764, 0.008708931505680084, -0.008111391216516495, 0.03554920852184296, 0.0866166353225708, -0.04890914633870125, 0.0006399035919457674, 0.031107787042856216, -0.005261925049126148, -0.005302058532834053, 0.022706544026732445, 0.04469960555434227, 0.020994188264012337, -0.025292914360761642, -0.027254987508058548, 0.0289138313382864, 0.02609558030962944, -0.009899553842842579, 0.00003278251824667677, 0.020138010382652283, 0.05393918976187706, -0.017382189631462097, 0.004182784352451563, 0.017944056540727615, -0.0021203774958848953, 0.042059727013111115, -0.018461329862475395, 0.014501508325338364, -0.017043285071849823, 0.014439078979194164, -0.060146477073431015, -0.019852619618177414, 0.030162423849105835, -0.006577406078577042, 0.06535489112138748, 0.011879464611411095, 0.004129273351281881, -0.03604864701628685, 0.010220620781183243, -0.03656591847538948, -0.03212449699640274, 0.05397486314177513, 0.029912706464529037, 0.021993063390254974, -0.0517987459897995, -0.03685131296515465, -0.02272438071668148, 0.032980676740407944, -0.05971838906407356, 0.0019966328982263803, 0.006269717589020729, 0.06093130633234978, -0.03276663273572922, 0.017105715349316597, 0.007687761448323727, 0.02843223139643669, 0.0294667799025774, -0.0160265751183033, -0.053368404507637024, 0.0017268478404730558, 0.051263634115457535, 0.054509975016117096, 0.030626187101006508, 0.024258365854620934, 0.026719877496361732, -0.015045538544654846, 0.005868384148925543, 0.0005281434278003871, -0.03501409664750099, 0.022260617464780807, -0.07712733745574951, 0.006180532276630402, -0.03695833310484886, 0.015473626554012299, -0.07156217843294144, -0.008659879676997662, -0.04680437594652176, -0.05351110175251961, -0.03842097148299217, -0.05957569181919098, -0.022617358714342117, 0.03292716294527054, 0.02113688550889492, 0.012405657209455967, 0.01661519706249237, 0.014581775292754173, 0.10366883873939514, 0.04944425821304321, -0.01626737415790558, -0.02078014425933361, -0.05429593101143837, 0.000982151716016233, -0.10509580373764038, -0.0016800255980342627, -0.03504977002739906, 0.0027067698538303375, 0.049479931592941284, 0.0209763515740633, 0.005137065891176462, 0.06457006186246872, 0.008093554526567459, -0.029003016650676727, -0.019085627049207687, 0.04145326837897301, 0.09125426411628723, 0.020441241562366486, 0.028093328699469566, 0.04077545925974846, -0.05158470198512077, -0.03089374303817749, -0.027825772762298584, 0.01332426443696022, -0.00907905027270317, 0.04081113263964653, -0.039562541991472244, -0.014073419384658337, -0.02010233700275421, -0.06032484769821167, 0.025489121675491333, 0.04997937008738518, 0.0542602576315403, 0.018015403300523758, 0.04887347295880318, -0.03274879604578018, 0.015651997178792953, -0.01954938843846321, -0.01840781979262829, -0.017738930881023407, -0.04890914633870125, 0.0081515247002244, -0.012111346237361431, -0.07298914343118668, -0.044235844165086746, -0.02978784590959549, -0.007803702261298895, 0.017667582258582115, -0.0030077698174864054, -0.025881536304950714, 0.042452141642570496, -0.010871672071516514, 0.040632762014865875, 0.030269445851445198, 0.0370296835899353, 0.032178010791540146, -0.017301922664046288, -0.003072428982704878, -0.04976532608270645, 0.02201090008020401, 0.022082248702645302, 0.010247375816106796, 0.00773235410451889, -0.027183638885617256, -0.04166731238365173, -0.05083554610610008, -0.038456644862890244, -0.04430719092488289, -0.014376649633049965, 0.033176884055137634, -0.020352056249976158, 0.025792350992560387, 0.010746813379228115, 0.05818440392613411, -0.031749919056892395, 0.09310931712388992, 0.00767438393086195, -0.03185694292187691, 0.015562811866402626, -0.028289536014199257, 0.018621863797307014, 0.0652121976017952, 0.007562902290374041, 0.010193864814937115, 0.020922841504216194, -0.04341534152626991, 0.04962262883782387, -0.04077545925974846, 0.03121480904519558, 0.029805684462189674, -0.009029998444020748, 0.0654619112610817, 0.028057653456926346, -0.025631817057728767, 0.033533625304698944, 0.015054456889629364, 0.028467906638979912, 0.015964144840836525, -0.0035763252526521683, 0.022242780774831772, -0.0004654350923374295, -0.010809242725372314, 0.01744461990892887, 0.01987045630812645, -0.008722309954464436, 0.010728975757956505, -0.016071166843175888, 0.005739065818488598, 0.0068895542062819, -0.012682131491601467, 0.0732031837105751, 0.006911850534379482, 0.023937299847602844, 0.041738659143447876, -0.01788162626326084, -0.012271879240870476, -0.007754650432616472, -0.10766433924436569, 0.038099903613328934, 0.007553983945399523, -0.06517652422189713, 0.000390185130527243, -0.022456824779510498, 0.02486482448875904, -0.10759298503398895, -0.013805864378809929, -0.0009888405911624432, -0.006746857892721891, -0.006836043205112219, -0.025132380425930023, -0.018889419734477997, -0.04805297031998634, 0.00868663564324379, -0.04616224393248558, 0.010390072129666805, -0.022653033956885338, -0.019602900370955467, 0.044949326664209366, 0.02784360945224762, -0.03842097148299217, 0.0275582168251276, 0.007384532131254673, -0.004060154780745506, 0.04680437594652176, -0.015045538544654846, -0.005471510346978903, 0.02074447087943554, 0.04480662941932678, 0.020155848935246468, -0.018586188554763794, -0.02709445357322693, -0.02295626327395439, -0.03510328382253647, -0.04830268770456314, -0.026006394997239113, -0.021868202835321426, 0.048088643699884415, 0.03438980132341385, 0.03437196463346481, 0.007326561491936445, 0.04145326837897301, -0.022456824779510498, 0.009658753871917725, -0.02998405322432518, -0.05675744265317917, -0.0230097733438015, -0.009961983188986778, 0.017747849225997925, 0.048837799578905106, -0.06118102744221687, -0.04962262883782387, -0.0022664181888103485, 0.011032205075025558, 0.020797980949282646, -0.01812242716550827, -0.06506949663162231, 0.016160352155566216, -0.014492589980363846, -0.013547226786613464, 0.02820035070180893, 0.029538128525018692, 0.037101030349731445, -0.006608621217310429, -0.003313228953629732, 0.017239492386579514, 0.0022129069548100233, -0.022349802777171135, -0.004842754919081926, 0.04402180016040802, 0.0009776924271136522, 0.006189450621604919, 0.0446639321744442, -0.002902977168560028, 0.0228849146515131, -0.03594162315130234, -0.06421332061290741, -0.0879722535610199, 0.019923966377973557, 0.03874203935265541, 0.00525300670415163, -0.04009765386581421, -0.036512408405542374, -0.015964144840836525, -0.01990612968802452, 0.053725145757198334, 0.021903878077864647, 0.003944213967770338, -0.009444709867238998, -0.043129947036504745, 0.038492318242788315, 0.02739768475294113, 0.07056330889463425, -0.017721092328429222, 0.026559343561530113, -0.01931750774383545, -0.07584306597709656, 0.002920814324170351, 0.014082338660955429, 0.03399738669395447, 0.024097831919789314, -0.03874203935265541, 0.02807549200952053, 0.07277509570121765, -0.019299671053886414, -0.023669743910431862, 0.04791027307510376, 0.008231790736317635, -0.03688698634505272, -0.0008344387169927359, 0.026737714186310768, -0.007678843103349209, -0.012084590271115303, -0.01427854597568512, 0.021743344143033028, 0.016490338370203972, 0.011941893957555294, 0.0147958192974329, -0.015393360517919064, 0.0026287329383194447, -0.019692085683345795, 0.028236024081707, 0.022385478019714355, -0.004416895564645529, 0.005547317676246166, -0.007460339460521936, 0.01899644173681736, -0.04972964897751808, 0.030233772471547127, 0.07534363120794296, 0.0037279401440173388, 0.00500774709507823, 0.03909877687692642, 0.002891829004511237, 0.0008801461663097143, 0.07798351347446442, 0.010532768443226814, -0.03529949113726616, -0.01515256054699421, -0.030269445851445198, 0.007429124787449837, 0.029413267970085144, -0.03344443812966347, -0.022438988089561462, 0.020922841504216194, -0.007125895004719496, 0.003730169730260968, 0.008815954439342022, 0.0060556731186807156, -0.008535020984709263, 0.007955317385494709, -0.003926377277821302, -0.025399936363101006, 0.0015640849014744163, 0.027754424139857292, -0.025596143677830696, -0.028343046084046364, 0.07891103625297546, 0.04965830221772194, 0.03490707650780678, 0.01709679700434208, -0.030091077089309692, 0.06824449449777603, 0.022314129397273064, -0.029413267970085144, 0.005083554890006781, -0.05404621362686157, 0.01831863448023796, 0.053796492516994476, -0.01003333181142807, 0.06924336403608322, -0.012637538835406303, -0.006180532276630402, -0.012441331520676613, -0.04323697090148926, 0.02586369961500168, 0.04013332724571228, 0.008508265018463135, 0.0006895128171890974, 0.005021125078201294, 0.02597072161734104, 0.008338813669979572, 0.05504508689045906, 0.03474654257297516, 0.01983478106558323, -0.046661682426929474, -0.02914571389555931, 0.0010953053133562207, 0.0009559535537846386, 0.013547226786613464, -0.002243007067590952, -0.0006560683832503855, 0.014037746004760265, 0.05643637478351593, -0.0866166353225708, -0.03446114808320999, -0.051334984600543976, -0.01481365691870451, 0.023348677903413773, -0.03892040625214577, 0.055580198764801025, 0.014519345946609974, -0.014706633985042572, 0.05244087800383568, 0.04719679057598114 ]
17,197
imodels.rule_set.skope_rules
_predict_top_rules
Predict if a particular sample is an outlier or not, using the n_rules most performing rules. Parameters ---------- X : array-like, shape (n_samples, n_features) The input samples. Internally, it will be converted to ``dtype=np.float32`` n_rules : int The number of rules used for the prediction. If one of the n_rules most performing rules is activated, the prediction is equal to 1. Returns ------- is_outlier : array, shape (n_samples,) For each observations, tells whether or not (1 or 0) it should be considered as an outlier according to the selected rules.
def _predict_top_rules(self, X, n_rules) -> np.ndarray: """Predict if a particular sample is an outlier or not, using the n_rules most performing rules. Parameters ---------- X : array-like, shape (n_samples, n_features) The input samples. Internally, it will be converted to ``dtype=np.float32`` n_rules : int The number of rules used for the prediction. If one of the n_rules most performing rules is activated, the prediction is equal to 1. Returns ------- is_outlier : array, shape (n_samples,) For each observations, tells whether or not (1 or 0) it should be considered as an outlier according to the selected rules. """ return np.array((self._score_top_rules(X) > len(self.rules_) - n_rules), dtype=int)
(self, X, n_rules) -> numpy.ndarray
[ -0.06762155145406723, 0.04237757623195648, -0.04634499177336693, -0.07787362486124039, 0.014781243167817593, -0.004248290788382292, -0.04469482600688934, -0.016843946650624275, -0.008421973325312138, -0.0199599452316761, 0.01152480486780405, 0.02055681124329567, 0.017791911959648132, -0.02942204661667347, 0.024418894201517105, 0.05564909800887108, -0.01435992494225502, -0.002742956392467022, 0.04806537181138992, -0.020047718659043312, -0.003769919276237488, 0.015325445681810379, -0.05449047312140465, -0.036654673516750336, 0.06351370364427567, -0.0022272805217653513, 0.007175573613494635, -0.03312613442540169, -0.019257748499512672, 0.026648368686437607, -0.10231007635593414, 0.019257748499512672, 0.01871354505419731, -0.027877213433384895, -0.009049561806023121, -0.039744339883327484, 0.037251539528369904, -0.014596916735172272, 0.025138646364212036, -0.0029645871836692095, -0.033898551017045975, -0.023558704182505608, -0.004638887941837311, 0.03704088181257248, -0.05280520021915436, -0.00593795208260417, -0.030984435230493546, 0.05824722722172737, 0.02950982190668583, -0.004114434588700533, -0.04448416829109192, -0.010120411403477192, 0.030545562505722046, 0.00569657189771533, -0.00956743210554123, -0.0195035170763731, -0.013613840565085411, -0.08742350339889526, -0.01645773835480213, -0.055438440293073654, 0.03474118933081627, 0.05807167664170265, 0.07018457353115082, -0.03802395612001419, 0.04041142761707306, -0.004862713161855936, -0.055894866585731506, 0.013964938931167126, -0.0025235197972506285, -0.0007960059447214007, -0.038059066981077194, -0.007456452585756779, 0.06035381555557251, 0.0034890405368059874, -0.0443437285721302, -0.020416373386979103, 0.013806944712996483, -0.020890355110168457, -0.009426992386579514, 0.022206975147128105, -0.029632706195116043, 0.04634499177336693, 0.045958783477544785, -0.021768100559711456, -0.006872751284390688, -0.029211387038230896, 0.025226421654224396, -0.009804422967135906, 0.017791911959648132, 0.0072106835432350636, 0.0045642792247235775, -0.000019132119632558897, 0.017519811168313026, -0.05094438046216965, 0.011033267714083195, 0.051716797053813934, 0.008685297332704067, -0.0003889512154273689, 0.02134678326547146, -0.05210300534963608, 0.01254299096763134, 0.005415692925453186, -0.01915241777896881, 0.022979391738772392, 0.004399701952934265, 0.048521801829338074, -0.026736143976449966, 0.030194463208317757, -0.055333107709884644, 0.03623335435986519, 0.00030117659480310977, -0.0006643439992330968, -0.03704088181257248, 0.022891616448760033, 0.0611262321472168, -0.0030128632206469774, -0.03732176125049591, 0.023874692618846893, -0.04634499177336693, 0.0006467890925705433, -0.010752389207482338, -0.032494157552719116, -0.06109112501144409, -0.010717279277741909, -0.028122982010245323, 0.029281606897711754, 0.05536821857094765, -0.016510402783751488, 0.037251539528369904, -0.02543707937002182, -0.007605669088661671, -0.0390070341527462, 0.009962417185306549, 0.001181665575131774, -0.0332314632833004, -0.03795373812317848, 0.03509228676557541, -0.029106058180332184, 0.041078515350818634, -0.0708867684006691, 0.0558597557246685, 0.0425531268119812, 0.009725426323711872, -0.03732176125049591, -0.007495950907468796, -0.0068288641050457954, 0.040200766175985336, 0.03388099744915962, 0.02845652587711811, -0.013534843921661377, -0.03031734749674797, -0.01786213181912899, -0.038410164415836334, -0.03126531466841698, 0.026929248124361038, 0.021329227834939957, 0.0007307235500775278, -0.104627326130867, -0.04360642284154892, -0.07878648489713669, -0.030650891363620758, -0.011437030509114265, -0.056597065180540085, -0.04448416829109192, -0.001836683601140976, -0.01715993508696556, -0.013078415766358376, 0.028210757300257683, 0.04451927915215492, 0.011595024727284908, -0.04041142761707306, -0.026209495961666107, -0.006521652918308973, 0.001086210715584457, -0.06607671827077866, 0.03396877273917198, -0.022382523864507675, 0.007447674870491028, -0.049504876136779785, 0.07344979047775269, -0.009102226234972477, -0.040727414190769196, -0.024243345484137535, -0.07239649444818497, -0.022277195006608963, 0.04034120589494705, 0.004279011860489845, 0.026121722534298897, -0.060318708419799805, 0.0478898249566555, -0.08215703070163727, -0.028491636738181114, 0.039217691868543625, 0.01187590416520834, -0.021908540278673172, -0.01773046888411045, -0.017791911959648132, 0.09999282658100128, 0.05013685300946236, -0.03830483555793762, 0.027964988723397255, 0.07120275497436523, 0.01134047843515873, -0.0018322948599234223, -0.013490956276655197, 0.024436449632048607, -0.05006663501262665, -0.01187590416520834, -0.03300325199961662, -0.0023062776308506727, -0.0024423282593488693, -0.005617574788630009, -0.008378085680305958, 0.009874642826616764, 0.026209495961666107, 0.05789612606167793, 0.011954900808632374, 0.0008327615214511752, -0.062003977596759796, -0.05255943164229393, -0.005310363601893187, -0.03883148357272148, -0.03180951625108719, 0.04304466396570206, -0.0077241649851202965, 0.03679511323571205, 0.0305806715041399, 0.02394491247832775, 0.06523408740758896, -0.0007877770694904029, -0.01932796835899353, 0.02950982190668583, 0.07011435180902481, -0.0341092087328434, 0.048697348684072495, 0.05104970932006836, -0.03686533123254776, -0.025296639651060104, -0.04157005250453949, 0.028210757300257683, -0.024313565343618393, -0.029474711045622826, -0.017651472240686417, -0.02561262808740139, -0.016545511782169342, 0.07309868931770325, 0.023628922179341316, -0.005047039594501257, 0.007381843868643045, -0.026753699406981468, 0.033986326307058334, -0.04027098789811134, 0.008084041066467762, -0.0001426337257726118, -0.029228942468762398, 0.002422579098492861, -0.04472993686795235, -0.027771884575486183, 0.04371175169944763, -0.036654673516750336, 0.02048659138381481, 0.05807167664170265, 0.009514766745269299, -0.0024511057417839766, -0.025226421654224396, 0.006210053339600563, -0.017037050798535347, 0.004735440015792847, 0.027877213433384895, 0.00593795208260417, 0.018186897039413452, 0.015123563818633556, -0.027139907702803612, -0.031177539378404617, 0.010225741192698479, -0.001442795037291944, 0.012112895026803017, -0.029228942468762398, 0.019749285653233528, -0.006477765738964081, 0.044554390013217926, -0.034618303179740906, -0.054982010275125504, 0.01320130005478859, 0.03295058757066727, -0.052770089358091354, 0.010225741192698479, -0.04013054817914963, 0.0190646443516016, 0.03066844679415226, 0.026279715821146965, -0.03391610458493233, -0.010787498205900192, -0.033108580857515335, -0.026174386963248253, 0.001372575294226408, 0.01386838685721159, -0.07309868931770325, 0.02243518829345703, 0.0038006403483450413, 0.005244532600045204, 0.013280297629535198, 0.026174386963248253, -0.0478898249566555, 0.07085166126489639, 0.02429600991308689, -0.034881625324487686, -0.03256437927484512, 0.03911236301064491, 0.0018092539394274354, 0.03953368216753006, -0.006640148814767599, 0.008465860038995743, -0.06038892641663551, -0.05505223199725151, -0.010357403196394444, 0.0319148451089859, -0.009918530471622944, 0.03858571499586105, 0.058106787502765656, -0.006425100844353437, -0.021417003124952316, -0.014158043079078197, 0.0035022066440433264, 0.031247759237885475, 0.0009007868357002735, 0.018204452469944954, -0.06186354160308838, -0.019169973209500313, -0.07011435180902481, 0.00706585543230176, -0.07021968066692352, 0.00857118982821703, -0.00545519171282649, -0.03446030989289284, -0.014781243167817593, 0.008018209598958492, 0.04185093194246292, 0.028333641588687897, 0.03707599267363548, -0.06484787911176682, 0.021223898977041245, -0.0068069202825427055, 0.013763057999312878, 0.026648368686437607, -0.021136123687028885, -0.0451863668859005, 0.0297029260545969, -0.02979069948196411, 0.046660978347063065, 0.013569953851401806, -0.04472993686795235, 0.07590747624635696, 0.033284127712249756, 0.061898648738861084, 0.0032959363888949156, 0.01418437622487545, 0.04448416829109192, 0.06442655622959137, -0.07099209725856781, 0.02357625775039196, -0.04114873334765434, -0.01887154020369053, 0.041534941643476486, -0.006692813243716955, 0.0332314632833004, 0.04732806608080864, 0.04371175169944763, -0.012876533903181553, 0.01613297127187252, -0.07646923512220383, -0.08475515246391296, -0.0032630208879709244, 0.034091655164957047, 0.04413307085633278, 0.03049289621412754, 0.023541148751974106, -0.007425731513649225, 0.06267106533050537, 0.015904758125543594, -0.05529800057411194, 0.03697066381573677, -0.053296737372875214, 0.01155991479754448, 0.02898317389190197, 0.039042145013809204, -0.06442655622959137, 0.015483439899981022, 0.04100829362869263, -0.054630912840366364, 0.07632879167795181, 0.036479126662015915, -0.027280345559120178, -0.07583725452423096, -0.02959759533405304, 0.0682535320520401, -0.04013054817914963, 0.03233616426587105, -0.014833907596766949, -0.04237757623195648, -0.06892061978578568, -0.025559963658452034, 0.029228942468762398, 0.014298482798039913, -0.041886039078235626, 0.01931041292846203, -0.026753699406981468, 0.04806537181138992, -0.026753699406981468, 0.028684740886092186, -0.02268095687031746, -0.007526671979576349, -0.006056447513401508, -0.05789612606167793, 0.016712283715605736, 0.06326793134212494, 0.028070317581295967, 0.05663217231631279, 0.030703555792570114, -0.053577616810798645, 0.029825810343027115, -0.03883148357272148, 0.019011978060007095, -0.010585617274045944, 0.0024379396345466375, -0.03291547670960426, -0.05923030152916908, -0.007719776127487421, -0.02410290576517582, 0.03784840926527977, -0.021768100559711456, -0.04925910755991936, -0.05361272767186165, 0.007833883166313171, -0.038164395838975906, 0.008816958405077457, -0.023769361898303032, 0.002933866111561656, -0.04508103430271149, 0.009154890663921833, -0.012463993392884731, 0.06618204712867737, 0.03676000237464905, 0.08693196624517441, -0.019696621224284172, -0.0033091024961322546, 0.03182706981897354, -0.057650357484817505, -0.0558597557246685, -0.03431987017393112, -0.028842734172940254, -0.024699773639440536, 0.015623879618942738, 0.01112104207277298, 0.0006193595472723246, -0.02712235227227211, -0.061020903289318085, -0.039849668741226196, -0.027157461270689964, 0.04265845566987991, 0.03465341404080391, -0.0050909267738461494, -0.028245866298675537, 0.0025674072094261646, -0.03281014785170555, -0.01836244761943817, -0.033723000437021255, 0.028316086158156395, 0.03135308623313904, -0.026981912553310394, -0.01931041292846203, 0.013622618280351162, -0.027139907702803612, 0.03970922902226448, -0.01094549335539341, 0.06260084360837936, 0.054911792278289795, 0.002185587538406253, 0.02074991539120674, 0.04831114038825035, -0.0038686655461788177, 0.02524397522211075, -0.05255943164229393, -0.012341109104454517, -0.021574996411800385, -0.0083078658208251, -0.09416459500789642, -0.034881625324487686, 0.001538249896839261, -0.021943651139736176, 0.03672489523887634, -0.02845652587711811, 0.05185723677277565, -0.006416323594748974, -0.013341739773750305, 0.009418214671313763, 0.03960390016436577, 0.015088453888893127, 0.04939954727888107, 0.0068200863897800446, -0.02952737547457218, -0.008180593140423298, -0.008825736120343208, -0.028333641588687897, 0.0017752413405105472, -0.003317879978567362, -0.02587595209479332, 0.014561806805431843, -0.007969933561980724, 0.022733621299266815, 0.03128286823630333, 0.007504728622734547, 0.04774938523769379, 0.0005326821119524539, 0.02933427132666111, -0.00394107960164547, 0.030475342646241188, 0.02775432914495468, -0.014790020883083344, 0.06544474512338638, 0.05610552430152893, -0.037251539528369904, -0.010129189118742943, -0.03184462711215019, 0.04441395029425621, 0.043922409415245056, 0.03837505728006363, -0.0005820553051307797, 0.03405654430389404, -0.01967906579375267, 0.012788759544491768, -0.016150526702404022, -0.0012101923348382115, 0.041183844208717346, 0.01046273298561573, 0.006179331801831722, -0.015395665541291237, 0.006394379772245884, 0.009663984179496765, 0.0064031570218503475, -0.008479026146233082, -0.04458949714899063, 0.016361186280846596, 0.013684060424566269, 0.04100829362869263, 0.014596916735172272, -0.016905387863516808, 0.010980602353811264, -0.04736317694187164, -0.0007054883753880858, 0.016036419197916985, 0.02403268590569496, 0.053296737372875214, -0.04114873334765434, 0.10940226167440414, 0.04655564948916435, 0.03474118933081627, 0.03086155094206333, -0.0045511131174862385, 0.009848310612142086, -0.050207071006298065, -0.052418991923332214, -0.0010757874697446823, -0.04093807563185692, -0.028754958882927895, 0.019029533490538597, -0.04824092239141464, 0.03837505728006363, -0.07639901340007782, 0.02287406101822853, 0.016738615930080414, 0.09374327212572098, 0.00012110151874367148, -0.01595742255449295, -0.008167427033185959, -0.011322923935949802, 0.07422220706939697, 0.03400387987494469, -0.00926899816840887, 0.01931041292846203, 0.029123613610863686, 0.013271519914269447, -0.02090791054069996, -0.025472190231084824, 0.012894089333713055, -0.0016830780077725649, -0.03360011801123619, 0.03876126557588577, -0.013569953851401806, -0.011331700719892979, -0.0076407790184021, 0.03500451147556305, -0.037988848984241486, 0.00020915041386615485, 0.018028903752565384, -0.002611294388771057, 0.018766209483146667, -0.013824500143527985, -0.016756171360611916, 0.03598758578300476, -0.004028854425996542, 0.04402774199843407, -0.011226371861994267, -0.02950982190668583, 0.09142602235078812, 0.01294675376266241, -0.055087339133024216, -0.002492798725143075, -0.002800009911879897, 0.006174943409860134, 0.014000048860907555, 0.016642063856124878, 0.020100383087992668, -0.008474637754261494, 0.0425180159509182, 0.016229523345828056, 0.0073072356171905994, 0.01880132034420967, -0.03795373812317848, -0.010278405621647835, 0.05821211636066437, 0.04883778840303421, 0.06969303637742996, 0.040727414190769196, 0.017238931730389595, -0.04574812203645706, -0.0054595801047980785, -0.07724165171384811, -0.04501081630587578, -0.04062208533287048, 0.03126531466841698, 0.013543620705604553, 0.027455896139144897, -0.0349869579076767, -0.014895349740982056, 0.03029979206621647, 0.041078515350818634, 0.03184462711215019, 0.02152233198285103, -0.07253693044185638, -0.08833636343479156, 0.026279715821146965, 0.044975705444812775, -0.013227632269263268, 0.030791331082582474, -0.06010804697871208, -0.004673997405916452, 0.04469482600688934, 0.04494059830904007, -0.011779352091252804, -0.0034539306070655584, -0.004875879269093275, 0.0072721256874501705, 0.0288076251745224, 0.04027098789811134, 0.02269851230084896, 0.07134319841861725, 0.0549468994140625, 0.02605150267481804, -0.08531691133975983, -0.005095315631479025, 0.0018301004311069846, -0.012112895026803017, 0.0072457934729754925, 0.022733621299266815, 0.036654673516750336, 0.03774308040738106, -0.009936084970831871, -0.04269356653094292, 0.00441725691780448, -0.007768052164465189, 0.0007691249484196305, 0.027350565418601036, 0.0058633433654904366, 0.07373066246509552, -0.05684283375740051, -0.04016565904021263, -0.01702827215194702, -0.036198247224092484, -0.0699739158153534, -0.002221794566139579, 0.017712915316224098, 0.006113501265645027, -0.054630912840366364, 0.024313565343618393, 0.040727414190769196, 0.057123709470033646, 0.02420823462307453, -0.0594058521091938, -0.009146113879978657, 0.0033573785331100225, 0.012148004956543446, 0.04487037658691406, 0.006293438840657473, 0.03925280272960663, -0.03942834958434105, -0.04128917306661606, 0.08257834613323212, 0.0460992194712162, -0.03879637271165848, 0.011419476009905338, -0.038059066981077194, -0.013008195906877518, -0.05399893596768379, -0.04638009890913963, 0.07415198534727097, -0.04248290881514549, -0.05248921364545822, 0.009690316393971443, -0.013710392639040947, -0.1054699644446373, -0.011322923935949802, 0.029562486335635185, -0.03883148357272148, -0.04813559353351593, -0.012551767751574516, 0.04234246909618378, 0.014324815012514591, -0.0504879504442215, -0.013227632269263268, 0.08622977137565613, 0.020872799679636955, 0.025577519088983536, -0.011287814006209373, -0.02950982190668583, 0.009172446094453335, 0.044905487447977066, -0.06186354160308838, -0.013236409984529018, -0.045783232897520065, 0.026279715821146965, -0.003015057649463415, 0.010436399839818478, 0.023874692618846893, -0.002914116717875004, 0.04360642284154892, -0.0045511131174862385, -0.10301227122545242, 0.03970922902226448, 0.00264859851449728, 0.042237140238285065, -0.00806648563593626, 0.036128025501966476, -0.06407546252012253, 0.03823461756110191, 0.02278628759086132, 0.02250540815293789, 0.008518525399267673, 0.03084399551153183, -0.016931720077991486, 0.018134232610464096, 0.004210986662656069, 0.04652053862810135, -0.027227681130170822, 0.049223996698856354, 0.051716797053813934, 0.016914166510105133, -0.04708229750394821, -0.001167402253486216, 0.011375588364899158, -0.00005955643791821785, -0.00407054740935564, -0.005595630966126919, 0.04051675647497177, 0.016185637563467026, -0.0013912274735048413, 0.02570040337741375, -0.02685902826488018 ]
17,198
imodels.rule_set.skope_rules
_prune_rules
null
def _prune_rules(self, rules) -> List[Rule]: return deduplicate( prune_mins(rules, self.precision_min, self.recall_min), self.max_depth_duplication )
(self, rules) -> List[imodels.util.rule.Rule]
[ -0.005224024876952171, 0.05804865434765816, -0.023446131497621536, -0.0422172024846077, -0.06194453686475754, -0.040056757628917694, 0.007645669858902693, -0.043704722076654434, 0.03483273461461067, 0.011847025714814663, -0.02521698735654354, 0.02509302645921707, 0.022472159937024117, -0.0013203943381085992, 0.026226375252008438, -0.027607642114162445, -0.04119010642170906, 0.042606789618730545, 0.010394923388957977, -0.019337745383381844, 0.028811823576688766, 0.010572009719908237, -0.006897483486682177, 0.0426776260137558, -0.030866017565131187, -0.0028909221291542053, 0.04009217396378517, 0.022029446437954903, -0.09024281054735184, 0.031999364495277405, -0.019550248980522156, 0.07380927354097366, 0.020276298746466637, -0.028315983712673187, -0.05546320602297783, -0.05323192477226257, -0.017372095957398415, 0.04908812418580055, -0.04402347654104233, -0.016309581696987152, 0.023127377033233643, 0.04533391073346138, -0.020134631544351578, -0.018222106620669365, 0.016291873529553413, -0.016167914494872093, 0.06180286779999733, 0.05815490335226059, -0.00007927346450742334, -0.023127377033233643, -0.027696184813976288, 0.03217644989490509, 0.027501391246914864, 0.07735098153352737, 0.007530564442276955, -0.004989386070519686, -0.052948590368032455, -0.010527737438678741, 0.03578899800777435, -0.08776361495256424, -0.011103265918791294, 0.003065794240683317, 0.004276616964489222, -0.03740047663450241, 0.03732964023947716, -0.054436106234788895, -0.058934081345796585, -0.02546490728855133, -0.03205249086022377, -0.015459571033716202, -0.03637337684631348, -0.011855879798531532, 0.06945296376943588, -0.021498190239071846, 0.005454235710203648, -0.01231630239635706, 0.0718967467546463, -0.01365329883992672, 0.012334010563790798, -0.04133177548646927, -0.0059235128574073315, 0.051390234380960464, -0.005494080018252134, 0.03304417058825493, 0.03439002111554146, -0.017124176025390625, 0.04115469008684158, 0.02047109417617321, -0.027696184813976288, -0.043563053011894226, -0.007039152085781097, -0.02022317424416542, -0.0230388343334198, -0.04813186079263687, 0.02326904609799385, 0.06704460084438324, -0.04689226299524307, 0.009102199226617813, 0.020134631544351578, -0.04891103878617287, 0.04172136262059212, -0.007791765499860048, -0.10412631928920746, 0.014724666252732277, 0.028227441012859344, 0.010704823769629002, -0.006065180990844965, -0.021144019439816475, -0.018682528287172318, 0.07550929486751556, -0.041969284415245056, 0.06098827347159386, -0.011138683184981346, 0.02523469552397728, 0.04611308500170708, -0.03708172217011452, -0.08436357229948044, -0.03201707452535629, 0.02911286987364292, 0.0037387192714959383, -0.05528612062335014, 0.02475656382739544, -0.01839919202029705, 0.0037984857335686684, -0.014582998119294643, -0.017434075474739075, 0.013210584409534931, 0.0308483075350523, 0.015716345980763435, -0.008048539981245995, -0.014308515004813671, 0.00225562765263021, -0.03299104422330856, -0.005706582684069872, -0.020063797011971474, -0.057056974619627, 0.06686751544475555, -0.009668872691690922, 0.02939620614051819, -0.03035246953368187, 0.011289205402135849, 0.038569238036870956, 0.027005551382899284, 0.009783978573977947, -0.022348200902342796, -0.013839238323271275, -0.006680553779006004, 0.08563859015703201, -0.050256889313459396, 0.03987967222929001, -0.01864711195230484, 0.006875347811728716, 0.01939087174832821, -0.009713144041597843, 0.07026755809783936, 0.014742374420166016, -0.003862679237499833, -0.024526353925466537, -0.017416367307305336, 0.011200662702322006, -0.01680542156100273, 0.05177982524037361, -0.01947941444814205, -0.038462989032268524, 0.0024127911310642958, -0.04335055127739906, 0.006724825128912926, -0.03984425589442253, -0.0285284873098135, 0.039312999695539474, 0.013617881573736668, -0.03483273461461067, 0.005994346924126148, -0.0045134685933589935, -0.04002134129405022, -0.013051207177340984, 0.00880558043718338, 0.010279818437993526, -0.05560487136244774, 0.08811778575181961, -0.03325667232275009, -0.03924216330051422, 0.029165996238589287, -0.04327971488237381, 0.04434223100543022, 0.06258204579353333, -0.0014875188935548067, -0.007504001725465059, -0.06332580745220184, -0.017097612842917442, -0.0038161943666636944, -0.020187756046652794, 0.013051207177340984, 0.003256161231547594, -0.00823447946459055, -0.04547557607293129, -0.023428423330187798, 0.03513377904891968, -0.011705356650054455, -0.011094411835074425, -0.08663026988506317, 0.04423597827553749, 0.014308515004813671, -0.04582974687218666, 0.0019003496272489429, 0.005981065332889557, -0.0794760063290596, 0.0035417117178440094, 0.031255606561899185, 0.043563053011894226, -0.0009031364461407065, 0.010306380689144135, 0.029183704406023026, -0.021144019439816475, -0.0035173622891306877, -0.05057564377784729, 0.015778325498104095, 0.05762364715337753, 0.0213388130068779, 0.010784512385725975, -0.08223854750394821, -0.009279284626245499, -0.04703393206000328, -0.028315983712673187, -0.00987252127379179, 0.046644341200590134, 0.011705356650054455, 0.001863825717009604, 0.024101348593831062, -0.03910049796104431, 0.017097612842917442, -0.09796374291181564, -0.0024172181729227304, -0.019178368151187897, 0.05425902083516121, 0.011227225884795189, -0.02525240369141102, -0.02293258346617222, -0.005812834016978741, 0.016088224947452545, -0.03764839470386505, -0.021852361038327217, 0.05107148364186287, 0.03336292505264282, 0.05911116674542427, 0.04119010642170906, 0.0018715732730925083, 0.00658758357167244, 0.043563053011894226, 0.005179753061383963, 0.035293158143758774, 0.001071921200491488, 0.02351696603000164, 0.04629017040133476, 0.021232562139630318, -0.01914295181632042, -0.0655570849776268, 0.005139909218996763, 0.007171966135501862, -0.024845106527209282, 0.023605508729815483, 0.03814423456788063, 0.03180456906557083, -0.068355031311512, 0.02426072396337986, 0.015884576365351677, -0.03288479149341583, 0.022578410804271698, -0.030016006901860237, 0.028422236442565918, 0.10533050447702408, -0.049796465784311295, 0.013130895793437958, 0.04682142660021782, -0.03800256550312042, 0.03561190888285637, -0.04696309566497803, 0.02975037693977356, 0.047211017459630966, -0.04338596761226654, 0.044165145605802536, -0.013688715174794197, 0.02256070263683796, -0.04335055127739906, 0.022348200902342796, 0.004281044006347656, 0.020683595910668373, -0.020435675978660583, -0.03511607274413109, 0.009261575527489185, 0.002988319145515561, -0.04876936972141266, 0.04427139461040497, -0.031273312866687775, 0.030688932165503502, 0.004683913663029671, 0.03350459039211273, -0.06874462217092514, -0.025889912620186806, 0.052842337638139725, -0.00993450079113245, -0.012218905612826347, 0.07366760075092316, 0.0005871494067832828, 0.012732453644275665, 0.006968317553400993, -0.05096523091197014, -0.04866311699151993, 0.09739706665277481, 0.006255547981709242, 0.004212423227727413, -0.023694051429629326, 0.00700816186144948, 0.0017487200675532222, -0.020382549613714218, -0.03288479149341583, 0.024915941059589386, -0.009102199226617813, 0.05425902083516121, 0.02925453893840313, 0.005343557335436344, -0.0011123188305646181, -0.056277796626091, 0.046998511999845505, -0.04933604225516319, -0.0401984266936779, 0.01614135131239891, -0.010784512385725975, -0.004048618953675032, -0.047600604593753815, -0.029909754171967506, -0.01781480945646763, 0.015238214284181595, 0.0026186530012637377, -0.030299343168735504, -0.005259441677480936, 0.08634693175554276, 0.009837104007601738, -0.010935034602880478, -0.04497973620891571, 0.027979521080851555, 0.042465124279260635, 0.008646203204989433, -0.011492853984236717, -0.00579069834202528, 0.029343081638216972, -0.04738810285925865, 0.04374013841152191, -0.008331876248121262, 0.01866482011973858, 0.054648611694574356, -0.03421293571591377, -0.0007398857269436121, 0.012006402015686035, 0.06410498172044754, -0.0070878504775464535, -0.025305530056357384, 0.03387647122144699, 0.005498507525771856, -0.045652661472558975, 0.03640879690647125, -0.014042886905372143, 0.006773523520678282, 0.034921277314424515, 0.08960530161857605, -0.00213609472848475, 0.014388203620910645, -0.06708002090454102, 0.005578195676207542, -0.039419252425432205, -0.07076340168714523, -0.0032605882734060287, 0.0003265015548095107, -0.05340901017189026, -0.038073401898145676, 0.034938983619213104, 0.06159036606550217, 0.019107533618807793, 0.028457652777433395, 0.09399702399969101, -0.03183998912572861, 0.012236613780260086, -0.03789631277322769, 0.00205640634521842, -0.016424687579274178, 0.06098827347159386, -0.01976275071501732, 0.004325315356254578, 0.0803968533873558, 0.009606893174350262, 0.03336292505264282, -0.005604758858680725, 0.035151489078998566, -0.00824776105582714, -0.011333477683365345, 0.07352593541145325, -0.04678601026535034, 0.013361107558012009, -0.03913591429591179, -0.0037940586917102337, 0.001290511223487556, -0.049796465784311295, 0.024473227560520172, 0.03743589296936989, -0.028723280876874924, 0.008823289535939693, -0.017265845090150833, 0.03109622746706009, -0.00212613376788795, 0.03268999978899956, 0.021374229341745377, -0.0460776686668396, 0.03387647122144699, -0.016610627993941307, 0.016256457194685936, -0.029555583372712135, 0.05641946569085121, -0.0281388983130455, 0.0519569106400013, -0.04278387501835823, 0.04837978258728981, -0.04030467942357063, -0.005786271300166845, -0.002753680804744363, 0.006791232153773308, -0.024402393028140068, -0.014653831720352173, -0.0006585370283573866, -0.0680362805724144, 0.045015156269073486, 0.00727821746841073, -0.04983188211917877, -0.0034686638973653316, -0.05401110276579857, 0.02192319557070732, -0.0050823562778532505, 0.011802754364907742, 0.03938383236527443, -0.016708023846149445, 0.034319184720516205, -0.018168980255723, -0.006972744595259428, 0.06605292111635208, -0.017575744539499283, 0.01829294115304947, 0.039312999695539474, 0.005255014635622501, 0.00010030237899627537, -0.08960530161857605, 0.05811948701739311, 0.015344466082751751, 0.00988137535750866, -0.001989999320358038, -0.03495669364929199, 0.027040967717766762, 0.010288672521710396, -0.019426288083195686, -0.02635033428668976, -0.014777791686356068, -0.002795738633722067, 0.10830554366111755, 0.023233627900481224, 0.012812142260372639, 0.06750502437353134, -0.09024281054735184, 0.013440795242786407, -0.006087316665798426, 0.011749627999961376, 0.0029418342746794224, -0.010085023939609528, 0.03267228975892067, -0.008358439430594444, 0.006512322463095188, -0.027359722182154655, -0.04044634848833084, 0.03205249086022377, 0.0008212343673221767, -0.03970258682966232, 0.033823344856500626, 0.030299343168735504, -0.02728888764977455, -0.021250270307064056, -0.028315983712673187, -0.010465757921338081, -0.019656499847769737, -0.022489868104457855, -0.03350459039211273, -0.05748198181390762, 0.014698103070259094, 0.016725733876228333, -0.025889912620186806, -0.03754214197397232, -0.024048222228884697, 0.03279624879360199, -0.028439944609999657, 0.020400259643793106, -0.0071365488693118095, 0.01887732371687889, 0.035771287977695465, -0.02534094639122486, -0.02560657449066639, -0.008562088012695312, -0.024083638563752174, 0.031237896531820297, 0.03242437168955803, 0.002355238189920783, 0.0032030355650931597, 0.014671540819108486, -0.04848603159189224, -0.028794115409255028, -0.02009921334683895, -0.010518883354961872, -0.025783659890294075, 0.05061106011271477, -0.0372588075697422, 0.0035660609137266874, -0.017416367307305336, -0.051744408905506134, -0.0067956591956317425, 0.011368894018232822, -0.011944422498345375, -0.016274165362119675, -0.001839476521126926, -0.02948474884033203, -0.012998081743717194, 0.028864949941635132, -0.010616281069815159, 0.016619481146335602, 0.030139965936541557, -0.0536569319665432, 0.052736084908246994, -0.01839919202029705, -0.005675592925399542, -0.02780243568122387, 0.02217111550271511, 0.03134414926171303, -0.035665035247802734, -0.05262983590364456, 0.0198690015822649, 0.03984425589442253, 0.04257137328386307, 0.021409647539258003, 0.05266525223851204, 0.012032965198159218, -0.01535332016646862, 0.058686163276433945, 0.013272563926875591, 0.013511629775166512, -0.04526307433843613, 0.04667976126074791, 0.004945114720612764, -0.0007492933655157685, -0.013042353093624115, -0.024331558495759964, 0.09406786412000656, 0.009288138709962368, 0.0367983840405941, -0.005228451918810606, 0.03694005310535431, -0.03610774874687195, 0.003090143436565995, -0.06399872899055481, 0.04933604225516319, -0.03373480215668678, -0.10320547968149185, -0.014113720506429672, -0.037577562034130096, 0.05546320602297783, -0.05886324867606163, 0.06467165797948837, 0.009801686741411686, 0.026155540719628334, 0.009642309509217739, -0.03267228975892067, -0.025943037122488022, -0.04526307433843613, -0.009035792201757431, -0.01583145186305046, -0.020134631544351578, -0.019532538950443268, 0.02585449442267418, 0.022702371701598167, -0.029307663440704346, -0.05347984656691551, 0.0048078736290335655, 0.0056446027010679245, 0.0409776046872139, -0.008761309087276459, 0.043563053011894226, -0.043208882212638855, 0.07628846913576126, 0.08188437670469284, 0.00341332470998168, -0.02728888764977455, -0.07108215242624283, -0.0038161943666636944, 0.007326915860176086, -0.007300353143364191, -0.057588230818510056, 0.04122552275657654, 0.03729422390460968, -0.011492853984236717, 0.03665671497583389, 0.01781480945646763, 0.03550565987825394, -0.027359722182154655, -0.030016006901860237, -0.054081935435533524, 0.01073138602077961, 0.025889912620186806, -0.031609777361154556, 0.059323668479919434, 0.0735967680811882, -0.06183828413486481, 0.044058892875909805, 0.00494068767875433, -0.007114413194358349, -0.013423087075352669, -0.04643183946609497, -0.06573417037725449, -0.037860896438360214, -0.007929006591439247, -0.010217837989330292, 0.013927781023085117, 0.02778472751379013, 0.0372588075697422, -0.022241950035095215, -0.018009603023529053, -0.02169298380613327, 0.004635215271264315, -0.026739923283457756, -0.017186155542731285, -0.012024111114442348, 0.03839215263724327, -0.061129942536354065, 0.013591318391263485, 0.013051207177340984, -0.027094094082713127, -0.009217304177582264, -0.042606789618730545, -0.024083638563752174, -0.048698533326387405, 0.0482381135225296, -0.011147537268698215, -0.06024451553821564, -0.06955921649932861, -0.033079586923122406, 0.0027426129672676325, 0.012980373576283455, 0.02840452827513218, -0.011740773916244507, -0.008207916282117367, -0.01450330950319767, 0.033681679517030716, 0.045404743403196335, 0.08896780014038086, 0.0027758164796978235, -0.008336303755640984, 0.023499255999922752, -0.07565096020698547, 0.033593133091926575, -0.010811074636876583, -0.021639857441186905, 0.01576947048306465, -0.012511095963418484, 0.018381483852863312, 0.037010885775089264, 0.018983574584126472, -0.003588196588680148, 0.028864949941635132, -0.0350983627140522, -0.03658588230609894, -0.014884043484926224, 0.026368042454123497, -0.03343375772237778, -0.001589343068189919, -0.04104843735694885, 0.09406786412000656, -0.0198690015822649, -0.046502672135829926, -0.010279818437993526, -0.021622149273753166, -0.016938235610723495, -0.08344272524118423, 0.031751446425914764, 0.019957544282078743, -0.0023530246689915657, 0.026615962386131287, -0.010757949203252792, 0.051000647246837616, -0.022702371701598167, -0.005069074686616659, 0.025783659890294075, -0.0017299047904089093, 0.0051000649109482765, 0.04915895685553551, -0.018948156386613846, 0.03410668298602104, 0.04706934839487076, -0.017991894856095314, -0.04572349786758423, 0.03304417058825493, -0.04055259749293327, -0.006959463469684124, 0.05142565444111824, 0.013662152923643589, 0.01047461200505495, 0.028315983712673187, 0.0021881137508898973, 0.016849692910909653, -0.04597141593694687, 0.0076545244082808495, 0.015477280132472515, -0.0077032228000462055, -0.03214103356003761, -0.056844472885131836, 0.07473011314868927, -0.03226499259471893, -0.007065714802592993, -0.025128444656729698, 0.006963890511542559, 0.05326734483242035, 0.031751446425914764, -0.01475122943520546, 0.010828783735632896, 0.0494777113199234, 0.01506112888455391, -0.05854449421167374, -0.03764839470386505, -0.07657180726528168, 0.022348200902342796, 0.07012589275836945, -0.004440420772880316, 0.005286004859954119, 0.002225744305178523, 0.02206486277282238, 0.019337745383381844, -0.056242380291223526, -0.030441012233495712, 0.03472648188471794, -0.052346497774124146, -0.042465124279260635, -0.026846174150705338, 0.02534094639122486, -0.048096444457769394, 0.028068065643310547, 0.03290250152349472, 0.017097612842917442, 0.005308140534907579, -0.06661959737539291, 0.019054409116506577, -0.008947249501943588, 0.044058892875909805, -0.011944422498345375, -0.019656499847769737, 0.04462556540966034, 0.010129295289516449, -0.048096444457769394, 0.007889162749052048, -0.05592362582683563, 0.021303394809365273, 0.025323238223791122, -0.049690213054418564, 0.07203841209411621, 0.0380379818379879, -0.03047642856836319, 0.06576958298683167, -0.020081505179405212 ]
17,201
imodels.rule_set.skope_rules
_rules_vote
Score representing a vote of the base classifiers (rules). The score of an input sample is computed as the sum of the binary rules outputs: a score of k means than k rules have voted positively. Parameters ---------- X : array-like, shape (n_samples, n_features) The training input samples. Returns ------- scores : array, shape (n_samples,) The score of the input samples. The higher, the more abnormal. Positive scores represent outliers, null scores represent inliers.
def _rules_vote(self, X) -> np.ndarray: """Score representing a vote of the base classifiers (rules). The score of an input sample is computed as the sum of the binary rules outputs: a score of k means than k rules have voted positively. Parameters ---------- X : array-like, shape (n_samples, n_features) The training input samples. Returns ------- scores : array, shape (n_samples,) The score of the input samples. The higher, the more abnormal. Positive scores represent outliers, null scores represent inliers. """ # Check if fit had been called check_is_fitted(self, ['rules_', 'estimators_samples_', 'max_samples_']) # Input validation 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 = pandas.DataFrame(X, columns=self.feature_placeholders) selected_rules = self.rules_without_feature_names_ scores = np.zeros(X.shape[0]) for (r, _) in selected_rules: scores[list(df.query(r).index)] += 1 return scores
(self, X) -> numpy.ndarray
[ -0.02610950730741024, -0.04168039932847023, -0.01464101579040289, -0.013683788478374481, 0.007940426468849182, -0.009900462813675404, -0.021660679951310158, -0.0016819846350699663, 0.03183463588356972, 0.024286217987537384, -0.030576566234230995, 0.021460119634866714, 0.03912779688835144, 0.00208652694709599, -0.047296132892370224, -0.014686597511172295, 0.038726672530174255, -0.0016876824665814638, -0.016136113554239273, 0.012635396793484688, 0.0004985557752661407, 0.00995516125112772, -0.03307447209954262, 0.03478836640715599, 0.00510976929217577, 0.019782692193984985, 0.04988520219922066, -0.035171255469322205, -0.04397774487733841, 0.01176933478564024, -0.09094568341970444, 0.04062289372086525, -0.015279167331755161, 0.017485346645116806, -0.0274405088275671, -0.0992598831653595, 0.016336675733327866, 0.004790693521499634, 0.016364024952054024, 0.023502202704548836, -0.0288444422185421, -0.04459766298532486, -0.04098755121231079, -0.017193621024489403, -0.05134383589029312, -0.004373616073280573, -0.02213473618030548, 0.08233975619077682, 0.010948854498565197, -0.08904946595430374, -0.042628511786460876, -0.04981227219104767, 0.045801036059856415, 0.026419466361403465, -0.014631899073719978, 0.04547284170985222, 0.0012922565219923854, 0.00931245181709528, 0.025179630145430565, -0.027750467881560326, 0.03670281916856766, 0.032436322420835495, 0.032618653029203415, -0.004480734467506409, 0.031634073704481125, -0.05079684779047966, -0.05440696328878403, 0.0054744272492825985, -0.0046904124319553375, 0.019144540652632713, -0.015352098271250725, -0.027057617902755737, 0.07898490875959396, -0.021624214947223663, 0.005551917012780905, 0.04390481486916542, -0.017394183203577995, -0.017284786328673363, 0.011395560577511787, 0.00551089271903038, 0.05294832959771156, 0.007680607493966818, 0.08912239968776703, -0.045254047960042953, -0.0009600759367458522, -0.040768757462501526, 0.040039438754320145, 0.015762338414788246, 0.028078660368919373, -0.00013923950609751046, 0.027148783206939697, 0.0012637675972655416, 0.03196226805448532, -0.025416657328605652, -0.012261622585356236, 0.05127090588212013, -0.037049245089292526, -0.008710766211152077, -0.027896331623196602, -0.046493884176015854, -0.010383634828031063, 0.10983496904373169, -0.014230775646865368, 0.06516437232494354, -0.010073674842715263, 0.01570763997733593, -0.021460119634866714, -0.014777762815356255, -0.031725239008665085, -0.0034710876643657684, -0.0552092082798481, 0.042701441794633865, -0.010155723430216312, 0.03637462854385376, -0.031378813087940216, -0.05068745091557503, -0.016218161210417747, 0.0293002650141716, -0.08007887750864029, 0.006413421127945185, 0.02647416479885578, 0.021204859018325806, 0.014531617984175682, 0.017239203676581383, -0.028188057243824005, -0.005592940840870142, 0.024632642045617104, 0.05648551136255264, -0.007206552196294069, -0.031269416213035583, 0.0072931586764752865, -0.036429326981306076, 0.011641704477369785, 0.006910267751663923, 0.016181696206331253, -0.0527295358479023, 0.09729073196649551, -0.01464101579040289, 0.03865373879671097, -0.054297566413879395, 0.10983496904373169, 0.01876164972782135, 0.00950845517218113, -0.05874639004468918, 0.03467896953225136, 0.004302963614463806, 0.026492398232221603, 0.07140002399682999, 0.00281014502979815, -0.04543637856841087, 0.0016797055723145604, -0.003904118901118636, 0.017968518659472466, -0.021350720897316933, 0.05458929017186165, 0.017895586788654327, 0.006741613149642944, -0.10713649541139603, 0.010383634828031063, -0.0623200386762619, -0.010028093121945858, -0.02025674842298031, -0.08073526620864868, -0.0008495390065945685, 0.018925746902823448, 0.040841687470674515, -0.023575134575366974, 0.0033548527862876654, -0.04926528409123421, 0.0004398686287458986, 0.0029879158828407526, -0.03431431204080582, -0.03963831812143326, 0.039346590638160706, 0.021569516509771347, 0.0415710024535656, -0.01300917100161314, 0.014294590801000595, 0.025380192324519157, 0.04113341495394707, 0.035189490765333176, -0.01508772186934948, -0.005232841242104769, -0.08131871372461319, -0.003250013804063201, 0.016655750572681427, 0.05236487835645676, 0.02408565580844879, -0.055537402629852295, 0.06162719056010246, -0.050760384649038315, -0.06782637536525726, 0.004726878367364407, 0.015634708106517792, -0.018816348165273666, 0.005570149980485439, -0.06556549668312073, 0.054917484521865845, 0.016081415116786957, -0.044998787343502045, 0.02018381655216217, 0.02656533010303974, 0.02875327691435814, 0.008947793394327164, -0.018287595361471176, 0.026054808869957924, -0.043503690510988235, -0.007019665092229843, -0.022080037742853165, -0.09510278701782227, 0.006276674568653107, 0.0006763265118934214, -0.02813335880637169, 0.0424826480448246, 0.0115505401045084, -0.009544921107590199, 0.08255855739116669, -0.027659304440021515, -0.04383188113570213, -0.01283595897257328, 0.04481646046042442, -0.02964668907225132, -0.04193565994501114, 0.0238850936293602, 0.042008593678474426, -0.013875233940780163, 0.047478463500738144, 0.011587005108594894, -0.007092596497386694, 0.0010398448212072253, 0.020840199664235115, -0.07056130468845367, 0.04080522060394287, -0.02370276488363743, -0.006294907536357641, 0.0728951171040535, -0.0066777984611690044, 0.030430704355239868, -0.052437808364629745, 0.05469868704676628, -0.017986752092838287, -0.04718673601746559, 0.02831568755209446, -0.0046767378225922585, -0.049958135932683945, 0.02583601325750351, 0.05422463268041611, -0.0025617219507694244, -0.00011153404193464667, -0.008947793394327164, 0.0019634549971669912, -0.05152616277337074, -0.00475878594443202, -0.01844257488846779, -0.011395560577511787, -0.047916051000356674, -0.014859810471534729, 0.0415710024535656, 0.0446341298520565, -0.036848682910203934, -0.004277893342077732, 0.07318684458732605, -0.0072931586764752865, -0.0020648755598813295, -0.08161044120788574, 0.03170700743794441, 0.024231519550085068, 0.0415710024535656, 0.028826208785176277, -0.015507077798247337, 0.006217417772859335, -0.004184449557214975, -0.016354907304048538, 0.0006934198318049312, -0.01903514377772808, 0.024304451420903206, -0.008095405995845795, 0.014677481725811958, 0.01992855593562126, -0.015452379360795021, 0.025289027020335197, -0.0274405088275671, 0.004166216589510441, 0.03161584213376045, -0.004104680847376585, -0.029318496584892273, 0.003979329485446215, -0.015817036852240562, -0.013519692234694958, -0.01145937480032444, -0.0200014878064394, -0.023793930187821388, 0.06866508722305298, 0.025690151378512383, 0.0313241146504879, 0.02981078438460827, -0.037140410393476486, -0.040039438754320145, 0.022098269313573837, 0.03573647513985634, -0.0146501325070858, 0.02656533010303974, 0.044998787343502045, -0.03989357501268387, -0.003368527628481388, -0.02654709666967392, 0.008505646139383316, -0.04193565994501114, 0.047660790383815765, -0.03263688459992409, 0.06593015044927597, 0.03662988916039467, 0.026765892282128334, -0.03484306484460831, -0.04080522060394287, -0.017695026472210884, 0.010684477165341377, -0.04448826611042023, 0.06946733593940735, 0.0387631356716156, -0.0046904124319553375, 0.017667677253484726, 0.006422537844628096, 0.021040761843323708, -0.013510576449334621, -0.016591936349868774, 0.04521758109331131, -0.047660790383815765, -0.035900574177503586, -0.051453232765197754, 0.002564001129940152, -0.042263854295015335, 0.04795251786708832, -0.0243409164249897, -0.05192728713154793, 0.007808237802237272, 0.014349289238452911, 0.050213396549224854, -0.011386443860828876, 0.05090624466538429, -0.03436901047825813, 0.030047813430428505, 0.010082791559398174, 0.018342293798923492, 0.02771400287747383, -0.013857001438736916, -0.051453232765197754, 0.029446126893162727, 0.007388881407678127, 0.003972492180764675, -0.020311446860432625, -0.06414332985877991, 0.06742525100708008, 0.022353529930114746, 0.03436901047825813, -0.07409849017858505, 0.028096893802285194, -0.0115505401045084, 0.029701387509703636, -0.06913914531469345, 0.012252505868673325, -0.058454666286706924, -0.0000075362045208748896, 0.0527295358479023, 0.006559284403920174, 0.013902583159506321, 0.0040704938583076, -0.03307447209954262, -0.001190836075693369, -0.01132262870669365, -0.032965075224637985, -0.05072391778230667, -0.0527295358479023, 0.015315632335841656, 0.050213396549224854, 0.036939848214387894, 0.005948482546955347, -0.013738486915826797, 0.052620138972997665, 0.009326126426458359, 0.02459617704153061, 0.029008537530899048, -0.007037898059934378, 0.02204357087612152, -0.002326973481103778, -0.02496083453297615, -0.058272335678339005, -0.0015737268840894103, 0.0769428238272667, -0.009444640018045902, 0.03451487421989441, 0.035444751381874084, -0.03123295120894909, -0.05232841148972511, -0.09590503573417664, 0.01703864149749279, -0.001552075264044106, -0.008542112074792385, -0.010556846857070923, -0.03196226805448532, -0.042883772403001785, 0.01756739616394043, 0.030831826850771904, -0.026583563536405563, -0.03923719376325607, 0.03945598751306534, -0.019764458760619164, 0.032527487725019455, -0.05010399967432022, 0.03938305750489235, -0.05542800575494766, 0.06304935365915298, 0.0819021686911583, 0.012088410556316376, -0.032181061804294586, 0.018114382401108742, 0.030758894979953766, 0.030303074046969414, 0.011614355258643627, 0.00144381751306355, 0.050833314657211304, -0.014449570327997208, -0.0023383689112961292, 0.018889280036091805, 0.0008096545352600515, 0.009599619545042515, -0.00719287758693099, -0.05407876893877983, -0.015507077798247337, 0.004777018912136555, -0.06122606620192528, -0.0490100234746933, -0.04503525421023369, -0.03404081612825394, -0.03901839628815651, -0.04317549988627434, -0.05922044813632965, 0.041461605578660965, -0.032363392412662506, 0.03971124812960625, 0.010410984046757221, 0.02654709666967392, 0.07078010588884354, 0.05006753280758858, -0.010812107473611832, -0.04266497865319252, -0.007680607493966818, -0.042883772403001785, -0.1091785803437233, -0.04219092056155205, -0.003079080255702138, -0.0037833258975297213, 0.07296805083751678, 0.06647714227437973, -0.02530726045370102, 0.05280246585607529, -0.059147514402866364, -0.03963831812143326, 0.010046325623989105, -0.017585627734661102, 0.053932905197143555, 0.01043833326548338, -0.04543637856841087, 0.02610950730741024, -0.0725669264793396, -0.03444194048643112, -0.0009281683596782386, 0.014522502198815346, 0.017166271805763245, 0.0216971468180418, 0.0586005300283432, -0.02220766805112362, 0.01919923909008503, -0.005524567328393459, -0.04817131161689758, 0.07114475965499878, 0.014075796119868755, -0.03528065234422684, -0.004863624926656485, 0.029847251251339912, -0.0072931586764752865, -0.012270739302039146, -0.0018358246888965368, -0.026656493544578552, 0.0025708384346216917, -0.02220766805112362, -0.07154588401317596, -0.0017321251798421144, -0.018725184723734856, -0.028826208785176277, 0.01791382022202015, 0.001805056701414287, 0.04273790866136551, 0.02966492250561714, -0.03382202237844467, -0.016637517139315605, 0.05484455078840256, 0.04736906290054321, 0.00008304514631163329, 0.0018905234755948186, -0.003197594080120325, 0.017695026472210884, -0.06964966654777527, -0.013975515030324459, 0.04802544787526131, 0.0185975544154644, -0.005656755995005369, 0.015516194514930248, -0.030503636226058006, 0.018269361928105354, -0.05232841148972511, -0.060861408710479736, 0.07194700837135315, -0.007516511250287294, 0.032782748341560364, 0.019399801269173622, 0.01947273313999176, 0.048463039100170135, 0.00084327143849805, 0.01620904542505741, 0.034478407353162766, -0.0452905148267746, 0.009481105953454971, -0.020147349685430527, 0.04240971803665161, 0.07406202703714371, 0.010912388563156128, -0.014185192994773388, 0.03708571195602417, 0.021533049643039703, 0.04397774487733841, -0.025872480124235153, -0.007443579845130444, 0.040404096245765686, -0.03422314673662186, 0.07592178136110306, 0.01930863782763481, -0.04875476285815239, 0.018907513469457626, 0.03781502693891525, -0.0014130494091659784, 0.010456565767526627, 0.009663434699177742, -0.0013458156026899815, 0.022335298359394073, 0.03745036944746971, -0.03157937526702881, 0.002862564753741026, 0.00041451348806731403, -0.021733611822128296, 0.016938360407948494, 0.024669108912348747, -0.006627657916396856, 0.022608790546655655, 0.07665109634399414, 0.013528808951377869, 0.006331373006105423, 0.010784758254885674, 0.043686021119356155, 0.01309121958911419, -0.0255807526409626, -0.09845764189958572, 0.04135220870375633, -0.05663137510418892, -0.0490100234746933, 0.010292469523847103, -0.0371951088309288, 0.01102178543806076, -0.07745334506034851, 0.011669053696095943, 0.009909579530358315, 0.00904807448387146, -0.014732180163264275, -0.01530651655048132, -0.031269416213035583, -0.008578578010201454, 0.014759529381990433, -0.01754004694521427, -0.0354994498193264, 0.02636476792395115, -0.050760384649038315, -0.014805112034082413, 0.0013070707209408283, -0.05922044813632965, 0.0193815678358078, 0.040404096245765686, -0.007753538899123669, 0.05068745091557503, -0.009344358928501606, 0.023939792066812515, -0.062429435551166534, 0.009148355573415756, -0.024030957370996475, -0.03351206332445145, 0.0074663711711764336, -0.0007657816167920828, -0.03985711187124252, -0.030303074046969414, 0.03850787505507469, -0.005456194281578064, -0.011422909796237946, -0.0020443634130060673, -0.022371763363480568, -0.028826208785176277, 0.036684587597846985, -0.01910807564854622, -0.04663974791765213, 0.03026660718023777, -0.0048590670339763165, -0.007151853758841753, 0.006992315873503685, 0.0176859088242054, 0.05539153888821602, 0.01963682845234871, 0.025617219507694244, 0.008770023472607136, -0.0071336207911372185, 0.05006753280758858, 0.0045536658726632595, -0.003680765861645341, -0.006577517371624708, -0.011340861208736897, 0.024049190804362297, 0.006326815113425255, -0.029865484684705734, -0.04886416345834732, -0.01864313706755638, -0.02886267378926277, -0.042701441794633865, -0.004241427406668663, 0.02009265124797821, -0.013072986155748367, 0.03035777248442173, -0.03152467682957649, 0.031032389029860497, -0.0045058042742311954, 0.028388619422912598, 0.005337680224329233, -0.0013207454467192292, -0.03442370891571045, -0.04219092056155205, 0.005159909836947918, 0.0452905148267746, 0.016482537612318993, 0.006609424948692322, -0.061554256826639175, -0.04926528409123421, 0.035535912960767746, 0.0654560998082161, 0.04503525421023369, 0.018816348165273666, -0.020220281556248665, -0.03451487421989441, 0.03070419654250145, 0.030777128413319588, 0.05247427523136139, 0.044196538627147675, 0.05619378760457039, 0.028096893802285194, -0.07088950276374817, -0.0800059512257576, 0.027312878519296646, -0.008756347931921482, 0.010976203717291355, -0.0322357602417469, 0.04981227219104767, 0.023046379908919334, -0.01128616277128458, -0.053240057080984116, 0.039419520646333694, -0.009061749093234539, 0.049702875316143036, -0.05480808764696121, 0.041388675570487976, 0.021843010559678078, -0.04875476285815239, -0.02824275568127632, -0.030303074046969414, -0.04386834800243378, -0.03433254361152649, 0.006358722690492868, 0.04244618117809296, 0.0022266923915594816, -0.026510631665587425, 0.05929337814450264, -0.0017195900436490774, 0.01367467176169157, 0.03861727565526962, -0.029610224068164825, -0.05772534757852554, -0.05061452090740204, 0.012918006628751755, 0.055974990129470825, -0.019582130014896393, 0.007676049135625362, -0.00033787835855036974, -0.04813484475016594, 0.05601145699620247, 0.018515506759285927, -0.037031013518571854, 0.010784758254885674, -0.014403987675905228, -0.02955552563071251, 0.008592252619564533, -0.015288283117115498, 0.025380192324519157, -0.049775805324316025, -0.017767956480383873, 0.0462021604180336, -0.019326869398355484, -0.016455188393592834, 0.018314944580197334, -0.00907086580991745, -0.023866860195994377, -0.008177453652024269, 0.05608438700437546, 0.007580326404422522, -0.0193815678358078, -0.003546298248693347, 0.002447766251862049, 0.04106048122048378, -0.014978324063122272, 0.04601982980966568, -0.004818042740225792, -0.03644755855202675, 0.003491599578410387, 0.08656979352235794, -0.037669163197278976, 0.04558224231004715, -0.061809517443180084, 0.03097769059240818, -0.00018204406660515815, -0.023301640525460243, -0.047296132892370224, -0.020749036222696304, 0.022244133055210114, 0.025872480124235153, -0.09809298068284988, 0.07260338962078094, 0.04416007548570633, 0.013401178643107414, -0.026310069486498833, 0.013464993797242641, -0.051125042140483856, 0.05280246585607529, 0.021642448380589485, 0.005260190460830927, 0.032181061804294586, 0.03861727565526962, -0.04160746932029724, -0.004273334983736277, 0.025179630145430565, 0.019509198144078255, -0.004141146317124367, 0.04219092056155205, 0.04244618117809296, 0.01761297695338726, -0.07169175148010254, -0.002780516631901264, -0.0424826480448246, -0.004280172288417816, -0.04565517231822014, -0.00973636656999588, 0.04284730553627014, -0.034569572657346725, 0.00763046694919467, 0.03952891752123833, 0.02981078438460827 ]
17,202
imodels.rule_set.fpskope
_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, oob=False)
(self, X, y, rules) -> List[imodels.util.rule.Rule]
[ -0.01673058792948723, 0.00648832879960537, -0.02044186182320118, -0.017779983580112457, -0.01747284270823002, -0.018530769273638725, -0.009350701235234737, -0.005413339473307133, 0.05163361504673958, 0.004169849678874016, 0.00854872539639473, 0.006859456188976765, 0.04443289339542389, 0.013079036958515644, 0.012336783111095428, 0.015152230858802795, -0.022796599194407463, -0.028461623936891556, -0.006185454782098532, -0.016304004937410355, 0.00022089005506131798, 0.018257755786180496, 0.00193882011808455, 0.005426136776804924, 0.0019153580069541931, 0.01091199554502964, 0.04163450747728348, -0.02503189630806446, -0.049586016684770584, 0.01675618439912796, -0.0382559709250927, 0.055728815495967865, -0.02510014921426773, -0.006931975018233061, -0.019400998950004578, -0.05050743743777275, -0.016670867800712585, 0.05074632540345192, 0.05886846408247948, -0.013522683642804623, -0.007260444108396769, -0.006684557069092989, -0.011116755194962025, 0.02085138112306595, -0.049551889300346375, 0.023393817245960236, -0.04183926805853844, 0.05340820178389549, 0.02233589068055153, -0.0885927751660347, -0.04777730628848076, -0.03131119906902313, 0.021806927397847176, 0.04306782782077789, 0.028256863355636597, 0.004965427331626415, -0.02868344634771347, -0.02168748341500759, 0.012242934666574001, -0.05142885819077492, 0.05426136776804924, 0.00009871399379335344, -0.010835210792720318, -0.025356099009513855, 0.05467088893055916, -0.04712890088558197, -0.022745409980416298, -0.009768752381205559, 0.028393371030688286, 0.023427942767739296, -0.03040684200823307, -0.004035476129502058, 0.052247896790504456, -0.052930429577827454, 0.020970825105905533, 0.013932203873991966, 0.018223630264401436, 0.009777284227311611, 0.010869337245821953, -0.00727324141189456, 0.007452406454831362, 0.07971984893083572, 0.025936251506209373, -0.018428388983011246, -0.03199373185634613, -0.05078044906258583, 0.063782699406147, -0.0035705005284398794, -0.0020380006171762943, 0.026942986994981766, -0.011816351674497128, -0.02264302968978882, 0.0003372672654222697, -0.04395512118935585, -0.017344867810606956, 0.02347913384437561, -0.0613597109913826, 0.006321961525827646, -0.0019622822292149067, -0.03453616797924042, 0.018803782761096954, 0.04709477350115776, -0.039313897490501404, 0.03760756552219391, 0.01817243918776512, -0.004922768566757441, -0.014171089977025986, -0.009640777483582497, -0.013915140181779861, 0.08934356272220612, -0.04456939920783043, 0.014017520472407341, 0.006812531966716051, 0.02313786745071411, -0.010843741707503796, -0.028137419372797012, -0.07016438245773315, -0.018121249973773956, -0.011526274494826794, 0.018428388983011246, -0.02847868762910366, -0.005741808097809553, -0.008429281413555145, -0.0020806589163839817, -0.03856310993432999, 0.006070277187973261, 0.014674457721412182, 0.03634487837553024, 0.05559230595827103, -0.05668435990810394, -0.015194889158010483, -0.004513249266892672, -0.0018716332269832492, -0.014776838012039661, -0.00037859249277971685, -0.049756649881601334, 0.09807997941970825, 0.014247874729335308, 0.05006379261612892, -0.04869872331619263, 0.09234670549631119, 0.034246090799570084, 0.020117659121751785, -0.02233589068055153, 0.009043561294674873, 0.0015442307339981198, -0.00227155489847064, 0.09043561667203903, -0.03489449620246887, 0.03264213725924492, -0.021039078012108803, 0.025390224531292915, 0.07139294594526291, -0.011022906750440598, 0.062076371163129807, 0.004939832258969545, 0.011696908622980118, -0.04787968471646309, 0.026260454207658768, -0.019520441070199013, -0.0014674458652734756, 0.003574766218662262, -0.06869693845510483, -0.033392924815416336, 0.06323667615652084, 0.04794793948531151, -0.03293221443891525, -0.005852719768881798, 0.007123937364667654, -0.005357883404940367, -0.015135168097913265, -0.08504360169172287, -0.02492951601743698, 0.029348915442824364, -0.010365968570113182, -0.029809625819325447, -0.03399014100432396, 0.0365496389567852, -0.029246537014842033, 0.08449757844209671, 0.03675439953804016, -0.010135614313185215, -0.012362377718091011, -0.08988958597183228, -0.00729883648455143, 0.052213769406080246, 0.00873215589672327, 0.024707691743969917, -0.07071041315793991, 0.01527167484164238, -0.04460352659225464, -0.042385295033454895, 0.024178728461265564, 0.012285592965781689, -0.023359689861536026, -0.024793008342385292, -0.022933106869459152, 0.07924207299947739, 0.027079494670033455, -0.02347913384437561, -0.012225870974361897, 0.029963195323944092, 0.014768306165933609, -0.03482624143362045, -0.028495749458670616, 0.027949724346399307, -0.07036914676427841, 0.011440957896411419, -0.03719804435968399, -0.03081636130809784, -0.0063603539019823074, 0.04023531824350357, -0.055694688111543655, -0.0013735975371673703, 0.030219145119190216, 0.01841132529079914, 0.06900408118963242, -0.01039156410843134, -0.05849307402968407, -0.01580916903913021, 0.01199551671743393, -0.01211495976895094, -0.04071309044957161, -0.006044682115316391, 0.025833871215581894, 0.04279481619596481, 0.03675439953804016, -0.0023803336080163717, 0.03375125303864479, -0.011338578537106514, -0.001820443314500153, -0.032147299498319626, 0.012780428864061832, -0.009606651030480862, 0.0036579498555511236, -0.004167716950178146, 0.010451285168528557, 0.06139383837580681, -0.049039989709854126, 0.059482745826244354, -0.009000902995467186, 0.013309392146766186, 0.02182399109005928, -0.007315899711102247, 0.014085773378610611, 0.0482550784945488, 0.04364798218011856, -0.0038349819369614124, 0.0033380126114934683, 0.029741372913122177, 0.03264213725924492, -0.0013853285927325487, 0.02395690605044365, -0.012225870974361897, -0.025850934907794, -0.025970378890633583, -0.05777641385793686, -0.016611145809292793, 0.035696472972631454, -0.012695112265646458, 0.035662345588207245, 0.12360671162605286, -0.002939157420769334, -0.04166863486170769, -0.02922947332262993, 0.02027122862637043, -0.03264213725924492, 0.019810518249869347, 0.010638982057571411, 0.03419490158557892, 0.06132558360695839, -0.04064483568072319, -0.014836560003459454, 0.014017520472407341, -0.03023620881140232, 0.0465487465262413, -0.018189502879977226, 0.01905973255634308, 0.07193896919488907, -0.0091374097391963, 0.04989315941929817, -0.03219849243760109, -0.006232379004359245, -0.042453549802303314, 0.059380363672971725, -0.02155097760260105, 0.008702294901013374, 0.05818593129515648, -0.017933553084731102, -0.018087122589349747, -0.008599914610385895, -0.04323846101760864, 0.039279770106077194, -0.0018854972440749407, 0.051019337028265, -0.006095872260630131, 0.03236912563443184, -0.05876608565449715, 0.01658555120229721, 0.01722542569041252, -0.030116766691207886, 0.02702830359339714, 0.06494300812482834, -0.011713971383869648, -0.013044910505414009, -0.03982579708099365, 0.028086230158805847, -0.052350275218486786, 0.04132736846804619, -0.006390214432030916, 0.03457029163837433, 0.017779983580112457, 0.0058399224653840065, -0.0282739270478487, -0.04156625643372536, -0.009734625928103924, -0.012968125753104687, -0.010314779356122017, 0.06565967202186584, -0.010212399065494537, -0.010519539006054401, -0.05641134828329086, 0.02081725373864174, 0.049108244478702545, 0.013881013728678226, 0.01868433877825737, -0.026533467695116997, -0.018769655376672745, -0.021226774901151657, -0.05794704705476761, 0.027284253388643265, -0.05177012458443642, 0.009436017833650112, -0.0013298727571964264, -0.014000456780195236, -0.010570729151368141, 0.02237001620233059, 0.06299778819084167, 0.003143917303532362, 0.0013714645756408572, -0.05985813960433006, 0.013573873788118362, -0.02081725373864174, -0.00772968539968133, -0.004632692318409681, 0.020220037549734116, -0.07815001904964447, 0.04760667309165001, 0.030082639306783676, 0.007623039651662111, 0.018735529854893684, -0.0885927751660347, 0.03610599413514137, 0.024417616426944733, 0.021039078012108803, -0.024468805640935898, -0.02081725373864174, -0.006910645868629217, 0.039416275918483734, -0.056308966130018234, 0.03651551157236099, -0.052828047424554825, -0.01982758194208145, 0.06026765704154968, -0.004918503109365702, 0.052179642021656036, 0.00684239249676466, -0.01006736047565937, 0.017899425700306892, -0.016781779006123543, -0.03262507542967796, 0.009828474372625351, -0.02771083638072014, 0.0022758208215236664, 0.0055327825248241425, 0.0325738862156868, 0.05112171545624733, 0.012021111324429512, 0.06845805048942566, 0.042555928230285645, -0.0048587811179459095, -0.007068481761962175, -0.03685677796602249, -0.0017532564233988523, -0.025799745693802834, 0.0255096685141325, -0.045866213738918304, -0.0025061755441129208, 0.059619251638650894, -0.02078312821686268, 0.07746748626232147, 0.00923979002982378, -0.01851370558142662, -0.06330493092536926, -0.06217874959111214, 0.03180603310465813, -0.0027599926106631756, 0.01817243918776512, 0.00761024234816432, -0.049039989709854126, -0.052589163184165955, 0.017711728811264038, -0.014537951909005642, 0.0027727901469916105, -0.04398924857378006, 0.05702562630176544, -0.006565113551914692, 0.07944683730602264, -0.04764080047607422, 0.07132469117641449, -0.021243836730718613, -0.01334351859986782, 0.025458479300141335, -0.03764169290661812, -0.04040595144033432, 0.013258202001452446, 0.020390670746564865, 0.03088461607694626, 0.04869872331619263, -0.00588684668764472, 0.015416712500154972, -0.02709655836224556, 0.029451295733451843, 0.004385273903608322, -0.0019889436662197113, -0.011816351674497128, -0.023530323058366776, -0.019554568454623222, -0.04013293609023094, 0.005856985691934824, -0.03996230289340019, -0.051019337028265, -0.05409073457121849, -0.0375734381377697, -0.017831172794103622, -0.05009791627526283, -0.017208361998200417, 0.025526732206344604, -0.023496195673942566, -0.012089364230632782, 0.00624091038480401, 0.0199982151389122, 0.05750339850783348, 0.033631809055805206, 0.0037581969518214464, -0.004841717891395092, -0.02771083638072014, -0.04740191251039505, -0.10545133799314499, 0.015493497252464294, -0.03975754231214523, 0.005571174900978804, 0.05078044906258583, 0.06525015085935593, 0.002205434488132596, 0.046070974320173264, -0.03811946511268616, -0.07050564885139465, 0.032590948045253754, 0.005400541704148054, 0.08736421912908554, 0.007878989912569523, -0.024281108751893044, 0.012618327513337135, -0.09760221093893051, 0.007678495720028877, -0.02754020318388939, 0.03381950780749321, 0.01074136234819889, -0.014768306165933609, 0.017012134194374084, -0.016611145809292793, -0.0017191298538818955, -0.029604865238070488, -0.04497892037034035, 0.09002609550952911, 0.05490977317094803, -0.017677603289484978, 0.0013053442817181349, 0.010954653844237328, 0.001812978065572679, -0.03962103649973869, -0.05105346441268921, -0.015885954722762108, 0.015450838953256607, -0.018189502879977226, -0.027591394260525703, -0.026738228276371956, -0.034382596611976624, -0.021192647516727448, 0.01028918381780386, -0.005801530089229345, 0.030969932675361633, 0.006757075898349285, -0.05815180763602257, 0.0047350721433758736, 0.0672294944524765, -0.0003729935851879418, -0.03668614476919174, 0.0026320177130401134, 0.0182748194783926, -0.013753038831055164, -0.045627325773239136, 0.02699417807161808, 0.021346217021346092, 0.004161317832767963, -0.02743782475590706, -0.014222280122339725, -0.04736778512597084, 0.01091199554502964, -0.029417170211672783, -0.016901221126317978, 0.025526732206344604, 0.008049623109400272, -0.05071219801902771, 0.002710935426875949, 0.03074810840189457, -0.004602831322699785, -0.028768762946128845, 0.007392684929072857, 0.012353845871984959, -0.016056587919592857, 0.0014343856601044536, -0.034348469227552414, 0.05835656449198723, 0.052486781030893326, -0.042624182999134064, 0.03050922229886055, 0.04842571169137955, -0.03989405184984207, 0.05862957984209061, 0.002408061409369111, 0.014956003054976463, -0.008164800703525543, -0.032420314848423004, 0.04750429093837738, 0.0125842010602355, -0.063782699406147, 0.004044007509946823, 0.021346217021346092, 0.026072757318615913, 0.03777819871902466, 0.021141458302736282, 0.007516393903642893, -0.005669289268553257, 0.01847958005964756, 0.008932650089263916, -0.02271128259599209, -0.024178728461265564, -0.009649309329688549, 0.036140117794275284, 0.0025189730804413557, 0.008924118243157864, -0.03009970299899578, 0.08395154774188995, 0.027352508157491684, 0.030731044709682465, 0.0375734381377697, 0.013181417249143124, -0.027523141354322433, -0.016867095604538918, -0.05996051803231239, 0.030969932675361633, -0.030458033084869385, -0.04436464235186577, 0.0005465595750138164, -0.0306798554956913, 0.06047241762280464, -0.06446523219347, -0.03764169290661812, 0.02182399109005928, 0.021363280713558197, -0.0017169968923553824, -0.04119086265563965, -0.019110921770334244, 0.0008174398099072278, 0.03131119906902313, -0.05518278852105141, -0.0329151526093483, 0.0009726094431243837, -0.006398746278136969, 0.013155822642147541, -0.013480025343596935, -0.0799928605556488, -0.002849574899300933, -0.013300860300660133, -0.0007017291500233114, 0.03158421069383621, -0.004376742523163557, -0.025424351915717125, -0.006978899240493774, 0.06801440566778183, -0.021875180304050446, -0.05357883498072624, -0.049176499247550964, 0.0033294809982180595, -0.019537504762411118, 0.0030394045170396566, -0.052725668996572495, 0.038972631096839905, 0.04279481619596481, 0.049005866050720215, 0.05316931754350662, -0.017285145819187164, 0.039109136909246445, -0.011440957896411419, -0.06026765704154968, -0.012055237777531147, -0.018735529854893684, 0.048630472272634506, -0.035594090819358826, 0.028000913560390472, 0.05774228647351265, -0.015519092790782452, 0.06016527861356735, -0.005234174430370331, -0.0027194672729820013, 0.05040505900979042, -0.05091695860028267, -0.03013382852077484, -0.0051701869815588, 0.024844199419021606, 0.0186160858720541, 0.06091606616973877, 0.008288509212434292, 0.027113620191812515, -0.049005866050720215, -0.09937679767608643, -0.00505074393004179, -0.02892233245074749, -0.03777819871902466, 0.005370681174099445, 0.02057836763560772, 0.00937629584223032, 0.00770409032702446, 0.007277507334947586, 0.045968592166900635, 0.016747651621699333, 0.014350255019962788, -0.08374679088592529, -0.06641045212745667, -0.007482267450541258, 0.026328707113862038, -0.003461721818894148, -0.04279481619596481, -0.045490819960832596, -0.055933572351932526, 0.023871589452028275, 0.0879102423787117, 0.019400998950004578, -0.010775488801300526, -0.029110029339790344, -0.0346556082367897, 0.049620144069194794, 0.04996141046285629, 0.09562286734580994, 0.04736778512597084, 0.038631364703178406, 0.013701848685741425, -0.0823817253112793, -0.06347556412220001, -0.015177826397120953, 0.015484966337680817, 0.016943879425525665, -0.07125643640756607, 0.01854783296585083, 0.03658376634120941, 0.020731937140226364, -0.035150445997714996, 0.00456870486959815, 0.012157618068158627, 0.013386176899075508, -0.012908403761684895, 0.04764080047607422, -0.0016882026102393866, -0.01504985149949789, -0.056308966130018234, 0.002661878475919366, -0.010656045749783516, -0.01730220951139927, 0.010946121998131275, 0.018326008692383766, -0.04091785103082657, -0.022677157074213028, 0.0506780706346035, 0.06661521643400192, 0.04634398594498634, 0.06166685000061989, -0.055489927530288696, 0.0007603843696415424, -0.024656502529978752, 0.014810964465141296, 0.04992728307843208, -0.02503189630806446, -0.004208242055028677, 0.03243737667798996, -0.052759796380996704, 0.009009434841573238, 0.07282626628875732, 0.015229016542434692, -0.07152944803237915, 0.0028815686237066984, -0.025663238018751144, 0.007435343228280544, -0.0005113664665259421, 0.01564706675708294, -0.02658465877175331, 0.0007059950148686767, -0.010127082467079163, -0.018121249973773956, -0.02402515895664692, -0.035218700766563416, 0.00334867718629539, -0.03216436505317688, -0.03798295930027962, -0.04781143367290497, 0.0971926897764206, -0.014290533028542995, -0.045490819960832596, 0.008855864405632019, 0.05443200096487999, 0.02537316270172596, 0.046173352748155594, -0.03774407133460045, 0.0022736878599971533, 0.0161163080483675, 0.05064394325017929, -0.05811768025159836, 0.008373825810849667, -0.09555461257696152, 0.052691541612148285, 0.0043639447540044785, -0.012430631555616856, -0.006714417599141598, -0.019486315548419952, -0.0007310567889362574, -0.0023014156613498926, -0.12469876557588577, 0.03098699450492859, 0.02061249502003193, -0.002256624633446336, -0.016781779006123543, -0.006718683522194624, -0.002228896599262953, -0.066888228058815, 0.034877434372901917, 0.005566909443587065, 0.011398299597203732, 0.01440997701138258, -0.017489906400442123, -0.01339470874518156, -0.00514459190890193, 0.034143708646297455, 0.020083531737327576, 0.019008541479706764, 0.04327258840203285, 0.02409341186285019, -0.06494300812482834, -0.01039156410843134, -0.03661789372563362, 0.014793901704251766, 0.011816351674497128, -0.04078134149312973, 0.07030089199542999, 0.023393817245960236, -0.03129413351416588, 0.03750518336892128, 0.04982490465044975 ]
17,203
imodels.rule_set.skope_rules
_score_top_rules
Score representing an ordering between the base classifiers (rules). The score is high when the instance is detected by a performing rule. If there are n rules, ordered by increasing OOB precision, a score of k means than the kth rule has voted positively, but not the (k-1) first rules. Parameters ---------- X : array-like, shape (n_samples, n_features) The training input samples. Returns ------- scores : array, shape (n_samples,) The score of the input samples. Positive scores represent outliers, null scores represent inliers.
def _score_top_rules(self, X) -> np.ndarray: """Score representing an ordering between the base classifiers (rules). The score is high when the instance is detected by a performing rule. If there are n rules, ordered by increasing OOB precision, a score of k means than the kth rule has voted positively, but not the (k-1) first rules. Parameters ---------- X : array-like, shape (n_samples, n_features) The training input samples. Returns ------- scores : array, shape (n_samples,) The score of the input samples. Positive scores represent outliers, null scores represent inliers. """ # Check if fit had been called check_is_fitted(self, ['rules_', 'estimators_samples_', 'max_samples_']) # Input validation 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 = pandas.DataFrame(X, columns=self.feature_placeholders) selected_rules = self.rules_without_feature_names_ scores = np.zeros(X.shape[0]) for (k, r) in enumerate(list((selected_rules))): scores[list(df.query(r.rule).index)] = np.maximum( len(selected_rules) - k, scores[list(df.query(r.rule).index)]) return scores
(self, X) -> numpy.ndarray
[ -0.025849994271993637, 0.005114006344228983, -0.03897096589207649, -0.016639184206724167, 0.013531585223972797, -0.02825768291950226, 0.0019049206748604774, -0.0003718269872479141, 0.03816840425133705, -0.006527823396027088, -0.0230316910892725, 0.009406785480678082, 0.035928692668676376, -0.027455121278762817, -0.01267302967607975, 0.04904966428875923, 0.02859364077448845, -0.008688211441040039, 0.012542380020022392, 0.0063178506679832935, 0.010853264480829239, -0.02491678111255169, -0.0550222285091877, 0.002421687124297023, 0.029993459582328796, 0.013130304403603077, 0.023255662992596626, -0.011179889552295208, -0.051140062510967255, -0.002270040102303028, -0.07118546962738037, 0.013578246347606182, -0.03150526434183121, -0.00033741476363502443, -0.027268478646874428, -0.07525428384542465, 0.018468281254172325, -0.007946306839585304, -0.009565431624650955, 0.01696580834686756, -0.03975486382842064, -0.044308945536613464, -0.028183026239275932, -0.01690981537103653, -0.05950164794921875, -0.00500668678432703, -0.009966712445020676, 0.08787132054567337, 0.03576071560382843, -0.048265766352415085, -0.0191681906580925, -0.06267457455396652, 0.028892267495393753, 0.024132883176207542, -0.049348294734954834, 0.027529777958989143, 0.004913365468382835, -0.04281580448150635, 0.008562227711081505, -0.061405401676893234, 0.05647803843021393, 0.026633894070982933, 0.031075986102223396, -0.0003910744853783399, 0.0287429541349411, -0.05028150603175163, -0.04901233687996864, 0.010657289996743202, -0.01231840904802084, 0.0033292367588728666, -0.023404976353049278, -0.011002578772604465, 0.08645283430814743, -0.011245214380323887, -0.025178082287311554, 0.014726097695529461, -0.028164362534880638, -0.04188258945941925, 0.032158512622117996, -0.013960863463580608, 0.010946585796773434, 0.03934425115585327, 0.0840638056397438, -0.032961077988147736, -0.006266524083912373, -0.04457024484872818, 0.07779262214899063, 0.046809952706098557, 0.030180102214217186, 0.002391357906162739, 0.0037795118987560272, 0.020717324689030647, 0.028108369559049606, -0.016097920015454292, -0.001809266279451549, 0.059613633900880814, -0.04121067747473717, 0.0037375171668827534, -0.015267361886799335, -0.059949591755867004, -0.002072898903861642, 0.09600893408060074, 0.0005470960168167949, 0.056328725069761276, 0.0018909224309027195, 0.017077794298529625, -0.0220984797924757, 0.005034683272242546, -0.03176656365394592, 0.020810645073652267, -0.0797336995601654, 0.023255662992596626, -0.012057109735906124, 0.0236476119607687, 0.021370572969317436, -0.06162937358021736, -0.0180856641381979, 0.0386350117623806, -0.043226417154073715, -0.00013064978702459484, -0.000422278797486797, -0.0006340014515444636, -0.018039003014564514, 0.012047776952385902, -0.050430819392204285, -0.023292992264032364, 0.037011221051216125, 0.027007179334759712, 0.008944844827055931, -0.07252930104732513, 0.021351909264922142, -0.04785515367984772, -0.0005013102781958878, -0.03482750058174133, 0.00935079250484705, -0.061554715037345886, 0.08749803155660629, -0.011683824472129345, -0.0038215063977986574, -0.06144273281097412, 0.1041465476155281, 0.02064266800880432, -0.004082805942744017, -0.07484366744756699, 0.018132325261831284, 0.009733409620821476, 0.03465952351689339, 0.05498489737510681, 0.018897559493780136, -0.023311655968427658, -0.007367715239524841, -0.011441188864409924, 0.0019329170463606715, -0.04442092776298523, 0.060136232525110245, -0.01104923989623785, -0.00011198553693247959, -0.1054157167673111, -0.014707433991134167, -0.0472952239215374, -0.011767813004553318, -0.015500664710998535, -0.06502626836299896, -0.045204829424619675, 0.01024667639285326, 0.0408000648021698, -0.022695735096931458, 0.001070278463885188, -0.035238116979599, 0.0088888518512249, -0.0187015850096941, -0.02383425459265709, -0.0355554074048996, 0.008580891415476799, -0.037571147084236145, 0.04692193865776062, -0.031075986102223396, 0.014418138191103935, -0.007045756559818983, 0.07719536125659943, 0.025028767064213753, -0.0176190584897995, -0.009798734448850155, -0.08010698854923248, -0.00897750724107027, 0.02825768291950226, 0.043749015778303146, 0.013018318451941013, -0.03904562443494797, 0.05158800259232521, -0.04819110780954361, -0.04132266342639923, 0.018645592033863068, 0.006401839666068554, -0.002361028455197811, -0.005795251578092575, -0.04057609289884567, 0.0791364461183548, 0.04382367432117462, -0.016499202698469162, -0.007367715239524841, 0.053118471056222916, 0.031393278390169144, -0.005291316658258438, -0.02200515754520893, 0.02562602423131466, -0.03387562558054924, 0.0015771295875310898, -0.0624505989253521, -0.03161725029349327, -0.026652557775378227, -0.019709454849362373, -0.03424891084432602, 0.014875411987304688, 0.049908220767974854, 0.004187792539596558, 0.051140062510967255, -0.017413750290870667, -0.014763426966965199, -0.0055946107022464275, 0.011245214380323887, -0.029993459582328796, -0.0236476119607687, 0.01771237887442112, 0.02478613145649433, 0.005799917504191399, 0.05461161211133003, 0.007255729753524065, 0.03378230333328247, -0.005897904746234417, 0.016359221190214157, -0.0930226519703865, 0.028817610815167427, -0.043039772659540176, 0.031038658693432808, 0.06573551148176193, -0.026447251439094543, 0.019205519929528236, -0.07689673453569412, 0.032811760902404785, -0.029340211302042007, -0.041621290147304535, 0.004066474735736847, 0.005342643242329359, -0.05199861899018288, 0.03143060579895973, 0.07562756538391113, -0.04464489966630936, 0.00356253981590271, 0.006509159225970507, 0.007097083143889904, -0.04024013504385948, 0.002666655695065856, -0.009047497995197773, -0.018253643065690994, -0.06894576549530029, -0.037944432348012924, -0.008828192949295044, 0.04318908974528313, -0.03396894782781601, -0.022490428760647774, 0.06969232857227325, -0.0008060625405050814, -0.0037445162888616323, -0.055320855230093, 0.05225991830229759, 0.02232244983315468, 0.013904870487749577, 0.020232053473591805, -0.002703984035179019, 0.03820573166012764, -0.0028066374361515045, -0.027529777958989143, 0.007143743801862001, -0.025570031255483627, 0.021837180480360985, -0.03436089679598808, -0.03156125545501709, 0.027735084295272827, -0.006966433487832546, 0.05270785838365555, -0.02859364077448845, -0.04065075144171715, 0.0005161833250895143, 0.023946240544319153, -0.014362145215272903, -0.014054184779524803, -0.04815378040075302, -0.008580891415476799, 0.012831675820052624, 0.0004085722321178764, -0.03501414507627487, 0.04867637902498245, -0.003781844861805439, 0.036488622426986694, 0.009696081280708313, -0.01632189191877842, -0.04042677953839302, 0.020941294729709625, 0.020754652097821236, 0.012934328988194466, 0.0094301151111722, 0.06763926148414612, -0.04371168836951256, 0.01104923989623785, 0.004908699542284012, -0.026129959151148796, -0.011534510180354118, 0.03542475774884224, -0.013260954059660435, 0.056739337742328644, 0.033800967037677765, 0.0355367437005043, -0.054387643933296204, -0.07379847019910812, -0.002200049115344882, 0.019522812217473984, -0.04225587472319603, 0.09063363075256348, 0.04169594869017601, -0.018067000433802605, -0.0013239956460893154, 0.00758702028542757, -0.006537155713886023, 0.011982452124357224, -0.00819360837340355, 0.0005651770043186843, -0.035592734813690186, -0.01823497749865055, -0.05431298539042473, -0.005244656000286341, -0.04128533601760864, 0.024151546880602837, 0.0017066128784790635, -0.0355554074048996, 0.003998816944658756, 0.0247301384806633, 0.05352908745408058, 0.024132883176207542, 0.0377017967402935, -0.04188258945941925, 0.030124109238386154, -0.012430394999682903, 0.022695735096931458, 0.025551365688443184, -0.02123992331326008, -0.03294241055846214, 0.03292374685406685, -0.016583191230893135, 0.007372381165623665, -0.0028346339240670204, -0.06528756767511368, 0.055619481950998306, 0.020903967320919037, 0.03309172764420509, -0.02280772104859352, 0.01116122491657734, -0.009948048740625381, 0.07495564967393875, -0.05461161211133003, 0.055619481950998306, -0.06252525746822357, -0.019858768209815025, 0.03665659949183464, -0.0058279139921069145, 0.003142594126984477, 0.019560139626264572, 0.003093600505962968, -0.00026961101684719324, -0.028817610815167427, -0.048975009471178055, -0.054200999438762665, 0.02976948767900467, 0.013428932055830956, 0.018720248714089394, 0.05573146790266037, 0.006117209792137146, -0.016433877870440483, 0.06080814450979233, -0.010106694884598255, 0.02321833372116089, 0.03085201606154442, -0.02571934461593628, 0.012897000648081303, -0.011721152812242508, -0.01528602559119463, -0.06872179359197617, -0.005949231795966625, 0.06539954990148544, -0.04244251921772957, 0.06222663074731827, 0.024039560928940773, -0.020549345761537552, -0.08137615770101547, -0.05244655907154083, 0.06965500116348267, -0.011263878084719181, 0.020269382745027542, -0.018290970474481583, -0.05002020671963692, -0.051326703280210495, -0.03424891084432602, 0.037477824836969376, -0.012952993623912334, -0.023946240544319153, 0.016499202698469162, -0.010666622780263424, 0.03786977380514145, -0.03452887386083603, 0.0717080682516098, -0.06890843063592911, 0.027081836014986038, 0.049198977649211884, -0.009910720400512218, -0.02599930949509144, 0.010675954632461071, 0.03396894782781601, 0.07402244210243225, 0.029844146221876144, -0.01823497749865055, 0.028164362534880638, -0.014343480579555035, -0.0011589336208999157, 0.010666622780263424, 0.011301207356154919, -0.027585770934820175, -0.05569414049386978, -0.05207327380776405, -0.015612649731338024, 0.006658473517745733, -0.04871371015906334, -0.05356641486287117, -0.05950164794921875, -0.021221259608864784, -0.046287354081869125, -0.015192704275250435, -0.04938562214374542, 0.040538765490055084, -0.037291184067726135, 0.025607358664274216, 0.024898117408156395, 0.038746993988752365, 0.0695430189371109, 0.08854322880506516, 0.008324258029460907, -0.029526853933930397, 0.023199670016765594, -0.03882165253162384, -0.101384237408638, -0.024991439655423164, -0.010181351564824581, -0.016097920015454292, 0.04841507971286774, 0.05091609060764313, -0.015556657686829567, 0.022975699976086617, -0.02652190811932087, -0.00965875294059515, 0.009145485237240791, -0.013419600203633308, 0.05793385207653046, 0.03792576864361763, -0.007134411949664354, 0.013540918007493019, -0.08518366515636444, 0.028761617839336395, -0.0002980448480229825, 0.017796367406845093, -0.002729647560045123, -0.003980152774602175, 0.04102403298020363, -0.034174252301454544, -0.01347559317946434, -0.031635913997888565, -0.048228438943624496, 0.08174943923950195, 0.048265766352415085, -0.028798947110772133, 0.022061150521039963, 0.024748804047703743, 0.031075986102223396, -0.022695735096931458, -0.020194724202156067, -0.032625120133161545, -0.0026829869020730257, 0.020138733088970184, -0.09638221561908722, -0.02967616729438305, -0.013186296448111534, -0.0287429541349411, 0.013904870487749577, -0.007652345113456249, 0.020512016490101814, 0.03525678068399429, -0.0073257205076515675, 0.016331223770976067, 0.07327587157487869, 0.04688461124897003, 0.008179610595107079, -0.012682361528277397, -0.007199736777693033, 0.017329761758446693, -0.07379847019910812, -0.02012006752192974, 0.029526853933930397, -0.021370572969317436, -0.023516962304711342, 0.014119509607553482, -0.014595448039472103, 0.026279272511601448, -0.022546421736478806, -0.04498085752129555, 0.06024821847677231, -0.00819360837340355, -0.0023155342787504196, -0.003963821567595005, 0.014950068667531013, 0.03635796904563904, 0.03161725029349327, 0.04912432283163071, 0.04158396273851395, -0.05360374227166176, 0.00030912674264982343, -0.011982452124357224, 0.024002233520150185, 0.04516749829053879, 0.03548075258731842, 0.01644320972263813, 0.05520886927843094, -0.023199670016765594, 0.046287354081869125, -0.015304690226912498, 0.01613524928689003, 0.05882973596453667, 0.002633993048220873, 0.0451301708817482, 0.018645592033863068, -0.04311443120241165, 0.02695118635892868, 0.027025843039155006, 0.024842124432325363, 0.016639184206724167, 0.043413057923316956, -0.008417579345405102, 0.05002020671963692, 0.014875411987304688, -0.026409922167658806, -0.00010272631334373727, -0.04382367432117462, 0.019485482946038246, 0.021165266633033752, 0.03176656365394592, 0.013204961083829403, 0.009136153385043144, 0.08458641171455383, 0.058157820254564285, -0.0036581940948963165, 0.020325375720858574, 0.05147601664066315, 0.0007489032577723265, -0.024562161415815353, -0.05229724571108818, 0.023330319672822952, -0.060509517788887024, -0.052409231662750244, -0.008958842605352402, -0.050692118704319, 0.038336381316185, -0.07995767146348953, 0.040352120995521545, 0.009649420157074928, 0.026297936215996742, -0.01903754100203514, -0.013260954059660435, -0.0242635328322649, -0.0073630488477647305, 0.033241041004657745, 0.013839545659720898, -0.022975699976086617, 0.010647958144545555, 0.004820044152438641, -0.019485482946038246, 0.022770391777157784, -0.06663139164447784, 0.02417021244764328, 0.021090609952807426, -0.003093600505962968, 0.052409231662750244, -0.02383425459265709, -0.035928692668676376, -0.024935446679592133, 0.0287429541349411, 0.0014371477300301194, -0.031729236245155334, 0.008706875145435333, 0.00874420441687107, -0.018468281254172325, -0.047033924609422684, -0.002270040102303028, 0.020605338737368584, -0.008646216243505478, 0.0264285858720541, 0.0009722911054268479, -0.022826384752988815, 0.07316388189792633, -0.030254758894443512, -0.03387562558054924, 0.029228225350379944, 0.010610629804432392, 0.005505955312401056, 0.01201044861227274, 0.03684324026107788, 0.020978624001145363, -0.015715302899479866, 0.0187015850096941, 0.006364511325955391, -0.0020320708863437176, 0.00032370819826610386, 0.013512921519577503, -0.02543938159942627, 0.031393278390169144, 0.0037841778248548508, 0.03269977495074272, 0.023404976353049278, -0.0040571428835392, -0.024058226495981216, -0.020941294729709625, -0.07995767146348953, -0.04065075144171715, -0.0214825589209795, 0.030124109238386154, -0.006709800101816654, 0.02213580720126629, -0.042890459299087524, -0.010461315512657166, -0.014110177755355835, 0.050430819392204285, 0.012841008603572845, -0.02568201720714569, -0.07338785380125046, -0.08667680621147156, -0.003767846617847681, 0.04363702982664108, 0.01814165711402893, -0.03409959748387337, -0.055134210735559464, -0.04348771646618843, 0.04904966428875923, 0.08339189738035202, 0.02846299111843109, 0.013671567663550377, -0.014950068667531013, -0.03465952351689339, 0.014418138191103935, 0.02590598724782467, 0.025700680911540985, 0.05140136182308197, 0.05211060121655464, 0.016583191230893135, -0.07473167777061462, -0.04150930419564247, 0.018869562074542046, 0.006378509569913149, 0.013867542147636414, -0.020138733088970184, 0.022453099489212036, 0.04804179444909096, 0.006140540353953838, -0.02788439765572548, 0.021165266633033752, -0.032158512622117996, 0.03968020901083946, -0.03518212214112282, 0.029526853933930397, 0.011991784907877445, -0.02680187113583088, -0.03010544553399086, -0.027735084295272827, -0.03294241055846214, -0.05028150603175163, 0.05405168607831001, 0.0692443922162056, -0.019858768209815025, -0.03212118521332741, 0.05819515138864517, 0.020717324689030647, 0.013456928543746471, 0.04262915998697281, -0.021090609952807426, -0.07025226205587387, -0.026783207431435585, 0.026297936215996742, 0.06439168006181717, -0.011879798956215382, 0.003956822212785482, 0.011273210868239403, -0.05823247879743576, 0.06095746159553528, 0.02967616729438305, -0.024151546880602837, -0.010022705420851707, 0.00221404735930264, -0.025196745991706848, 0.0016202906845137477, -0.03353966772556305, 0.06092013046145439, -0.060136232525110245, 0.007657011039555073, 0.01578996144235134, -0.0193175058811903, -0.0370858758687973, 0.003980152774602175, -0.02417021244764328, -0.018244311213493347, -0.0287429541349411, 0.01718978025019169, 0.050617463886737823, 0.00832892395555973, -0.044831544160842896, -0.00143364816904068, 0.05229724571108818, 0.032438475638628006, 0.048452407121658325, -0.02191183716058731, -0.014343480579555035, 0.021594544872641563, 0.07495564967393875, -0.06308518350124359, 0.0017334427684545517, -0.06935637444257736, 0.02510342374444008, 0.007535693235695362, -0.01328895054757595, 0.0026876528281718493, 0.0020262382458895445, 0.03301706910133362, 0.026036636903882027, -0.1146731898188591, 0.07081218808889389, 0.03454753756523132, -0.0031962539069354534, -0.005263320170342922, -0.004838708322495222, -0.030422737821936607, 0.014268823899328709, 0.038000427186489105, 0.0035322103649377823, 0.016097920015454292, 0.04527948424220085, -0.01965346187353134, 0.00027194403810426593, -0.02469281107187271, 0.07316388189792633, 0.0009880390716716647, 0.015537993051111698, 0.05356641486287117, 0.011935791932046413, -0.053454428911209106, 0.017441747710108757, -0.029993459582328796, -0.0202507171779871, -0.0454287976026535, -0.015649978071451187, 0.0571872815489769, 0.005935233552008867, -0.004908699542284012, 0.01236506924033165, -0.001746274414472282 ]
17,206
imodels.rule_set.fpskope
fit
null
def fit(self, X, y=None, feature_names=None, undiscretized_features=[], sample_weight=None): self.undiscretized_features = undiscretized_features super().fit(X, y, feature_names=feature_names, sample_weight=sample_weight) return self
(self, X, y=None, feature_names=None, undiscretized_features=[], sample_weight=None)
[ -0.012431140057742596, -0.053291916847229004, 0.07680733501911163, -0.013277476653456688, -0.04157060757279396, -0.019802460446953773, -0.006447630003094673, -0.004700354300439358, 0.038258060812950134, 0.03310723975300789, -0.02595432661473751, -0.0037243368569761515, -0.02167714200913906, 0.007730785757303238, -0.032961633056402206, 0.041279394179582596, -0.002773345448076725, -0.0041998326778411865, -0.004941514693200588, -0.0014788142871111631, -0.023242410272359848, -0.0046958038583397865, -0.0489601269364357, 0.05063460022211075, -0.029321473091840744, 0.009127696976065636, -0.0037812143564224243, -0.03840366750955582, -0.009974033571779728, -0.042990267276763916, -0.01369609497487545, 0.051653843373060226, -0.023679228499531746, 0.007953745312988758, 0.0010027497773990035, -0.06639648228883743, 0.0013923605438321829, 0.032579414546489716, 0.08263158798217773, -0.012012521736323833, -0.034454096108675, -0.059116169810295105, 0.038330864161252975, -0.005146273411810398, 0.007680733688175678, 0.07455044239759445, -0.0410245805978775, 0.09486252069473267, 0.013295677490532398, 0.00039131700759753585, -0.011084281839430332, -0.0023126378655433655, 0.007762637455016375, 0.02793821319937706, -0.026136334985494614, 0.024643870070576668, 0.040078140795230865, 0.06585045903921127, 0.02961268648505211, -0.01927463710308075, -0.01311367005109787, 0.014314921572804451, 0.004850510507822037, -0.05489358305931091, -0.014624334871768951, -0.026391146704554558, -0.005997160449624062, 0.042371440678834915, -0.009755623526871204, 0.08590773493051529, 0.0037812143564224243, -0.03256121277809143, -0.0425170473754406, 0.042407840490341187, 0.048195693641901016, 0.024116048589348793, -0.04855971038341522, 0.002296712249517441, -0.025117091834545135, -0.017026839777827263, 0.005751450080424547, 0.032888829708099365, -0.03547333925962448, 0.00828590989112854, -0.051071420311927795, -0.02875724993646145, 0.025590311735868454, -0.02304220013320446, 0.045793190598487854, 0.008358713239431381, -0.031414564698934555, 0.06534083932638168, 0.03427208960056305, -0.010692964307963848, 0.07327638566493988, 0.015534374862909317, -0.054420363157987595, 0.02568131498992443, 0.004977916367352009, -0.030832139775156975, -0.026245540007948875, -0.03212439641356468, 0.02793821319937706, 0.05831533297896385, -0.010947776027023792, 0.013222874142229557, 0.03481811285018921, -0.040551360696554184, -0.04965175688266754, 0.000011197752428415697, -0.01954764872789383, -0.013468584977090359, 0.028375033289194107, 0.062101099640131, -0.07294876873493195, -0.06676050275564194, -0.025171693414449692, -0.00878188107162714, 0.004127029329538345, -0.004714004695415497, -0.041752614080905914, 0.048086490482091904, -0.032961633056402206, -0.04848690703511238, -0.0006091577233746648, 0.017545562237501144, 0.01134819258004427, 0.008927487768232822, 0.04153420403599739, -0.06290192902088165, -0.011612104251980782, 0.018637610599398613, -0.027501394972205162, 0.018637610599398613, -0.023515421897172928, -0.05482078343629837, 0.0267733633518219, -0.026172736659646034, 0.09158638119697571, 0.026682358235120773, 0.04677603393793106, 0.010165141895413399, 0.05984419956803322, 0.06279272586107254, 0.02102191373705864, 0.05456596985459328, 0.01869221217930317, 0.001079534413293004, -0.036929402500391006, -0.015770984813570976, -0.052709490060806274, 0.055039189755916595, -0.007830889895558357, -0.0608634427189827, -0.0110933817923069, 0.010483655147254467, -0.025517508387565613, -0.022750988602638245, 0.015279564075171947, 0.006593236234039068, 0.011775911785662174, -0.03276142477989197, -0.004245334304869175, 0.04222583398222923, -0.010893173515796661, 0.0404057539999485, 0.039532117545604706, -0.02373383194208145, 0.020020870491862297, 0.029594486579298973, 0.030486324802041054, -0.046994440257549286, 0.010010435245931149, 0.03481811285018921, 0.04568398371338844, 0.0371842160820961, 0.007680733688175678, -0.012112625874578953, 0.0016608221922069788, 0.06344795972108841, 0.08212196826934814, -0.03307083621621132, -0.038440071046352386, -0.07629771530628204, 0.03760283440351486, -0.034454096108675, -0.03283422812819481, 0.022277768701314926, -0.04495595395565033, 0.011302690953016281, 0.05085301026701927, -0.02020287699997425, 0.033780667930841446, 0.027483193203806877, 0.0031646625138819218, -0.000690492510329932, -0.033434852957725525, -0.02948528155684471, 0.003173762932419777, -0.009537214413285255, -0.04328148066997528, -0.03574635460972786, 0.021513335406780243, -0.03074113465845585, -0.015880189836025238, 0.06683330237865448, -0.03252481296658516, -0.00008560059359297156, -0.025626713410019875, -0.049214936792850494, 0.04830489680171013, -0.02198655530810356, -0.02304220013320446, 0.0015049779321998358, 0.02451646514236927, -0.0048141092993319035, 0.008153954520821571, -0.030522726476192474, -0.023224208503961563, -0.04717645049095154, 0.04764967039227486, 0.007539677433669567, 0.00789459329098463, -0.02225956693291664, 0.03381706774234772, 0.012349236756563187, 0.05857014283537865, -0.05241827666759491, -0.020639697089791298, -0.016380712389945984, -0.006188268773257732, -0.05471157655119896, 0.007280316203832626, -0.0038358166348189116, -0.049906566739082336, 0.009928531013429165, 0.028884654864668846, -0.011293591000139713, 0.02735578827559948, 0.018364597111940384, -0.003173762932419777, 0.007735336199402809, -0.0040383003652095795, -0.04946975037455559, -0.01396910659968853, 0.02211396023631096, 0.0046139005571603775, 0.031105151399970055, 0.026372944936156273, -0.0208217054605484, -0.005355582572519779, 0.014442327432334423, -0.04415511712431908, 0.00675249332562089, -0.01715424470603466, -0.047030843794345856, 0.00688899913802743, -0.007667083293199539, -0.016526317223906517, -0.03611036762595177, -0.01039265189319849, 0.0340900793671608, -0.023752031847834587, 0.11364573985338211, -0.05252748355269432, 0.012203630059957504, 0.010165141895413399, -0.01787317730486393, -0.02327881194651127, 0.004714004695415497, -0.0026573154609650373, 0.04495595395565033, 0.029321473091840744, -0.00213631778024137, 0.0030031304340809584, 0.09027592092752457, 0.021349526941776276, -0.05580362305045128, 0.017490960657596588, 0.038913290947675705, 0.04280826076865196, -0.046484820544719696, 0.07240274548530579, 0.047540463507175446, 0.02284199185669422, 0.0033352947793900967, -0.01352318748831749, 0.00041577432421036065, -0.023679228499531746, -0.05369233340024948, 0.012249131686985493, 0.0637027695775032, 0.07760816812515259, 0.032306402921676636, 0.010365350171923637, -0.029230469837784767, 0.003596931230276823, -0.01138459425419569, 0.031414564698934555, 0.02735578827559948, -0.04663042724132538, 0.01095687597990036, 0.01020154356956482, -0.013450384140014648, 0.04451913386583328, -0.10228844732046127, 0.06883539259433746, -0.018300894647836685, -0.04535637050867081, 0.011257189325988293, 0.041242990642786026, 0.06701531261205673, -0.025553910061717033, -0.056713663041591644, -0.04564758390188217, -0.011202586814761162, 0.06213749945163727, -0.007626131176948547, 0.03587375953793526, 0.040624164044857025, -0.0006324774585664272, -0.08459727466106415, -0.02160433866083622, -0.04335428401827812, -0.033198241144418716, 0.05114422366023064, 0.01808248646557331, -0.009928531013429165, -0.07942824810743332, -0.032069794833660126, 0.007849090732634068, -0.04248064383864403, 0.018118886277079582, -0.007712584920227528, -0.0673065260052681, 0.017964180558919907, 0.002905301284044981, 0.020148275420069695, 0.01326837670058012, 0.03558254614472389, -0.0853981077671051, 0.028193024918437004, -0.06326594948768616, -0.001804153434932232, -0.021112916991114616, -0.023242410272359848, 0.011967020109295845, -0.018346397206187248, 0.08445166796445847, 0.013013564981520176, -0.029048461467027664, -0.007480524946004152, 0.05289149656891823, 0.027719805017113686, 0.06104545295238495, 0.027610599994659424, -0.04138859733939171, 0.06228310614824295, 0.0013275201199576259, -0.06712451577186584, 0.020767102017998695, -0.036547187715768814, -0.06865338236093521, 0.013996408320963383, -0.006497682072222233, -0.01969325542449951, 0.022605381906032562, 0.017900478094816208, -0.029558084905147552, -0.029048461467027664, 0.021112916991114616, -0.022951196879148483, -0.09471691399812698, 0.06534083932638168, 0.03472710773348808, -0.005746899638324976, -0.005382883828133345, -0.011084281839430332, 0.007425922434777021, 0.03509112447500229, -0.006356626283377409, 0.023242410272359848, 0.015880189836025238, -0.007657982874661684, -0.010328948497772217, -0.0022113961167633533, -0.033434852957725525, -0.023715630173683167, 0.057951316237449646, -0.014697138220071793, 0.040696967393159866, -0.005464787594974041, -0.020621495321393013, 0.05471157655119896, -0.03960492089390755, -0.01678112894296646, 0.009528113529086113, 0.003788039553910494, -0.04961535707116127, -0.01646261475980282, -0.01393270492553711, -0.0033398449886590242, -0.06963622570037842, 0.035800956189632416, 0.0006694478215649724, 0.04739486053586006, -0.015570776537060738, 0.003460425417870283, 0.011694008484482765, 0.03489091619849205, -0.01070206519216299, 0.02999490313231945, 0.006324774585664272, 0.011721309274435043, -0.026063531637191772, 0.011812313459813595, -0.00859077274799347, 0.010019535198807716, 0.03876768425107002, 0.03057732805609703, 0.037784840911626816, 0.005469337571412325, -0.014906447380781174, 0.03760283440351486, 0.032579414546489716, 0.007325818296521902, -0.05078020691871643, -0.08954788744449615, 0.060281019657850266, -0.005974409636110067, -0.11095201969146729, -0.014560632407665253, -0.08612614125013351, -0.002816572319716215, -0.022932996973395348, -0.00861352402716875, -0.012130826711654663, -0.030049504712224007, -0.04655762389302254, 0.01126628927886486, -0.048086490482091904, -0.07476884871721268, 0.0385492742061615, 0.008222207427024841, -0.033434852957725525, -0.026664158329367638, -0.027483193203806877, 0.02964908815920353, -0.04360909387469292, -0.004736755974590778, 0.04830489680171013, -0.026209138333797455, -0.0006466968334279954, -0.005860654637217522, -0.04051496088504791, 0.011138884350657463, 0.06632368266582489, -0.017918678000569344, 0.034708909690380096, 0.02913946658372879, 0.02256898023188114, -0.015552575699985027, -0.006511332932859659, 0.012039823457598686, -0.005887955892831087, 0.048705317080020905, 0.0035446039400994778, -0.0416434109210968, 0.009509912692010403, -0.01414201408624649, 0.03840366750955582, 0.019875263795256615, 0.042844660580158234, -0.05249108001589775, -0.03057732805609703, 0.05806052312254906, 0.01581648737192154, 0.031214356422424316, 0.026864366605877876, -0.053328316658735275, 0.033780667930841446, -0.01395090576261282, 0.03975052759051323, 0.009819326922297478, 0.004955165088176727, -0.00656593544408679, -0.026864366605877876, -0.034017276018857956, 0.014169315807521343, 0.04732205718755722, 0.011275390163064003, 0.01633520983159542, 0.036820199340581894, 0.005009767599403858, -0.037093210965394974, -0.0022011580877006054, 0.027501394972205162, 0.013049966655671597, 0.03166937455534935, 0.027483193203806877, -0.009305153973400593, -0.002296712249517441, -0.02023927867412567, 0.009173198603093624, -0.005118972156196833, 0.033198241144418716, -0.001971373101696372, 0.0021749944426119328, -0.02355182357132435, -0.00799469742923975, -0.056204043328762054, -0.048596110194921494, 0.025808721780776978, 0.013859902508556843, 0.06257431954145432, 0.022132162004709244, -0.013759797438979149, 0.0535467267036438, 0.011411895975470543, 0.001515215844847262, -0.003487726440653205, 0.07327638566493988, 0.04087897762656212, -0.03015870973467827, 0.034981921315193176, 0.02451646514236927, 0.0023774781730026007, 0.012103525921702385, 0.05372873321175575, 0.023915838450193405, 0.050343386828899384, -0.024334456771612167, -0.00030173498089425266, 0.03734802082180977, 0.006911750417202711, 0.020839905366301537, -0.023133205249905586, -0.05820612981915474, -0.011475598439574242, -0.005059819668531418, -0.03368966281414032, 0.010611061006784439, 0.02731938660144806, -0.01357778999954462, -0.02335161529481411, -0.0618462860584259, -0.03738442435860634, 0.016153201460838318, 0.008968439884483814, -0.020111873745918274, -0.055658016353845596, -0.040078140795230865, 0.012822456657886505, 0.050998616963624954, 0.05376513674855232, -0.022332370281219482, -0.03150556981563568, 0.07891862839460373, -0.01325017586350441, 0.0333438478410244, -0.023187806829810143, -0.0026959921233356, 0.08532530814409256, -0.03301623463630676, 0.009892129339277744, 0.016799330711364746, -0.06970902532339096, 0.0365653894841671, -0.09799305349588394, -0.03703860938549042, -0.009018491953611374, 0.03276142477989197, -0.04186181724071503, 0.0924600139260292, -0.05485718324780464, 0.04258985072374344, 0.04612080380320549, -0.040041740983724594, -0.075860895216465, 0.0027119177393615246, -0.01684483140707016, -0.004686703439801931, -0.050488993525505066, -0.06352075934410095, -0.006024461705237627, -0.03454510122537613, -0.004061051644384861, 0.019365642219781876, -0.04422792047262192, -0.02458926849067211, 0.014851844869554043, -0.05005217343568802, 0.020348483696579933, -0.02424345351755619, -0.015397869050502777, 0.0026959921233356, -0.06271992623806, -0.049287740141153336, 0.03672919422388077, -0.028684446588158607, 0.018637610599398613, 0.023515421897172928, 0.01076576765626669, 0.000056308697821805254, 0.043536290526390076, 0.008913837373256683, -0.061919089406728745, 0.030522726476192474, -0.019747857004404068, -0.040551360696554184, -0.002930327318608761, 0.021313125267624855, 0.03500011935830116, 0.021167520433664322, -0.03873128443956375, 0.009391607716679573, 0.0079628461971879, -0.030595529824495316, 0.03540053963661194, -0.017718469724059105, -0.01128449011594057, -0.06970902532339096, -0.02506248839199543, 0.04954255372285843, -0.026063531637191772, -0.03620137274265289, -0.01715424470603466, -0.01831909641623497, -0.02171354368329048, 0.03964132070541382, 0.0038380916230380535, -0.049760960042476654, -0.02848423831164837, 0.026372944936156273, 0.05285509675741196, 0.029940301552414894, -0.029521683230996132, 0.010347149334847927, -0.0010710028000175953, -0.013805299997329712, -0.019711457192897797, 0.015015652403235435, 0.04113378748297691, 0.012485742568969727, -0.06454000622034073, 0.005810602568089962, -0.06683330237865448, -0.0022898870520293713, 0.03057732805609703, -0.012513043358922005, -0.015406969003379345, -0.033198241144418716, 0.010893173515796661, -0.010310747660696507, 0.02557211183011532, 0.020494090393185616, -0.032033391296863556, 0.016244206577539444, 0.052745889872312546, -0.01954764872789383, -0.040114544332027435, 0.007671633269637823, 0.08634454756975174, 0.05296429991722107, 0.0062656220979988575, 0.06566845625638962, -0.0280110165476799, -0.07043705880641937, -0.03687480092048645, -0.024025043472647667, -0.06435799598693848, 0.037712037563323975, 0.014751740731298923, -0.003840366844087839, -0.030322518199682236, 0.007475974969565868, -0.04386390373110771, -0.04961535707116127, 0.006852597929537296, 0.01851930469274521, 0.03387167304754257, 0.013605090789496899, 0.020876307040452957, 0.00809935200959444, 0.015261363238096237, 0.03212439641356468, -0.09799305349588394, 0.014051010832190514, -0.03865848109126091, -0.0023240135051310062, 0.06315674632787704, -0.06170067936182022, 0.014433227479457855, -0.022405173629522324, -0.022405173629522324, 0.046848833560943604, -0.03150556981563568, -0.1003955602645874, 0.07050986588001251, -0.0008651063544675708, 0.008941138163208961, 0.05456596985459328, -0.04845050349831581, 0.01099327765405178, 0.008790981955826283, 0.025208095088601112, -0.04484674707055092, 0.052782293409109116, 0.015061154030263424, -0.031978789716959, 0.037129614502191544, -0.0014936024090275168, -0.03583735600113869, 0.0003594656300265342, 0.04197102412581444, 0.009755623526871204, 0.012112625874578953, -0.004936964251101017, 0.03905889764428139, 0.024898681789636612, 0.060281019657850266, -0.015725482255220413, -0.020657896995544434, 0.017245249822735786, -0.0012194529408589005, -0.0048277596943080425, -0.015552575699985027, -0.02711917832493782, 0.023369815200567245, -0.05638604983687401, 0.05194505676627159, 0.04531996697187424, -0.021586136892437935, 0.043572694063186646, -0.002071477472782135, -0.023952240124344826, -0.01725434884428978, 0.029558084905147552, 0.07149270921945572, 0.025353701785206795, -0.04415511712431908, -0.017745770514011383, 0.02284199185669422, 0.03902249410748482, 0.01690853387117386, 0.01876501552760601, -0.0004334063269197941, 0.0044478182680904865, 0.012904360890388489, 0.02797461487352848, -0.009036692790687084, 0.0024207052774727345, -0.028884654864668846, 0.03543693944811821, 0.07629771530628204, 0.002552660880610347, -0.026627756655216217, -0.008358713239431381, -0.0002895063371397555, -0.043536290526390076, -0.03081393800675869, -0.048122890293598175, -0.015170359052717686, 0.005073470529168844, -0.033198241144418716, 0.0606086328625679, 0.07327638566493988, 0.059188973158597946 ]
17,209
imodels.rule_set.skope_rules
predict
Predict if a particular sample is an outlier or not. Parameters ---------- X : array-like, shape (n_samples, n_features) The input samples. Internally, it will be converted to ``dtype=np.float32`` Returns ------- is_outlier : array, shape (n_samples,) For each observations, tells whether or not (1 or 0) it should be considered as an outlier according to the selected rules.
def predict(self, X) -> np.ndarray: """Predict if a particular sample is an outlier or not. Parameters ---------- X : array-like, shape (n_samples, n_features) The input samples. Internally, it will be converted to ``dtype=np.float32`` Returns ------- is_outlier : array, shape (n_samples,) For each observations, tells whether or not (1 or 0) it should be considered as an outlier according to the selected rules. """ X = check_array(X) return np.argmax(self.predict_proba(X), axis=1)
(self, X) -> numpy.ndarray
[ 0.01418914832174778, 0.004722213372588158, -0.0008862590766511858, -0.03111528977751732, 0.02942267619073391, -0.028612380847334862, -0.038245875388383865, 0.005221894476562738, 0.05193084105849266, -0.009849573485553265, -0.009615488350391388, -0.010614851489663124, 0.008971755392849445, -0.041991233825683594, 0.0028945503290742636, 0.05221894755959511, -0.026595650240778923, -0.029512707144021988, 0.038966137915849686, 0.026721695438027382, -0.00906628929078579, 0.03232172876596451, -0.04706907644867897, -0.012874671258032322, 0.03365420922636986, 0.027604015544056892, 0.01630491577088833, -0.047969404608011246, 0.005122858565300703, 0.015737710520625114, -0.07620365172624588, -0.01751135289669037, -0.007724802941083908, -0.02942267619073391, 0.04249541833996773, -0.00018639575864654034, 0.04750123620033264, 0.017619391903281212, 0.04753724858164787, -0.03363620489835739, -0.0575488805770874, -0.07141391187906265, -0.03781371936202049, 0.042783524841070175, -0.029764799401164055, -0.002313839504495263, -0.041018884629011154, 0.05182280391454697, -0.010155684314668179, -0.006626404356211424, 0.002142777433618903, -0.010578838177025318, 0.03232172876596451, 0.02697378769516945, -0.013036729767918587, -0.007058560848236084, 0.037489600479602814, -0.0009757290245033801, -0.02717185951769352, 0.007873356342315674, 0.02149980142712593, 0.0606820173561573, 0.08275802433490753, -0.03990247845649719, 0.05445175617933273, 0.0007770944503135979, -0.025659309700131416, 0.019717153161764145, -0.0003944556228816509, 0.05787299945950508, -0.02821623720228672, -0.04303561523556709, -0.004436359740793705, 0.058053065091371536, 0.014693330973386765, -0.008219982497394085, 0.04714110493659973, -0.004551151301711798, -0.03266385197639465, 0.006014182232320309, 0.00996661651879549, -0.004463369492441416, 0.00962449237704277, -0.013018723577260971, -0.024470878764986992, -0.07040554285049438, -0.006522866897284985, -0.018636761233210564, 0.032699864357709885, 0.05088646337389946, -0.01549462229013443, 0.0518588162958622, 0.05340737849473953, 0.0008530595223419368, 0.011416141875088215, 0.008701656945049763, -0.0074502029456198215, 0.02094159834086895, 0.05236299708485603, -0.03649924322962761, 0.02387666329741478, 0.06658816337585449, 0.02834228426218033, 0.047969404608011246, 0.013009720481932163, 0.07548338919878006, 0.02463293820619583, 0.04260345920920372, -0.03385228291153908, -0.023732610046863556, -0.0013020974583923817, 0.006905505433678627, -0.04152306541800499, -0.012586566619575024, -0.029530715197324753, -0.028396302834153175, -0.03806580975651741, 0.0418831966817379, -0.10126874595880508, -0.012613576836884022, -0.008098438382148743, 0.01881682686507702, -0.0742589458823204, -0.04181117191910744, -0.030323002487421036, -0.014738347381353378, 0.06892900913953781, 0.022418133914470673, -0.030557086691260338, 0.005325432401150465, -0.023768624290823936, -0.003547287080436945, -0.01604382134974003, 0.01682710461318493, -0.004704206716269255, -0.03111528977751732, 0.044440124183893204, -0.005906142760068178, 0.07685188204050064, -0.04840156063437462, 0.03983044996857643, 0.025191139429807663, 0.019158951938152313, -0.008823201060295105, 0.052831169217824936, 0.01924898475408554, 0.05193084105849266, 0.032861921936273575, 0.04386391490697861, -0.021841924637556076, -0.05459580942988396, -0.008679148741066456, 0.02081555314362049, -0.0632389485836029, -0.008269499987363815, 0.006212254054844379, -0.022418133914470673, -0.07098175585269928, -0.007279140874743462, -0.08391044288873672, -0.04109090939164162, 0.022886304184794426, -0.00919683650135994, -0.028270257636904716, 0.028954505920410156, 0.02664966881275177, -0.016394948586821556, 0.06684025377035141, 0.0450163334608078, 0.00391416996717453, 0.0006122221238911152, -0.0073331608437001705, 0.013729982078075409, 0.01656601019203663, -0.03385228291153908, 0.06781260669231415, 0.00853059533983469, 0.025497250258922577, -0.0007725928444415331, 0.04937391355633736, 0.06421129405498505, -0.013036729767918587, -0.04818548262119293, -0.03806580975651741, -0.03477061539888382, -0.03208764269948006, -0.013009720481932163, 0.004920285195112228, -0.05459580942988396, 0.03588702157139778, -0.05430770292878151, -0.013729982078075409, 0.028594374656677246, -0.010551828891038895, -0.0041257468983531, 0.004969803150743246, -0.029026532545685768, 0.04944594204425812, 0.05682861804962158, -0.03986646607518196, 0.044512148946523666, -0.000025532701329211704, -0.020851565524935722, 0.02299434319138527, -0.0549919530749321, -0.005181380081921816, -0.036841366440057755, -0.01950107514858246, -0.02495705522596836, -0.023444505408406258, 0.02387666329741478, -0.023210421204566956, 0.0020493685733526945, -0.006991036701947451, 0.06295084208250046, 0.08707959204912186, 0.03640921041369438, -0.021175682544708252, -0.06489554792642593, -0.023660585284233093, -0.0009132688865065575, -0.04681698605418205, -0.04217129945755005, 0.05816110223531723, 0.039974503219127655, 0.006630905903875828, 0.03154744580388069, 0.024975061416625977, 0.07209815829992294, -0.04400796815752983, -0.009984622709453106, 0.04404398053884506, 0.02427280694246292, -0.04818548262119293, 0.01187530905008316, 0.047249142080545425, -0.02178790606558323, -0.018762808293104172, -0.04091084375977516, 0.0012435761746019125, 0.011551191098988056, 0.00900326669216156, 0.0015057963319122791, -0.024524899199604988, 0.004794239532202482, -0.0015170504339039326, 0.015530634671449661, 0.025857381522655487, 0.0254072193056345, -0.008985260501503944, 0.028144212439656258, -0.032213687896728516, -0.012982710264623165, -0.02339048683643341, -0.0020943849813193083, -0.024416858330368996, 0.007202613167464733, -0.0027099831495434046, 0.03716548532247543, 0.010551828891038895, -0.002043741522356868, -0.01254155021160841, 0.03161947429180145, 0.019591107964515686, -0.055856265127658844, 0.004233785904943943, 0.016367938369512558, -0.0036778345238417387, 0.06763254106044769, 0.009795553982257843, 0.057656917721033096, -0.01813257858157158, -0.07080169022083282, -0.0858551487326622, 0.0185647364705801, 0.03871404752135277, 0.061474304646253586, -0.020509442314505577, 0.04631280526518822, 0.04912182316184044, 0.006270775105804205, -0.0690370500087738, 0.0034797624684870243, 0.024650944396853447, 0.00005560220597544685, -0.03741757571697235, -0.0007680911803618073, -0.04764528572559357, 0.03745358809828758, 0.020473428070545197, 0.028036171570420265, 0.011019998230040073, -0.03585100919008255, -0.027279898524284363, -0.006779459770768881, 0.013856027275323868, 0.035634931176900864, -0.04987809807062149, 0.03597705438733101, -0.0027932634111493826, -0.00812094658613205, 0.04840156063437462, -0.0554601214826107, -0.050994500517845154, 0.026307545602321625, 0.0371294729411602, 0.016349932178854942, -0.09111306071281433, -0.019122937694191933, 0.02322842739522457, 0.018672775477170944, 0.015674687922000885, 0.019284997135400772, -0.03360019251704216, -0.04883371666073799, 0.00906628929078579, 0.07922874391078949, -0.005482989363372326, -0.018348656594753265, 0.02556927688419819, -0.0069820331409573555, -0.0016183372354134917, -0.014720341190695763, -0.010380766354501247, 0.02697378769516945, -0.00344149861484766, -0.013720978051424026, -0.018798820674419403, -0.005280415993183851, -0.041739143431186676, 0.00309937447309494, -0.09665907174348831, 0.009975619614124298, 0.034464504569768906, 0.010353757068514824, -0.02544323168694973, -0.0052173929288983345, 0.013811010867357254, 0.009498446248471737, 0.045880645513534546, -0.08592717349529266, -0.026037447154521942, -0.013639949262142181, 0.012334475293755531, 0.0034932673443108797, -0.022058002650737762, -0.04984208568930626, 0.034590549767017365, 0.01692614145576954, 0.045196399092674255, -0.024182774126529694, 0.01692614145576954, 0.07036953419446945, 0.07605959475040436, 0.0361391119658947, -0.031655486673116684, 0.0020977610256522894, 0.03813783824443817, 0.042711496353149414, -0.003668831195682287, 0.005271412432193756, -0.05682861804962158, -0.009174328297376633, -0.002847283147275448, -0.024164767935872078, 0.022760258987545967, -0.0028697913512587547, 0.036157120019197464, -0.01630491577088833, 0.006770456675440073, -0.05463182181119919, -0.023732610046863556, -0.06154632940888405, 0.010641860775649548, 0.04116293415427208, -0.006707433611154556, 0.012658593244850636, -0.013396861031651497, 0.009957612492144108, 0.037237510085105896, -0.04260345920920372, -0.001698241219855845, -0.030250975862145424, -0.005640546325594187, 0.018456697463989258, 0.031169308349490166, -0.04944594204425812, -0.01969914697110653, 0.031079275533556938, -0.053443390876054764, 0.010722890496253967, 0.00675245001912117, -0.07872456312179565, -0.03304198756814003, -0.030359014868736267, -0.000583524233661592, -0.05218293517827988, 0.03639120236039162, -0.004659190308302641, -0.023102382197976112, -0.08232586830854416, 0.024578917771577835, 0.014405226334929466, 0.002676221076399088, -0.04404398053884506, -0.006428332533687353, -0.03331208601593971, 0.028360290452837944, 0.023984702304005623, 0.044116005301475525, -0.04393593966960907, 0.030124930664896965, 0.012685602530837059, -0.058053065091371536, 0.024776989594101906, 0.08981658518314362, 0.019987251609563828, 0.035184767097234726, 0.019266990944743156, -0.024092741310596466, 0.026019440963864326, -0.03657126799225807, 0.015449605882167816, -0.03653525561094284, -0.02596542052924633, -0.020329376682639122, -0.021571826189756393, 0.0015980798052623868, 0.002338598482310772, 0.039938490837812424, -0.030413035303354263, -0.038930125534534454, -0.05434371903538704, -0.0329519547522068, -0.029404668137431145, -0.005852123256772757, -0.02664966881275177, -0.04073077812790871, -0.03597705438733101, 0.00602768687531352, -0.016088837757706642, 0.0649675726890564, 0.009151820093393326, 0.05193084105849266, -0.00522639648988843, 0.0008147956104949117, 0.001679109176620841, -0.07263835519552231, 0.024164767935872078, -0.07134188711643219, 0.01905091293156147, -0.04973404482007027, 0.013252808712422848, -0.021967969834804535, 0.0029890844598412514, -0.054919928312301636, -0.08513488620519638, -0.09385005384683609, 0.000007490998996217968, 0.04109090939164162, -0.039290256798267365, -0.012091387063264847, -0.039326269179582596, -0.01957310177385807, -0.0008029788150452077, -0.00679296487942338, 0.013369850814342499, -0.007283642888069153, 0.03331208601593971, 0.008391044102609158, 0.010398772545158863, 0.003376225009560585, -0.012802645564079285, 0.02805417962372303, -0.026559635996818542, 0.05189482867717743, 0.011704246513545513, 0.056936658918857574, 0.03549087792634964, 0.04303561523556709, -0.006729941815137863, -0.0015992051921784878, -0.007832841947674751, -0.013892040587961674, 0.0010123047977685928, -0.0402626097202301, -0.0843425989151001, 0.0016914886655285954, 0.0039434307254850864, -0.021769898012280464, 0.021607840433716774, -0.001786023029126227, 0.03846195340156555, 0.01643996499478817, -0.03396032005548477, -0.03520277142524719, 0.06547175347805023, -0.010182694531977177, 0.02818022482097149, 0.007643773220479488, 0.007423193193972111, -0.0015339315868914127, -0.04335973039269447, -0.048617638647556305, -0.01179427932947874, 0.0010995239717885852, -0.029872838407754898, 0.0038849094416946173, -0.024740977212786674, 0.0324837863445282, -0.018600748851895332, -0.011695243418216705, 0.05992574244737625, -0.0012244442477822304, 0.0429275743663311, 0.029152577742934227, 0.026307545602321625, 0.036319177597761154, -0.020401401445269585, 0.045916661620140076, 0.007576249074190855, -0.05322731286287308, 0.006657915655523539, -0.012775635346770287, 0.03264584392309189, 0.05643247440457344, 0.0366072803735733, -0.03118731640279293, 0.01193833164870739, -0.001888435217551887, -0.030016891658306122, -0.04753724858164787, 0.03572496026754379, 0.03972241282463074, -0.01969914697110653, 0.031007250770926476, 0.006104214582592249, -0.03127734735608101, 0.00810744147747755, 0.005775595549494028, 0.006901003886014223, -0.06374312937259674, 0.01849270984530449, 0.03505872189998627, 0.022850289940834045, 0.004152756650000811, -0.05740482732653618, 0.05675659328699112, -0.03889411315321922, -0.0034910165704786777, 0.014882399700582027, 0.009097800590097904, 0.05823312699794769, -0.002716735703870654, 0.09853175282478333, 0.05153469741344452, 0.027459964156150818, 0.0732145607471466, -0.002545673632994294, 0.03111528977751732, -0.08355031162500381, -0.060033783316612244, 0.050742410123348236, -0.01814158260822296, -0.04537646472454071, 0.04299960285425186, -0.04047868773341179, 0.02231009490787983, -0.04771731421351433, -0.01888885349035263, 0.05326332524418831, 0.027604015544056892, -0.04534045234322548, -0.017817465588450432, -0.023210421204566956, 0.03975842520594597, 0.06651613116264343, -0.014675324782729149, -0.07771619409322739, 0.013072743080556393, -0.024939049035310745, 0.005500996019691229, -0.06136626377701759, -0.05059835687279701, -0.008679148741066456, -0.016656043007969856, -0.08621527999639511, 0.0022643215488642454, 0.00907079130411148, 0.012982710264623165, -0.0295847337692976, 0.009318380616605282, -0.05787299945950508, -0.04807744547724724, 0.04645685479044914, 0.02697378769516945, 0.009327384643256664, -0.028594374656677246, 0.026415584608912468, -0.000273614889010787, 0.036841366440057755, 0.02162584662437439, 0.024903034791350365, -0.07209815829992294, 0.04335973039269447, 0.0019188212463632226, -0.07058560848236084, -0.02837829664349556, 0.02146378718316555, 0.00009769950702320784, -0.007535734213888645, 0.0018985638162121177, -0.017961516976356506, 0.012424508109688759, 0.01254155021160841, 0.03424842655658722, 0.007400684989988804, 0.002426380291581154, -0.011218070052564144, 0.03885809704661369, 0.07476312667131424, 0.02162584662437439, 0.09917998313903809, 0.033096008002758026, 0.032213687896728516, -0.08952848613262177, 0.015611664392054081, -0.08477475494146347, -0.018033543601632118, -0.038750059902668, 0.015179507434368134, 0.014198151417076588, 0.05610835924744606, -0.033942315727472305, 0.02243614010512829, 0.014171142131090164, -0.008219982497394085, 0.0292966291308403, -0.004875268787145615, -0.03161947429180145, -0.07656378298997879, 0.0455925427377224, 0.033906303346157074, 0.014405226334929466, 0.02619950659573078, -0.01969914697110653, 0.03147542104125023, 0.04958999156951904, 0.02664966881275177, -0.041415028274059296, 0.033258065581321716, -0.0190869253128767, -0.024831010028719902, 0.015530634671449661, 0.024254800751805305, -0.01187530905008316, 0.014405226334929466, 0.08671946078538895, -0.001272836816497147, -0.04231535270810127, -0.008715162053704262, -0.024578917771577835, -0.03653525561094284, -0.003520277328789234, 0.050058163702487946, 0.04253143072128296, -0.016845112666487694, -0.006635407451540232, -0.05049031972885132, -0.0015879512066021562, 0.009246354922652245, 0.0639231950044632, 0.012127400375902653, -0.035112738609313965, 0.0733226016163826, -0.11063214391469955, -0.02149980142712593, -0.02371460385620594, -0.043791890144348145, -0.025875387713313103, -0.004893275443464518, 0.02038339525461197, 0.0033604693599045277, -0.003234423464164138, 0.0697212964296341, 0.014693330973386765, 0.029116563498973846, 0.007756314240396023, -0.03682336211204529, 0.013540913350880146, 0.00471321027725935, -0.04498032107949257, 0.03864201903343201, -0.006009680684655905, 0.027117839083075523, -0.014540275558829308, -0.008490080013871193, 0.07461907714605331, 0.029692772775888443, -0.04357581213116646, 0.03480662778019905, -0.017961516976356506, -0.03316803276538849, 0.029026532545685768, -0.039578359574079514, 0.08347828686237335, -0.046852998435497284, -0.062446657568216324, 0.06359907239675522, -0.029674766585230827, -0.07476312667131424, 0.03644522279500961, 0.027441956102848053, -0.055208031088113785, 0.00011725348304025829, 0.02576734870672226, -0.025137120857834816, -0.02263421192765236, 0.014072106219828129, -0.011416141875088215, 0.025893395766615868, 0.013027726672589779, 0.025857381522655487, 0.009300374425947666, -0.10487005114555359, -0.0065408730879426, 0.02528117224574089, -0.06118620187044144, -0.005915146321058273, 0.003916420973837376, -0.00518588162958622, 0.007409688550978899, -0.0082379886880517, 0.027928132563829422, -0.012433511205017567, -0.01029073353856802, -0.027189865708351135, -0.04019058123230934, 0.03835391625761986, -0.026037447154521942, 0.039290256798267365, -0.010470799170434475, 0.08952848613262177, -0.02789212018251419, 0.04926587641239166, 0.007405187003314495, 0.005978168919682503, 0.026595650240778923, 0.030016891658306122, -0.061798423528671265, 0.031439408659935, 0.00305435829795897, 0.016106843948364258, -0.029854832217097282, 0.07627567648887634, 0.029926858842372894, -0.0031556449830532074, -0.048653654754161835, -0.012046370655298233, -0.003124133450910449, -0.02596542052924633, 0.009867580607533455, 0.0165029875934124, -0.012919687665998936, -0.011614213697612286, 0.02022133767604828, -0.015170504339039326, -0.0004636682278942317 ]
17,210
imodels.rule_set.skope_rules
predict_proba
Predict probability of a particular sample being an outlier or not
def predict_proba(self, X) -> np.ndarray: '''Predict probability of a particular sample being an outlier or not ''' X = check_array(X) weight_sum = np.sum([w[0] for (r, w) in self.rules_without_feature_names_]) if weight_sum == 0: return np.vstack((np.ones(X.shape[0]), np.zeros(X.shape[0]))).transpose() y = self._eval_weighted_rule_sum(X) / weight_sum return np.vstack((1 - y, y)).transpose()
(self, X) -> numpy.ndarray
[ 0.02358187548816204, 0.019324278458952904, -0.029003797098994255, -0.03506870195269585, 0.03039403259754181, -0.044661328196525574, -0.01573573239147663, -0.03199280425906181, 0.07903490960597992, 0.002053856384009123, -0.0010285573080182076, 0.00884972047060728, 0.02295627072453499, -0.005704311653971672, -0.048553988337516785, 0.03701503202319145, 0.0089322654530406, -0.0024763576220721006, 0.014197783544659615, 0.026831552386283875, 0.009436226449906826, 0.02361663244664669, -0.042019881308078766, 0.02354712039232254, -0.011556335724890232, -0.027683071792125702, -0.023008404299616814, -0.04956191033124924, -0.008145913481712341, -0.018507516011595726, -0.02151389978826046, -0.013059528544545174, -0.007124959025532007, -0.02358187548816204, 0.0536283478140831, 0.006547142285853624, 0.04591254144906998, 0.017013011500239372, 0.03298334777355194, -0.06273439526557922, -0.024294372648000717, -0.06516730785369873, -0.051994822919368744, 0.020193176344037056, -0.0178297758102417, -0.01010527741163969, -0.027387646958231926, 0.07618492841720581, 0.009236379526555538, 0.017334504052996635, -0.0027891607023775578, 0.03341779485344887, 0.0549490749835968, 0.03173213452100754, 0.007142337039113045, 0.025597717612981796, -0.0021146791987121105, 0.003690641839057207, 0.00970558449625969, -0.013415776193141937, 0.048380207270383835, 0.055470410734415054, 0.045634493231773376, -0.04445279389619827, 0.05745149776339531, -0.03166262060403824, -0.014493209309875965, 0.014423697255551815, 0.018611783161759377, 0.01192996185272932, -0.008515194989740849, -0.04080342501401901, -0.011912583373486996, 0.05056982859969139, 0.019167877733707428, 0.0073117720894515514, 0.037675391882658005, -0.038231488317251205, 0.007598508149385452, 0.020679758861660957, 0.007933033630251884, 0.006529764272272587, 0.020923050120472908, -0.04330584779381752, -0.02193097025156021, -0.0544624924659729, 0.020610246807336807, -0.02193097025156021, 0.040942445397377014, 0.029577268287539482, -0.010339879430830479, 0.05036129429936409, 0.06634900718927383, 0.018907207995653152, 0.048727769404649734, 0.020801404491066933, -0.005004849284887314, 0.02330382913351059, 0.03861379995942116, -0.02870837040245533, 0.013094284571707249, 0.03896136209368706, -0.01693481020629406, 0.052168600261211395, 0.008476094342768192, 0.07569834589958191, 0.033956512808799744, 0.02916019782423973, -0.04396621137857437, -0.012998705729842186, -0.004522610921412706, -0.000012668592717091087, -0.04031684249639511, -0.037849172949790955, -0.022504443302750587, -0.03074159100651741, -0.04271499812602997, 0.024381261318922043, -0.034512605518102646, 0.02929922193288803, 0.024537663906812668, 0.006820844952017069, -0.07569834589958191, -0.005009193904697895, -0.045634493231773376, -0.008276248350739479, 0.059224050492048264, 0.0090191550552845, 0.013893669471144676, 0.019498057663440704, -0.018716050311923027, -0.0013185518328100443, -0.032861702144145966, -0.0003337109228596091, -0.02723124623298645, -0.05001373589038849, 0.030550433322787285, -0.030307142063975334, 0.12762364745140076, -0.0729178711771965, 0.08348366618156433, -0.010027076117694378, 0.025980032980442047, -0.00979247409850359, 0.07868735492229462, -0.003188853617757559, 0.06638376414775848, 0.052307624369859695, 0.03463425114750862, -0.04021257162094116, -0.027352891862392426, 0.013502665795385838, -0.01344184298068285, -0.0699983760714531, 0.041359517723321915, 0.0268489308655262, -0.02295627072453499, -0.0722922682762146, -0.008684629574418068, -0.09252019971609116, -0.002038650680333376, -0.01696956716477871, -0.020019397139549255, -0.01573573239147663, 0.015440307557582855, 0.019741348922252655, 0.028030630201101303, 0.08132880181074142, 0.04629485681653023, -0.01930689997971058, 0.008814964443445206, -0.04987471178174019, -0.00996625330299139, 0.03081110306084156, 0.013415776193141937, 0.06742644309997559, 0.013589555397629738, 0.011156642809510231, -0.008619462139904499, 0.06113562360405922, 0.06958130747079849, 0.0021114207338541746, -0.017673373222351074, -0.041811343282461166, -0.008576017804443836, -0.00190831592772156, 0.02385992370545864, 0.028204411268234253, -0.059258803725242615, 0.04949239641427994, -0.048171672970056534, -0.023842545226216316, 0.029559889808297157, 0.032027557492256165, 0.009497049264609814, 0.01989775151014328, -0.02021055482327938, 0.04375767335295677, 0.007133647799491882, -0.04441803693771362, 0.026762040331959724, -0.01607460156083107, -0.04285402223467827, 0.03875282406806946, -0.06534108519554138, -0.028586724773049355, -0.0364936925470829, -0.003443005960434675, -0.020697137340903282, -0.05189055576920509, 0.03435620293021202, 0.0020592869259417057, 0.030307142063975334, -0.04278450831770897, 0.033956512808799744, 0.055783215910196304, 0.07093678414821625, -0.0035255514085292816, -0.04191561043262482, -0.01982823945581913, -0.04643387719988823, -0.037988197058439255, -0.02491997741162777, 0.05880697816610336, 0.06916423887014389, -0.0006842567236162722, 0.02881263941526413, 0.009384091943502426, 0.04455706104636192, -0.007376939058303833, 0.0030976193957030773, 0.015301283448934555, 0.03555528447031975, -0.060023434460163116, 0.034026023000478745, 0.04330584779381752, -0.055852726101875305, -0.028725748881697655, -0.0543234683573246, 0.029507756233215332, 0.011677981354296207, -0.0178645309060812, -0.0007678880938328803, 0.002650137059390545, 0.0175517275929451, 0.045182667672634125, 0.052689939737319946, 0.003065035678446293, 0.005704311653971672, -0.00042793198372237384, 0.02488522231578827, 0.005560943391174078, -0.02863885834813118, -0.01993250660598278, -0.01824684627354145, -0.026136435568332672, 0.025875765830278397, 0.007885243743658066, 0.030585190281271935, 0.011121886782348156, -0.014275984838604927, -0.02161816880106926, -0.0043596928007900715, -0.028134899213910103, -0.015388173051178455, 0.037988197058439255, 0.0058694020844995975, 0.015544574707746506, 0.041811343282461166, 0.03145408630371094, -0.002385123400017619, -0.02337334118783474, -0.002019100356847048, -0.06096184253692627, -0.0025741085410118103, 0.05116068199276924, 0.044730838388204575, 0.018959341570734978, 0.06554961949586868, 0.03750161454081535, 0.024137970060110092, -0.052724696695804596, 0.022017860785126686, 0.028482457622885704, -0.006594931706786156, -0.020784026011824608, 0.011408623307943344, -0.02158341184258461, 0.024537663906812668, 0.01540555153042078, 0.023251695558428764, 0.01526652742177248, 0.009557872079312801, -0.012364410795271397, 0.014032693579792976, 0.006820844952017069, 0.03882233798503876, -0.05769478902220726, 0.029907450079917908, 0.004965748637914658, 0.01577048748731613, 0.052550915628671646, -0.03355681896209717, -0.04087293520569801, -0.020054152235388756, 0.03108914941549301, 0.03861379995942116, -0.04778935760259628, -0.03951745480298996, -0.02389467880129814, 0.02571936324238777, 0.021079450845718384, 0.03249676525592804, 0.02120109647512436, -0.06374231725931168, 0.0001249718916369602, 0.072014220058918, -0.000940581492614001, 0.02723124623298645, 0.02344285324215889, -0.02863885834813118, -0.013963181525468826, -0.00391438277438283, -0.01958494819700718, 0.018924586474895477, 0.005056982859969139, -0.015084058977663517, -0.03550314903259277, -0.03435620293021202, -0.04924910515546799, 0.002919495338574052, -0.029490379616618156, 0.0022895447909832, 0.03011598438024521, -0.0529332309961319, 0.010044454596936703, 0.0031540975905954838, 0.011825693771243095, -0.012729347683489323, 0.012659835629165173, -0.0715276375412941, -0.037293076515197754, -0.029681535437703133, 0.06259536743164062, 0.009844607673585415, -0.05366310477256775, -0.06780875474214554, 0.0364936925470829, 0.006686165928840637, 0.001093181548640132, 0.015501130372285843, 0.025423938408493996, 0.044661328196525574, 0.09856772422790527, 0.04375767335295677, -0.04080342501401901, 0.00691207917407155, 0.03673698380589485, 0.03225347399711609, -0.009688206017017365, 0.010974174365401268, -0.03892660513520241, -0.03604186698794365, 0.028551969677209854, 0.005382819566875696, 0.0058607133105397224, 0.0018409764161333442, 0.05859844386577606, -0.020679758861660957, 0.011556335724890232, -0.04375767335295677, -0.021392254158854485, -0.06958130747079849, 0.025493450462818146, 0.015753110870718956, -0.0183163583278656, 0.0038687658961862326, -0.04559973627328873, 0.044348523020744324, 0.008706352673470974, -0.04775460436940193, 0.0014184750616550446, -0.060023434460163116, 0.03543363884091377, 0.00004962218736181967, 0.010470214299857616, -0.006134415976703167, -0.036007110029459, 0.06860814243555069, -0.05717344954609871, 0.03896136209368706, 0.003488623071461916, -0.041116226464509964, -0.04035159572958946, -0.01776026375591755, -0.00024410587502643466, -0.032514140009880066, 0.026623018085956573, -0.011408623307943344, 0.01175618264824152, -0.06030148267745972, 0.0043944488279521465, -0.0371888093650341, -0.011538958176970482, -0.06718315184116364, -0.038092464208602905, -0.03334828466176987, 0.038092464208602905, 0.010904662311077118, 0.06221305578947067, -0.06534108519554138, 0.07576785236597061, 0.025980032980442047, -0.07486420124769211, 0.0026783763896673918, 0.05296798795461655, 0.013137728907167912, -0.007472517900168896, 0.007455139886587858, -0.03534674644470215, 0.027752583846449852, -0.03095012716948986, 0.01793404296040535, -0.0359375961124897, -0.011339111253619194, -0.010157410986721516, 0.0001865414233179763, 0.00572168966755271, 0.026414481922984123, 0.056513089686632156, -0.02571936324238777, -0.05373261868953705, -0.04056013375520706, -0.055922240018844604, -0.015709664672613144, -0.012659835629165173, -0.01982823945581913, -0.0010117224883288145, -0.006177860777825117, -0.0010774327674880624, -0.01177356019616127, 0.058876488357782364, 0.04215890169143677, 0.0699983760714531, -0.003912210464477539, -0.008185014128684998, -0.01583131030201912, -0.073821522295475, -0.029577268287539482, -0.04622534289956093, 0.015501130372285843, -0.04226317256689072, 0.08258001506328583, 0.0025589028373360634, -0.0044183433055877686, -0.007142337039113045, -0.06965082138776779, -0.08960070461034775, -0.0091060446575284, 0.02306053787469864, 0.010270367376506329, 0.023842545226216316, -0.006099659949541092, -0.005513153970241547, -0.00351903447881341, -0.026223324239253998, -0.0044183433055877686, 0.0019506746903061867, 0.007198815234005451, 0.019046232104301453, 0.020332200452685356, -0.0018887658370658755, 0.018055688589811325, -0.0020484256092458963, -0.0357290618121624, 0.027665693312883377, 0.010218233801424503, 0.0367022268474102, 0.06620998680591583, 0.03355681896209717, 0.027874229475855827, -0.00917555671185255, 0.008636840619146824, 0.019498057663440704, -0.016873987391591072, -0.017569106072187424, -0.04587778449058533, -0.014519276097416878, 0.0031128250993788242, -0.010687438771128654, 0.015605397522449493, -0.00541323097422719, 0.05373261868953705, 0.07618492841720581, -0.07632394880056381, -0.03525985777378082, 0.07507273554801941, -0.014840767718851566, 0.03214920312166214, -0.0060431817546486855, 0.0019810860976576805, -0.01721285842359066, -0.048553988337516785, -0.06669656932353973, -0.029855316504836082, -0.003254020819440484, -0.05814661458134651, 0.024416018277406693, -0.02505900152027607, 0.041568052023649216, -0.004277147818356752, -0.017916664481163025, 0.023564498871564865, -0.00822411384433508, 0.03194066882133484, 0.040977202355861664, 0.03190591186285019, 0.055991750210523605, -0.02919495292007923, 0.01563146524131298, 0.024659309536218643, -0.015431618317961693, -0.005587010644376278, -0.018837695941329002, 0.03499918803572655, 0.05098690092563629, 0.03042878769338131, -0.05050031840801239, 0.013276753015816212, 0.004692045971751213, -0.0071032363921403885, -0.06130940094590187, 0.03896136209368706, 0.015753110870718956, -0.0041533298790454865, 0.02288675867021084, 0.006742644123733044, -0.048275940120220184, -0.012920504435896873, 0.0004385216743685305, 0.0178297758102417, -0.04685094952583313, 0.04643387719988823, 0.024450773373246193, 0.041672319173812866, 0.04076866805553436, -0.0740300640463829, 0.03889184817671776, -0.08167635649442673, -0.013858914375305176, -0.016569873318076134, -0.0037666703574359417, 0.017013011500239372, 0.0186291616410017, 0.11538957804441452, 0.026275457814335823, 0.013919737190008163, 0.056408822536468506, 0.00016400439199060202, 0.03722356632351875, -0.06669656932353973, -0.11636274307966232, 0.05526187643408775, -0.04021257162094116, -0.06068379804491997, 0.04226317256689072, -0.06186549738049507, 0.045008886605501175, -0.04643387719988823, -0.02571936324238777, 0.03341779485344887, 0.011365178041160107, -0.03597235307097435, -0.0038253208622336388, -0.025910520926117897, -0.02196572721004486, 0.07555931806564331, -0.03659795969724655, -0.06541059911251068, 0.007051102817058563, -0.02193097025156021, 0.0037840483710169792, -0.03958696871995926, -0.052411891520023346, 0.0007260724087245762, -0.015501130372285843, -0.05762527883052826, 0.01996726356446743, 0.026119057089090347, -0.015440307557582855, -0.051960065960884094, -0.004865825641900301, -0.0367717407643795, -0.04778935760259628, 0.014979791827499866, 0.009210312739014626, -0.0053610969334840775, -0.01676972024142742, 0.0019626221619546413, 0.007685397751629353, 0.04330584779381752, 0.044487547129392624, 0.052689939737319946, -0.02575412020087242, 0.06798253208398819, 0.008015578612685204, -0.06308194994926453, -0.04250646382570267, 0.009349335916340351, -0.015605397522449493, -0.010365946218371391, 0.015344728715717793, -0.006243028212338686, 0.02523278072476387, -0.005222073756158352, 0.010287745855748653, -0.029525134712457657, 0.00038747393409721553, -0.011017619632184505, 0.04417474567890167, 0.03169737756252289, -0.010948107577860355, 0.06947703659534454, 0.0554356575012207, 0.011087130755186081, -0.06266488134860992, 0.04250646382570267, -0.06926850229501724, -0.01082646194845438, -0.015396862290799618, 0.008554295636713505, 0.01982823945581913, 0.052168600261211395, -0.0367717407643795, 0.034234557300806046, 0.04205463454127312, 0.010861217975616455, 0.017117278650403023, -0.013615623116493225, -0.05129970610141754, -0.07840930670499802, -0.005182973109185696, 0.03983025997877121, -0.0015542402397841215, 0.016856610774993896, -0.02481571026146412, -0.020419089123606682, 0.023355962708592415, 0.015570641495287418, -0.027491914108395576, 0.024398639798164368, -0.09029582142829895, -0.008584707044064999, 0.03190591186285019, -0.001373944105580449, 0.022017860785126686, -0.0016433022683486342, 0.09397994726896286, -0.028134899213910103, -0.05053507536649704, -0.041081469506025314, -0.034790653735399246, -0.020853538066148758, -0.003225781721994281, 0.037432100623846054, 0.049005813896656036, -0.016778409481048584, -0.045530226081609726, -0.053975909948349, -0.016430851072072983, 0.004172879736870527, 0.05699967220425606, -0.02014104276895523, -0.018768183887004852, 0.0738910362124443, -0.08675071597099304, -0.0184901375323534, -0.019167877733707428, -0.05018751695752144, -0.026449237018823624, 0.029942205175757408, -0.01644822768867016, 0.008654218167066574, -0.04605156555771828, 0.0543234683573246, 0.0035212067887187004, 0.02158341184258461, -0.0008488041930831969, -0.03362632915377617, 0.016196247190237045, -0.008258869871497154, -0.032653164118528366, 0.03666746988892555, 0.0009666483965702355, 0.0030541743617504835, -0.016717586666345596, -0.00884972047060728, 0.03708454221487045, 0.04024732857942581, -0.04195036739110947, 0.0273702684789896, -0.029907450079917908, -0.02712697722017765, 0.0034169391728937626, -0.03906562924385071, 0.08953119069337845, -0.0357290618121624, -0.051925309002399445, 0.022626088932156563, -0.037814415991306305, -0.07611541450023651, 0.032548896968364716, -0.007381283678114414, -0.056096017360687256, -0.011799626983702183, 0.03976074606180191, -0.03850953280925751, -0.012329654768109322, -0.0358680859208107, -0.017812397330999374, 0.009992320090532303, 0.02024530991911888, 0.005639144219458103, 0.010722193866968155, -0.09363238513469696, -0.010939418338239193, 0.026275457814335823, -0.09641285985708237, -0.025736741721630096, -0.0041272626258432865, 0.014519276097416878, 0.010418079793453217, -0.028586724773049355, 0.01089597400277853, 0.008093779906630516, 0.013276753015816212, -0.02140963263809681, -0.04431376978754997, 0.04090769216418266, 0.011669292114675045, -0.004392276518046856, 0.0009443829185329378, 0.05157775059342384, -0.03174951300024986, 0.033956512808799744, 0.01344184298068285, 0.004870170261710882, 0.015240460634231567, 0.038300998508930206, -0.07959100604057312, 0.02333858422935009, 0.0357985757291317, 0.009827230125665665, 0.005217729136347771, 0.05668686702847481, 0.002567591844126582, 0.04678143933415413, -0.044661328196525574, -0.03486016392707825, -0.026362348347902298, -0.044626571238040924, 0.011217465624213219, -0.014128272421658039, 0.01693481020629406, 0.014649610966444016, 0.007424728479236364, 0.02519802562892437, 0.018802940845489502 ]
17,212
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``. undiscretized_features : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``undiscretized_features`` 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.fpskope.FPSkopeClassifier, *, feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', sample_weight: Union[bool, NoneType, str] = '$UNCHANGED$', undiscretized_features: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_set.fpskope.FPSkopeClassifier
[ 0.0437953919172287, -0.058368489146232605, -0.019139079377055168, 0.004718182608485222, -0.002958376659080386, -0.017293661832809448, -0.011548132635653019, 0.010007113218307495, 0.05703674256801605, 0.010910797864198685, -0.021460121497511864, 0.006535063497722149, 0.05125316232442856, -0.005307955667376518, -0.01993812806904316, 0.03747911378741264, 0.029983291402459145, 0.023800188675522804, 0.030135490000247955, -0.033636078238487244, 0.019196154549717903, -0.04280609264969826, -0.028727645054459572, 0.01498213317245245, 0.008494631387293339, 0.06555990874767303, 0.037935711443424225, -0.0453173853456974, 0.08994986861944199, -0.006573113612830639, -0.025169983506202698, -0.0142116229981184, 0.014601633884012699, 0.06289642304182053, 0.028974968940019608, -0.03156236186623573, -0.010768110863864422, 0.022753817960619926, -0.0625920221209526, -0.015315068885684013, -0.03719373792409897, -0.026749052107334137, 0.04858967289328575, -0.09672274440526962, 0.05943388491868973, 0.031904809176921844, -0.005369786638766527, 0.10509371757507324, -0.019158104434609413, -0.01772172376513481, 0.013165252283215523, -0.011215196922421455, 0.01511530764400959, -0.005089168902486563, -0.005854922346770763, 0.057455290108919144, 0.05559084564447403, 0.04406173899769783, 0.05947193503379822, 0.028023723512887955, 0.027148576453328133, 0.034701474010944366, 0.03238043189048767, -0.008385238237679005, -0.04345294088125229, -0.03871573507785797, -0.046420831233263016, -0.01381209958344698, 0.008675368502736092, 0.031676508486270905, 0.028670569881796837, -0.017930997535586357, 0.005474423989653587, 0.026691976934671402, 0.021612321957945824, -0.02638757973909378, -0.04052310064435005, -0.05243270844221115, 0.05292735621333122, -0.041664596647024155, 0.01707487553358078, -0.017255611717700958, -0.027034426108002663, -0.08112230151891708, -0.009112942032516003, -0.032209206372499466, -0.008456581272184849, -0.04927457123994827, 0.03938160836696625, 0.0029702673200517893, -0.08553608506917953, 0.05151951313018799, -0.016237778589129448, -0.002998804673552513, 0.00953624676913023, -0.030630137771368027, 0.001857308903709054, -0.058406535536050797, 0.0024565942585468292, -0.02657782845199108, 0.0006955990102142096, 0.035900045186281204, 0.0664350613951683, 0.07571922242641449, 0.03704154118895531, -0.050530217587947845, -0.016703888773918152, -0.008618293330073357, -0.011205684393644333, -0.00385492667555809, 0.011453008279204369, -0.010825185105204582, -0.05958608165383339, 0.01911054365336895, 0.0012925062328577042, 0.0010820429306477308, -0.01970982737839222, -0.04333879053592682, -0.05087266489863396, -0.01494408305734396, -0.026844177395105362, 0.01110104750841856, -0.025379257276654243, -0.06365741789340973, 0.0006611163262277842, 0.0042782314121723175, 0.009560028091073036, 0.013393551111221313, 0.04478468745946884, -0.07248498499393463, -0.03161943331360817, -0.006791900377720594, -0.03900110721588135, 0.09291776269674301, 0.04402368888258934, 0.016228266060352325, 0.04744817689061165, 0.020489851012825966, -0.011957168579101562, 0.05905338376760483, -0.002965511055663228, 0.02009032666683197, 0.03679421544075012, -0.021326947957277298, -0.0013412575935944915, -0.0507204644382, 0.026939302682876587, -0.00015576662553939968, 0.02566463127732277, -0.034130726009607315, 0.02593098022043705, -0.018273446708917618, 0.0028680083341896534, -0.01268011610955, -0.0026563559658825397, 0.0018941696034744382, 0.023039191961288452, -0.004841845016926527, 0.011243733577430248, -0.018197346478700638, -0.004782392177730799, -0.005640891846269369, -0.012128393165767193, -0.09139576554298401, 0.03523417189717293, 0.02144109643995762, -0.006102246697992086, -0.04851357266306877, -0.03829718381166458, 0.03550051897764206, -0.06087977811694145, -0.027757374569773674, -0.03380730003118515, 0.006829950027167797, 0.03531027212738991, 0.03930550813674927, 0.017122438177466393, 0.005574304610490799, 0.008627805858850479, 0.02808079682290554, 0.013745512813329697, -0.05258490890264511, -0.08553608506917953, -0.03580491989850998, 0.00637810816988349, 0.07119128853082657, 0.006435182876884937, 0.001882279058918357, -0.04364319145679474, 0.045583732426166534, 0.029374493286013603, -0.008370969444513321, 0.053688354790210724, 0.03441609814763069, -0.031200885772705078, -0.04805697500705719, -0.05909143388271332, 0.0487799234688282, 0.01381209958344698, 0.0768226683139801, 0.058406535536050797, 0.009013060480356216, 0.018891755491495132, 0.04904627054929733, 0.006107002962380648, 0.049921419471502304, 0.0364898182451725, -0.00011422389798099175, -0.05239465832710266, -0.013051102869212627, 0.013231839053332806, -0.026596853509545326, 0.01809270866215229, -0.008470850065350533, 0.003945295233279467, -0.010834697633981705, 0.017807334661483765, -0.015581417828798294, -0.012052293866872787, -0.022867966443300247, 0.09276556223630905, 0.04817112535238266, 0.033598028123378754, 0.019804952666163445, 0.02589293010532856, -0.031124787405133247, 0.05555279925465584, -0.0518619604408741, -0.03664201498031616, -0.0791437104344368, 0.004672998562455177, 0.0007520793005824089, 0.018720531836152077, 0.04383344203233719, -0.034777574241161346, -0.01993812806904316, 0.03618541732430458, 0.038544509559869766, -0.013441113755106926, -0.006720556877553463, -0.005931022111326456, 0.04938872158527374, 0.050073616206645966, 0.03310338035225868, -0.05502010136842728, -0.0169987753033638, -0.00455171475186944, 0.06780485063791275, 0.04288219287991524, -0.0018466073088347912, 0.04276804253458977, -0.025797806680202484, -0.05193806067109108, -0.0028156896587461233, -0.031048687174916267, -0.034054625779390335, -0.042083147913217545, 0.0002672408299986273, 0.04292024299502373, -0.01528653223067522, -0.030744288116693497, 0.012147418223321438, 0.0019096274627372622, 0.04139824956655502, 0.018102221190929413, 0.011785944923758507, 0.04314854368567467, 0.013859662227332592, -0.05566694587469101, 0.004770501516759396, -0.009488684125244617, 0.04505103453993797, -0.0014887008583173156, 0.017626598477363586, -0.018263934180140495, -0.05239465832710266, -0.00012529701052699238, -0.024332886561751366, -0.04326269403100014, -0.012356692925095558, 0.050149716436862946, -0.023609938099980354, 0.04330074042081833, 0.006126027554273605, -0.014420897699892521, -0.03068721294403076, -0.0045683616772294044, 0.053650304675102234, 0.012280592694878578, -0.020889373496174812, 0.011082022450864315, 0.007728877943009138, -0.005869191139936447, -0.042577795684337616, 0.032133106142282486, -0.0034482686314731836, -0.07309378683567047, 0.001287749968469143, 0.0017086765728890896, -0.011529107578098774, 0.020946448668837547, -0.0011664660414680839, -0.0330272801220417, -0.017816847190260887, 0.05281320586800575, -0.02155524678528309, 0.0810462012887001, -0.008023764938116074, -0.01175740733742714, 0.005688454490154982, 0.0038953544571995735, 0.04524128511548042, -0.033559978008270264, -0.0445563867688179, -0.0012485110200941563, -0.0026373309083282948, -0.013916736468672752, 0.018197346478700638, 0.04018065333366394, 0.1041044220328331, -0.014420897699892521, 0.04737207666039467, -0.03439707309007645, -0.007348379585891962, -0.013992836698889732, -0.012166443280875683, -0.0035029654391109943, -0.004171215929090977, -0.038316208869218826, 0.0009072513785213232, -0.03125796094536781, -0.0038525485433638096, 0.022639667615294456, 0.024770459160208702, -0.08614488691091537, 0.03125796094536781, -0.004135544411838055, -0.02347676455974579, 0.014592122286558151, -0.012356692925095558, 0.03502489626407623, -0.01745537482202053, -0.006235421169549227, -0.012708653695881367, -0.036394692957401276, -0.011215196922421455, 0.05190001055598259, -0.0023329320829361677, 0.0791437104344368, -0.0234387144446373, 0.021422071382403374, -0.038087911903858185, 0.05212831124663353, 0.04900822043418884, 0.08431849628686905, -0.006601650733500719, -0.013802587054669857, -0.045812033116817474, -0.007519603706896305, -0.07092494517564774, 0.02846129611134529, -0.04855162277817726, -0.003633761778473854, 0.006107002962380648, 0.01085372269153595, -0.0009268708527088165, -0.02543633244931698, 0.0037383988965302706, 0.025835856795310974, -0.05650404468178749, 0.003498209174722433, -0.09839694201946259, -0.054335203021764755, 0.023990437388420105, 0.01914859190583229, 0.0021783546544611454, -0.03999040275812149, -0.017930997535586357, -0.05075851455330849, 0.028746670112013817, 0.032171156257390976, 0.022145019844174385, -0.005017825402319431, 0.011338858865201473, 0.010368587449193, -0.045773983001708984, 0.025759756565093994, 0.0161331407725811, 0.038430359214544296, -0.017731236293911934, 0.021916721016168594, -0.05281320586800575, -0.014278210699558258, 0.010653961449861526, -0.0189202930778265, -0.069935642182827, 0.02619732916355133, -0.01033053733408451, 0.007224717643111944, -0.042653895914554596, 0.05448739975690842, -0.056465994566679, 0.013060614466667175, 0.02450411021709442, 0.03445414826273918, 0.009716982953250408, 0.038316208869218826, 0.026996375992894173, 0.015657518059015274, 0.01922469213604927, -0.04885602369904518, -0.04889407008886337, 0.02012837678194046, -0.024142637848854065, -0.0016789501532912254, 0.01658022776246071, 0.028689594939351082, -0.004770501516759396, 0.029393518343567848, 0.00647323252633214, 0.05616159364581108, 0.008661099709570408, 0.019472016021609306, 0.034701474010944366, 0.05167171359062195, 0.006829950027167797, -0.04508908465504646, -0.042653895914554596, -0.002506534568965435, 0.04139824956655502, 0.00884183682501316, 0.029393518343567848, -0.041474349796772, -0.008532681502401829, -0.036318592727184296, -0.015457755886018276, -0.05650404468178749, -0.025036808103322983, 0.013279401697218418, 0.05113901197910309, -0.05638989433646202, -0.04467053711414337, -0.017655136063694954, -0.022183069959282875, -0.042615845799446106, -0.054030802100896835, 0.010463711805641651, 0.038810860365629196, 0.05688454210758209, -0.0664350613951683, 0.05323175713419914, 0.030820388346910477, 0.005355517845600843, 0.041702646762132645, -0.02347676455974579, -0.05212831124663353, 0.03529124706983566, -0.050530217587947845, -0.006068952847272158, 0.03879183530807495, 0.034244876354932785, 0.0027538586873561144, -0.06255397200584412, -0.020889373496174812, -0.02789054811000824, 0.03468244895339012, 0.016779989004135132, 0.010577861219644547, -0.06658725440502167, -0.032551657408475876, 0.030249640345573425, -0.06978344917297363, -0.028480321168899536, -0.010311512276530266, -0.023305540904402733, 0.0217074453830719, -0.013298426754772663, 0.02066107466816902, -0.07122933864593506, -0.02201184444129467, 0.01692267507314682, -0.024561185389757156, 0.04094165191054344, 0.05129121243953705, -0.017141463235020638, -0.06620676070451736, -0.013279401697218418, -0.0020035631023347378, -0.022829916328191757, -0.007529116235673428, -0.00953624676913023, 0.06502721458673477, 0.054106902331113815, 0.028137871995568275, -0.017407812178134918, 0.05330785736441612, 0.04535543546080589, 0.015543368645012379, -0.01895834319293499, -0.014392360113561153, -0.01870150677859783, -0.03300825506448746, 0.020223502069711685, 0.041854847222566605, 0.015533856116235256, -0.050149716436862946, -0.0468774288892746, -0.01576215587556362, 0.0018121246248483658, -0.007043980527669191, -0.024751434102654457, -0.00424969382584095, -0.004889407195150852, 0.06080367788672447, -0.004458968061953783, -0.017322199419140816, -0.07743147015571594, 0.008085595443844795, -0.05574304610490799, -0.013992836698889732, 0.06848975270986557, 0.012794265523552895, 0.053612254559993744, -0.05167171359062195, 0.011614720337092876, -0.0009756222134456038, 0.012955977581441402, -0.018749069422483444, -0.01298451516777277, 0.028955943882465363, -0.011205684393644333, -0.006178346462547779, -0.010206875391304493, 0.01734122447669506, 0.015838254243135452, 0.06148857623338699, -0.02423776127398014, -0.011500570923089981, 0.04664912819862366, 0.005303199402987957, 0.024751434102654457, 0.04025675356388092, -0.06514136493206024, 0.031600408256053925, -0.006045171525329351, -0.04406173899769783, 0.023457739502191544, -0.013441113755106926, 0.022791866213083267, -0.09139576554298401, -0.06266812235116959, 0.038506459444761276, 0.041740696877241135, 0.015609955415129662, -0.012309130281209946, 0.010311512276530266, 0.053650304675102234, -0.018121246248483658, 0.03023061528801918, 0.016370952129364014, -0.020109351724386215, -0.026920277625322342, 0.025493407621979713, 0.029013019055128098, -0.037859611213207245, 0.07735536992549896, 0.05330785736441612, 0.015667030587792397, -0.04668717831373215, -0.09428755939006805, -0.00858975574374199, 0.007581434678286314, -0.003227103967219591, 0.02751005068421364, -0.035823944956064224, 0.058292388916015625, 0.01703682541847229, -0.018140271306037903, -0.0326467826962471, -0.06000463292002678, 0.026768077164888382, -0.046496931463479996, 0.0217074453830719, -0.022106969729065895, -0.06746240705251694, 0.003093929262831807, -0.014611146412789822, 0.04295829311013222, -0.01688462682068348, 0.007348379585891962, -0.03154333680868149, -0.07016394287347794, -0.03521514683961868, -0.036508843302726746, 0.024599235504865646, 0.0449368879199028, -0.05585719645023346, -0.032247256487607956, 0.03426390141248703, -0.02747200056910515, -0.04025675356388092, 0.02005227655172348, 0.011843019165098667, 0.009950038976967335, -0.007676559500396252, 0.002756236819550395, -0.046040333807468414, 0.02273479290306568, 0.0166182778775692, -0.022259168326854706, -0.004095116164535284, -0.020832298323512077, 0.01189058180898428, -0.02450411021709442, 0.026939302682876587, 0.021174747496843338, -0.030915511772036552, 0.054259102791547775, 0.049769219011068344, -0.09816864132881165, -0.020261550322175026, -0.03234238177537918, 0.008608780801296234, 0.005883459933102131, -0.05688454210758209, 0.014496996998786926, 0.009032085537910461, -0.07020199298858643, -0.010492249391973019, -0.05243270844221115, 0.012185468338429928, -0.025208033621311188, 0.04288219287991524, 0.0019869161769747734, 0.09230896085500717, -0.01692267507314682, 0.07073469460010529, 0.024675335735082626, -0.06575015932321548, 0.016713401302695274, 0.0020535034127533436, 0.00953624676913023, -0.021098647266626358, 0.028252022340893745, -0.0660545602440834, 0.037783510982990265, -0.003990479279309511, -0.04280609264969826, 0.08774297684431076, -0.012375717051327229, -0.037745460867881775, 0.07716511934995651, -0.03715568780899048, 0.005032094195485115, 0.058825086802244186, -0.015952404588460922, -0.015096282586455345, -0.003362656570971012, 0.030706238001585007, -0.04546958580613136, -0.024941684678196907, -0.004782392177730799, 0.058558735996484756, -0.031980909407138824, -0.0019916724413633347, 0.021574271842837334, -0.038164012134075165, -0.05452544987201691, 0.07408308237791061, 0.0560854971408844, 0.015781180933117867, 0.008656343445181847, -0.0028822768945246935, 0.01564800553023815, 0.021288897842168808, -0.01846369542181492, 0.03049696423113346, -0.04744817689061165, -0.0272817499935627, 0.034435123205184937, -0.00690604979172349, 0.042235344648361206, -0.04874187335371971, 0.05144341289997101, 0.0001594824279891327, -0.00760521600022912, 0.027186626568436623, 0.00023186634643934667, -0.011491058394312859, -0.053764455020427704, 0.00031242502154782414, -0.08211160451173782, 0.057759691029787064, 0.02454216033220291, -0.009032085537910461, 0.00037455331766977906, -0.08386189490556717, -0.07667046785354614, 0.030439889058470726, -0.0070915427058935165, -0.002620684215798974, 0.018073683604598045, 0.005797847639769316, -0.014325772412121296, 0.007724121678620577, 0.007733634207397699, 0.007029711734503508, -0.020033251494169235, 0.004694401752203703, -0.029754990711808205, 0.04097970202565193, 0.007552897557616234, 0.04128409922122955, -0.04307244345545769, 0.0802852064371109, 0.009621858596801758, -0.006615919526666403, -0.0071486178785562515, 0.010149800218641758, 0.028765695169568062, 0.014373335056006908, -0.00819498859345913, 0.04040895402431488, -0.03896305710077286, -0.006986905820667744, -0.00041171140037477016, -0.022373318672180176, -0.0328560546040535, -0.0013388794614002109, -0.01937689259648323, 0.08378579467535019, 0.0066492133773863316, -0.012423279695212841, -0.005193806253373623, 0.0368703156709671, -0.081426702439785, 0.006064196582883596, -0.0060023656114935875, 0.024903634563088417, 0.050149716436862946, -0.042577795684337616, 0.05893923342227936, -0.03753618896007538, 0.04383344203233719, 0.020908398553729057, 0.02216404490172863, 0.008152183145284653, 0.005740772932767868, 0.0741591826081276, -0.013536238111555576, 0.02800469845533371, 0.016028504818677902, 0.00597382802516222, 0.0037169959396123886, 0.02163134701550007, -0.054373253136873245, 0.0036932146176695824, 0.014896520413458347, 0.033788278698921204, -0.026064155623316765, -0.05121511220932007, -0.020413750782608986, 0.0023483899421989918, -0.0150772575289011, 0.021307922899723053, 0.027110526338219643, 0.02009032666683197, 0.05627574399113655 ]
17,215
imodels.rule_list.greedy_rule_list
GreedyRuleListClassifier
null
class GreedyRuleListClassifier(BaseEstimator, RuleList, ClassifierMixin): def __init__(self, max_depth: int = 5, class_weight=None, criterion: str = 'gini'): ''' Params ------ max_depth Maximum depth the list can achieve criterion: str Criterion used to split 'gini', 'entropy', or 'log_loss' ''' self.max_depth = max_depth self.class_weight = class_weight self.criterion = criterion self.depth = 0 # tracks the fitted depth def fit(self, X, y, depth: int = 0, feature_names=None, verbose=False): """ Params ------ X: array_like Feature set y: array_like target variable depth the depth of the current layer (used to recurse) """ X, y, feature_names = check_fit_arguments(self, X, y, feature_names) return self.fit_node_recursive(X, y, depth=0, verbose=verbose) def fit_node_recursive(self, X, y, depth: int, verbose): # base case 1: no data in this group if y.size == 0: return [] # base case 2: all y is the same in this group elif np.all(y == y[0]): return [{'val': y[0], 'num_pts': y.size}] # base case 3: max depth reached elif depth == self.max_depth: return [{'val': np.mean(y), 'num_pts': y.size}] # recursively generate rule list else: # find a split with the best value for the criterion m = DecisionTreeClassifier(max_depth=1, criterion=self.criterion) m.fit(X, y) col = m.tree_.feature[0] cutoff = m.tree_.threshold[0] # col, cutoff, criterion_val = self._find_best_split(X, y) if col == -2: return [] y_left = y[X[:, col] < cutoff] # left-hand side data y_right = y[X[:, col] >= cutoff] # right-hand side data # put higher probability of class 1 on the right-hand side if len(y_left) > 0 and np.mean(y_left) > np.mean(y_right): flip = True tmp = deepcopy(y_left) y_left = deepcopy(y_right) y_right = tmp x_left = X[X[:, col] >= cutoff] else: flip = False x_left = X[X[:, col] < cutoff] # print if verbose: print( f'{np.mean(100 * y):.2f} -> {self.feature_names_[col]} -> {np.mean(100 * y_left):.2f} ({y_left.size}) {np.mean(100 * y_right):.2f} ({y_right.size})') # save info par_node = [{ 'col': self.feature_names_[col], 'index_col': col, 'cutoff': cutoff, 'val': np.mean(y_left), # will be the values before splitting in the next lower level 'flip': flip, 'val_right': np.mean(y_right), 'num_pts': y.size, 'num_pts_right': y_right.size }] # generate tree for the non-leaf data par_node = par_node + \ self.fit_node_recursive(x_left, y_left, depth + 1, verbose=verbose) self.depth += 1 # increase the depth since we call fit once self.rules_ = par_node self.complexity_ = len(self.rules_) self.classes_ = unique_labels(y) return par_node def predict_proba(self, X): check_is_fitted(self) X = check_array(X) n = X.shape[0] probs = np.zeros(n) for i in range(n): x = X[i] for j, rule in enumerate(self.rules_): if j == len(self.rules_) - 1: probs[i] = rule['val'] continue regular_condition = x[rule["index_col"]] >= rule["cutoff"] flipped_condition = x[rule["index_col"]] < rule["cutoff"] condition = flipped_condition if rule["flip"] else regular_condition if condition: probs[i] = rule['val_right'] break return np.vstack((1 - probs, probs)).transpose() # probs (n, 2) def predict(self, X): check_is_fitted(self) X = check_array(X) return np.argmax(self.predict_proba(X), axis=1) """ def __str__(self): # s = '' # for rule in self.rules_: # s += f"mean {rule['val'].round(3)} ({rule['num_pts']} pts)\n" # if 'col' in rule: # s += f"if {rule['col']} >= {rule['cutoff']} then {rule['val_right'].round(3)} ({rule['num_pts_right']} pts)\n" # return s """ def __str__(self): '''Print out the list in a nice way ''' s = '> ------------------------------\n> Greedy Rule List\n> ------------------------------\n' def red(s): # return f"\033[91m{s}\033[00m" return s def cyan(s): # return f"\033[96m{s}\033[00m" return s def rule_name(rule): if rule['flip']: return '~' + rule['col'] return rule['col'] # rule = self.rules_[0] # s += f"{red((100 * rule['val']).round(3))}% IwI ({rule['num_pts']} pts)\n" for rule in self.rules_: s += u'\u2193\n' + f"{cyan((100 * rule['val']).round(2))}% risk ({rule['num_pts']} pts)\n" # s += f"\t{'Else':>45} => {cyan((100 * rule['val']).round(2)):>6}% IwI ({rule['val'] * rule['num_pts']:.0f}/{rule['num_pts']} pts)\n" if 'col' in rule: # prefix = f"if {rule['col']} >= {rule['cutoff']}" prefix = f"if {rule_name(rule)}" val = f"{100 * rule['val_right'].round(3)}" s += f"\t{prefix} ==> {red(val)}% risk ({rule['num_pts_right']} pts)\n" # rule = self.rules_[-1] # s += f"{red((100 * rule['val']).round(3))}% IwI ({rule['num_pts']} pts)\n" return s ######## HERE ONWARDS CUSTOM SPLITTING (DEPRECATED IN FAVOR OF SKLEARN STUMP) ######## ###################################################################################### def _find_best_split(self, x, y): """ Find the best split from all features returns: the column to split on, the cutoff value, and the actual criterion_value """ col = None min_criterion_val = 1e10 cutoff = None # iterating through each feature for i, c in enumerate(x.T): # find the best split of that feature criterion_val, cur_cutoff = self._split_on_feature(c, y) # found perfect cutoff if criterion_val == 0: return i, cur_cutoff, criterion_val # check if it's best so far elif criterion_val <= min_criterion_val: min_criterion_val = criterion_val col = i cutoff = cur_cutoff return col, cutoff, min_criterion_val def _split_on_feature(self, col, y): """ col: the column we split on y: target var """ min_criterion_val = 1e10 cutoff = 0.5 # iterate through each value in the column for value in np.unique(col): # separate y into 2 groups y_predict = col < value # get criterion val of this split criterion_val = self._weighted_criterion(y_predict, y) # check if it's the smallest one so far if criterion_val <= min_criterion_val: min_criterion_val = criterion_val cutoff = value return min_criterion_val, cutoff def _weighted_criterion(self, split_decision, y_real): """Returns criterion calculated over a split split decision, True/False, and y_true can be multi class """ if split_decision.shape[0] != y_real.shape[0]: print('They have to be the same length') return None # choose th
(max_depth: int = 5, class_weight=None, criterion: str = 'gini')
[ 0.03446049988269806, -0.005313097033649683, -0.03397868201136589, 0.001359042595140636, 0.014307916164398193, -0.025201205164194107, -0.020728671923279762, -0.04420161619782448, 0.014255544170737267, -0.004519667476415634, -0.02476128377020359, 0.014077480882406235, 0.004234242253005505, 0.013909892179071903, -0.014423133805394173, 0.01143795344978571, 0.02576681785285473, 0.0054099843837320805, 0.038042716681957245, 0.052036404609680176, -0.011773131787776947, -0.03339212015271187, -0.011689336970448494, 0.03211425244808197, 0.009866805747151375, -0.03764469176530838, 0.020309699699282646, 0.00967303104698658, -0.03718382120132446, -0.011458901688456535, -0.09041430056095123, -0.025180255994200706, -0.034083425998687744, -0.03758184611797333, -0.008588938973844051, -0.054885417222976685, 0.02633243054151535, 0.04918738827109337, -0.0341462716460228, -0.02342057041823864, -0.04688303917646408, -0.045416634529829025, -0.053628500550985336, -0.0007580786477774382, -0.045207150280475616, 0.009919177740812302, -0.017010290175676346, 0.07939531654119492, -0.00048378249630331993, -0.045123353600502014, -0.018151991069316864, -0.05580715835094452, 0.013061472214758396, 0.05036051198840141, -0.007551982067525387, 0.04193916171789169, 0.019000409170985222, -0.014475504867732525, 0.05563956871628761, -0.07273365557193756, 0.047846678644418716, 0.02557828091084957, 0.007279649842530489, 0.00870415661484003, -0.012286373414099216, -0.03316168487071991, -0.07042930275201797, 0.013689931482076645, -0.004155685193836689, 0.008232812397181988, -0.022268395870923996, -0.03666010871529579, 0.08320797234773636, 0.012988151982426643, -0.03001939132809639, -0.0033203582279384136, -0.01693696901202202, -0.06791546940803528, 0.07047119736671448, -0.04323797672986984, -0.008054749108850956, 0.055178698152303696, 0.04265141487121582, -0.06971704959869385, 0.0004778906877618283, -0.03448145091533661, 0.0579858161509037, 0.042504776269197464, 0.03404152765870094, -0.015512462705373764, -0.03376919403672218, 0.04160398617386818, 0.047553397715091705, 0.03835694491863251, 0.004098076373338699, 0.06083482876420021, -0.021315233781933784, -0.015386770479381084, 0.00316062499769032, -0.040954578667879105, 0.010390521958470345, 0.06209174543619156, -0.025892509147524834, 0.06804116070270538, -0.021105747669935226, -0.008986962959170341, -0.03004033863544464, 0.0527067594230175, -0.03297314792871475, -0.028029270470142365, -0.10650284588336945, 0.036450620740652084, -0.015083015896379948, 0.009783011861145496, 0.005624707788228989, -0.020655352622270584, -0.07931151986122131, 0.015365822240710258, 0.000942033831961453, 0.01668558642268181, 0.01738736592233181, -0.010626194067299366, -0.05689648538827896, 0.030731644481420517, -0.03787512704730034, -0.026960890740156174, 0.030396465212106705, 0.043866436928510666, 0.02159804105758667, -0.054634034633636475, 0.0011259890161454678, 0.009772537276148796, -0.023064443841576576, -0.0010513594606891274, -0.009526390582323074, -0.04269331321120262, -0.02419567108154297, 0.000717490678653121, 0.020602980628609657, -0.05547197908163071, 0.08890599757432938, -0.04340556636452675, 0.018487168475985527, -0.061505187302827835, 0.018246259540319443, -0.021126696839928627, 0.04057750105857849, 0.022792112082242966, 0.018497642129659653, -0.0022768545895814896, -0.014255544170737267, -0.016329459846019745, 0.014527876861393452, -0.05128225311636925, 0.07089017331600189, 0.022980650886893272, -0.02608104795217514, -0.02899290807545185, 0.01727214828133583, -0.019147049635648727, -0.018036773428320885, -0.08614077419042587, -0.03133915364742279, 0.014590722508728504, -0.007777180057018995, 0.024614643305540085, -0.0191156268119812, -0.025850612670183182, -0.011835977435112, 0.002461464377120137, 0.038294099271297455, -0.03339212015271187, -0.06154708191752434, 0.0342719629406929, -0.047008730471134186, 0.08857081830501556, 0.006436467170715332, 0.031234411522746086, -0.0057818228378891945, 0.054634034633636475, 0.010484790429472923, -0.04696683585643768, -0.00012683741806540638, -0.038838766515254974, -0.007483899127691984, 0.01568005234003067, 0.053628500550985336, -0.008939828723669052, -0.027317017316818237, 0.06267830729484558, -0.07189570367336273, -0.08530282974243164, 0.0035219888668507338, -0.00421591242775321, 0.009070757776498795, 0.0004314109100960195, 0.012600602582097054, 0.05082138255238533, 0.015669576823711395, -0.009945363737642765, -0.026793301105499268, 0.00756769347935915, 0.04160398617386818, -0.010301490314304829, -0.040451809763908386, 0.012506334111094475, -0.030354568734765053, 0.03077354095876217, -0.022582625970244408, -0.0055042533203959465, -0.053628500550985336, 0.0036267319228500128, 0.022289345040917397, 0.04189726710319519, 0.07801270484924316, -0.027735989540815353, 0.0210324265062809, 0.008976489305496216, -0.011940720491111279, -0.03527749702334404, -0.02737986296415329, -0.06414471566677094, -0.006729748100042343, 0.053293321281671524, 0.031737178564071655, -0.021786577999591827, 0.06762218475341797, 0.011605542153120041, 0.0685858204960823, -0.028532037511467934, 0.007159195374697447, -0.08517713844776154, 0.05136604607105255, -0.03642967343330383, 0.01725119911134243, 0.014077480882406235, -0.01341759879142046, 0.008730342611670494, -0.07512179762125015, 0.01920989528298378, -0.03655536472797394, -0.03867117688059807, -0.016287561506032944, -0.027170376852154732, -0.009620659984648228, 0.06896290183067322, 0.08865461498498917, 0.009667794220149517, 0.03261702135205269, 0.009536865167319775, 0.010715225711464882, -0.013061472214758396, -0.027275118976831436, -0.017471158877015114, -0.02474033460021019, -0.09393367171287537, -0.03236563876271248, 0.010170561261475086, 0.029956543818116188, -0.020885786041617393, -0.007447239011526108, 0.006928760092705488, -0.03609449416399002, 0.029851801693439484, -0.018989935517311096, 0.033035993576049805, 0.01057382207363844, -0.002351484028622508, 0.005970360245555639, 0.004687256645411253, 0.05392178148031235, 0.025410691276192665, -0.028134014457464218, 0.0065569221042096615, -0.06129569932818413, 0.050444308668375015, -0.040724143385887146, -0.011877874843776226, 0.02761029824614525, -0.005881328601390123, 0.04851703345775604, -0.020990530028939247, -0.04208580404520035, 0.0039750030264258385, -0.0006539901369251311, 0.015313450247049332, -0.02287590689957142, -0.0030454073566943407, 0.012401590123772621, 0.029307136312127113, -0.06468937546014786, -0.021723732352256775, 0.04981584846973419, 0.04608699306845665, 0.11932341009378433, 0.006132712122052908, 0.04399212822318077, -0.046715449541807175, 0.015805743634700775, -0.025180255994200706, 0.045458532869815826, -0.008526093326508999, 0.06657475233078003, -0.018874717876315117, -0.03735141083598137, -0.01019674725830555, 0.018759500235319138, -0.033056940883398056, 0.02794547565281391, -0.02018400840461254, 0.043279875069856644, 0.03666010871529579, 0.02840634621679783, -0.01094566099345684, -0.029558520764112473, -0.06929807364940643, 0.004477770067751408, -0.00505909463390708, 0.06087672710418701, 0.03923678770661354, -0.05744114890694618, -0.007153958082199097, 0.029390931129455566, -0.004082364961504936, 0.03575931489467621, -0.0010035703890025616, 0.047260116785764694, 0.006122238002717495, -0.035675521939992905, -0.018193887546658516, -0.01699981465935707, -0.01734546758234501, 0.008955540135502815, 0.024363258853554726, -0.008651785552501678, 0.02346246875822544, 0.03552887961268425, 0.005996546242386103, 0.009290718473494053, -0.055681467056274414, 0.028322551399469376, 0.021807527169585228, -0.018749026581645012, 0.05056999996304512, 0.025892509147524834, -0.025703972205519676, 0.020927684381604195, 0.03366445377469063, 0.01341759879142046, 0.09167121350765228, 0.03058500401675701, -0.04901979863643646, 0.040933627635240555, 0.04797236993908882, 0.040179476141929626, -0.03527749702334404, -0.016214242205023766, -0.02157709188759327, 0.020990530028939247, -0.03894350677728653, 0.027966424822807312, -0.05212019756436348, -0.023860491812229156, 0.09393367171287537, 0.015784794464707375, -0.00972016528248787, -0.023860491812229156, 0.04269331321120262, 0.04114311560988426, -0.035675521939992905, -0.025683023035526276, -0.04263046756386757, 0.020079264417290688, -0.010453367605805397, 0.002102718921378255, 0.02578776702284813, -0.015323924832046032, -0.0002071950730169192, 0.051952607929706573, 0.025410691276192665, -0.0019259649561718106, 0.01381562277674675, -0.01393084041774273, 0.0070544518530368805, -0.017062662169337273, -0.03343401849269867, 0.0020568938925862312, -0.032281842082738876, 0.07545697689056396, -0.061463288962841034, 0.04036801680922508, 0.010840917006134987, 0.011804554611444473, -0.03108777105808258, -0.038335997611284256, 0.02553638257086277, 0.03284745663404465, 0.02023637853562832, -0.04612888768315315, 0.014538351446390152, -0.04076603800058365, -0.04221149533987045, 0.011123724281787872, 0.014161275699734688, -0.0054204585030674934, -0.036178287118673325, 0.052539169788360596, 0.0711834505200386, -0.024677488952875137, 0.05748304724693298, -0.03783322870731354, 0.029809903353452682, 0.0010389212984591722, 0.0016758906422182918, -0.04868462309241295, -0.005451881792396307, -0.0032575123477727175, 0.06246882304549217, 0.05052810162305832, -0.0072272783145308495, 0.03244943171739578, -0.016245665028691292, 0.004655833821743727, 0.008253761567175388, -0.0420648530125618, -0.006541210692375898, -0.0447881780564785, -0.02062392793595791, -0.049061696976423264, -0.013867994770407677, -0.046715449541807175, -0.05475972592830658, -0.0737391859292984, -0.05815340578556061, -0.04554232582449913, -0.03852453455328941, -0.032784610986709595, 0.03054310567677021, -0.01008152961730957, -0.03182097151875496, 0.004299706779420376, 0.04242097958922386, 0.0553881861269474, 0.043070387095212936, 0.05455023795366287, -0.002458845730870962, 0.006085577886551619, -0.026395278051495552, -0.12049653381109238, -0.029076702892780304, -0.0032287079375237226, 0.017471158877015114, 0.05605854094028473, 0.06980084627866745, -0.03787512704730034, 0.026751404628157616, -0.025976303964853287, -0.008138543926179409, 0.020225904881954193, 0.009814434684813023, 0.044830072671175, 0.019806932657957077, 0.022834010422229767, 0.047762881964445114, -0.05396367609500885, 0.00012029097706545144, -0.002101409714668989, 0.019398434087634087, -0.05103087052702904, -0.022792112082242966, 0.0012189485132694244, -0.03869212418794632, -0.02262452244758606, -0.03632492944598198, -0.02471938729286194, 0.052287787199020386, 0.01818341389298439, -0.024342311546206474, 0.0656530112028122, -0.0032260895241051912, 0.025201205164194107, -0.03267986699938774, -0.007866211235523224, -0.018508117645978928, -0.006944471504539251, -0.017785388976335526, -0.04229528829455376, -0.05308383330702782, -0.05061189830303192, -0.009144078008830547, -0.04843324050307274, -0.024090927094221115, 0.04152018949389458, 0.04237908497452736, -0.02840634621679783, 0.03940437734127045, 0.063181072473526, 0.023546263575553894, 0.07424195110797882, -0.0579858161509037, 0.00010768906213343143, 0.01920989528298378, -0.06640716642141342, -0.03919489309191704, 0.04036801680922508, -0.0236929040402174, -0.04583560675382614, 0.031737178564071655, -0.08274710178375244, 0.020330648869276047, 0.007604353595525026, -0.06393522769212723, 0.05723166465759277, 0.009039334952831268, -0.0012398972176015377, -0.0015174666186794639, 0.051240354776382446, 0.036974336951971054, -0.002759982366114855, 0.02062392793595791, 0.03232374042272568, -0.011647439561784267, 0.003956673201173544, -0.035947851836681366, 0.02576681785285473, 0.07570835947990417, 0.026709506288170815, 0.0068344916217029095, 0.06418661028146744, -0.017492108047008514, 0.044369202107191086, -0.014527876861393452, 0.029642315581440926, 0.08027516305446625, 0.01989072747528553, 0.037246670573949814, 0.026416225358843803, -0.0013642796548083425, 0.025683023035526276, -0.0070335036143660545, 0.012841511517763138, 0.021723732352256775, 0.024656539782881737, -0.013197639025747776, 0.004700349643826485, 0.0407869890332222, 0.02633243054151535, 0.021315233781933784, -0.03504706174135208, 0.0022192457690835, 0.028846267610788345, 0.036220185458660126, 0.0050774249248206615, -0.0012785212602466345, 0.089576356112957, -0.0039409613236784935, 0.019566023722290993, 0.002414329908788204, 0.027987373992800713, 0.02084388956427574, -0.03615733981132507, -0.01591048575937748, 0.034125324338674545, -0.05082138255238533, 0.029558520764112473, -0.01371087972074747, -0.03364350274205208, 0.08848702162504196, -0.06452178955078125, 0.006897337269037962, 0.03284745663404465, 0.03561267629265785, -0.025892509147524834, -0.004103313200175762, -0.04688303917646408, -0.022017013281583786, 0.008657022379338741, -0.010998032055795193, -0.05928463116288185, -0.013407125137746334, 0.0012615005252882838, -0.0041399733163416386, 0.017355941236019135, -0.04344746470451355, -0.004708205349743366, 0.0039409613236784935, -0.020519185811281204, 0.058069609105587006, -0.033601608127355576, 0.01223400142043829, -0.025997253134846687, 0.06996843218803406, 0.0006588999531231821, -0.056980282068252563, -0.01768064685165882, 0.029139548540115356, -0.03743520751595497, -0.015103964135050774, 0.017083609476685524, -0.0022951846476644278, -0.022058909758925438, -0.00031111991847865283, -0.017628274857997894, 0.02687709592282772, 0.03362255543470383, -0.03527749702334404, -0.010746648535132408, -0.019042307510972023, -0.0031710993498563766, -0.016559893265366554, -0.01934606209397316, 0.04508145898580551, 0.04864272475242615, -0.051743123680353165, -0.05404747277498245, 0.015302976593375206, -0.02118954248726368, 0.018403373658657074, 0.04131070524454117, -0.061463288962841034, 0.025745868682861328, 0.017355941236019135, 0.029935596510767937, 0.02576681785285473, -0.0191156268119812, -0.030354568734765053, -0.005169074982404709, -0.0868111327290535, -0.011563645675778389, -0.02348341792821884, 0.009824908338487148, -0.010343387722969055, 0.00910218060016632, -0.03108777105808258, -0.005145507864654064, 0.04638027399778366, 0.03318263590335846, -0.011364633217453957, -0.007881922647356987, -0.05769253522157669, -0.06112810969352722, -0.011563645675778389, 0.03580121323466301, 0.002838539658114314, -0.034334808588027954, -0.05320952832698822, -0.003312502522021532, 0.05689648538827896, 0.08228623121976852, 0.019796457141637802, -0.01597333326935768, 0.003946198616176844, -0.03165338560938835, -0.018151991069316864, 0.010270067490637302, 0.00375504232943058, 0.00928548164665699, 0.04273521155118942, 0.005698028020560741, -0.034669987857341766, -0.029432829469442368, 0.0092173982411623, 0.05501110851764679, -0.01793202944099903, -0.03175812587141991, -0.0064521790482103825, 0.04851703345775604, -0.011155147105455399, -0.009411172941327095, 0.05077948421239853, -0.04713442176580429, -0.02794547565281391, -0.02792452648282051, 0.0092173982411623, 0.011176095344126225, -0.06925617903470993, -0.036911491304636, -0.019199421629309654, -0.021042902022600174, -0.016601791605353355, 0.07587594538927078, 0.039362479001283646, -0.0236929040402174, -0.025850612670183182, 0.08249571174383163, 0.030124133452773094, -0.01697886735200882, -0.025662075728178024, -0.018424322828650475, -0.011909297667443752, -0.03714192658662796, 0.017848234623670578, 0.03270081430673599, -0.019042307510972023, -0.022289345040917397, -0.037267617881298065, -0.04839134216308594, 0.028615832328796387, 0.033329274505376816, -0.037539951503276825, 0.0033989157527685165, -0.018717603757977486, -0.03054310567677021, 0.0004065344110131264, 0.01134368497878313, 0.05903324857354164, -0.05689648538827896, 0.00512717803940177, 0.011877874843776226, -0.07202140241861343, -0.002238885033875704, 0.05182691663503647, -0.017376890406012535, -0.03561267629265785, -0.049103595316410065, 0.016968391835689545, -0.009861568920314312, 0.00467154523357749, -0.04105931892991066, 0.00484699010848999, 0.04562612250447273, 0.02118954248726368, 0.0315067432820797, 0.013532816432416439, -0.04612888768315315, 0.0250545646995306, 0.05400557443499565, -0.06435419619083405, 0.02999844215810299, -0.05287434905767441, 0.01042194478213787, 0.0553881861269474, -0.019586971029639244, -0.0006572633283212781, 0.006745459511876106, -0.022519780322909355, 0.02076009474694729, -0.05287434905767441, 0.01264249999076128, 0.05903324857354164, 0.0011279529426246881, -0.046505965292453766, -0.02603914961218834, -0.019042307510972023, -0.006535973399877548, 0.06393522769212723, 0.006352672819048166, 0.03142295032739639, 0.016528470441699028, -0.05869806930422783, 0.03232374042272568, -0.014360287226736546, 0.0328265056014061, 0.017984401434659958, 0.012370167300105095, 0.011427478864789009, 0.03611544147133827, -0.032512277364730835, -0.01820436120033264, -0.051701225340366364, 0.0033648740500211716, 0.00014254890265874565, 0.017607325688004494, 0.04428540915250778, 0.011186569929122925, 0.02212175540626049, 0.027966424822807312, 0.015669576823711395 ]
17,217
imodels.rule_list.greedy_rule_list
__init__
Params ------ max_depth Maximum depth the list can achieve criterion: str Criterion used to split 'gini', 'entropy', or 'log_loss'
def __init__(self, max_depth: int = 5, class_weight=None, criterion: str = 'gini'): ''' Params ------ max_depth Maximum depth the list can achieve criterion: str Criterion used to split 'gini', 'entropy', or 'log_loss' ''' self.max_depth = max_depth self.class_weight = class_weight self.criterion = criterion self.depth = 0 # tracks the fitted depth
(self, max_depth: int = 5, class_weight=None, criterion: str = 'gini')
[ 0.03995241969823837, -0.0043776691891252995, -0.04524341598153114, -0.022333761677145958, -0.007994983345270157, -0.00565992621704936, -0.016403887420892715, -0.037900809198617935, 0.004652117379009724, 0.009781143628060818, -0.016799811273813248, 0.03905259072780609, -0.03563323989510536, -0.011715777218341827, 0.007423591334372759, 0.006550756748765707, 0.05161420628428459, -0.0016646841540932655, -0.01796059124171734, 0.06147633492946625, 0.00010130109149031341, 0.04452355206012726, -0.028830528259277344, 0.07126647979021072, -0.02222578227519989, 0.018644461408257484, 0.0061548319645226, 0.03671303391456604, -0.002009993651881814, -0.048122867941856384, -0.07310213148593903, -0.01564802974462509, -0.035021353513002396, -0.002611754462122917, -0.010447017848491669, -0.030072294175624847, -0.0031606501433998346, 0.05560944601893425, -0.1236005425453186, -0.00403798371553421, 0.008615865372121334, -0.02560914121568203, -0.07274219393730164, 0.04056430235505104, -0.008534880355000496, 0.039880432188510895, 0.0674871951341629, 0.02892051264643669, -0.008615865372121334, -0.02946040965616703, -0.05618533864617348, -0.0037387905176728964, 0.026311006397008896, 0.010581991635262966, -0.02422340400516987, 0.038440704345703125, 0.015072139911353588, -0.03043222613632679, 0.06838702410459518, -0.038692656904459, -0.042687900364398956, -0.02082204818725586, 0.016511866822838783, -0.018770437687635422, -0.04218399524688721, -0.00878683291375637, -0.11402636021375656, 0.04434358701109886, -0.005034544505178928, 0.03518332540988922, 0.0011472823098301888, -0.050030507147312164, 0.055285509675741196, 0.04833882674574852, -0.037396904081106186, 0.046611156314611435, -0.01755566895008087, -0.010168070904910564, 0.06979075819253922, 0.019022390246391296, -0.0026792415883392096, 0.05251403525471687, -0.006055851001292467, -0.01986823044717312, -0.020408127456903458, -0.038440704345703125, 0.008701348677277565, -0.040780261158943176, 0.03775683417916298, -0.006222319323569536, -0.09703758358955383, 0.0474030040204525, 0.03172798082232475, 0.01136484369635582, -0.006946681998670101, 0.07580161839723587, 0.0021100996527820826, 0.0011320976773276925, 0.01253462117165327, -0.002991932211443782, -0.02798468992114067, 0.01609794609248638, -0.013677404262125492, 0.051542218774557114, -0.06993472576141357, -0.020894035696983337, -0.0241154246032238, -0.008161451667547226, -0.02906448394060135, 0.02661694958806038, -0.05118228867650032, 0.06539958715438843, 0.050030507147312164, 0.05596937984228134, 0.0008323420770466328, 0.029172465205192566, -0.0344274677336216, -0.015126129612326622, 0.025735115632414818, -0.009943113662302494, 0.010294046252965927, -0.017501678317785263, -0.05276598781347275, 0.06539958715438843, -0.005889382213354111, 0.019526295363903046, 0.018626466393470764, -0.007873506285250187, 0.00872834399342537, -0.03003630042076111, 0.05316191166639328, -0.04697108641266823, -0.042291976511478424, -0.03529130294919014, 0.023791484534740448, -0.054457664489746094, -0.03962847962975502, -0.02121797390282154, -0.013884365558624268, 0.0020054944325238466, 0.03579520806670189, -0.02758876420557499, 0.032555822283029556, -0.027462787926197052, 0.00011121327406726778, 0.023899465799331665, 0.01449624914675951, -0.009349226020276546, 0.028884518891572952, -0.019508298486471176, -0.01974225416779518, -0.009493198245763779, 0.01259760931134224, -0.004532889928668737, 0.01329047791659832, 0.007662046235054731, -0.040312349796295166, -0.05449365824460983, 0.05992862954735756, 0.0025982570368796587, -0.002027990063652396, -0.03345565125346184, -0.04074426740407944, 0.012867557816207409, -0.01974225416779518, 0.012273671105504036, -0.025249209254980087, -0.03289775922894478, -0.02803867869079113, 0.04293985292315483, 0.03948450833559036, -0.04815886169672012, -0.01040202658623457, 0.033185701817274094, -0.016268912702798843, 0.05690520256757736, 0.03273578733205795, 0.054457664489746094, 0.011526812799274921, 0.05899280682206154, 0.00590737909078598, -0.016754820942878723, 0.030306249856948853, -0.03192594274878502, 0.003779282793402672, -0.007536069955676794, 0.03037823550403118, 0.03135005012154579, -0.008678853511810303, 0.02267569676041603, -0.0014723455533385277, -0.04286786541342735, 0.021595902740955353, -0.0435517355799675, 0.018608469516038895, 0.024313386529684067, 0.008098463527858257, 0.011499817483127117, -0.017222732305526733, 0.06539958715438843, -0.04596327990293503, 0.009520193561911583, 0.02901049517095089, -0.0688549354672432, -0.040348343551158905, 0.06964678317308426, -0.03912457451224327, 0.04787091538310051, 0.03100811503827572, -0.019940216094255447, -0.044739510864019394, 0.015324092470109463, 0.0551055446267128, 0.04967057332396507, 0.0482308492064476, -0.04502745717763901, -0.027336813509464264, 0.021991826593875885, 0.03714495152235031, -0.01931033656001091, -0.0009605677332729101, -0.027858713641762733, -0.02713884972035885, -0.004850079771131277, -0.029118474572896957, -0.012732584029436111, 0.05517752841114998, -0.02701287344098091, 0.018608469516038895, 0.019688263535499573, -0.02082204818725586, -0.04488348215818405, 0.05366581678390503, -0.012255674228072166, -0.02181186154484749, 0.02566312998533249, -0.02119997702538967, -0.016808809712529182, -0.03635310009121895, -0.01672782562673092, -0.003930004313588142, -0.048086874186992645, -0.05762506648898125, 0.017024768516421318, 0.013191496953368187, 0.07774524390697479, 0.011877746321260929, -0.0065957484766840935, 0.04643118754029274, -0.0025555151514708996, -0.050570402294397354, 0.023017631843686104, -0.059208765625953674, -0.0013441198971122503, -0.015018150210380554, -0.017447689548134804, -0.05028245970606804, -0.02744479291141033, -0.023071622475981712, -0.01620592549443245, -0.05334187671542168, -0.028362618759274483, -0.04401964694261551, 0.07824914902448654, -0.02845260128378868, 0.019598281010985374, 0.014505247585475445, -0.022369755432009697, 0.009772146120667458, -0.0003478402504697442, 0.062124211341142654, 0.06449975818395615, 0.026724928990006447, 0.004397915676236153, -0.036497075110673904, -0.008782333694398403, -0.015540051274001598, -0.0035205818712711334, -0.026275014504790306, 0.004913067910820246, 0.039448514580726624, -0.012264672666788101, -0.034607432782649994, 0.01587298884987831, -0.015378082171082497, 0.022099805995821953, -0.010465013794600964, 0.02946040965616703, -0.004962558392435312, -0.037900809198617935, -0.03331167995929718, 0.024205407127738, 0.05985664203763008, 0.06572353094816208, 0.09466204047203064, -0.07223828881978989, 0.00878683291375637, -0.010986914858222008, 0.017168741673231125, -0.011679783463478088, 0.03239385411143303, -0.06277208775281906, 0.04927464947104454, -0.012678594328463078, -0.030234262347221375, -0.003644308540970087, -0.00021005388407502323, -0.0034216006752103567, -0.008629362098872662, 0.03728892281651497, 0.020156174898147583, 0.07558565586805344, 0.037504881620407104, 0.016979778185486794, -0.01833852007985115, -0.0540977343916893, 0.012660597451031208, -0.03858467936515808, 0.008327919989824295, 0.05640129745006561, -0.019238349050283432, 0.016718827188014984, 0.00038945736014284194, -0.03610115125775337, -0.008098463527858257, 0.017150744795799255, 0.08465593308210373, 0.024313386529684067, -0.0120577123016119, 0.008791332133114338, -0.054457664489746094, 0.005857888609170914, 0.026203026995062828, -0.024979259818792343, -0.050498418509960175, 0.058236949145793915, 0.05179417133331299, 0.0241154246032238, -0.0007851010304875672, -0.07954490929841995, 0.0008267181110568345, 0.004575631581246853, -0.03660505264997482, 0.07407394051551819, 0.009349226020276546, -0.034121524542570114, 0.014892173931002617, -0.00799948163330555, 0.013182498514652252, 0.06234017014503479, 0.027642754837870598, -0.05902880057692528, 0.020066192373633385, 0.026005065068602562, 0.012471633031964302, 0.0034328484907746315, 0.012237677350640297, -0.015693021938204765, -0.017294717952609062, -0.006798210088163614, 0.016142936423420906, 0.004620623309165239, -0.034571439027786255, 0.01887841708958149, 0.0587768480181694, -0.036425087600946426, 0.034031543880701065, -0.004787091631442308, 0.05276598781347275, 0.004931064322590828, -0.004067228175699711, -0.0407082736492157, -0.03275378420948982, 0.01990422233939171, 0.020408127456903458, 0.028722548857331276, -0.04247194156050682, -0.0006709352019242942, 0.027912704274058342, 0.060180582106113434, -0.04150012508034706, 0.01814955659210682, 0.04679112136363983, -0.008314422331750393, -0.0036150640808045864, -0.019616277888417244, 0.014424262568354607, 0.014019339345395565, 0.079400934278965, -0.01618792861700058, -0.009961109608411789, -0.02267569676041603, 0.0003568385436665267, -0.0006428155465982854, -0.04650317505002022, -0.0017580414423719049, 0.027282822877168655, 0.010725964792072773, -0.04733102023601532, 0.0103840297088027, -0.030252259224653244, -0.0376848503947258, -0.02026415430009365, 0.05305393412709236, 0.003990742843598127, -0.030540205538272858, 0.02951440028846264, 0.09530991315841675, -0.00012140665057813749, -0.041752077639102936, -0.006325799506157637, 0.031134091317653656, -0.0060918438248336315, 0.020030198618769646, 0.004305683076381683, -0.014379271306097507, 0.022387752309441566, 0.0405283086001873, -0.01545906625688076, -0.030252259224653244, 0.014154314063489437, 0.019220352172851562, 0.01277757529169321, 0.01686280034482479, 0.014190306887030602, 0.018221542239189148, -0.004850079771131277, -0.04866276681423187, 0.006730722729116678, -0.017744632437825203, -0.10459615290164948, -0.005484459456056356, -0.06190825253725052, -0.0318179614841938, 0.01203971542418003, -0.02901049517095089, -0.06000061333179474, 0.030828149989247322, -0.026724928990006447, -0.011895742267370224, -0.021056003868579865, -0.012471633031964302, 0.03394155949354172, 0.04675512760877609, 0.035039350390434265, 0.007918497547507286, 0.0023373065050691366, 0.03521931543946266, -0.023989448323845863, -0.05362982302904129, 0.04056430235505104, -0.030072294175624847, 0.014235299080610275, 0.04168009012937546, 0.018347518518567085, 0.008183946833014488, -0.03610115125775337, 0.03772084042429924, 0.05039043724536896, -0.006825204938650131, 0.01589098386466503, 0.017096756026148796, 0.05229807645082474, 0.005974866449832916, -0.0897669643163681, 0.050462424755096436, 0.054349686950445175, 0.02856058068573475, 0.016268912702798843, -0.04545937478542328, 0.04257991909980774, 0.054457664489746094, -0.019616277888417244, -0.0708705484867096, 0.016250915825366974, 0.036587055772542953, 0.03575921431183815, -0.052406053990125656, 0.02231576479971409, -0.03388756886124611, 0.01794259436428547, -0.009277239441871643, 0.0241154246032238, -0.026760922744870186, -0.051938142627477646, -0.011544809676706791, -0.05460163950920105, -0.02800268679857254, -0.00374104012735188, -0.0029154468793421984, -0.05614934489130974, 0.01575601100921631, 0.0015263353707268834, 0.021433932706713676, 0.034049537032842636, 0.06043253093957901, 0.028218645602464676, 0.030612191185355186, 0.042759884148836136, -0.01380338054150343, -0.01618792861700058, 0.007936494424939156, -0.028218645602464676, -0.06536359339952469, 0.003891761414706707, 0.001565702841617167, -0.03545327112078667, -0.008971297182142735, -0.04607125744223595, 0.016628844663500786, 0.050966329872608185, 0.006613744888454676, -0.01882442831993103, 0.017708640545606613, 0.007702538277953863, 0.0058443909510970116, -0.011013910174369812, 0.02560914121568203, 0.016421884298324585, 0.05701318010687828, 0.05733712017536163, 0.025825100019574165, 0.016925787553191185, -0.05740910768508911, 0.04920266196131706, 0.0035093340557068586, 0.02312561124563217, 0.007949991151690483, 0.09300635010004044, 0.03955649212002754, 0.0482308492064476, -0.001520711462944746, -0.010923926718533039, 0.10200464725494385, 0.02659895271062851, 0.0031696485821157694, 0.037000980228185654, 0.02416941337287426, 0.047115057706832886, 0.0004136402567382902, -0.008098463527858257, -0.0003171898133587092, 0.03037823550403118, -0.003979494795203209, -0.019940216094255447, 0.03485938534140587, -0.005727413110435009, 0.009020788595080376, -0.021397938951849937, -0.019220352172851562, 0.022081809118390083, 0.0009830634808167815, -0.07774524390697479, -0.0435517355799675, 0.07058260589838028, -0.02614903822541237, -0.01670982874929905, -0.009889123030006886, 0.007207632064819336, 0.004818585701286793, -0.008539379574358463, 0.011373842135071754, 0.020030198618769646, -0.019058384001255035, 0.026400990784168243, -0.060108594596385956, -0.026472976431250572, 0.06493167579174042, -0.06190825253725052, 0.019184360280632973, 0.023557528853416443, 0.024889277294278145, -0.03530929982662201, 0.05111030116677284, -0.05715715512633324, 0.0049805548042058945, -0.01832052320241928, 0.022009823471307755, -0.014775196090340614, -0.011994724161922932, 0.03512933477759361, 0.0016275661764666438, -0.02508723922073841, -0.020120181143283844, -0.02082204818725586, -0.000637753983028233, 0.00651926314458251, 0.018023580312728882, -0.10157272219657898, 0.006105341482907534, 0.06460773944854736, 0.06943082809448242, 0.007162640802562237, -0.02553715370595455, -0.020912032574415207, -0.03804478049278259, -0.05157821252942085, -0.020930027589201927, -0.011697780340909958, -0.010734963230788708, -0.03179996460676193, 0.04049231484532356, -0.041860055178403854, 0.07781723141670227, 0.021433932706713676, -0.05355783551931381, -0.00009820792911341414, -0.016583852469921112, -0.04934663698077202, -0.013695401139557362, -0.03804478049278259, 0.0510743074119091, 0.03233986347913742, -0.015603039413690567, -0.09055881947278976, -0.00011880558304255828, -0.00666773458942771, 0.006496767047792673, 0.05398975685238838, -0.03100811503827572, -0.009682162664830685, -0.015369083732366562, -0.011499817483127117, 0.032609812915325165, -0.03725293278694153, -0.07954490929841995, -0.01650286838412285, -0.06377989798784256, 0.006082845851778984, 0.006312302313745022, 0.039412520825862885, 0.00701416889205575, -0.03147602826356888, -0.06543558090925217, -0.0618002712726593, 0.015270102769136429, -0.023287581279873848, -0.01622392050921917, 0.023863472044467926, -0.0041302163153886795, -0.06349195539951324, -0.00913326721638441, 0.034517448395490646, -0.01277757529169321, -0.0226936936378479, -0.08947902172803879, -0.009209752082824707, 0.06090044230222702, 0.018464496359229088, -0.004438407719135284, -0.018626466393470764, 0.02609504759311676, 0.01577400602400303, -0.01279557216912508, -0.03336566686630249, -0.0048275841400027275, 0.019022390246391296, 0.019436310976743698, 0.051470231264829636, -0.0057724048383533955, -0.03575921431183815, 0.021505918353796005, 0.08530381321907043, 0.007410093676298857, -0.026868902146816254, 0.00639778608456254, 0.021487923339009285, -0.08983895182609558, -0.01814955659210682, -0.013623414561152458, -0.08537580072879791, -0.012804570607841015, 0.016529863700270653, -0.01374039240181446, -0.08487189561128616, -0.009313233196735382, 0.004652117379009724, 0.044559545814991, 0.06395986676216125, 0.00253526889719069, 0.025015253573656082, 0.030342241749167442, -0.0034058536402881145, -0.049958519637584686, 0.06460773944854736, 0.07486579567193985, -0.11215471476316452, 0.010240056551992893, 0.01936432532966137, 0.020624086260795593, -0.019724257290363312, -0.02217179350554943, 0.024439362809062004, -0.026868902146816254, -0.010887933894991875, 0.006487769074738026, -0.032609812915325165, -0.01985023356974125, 0.0035970674362033606, -0.017015771940350533, 0.03088214062154293, 0.01400134339928627, -0.07500976324081421, 0.004940062761306763, 0.01714174635708332, -0.043299783021211624, -0.04060029610991478, 0.024745304137468338, 0.03538128733634949, -0.039376527070999146, 0.018698452040553093, 0.033023733645677567, 0.009601177647709846, -0.03880063816905022, -0.01814955659210682, 0.06755918264389038, 0.010959920473396778, 0.028758542612195015, -0.08832723647356033, -0.010986914858222008, 0.049022696912288666, -0.015324092470109463, 0.04362372308969498, 0.035561252385377884, -0.011517814360558987, -0.0036848008166998625, 0.04974256083369255, -0.0034575939644128084, 0.031602002680301666, -0.0763775035738945, 0.005079536233097315, 0.016835805028676987, -0.07659346610307693, -0.053377870470285416, -0.015585042536258698, -0.02751677855849266, -0.015801001340150833, -0.027822719886898994, 0.01695278286933899, 0.032699793577194214, 0.014955162070691586, -0.004674613010138273, -0.015036147087812424, 0.012804570607841015, -0.04067228361964226, 0.000506716372910887, 0.03183595836162567, 0.007338107563555241, -0.00008407779387198389, -0.048122867941856384, 0.03430148959159851, -0.020624086260795593, 0.06284407526254654, 0.007936494424939156, 0.02231576479971409, -0.020876038819551468, 0.019418315961956978, -0.039412520825862885, 0.0046926094219088554, -0.05956869572401047, -0.007338107563555241, -0.06028855964541435, 0.026760922744870186, -0.032681796699762344, -0.02224377915263176, 0.053377870470285416, 0.07731332629919052, -0.029838338494300842 ]
17,221
imodels.rule_list.greedy_rule_list
__str__
Print out the list in a nice way
def __str__(self): '''Print out the list in a nice way ''' s = '> ------------------------------\n> Greedy Rule List\n> ------------------------------\n' def red(s): # return f"\033[91m{s}\033[00m" return s def cyan(s): # return f"\033[96m{s}\033[00m" return s def rule_name(rule): if rule['flip']: return '~' + rule['col'] return rule['col'] # rule = self.rules_[0] # s += f"{red((100 * rule['val']).round(3))}% IwI ({rule['num_pts']} pts)\n" for rule in self.rules_: s += u'\u2193\n' + f"{cyan((100 * rule['val']).round(2))}% risk ({rule['num_pts']} pts)\n" # s += f"\t{'Else':>45} => {cyan((100 * rule['val']).round(2)):>6}% IwI ({rule['val'] * rule['num_pts']:.0f}/{rule['num_pts']} pts)\n" if 'col' in rule: # prefix = f"if {rule['col']} >= {rule['cutoff']}" prefix = f"if {rule_name(rule)}" val = f"{100 * rule['val_right'].round(3)}" s += f"\t{prefix} ==> {red(val)}% risk ({rule['num_pts_right']} pts)\n" # rule = self.rules_[-1] # s += f"{red((100 * rule['val']).round(3))}% IwI ({rule['num_pts']} pts)\n" return s
(self)
[ 0.019612960517406464, -0.027351532131433487, 0.0010270611383020878, -0.035273920744657516, 0.02027469128370285, -0.021561389788985252, -0.0006422004080377519, -0.05654120817780495, 0.02369363233447075, -0.03948326036334038, -0.04025528207421303, 0.034465137869119644, -0.0028169506695121527, 0.025623681023716927, 0.0047699748538434505, -0.008124581538140774, 0.0504753440618515, -0.05407809838652611, 0.03705691546201706, 0.027351532131433487, 0.03714882209897041, 0.017370428889989853, 0.045806463807821274, 0.04154197871685028, 0.005335203371942043, -0.010550927370786667, 0.017940253019332886, -0.02792135626077652, -0.05878373980522156, 0.01472350675612688, -0.05282816290855408, -0.014861367642879486, -0.009130964055657387, 0.003837118623778224, -0.0037406161427497864, -0.02494356781244278, -0.009466424584388733, 0.0010213168570771813, -0.030457990244030952, 0.00462751928716898, 0.03172630816698074, 0.023362766951322556, 0.0008782866061665118, -0.015798818320035934, -0.05584271252155304, -0.025017093867063522, 0.013078371062874794, 0.07205511629581451, 0.021561389788985252, -0.1019800454378128, 0.020954802632331848, 0.007173344027251005, -0.03834361582994461, 0.003837118623778224, -0.015716101974248886, -0.025586917996406555, -0.005243296269327402, -0.03823332488536835, 0.07889299839735031, -0.02646922506392002, 0.0009558331221342087, 0.013427617959678173, 0.004133518785238266, -0.0053765615448355675, 0.00488945422694087, -0.019226951524615288, -0.04194637015461922, -0.002520550275221467, 0.03977736458182335, -0.0205320306122303, 0.004990552086383104, -0.0074996137991547585, 0.04918864369392395, -0.014181255362927914, -0.024667847901582718, -0.018730653449892998, -0.038711242377758026, -0.058232296258211136, 0.04496091976761818, -0.07433440536260605, 0.022553985938429832, 0.04911511763930321, 0.06606277823448181, -0.015238186344504356, 0.042130183428525925, -0.0622762069106102, 0.027792686596512794, 0.022903231903910637, 0.008616284467279911, 0.041689030826091766, -0.03338063508272171, -0.024355363100767136, -0.014548882842063904, -0.01434668805450201, -0.051798801869153976, 0.04021851718425751, -0.010330350138247013, -0.08558382838964462, 0.007265251129865646, -0.024373745545744896, 0.014741888269782066, 0.06404081732034683, -0.027792686596512794, -0.00925503857433796, -0.04764460399746895, -0.023914210498332977, -0.039924416691064835, 0.047791656106710434, -0.0038715838454663754, 0.03062342293560505, -0.053048741072416306, 0.0029502157121896744, 0.0405493825674057, -0.0362665168941021, 0.07036402076482773, 0.015605813823640347, -0.06187181547284126, -0.02670818381011486, 0.0607321672141552, -0.01688332110643387, 0.022333409637212753, -0.07223892956972122, -0.031303536146879196, 0.018675509840250015, -0.02691037952899933, 0.03615622594952583, -0.04146845266222954, -0.006093436386436224, 0.05477659031748772, -0.045622650533914566, 0.033215202391147614, 0.010955317877233028, -0.037902459502220154, -0.0059693618677556515, 0.052019380033016205, -0.02645084448158741, -0.013721720315515995, -0.02792135626077652, 0.04124787449836731, 0.07429764419794083, 0.05687207356095314, -0.06326880306005478, -0.012572881765663624, -0.025164145976305008, -0.017260141670703888, -0.03385855257511139, 0.0054271104745566845, 0.10271529853343964, 0.052534058690071106, -0.011626239866018295, -0.00035240603028796613, 0.030457990244030952, 0.004400049336254597, 0.0049308123998343945, 0.0785253718495369, 0.05915136635303497, -0.01862955465912819, -0.013675766065716743, 0.03257185220718384, 0.006189938634634018, 0.010201680473983288, -0.04720345139503479, -0.04676229879260063, -0.004588458687067032, 0.008345158770680428, 0.008625474758446217, -0.006442682817578316, -0.008331372402608395, 0.0410640612244606, 0.02841765433549881, 0.0035177415702492, -0.078010693192482, -0.06970229744911194, 0.05933517962694168, 0.003844011574983597, 0.06562162190675735, -0.03464895114302635, 0.13888990879058838, -0.03426294028759003, -0.018758226186037064, -0.020697463303804398, -0.034281324595212936, -0.02841765433549881, -0.030200650915503502, 0.014898129738867283, -0.018776606768369675, 0.07422412186861038, -0.017462335526943207, -0.025752350687980652, 0.03630327805876732, -0.05040181800723076, -0.02520090900361538, -0.008634665980935097, -0.0035866720136255026, -0.025844257324934006, -0.04183608293533325, -0.014181255362927914, 0.0062175109051167965, 0.0014096241211518645, -0.06495989114046097, -0.03600917384028435, 0.02944701351225376, -0.013041608035564423, 0.009558331221342087, 0.0219841618090868, 0.003809546586126089, -0.02200254425406456, 0.024667847901582718, -0.02722286246716976, 0.0016899405745789409, -0.007527186069637537, 0.03389531373977661, 0.012839412316679955, -0.004078374709933996, 0.02371201477944851, -0.0559530034661293, 0.019686486572027206, 0.060438062995672226, -0.0983772873878479, -0.00965942908078432, -0.006042887456715107, -0.07631959766149521, -0.003579778829589486, 0.02424507588148117, -0.024318600073456764, 0.018914466723799706, 0.05268111079931259, 0.01671788841485977, 0.008005102165043354, 0.02418993040919304, 0.02494356781244278, -0.08823075145483017, 0.03067856840789318, 0.041431691497564316, -0.01695684716105461, 0.04032880440354347, -0.04407861456274986, 0.03293947875499725, -0.05312226340174675, 0.02766401693224907, -0.032259367406368256, 0.01271074265241623, 0.03266375884413719, -0.007825884036719799, 0.050585631281137466, 0.01880417950451374, 0.04433595389127731, -0.014401831664144993, -0.042130183428525925, 0.005546589381992817, 0.0052157239988446236, 0.008841456845402718, -0.00034551299177110195, -0.013023226521909237, -0.03735101968050003, -0.0528649240732193, -0.06602600961923599, 0.008308395743370056, 0.03137706220149994, -0.034924671053886414, 0.012563691474497318, 0.02154300920665264, -0.023142190650105476, -0.01396067813038826, 0.02448403276503086, 0.04128463938832283, -0.033031389117240906, 0.025403104722499847, -0.008179726079106331, 0.006346180569380522, -0.0415787398815155, -0.01236149575561285, -0.0074536604806780815, 0.02293999493122101, -0.05161498859524727, 0.03093590773642063, -0.011663002893328667, 0.04492415860295296, -0.06437168270349503, -0.033233582973480225, 0.030807238072156906, 0.003956597764045, -0.040880247950553894, 0.015008418820798397, 0.0009052842506207526, -0.0011229891097173095, 0.0283992737531662, 0.015238186344504356, 0.009539949707686901, 0.027351532131433487, 0.010835839435458183, -0.03554964065551758, 0.038674481213092804, 0.007081436924636364, 0.11756747961044312, -0.0015601218910887837, 0.10271529853343964, -0.017260141670703888, -0.0020127641037106514, -0.014401831664144993, 0.0116354301571846, -0.05087973177433014, 0.09764203429222107, -0.011745719239115715, -0.059445470571517944, -0.016111303120851517, -0.0484166257083416, -0.027847830206155777, 0.06632011383771896, -0.055511847138404846, 0.007297418545931578, 0.0012418937403708696, 0.07727543264627457, 0.02350981906056404, 0.011332137510180473, 0.014604027383029461, -0.06268059462308884, -0.01384119875729084, 0.03540258854627609, 0.04429918900132179, -0.03863771632313728, 0.007145771756768227, 0.008584116585552692, 0.03146896883845329, 0.03531068190932274, -0.06639364361763, -0.0174531452357769, 0.025109000504016876, 0.04768136888742447, -0.002628541085869074, -0.007113604340702295, -0.04698287695646286, 0.001553228823468089, -0.004356393590569496, -0.002577992156147957, -0.0037015557754784822, 0.02373039536178112, 0.006893027573823929, -0.052534058690071106, -0.0643349215388298, 0.0703272596001625, 0.01646054908633232, -0.0062175109051167965, 0.035457734018564224, 0.050070952624082565, 0.01898799277842045, -0.011571095325052738, 0.04271838814020157, 0.03310491144657135, 0.06429816037416458, 0.05360018089413643, -0.033729881048202515, 0.022186357527971268, 0.02492518723011017, 0.056210342794656754, -0.005620114970952272, -0.007485827896744013, -0.014898129738867283, -0.007596116047352552, -0.0006157770985737443, 0.04205665737390518, -0.05113707482814789, -0.0311381034553051, 0.09198056161403656, -0.007881027646362782, 0.0032190438359975815, 0.03067856840789318, -0.006001529283821583, 0.07859889417886734, 0.010394684970378876, -0.05404133349657059, -0.00006401180871762335, 0.02055041305720806, -0.06837883591651917, -0.04426242783665657, 0.051320888102054596, 0.04918864369392395, 0.01222363580018282, 0.023087047040462494, -0.07345210015773773, -0.0006944725173525512, 0.04407861456274986, -0.011947914026677608, 0.051063548773527145, -0.021561389788985252, -0.02966758981347084, -0.05363694578409195, 0.05665149539709091, 0.03314167633652687, -0.001038549467921257, 0.005463873036205769, -0.013023226521909237, 0.0706581249833107, -0.01544038113206625, -0.03852742910385132, 0.0037957604508847, 0.018620364367961884, 0.006539185531437397, -0.05341636762022972, 0.011442425660789013, 0.009880006313323975, -0.07319476455450058, -0.008464638143777847, -0.0100086759775877, -0.04492415860295296, 0.009199894033372402, 0.04529178515076637, 0.07440793514251709, -0.038895055651664734, 0.03882152959704399, 0.00934235006570816, -0.03885829448699951, -0.02816031500697136, -0.018197592347860336, -0.022186357527971268, -0.009466424584388733, -0.043637458235025406, 0.03282919153571129, -0.02667142078280449, 0.004142709542065859, -0.03830685093998909, -0.02023792825639248, 0.0465417206287384, 0.06025424972176552, -0.017747247591614723, 0.005716617219150066, -0.03159763664007187, 0.019962208345532417, -0.024098023772239685, 0.008960935287177563, -0.02691037952899933, -0.03295786306262016, 0.002382689854130149, -0.07279036939144135, 0.026505988091230392, -0.04837986081838608, -0.000999488984234631, -0.00863926112651825, 0.0029731926042586565, -0.008097009733319283, 0.05341636762022972, 0.018896086141467094, 0.015798818320035934, 0.04554912447929382, 0.015302521176636219, 0.032718904316425323, -0.030200650915503502, -0.05852639675140381, -0.042865440249443054, 0.013896343298256397, -0.040181756019592285, 0.06951847672462463, -0.013225422240793705, 0.01027520652860403, 0.019098281860351562, 0.009176917374134064, 0.00538575230166316, -0.00037997812614776194, 0.009484806098043919, 0.0281419325619936, 0.07451821863651276, 0.05801171809434891, 0.015385237522423267, 0.09293638914823532, -0.05565889924764633, -0.04801223427057266, -0.0017071731854230165, 0.06150418519973755, -0.08065760880708694, -0.015467953868210316, -0.010973699390888214, -0.02963082678616047, -0.04470358043909073, -0.025899400934576988, -0.011571095325052738, 0.043122779577970505, -0.004025528207421303, -0.038711242377758026, 0.03196526691317558, 0.017940253019332886, -0.057938192039728165, -0.07514318823814392, -0.03727749362587929, 0.0010902471840381622, -0.029299961403012276, 0.012701552361249924, -0.02025631070137024, -0.035678308457136154, -0.05587947741150856, -0.014392641372978687, -0.02196578122675419, -0.0281419325619936, -0.030605042353272438, -0.02203930728137493, -0.018693890422582626, 0.042387522757053375, 0.01468674372881651, -0.013684957288205624, -0.021616533398628235, -0.0037957604508847, 0.018344644457101822, -0.01731528528034687, -0.029116148129105568, -0.005532803479582071, 0.05396781116724014, 0.0022413828410208225, 0.02766401693224907, 0.02468622848391533, -0.037902459502220154, -0.015651768073439598, 0.04400508850812912, -0.03395045921206474, 0.03111972101032734, 0.022701038047671318, -0.05830582231283188, -0.034244559705257416, 0.008372730575501919, 0.033987220376729965, 0.005155984312295914, 0.020826132968068123, -0.0035039556678384542, -0.011240229941904545, -0.061430659145116806, -0.031266771256923676, -0.008680619299411774, 0.08484857529401779, 0.039152394980192184, 0.011350519023835659, 0.007678832393139601, 0.005803929176181555, 0.03117486648261547, 0.017352048307657242, 0.0010845030192285776, 0.02889557182788849, 0.0010913959704339504, 0.08080466091632843, 0.000047030553105287254, 0.00444830022752285, 0.024153167381882668, 0.004898644983768463, 0.04797546938061714, 0.002224150113761425, 0.0018668615957722068, -0.08653966337442398, -0.003857797710224986, 0.04823281243443489, 0.042865440249443054, -0.0016037777531892061, -0.013280565850436687, -0.03578859940171242, -0.019208569079637527, 0.028123551979660988, -0.0007863795617595315, -0.04393156245350838, 0.03974059969186783, 0.05043857917189598, 0.012949700467288494, 0.018436551094055176, 0.06400405615568161, 0.00020075943029951304, -0.008046460337936878, -0.009052842855453491, -0.011065606959164143, -0.01931885816156864, -0.006631092634052038, -0.005261677782982588, 0.0016256056260317564, 0.06393053382635117, -0.03214908018708229, 0.013004845008254051, 0.004678067751228809, -0.014309925027191639, 0.030991051346063614, -0.01793106272816658, -0.07727543264627457, -0.057717617601156235, 0.020715845748782158, 0.020090878009796143, 0.03804951161146164, 0.0071090091951191425, -0.04595351591706276, 0.0019047732930630445, 0.007159557659178972, -0.03959355130791664, 0.02349143847823143, 0.02196578122675419, 0.008138367906212807, 0.03135867789387703, -0.020587176084518433, -0.0026836853940039873, -0.0025550154969096184, 0.026377318426966667, -0.021561389788985252, -0.011093178763985634, -0.0005629305960610509, -0.012140919454395771, 0.00785345584154129, 0.022149594500660896, -0.0026446247939020395, 0.05323255434632301, -0.05584271252155304, 0.03156087547540665, -0.0023849874269217253, 0.02293999493122101, 0.06348937749862671, 0.0005353584419935942, 0.042865440249443054, -0.007462851237505674, -0.06025424972176552, 0.00823027454316616, -0.03170792758464813, 0.05481335520744324, 0.012343114241957664, -0.03687310218811035, -0.050328291952610016, -0.043821271508932114, 0.018041349947452545, 0.03240641951560974, -0.017287712544202805, -0.008441660553216934, 0.020311454311013222, 0.08484857529401779, -0.05790143087506294, 0.024410508573055267, 0.014181255362927914, 0.018317071720957756, -0.009466424584388733, -0.04429918900132179, 0.025660444051027298, -0.07381972670555115, 0.024870043620467186, 0.010229253210127354, -0.01880417950451374, -0.05396781116724014, -0.0805840864777565, 0.0504753440618515, 0.0214694831520319, 0.010697978548705578, -0.042166948318481445, -0.03501657769083977, -0.025145763531327248, -0.011424044147133827, 0.0029502157121896744, 0.028546323999762535, -0.006814906373620033, 0.012903747148811817, -0.02895071543753147, -0.013142705895006657, 0.0232708603143692, -0.0031271367333829403, -0.035972412675619125, 0.05293845012784004, -0.0014555776724591851, 0.03996117785573006, -0.006125603802502155, 0.043416883796453476, 0.025899400934576988, -0.015302521176636219, -0.0006301375688053668, -0.03145058825612068, -0.034520283341407776, -0.014475357718765736, 0.015026800334453583, -0.03433646634221077, 0.024318600073456764, -0.02176358550786972, 0.05683530867099762, 0.033251963555812836, 0.0001434611331205815, -0.013041608035564423, -0.028068408370018005, -0.010808266699314117, -0.011451615951955318, 0.003343118354678154, -0.035218775272369385, -0.006750571541488171, 0.0028812855016440153, 0.023564962670207024, 0.004494254011660814, -0.08881895989179611, 0.027020666748285294, -0.013832008466124535, -0.027259625494480133, -0.036965008825063705, 0.02740667760372162, 0.06948171555995941, -0.03086238168179989, 0.002495276043191552, -0.023068664595484734, -0.019079899415373802, -0.12183196097612381, -0.01680060476064682, 0.008331372402608395, -0.019355621188879013, 0.05396781116724014, -0.0242083128541708, -0.03782893344759941, 0.010403876192867756, 0.04999742656946182, -0.055475085973739624, 0.03220422565937042, 0.021855492144823074, 0.014907320961356163, 0.016469739377498627, 0.011065606959164143, -0.003285676473751664, 0.004248402547091246, -0.03132191672921181, -0.013032416813075542, -0.007766144350171089, 0.025862639769911766, 0.10242119431495667, 0.008345158770680428, -0.0011505611473694444, -0.08293690532445908, -0.05554861202836037, 0.059702809900045395, -0.007136580999940634, -0.015918297693133354, -0.0029364298097789288, 0.01904313638806343, 0.025531774386763573, 0.024410508573055267, -0.007490423042327166, 0.013023226521909237, 0.05613681674003601, -0.022848088294267654, -0.037185586988925934, -0.03385855257511139, -0.06819501519203186, -0.014934892766177654, 0.04554912447929382, -0.009493996389210224, -0.023638488724827766, 0.01160785835236311, 0.02623026631772518, 0.028050025925040245, -0.029465394094586372, 0.0023666061460971832, 0.033472541719675064, 0.02073422633111477, 0.008611689321696758, -0.014245590195059776, -0.018896086141467094, -0.008983912877738476, 0.019190188497304916, 0.044372715055942535, 0.05757056549191475, -0.030549896880984306, -0.013795245438814163, 0.052534058690071106, 0.018335452303290367, 0.0056109242141246796, 0.009521568194031715, 0.032002028077840805, -0.0232708603143692, 0.04308601841330528, -0.014824604615569115, -0.027847830206155777, -0.026138359680771828, 0.002056419849395752, -0.00488945422694087, 0.057460278272628784, 0.054739829152822495, 0.0036946628242731094, 0.018739843741059303, -0.02887718938291073, -0.005928003694862127 ]
17,224
imodels.rule_list.greedy_rule_list
_entropy_criterion
Returns entropy of a divided group of data Data may have multiple classes
def _entropy_criterion(self, y): """Returns entropy of a divided group of data Data may have multiple classes """ s = 0 n = len(y) classes = set(y) # for each class, get entropy for c in classes: # weights for each class weight = sum(y == c) / n def _entropy_from_counts(c1, c2): """Returns entropy of a group of data c1: count of one class c2: count of another class """ if c1 == 0 or c2 == 0: # when there is only one class in the group, entropy is 0 return 0 def _entropy_func(p): return -p * math.log(p, 2) p1 = c1 * 1.0 / (c1 + c2) p2 = c2 * 1.0 / (c1 + c2) return _entropy_func(p1) + _entropy_func(p2) # weighted avg s += weight * _entropy_from_counts(sum(y == c), sum(y != c)) return s
(self, y)
[ -0.026293106377124786, -0.009732905775308609, 0.02379748970270157, 0.07244419306516647, 0.06927119195461273, -0.048557572066783905, -0.03374430537223816, -0.04114202782511711, 0.026186151430010796, 0.062639981508255, -0.012709819711744785, -0.005120471119880676, 0.022139687091112137, 0.0009124599164351821, -0.017718879505991936, -0.010775716975331306, -0.019127121195197105, 0.008565313182771206, -0.0017380188219249249, -0.02957305870950222, -0.015588692389428616, 0.06830859929323196, 0.005900351330637932, -0.0047951494343578815, -0.0453132726252079, -0.0064618648029863834, -0.0023864335380494595, -0.012522649019956589, -0.06242607161402702, -0.023547926917672157, -0.024350089952349663, -0.02845003269612789, 0.012531561776995659, 0.019394507631659508, 0.030535655096173286, -0.05058971792459488, 0.02379748970270157, 0.042782001197338104, -0.1021776869893074, -0.031676508486270905, -0.061142612248659134, -0.03632904961705208, -0.024920515716075897, 0.033084750175476074, -0.020392755046486855, 0.04406546428799629, 0.014465664513409138, 0.026239627972245216, -0.028699593618512154, -0.04763063043355942, -0.061178263276815414, -0.02807568944990635, 0.031623031944036484, -0.010392461903393269, 0.019037991762161255, 0.07337113469839096, 0.012371129356324673, -0.02394009567797184, -0.011221363209187984, 0.008912917226552963, 0.004006356466561556, 0.00852520577609539, 0.04263939708471298, 0.003727827686816454, -0.01812887378036976, 0.0009386416058987379, -0.14431795477867126, 0.08207014203071594, 0.00993790291249752, 0.017255408689379692, -0.022175338119268417, -0.043245475739240646, 0.06944945454597473, 0.020125366747379303, -0.026507016271352768, 0.06214085966348648, -0.054404448717832565, -0.017246494069695473, 0.09105436503887177, 0.01976885087788105, -0.020392755046486855, -0.0021747518330812454, 0.055759210139513016, -0.019073642790317535, 0.04096376895904541, -0.07379895448684692, 0.0073308744467794895, 0.012950468808412552, -0.013342637568712234, -0.01951928809285164, -0.04524196684360504, 0.07105377316474915, 0.04941321164369583, 0.03377995640039444, -0.0004319979634601623, 0.08385272324085236, -0.05875394865870476, 0.029965227469801903, 0.030696086585521698, 0.00018800684483721852, 0.037362948060035706, 0.08271187543869019, 0.05511748045682907, 0.07016248255968094, -0.040108129382133484, -0.011568966321647167, -0.014590445905923843, 0.021836647763848305, -0.03693512827157974, 0.04356633871793747, -0.07650848478078842, 0.008275643922388554, 0.026025718078017235, -0.029109587892889977, 0.014483490958809853, -0.10431678593158722, -0.020571013912558556, 0.03550906106829643, -0.044493284076452255, 0.0049867769703269005, -0.004282656591385603, 0.0040286388248205185, -0.009296172298491001, 0.04673933982849121, 0.009813121519982815, -0.04463588818907738, 0.029876098036766052, -0.02385096624493599, -0.01274547167122364, -0.020784923806786537, 0.04246113821864128, -0.01677411049604416, 0.03388691321015358, 0.05918177217245102, 0.056864410638809204, -0.05672180652618408, -0.03575862571597099, 0.007130333688110113, 0.0763658732175827, -0.020250147208571434, 0.04538457468152046, -0.037434253841638565, 0.025740504264831543, -0.015027178451418877, 0.07629457116127014, 0.0012232979061082006, 0.014126974157989025, -0.00925160851329565, 0.004844170529395342, -0.04320982098579407, -0.01553521491587162, -0.0017435894114896655, 0.0783623680472374, -0.0016834272537380457, 0.0051338402554392815, 0.028646115213632584, -0.02540181390941143, -0.04463588818907738, -0.016266074031591415, -0.008026082068681717, -0.007567066699266434, -0.03342343866825104, -0.03413647413253784, -0.00429156981408596, -0.00007318340794881806, -0.0011124435113742948, -0.0057800267823040485, 0.025847459211945534, 0.0002721225027926266, -0.0451350137591362, -0.00009463011519983411, -0.05451140180230141, -0.005517095793038607, 0.012531561776995659, -0.003402506234124303, 0.05169491842389107, -0.012299825437366962, 0.0029769144020974636, -0.013574372977018356, 0.062818244099617, 0.005142753478139639, -0.025615723803639412, -0.014795443043112755, -0.012371129356324673, -0.014064582996070385, 0.008863896131515503, 0.06581298261880875, 0.008141949772834778, -0.037398599088191986, 0.016542375087738037, -0.04641847312450409, -0.07821976393461227, -0.03107042983174324, -0.00426037423312664, 0.0936925858259201, -0.00906443689018488, -0.02839655429124832, 0.03789772465825081, -0.027523089200258255, 0.052942726761102676, -0.020267974585294724, 0.01998276077210903, 0.03468907251954079, 0.010044857859611511, -0.00925160851329565, 0.012986120767891407, -0.03552688658237457, 0.0767223909497261, -0.040215082466602325, -0.08071538060903549, -0.00670251389965415, -0.03226476162672043, -0.014385448768734932, 0.09169609099626541, 0.05593746900558472, -0.011034191586077213, 0.04210462048649788, -0.014563706703484058, -0.025918763130903244, -0.03761250898241997, -0.07993104308843613, -0.04923495650291443, -0.03566949442028999, 0.051338404417037964, 0.020054064691066742, -0.00833803415298462, 0.01669389382004738, 0.04677499085664749, 0.04410111531615257, -0.011640270240604877, 0.011675921268761158, 0.02247837744653225, 0.06638340651988983, 0.00666240556165576, 0.03354822099208832, 0.00907334964722395, 0.0063459970988333225, 0.017950614914298058, -0.0154371727257967, 0.013966541737318039, -0.05511748045682907, -0.06196260079741478, 0.00738880829885602, 0.004331677686423063, -0.021480130031704903, 0.0070322914980351925, 0.022906197234988213, 0.049841031432151794, 0.014911310747265816, 0.028485683724284172, -0.06274693459272385, -0.00854303129017353, -0.014572619460523129, -0.059966105967760086, 0.03290649130940437, -0.06260433048009872, -0.017487144097685814, 0.028984807431697845, 0.040286384522914886, -0.052728816866874695, -0.023565752431750298, 0.04328112676739693, -0.04930625855922699, 0.03119521029293537, -0.0882735326886177, 0.005962741561233997, 0.027647869661450386, -0.0028811004012823105, -0.007250658236443996, 0.01485783327370882, 0.022941848263144493, 0.05661484971642494, 0.009331824257969856, -0.04763063043355942, -0.04752367362380028, 0.005757744424045086, 0.0420689694583416, -0.019055817276239395, -0.0085519440472126, 0.030161311849951744, 0.042746350169181824, -0.006207847036421299, -0.0418907105922699, -0.0018616855377331376, 0.027184396982192993, 0.029287846758961678, -0.025615723803639412, -0.025063123553991318, 0.048628877848386765, -0.0024309982545673847, -0.02807568944990635, 0.027843954041600227, 0.034653421491384506, 0.02830742485821247, 0.03672121837735176, -0.030589131638407707, -0.015045003965497017, -0.027683520689606667, 0.0017001390224322677, 0.037505555897951126, -0.007821084931492805, 0.03386908397078514, 0.03265693038702011, -0.03950205072760582, -0.02672092616558075, -0.0014661748427897692, 0.04976972937583923, -0.011720485985279083, 0.003614187939092517, 0.02980479598045349, 0.06206955388188362, 0.05501052364706993, 0.028663942590355873, 0.03470689803361893, -0.036204271018505096, -0.050054945051670074, 0.010089422576129436, 0.01477761659771204, 0.02269228734076023, 0.062461722642183304, 0.05176622420549393, 0.04823670908808708, 0.03672121837735176, 0.04060725122690201, 0.04263939708471298, -0.03379778191447258, 0.06641905754804611, -0.004946669097989798, 0.02401139959692955, -0.02549094334244728, -0.06089305132627487, -0.04809410125017166, 0.018592344596982002, 0.0362933985888958, -0.009019872173666954, 0.04816540330648422, 0.04374459758400917, -0.01827147975564003, 0.0068406639620661736, -0.058646995574235916, -0.062818244099617, 0.01989363133907318, -0.06909293681383133, 0.050019290298223495, 0.012157219462096691, -0.06663297116756439, -0.016168031841516495, -0.026079196482896805, 0.013583285734057426, 0.036008186638355255, 0.013449592515826225, -0.008725745603442192, 0.09518995881080627, 0.01973319798707962, 0.03814728558063507, 0.04185505956411362, 0.02511660009622574, -0.014590445905923843, -0.008547487668693066, -0.008707920089364052, 0.031890418380498886, -0.004024181980639696, 0.014055670239031315, -0.02408270165324211, -0.00530764227733016, 0.048557572066783905, 0.020250147208571434, 0.004755041562020779, -0.0020399438217282295, -0.004472056403756142, -0.0482010580599308, -0.03807598352432251, -0.03536645695567131, 0.021747518330812454, 0.038860321044921875, -0.000794920779298991, -0.044350676238536835, -0.05051841586828232, 0.005035798065364361, 0.033334311097860336, -0.0075982618145644665, 0.040179431438446045, -0.029287846758961678, 0.010570719838142395, -0.020677968859672546, 0.000359301979187876, -0.003647611476480961, -0.0045678699389100075, 0.014911310747265816, 0.009697253815829754, 0.040036823600530624, -0.02131969854235649, 0.04246113821864128, -0.03479602932929993, -0.05608007684350014, -0.015864992514252663, 0.012201783247292042, 0.01188091840595007, -0.054333142936229706, -0.03285301476716995, -0.016417592763900757, 0.003816956887021661, 0.029305672273039818, -0.0014048985904082656, -0.05023320019245148, 0.015160872600972652, -0.01836060918867588, -0.0009052181849256158, -0.026150498539209366, -0.008489553816616535, -0.07536762952804565, 0.0565078966319561, 0.012246347963809967, 0.017674315720796585, -0.021497955545783043, -0.020250147208571434, -0.013832847587764263, -0.03199737146496773, 0.024938343092799187, 0.0127276461571455, 0.014465664513409138, -0.023440971970558167, 0.000032257099519483745, 0.014421099796891212, -0.01848538964986801, -0.04688194394111633, -0.010232028551399708, -0.03324517980217934, -0.012157219462096691, -0.024225309491157532, -0.06196260079741478, 0.019055817276239395, -0.06581298261880875, -0.014385448768734932, 0.0532635934650898, -0.042425487190485, -0.02693483605980873, 0.0476662814617157, -0.03757685795426369, -0.01991145685315132, -0.0534418523311615, 0.04627586528658867, 0.05394097417593002, 0.07501111179590225, 0.006724796257913113, -0.03853945434093475, -0.0006517570582218468, -0.009501169435679913, -0.05943133309483528, -0.02565137669444084, -0.006065240129828453, -0.03206867724657059, 0.03502776473760605, 0.050054945051670074, 0.0071793547831475735, 0.05390532314777374, -0.017611924558877945, -0.022906197234988213, 0.02670310065150261, 0.01717519201338291, 0.0002350781869608909, 0.014697400853037834, 0.02800438553094864, 0.03356604650616646, -0.04823670908808708, -0.033298660069704056, 0.0008701235638000071, 0.010125073604285717, 0.06103565916419029, 0.0032576711382716894, 0.05319229140877724, 0.02385096624493599, -0.009010959416627884, -0.004298254381865263, 0.0001509625290054828, 0.027612216770648956, -0.004128908738493919, -0.007518045604228973, 0.031498249620199203, -0.020571013912558556, 0.022834893316030502, 0.037291646003723145, 0.06959205865859985, -0.08863005042076111, -0.003841467434540391, -0.017531707882881165, -0.0012533790431916714, -0.03556254133582115, 0.05383402109146118, 0.007067943457514048, 0.020125366747379303, -0.006813925225287676, 0.0183249581605196, -0.01574021205306053, -0.031587377190589905, -0.02107013575732708, 0.027148745954036713, 0.03265693038702011, -0.009554646909236908, -0.04096376895904541, -0.00454113120213151, 0.05365576222538948, -0.029858272522687912, -0.05907481536269188, 0.04916365072131157, 0.034403860569000244, -0.01701475866138935, 0.007085769437253475, -0.012362216599285603, 0.049947988241910934, 0.031854767352342606, -0.024973994120955467, -0.012041350826621056, 0.003992986865341663, 0.04331677779555321, -0.01830713264644146, -0.006715883035212755, 0.03511689230799675, 0.015169785358011723, 0.0736563503742218, 0.03435038402676582, 0.03675686940550804, 0.015276740305125713, 0.01330698560923338, 0.0009603668586350977, 0.03101695142686367, -0.016444332897663116, 0.011150059290230274, 0.003199737286195159, 0.03679252415895462, -0.029983052983880043, -0.03832554444670677, -0.04281765595078468, 0.07394155859947205, -0.041320282965898514, 0.03558036684989929, -0.03269258141517639, -0.00243545463308692, -0.008222166448831558, 0.02538398839533329, -0.00915356632322073, -0.04385155439376831, 0.0790754035115242, 0.009322911500930786, 0.03110608085989952, 0.04320982098579407, -0.008507379330694675, 0.021943602710962296, -0.013797195628285408, 0.016604764387011528, 0.011720485985279083, -0.006069696508347988, -0.039894215762615204, 0.001797066885046661, 0.10495851188898087, -0.0009687226847745478, -0.008716832846403122, 0.02697048708796501, -0.030072182416915894, 0.032977793365716934, -0.014438926242291927, -0.04798714816570282, 0.029038283973932266, -0.03832554444670677, -0.013485243543982506, -0.05814787372946739, -0.007393264677375555, 0.03946639597415924, -0.06306780129671097, 0.020410580560564995, -0.06784512847661972, 0.08435185253620148, -0.03251432254910469, 0.03654295951128006, -0.04937756061553955, 0.03272823244333267, -0.021854473277926445, -0.034653421491384506, 0.011016366071999073, -0.04830801114439964, -0.035936880856752396, -0.044564586132764816, 0.003005881328135729, -0.02791525609791279, -0.021711867302656174, -0.015864992514252663, -0.03495646268129349, 0.00666240556165576, -0.04246113821864128, 0.03985856473445892, -0.01672954484820366, -0.010116160847246647, -0.04484979808330536, 0.018004093319177628, 0.01477761659771204, -0.01555304042994976, -0.033316485583782196, 0.01194330956786871, -0.023298365995287895, 0.0003013680106960237, -0.0013547634007409215, 0.03921683505177498, -0.02533050999045372, 0.017843659967184067, 0.061213914304971695, -0.03761250898241997, -0.015597605146467686, -0.019447986036539078, 0.0007408862584270537, -0.06292519718408585, -0.04271069914102554, 0.07337113469839096, 0.03807598352432251, 0.0366499163210392, 0.01841408759355545, 0.020303625613451004, 0.011105494573712349, -0.028485683724284172, 0.0006773817003704607, -0.002803112380206585, -0.001213270821608603, 0.027344830334186554, 0.016337377950549126, -0.0048664528876543045, -0.020856225863099098, -0.06495734304189682, 0.003961791750043631, -0.00209676381200552, -0.0041489629074931145, -0.022977501153945923, -0.024760084226727486, 0.01964407041668892, 0.028966981917619705, -0.023547926917672157, 0.023494450375437737, -0.004826344549655914, -0.013289159163832664, 0.0003838124976027757, -0.01574021205306053, -0.050910584628582, -0.06420865654945374, 0.05654354766011238, -0.017210843041539192, -0.022246642038226128, -0.001957499422132969, -0.05180187523365021, -0.034617770463228226, 0.06349562108516693, 0.010116160847246647, -0.059966105967760086, 0.0057042669504880905, -0.017763443291187286, 0.05761309713125229, -0.00521851284429431, 0.015766950324177742, -0.014305232092738152, -0.0049422127194702625, 0.010552894324064255, 0.015196523629128933, -0.03850380331277847, -0.028467858210206032, 0.030393047258257866, 0.03253214806318283, 0.01812887378036976, 0.006172195076942444, -0.00524970842525363, -0.0027384937275201082, -0.07237289100885391, -0.048842787742614746, -0.012397867627441883, -0.004621347412467003, 0.02677440270781517, 0.01063311006873846, -0.005472531076520681, -0.058646995574235916, -0.035722970962524414, 0.021676214411854744, -0.011791789904236794, 0.027327004820108414, -0.015107395127415657, 0.0391811840236187, 0.015241088345646858, 0.012460257858037949, -0.0740128681063652, 0.03814728558063507, 0.028735244646668434, -0.03843249753117561, -0.03843249753117561, -0.022799242287874222, -0.06338866800069809, -0.06702513992786407, -0.009768557734787464, 0.003997443243861198, -0.048735830932855606, -0.028877852484583855, -0.005321011412888765, -0.01053506787866354, 0.06477908045053482, 0.051481008529663086, -0.012014612555503845, -0.0225675068795681, 0.011016366071999073, -0.03404734283685684, -0.004206896759569645, -0.027184396982192993, -0.00925160851329565, -0.02554442174732685, 0.0008968623005785048, 0.01541934721171856, 0.00420244038105011, -0.01264742948114872, 0.009492256678640842, -0.02536616288125515, 0.0024711063597351313, 0.005557204131036997, 0.07137463986873627, 0.005120471119880676, 0.014242841862142086, -0.025455292314291, -0.0027162116020917892, 0.02982262149453163, 0.012522649019956589, 0.040001172572374344, 0.04107072204351425, -0.06513559818267822, -0.007348700426518917, 0.08663355559110641, -0.024421393871307373, 0.04609760642051697, -0.03779076784849167, -0.009287259541451931, 0.01467066165059805, -0.04335242882370949, -0.054333142936229706, -0.05950263515114784, 0.016239335760474205, -0.03982291370630264, -0.07501111179590225, 0.00011363969679223374, 0.02108796313405037, -0.012201783247292042, -0.005815678276121616, 0.0426037460565567, -0.023405320942401886, 0.021729692816734314, -0.0482010580599308, 0.002624854212626815, 0.02420748397707939, 0.034386035054922104, -0.052764471620321274, 0.03490298241376877, -0.006132087204605341, 0.023137932643294334, -0.008418249897658825, 0.09069784730672836, 0.0005191774107515812, 0.026007892563939095, -0.061320871114730835, 0.045812394469976425, -0.016604764387011528, -0.02547311782836914, -0.07215897738933563, 0.009474431164562702, 0.013458505272865295, -0.05169491842389107, 0.027291351929306984, 0.06599123775959015, 0.011747225187718868 ]
17,225
imodels.rule_list.greedy_rule_list
_find_best_split
Find the best split from all features returns: the column to split on, the cutoff value, and the actual criterion_value
def _find_best_split(self, x, y): """ Find the best split from all features returns: the column to split on, the cutoff value, and the actual criterion_value """ col = None min_criterion_val = 1e10 cutoff = None # iterating through each feature for i, c in enumerate(x.T): # find the best split of that feature criterion_val, cur_cutoff = self._split_on_feature(c, y) # found perfect cutoff if criterion_val == 0: return i, cur_cutoff, criterion_val # check if it's best so far elif criterion_val <= min_criterion_val: min_criterion_val = criterion_val col = i cutoff = cur_cutoff return col, cutoff, min_criterion_val
(self, x, y)
[ 0.023725634440779686, -0.008244701661169529, -0.025530269369482994, 0.000950971560087055, 0.027246439829468727, -0.00956279318779707, 0.05477596074342728, 0.031227251514792442, -0.03418189659714699, -0.03630499914288521, -0.026273353025317192, -0.00013815349666401744, -0.07317615300416946, -0.06178218871355057, 0.009845872409641743, 0.03998503461480141, 0.010907422751188278, -0.018842505291104317, 0.0392773374915123, 0.01827634684741497, 0.0032178224064409733, -0.029210306704044342, 0.0003292462497483939, -0.004582355730235577, 0.03131571412086487, 0.015976322814822197, 0.014799770899116993, 0.025264881551265717, 0.016675176098942757, -0.006333912722766399, -0.06121603026986122, -0.05420980229973793, -0.026751050725579262, -0.013747068122029305, -0.05038822069764137, -0.02752952091395855, 0.09440714865922928, 0.05233439803123474, 0.06411759555339813, -0.036871157586574554, -0.051626697182655334, -0.04543432593345642, -0.0249641090631485, 0.03333265706896782, -0.06082679331302643, -0.0008215951966121793, -0.022876394912600517, 0.0216556116938591, 0.002028002170845866, 0.04532817006111145, -0.02418563887476921, -0.08457011729478836, -0.011261272244155407, 0.031510330736637115, -0.015401315875351429, 0.04062196612358093, 0.06800994277000427, -0.06079141050577164, -0.025777963921427727, 0.01699363999068737, 0.014950157143175602, 0.03097955696284771, 0.012667825445532799, 0.042745064944028854, -0.019974825903773308, -0.05222824215888977, -0.07066381722688675, 0.035915762186050415, -0.06100371852517128, 0.04362969100475311, -0.010217415168881416, -0.011217040941119194, 0.06397605687379837, 0.037012696266174316, -0.047628194093704224, 0.00029026748961769044, 0.025424113497138023, -0.009297405369579792, 0.07260999828577042, -0.016162093728780746, 0.001452996046282351, 0.0033483044244349003, -0.004159947391599417, -0.055660586804151535, 0.0004365069908089936, -0.04419584944844246, 0.03556191176176071, 0.07126536220312119, 0.07954545319080353, -0.021779458969831467, -0.046885110437870026, 0.05343133211135864, 0.03299650177359581, 0.034995753318071365, -0.019249433651566505, 0.0072893076576292515, -0.04118812456727028, 0.059092927724123, -0.03655269369482994, -0.02609642781317234, 0.01834711618721485, 0.05679290369153023, 0.01453438401222229, 0.07551156729459763, 0.022434081882238388, -0.034075744450092316, 0.016533635556697845, -0.0026804127264767885, -0.06284373998641968, -0.052546706050634384, -0.04709741845726967, 0.008045661263167858, -0.02797183208167553, 0.053714409470558167, -0.039029642939567566, -0.014268996194005013, -0.03476575016975403, 0.06326835602521896, -0.012225513346493244, -0.004962744656950235, -0.010217415168881416, -0.03135110065340996, -0.05038822069764137, -0.002024684799835086, -0.00976625643670559, 0.006205642130225897, 0.07848390191793442, 0.03740193322300911, -0.054528266191482544, -0.021938692778348923, 0.06411759555339813, -0.0011411658488214016, -0.045858945697546005, 0.025229496881365776, -0.025671808049082756, -0.03768501058220863, -0.005471403710544109, 0.03924195095896721, 0.04412508010864258, -0.0811023935675621, 0.006661223713308573, -0.019620975479483604, -0.029422616586089134, -0.021938692778348923, -0.001656459760852158, 0.004115716554224491, 0.020753296092152596, -0.012119358405470848, 0.06553299725055695, 0.0185417328029871, -0.028060294687747955, 0.029670313000679016, -0.031510330736637115, -0.1148596704006195, -0.010942807421088219, 0.012685517780482769, -0.020310983061790466, -0.019797900691628456, 0.027334902435541153, -0.0150474663823843, 0.011500121094286442, -0.03655269369482994, -0.02169099822640419, -0.01233166828751564, -0.005590828135609627, 0.06921303272247314, -0.008496819995343685, -0.021744074299931526, -0.0014916984364390373, -0.002905992092564702, 0.005980062764137983, 0.05512981116771698, -0.06514376401901245, 0.013322447426617146, -0.035367295145988464, 0.030484165996313095, -0.032872654497623444, -0.05608520656824112, -0.0007071468862704933, 0.040905047208070755, 0.04260352626442909, -0.05445749685168266, 0.008032391779124737, -0.0352434478700161, -0.018930967897176743, -0.014375151135027409, 0.018488656729459763, -0.03603960946202278, -0.012446669861674309, 0.04362969100475311, -0.02407948486506939, -0.08159778267145157, -0.0161444004625082, -0.017940187826752663, -0.03258957341313362, 0.005400633905082941, 0.013817837461829185, 0.01589670591056347, -0.021230991929769516, -0.007262768689543009, -0.025494882836937904, 0.005183900706470013, 0.024857953190803528, 0.006112756673246622, 0.008227009326219559, 0.020098673179745674, 0.008173932321369648, -0.006400259677320719, -0.04546970874071121, -0.007652003783732653, -0.013623219914734364, -0.022770239040255547, -0.011181656271219254, 0.07940391451120377, 0.06567453593015671, 0.018700966611504555, -0.02609642781317234, -0.02117791585624218, 0.03398727998137474, 0.0033239773474633694, 0.01786941848695278, -0.09377022087574005, 0.06340989470481873, 0.0840747281908989, 0.0433112233877182, -0.01754210703074932, 0.0686468780040741, -0.03333265706896782, 0.05735906586050987, -0.04653126001358032, -0.014375151135027409, -0.042745064944028854, 0.016064783558249474, -0.059623703360557556, -0.020753296092152596, 0.04554047808051109, 0.020859450101852417, -0.014667076990008354, -0.038746561855077744, -0.03271342068910599, -0.025831041857600212, -0.0016354499384760857, -0.003828213317319751, -0.01630363240838051, -0.016657482832670212, -0.012039742432534695, -0.0005960158887319267, -0.017374029383063316, -0.0008912593475542963, 0.010049336589872837, -0.0010632083285599947, -0.0041223508305847645, 0.015613625757396221, -0.04009119048714638, 0.03970195725560188, -0.10919807106256485, -0.06857610493898392, 0.016905177384614944, -0.014127456583082676, 0.02308870479464531, -0.04631894826889038, 0.038958869874477386, -0.01079242117702961, 0.011234733276069164, -0.04702664911746979, 0.010650881566107273, -0.008580859750509262, 0.0044098543003201485, 0.041825056076049805, 0.011296656914055347, 0.06602838635444641, 0.02760029025375843, -0.01761287823319435, -0.003284169128164649, -0.04118812456727028, 0.005758906714618206, -0.03186418116092682, -0.05314825102686882, 0.05006975680589676, -0.025601038709282875, 0.042815834283828735, -0.005201593041419983, -0.060543712228536606, 0.010863191448152065, -0.025123341009020805, 0.031227251514792442, -0.03736654669046402, -0.07002688944339752, 0.0020611754152923822, 0.005064476281404495, -0.10006874799728394, 0.01402130164206028, 0.03177572041749954, 0.07197306305170059, 0.0322888009250164, 0.03970195725560188, 0.04518662765622139, -0.0550590418279171, 0.0719376802444458, -0.02455718070268631, -0.006961996201425791, -0.042815834283828735, -0.04635433480143547, 0.012137050740420818, -0.01809057407081127, -0.03379266336560249, 0.01011126022785902, -0.018736351281404495, 0.006754109635949135, 0.009235481731593609, 0.04196659475564957, -0.014189380221068859, 0.04950359836220741, -0.055589813739061356, -0.016091322526335716, -0.017409414052963257, -0.007842198014259338, 0.028537992388010025, -0.00028211233438923955, 0.034482669085264206, 0.0016509308479726315, -0.03064339980483055, 0.03319111838936806, 0.03856963664293289, 0.011066654697060585, 0.040798891335725784, -0.012605901807546616, -0.02609642781317234, -0.03665884584188461, -0.0013435237342491746, -0.03589807078242302, 0.007687388453632593, -0.0024946415796875954, 0.005820830352604389, 0.02308870479464531, 0.011933587491512299, 0.04695587977766991, 0.021938692778348923, 0.015454393811523914, -0.02070021815598011, 0.01861250400543213, -0.022451775148510933, -0.005210439208894968, 0.01978020742535591, 0.01012895256280899, 0.02752952091395855, 0.022894086316227913, 0.025123341009020805, 0.03494267538189888, 0.040657348930835724, 0.01633017137646675, -0.07317615300416946, 0.012986290268599987, -0.018984045833349228, 0.02595488913357258, 0.011535505764186382, -0.02514103427529335, -0.04299275949597359, 0.026043351739645004, 0.018807120621204376, 0.017347490414977074, -0.03711885213851929, 0.03821578621864319, 0.01864788867533207, -0.005803138017654419, -0.016524789854884148, -0.004301487468183041, 0.06192372739315033, -0.01974482275545597, -0.06178218871355057, -0.034924983978271484, 0.00752373319119215, 0.07395462691783905, 0.014764386229217052, -0.002474737586453557, 0.013463987968862057, -0.05314825102686882, -0.014490152709186077, 0.020328674465417862, 0.0256895013153553, 0.014826309867203236, -0.037826552987098694, 0.0240440983325243, -0.0008243596530519426, -0.0524759367108345, 0.014976696111261845, -0.03864040598273277, -0.07593618333339691, 0.0620298832654953, -0.012243205681443214, 0.025937195867300034, 0.014454767107963562, -0.019727131351828575, 0.027104901149868965, 0.01009356789290905, 0.006055255886167288, 0.05774829909205437, -0.025937195867300034, 0.02448641136288643, 0.015445547178387642, -0.0236725565046072, -0.004533701576292515, -0.03529652580618858, 0.04249737039208412, -0.010332416743040085, 0.017241334542632103, 0.0009990730322897434, 0.026768743991851807, -0.017683647572994232, -0.0034544593654572964, -0.08669321984052658, 0.009492022916674614, 0.03090878762304783, -0.03186418116092682, -0.017922496423125267, -0.010208568535745144, -0.025017186999320984, 0.11330273002386093, 0.017922496423125267, 0.001549198990687728, 0.019497128203511238, -0.052759017795324326, -0.052617475390434265, -0.05229901149868965, -0.05827907472848892, -0.0341465137898922, -0.042745064944028854, -0.04529278352856636, -0.020540986210107803, -0.029599541798233986, -0.0693899616599083, -0.04129428043961525, -0.10686266422271729, -0.05113130807876587, -0.027441058307886124, -0.016799023374915123, -0.03736654669046402, 0.06450682878494263, 0.00026027316926047206, -0.0010145539417862892, 0.013596681877970695, 0.033527277410030365, 0.015843627974390984, 0.02811337262392044, 0.02899799682199955, -0.003312919521704316, 0.020417137071490288, 0.03421728312969208, -0.06015447899699211, -0.017533261328935623, 0.02473410591483116, -0.0359688401222229, 0.03835732489824295, 0.03419959172606468, 0.01253513153642416, -0.024203332141041756, -0.058562155812978745, 0.016091322526335716, 0.034924983978271484, 0.05081284046173096, 0.022115617990493774, 0.02008097991347313, 0.019886363297700882, 0.017940187826752663, -0.05817291885614395, -0.0030608014203608036, 0.0062852585688233376, -0.00959817785769701, 0.010889729484915733, -0.002974550472572446, 0.0012672248994931579, -0.03306727111339569, -0.005497942678630352, -0.05233439803123474, 0.057606760412454605, 0.04539893940091133, -0.0018709811847656965, 0.011597429402172565, 0.08435781300067902, -0.019355587661266327, -0.02025790512561798, -0.012747441418468952, -0.05512981116771698, -0.01912558637559414, -0.004527066834270954, -0.0009653466986492276, -0.07805928587913513, -0.01075703650712967, -0.007820081897079945, -0.002605219604447484, 0.028166450560092926, 0.02595488913357258, -0.01236705295741558, -0.029281077906489372, 0.03350958228111267, 0.017957881093025208, 0.05297132581472397, 0.038711175322532654, 0.06514376401901245, 0.017533261328935623, -0.017276721075177193, 0.02906876802444458, -0.06125141307711601, -0.031244944781064987, -0.011332042515277863, -0.061605263501405716, -0.028679532930254936, 0.009403560310602188, -0.06949611753225327, -0.023796403780579567, 0.004334661178290844, -0.0803946927189827, -0.008275664411485195, 0.054528266191482544, 0.00031929422402754426, -0.009332790039479733, 0.025264881551265717, -0.0005526139866560698, 0.03138648346066475, 0.028785686939954758, -0.004701780155301094, 0.0004608341841958463, 0.021407917141914368, -0.03825117275118828, -0.0062852585688233376, 0.007678542286157608, 0.00893913209438324, 0.020098673179745674, 0.008231433108448982, -0.00023345799127127975, -0.010350109077990055, -0.0029900313820689917, 0.04143581911921501, 0.06355144083499908, 0.011703584343194962, 0.059588320553302765, -0.00015909422654658556, -0.003202341264113784, 0.04692049324512482, -0.0174359530210495, -0.012402438558638096, 0.01857711933553219, 0.02452179603278637, 0.04628356546163559, 0.0021562727633863688, 0.010509341023862362, -0.025831041857600212, 0.06432990729808807, -0.008837400935590267, 0.017276721075177193, 0.059659089893102646, 0.049928218126297, 0.04950359836220741, -0.039029642939567566, -0.021337147802114487, -0.02499949373304844, -0.005267939995974302, 0.0059181391261518, -0.0025853156112134457, 0.013915146701037884, 0.011968972161412239, 0.03418189659714699, 0.12108742445707321, 0.035101909190416336, 0.015445547178387642, -0.01508285105228424, 0.04890205338597298, 0.024203332141041756, -0.03186418116092682, -0.0032089760061353445, -0.008081046864390373, 0.053679026663303375, -0.04012657701969147, -0.009217789396643639, 0.022451775148510933, 0.013994762673974037, 0.014693615958094597, -0.055589813739061356, -0.10176722705364227, 0.013826684094965458, -0.07243306934833527, 0.0021374744828790426, 0.014861694537103176, -0.0359688401222229, -0.038958869874477386, 0.025229496881365776, -0.038711175322532654, 0.006325066555291414, -0.006152564659714699, 0.031616486608982086, 0.012473207898437977, 0.04932667315006256, 0.01901943050324917, -0.03090878762304783, -0.005378518253564835, 0.016790175810456276, -0.08563166856765747, -0.03508421406149864, 0.02705182321369648, -0.01236705295741558, -0.0004508821584749967, -0.020682524889707565, -0.011907048523426056, 0.0370834656059742, 0.03465959429740906, -0.03672961890697479, -0.025831041857600212, 0.0009106105426326394, -0.000010444446161272936, -0.05052976310253143, -0.0032775343861430883, 0.030236471444368362, 0.04706203192472458, -0.012942058965563774, -0.06256065517663956, 0.03469498082995415, 0.04246198385953903, -0.025441806763410568, 0.03582730144262314, -0.060543712228536606, -0.006241027265787125, 0.005515635013580322, 0.05693444609642029, 0.025494882836937904, 0.027918756008148193, -0.004967167507857084, 0.00575448339805007, -0.06418836861848831, -0.02158484235405922, 0.004887551534920931, -0.04504508897662163, -0.01026164647191763, 0.04854820296168327, -0.04058657959103584, 0.011278964579105377, 0.05314825102686882, 0.04511585831642151, -0.010235107503831387, -0.03775578364729881, -0.02411486953496933, -0.03718962147831917, 0.05788984149694443, 0.08131469786167145, -0.015976322814822197, -0.040763504803180695, -0.08096085488796234, 0.0009061874006874859, 0.059446778148412704, 0.07897929102182388, -0.018010959029197693, -0.022858701646327972, 0.021478688344359398, -0.027104901149868965, -0.020098673179745674, 0.028537992388010025, -0.045646633952856064, -0.005360825452953577, 0.034818828105926514, 0.031032634899020195, -0.04858358949422836, 0.016763638705015182, 0.008664898574352264, 0.06316220015287399, -0.016454018652439117, -0.05934062600135803, -0.006568338256329298, 0.016675176098942757, -0.01809057407081127, -0.004243987146764994, 0.02271716296672821, 0.03043108992278576, -0.0011245791101828218, -0.05445749685168266, -0.019585590809583664, -0.010367801412940025, -0.05406825989484787, -0.0473451130092144, -0.02107175998389721, -0.03251880407333374, -0.010642034932971, 0.07275153696537018, 0.009421252645552158, -0.0038193671498447657, 0.0059889089316129684, 0.03864040598273277, 0.017701340839266777, -0.040869660675525665, 0.004485046956688166, 0.005692559760063887, -0.010252799838781357, 0.0026207007467746735, -0.00417542876675725, 0.04720357432961464, 0.0017504511633887887, -0.03384574130177498, 0.03520806133747101, 0.00910278782248497, 0.0023177166003733873, 0.040692735463380814, 0.04132966697216034, -0.015144774690270424, 0.006484298966825008, -0.03577422350645065, 0.022221772000193596, 0.006386990193277597, 0.014879386872053146, -0.006298527587205172, 0.015118235722184181, -0.00003977355663664639, -0.02899799682199955, 0.011756662279367447, -0.04040965437889099, -0.02940492518246174, -0.008112008683383465, -0.03757885843515396, 0.052546706050634384, -0.0803946927189827, -0.005993332248181105, -0.019992517307400703, 0.0513790026307106, 0.02521180361509323, -0.003582729957997799, 0.08138547092676163, 0.014463613741099834, -0.007351231295615435, 0.01075703650712967, 0.08867477625608444, 0.020134057849645615, -0.00678064813837409, -0.015587086789309978, 0.0036225381772965193, 0.027264133095741272, 0.004232929088175297, 0.08308394998311996, 0.055589813739061356, 0.003423497546464205, 0.06340989470481873, -0.06369297951459885, 0.04614202305674553, 0.01714402623474598, 0.02507026307284832, -0.024061791598796844, 0.04348814859986305, 0.01357898861169815, -0.025441806763410568, 0.0741669312119484, -0.0027334901969879866, 0.0037662896793335676, -0.02250485122203827, -0.030289549380540848, -0.00036297255428507924, -0.01592324487864971, 0.042886603623628616, 0.007143344264477491, -0.020877143368124962, 0.011181656271219254, 0.03177572041749954, -0.035066522657871246, -0.018807120621204376, -0.00041605005390010774, -0.008063353598117828, 0.018488656729459763, 0.008209316991269588, 0.02195638418197632, -0.02873261086642742, 0.018453270196914673, -0.009642409160733223, 0.026078736409544945 ]
17,230
imodels.rule_list.greedy_rule_list
_gini_criterion
Returns gini index for one node = sum(pc * (1 – pc))
def _gini_criterion(self, y): '''Returns gini index for one node = sum(pc * (1 – pc)) ''' s = 0 n = y.shape[0] classes = np.unique(y) # for each class, get entropy for c in classes: # weights for each class n_c = np.sum(y == c) p_c = n_c / n # weighted avg s += p_c * (1 - p_c) return s
(self, y)
[ 0.002665299456566572, -0.03747148811817169, 0.042819563299417496, 0.051523298025131226, 0.07015417516231537, -0.0020011591259390116, -0.025604352355003357, -0.03294484689831734, 0.03886967897415161, -0.008332337252795696, 0.0022054261062294245, -0.004570333287119865, 0.005929199047386646, -0.005505372770130634, -0.01936492882668972, -0.00968246441334486, -0.014916937798261642, -0.03687725588679314, -0.0005382484523579478, -0.04960078373551369, -0.02251085638999939, 0.04610531032085419, 0.030830087140202522, -0.005911721382290125, -0.02591894380748272, 0.005907352082431316, 0.0030082929879426956, -0.020815551280975342, -0.02006402425467968, -0.0447770319879055, -0.06756752729415894, -0.04418279975652695, -0.02749190852046013, -0.040302824229002, 0.07015417516231537, -0.02067573182284832, 0.04226028919219971, 0.03523438423871994, -0.09095224738121033, -0.03872985765337944, -0.04103687405586243, -0.0692453533411026, -0.06015712022781372, 0.04044264182448387, 0.003770743263885379, 0.046489812433719635, 0.0004544116964098066, 0.01033786591142416, -0.018176468089222908, -0.04016300290822983, -0.024643097072839737, -0.053131215274333954, 0.01857844740152359, 0.005177672021090984, 0.03187872841954231, 0.09144161641597748, 0.023856613785028458, -0.017512328922748566, -0.001390543533489108, 0.006986579857766628, -0.0032770074903964996, -0.0008662223117426038, 0.04425270855426788, -0.00022529426496475935, 0.036178164184093475, 0.026985064148902893, -0.11856649816036224, 0.059213340282440186, 0.003877792274579406, -0.008839181624352932, 0.013999376446008682, -0.04145633056759834, 0.06253404170274734, 0.0001809181267162785, -0.02854054979979992, 0.03471006453037262, -0.02618110552430153, -0.001697489875368774, 0.0411766916513443, 0.023367248475551605, 0.004928619135171175, -0.0019956976175308228, 0.06928030401468277, -0.053305987268686295, 0.03848517686128616, -0.04502171277999878, 0.018945472314953804, -0.012557492591440678, -0.04330893233418465, -0.003587230807170272, -0.02999117225408554, 0.048587098717689514, 0.06221944838762283, 0.0420505590736866, -0.011176779866218567, 0.07948709279298782, -0.05246707424521446, 0.02133987285196781, 0.05180293321609497, -0.019085291773080826, 0.022458424791693687, 0.07927736639976501, 0.014121717773377895, 0.04725881665945053, -0.032595302909612656, 0.006213206332176924, 0.01372847706079483, 0.018526015803217888, -0.022021491080522537, -0.013745954260230064, -0.04743359237909317, -0.002075438154861331, 0.003493289928883314, -0.04715395346283913, 0.018805652856826782, -0.04960078373551369, -0.022615721449255943, 0.02824343554675579, -0.013300281018018723, 0.039359044283628464, -0.02623353712260723, 0.01468973234295845, -0.029344510287046432, 0.06630915403366089, 0.027387043461203575, -0.027561817318201065, 0.05984252691268921, 0.015563600696623325, -0.031197112053632736, 0.007349235471338034, 0.062184493988752365, -0.05211752653121948, -0.002479602349922061, 0.04516153410077095, 0.036352936178445816, -0.023629408329725266, -0.011246689595282078, -0.022545810788869858, 0.06983958184719086, -0.02294779196381569, 0.043518658727407455, -0.014978108927607536, -0.026548130437731743, -0.022930312901735306, 0.07501288503408432, 0.02163698896765709, -0.003318516304716468, 0.019819341599941254, 0.019994115456938744, -0.06393223255872726, 0.013317758217453957, -0.007611396256834269, 0.04274965450167656, -0.04516153410077095, -0.01361487340182066, -0.0015412858920171857, -0.03575870394706726, -0.026897678151726723, -0.007349235471338034, -0.053795356303453445, -0.030270811170339584, -0.013038120232522488, -0.03649275377392769, -0.026128673925995827, 0.002420616103336215, 0.01980186440050602, -0.006414195988327265, 0.048761870712041855, -0.0223360825330019, -0.007401667535305023, -0.04960078373551369, -0.09374862909317017, -0.05561299994587898, 0.01814151369035244, 0.0429244302213192, 0.030742699280381203, 0.007078336086124182, 0.026775335893034935, -0.007248740643262863, 0.07697035372257233, 0.03624807298183441, -0.011604975908994675, -0.015048018656671047, -0.03366142138838768, -0.000006972175015107496, -0.005972892511636019, 0.10101921856403351, 0.0025320344138890505, -0.008629453368484974, 0.023157520219683647, 0.00000402798832510598, -0.04068732634186745, -0.007572072092443705, 0.005050960928201675, 0.09221062064170837, -0.005505372770130634, -0.001622118754312396, 0.0595279335975647, -0.036038342863321304, 0.02548201009631157, -0.0036636944860219955, -0.002473048400133848, -0.015537384897470474, -0.007567702792584896, -0.033853672444820404, 0.012880824506282806, -0.05054456368088722, 0.03301475942134857, 0.009892193600535393, -0.04044264182448387, -0.02369931899011135, -0.006069018039852381, -0.013877034187316895, 0.03292737156152725, 0.03249043598771095, 0.02203896827995777, 0.04170101135969162, 0.010879664681851864, -0.025691738352179527, 0.005505372770130634, -0.03974354639649391, -0.006623924244195223, 0.0005535411764867604, -0.017110347747802734, 0.018980426713824272, -0.06519060581922531, -0.010136876255273819, 0.07976672798395157, 0.02434598095715046, -0.05404003709554672, 0.03694716840982437, 0.02679281309247017, 0.09074252098798752, -0.019225111231207848, 0.04809772968292236, 0.02574416995048523, -0.011535066179931164, 0.026390833780169487, -0.014803335070610046, 0.04047759622335434, -0.04233019798994064, -0.030480539426207542, -0.01988925039768219, 0.012260377407073975, -0.05292148515582085, 0.03820553794503212, 0.011194257996976376, 0.024206161499023438, 0.008301752619445324, 0.060611531138420105, -0.04470711946487427, -0.07669071108102798, -0.04995033144950867, -0.06830157339572906, 0.016446208581328392, -0.008861028589308262, -0.023664362728595734, 0.0647711455821991, 0.029449373483657837, -0.008638191968202591, -0.039708591997623444, 0.03890463337302208, -0.03785599023103714, -0.009647510014474392, -0.07214659452438354, 0.05893370136618614, 0.051173750311136246, 0.006318070460110903, 0.005990369711071253, 0.012155513279139996, 0.025551918894052505, 0.06288358569145203, 0.0050596995279192924, -0.017416203394532204, -0.04348370432853699, -0.05942307040095329, -0.00675500463694334, 0.016454946249723434, 0.012505060993134975, 0.014043069444596767, 0.0042207855731248856, -0.01849106140434742, -0.012356502935290337, -0.01875322125852108, -0.04600044712424278, -0.006296223495155573, 0.003512952011078596, -0.021235007792711258, 0.038135629147291183, -0.018298810347914696, -0.02644326537847519, 0.017162781208753586, -0.021130144596099854, 0.010905880481004715, 0.0631282702088356, -0.004399928729981184, -0.009498951956629753, -0.013850818388164043, -0.027177315205335617, 0.07829863578081131, 0.03360898792743683, -0.021130144596099854, -0.08368166536092758, -0.050859156996011734, -0.01562477182596922, 0.07141254842281342, 0.07669071108102798, 0.0045965490862727165, -0.0041552456095814705, 0.02434598095715046, -0.01647242344915867, 0.01866583526134491, 0.011508850380778313, 0.02530723623931408, -0.05484399572014809, -0.047888003289699554, -0.006331178359687328, 0.012714789249002934, 0.03956877440214157, 0.045580990612506866, 0.04960078373551369, 0.0525369830429554, 0.02002906985580921, 0.02579660341143608, 0.0045004235580563545, 0.029746489599347115, 0.02911730296909809, 0.024817870929837227, 0.008882874622941017, -0.0641070082783699, -0.006248160731047392, -0.03893958777189255, -0.0016516117611899972, 0.01254875399172306, -0.0013676044763997197, 0.041770923882722855, 0.05840938165783882, 0.0006253622705116868, -0.016682153567671776, -0.04711899906396866, -0.029606670141220093, 0.01075732335448265, -0.047188907861709595, 0.07025904208421707, 0.007821124978363514, -0.06886085122823715, -0.034168265759944916, -0.05355067178606987, -0.005785010755062103, 0.04295938462018967, -0.004397743847221136, 0.039009496569633484, 0.05215248093008995, 0.029099825769662857, 0.0197144765406847, 0.05914343148469925, 0.03172143176198006, -0.03883472457528114, 0.012006955221295357, 0.04767827317118645, -0.009062018245458603, -0.0012234161840751767, 0.022720584645867348, -0.02518489398062229, -0.031459271907806396, 0.021130144596099854, 0.04449739307165146, 0.017424941062927246, 0.002730839652940631, -0.007925989106297493, -0.037226803600788116, -0.028225958347320557, -0.07277578115463257, 0.006798698101192713, -0.0021628248505294323, 0.012636140920221806, -0.037786081433296204, -0.05582273006439209, -0.012924517504870892, -0.004102813545614481, -0.00330103887245059, 0.02579660341143608, -0.028558028861880302, 0.03540915995836258, -0.013405145145952702, 0.02754434011876583, 0.0033250702545046806, -0.00011995212844340131, 0.036527711898088455, -0.03011351451277733, 0.012802176177501678, -0.04257488250732422, 0.01616656966507435, -0.030270811170339584, 0.002074345713481307, -0.030218377709388733, 0.03450033441185951, -0.001196107710711658, -0.004666458815336227, 0.009839761070907116, -0.013230371288955212, -0.015030541457235813, 0.021532123908400536, 0.006733158137649298, -0.04764331877231598, -0.03663257509469986, -0.012985688634216785, 0.02396147884428501, -0.015109188854694366, -0.02431102655827999, -0.08640813082456589, 0.0676024779677391, 0.006855499465018511, -0.005099023692309856, -0.05424976721405983, -0.04897160083055496, -0.0008727763197384775, -0.03607329726219177, 0.0018362165428698063, 0.008869767189025879, 0.012880824506282806, -0.010311650112271309, 0.029921263456344604, -0.008179410360753536, 0.011202996596693993, -0.01448874268680811, -0.0010169646702706814, -0.08675768226385117, -0.019347451627254486, 0.0516631156206131, -0.07529252767562866, 0.011334076523780823, -0.021671943366527557, -0.03103981539607048, 0.0350596122443676, -0.04044264182448387, -0.034203220158815384, 0.023192474618554115, -0.007148245815187693, 0.03037567436695099, -0.0024337242357432842, 0.033748809248209, 0.03392358124256134, 0.06669365614652634, 0.008009006269276142, -0.033469170331954956, -0.0395338200032711, -0.021304918453097343, -0.00264563737437129, -0.024538232013583183, -0.019207634031772614, -0.06910553574562073, 0.0336439423263073, 0.027334611862897873, 0.013422622345387936, 0.0368073470890522, -0.027614248916506767, 0.005597128998488188, 0.003683356335386634, 0.010792277753353119, -0.00985723827034235, 0.062009721994400024, 0.033556558191776276, 0.019225111231207848, -0.025988854467868805, -0.03159908950328827, 0.016891881823539734, 0.04603540152311325, 0.033381782472133636, 0.024328503757715225, -0.0023485219571739435, 0.026390833780169487, -0.03750644251704216, -0.05750055983662605, 0.030655313283205032, 0.04732872545719147, -0.051208704710006714, 0.012050649151206017, 0.06068143993616104, -0.026635516434907913, -0.00033917027758434415, 0.04603540152311325, 0.051348522305488586, -0.023140043020248413, 0.016804493963718414, -0.01451495848596096, -0.032193321734666824, -0.03509456664323807, 0.027089929208159447, -0.06949003785848618, 0.015231531113386154, 0.014191627502441406, 0.025953900068998337, -0.010975790210068226, -0.008144455961883068, 0.01962709054350853, 0.04222533479332924, 0.004784430842846632, 0.020798074081540108, 0.010722368955612183, 0.005640821997076273, 0.0848701223731041, -0.05043970048427582, -0.040897052735090256, -0.007615765556693077, -0.01103696133941412, -0.028435686603188515, 0.025167416781187057, -0.000058132747653871775, 0.0823533833026886, 0.052956439554691315, -0.011814704164862633, 0.006256899796426296, 0.007580810692161322, 0.014418832957744598, -0.010294172912836075, 0.004159614909440279, 0.0320010706782341, 0.031197112053632736, 0.04932114854454994, 0.0323331393301487, -0.013247848488390446, 0.015371349640190601, 0.014523697085678577, 0.02343715727329254, 0.06421186774969101, -0.007296803407371044, -0.027072452008724213, -0.018124036490917206, 0.07113290578126907, 0.006038432475179434, -0.030812609940767288, -0.0107311075553298, 0.06819671392440796, -0.04460225626826286, -0.011115609668195248, 0.05599750578403473, -0.0570111908018589, 0.061135850846767426, 0.0006166235543787479, -0.010905880481004715, -0.05774524062871933, 0.09927148371934891, 0.06246413290500641, 0.04051255062222481, 0.03645779937505722, -0.029833875596523285, 0.022283650934696198, -0.034727539867162704, 0.004727629479020834, 0.007978420704603195, -0.007323019206523895, -0.03698212280869484, -0.01171857863664627, 0.1130436509847641, 0.06438664346933365, -0.009446520358324051, 0.037751127034425735, -0.005811226554214954, 0.042295243591070175, -0.03624807298183441, -0.08962397277355194, 0.033241964876651764, -0.053305987268686295, -0.04425270855426788, -0.029047394171357155, -0.007537117227911949, 0.007751215249300003, -0.019067814573645592, 0.011814704164862633, -0.014541174285113811, 0.03575870394706726, -0.03025333397090435, 0.023576976731419563, -0.045615945011377335, 0.015056757256388664, -0.01634134352207184, -0.01726764440536499, 0.017713317647576332, -0.05666164308786392, -0.05805983394384384, -0.019434839487075806, 0.04879682511091232, 0.010355344042181969, -0.006519060116261244, 0.03960372880101204, -0.04600044712424278, 0.012636140920221806, -0.05215248093008995, 0.02509750798344612, -0.016594765707850456, -0.017320076003670692, -0.04138642176985741, -0.004159614909440279, -0.02390904724597931, -0.024975165724754333, -0.019155200570821762, -0.008279905654489994, 0.007939096540212631, -0.0012791252229362726, -0.007436622399836779, 0.03395853564143181, -0.0020339293405413628, 0.008463418111205101, 0.02422363869845867, -0.021427258849143982, 0.0007788354414515197, -0.02885514311492443, -0.01199821662157774, -0.07333505898714066, 0.007122029550373554, 0.03624807298183441, -0.011010745540261269, 0.004013241734355688, -0.05882883816957474, 0.012714789249002934, 0.009586338885128498, 0.037226803600788116, 0.0044610993936657906, -0.018001694232225418, -0.020343663170933723, 0.005177672021090984, 0.04449739307165146, -0.007567702792584896, 0.016105400398373604, -0.036178164184093475, 0.018386196345090866, -0.027858933433890343, 0.01927754282951355, 0.0010557426139712334, -0.017695840448141098, 0.002665299456566572, -0.00022502118372358382, -0.0525369830429554, 0.019609613344073296, -0.05106888338923454, -0.0006291854660958052, 0.01691809669137001, -0.08417102694511414, 0.001352311810478568, -0.0682666227221489, 0.05823460593819618, 0.0007886664825491607, -0.0031218957155942917, -0.005024744663387537, -0.061625219881534576, -0.014348923228681087, 0.05421481281518936, 0.021269964054226875, -0.06529546529054642, 0.03016594611108303, -0.011683624237775803, 0.04725881665945053, 0.0021595479920506477, -0.041246600449085236, -0.017739534378051758, -0.015502430498600006, 0.06623924523591995, 0.005767533089965582, -0.06554014980792999, -0.03991832211613655, 0.04407793655991554, 0.01712782494723797, 0.01796673983335495, 0.003792589996010065, 0.02609371766448021, 0.04432261735200882, -0.1050739660859108, -0.045930538326501846, -0.035129521042108536, 0.011360292322933674, 0.04348370432853699, -0.010171831585466862, -0.02058834582567215, -0.04131650924682617, -0.0481676422059536, 0.01134281512349844, 0.005597128998488188, 0.019679522141814232, 0.008620714768767357, 0.041421376168727875, 0.02265067584812641, 0.024380935356020927, -0.03998823091387749, 0.06403709203004837, -0.0014844844117760658, -0.016201525926589966, -0.0490415096282959, 0.04267974570393562, -0.0028619198128581047, -0.08535949140787125, 0.019032860174775124, 0.04103687405586243, 0.019032860174775124, 0.04267974570393562, 0.009769851341843605, 0.0013031566049903631, 0.07578188925981522, 0.0107311075553298, -0.0025058183819055557, -0.011281643994152546, -0.01075732335448265, -0.03645779937505722, 0.004631503950804472, -0.019819341599941254, 0.013562441803514957, 0.00801774486899376, -0.02399643324315548, -0.007244371343404055, 0.004662089515477419, -0.019295020028948784, 0.008511480875313282, -0.047014135867357254, 0.014191627502441406, 0.008598867803812027, 0.0980830192565918, -0.016813233494758606, 0.015878193080425262, -0.07773935794830322, 0.010066967457532883, 0.016586028039455414, -0.0029296446591615677, 0.02390904724597931, 0.06581978499889374, -0.08088528364896774, -0.002473048400133848, 0.09941130131483078, -0.04288947582244873, 0.007126398850232363, -0.008118240162730217, -0.04226028919219971, -0.014593606814742088, -0.036352936178445816, -0.04530135169625282, -0.049426011741161346, 0.015720896422863007, -0.05823460593819618, -0.07403415441513062, 0.014916937798261642, 0.00012561862240545452, -0.020116455852985382, 0.0051645636558532715, 0.00418583070859313, -0.036702483892440796, -0.006667617708444595, -0.0328749381005764, 0.0039040083065629005, 0.013142984360456467, 0.027789022773504257, -0.017022961750626564, 0.034185741096735, 0.03474501892924309, 0.029431896284222603, -0.028348298743367195, 0.03322448581457138, 0.020186366513371468, 0.041281554847955704, -0.053620580583810806, 0.005972892511636019, 0.018158990889787674, -0.0455460362136364, -0.0621495395898819, 0.0044436221942305565, -0.015790807083249092, -0.030812609940767288, 0.006720050238072872, 0.014724686741828918, -0.003233314026147127 ]
17,232
imodels.rule_list.greedy_rule_list
_neg_corr_criterion
Returns negative correlation between y and the binary splitting variable split_decision y must be binary
def _neg_corr_criterion(self, split_decision, y): '''Returns negative correlation between y and the binary splitting variable split_decision y must be binary ''' if np.unique(y).size < 2: return 0 elif np.unique(y).size != 2: print('y must be binary output for corr criterion') # y should be 1 more often on the "right side" of the split if y.sum() < y.size / 2: y = 1 - y return -1 * np.corrcoef(split_decision.astype(np.int), y)[0, 1]
(self, split_decision, y)
[ -0.026556555181741714, 0.03586180508136749, 0.03385786712169647, 0.014463216066360474, 0.02789832279086113, -0.045341309159994125, -0.0028577919583767653, 0.07869383692741394, 0.00822486449033022, -0.03514735773205757, 0.018697626888751984, 0.060536399483680725, 0.021642547100782394, -0.0643351748585701, -0.04683990776538849, 0.016998635604977608, 0.013034319505095482, -0.022932037711143494, -0.01674596406519413, -0.013016894459724426, 0.017077049240469933, 0.023820742964744568, -0.05314796045422554, 0.028909005224704742, -0.010760284028947353, 0.00512311514467001, -0.03885900229215622, -0.00787199754267931, -0.028264259919524193, 0.011300476267933846, -0.048443060368299484, -0.01748654991388321, -0.0430062860250473, 0.03110462613403797, -0.0005290291737765074, 0.0020278997253626585, 0.04325024411082268, 0.0572255440056324, -0.0430062860250473, 0.0014789944980293512, -0.04701416566967964, -0.0177827849984169, 0.019743161275982857, 0.036802783608436584, -0.06994619965553284, -0.002637794241309166, -0.05370558053255081, 0.03100007399916649, -0.020701566711068153, 0.014376088045537472, 0.02226986736059189, -0.06381240487098694, -0.014829152263700962, 0.04196074977517128, -0.011997498571872711, 0.06262746453285217, 0.05454200506210327, 0.04164709150791168, -0.0005930136539973319, -0.017242593690752983, -0.03753465786576271, 0.0198825653642416, -0.04555041715502739, 0.022025909274816513, 0.04910523071885109, -0.016057655215263367, -0.05457685887813568, 0.03279490768909454, 0.03141828626394272, -0.009096142835915089, -0.02986741252243519, 0.023716188967227936, 0.01791347749531269, 0.019150691106915474, 0.012128190137445927, -0.0458989292383194, 0.030303051695227623, -0.020440183579921722, 0.049418892711400986, -0.0038379798643290997, -0.04067125916481018, -0.015273503959178925, 0.08433971554040909, -0.000667072250507772, -0.03474656865000725, -0.048059698194265366, 0.05447230488061905, -0.031087201088666916, 0.026783088222146034, 0.029396921396255493, -0.05314796045422554, 0.014846578240394592, 0.01748654991388321, 0.007780513260513544, -0.0017850309377536178, 0.036872487515211105, -0.021607695147395134, 0.03617546334862709, 0.01749526336789131, -0.05349647253751755, -0.03481627255678177, 0.07604514807462692, 0.016902795061469078, 0.053426772356033325, 0.011544434353709221, -0.007706454489380121, 0.00024382171977777034, -0.007375368848443031, -0.044992800801992416, -0.033021438866853714, -0.0420304536819458, 0.011230774223804474, -0.010106825269758701, -0.003576596500352025, -0.06241836026310921, -0.00814644992351532, -0.07005075365304947, 0.008460110053420067, -0.0279680248349905, 0.011492157354950905, 0.0433199442923069, -0.029588602483272552, -0.023594209924340248, -0.003012443892657757, 0.022548675537109375, 0.032080456614494324, 0.028055153787136078, 0.033701036125421524, -0.031993329524993896, 0.04345934838056564, 0.03617546334862709, -0.046282291412353516, -0.01496855728328228, -0.028752176091074944, -0.026678534224629402, 0.027271002531051636, 0.03579210117459297, 0.008608227595686913, 0.06071065366268158, -0.06565951555967331, 0.07200241833925247, 0.005515190307050943, 0.008804264478385448, 0.010237516835331917, 0.051579661667346954, 0.08043639361858368, 0.02366391196846962, 0.05039472132921219, 0.016867943108081818, 0.024552615359425545, -0.01629289984703064, 0.001767605310305953, -0.01726001873612404, -0.04568982124328613, 0.03255094960331917, 0.02592923492193222, -0.022740356624126434, -0.010873550549149513, -0.028560495004057884, -0.03384044021368027, 0.025145085528492928, -0.01440222654491663, 0.018087731674313545, -0.014132129959762096, 0.06360329687595367, -0.003084324300289154, 0.04520190507173538, -0.0407409630715847, -0.01600537821650505, 0.0029754145070910454, -0.03924236446619034, -0.03851049020886421, -0.09172815084457397, -0.02037048153579235, -0.015116673894226551, 0.01635388843715191, -0.02007424645125866, -0.020875822752714157, -0.04115917533636093, 0.052904002368450165, 0.05499507114291191, -0.005833206698298454, -0.010751571506261826, -0.02260095253586769, 0.023751039057970047, 0.023036591708660126, 0.04025304690003395, 0.0012099874438717961, 0.03715129569172859, 0.03323054686188698, -0.06579891592264175, -0.008577732369303703, -0.009793165139853954, -0.011492157354950905, 0.04359875246882439, -0.06168648600578308, 0.013792331330478191, 0.024657169356942177, 0.011805817484855652, -0.07395408302545547, 0.004552427679300308, 0.00625577662140131, -0.007811008021235466, -0.012337297201156616, -0.004948859568685293, 0.03209788352251053, -0.013670353218913078, 0.06956283748149872, -0.0031975905876606703, -0.03042503073811531, 0.03851049020886421, -0.007148836273699999, 0.02589438483119011, 0.01202363707125187, 0.018871882930397987, 0.052520640194416046, -0.018924159929156303, -0.02906583622097969, -0.011134933680295944, 0.0336139090359211, -0.008834759704768658, -0.01202363707125187, 0.03805742412805557, 0.02986741252243519, 0.01062087994068861, 0.003432835452258587, 0.013243426568806171, -0.00822486449033022, 0.013391544111073017, -0.026138341054320335, -0.03708159551024437, 0.001690279459580779, -0.00024123511684592813, -0.0895673856139183, -0.00775873102247715, 0.008982877247035503, 0.0013439464382827282, 0.0329865887761116, -0.031278882175683975, 0.055692095309495926, -0.03756951168179512, 0.035896655172109604, -0.0012524621561169624, 0.02324569784104824, 0.0082466471940279, 0.0313660092651844, 0.04830365628004074, 0.03743010386824608, 0.026260320097208023, 0.03586180508136749, -0.009531782008707523, -0.08120311796665192, -0.06151223182678223, -0.04255321994423866, 0.06841275095939636, -0.06130312383174896, -0.04826880618929863, -0.040427301079034805, 0.02240927144885063, -0.0051274714060127735, -0.04415637254714966, 0.03892870247364044, -0.02770664170384407, -0.002637794241309166, -0.0743722915649414, -0.022653229534626007, -0.028211982920765877, -0.0030777896754443645, 0.029396921396255493, 0.01062087994068861, 0.03039017878472805, -0.007706454489380121, -0.02026592753827572, -0.005096976645290852, -0.056946735829114914, 0.04823395237326622, 0.034868549555540085, -0.04851276054978371, 0.03190620243549347, 0.042622923851013184, 0.04279717803001404, 0.01661527343094349, 0.014437077566981316, 0.014637471176683903, -0.011300476267933846, 0.02676566131412983, -0.0342760793864727, -0.08071520179510117, -0.0066565643064677715, 0.025354191660881042, -0.04063640907406807, 0.0374998077750206, 0.05719069018959999, 0.0646488294005394, 0.04286688193678856, 0.012467988766729832, 0.01913326606154442, -0.06241836026310921, 0.012276307679712772, 0.023141145706176758, 0.0023916582576930523, 0.023158570751547813, -0.009035153314471245, -0.05973482504487038, -0.03204560652375221, -0.06830819696187973, 0.05910750478506088, -0.016536857932806015, 0.007728236261755228, 0.036802783608436584, 0.039451468735933304, 0.013687778264284134, 0.0387892983853817, -0.008542881347239017, -0.006390824448317289, 0.03579210117459297, 0.06715811043977737, -0.01946435123682022, 0.059560567140579224, 0.050743233412504196, 0.010028410702943802, -0.06248806416988373, 0.007188044022768736, 0.022304717451334, 0.016928933560848236, 0.005197173450142145, -0.027044471353292465, -0.016319038346409798, -0.01984771341085434, 0.030965222045779228, -0.018314264714717865, -0.010333357378840446, -0.05091749131679535, -0.03561784699559212, 0.06708841025829315, -0.007227251306176186, 0.04122887924313545, -0.03368360921740532, 0.02573755383491516, -0.0155174620449543, -0.012650957331061363, 0.008512387052178383, 0.007475565653294325, 0.00643438845872879, -0.014628758653998375, 0.03896355628967285, -0.020962949842214584, 0.041333429515361786, 0.0276369396597147, 0.033805590122938156, -0.0011598889250308275, -0.007052995730191469, 0.025789830833673477, 0.041786495596170425, 0.0028861085884273052, 0.018662776798009872, -0.03138343617320061, 0.030268199741840363, 0.04325024411082268, -0.01635388843715191, -0.029536325484514236, -0.044853392988443375, 0.03753465786576271, 0.029240092262625694, -0.051091745495796204, -0.021416014060378075, -0.06036214530467987, 0.03019849769771099, -0.032829757779836655, -0.0666004940867424, -0.07932115346193314, -0.04293658211827278, 0.01326956506818533, -0.018279414623975754, -0.004232233390212059, 0.0371861457824707, -0.029571177437901497, -0.05015076696872711, 0.06931888312101364, -0.00018596340669319034, -0.01079513505101204, -0.0110739441588521, -0.05506477504968643, 0.013774906285107136, -0.08510643988847733, 0.009043865837156773, -0.02563299983739853, -0.00458292244002223, 0.018680201843380928, -0.025354191660881042, 0.06071065366268158, -0.05035987123847008, 0.004630842711776495, -0.05304340645670891, -0.05144025757908821, -0.03478141874074936, 0.04743237793445587, 0.010289793834090233, -0.01049018744379282, -0.018854457885026932, 0.008821690455079079, 0.02582468092441559, -0.04415637254714966, -0.024291232228279114, -0.00863000936806202, 0.06471853703260422, -0.004240945912897587, 0.02986741252243519, -0.022740356624126434, -0.011579285375773907, -0.08510643988847733, 0.019359799101948738, 0.06165163591504097, -0.05809682235121727, -0.04014849290251732, 0.01710318773984909, -0.01684180460870266, 0.057818010449409485, 0.007819720543920994, -0.02139858901500702, 0.052938856184482574, -0.05374043062329292, 0.025110233575105667, -0.03068641386926174, 0.011535721831023693, 0.030494732782244682, 0.012215318158268929, -0.011823243461549282, -0.01058602798730135, -0.02010909840464592, -0.0740237832069397, -0.005615387111902237, -0.08594286441802979, -0.0733964666724205, 0.020318204537034035, -0.024134403094649315, -0.02159027010202408, 0.05492536723613739, -0.0539843887090683, 0.06328963488340378, -0.014890141785144806, 0.03833623602986336, 0.013705204240977764, -0.010063261725008488, -0.01700734719634056, 0.006216568872332573, 0.009244260378181934, -0.04743237793445587, -0.04293658211827278, -0.028891580179333687, 0.03336995095014572, 0.03235926851630211, 0.026469428092241287, 0.06325478851795197, -0.027009619399905205, -0.0015367167070508003, -0.04457458481192589, 0.0014702817425131798, 0.0018765151035040617, -0.07179331034421921, -0.029780283570289612, 0.03882415220141411, -0.06064095348119736, -0.015003408305346966, 0.00407322496175766, 0.02505795657634735, 0.028490792959928513, -0.005380142014473677, 0.006059738807380199, 0.015944387763738632, -0.0017338433535769582, -0.06667019426822662, 0.010969391092658043, 0.0032433324959129095, 0.03164481744170189, 0.05443745478987694, -0.0018950297962874174, 0.014864003285765648, 0.02192135527729988, 0.00916584488004446, -0.04875671863555908, 0.024256380274891853, -0.09514356404542923, -0.024273807182908058, -0.016902795061469078, -0.08071520179510117, -0.10455336421728134, -0.03436320647597313, -0.006264489144086838, -0.01694635860621929, 0.05241608992218971, 0.043563902378082275, -0.03204560652375221, 0.023332826793193817, 0.018436243757605553, 0.01086483709514141, 0.01694635860621929, 0.002694427501410246, 0.05241608992218971, -0.0029383853543549776, -0.020649289712309837, 0.05147510766983032, -0.07987876981496811, -0.05015076696872711, -0.02986741252243519, -0.03753465786576271, -0.04635199159383774, -0.021520568057894707, -0.07611484825611115, 0.02049246057868004, -0.008176944218575954, -0.009322674944996834, 0.031348586082458496, 0.014123417437076569, -0.007157549262046814, 0.0232805497944355, -0.008717137388885021, 0.006556367501616478, 0.01881960593163967, 0.025354191660881042, 0.04286688193678856, -0.033735886216163635, -0.043110840022563934, 0.007183687761425972, 0.03431092947721481, 0.0033762024249881506, -0.048024848103523254, -0.06165163591504097, 0.0336139090359211, -0.01275551039725542, -0.02127660997211933, -0.039939384907484055, 0.01772179640829563, 0.06809909641742706, -0.015369345434010029, 0.04471398890018463, -0.03830138221383095, -0.023942722007632256, -0.009313962422311306, 0.004831236787140369, -0.021189482882618904, 0.009618910029530525, 0.03216758742928505, 0.015256078913807869, 0.015622016042470932, 0.05729524418711662, 0.01448064111173153, 0.03223728761076927, -0.01949920319020748, 0.062278956174850464, 0.007667246740311384, 0.0006736068753525615, -0.008991589769721031, -0.01086483709514141, 0.04819910228252411, -0.007893779315054417, 0.021102353930473328, 0.0014550343621522188, 0.0021302748937159777, 0.014280247502028942, 0.004587279167026281, -0.0323244147002697, 0.06349874287843704, -0.07799681276082993, 0.0030451167840510607, 0.05586634948849678, 0.06558981537818909, 0.045411013066768646, 0.00637775519862771, 0.0007645465084351599, -0.020405331626534462, 0.012067201547324657, -0.025598149746656418, 0.05018561705946922, -0.007636751979589462, 0.07918175309896469, 0.0720721185207367, -0.08754602074623108, -0.04907038062810898, 0.03258579969406128, -0.01859307289123535, -0.046665653586387634, 0.017216455191373825, -0.02146829105913639, -0.044853392988443375, 0.006830819882452488, -0.020056821405887604, 0.01901128701865673, 0.028787026181817055, 0.026242895051836967, -0.02396014705300331, 0.032150160521268845, 0.010403060354292393, -0.04809454828500748, -0.012659669853746891, 0.00048492068890482187, -0.040427301079034805, 0.020893247798085213, 0.041298579424619675, 0.038719598203897476, 0.03321311995387077, -0.025319339707493782, 0.010429197922348976, 0.04070610925555229, -0.00022149522555992007, -0.009862867183983326, -0.021520568057894707, -0.04304113611578941, -0.03575725108385086, -0.023785891011357307, -0.05220698192715645, -0.000269007112365216, 0.04014849290251732, -0.029362071305513382, 0.04722326993942261, -0.009540494531393051, -0.03579210117459297, -0.006177361588925123, -0.015351919457316399, -0.006504090502858162, 0.019725734367966652, -0.016902795061469078, 0.006891809403896332, 0.034676868468523026, -0.0572255440056324, 0.036802783608436584, 0.030982647091150284, -0.05035987123847008, -0.019638607278466225, -0.012128190137445927, -0.0028817520942538977, 0.0013090952998027205, -0.01506439782679081, -0.044853392988443375, 0.013583225198090076, 0.05147510766983032, 0.051684215664863586, 0.03443291038274765, 0.027950599789619446, -0.0031692739576101303, -0.01644972898066044, -0.0020594834350049496, 0.022688081488013268, -0.02279263362288475, -0.07050382345914841, -0.04865216836333275, 0.0018841387936845422, 0.03194105252623558, 0.04004393890500069, -0.051126595586538315, -0.011858094483613968, 0.07688157260417938, -0.016902795061469078, -0.005462913308292627, 0.008882679976522923, -0.04095006734132767, 0.019481778144836426, 0.04771118611097336, 0.029588602483272552, -0.03648912534117699, -0.025807255879044533, 0.00709655974060297, 0.020091671496629715, -0.015639441087841988, 0.005907265469431877, -0.006748048588633537, 0.05018561705946922, -0.07548753172159195, -0.005001136101782322, -0.06116371974349022, 0.03607091307640076, 0.03436320647597313, -0.05990907922387123, 0.008098529651761055, 0.010951965115964413, -0.020248502492904663, -0.04548071324825287, 0.00119800737593323, 0.030982647091150284, 0.008656147867441177, 0.04506250098347664, 0.02955375239253044, 0.0005388310528360307, -0.046282291412353516, 0.08203954249620438, -0.009052579291164875, -0.005110045894980431, 0.0156830046325922, -0.021450866013765335, -0.059212058782577515, -0.008255359716713428, 0.037325553596019745, 0.006752404849976301, -0.02233956940472126, 0.047502078115940094, 0.02347223088145256, -0.06311538070440292, 0.023977572098374367, 0.02007424645125866, 0.07381467521190643, 0.035966359078884125, -0.03216758742928505, -0.01772179640829563, 0.028037728741765022, -0.03924236446619034, 0.005314796231687069, -0.0034371919464319944, -0.03962572664022446, -0.00038227325421757996, -0.06621713191270828, -0.005040343385189772, 0.06548526138067245, -0.010385634377598763, -0.04060155898332596, -0.0598045252263546, 0.020161373540759087, -0.06457912921905518, 0.027131598442792892, -0.006094589829444885, -0.022670654579997063, -0.0001399490429321304, 0.026695959270000458, 0.04255321994423866, 0.04380786046385765, 0.02385559305548668, -0.056493669748306274, 0.11814530193805695, -0.030703838914632797, -0.019080989062786102, -0.03701189160346985, 0.01859307289123535, -0.04387756437063217, -0.004410845227539539, 0.007972193881869316, 0.0276369396597147, 0.04433062672615051, 0.015238652937114239, -0.06018788740038872, 0.03798772394657135, 0.028020301833748817, 0.040497004985809326, -0.03295173496007919, 0.06388210505247116, 0.0023916582576930523, -0.03220243752002716, 0.0646488294005394, -0.01845366880297661, 0.04199560359120369, 0.055587541311979294, -0.06802938878536224, -0.016275474801659584, -0.02774149365723133, 0.037743765860795975, 0.0023764108773320913, -0.0630456805229187, 0.009932570159435272, 0.028769601136446, 0.00908743031322956, -0.023907870054244995, 0.015168950892984867, 0.024657169356942177, 0.01729486882686615, 0.0003945255884900689, 0.03986968472599983, 0.0034698648378252983, 0.022670654579997063, 0.03478141874074936, 0.046282291412353516 ]
17,235
imodels.rule_list.greedy_rule_list
_split_on_feature
col: the column we split on y: target var
def _split_on_feature(self, col, y): """ col: the column we split on y: target var """ min_criterion_val = 1e10 cutoff = 0.5 # iterate through each value in the column for value in np.unique(col): # separate y into 2 groups y_predict = col < value # get criterion val of this split criterion_val = self._weighted_criterion(y_predict, y) # check if it's the smallest one so far if criterion_val <= min_criterion_val: min_criterion_val = criterion_val cutoff = value return min_criterion_val, cutoff
(self, col, y)
[ 0.05119609087705612, 0.021647395566105843, -0.045098740607500076, 0.044052448123693466, 0.058411888778209686, -0.016912028193473816, 0.06313823163509369, 0.011013112030923367, -0.03378797695040703, 0.006728732027113438, -0.01207744237035513, 0.001336050103418529, -0.015207295306026936, -0.07298780232667923, -0.003393680090084672, 0.0071932487189769745, -0.006746771279722452, -0.011644494719803333, 0.03681861236691475, 0.0325973704457283, 0.029674971476197243, -0.0010006282245740294, 0.016271624714136124, -0.007820121012628078, 0.01510807778686285, 0.015459847636520863, -0.011590376496315002, 0.02812357433140278, 0.004239281639456749, -0.03947041556239128, -0.02588667720556259, -0.04787681996822357, -0.008658957667648792, -0.026463940739631653, 0.002917888341471553, -0.0537937767803669, 0.07010147720575333, 0.035177018493413925, 0.010363690555095673, -0.07821925729513168, -0.053396906703710556, -0.04766034707427025, -0.040733180940151215, 0.059061307460069656, -0.03436524048447609, 0.01557710487395525, 0.0064806886948645115, 0.02482234686613083, -0.006958735641092062, 0.004554972518235445, -0.029620852321386337, -0.0424649715423584, 0.03514093905687332, 0.04030023515224457, 0.0240827277302742, 0.032146383076906204, 0.04037239030003548, -0.03077537938952446, -0.0231266338378191, 0.02143092080950737, -0.002035080688074231, 0.03445543721318245, -0.002241407288238406, 0.053938090801239014, -0.021593276411294937, -0.046974845230579376, -0.06952421367168427, 0.06728731840848923, -0.04964469373226166, 0.019681090489029884, -0.01406178716570139, -0.023162713274359703, 0.07980673015117645, 0.05426280200481415, -0.07345682382583618, -0.004992430564016104, -0.001950520440004766, -0.011933126486837864, 0.08983668684959412, -0.03494250401854515, 0.007991496473550797, -0.008036595769226551, 0.037702545523643494, -0.03595271334052086, -0.015847697854042053, -0.05408240854740143, 0.025435689836740494, 0.04874271899461746, 0.06956029683351517, 0.027077283710241318, -0.04636150598526001, 0.07879652082920074, 0.027023164555430412, 0.045928556472063065, 0.0061559779569506645, 0.03326483070850372, -0.0415269210934639, 0.09221789985895157, -0.036854688078165054, -0.0042347717098891735, 0.03910962864756584, 0.024028608575463295, 0.02642786130309105, 0.06753987073898315, 0.005583223886787891, -0.015757499262690544, 0.009569952264428139, -0.003995748236775398, -0.08485779166221619, -0.045748163014650345, -0.049067430198192596, 0.005096157547086477, -0.055453408509492874, 0.04293400049209595, -0.0363495834171772, -0.0396508127450943, -0.0462532676756382, 0.04232065752148628, -0.019392458721995354, 0.019374419003725052, 0.01870695687830448, -0.03701704367995262, -0.022116422653198242, 0.006606965325772762, -0.026698453351855278, -0.0008974649244919419, 0.08933158218860626, 0.01955481432378292, -0.08565152436494827, 0.005930484272539616, 0.02502078004181385, 0.0015716910129413009, -0.035177018493413925, 0.005971073172986507, -0.0424649715423584, -0.04585639759898186, -0.026175308972597122, 0.031965985894203186, 0.09597011655569077, -0.066998690366745, 0.025742361322045326, 0.012194699607789516, -0.021088169887661934, -0.04015591740608215, 0.053396906703710556, -0.015486907213926315, -0.011130369268357754, 0.04477402940392494, 0.04217633977532387, 0.004250556230545044, -0.06375157833099365, 0.021178368479013443, 0.011527237482368946, -0.12728668749332428, 0.020727381110191345, 0.0334993451833725, -0.0415629968047142, -0.003522211452946067, 0.031569115817546844, -0.030468707904219627, 0.0016348293283954263, -0.039506494998931885, -0.011220565997064114, 0.007802081760019064, 0.018093613907694817, 0.06573592126369476, -0.0006449119537137449, 0.0016201721737161279, -0.020456789061427116, 0.004762426950037479, 0.03344522416591644, 0.03741391375660896, -0.030252235010266304, 0.042825762182474136, -0.04311439394950867, 0.03831588849425316, -0.003247109241783619, -0.028845153748989105, 0.006462649442255497, 0.043944213539361954, 0.04001160338521004, -0.006629514507949352, 0.015026899985969067, -0.01835518702864647, -0.004762426950037479, -0.02292819879949093, 0.03914570435881615, -0.007946398109197617, -0.03137068450450897, 0.04888703301548958, -0.026301585137844086, -0.06292176246643066, -0.013475503772497177, -0.045459527522325516, -0.021196408197283745, 0.022964278236031532, -0.010598204098641872, -0.005195374600589275, -0.023956449702382088, -0.013033535331487656, -0.004085945896804333, -0.01982540637254715, -0.0009363626013509929, 0.019338339567184448, -0.014296300709247589, 0.030649103224277496, 0.003001321107149124, 0.023559581488370895, -0.02321683056652546, -0.03340914472937584, -0.004000258166342974, -0.018319107592105865, 0.029530653730034828, 0.0831259936094284, 0.0802396759390831, 0.00020336713350843638, -0.025904715061187744, -0.00903327763080597, 0.017335955053567886, -0.026770612224936485, -0.020745420828461647, -0.07035403698682785, 0.052711404860019684, 0.0585562027990818, 0.06844184547662735, -0.0377747043967247, 0.03788294270634651, -0.03689076751470566, 0.014684149995446205, -0.022874081507325172, -0.02437135949730873, -0.0377386249601841, 0.03378797695040703, -0.07251877337694168, -0.030919695273041725, 0.04477402940392494, 0.04076926037669182, 0.0041310447268188, -0.010011919774115086, -0.01009309757500887, -0.0049473317340016365, 0.0005014415946789086, -0.011491158977150917, -0.010282512754201889, -0.008559741079807281, 0.004748897161334753, 0.011527237482368946, -0.008645428344607353, 0.006579906214028597, 0.014314339496195316, -0.023397225886583328, 0.008492092601954937, -0.006174017209559679, -0.04964469373226166, 0.027113361284136772, -0.10174275934696198, -0.05494830384850502, 0.02446155622601509, -0.0231266338378191, 0.014170023612678051, -0.05779854580760002, 0.030522827059030533, 0.018409306183457375, 0.004584286827594042, -0.05408240854740143, 0.026500020176172256, 0.008171891793608665, -0.014079826883971691, 0.07576588541269302, 0.009651130065321922, 0.010453888215124607, 0.012537449598312378, -0.008559741079807281, -0.013277068734169006, -0.04278968274593353, -0.003961924463510513, -0.021467000246047974, -0.06757595390081406, 0.007590117864310741, -0.0056598917581140995, 0.03387817367911339, -0.04134652391076088, -0.015090038068592548, 0.02606707066297531, -0.06382373720407486, 0.01610025018453598, -0.04260928928852081, -0.04874271899461746, 0.011482139118015766, 0.0036484880838543177, -0.12057598680257797, 0.01104017160832882, 0.03283188119530678, 0.06111781299114227, 0.028159653767943382, 0.017877141013741493, 0.04993332549929619, -0.048381928354501724, 0.05162903666496277, -0.010652322322130203, 0.0363135039806366, -0.01482846587896347, -0.07562156766653061, 0.03097381442785263, -0.00021915168326813728, -0.0017182619776576757, 0.03503270074725151, -0.029981641098856926, -0.017119482159614563, -0.024190964177250862, 0.03247109055519104, 0.01748027093708515, 0.0056373425759375095, -0.031965985894203186, -0.04596463590860367, -0.01208646222949028, 0.013728056102991104, 0.023559581488370895, -0.023469384759664536, 0.0377386249601841, 0.010913894511759281, -0.060179758816957474, 0.013304128311574459, 0.041021812707185745, 0.024804307147860527, 0.012663725763559341, 0.03719744086265564, -0.04278968274593353, -0.05336082726716995, 0.007603647653013468, -0.028340047225356102, 0.027023164555430412, 0.011446059681475163, 0.008216990157961845, 0.04351126402616501, 0.016641434282064438, 0.016497118398547173, -0.007545019034296274, -0.000472691172035411, -0.03726959973573685, -0.009939761832356453, -0.04188770800828934, -0.027871020138263702, 0.0283220075070858, 0.017723804339766502, -0.004302419722080231, 0.0011973715154454112, 0.028556521981954575, 0.05888091400265694, 0.039903365075588226, 0.03896531090140343, -0.02588667720556259, 0.027456112205982208, 0.0377747043967247, 0.06382373720407486, 0.002827690914273262, -0.0358625166118145, -0.04123828560113907, 0.012952357530593872, -0.008740135468542576, 0.03900139033794403, -0.050366271287202835, 0.05152079835534096, 0.016136329621076584, 0.00023620465071871877, -0.0003196373290847987, 0.0023812134750187397, 0.059349942952394485, -0.013728056102991104, -0.019428536295890808, -0.034780148416757584, 0.017408113926649094, 0.06382373720407486, 0.018851272761821747, -0.02000580169260502, 0.007991496473550797, -0.048670560121536255, -0.01458493247628212, 0.020420709624886513, 0.051015693694353104, 0.046866610646247864, 0.011860968545079231, 0.0288090743124485, 0.014088845811784267, -0.025237254798412323, -0.0059395041316747665, -0.01628064550459385, -0.07334858924150467, 0.03831588849425316, -0.03784686326980591, 0.05119609087705612, 0.0368005707859993, -0.04578423872590065, 0.031009893864393234, -0.005759108811616898, -0.02992752380669117, 0.022621527314186096, -0.018274009227752686, 0.008735626004636288, 0.043366946280002594, -0.007946398109197617, 0.016542216762900352, -0.04607287049293518, 0.016118289902806282, -0.052639249712228775, -0.0016224271384999156, -0.03268756717443466, 0.0698850080370903, -0.021268565207719803, 0.026680413633584976, -0.08824921399354935, 0.012862160801887512, 0.034329161047935486, -0.033373069018125534, -0.022639567032456398, -0.02047482691705227, 0.015820637345314026, 0.050835300236940384, 0.007075992412865162, -0.029566733166575432, 0.035537805408239365, -0.058484043926000595, -0.04297007992863655, -0.021124249324202538, -0.04383597522974014, -0.039506494998931885, -0.020889736711978912, -0.025092938914895058, 0.007008343935012817, -0.017516350373625755, -0.07035403698682785, -0.03690880909562111, -0.09892859309911728, -0.07309603691101074, 0.01915794424712658, -0.01944657601416111, -0.06072094291448593, 0.0698850080370903, 0.0016923302318900824, -0.01306961476802826, -0.020132077857851982, 0.02653609775006771, 0.03209226205945015, 0.032723646610975266, 0.03378797695040703, -0.017741844058036804, 0.004056631587445736, 0.031190287321805954, -0.054443199187517166, -0.04708308354020119, 0.03741391375660896, -0.0023428795393556356, 0.054623592644929886, 0.05502046272158623, 0.02642786130309105, -0.011978224851191044, -0.0354115292429924, 0.004239281639456749, 0.05249493196606636, 0.045639924705028534, 0.028484363108873367, 0.03106401115655899, -0.006629514507949352, 0.004584286827594042, -0.041130051016807556, -0.011743711307644844, -0.006710692308843136, 0.0035357412416487932, 0.02388429269194603, -0.0006714074988849461, -0.0026472960598766804, -0.017768902704119682, 0.013565700501203537, -0.0055291056632995605, 0.03595271334052086, 0.020817577838897705, -0.019681090489029884, -0.009849565103650093, 0.06411236524581909, 0.0021906711626797915, -0.013980609364807606, -0.005204394459724426, -0.016596335917711258, -0.02464195154607296, -0.01085977628827095, -0.03476210683584213, -0.09380538016557693, -0.02379409410059452, -0.01634378358721733, 0.01156331691890955, -0.008253069594502449, 0.03202010318636894, 0.037810783833265305, -0.009569952264428139, -0.023090554401278496, -0.007477371022105217, 0.05440711975097656, 0.06346294283866882, 0.06873048096895218, 0.01908578723669052, -0.015667302533984184, 0.05862836167216301, -0.088682159781456, -0.038748838007450104, -0.02426312118768692, -0.031190287321805954, -0.027221599593758583, -0.008419934660196304, -0.06490610539913177, -0.0047308579087257385, 0.030829498544335365, -0.07219406217336655, -0.00302161555737257, 0.05134040489792824, 0.02595883421599865, -0.016361823305487633, 0.004442225676029921, 0.01962697133421898, 0.019699130207300186, 0.021358763799071312, 0.025525886565446854, -0.038676679134368896, 0.04361950233578682, -0.008397385478019714, 0.006895597092807293, 0.02548980712890625, -0.00271268910728395, -0.008388365618884563, -0.017317915335297585, 0.0032516191713511944, -0.00067253498127684, -0.004690269008278847, 0.04852624237537384, 0.07125601172447205, 0.009569952264428139, 0.054443199187517166, -0.02633766457438469, 0.011554297059774399, 0.02285604178905487, -0.0029381827916949987, -0.01104017160832882, 0.0014544343575835228, 0.050366271287202835, 0.048670560121536255, -0.0181567519903183, 0.030522827059030533, -0.02285604178905487, 0.06710692495107651, -0.038207653909921646, 0.02274780347943306, 0.029512615874409676, 0.039795126765966415, 0.032723646610975266, -0.03860452026128769, 0.03003576025366783, -0.01672261208295822, -0.008591310121119022, 0.02548980712890625, 0.002913378644734621, 0.0015728184953331947, -0.011238605715334415, -0.01538768969476223, 0.11379314213991165, 0.03643978014588356, 0.006922656670212746, -0.010733500123023987, 0.018833233043551445, 0.02060110494494438, -0.03726959973573685, -0.007869729772210121, -0.000056338190915994346, 0.03254324942827225, -0.045098740607500076, -0.001346197328530252, 0.006855008192360401, 0.004113005008548498, 0.007053442765027285, -0.042537130415439606, -0.09597011655569077, -0.004807525780051947, -0.0953928530216217, -0.005484006833285093, 0.00604323111474514, -0.016821829602122307, -0.06256096810102463, -0.0010102117666974664, -0.0023248400539159775, 0.010011919774115086, -0.009921723045408726, 0.0698128491640091, 0.02983732521533966, 0.03183970972895622, -0.029007509350776672, -0.026283545419573784, -0.014034727588295937, -0.014007668942213058, -0.06310215592384338, -0.013376286253333092, 0.017588509246706963, 0.012393133714795113, 0.005650871898978949, -0.024425476789474487, 0.00208468921482563, -0.013926491141319275, 0.017768902704119682, -0.04051670804619789, -0.007143640425056219, -0.025183135643601418, -0.013493542559444904, -0.052819643169641495, -0.026951007544994354, 0.043186552822589874, 0.01964501105248928, 0.014990820549428463, -0.023397225886583328, 0.044810108840465546, 0.019951682537794113, -0.038207653909921646, 0.025038819760084152, -0.08161067962646484, 0.010778598487377167, -0.00590342516079545, 0.06811713427305222, 0.025850597769021988, 0.021178368479013443, -0.033950332552194595, 0.04304223880171776, -0.050366271287202835, -0.004279870539903641, -0.021268565207719803, -0.05278356373310089, 0.00036389045999385417, 0.0519537478685379, -0.06692653149366379, 0.021034052595496178, 0.032507169991731644, -0.0006781722768209875, -0.04098573327064514, -0.01674967259168625, -0.06057662516832352, -0.011906066909432411, 0.041851628571748734, 0.06818929314613342, -0.028105534613132477, -0.04506266117095947, -0.05520085617899895, -0.006354412529617548, 0.04614502936601639, 0.04993332549929619, -0.03580839931964874, -0.011166447773575783, 0.019230103120207787, -0.002166994381695986, -0.020925814285874367, 0.005321651231497526, -0.08998100459575653, -0.029025549069046974, 0.03505073860287666, 0.02283800207078457, -0.030919695273041725, 0.001941500697284937, 0.025616083294153214, 0.05938601866364479, -0.017408113926649094, -0.02588667720556259, 0.02455175295472145, 0.04037239030003548, -0.051412563771009445, -0.03286796063184738, 0.004663209430873394, 0.009380538016557693, 0.02424508146941662, -0.040444549173116684, -0.01859872043132782, 0.025165095925331116, -0.043294791132211685, -0.02796121872961521, -0.019518734887242317, -0.05126824602484703, -0.009137004613876343, 0.03625938668847084, 0.012284896336495876, -0.005804207641631365, -0.004336243961006403, 0.055742040276527405, 0.01993364281952381, -0.055453408509492874, -0.012672745622694492, 0.002893084194511175, -0.004807525780051947, -0.02511097863316536, -0.00540282903239131, 0.001384531264193356, -0.02794317901134491, -0.05992720648646355, 0.008604839444160461, 0.0016359568107873201, 0.03645782172679901, 0.04589247703552246, 0.058484043926000595, 0.005150276236236095, -0.005741069559007883, -0.024605872109532356, 0.01859872043132782, 0.03636762499809265, 0.023397225886583328, -0.006597945466637611, 0.006205586716532707, 0.004830074962228537, -0.016758691519498825, -0.0032245598267763853, 0.004489579703658819, -0.071725033223629, -0.03164127469062805, -0.04383597522974014, 0.08529073745012283, -0.09799054265022278, 0.012672745622694492, -0.013691977597773075, 0.03227265924215317, 0.003159166779369116, -0.013295108452439308, 0.04448539763689041, -0.005484006833285093, -0.048850953578948975, 0.002125278115272522, 0.08897079527378082, 0.005493026692420244, -0.004897722974419594, -0.04542345181107521, -0.022260738536715508, 0.040444549173116684, -0.009389557875692844, 0.08824921399354935, 0.023397225886583328, 0.01775086298584938, 0.0017915474018082023, -0.028827114030718803, 0.06620495021343231, 0.005763618741184473, 0.034238964319229126, -0.029711049050092697, 0.06775634735822678, -0.011319783516228199, -0.023667817935347557, 0.05592243745923042, 0.014097865670919418, 0.016181427985429764, -0.024966662749648094, -0.040552787482738495, -0.015532005578279495, 0.006606965325772762, 0.024605872109532356, 0.019951682537794113, -0.02256741002202034, 0.008920530788600445, 0.03436524048447609, -0.022062303498387337, -0.01674967259168625, -0.002153464825823903, -0.025363530963659286, 0.024894503876566887, 0.004232516512274742, 0.014341399073600769, -0.0021613570861518383, 0.025237254798412323, 0.02935026027262211, 0.02038463018834591 ]
17,238
imodels.rule_list.greedy_rule_list
_weighted_criterion
Returns criterion calculated over a split split decision, True/False, and y_true can be multi class
def _weighted_criterion(self, split_decision, y_real): """Returns criterion calculated over a split split decision, True/False, and y_true can be multi class """ if split_decision.shape[0] != y_real.shape[0]: print('They have to be the same length') return None # choose the splitting criterion if self.criterion == 'entropy': criterion_func = self._entropy_criterion elif self.criterion == 'gini': criterion_func = self._gini_criterion elif self.criterion == 'neg_corr': return self._neg_corr_criterion(split_decision, y_real) # left-hand side criterion s_left = criterion_func(y_real[split_decision]) # right-hand side criterion s_right = criterion_func(y_real[~split_decision]) # overall criterion, again weighted average n = y_real.shape[0] if self.class_weight is not None: sample_weights = np.ones(n) for c in self.class_weight.keys(): idxs_c = y_real == c sample_weights[idxs_c] = self.class_weight[c] total_weight = np.sum(sample_weights) weight_left = np.sum(sample_weights[split_decision]) / total_weight # weight_right = np.sum(sample_weights[~split_decision]) / total_weight else: tot_left_samples = np.sum(split_decision == 1) weight_left = tot_left_samples / n s = weight_left * s_left + (1 - weight_left) * s_right return s
(self, split_decision, y_real)
[ -0.013494931161403656, -0.019418448209762573, 0.0005706396186724305, 0.046639908105134964, 0.04571352154016495, -0.06156895309686661, -0.005112931132316589, -0.007050321903079748, -0.01819811575114727, 0.039264459162950516, -0.010350567288696766, 0.03666345775127411, 0.03424060344696045, -0.024852050468325615, -0.05914609879255295, 0.008382000029087067, 0.014768710359930992, -0.010083341039717197, -0.009931912645697594, 0.003937134984880686, -0.015704002231359482, 0.005772089120000601, -0.01702231913805008, 0.06238844618201256, -0.0021845754235982895, -0.01920466683804989, -0.032815396785736084, -0.012043001130223274, -0.004827889613807201, 0.0021533991675823927, -0.06270911544561386, -0.024353228509426117, -0.009027796797454357, 0.001544345635920763, 0.022108526900410652, -0.04681805893778801, 0.044965289533138275, 0.0419367216527462, -0.06534574925899506, -0.017904166132211685, -0.050666116178035736, -0.05825534462928772, -0.005772089120000601, 0.016185009852051735, -0.06534574925899506, 0.03304699435830116, 0.0031376827973872423, 0.038836896419525146, 0.005451417528092861, -0.019454078748822212, 0.01126804482191801, -0.025796251371502876, 0.010795945301651955, 0.02912767231464386, -0.023515919223427773, 0.0520913228392601, 0.03424060344696045, -0.02022012695670128, -0.004484949167817831, -0.03397337719798088, 0.013601821847259998, 0.000862361746840179, 0.02971557155251503, 0.01321879681199789, -0.015294254757463932, -0.014617281965911388, -0.11130868643522263, 0.06595146656036377, 0.00709485961124301, 0.00429566390812397, 0.0009085696074180305, -0.03220968320965767, 0.04065403714776039, 0.032975733280181885, -0.08230571448802948, 0.01487560011446476, -0.010003173723816872, -0.0628872662782669, 0.07589228451251984, -0.011668884195387363, -0.005723097827285528, 0.015320978127419949, 0.02967994101345539, -0.04610545560717583, -0.004502763971686363, -0.047388140112161636, -0.015009214170277119, -0.009379644878208637, 0.04724562168121338, -0.023836590349674225, -0.05116493999958038, 0.07860017567873001, 0.07888521999120712, 0.05950240045785904, 0.035006653517484665, 0.06655717641115189, -0.0645262598991394, -0.01608702726662159, -0.0027034399099648, -0.004787805490195751, -0.023676255717873573, 0.04111722856760025, 0.030267838388681412, 0.07282809168100357, 0.003353690728545189, -0.02837943844497204, -0.005161922425031662, 0.0013249973999336362, -0.07036960870027542, -0.02299928106367588, -0.038480594754219055, -0.010145694017410278, -0.0524119958281517, 0.015989042818546295, -0.02041609399020672, -0.028789186850190163, -0.04916964843869209, 0.03994143381714821, -0.044181425124406815, 0.016265178099274635, 0.03076666221022606, -0.03862311691045761, -0.024317597970366478, 0.02804095298051834, -0.011980648152530193, -0.03393774852156639, 0.06402743607759476, 0.01263089943677187, -0.00005250580215943046, 0.0022257729433476925, 0.022001637145876884, -0.003587513929232955, -0.017690384760499, -0.009762669913470745, -0.01503593660891056, 0.01600685901939869, -0.0402977354824543, 0.029573049396276474, 0.07489463686943054, -0.027969691902399063, 0.07660488784313202, -0.0383380763232708, -0.0016133791068568826, 0.010199138894677162, 0.04190109297633171, 0.00047154317144304514, 0.023925665766000748, 0.008479982614517212, 0.010475273244082928, 0.006827633362263441, -0.020166682079434395, -0.013539468869566917, 0.00645351642742753, -0.0586472786962986, -0.009637963958084583, 0.011339304968714714, -0.0012236740440130234, -0.009753761813044548, -0.03142581880092621, -0.05743585154414177, -0.021734410896897316, -0.05426476523280144, -0.023213062435388565, 0.011749052442610264, 0.024549195542931557, 0.03432967886328697, 0.019115591421723366, -0.009130233898758888, -0.006137298885732889, -0.021378109231591225, 0.03773236274719238, -0.037696730345487595, -0.0317821204662323, 0.03880126774311066, -0.05226947367191315, 0.07418203353881836, 0.009085696190595627, -0.027595575898885727, -0.015623833984136581, 0.015427868813276291, 0.0717591866850853, -0.03979891166090965, -0.023106172680854797, -0.03584396094083786, -0.010965188033878803, 0.005602845922112465, 0.06317231059074402, 0.00203092023730278, -0.022518275305628777, 0.055975012481212616, -0.03445438668131828, -0.0783151388168335, -0.03525606542825699, -0.023373398929834366, 0.04792259261012077, 0.015623833984136581, 0.022892391309142113, 0.013690897263586521, -0.005500409286469221, 0.025208352133631706, -0.011089893989264965, -0.02050516940653324, 0.004008395131677389, 0.009388552978634834, -0.011918295174837112, 0.02054079994559288, -0.02823691815137863, 0.05814845487475395, -0.015231902711093426, -0.04592730477452278, -0.024620454758405685, -0.022821130231022835, 0.015908876433968544, 0.09563140571117401, 0.07325565069913864, 0.036022111773490906, -0.02463827095925808, -0.002036487450823188, -0.028789186850190163, -0.03475724160671234, -0.07268556952476501, -0.044145792722702026, 0.005638475995510817, 0.06342171877622604, 0.05508425831794739, -0.03187119588255882, 0.05098678916692734, -0.009459813125431538, 0.02319524809718132, 0.015187365002930164, -0.0016723916633054614, -0.015133919194340706, 0.05935988202691078, -0.04831452667713165, -0.006083853542804718, 0.006257550325244665, -0.016265178099274635, 0.0014708584640175104, -0.004395873751491308, 0.026027847081422806, -0.024068187922239304, -0.023765331134200096, -0.03443656861782074, 0.006489146500825882, -0.010510903783142567, 0.012096446007490158, 0.044537726789712906, 0.03253035619854927, 0.049062758684158325, 0.040974706411361694, -0.021538443863391876, -0.038124293088912964, -0.0524119958281517, -0.03823118284344673, 0.01764584705233574, -0.024727346375584602, -0.0024829781614243984, 0.018527694046497345, -0.01362854428589344, -0.02549339458346367, -0.00923712458461523, 0.04425268620252609, -0.01698668859899044, 0.0011557539692148566, -0.06826742738485336, 0.03596866875886917, 0.03299354761838913, 0.017512233927845955, 0.024068187922239304, 0.02257172018289566, -0.04036899656057358, 0.06142643094062805, -0.003930454142391682, -0.02152062952518463, -0.05608190596103668, 0.036253709346055984, 0.002761339070275426, -0.03188901022076607, 0.000012682813576248009, 0.010849390178918839, 0.040903449058532715, -0.023765331134200096, -0.01466181967407465, 0.04361134022474289, -0.007803009822964668, 0.02843288518488407, -0.024068187922239304, -0.04111722856760025, 0.05490610748529434, 0.013022830709815025, -0.07760253548622131, 0.03174649178981781, 0.07183044403791428, 0.025707175955176353, 0.02519053779542446, -0.007023599464446306, 0.00006618027691729367, -0.062103405594825745, 0.0366990864276886, 0.013904677703976631, 0.0032623885199427605, 0.011900480836629868, 0.0128624951466918, -0.014741986989974976, -0.04346882179379463, -0.020362649112939835, 0.0556899718940258, -0.023409029468894005, -0.002471843734383583, -0.0005080084665678442, 0.014822155237197876, 0.029002968221902847, 0.053516533225774765, 0.03007187321782112, 0.000988180749118328, -0.048670828342437744, 0.028130028396844864, -0.0014118459075689316, 0.02424633875489235, 0.08052420616149902, -0.0057008289732038975, 0.0019206894794479012, 0.007776286918669939, 0.03267287462949753, 0.01800214871764183, -0.01710248738527298, 0.029964981600642204, -0.017823997884988785, -0.013655266724526882, 0.0009570043766871095, -0.048599567264318466, -0.003738942090421915, -0.0049080573953688145, 0.005161922425031662, -0.014884508214890957, 0.03819555416703224, 0.047459401190280914, 0.005500409286469221, 0.01936500333249569, -0.04268495738506317, -0.027702465653419495, -0.003340329509228468, -0.028628850355744362, 0.05754274129867554, -0.007820825092494488, -0.034614719450473785, 0.003344783326610923, 0.013111907057464123, 0.024709530174732208, 0.03388430178165436, -0.012488378211855888, -0.0416160523891449, 0.06591583788394928, 0.047388140112161636, 0.031408004462718964, -0.008324100635945797, -0.016853075474500656, 0.015169549733400345, 0.01745878905057907, -0.021093066781759262, 0.021093066781759262, -0.009718132205307484, 0.022072896361351013, 0.05675887688994408, 0.019507523626089096, 0.0019540926441550255, -0.003059741808101535, 0.023141803219914436, -0.03295791894197464, -0.0556899718940258, -0.04108159989118576, -0.07860017567873001, -0.024709530174732208, 0.018794920295476913, 0.01356619130820036, 0.029769016429781914, -0.05911047011613846, -0.04268495738506317, 0.04760192334651947, 0.023676255717873573, -0.005139653570950031, 0.037233538925647736, -0.0021289032883942127, 0.032851025462150574, -0.03555892035365105, -0.029305823147296906, 0.002946170512586832, -0.03404463827610016, 0.0524119958281517, -0.026099108159542084, 0.039300087839365005, -0.003545203013345599, -0.02194819226861, -0.01737862080335617, -0.07838639616966248, -0.009326200000941753, 0.028985152021050453, -0.0026299527380615473, -0.06702037155628204, 0.008422084152698517, -0.025279613211750984, -0.03677034750580788, -0.04646175727248192, 0.0026366333477199078, -0.05348090082406998, 0.025903141126036644, -0.023177431896328926, 0.08843410760164261, -0.021484998986124992, 0.024727346375584602, -0.07200859487056732, 0.053944092243909836, -0.005206460133194923, 0.00394381582736969, -0.04450209438800812, 0.016853075474500656, 0.009985358454287052, 0.06812490522861481, 0.01387795526534319, 0.01956096850335598, 0.06395617127418518, -0.037696730345487595, 0.0316217839717865, -0.005032762885093689, -0.011508548632264137, -0.022981466725468636, -0.005014948081225157, -0.06392054259777069, 0.0018037778791040182, -0.051556870341300964, -0.06221029534935951, -0.004850158467888832, -0.12214025855064392, -0.027987506240606308, 0.027987506240606308, -0.01925811357796192, -0.042506806552410126, 0.08344588428735733, -0.0386587455868721, -0.021502813324332237, -0.047423772513866425, 0.020273573696613312, 0.008626957423985004, 0.029964981600642204, -0.010234769433736801, -0.047815702855587006, -0.012328042648732662, -0.05006040260195732, -0.10382634401321411, -0.045321591198444366, 0.022500459104776382, 0.011000818572938442, 0.04674679785966873, 0.0740395188331604, -0.021039621904492378, 0.03705538809299469, -0.016425512731075287, -0.038872528821229935, 0.04606982320547104, -0.015980135649442673, -0.0010599978268146515, 0.020665505900979042, -0.007874269969761372, 0.03518480435013771, -0.01854550838470459, 0.00235159182921052, 0.011366027407348156, 0.0010605546412989497, 0.011490733362734318, -0.001376215717755258, 0.04820763319730759, -0.00650250818580389, 0.028450699523091316, 0.003554110648110509, 0.03987017273902893, 0.0556899718940258, -0.026491040363907814, -0.006435701623558998, 0.05975181236863136, -0.019828196614980698, 0.003004069672897458, 0.04845704510807991, -0.012755604460835457, -0.016372067853808403, -0.024941125884652138, -0.04033336415886879, -0.056331317871809006, 0.018955256789922714, 0.0023983565624803305, 0.011196784675121307, 0.02674045041203499, 0.04692494869232178, 0.05551182106137276, 0.02119995839893818, -0.040903449058532715, 0.021306848153471947, 0.02604566141963005, 0.03279758244752884, 0.07525093853473663, -0.008386453613638878, 0.003273522946983576, 0.02542213350534439, -0.05968055501580238, -0.04635486379265785, 0.008658134378492832, -0.013673081994056702, -0.04482276737689972, 0.010769221931695938, -0.06188962608575821, 0.02804095298051834, 0.014065014198422432, -0.007615951355546713, -0.006800910923629999, 0.023729700595140457, 0.042934369295835495, -0.0253865048289299, 0.005344527307897806, 0.05287518724799156, 0.008635865524411201, 0.007945530116558075, 0.05383720248937607, -0.015712909400463104, -0.015000306069850922, 0.007224019151180983, 0.023604994639754295, 0.031497079879045486, -0.020255757495760918, -0.018091224133968353, 0.05383720248937607, 0.003017430892214179, -0.0030775568448007107, -0.013637451454997063, -0.0031577248591929674, 0.062495335936546326, -0.012969385832548141, 0.03840933367609978, -0.012559638358652592, 0.013869048096239567, 0.035380769520998, 0.0059235175140202045, 0.002076571574434638, -0.028664480894804, 0.04321940988302231, -0.002681171055883169, 0.022286677733063698, 0.07817261666059494, -0.00474326778203249, 0.025938771665096283, -0.047423772513866425, 0.023248692974448204, 0.03315388411283493, -0.013200982473790646, -0.022072896361351013, 0.02928800880908966, 0.11779338121414185, -0.012461655773222446, 0.0006040428997948766, -0.005046124570071697, -0.012051908299326897, 0.04407453536987305, -0.037233538925647736, -0.05127182975411415, 0.060535676777362823, -0.015516944229602814, 0.008105866611003876, -0.029537420719861984, 0.02764902077615261, 0.07250741869211197, -0.03705538809299469, 0.022090712562203407, -0.021342478692531586, 0.09520384669303894, 0.0015265305992215872, 0.037197910249233246, -0.03705538809299469, 0.031176408752799034, 0.03292228654026985, -0.03634278476238251, -0.059288620948791504, -0.013022830709815025, -0.031568340957164764, -0.0339021161198616, 0.03862311691045761, -0.013058461248874664, -0.042186133563518524, -0.039300087839365005, -0.026099108159542084, 0.008836285211145878, -0.03869437798857689, 0.06014374643564224, -0.03837370499968529, 0.03791051357984543, 0.005580577068030834, -0.021966006606817245, 0.026455409824848175, -0.0216275192797184, -0.033207327127456665, -0.014822155237197876, 0.02967994101345539, -0.008110320195555687, 0.0002222710900241509, -0.014109551906585693, -0.011544178240001202, 0.06955011188983917, 0.03163960203528404, -0.01520517934113741, -0.025742806494235992, -0.004173184745013714, -0.03758984059095383, -0.06114139035344124, -0.045321591198444366, 0.0373404286801815, 0.07411077618598938, 0.00048156417324207723, 0.02788061648607254, 0.026491040363907814, -0.04243554547429085, -0.010867205448448658, 0.06595146656036377, -0.0316217839717865, 0.014465853571891785, -0.005785450804978609, 0.012987201102077961, 0.04275621846318245, -0.05002477392554283, -0.06858810037374496, 0.052661407738924026, -0.08658134192228317, 0.0013372452231124043, -0.016256270930171013, -0.013486023060977459, 0.007384355179965496, 0.05469232797622681, -0.07938404381275177, 0.024691715836524963, 0.06513196974992752, 0.02889607660472393, 0.023017097264528275, -0.002400583354756236, -0.07083279639482498, 0.0008618049905635417, -0.009281662292778492, 0.038444966077804565, -0.034383125603199005, -0.0013205435825511813, -0.07033398002386093, 0.002324869390577078, 0.046176712960004807, 0.05002477392554283, -0.0015844296431168914, -0.04927654191851616, 0.01321879681199789, -0.023800961673259735, -0.013655266724526882, -0.0008373092277906835, -0.019115591421723366, -0.0026589022018015385, 0.019667860120534897, 0.017120301723480225, -0.04033336415886879, -0.0688018798828125, 0.014154089614748955, 0.0491340197622776, -0.023052727803587914, 0.0075357831083238125, 0.02837943844497204, 0.0014808793785050511, -0.04713872820138931, -0.021645335480570793, -0.057257700711488724, 0.005255451891571283, 0.041295379400253296, -0.05080863833427429, -0.00441368855535984, -0.049062758684158325, -0.02987590618431568, -0.02143155410885811, -0.04599856212735176, -0.016300808638334274, -0.03776799142360687, 0.06819617003202438, 0.03302917629480362, -0.025867510586977005, -0.04899149760603905, 0.10539407283067703, -0.023533735424280167, -0.05868290737271309, -0.03698412701487541, -0.029377084225416183, -0.03119422309100628, -0.05095116049051285, 0.011178969405591488, 0.017815090715885162, -0.014929045923054218, 0.01557929627597332, -0.03830244392156601, -0.013370225206017494, 0.016407698392868042, 0.04204361513257027, 0.007059229537844658, 0.007152759004384279, -0.03912193700671196, -0.04083218798041344, -0.005976962856948376, 0.00105164700653404, 0.022108526900410652, -0.02011323720216751, -0.009718132205307484, 0.06035752594470978, -0.05740022286772728, -0.020095422863960266, 0.05454980581998825, -0.0216275192797184, -0.009081242606043816, -0.03659219667315483, 0.05690139904618263, -0.03618244826793671, 0.0128624951466918, -0.011802497319877148, -0.0061417524702847, 0.013111907057464123, -0.006034861784428358, 0.03555892035365105, 0.015944505110383034, -0.05707954987883568, -0.016487866640090942, 0.11130868643522263, -0.04696057736873627, 0.006903347559273243, -0.013138629496097565, 0.011766867712140083, -0.005745366681367159, -0.03919319808483124, 0.0029818008188158274, 0.024353228509426117, 0.03987017273902893, 0.013753250241279602, -0.07852891832590103, 0.02565373107790947, 0.07553598284721375, 0.01639879122376442, -0.0007103767129592597, 0.048813346773386, -0.038836896419525146, -0.027078937739133835, 0.014448038302361965, -0.008043513633310795, 0.03855185583233833, 0.06940758973360062, -0.07036960870027542, 0.03755421191453934, -0.0060660382732748985, 0.03600429743528366, -0.006600491236895323, 0.037661101669073105, 0.02264297939836979, 0.036378413438797, -0.061640214174985886, -0.011161154136061668, -0.02944834530353546, 0.004003941547125578, 0.006293180864304304, 0.03345673903822899, 0.06253096461296082, -0.024958942085504532, 0.020861471071839333, 0.038017403334379196, 0.01458165142685175 ]
17,239
imodels.rule_list.greedy_rule_list
fit
Params ------ X: array_like Feature set y: array_like target variable depth the depth of the current layer (used to recurse)
def fit(self, X, y, depth: int = 0, feature_names=None, verbose=False): """ Params ------ X: array_like Feature set y: array_like target variable depth the depth of the current layer (used to recurse) """ X, y, feature_names = check_fit_arguments(self, X, y, feature_names) return self.fit_node_recursive(X, y, depth=0, verbose=verbose)
(self, X, y, depth: int = 0, feature_names=None, verbose=False)
[ 0.010877464897930622, -0.013032105751335621, 0.020833993330597878, 0.006242379080504179, -0.028601128607988358, 0.02396169863641262, -0.03746296092867851, 0.019774049520492554, 0.028236230835318565, 0.03506505489349365, 0.008223258890211582, -0.04236303269863129, -0.025230158120393753, 0.00395958824083209, 0.022363094612956047, 0.0019254937069490552, -0.008553405292332172, -0.021059883758425713, -0.03847077861428261, 0.07687205076217651, -0.021077260375022888, -0.016055554151535034, 0.007480429019778967, 0.03383134678006172, -0.021633295342326164, -0.00046209676656872034, 0.04448292404413223, 0.012997353449463844, -0.06946981698274612, -0.021928690373897552, -0.0788876861333847, -0.027541184797883034, -0.08382250368595123, 0.005686342250555754, -0.019357021898031235, -0.021598543971776962, -0.03871404379606247, 0.0623803474009037, -0.02441347949206829, -0.08451755344867706, -0.041667986661195755, -0.011390061117708683, -0.03871404379606247, 0.020503846928477287, 0.004687214270234108, 0.016906986013054848, 0.0029800082556903362, 0.08917436003684998, -0.016698472201824188, -0.048479434102773666, -0.017827920615673065, -0.061615798622369766, 0.033396944403648376, -0.008119001984596252, 0.03397035598754883, 0.02768019400537014, 0.05629869922995567, 0.02234571799635887, 0.08590764552354813, -0.03673316165804863, 0.028392614796757698, 0.01070370338857174, -0.03593385964632034, 0.04225877672433853, -0.0743698850274086, -0.0317983403801918, -0.06745418161153793, 0.013761904090642929, -0.018210196867585182, 0.06762794405221939, -0.01535182073712349, -0.038818299770355225, 0.02672450616955757, 0.013171114958822727, 0.008957400918006897, 0.03767147660255432, -0.03285828232765198, 0.007597717922180891, -0.000520469737239182, -0.006159842014312744, -0.058731358498334885, 0.03499554842710495, -0.04236303269863129, -0.03252813592553139, -0.03735870495438576, 0.01954815909266472, 0.038192760199308395, 0.03331006318330765, 0.026081588119268417, -0.01417024340480566, -0.01125973928719759, 0.03607286885380745, 0.01535182073712349, 0.03694167733192444, 0.014761032536625862, 0.017567278817296028, -0.007471740711480379, 0.009930464439094067, 0.0032363063655793667, -0.03424837440252304, -0.02371843345463276, 0.0016355293337255716, -0.02255423180758953, 0.09230206161737442, -0.05869660526514053, 0.0014139835257083178, -0.029105037450790405, 0.014700215309858322, 0.003244994441047311, -0.0004219144466333091, -0.05296247825026512, 0.014934794045984745, 0.05619444325566292, 0.00902690552175045, -0.027332670986652374, -0.02036483772099018, -0.02821885421872139, -0.0025542927905917168, -0.02450035884976387, -0.026672378182411194, 0.025542927905917168, 0.034439511597156525, -0.02701989933848381, -0.03176358714699745, -0.04302332550287247, 0.020382214337587357, 0.05080783739686012, 0.021824434399604797, 0.021754929795861244, -0.1157946065068245, 0.029226670041680336, 0.019965186715126038, -0.00535185169428587, 0.053727030754089355, 0.035308320075273514, -0.05299723148345947, -0.01895737089216709, -0.043892133980989456, -0.018436085432767868, -0.04295382276177406, 0.05563840642571449, -0.037323951721191406, 0.028774891048669815, -0.014448261819779873, 0.022780122235417366, 0.009687199257314205, 0.015195435844361782, -0.032701898366212845, -0.034682776778936386, -0.0071459379978477955, -0.03979136422276497, -0.01458727102726698, 0.024726249277591705, 0.001144653302617371, -0.005920920055359602, 0.03999987617135048, -0.039409089833498, -0.008114658296108246, 0.05536038801074028, 0.005577741656452417, -0.013110298663377762, -0.05202416703104973, -0.04993903264403343, 0.014778408221900463, 0.023857442662119865, 0.03631613403558731, -0.04747162014245987, 0.01239787694066763, -0.033692337572574615, 0.029904339462518692, 0.026950394734740257, -0.029817458242177963, -0.01595129817724228, 0.020973002538084984, 0.05379653349518776, 0.0006396592361852527, 0.029852211475372314, -0.001607293146662414, 0.012302308343350887, 0.0961943194270134, 0.025751441717147827, 0.005021704826503992, 0.00729363551363349, -0.06745418161153793, 0.00974801555275917, -0.01708943583071232, -0.011433500796556473, 0.02272799238562584, -0.028479496017098427, 0.015560334548354149, 0.019530782476067543, 0.0041876500472426414, 0.05515187233686447, 0.034439511597156525, 0.010295364074409008, 0.024517735466361046, 0.0008525169687345624, 0.02404857985675335, 0.02557768113911152, 0.030130229890346527, 0.0027584624476730824, 0.013570766896009445, 0.05751502886414528, -0.018766233697533607, -0.04330134391784668, 0.06477825343608856, 0.00053404486970976, 0.02371843345463276, -0.0623108446598053, -0.026950394734740257, -0.007211098913103342, -0.012632454745471478, -0.004341863561421633, 0.00571240670979023, 0.0067593189887702465, 0.03098165988922119, -0.026411734521389008, -0.03445689007639885, 0.007067745551466942, -0.03979136422276497, 0.046915583312511444, -0.015012986026704311, -0.0038379551842808723, 0.01363158319145441, 0.013370940461754799, -0.043648868799209595, 0.03470015525817871, -0.04135521501302719, -0.0024934762623161077, -0.08069480210542679, 0.021390030160546303, -0.030025972053408623, 0.032945163547992706, -0.043197087943553925, -0.0072979796677827835, 0.004656806122511625, 0.03478703647851944, 0.004930480383336544, 0.019530782476067543, -0.0005913318018428981, -0.023996451869606972, -0.0414942242205143, -0.01784529723227024, -0.05223268270492554, -0.0006065359339118004, 0.06922654807567596, 0.03624663129448891, 0.007032993249595165, 0.034891292452812195, -0.01730663701891899, -0.016272757202386856, 0.01739351823925972, -0.034891292452812195, -0.007019961252808571, -0.00881839171051979, -0.07770610600709915, 0.04403114318847656, -0.006068617571145296, 0.011589886620640755, -0.0007748673087917268, -0.021251020953059196, 0.01850559003651142, -0.032406505197286606, 0.09668084979057312, -0.06523003429174423, 0.004826223477721214, 0.005173746030777693, -0.028983404859900475, -0.051746148616075516, 0.00088075315579772, 0.03082527592778206, 0.03028661385178566, 0.059183139353990555, 0.009113785810768604, 0.00045666671940125525, 0.03145081549882889, 0.0029257077258080244, -0.030929531902074814, 0.04754112288355827, 0.014900041744112968, 0.009843584150075912, -0.04774963855743408, -0.02177230454981327, 0.04118145629763603, -0.01834920607507229, 0.004115973599255085, 0.006959144491702318, 0.057688791304826736, -0.024031203240156174, -0.046255290508270264, 0.00042028541793115437, 0.03007810190320015, 0.06602934002876282, 0.05473484471440315, 0.031954724341630936, -0.0011327072279527783, -0.03304941952228546, -0.0022675865329802036, 0.040590666234493256, 0.021720176562666893, -0.013414381071925163, 0.020555974915623665, 0.03106854110956192, -0.03049512766301632, 0.060468971729278564, -0.012936537154018879, 0.04729785770177841, -0.0019678480457514524, -0.029591569676995277, 0.030929531902074814, 0.016846168786287308, 0.08076430857181549, -0.01522149983793497, -0.047610629349946976, -0.04500420764088631, -0.040555913001298904, 0.037949491292238235, -0.02102513052523136, 0.03532569482922554, 0.037115439772605896, -0.004756718873977661, -0.01142481341958046, 0.015464765951037407, -0.061129264533519745, 0.0032688865903764963, 0.0676974505186081, 0.08187638223171234, 0.041876502335071564, -0.018244948238134384, -0.03353595361113548, 0.03383134678006172, -0.048896461725234985, 0.0524759478867054, 0.007063401397317648, -0.041667986661195755, 0.035760100930929184, 0.009713263250887394, 0.0033383911941200495, 0.0022632423788309097, 0.03572534769773483, -0.04854894056916237, 0.03822750970721245, -0.07582948356866837, 0.004517796915024519, 0.011642014607787132, 0.015629839152097702, 0.05859234929084778, 0.004337519407272339, 0.05664622038602829, 0.07179822027683258, -0.03115542232990265, 0.02309289202094078, 0.04118145629763603, -0.008088594302535057, -0.026168469339609146, 0.02507377229630947, -0.01900949887931347, 0.03098165988922119, 0.0010887238895520568, -0.043197087943553925, -0.020764488726854324, -0.03337956964969635, -0.057619284838438034, 0.01010422594845295, 0.011416125111281872, -0.02536916732788086, -0.017775792628526688, 0.06172005459666252, 0.045629747211933136, -0.05817532166838646, 0.027454303577542305, -0.011068602092564106, -0.07277128100395203, 0.02672450616955757, -0.026324855163693428, 0.06710665673017502, -0.0001722681481624022, -0.0025933890137821436, 0.05202416703104973, 0.009791456162929535, -0.004087737295776606, 0.03544732928276062, -0.011103354394435883, -0.04194600507616997, 0.044343914836645126, -0.01628144457936287, 0.014352693222463131, -0.04639429971575737, 0.049800023436546326, -0.017584655433893204, 0.06366617977619171, 0.01146825309842825, -0.005734126549214125, 0.03445689007639885, -0.07513443380594254, -0.041876502335071564, 0.0623803474009037, 0.02387481927871704, -0.08069480210542679, -0.011503005400300026, -0.018974745646119118, -0.01661159098148346, -0.022363094612956047, 0.017532527446746826, 0.028774891048669815, 0.0360381193459034, 0.00222631823271513, -0.0004669837944675237, -0.011103354394435883, 0.05275396630167961, -0.005690686404705048, 0.03337956964969635, 0.009435244835913181, 0.028027717024087906, -0.03384872525930405, 0.029852211475372314, 0.028896523639559746, 0.042780060321092606, 0.0831969678401947, -0.011537757702171803, 0.016116371378302574, -0.04350985959172249, -0.029608944430947304, 0.023457791656255722, 0.01198084931820631, -0.00030516847618855536, -0.0502518005669117, -0.07030387222766876, 0.04135521501302719, 0.00395958824083209, -0.09960004687309265, -0.07777561247348785, -0.022502103820443153, -0.03690692409873009, 0.003360111266374588, -0.049348242580890656, -0.02785395458340645, -0.024361349642276764, -0.04900071769952774, 0.030964285135269165, -0.002873579505831003, -0.03148556873202324, 0.043614115566015244, -0.02086874656379223, -0.05508236959576607, -0.018071187660098076, -0.0014954342041164637, 0.061824310570955276, -0.09070345759391785, -0.004011716693639755, 0.047784388065338135, -0.01826232485473156, 0.04705459251999855, 0.00941786915063858, -0.060712236911058426, -0.0012402221327647567, 0.01883573830127716, -0.003983480390161276, 0.022363094612956047, -0.008370956405997276, 0.014057298190891743, -0.04229352995753288, 0.056993745267391205, 0.027332670986652374, -0.053900789469480515, -0.014908729121088982, 0.012858345173299313, -0.021754929795861244, 0.018331829458475113, -0.05160713940858841, 0.04969576373696327, -0.010277987457811832, -0.03475228324532509, -0.04882695898413658, 0.005890511907637119, 0.030338743701577187, 0.006563837639987469, 0.010877464897930622, 0.003966104239225388, -0.06057322770357132, -0.025629809126257896, -0.06234559416770935, 0.07353582978248596, -0.040347401052713394, 0.025890450924634933, -0.0052823470905423164, -0.00974801555275917, -0.026411734521389008, 0.009939152747392654, 0.05157238990068436, -0.013996481895446777, -0.015039050951600075, 0.0021622437052428722, -0.02594257891178131, -0.03572534769773483, 0.010738455690443516, 0.04417015239596367, 0.015933921560645103, -0.04246728867292404, -0.030599385499954224, -0.025751441717147827, 0.02726316638290882, 0.002075362950563431, -0.030356118455529213, -0.018105939030647278, 0.048027656972408295, 0.0015334445051848888, 0.016846168786287308, -0.021424783393740654, 0.04225877672433853, -0.012102482840418816, -0.044343914836645126, 0.020555974915623665, 0.016333572566509247, 0.025751441717147827, 0.07423087954521179, 0.019026875495910645, 0.07284078747034073, 0.03582960367202759, -0.019443903118371964, 0.007749759126454592, 0.03473490849137306, 0.09786242991685867, -0.02536916732788086, 0.08333597332239151, 0.048479434102773666, 0.021337902173399925, 0.03271927312016487, 0.009183290414512157, 0.02012157253921032, 0.07172871381044388, 0.024726249277591705, -0.004257154650986195, 0.03857503458857536, 0.005994768813252449, -0.05497811362147331, 0.04556024447083473, -0.038401272147893906, -0.03188521787524223, -0.012762775644659996, 0.009782767854630947, -0.005812319461256266, 0.0036750538274645805, 0.0006559493485838175, -0.013127675279974937, -0.04413539916276932, 0.025212781503796577, -0.025299662724137306, 0.06078174337744713, -0.04375312477350235, -0.030390871688723564, 0.0054517644457519054, -0.014430885203182697, 0.05198941379785538, 0.03899206221103668, -0.031589824706315994, -0.05880086123943329, 0.046012021601200104, -0.022588983178138733, -0.010112914256751537, -0.025838322937488556, 0.04948725178837776, 0.04722835123538971, -0.04663756489753723, 0.053483761847019196, -0.030790522694587708, -0.06679388880729675, 0.013979106210172176, -0.04747162014245987, -0.030790522694587708, -0.006933080498129129, 0.046290040016174316, -0.01456120703369379, 0.006411796435713768, -0.014057298190891743, 0.05643770843744278, -0.009191978722810745, -0.033692337572574615, -0.06957407295703888, 0.04135521501302719, -0.009869648143649101, -0.039895620197057724, -0.010477812960743904, -0.01925276406109333, 0.008896584622561932, -0.0027476022951304913, 0.007132906001061201, 0.018314452841877937, -0.06853150576353073, 0.00582535145804286, 0.004878351930528879, -0.0039074597880244255, 0.006902672350406647, -0.014430885203182697, 0.009973905049264431, 0.006355323828756809, -0.05928739532828331, -0.0019287517061457038, 0.07388335466384888, -0.06422221660614014, -0.03760197013616562, 0.005725438706576824, -0.01247606985270977, 0.005946984514594078, -0.010886152274906635, -0.01789742521941662, -0.02048647031188011, 0.009183290414512157, 0.0158991701900959, -0.02102513052523136, 0.018540343269705772, -0.011763648129999638, 0.05595117434859276, -0.027819203212857246, -0.07610750198364258, 0.016350949183106422, 0.03450901806354523, -0.0040290928445756435, -0.0006809275364503264, -0.053483761847019196, 0.0012467381311580539, -0.04350985959172249, -0.020973002538084984, -0.015603775158524513, -0.02908766083419323, 0.016090307384729385, -0.026203220710158348, -0.04726310446858406, 0.00765419052913785, 0.041250959038734436, -0.0072979796677827835, -0.014126802794635296, -0.03562109172344208, -0.00005759240593761206, 0.03355332836508751, -0.04788864776492119, -0.008119001984596252, -0.024187589064240456, -0.026585496962070465, -0.028896523639559746, -0.078818179666996, 0.017767105251550674, -0.006281475070863962, 0.0025412607938051224, -0.04698508605360985, -0.014552518725395203, -0.012389188632369041, 0.008062529377639294, 0.06853150576353073, -0.01814069226384163, -0.014908729121088982, -0.04722835123538971, -0.029139788821339607, 0.02342303842306137, 0.09146800637245178, 0.05706324800848961, -0.0015291004674509168, 0.015195435844361782, 0.03808850049972534, -0.011581198312342167, 0.008814048022031784, -0.012154610827565193, 0.083127461373806, 0.028288358822464943, -0.05070358142256737, 0.02446560747921467, 0.009826208464801311, -0.08562962710857391, -0.013310124166309834, -0.005434388294816017, -0.0765245258808136, -0.03421362116932869, 0.007463052868843079, -0.022832250222563744, -0.05539513751864433, -0.013006041757762432, -0.04966101422905922, 0.0033796594943851233, 0.028861770406365395, 0.0393395833671093, 0.015047738328576088, 0.06185906380414963, 0.028062468394637108, 0.030755771324038506, 0.0404864102602005, 0.0480971597135067, -0.025351790711283684, 0.019843554124236107, 0.016698472201824188, -0.015264940448105335, 0.01570803113281727, -0.05626394599676132, 0.023145020008087158, -0.007932208478450775, -0.04795815050601959, 0.033240560442209244, -0.012206739746034145, -0.03899206221103668, 0.02726316638290882, -0.03520406410098076, 0.003972620237618685, 0.05880086123943329, -0.050425563007593155, -0.0047219665721058846, 0.004569925367832184, -0.011867905035614967, -0.08159836381673813, 0.08333597332239151, 0.021789681166410446, -0.02561243250966072, -0.014031234197318554, -0.029105037450790405, -0.042571548372507095, -0.04225877672433853, -0.012024289928376675, 0.04027789458632469, 0.00900952983647585, 0.019113754853606224, 0.012971289455890656, 0.0579320564866066, 0.047158848494291306, -0.005086865276098251, 0.014787096530199051, 0.02714153379201889, -0.002052556723356247, 0.01904425024986267, 0.036872170865535736, -0.014700215309858322, 0.02495213970541954, -0.04962626099586487, 0.031294431537389755, 0.022536855190992355, -0.0016246691811829805, 0.01769760064780712, -0.03475228324532509, -0.04729785770177841, -0.013032105751335621, 0.047610629349946976, 0.05365752428770065, 0.004713278263807297, -0.03331006318330765, 0.001853817142546177, -0.022867001593112946, 0.02132052555680275, 0.06856625527143478, -0.01541263796389103, -0.014300564303994179, 0.022780122235417366, -0.0018386129522696137, -0.02474362589418888, 0.018661975860595703, -0.005130305886268616, 0.02801034040749073, 0.026081588119268417, 0.03037349507212639, -0.008583813905715942, -0.06929605454206467, -0.031103292480111122, 0.0016409594099968672, -0.042119767516851425, -0.0013966073747724295, -0.08368349820375443, 0.009191978722810745, -0.0051563698798418045, -0.041042447090148926, 0.039965126663446426, 0.083127461373806, 0.06032996252179146 ]
17,240
imodels.rule_list.greedy_rule_list
fit_node_recursive
null
def fit_node_recursive(self, X, y, depth: int, verbose): # base case 1: no data in this group if y.size == 0: return [] # base case 2: all y is the same in this group elif np.all(y == y[0]): return [{'val': y[0], 'num_pts': y.size}] # base case 3: max depth reached elif depth == self.max_depth: return [{'val': np.mean(y), 'num_pts': y.size}] # recursively generate rule list else: # find a split with the best value for the criterion m = DecisionTreeClassifier(max_depth=1, criterion=self.criterion) m.fit(X, y) col = m.tree_.feature[0] cutoff = m.tree_.threshold[0] # col, cutoff, criterion_val = self._find_best_split(X, y) if col == -2: return [] y_left = y[X[:, col] < cutoff] # left-hand side data y_right = y[X[:, col] >= cutoff] # right-hand side data # put higher probability of class 1 on the right-hand side if len(y_left) > 0 and np.mean(y_left) > np.mean(y_right): flip = True tmp = deepcopy(y_left) y_left = deepcopy(y_right) y_right = tmp x_left = X[X[:, col] >= cutoff] else: flip = False x_left = X[X[:, col] < cutoff] # print if verbose: print( f'{np.mean(100 * y):.2f} -> {self.feature_names_[col]} -> {np.mean(100 * y_left):.2f} ({y_left.size}) {np.mean(100 * y_right):.2f} ({y_right.size})') # save info par_node = [{ 'col': self.feature_names_[col], 'index_col': col, 'cutoff': cutoff, 'val': np.mean(y_left), # will be the values before splitting in the next lower level 'flip': flip, 'val_right': np.mean(y_right), 'num_pts': y.size, 'num_pts_right': y_right.size }] # generate tree for the non-leaf data par_node = par_node + \ self.fit_node_recursive(x_left, y_left, depth + 1, verbose=verbose) self.depth += 1 # increase the depth since we call fit once self.rules_ = par_node self.complexity_ = len(self.rules_) self.classes_ = unique_labels(y) return par_node
(self, X, y, depth: int, verbose)
[ 0.017766784876585007, 0.024940907955169678, -0.00012992564006708562, 0.01999124512076378, 0.009985992684960365, 0.021705329418182373, -0.011931190267205238, -0.02842685580253601, 0.02193644270300865, 0.0009569508256390691, 0.02457497827708721, -0.001503436011262238, -0.02559572644531727, -0.006283375434577465, 0.019740872085094452, 0.007559309713542461, -0.0008781077340245247, 0.007645976729691029, 0.003269281005486846, 0.07723014801740646, -0.014810469001531601, -0.015561585314571857, -0.015446028672158718, 0.03867284953594208, -0.013327496126294136, -0.0417158342897892, 0.014762320555746555, 0.014194169081747532, -0.06301672011613846, -0.01693863235414028, -0.07880941778421402, -0.02557646669447422, -0.04445066675543785, -0.023785343393683434, -0.02340015582740307, -0.037247657775878906, -0.010448218323290348, 0.06413376331329346, -0.06486561894416809, -0.05192330852150917, -0.060320403426885605, -0.0493810698390007, -0.10523329675197601, 0.01586010493338108, -0.016640111804008484, 0.00999562256038189, 0.01872975379228592, 0.08874725550413132, -0.032875776290893555, -0.08289240300655365, -0.024112753570079803, -0.06763897091150284, 0.012220081873238087, 0.026943882927298546, 0.007867460139095783, 0.014203798025846481, 0.031123170629143715, -0.023111265152692795, 0.08589687198400497, -0.035629868507385254, 0.041985467076301575, 0.033203184604644775, -0.03547579050064087, 0.02403571642935276, -0.06028188392519951, -0.03455134108662605, -0.10330735892057419, 0.0040685455314815044, -0.01800752803683281, 0.05200034752488136, -0.01250897254794836, -0.02809944748878479, 0.09375470131635666, 0.01875864341855049, -0.017882341518998146, 0.004013175144791603, -0.010284513235092163, -0.03152761608362198, 0.04656919836997986, -0.014916395768523216, -0.0537722110748291, 0.05981965735554695, 0.0164475180208683, -0.03938544914126396, -0.030449092388153076, 0.00961043406277895, 0.06205374747514725, 0.03751728683710098, 0.03663135692477226, 0.013462311588227749, -0.015003062784671783, 0.00496892211958766, 0.044296592473983765, 0.06159152090549469, -0.007949312217533588, 0.06193819269537926, -0.008512649685144424, -0.00018236233154311776, 0.005546703469008207, -0.0526936836540699, 0.0015202879440039396, 0.03817210718989372, -0.034281712025403976, 0.0910583883523941, -0.03283725678920746, -0.01339490432292223, -0.03686246648430824, 0.03767136111855507, -0.029332047328352928, 0.0031729841139167547, -0.0987621396780014, 0.039481744170188904, 0.00708263972774148, 0.028234262019395828, -0.0037098396569490433, -0.02756018377840519, -0.062284860759973526, 0.007487087044864893, -0.02424756996333599, -0.013914907351136208, 0.03603431582450867, 0.018835680559277534, -0.054619625210762024, 0.0184023454785347, -0.07703755050897598, -0.005315591115504503, 0.06178411468863487, 0.03697802498936653, -0.006870786659419537, -0.0670226663351059, 0.023785343393683434, 0.016331961378455162, -0.011574892327189445, -0.0010075067402794957, 0.013712683692574501, -0.06116781383752823, -0.013597127981483936, -0.012595639564096928, -0.011642299592494965, -0.06875601410865784, 0.04009804502129555, -0.07037380337715149, 0.018489012494683266, -0.04248620942234993, 0.04194694757461548, -0.0004568086005747318, 0.03458986058831215, 0.02821500226855278, -0.019163090735673904, -0.007780792657285929, -0.036400243639945984, -0.004090212285518646, 0.05612185597419739, -0.003878359217196703, 0.04271732270717621, 0.020549766719341278, -0.03838396072387695, -0.03828766196966171, 0.003399281995370984, -0.009682657197117805, -0.04757068678736687, -0.07318567484617233, -0.040675826370716095, -0.0040853978134691715, 0.01794011890888214, 0.026096470654010773, -0.05357961729168892, -0.029120193794369698, -0.03050686977803707, -0.0036496538668870926, 0.01920161023736, -0.03713209927082062, -0.06613674014806747, 0.0241512730717659, -0.020145319402217865, 0.051538120955228806, 0.03422393277287483, 0.005758557002991438, 0.00048028098535723984, 0.08712947368621826, -0.009740435518324375, -0.01388601865619421, 0.03653505817055702, -0.058124832808971405, -0.007487087044864893, -0.008377833291888237, 0.048572175204753876, -0.0028383522294461727, -0.026404621079564095, 0.027579443529248238, -0.06401820480823517, -0.033434297889471054, 0.020838657394051552, 0.01795937865972519, 0.03778691962361336, 0.01333712600171566, 0.023534972220659256, 0.057778164744377136, 0.027290552854537964, 0.015311213210225105, -0.012104525230824947, -0.002857611747458577, 0.05939595028758049, -0.013202310539782047, -0.059318915009498596, 0.04217806085944176, -0.023843122646212578, 0.08196795731782913, -0.03909655660390854, 0.02328459918498993, -0.04294843599200249, 0.0052963318303227425, 0.00897005945444107, 0.006769674830138683, 0.01576380804181099, -0.031335022300481796, -0.01311564352363348, -0.008883392438292503, -0.014810469001531601, -0.05015144497156143, -0.04402695968747139, -0.04784031957387924, -0.012817122973501682, 0.021897923201322556, 0.023130524903535843, -0.033337999135255814, 0.04267880320549011, -0.036727651953697205, 0.02524905651807785, -0.04333362355828285, 0.02688610553741455, -0.07645977288484573, 0.019307537004351616, -0.05342554301023483, -0.0023207562044262886, 0.012595639564096928, 0.03218243643641472, -0.006432635709643364, -0.023746825754642487, 0.020819397643208504, -0.049881815910339355, -0.06062855198979378, -0.020665323361754417, -0.025865357369184494, 0.005248183384537697, 0.05762408673763275, 0.07472642511129379, 0.0036207649391144514, 0.03416615352034569, 0.003688172670081258, -0.02216755598783493, -0.010477107018232346, -0.030352795496582985, -0.022976448759436607, 0.001739363418892026, -0.09475618600845337, -0.011998598463833332, 0.01609121821820736, 0.02821500226855278, -0.007862645201385021, 0.0031633544713258743, 0.03601505607366562, -0.04225509613752365, 0.03381948545575142, -0.04448918625712395, 0.008844873867928982, 0.0225142240524292, -0.028792785480618477, -0.015898624435067177, 0.014800839126110077, -0.04995885118842125, 0.014762320555746555, 0.011507484130561352, -0.0026216842234134674, -0.03426245227456093, 0.05180775374174118, -0.01218156237155199, -0.031219467520713806, 0.04911143705248833, -0.009629693813621998, 0.0192208681255579, -0.0340505987405777, -0.019837168976664543, -0.0030116867274045944, -0.02193644270300865, 0.00009832820069277659, -0.010120808146893978, 0.04699290543794632, -0.016832705587148666, -0.005594851914793253, -0.055698148906230927, 0.0014131575589999557, 0.03811432793736458, 0.05831742659211159, 0.1010732650756836, 0.0018633457366377115, -0.006336338352411985, -0.04633808881044388, 0.014579356648027897, 0.004853365942835808, 0.013481571339070797, 0.01037118025124073, 0.07052788138389587, -0.003148909891024232, 0.04576030373573303, 0.019307537004351616, 0.015783067792654037, -0.045837342739105225, 0.022032739594578743, 0.010072659701108932, 0.02062680386006832, 0.048572175204753876, 0.06894861161708832, -0.03447430580854416, -0.055929262191057205, -0.07626717537641525, 0.02709795907139778, -0.01817123219370842, 0.05993521586060524, 0.06521228700876236, -0.04082990065217018, -0.0011068129679188132, 0.008926725946366787, -0.011767486110329628, 0.055813707411289215, 0.05654556304216385, 0.07611309736967087, 0.054850734770298004, -0.014232687652111053, -0.014531208202242851, -0.007212640717625618, -0.013626016676425934, 0.01613936759531498, 0.026212027296423912, -0.009754880331456661, 0.029158713296055794, 0.03994397073984146, -0.007944497279822826, 0.00047877634642645717, -0.025191279128193855, -0.03678543120622635, 0.0241705309599638, -0.04306399077177048, 0.011940820142626762, 0.026057951152324677, -0.00661078467965126, 0.040021006017923355, 0.027155736461281776, 0.020780880004167557, 0.120794877409935, -0.0046270680613815784, -0.006581895984709263, 0.031007613986730576, 0.024459421634674072, 0.004131138790398836, -0.011440075933933258, 0.012663047760725021, -0.016274182125926018, 0.01377046201378107, -0.029447603970766068, 0.030892057344317436, -0.0334535576403141, -0.03393504023551941, 0.07888644933700562, 0.05689223110675812, -0.01751641370356083, -0.039905451238155365, 0.06332486867904663, 0.07449531555175781, -0.05180775374174118, -0.011950450018048286, -0.022687558084726334, -0.026732029393315315, -0.010717849247157574, 0.0012988050002604723, 0.04980477690696716, -0.019606057554483414, -0.020049022510647774, 0.07549680024385452, 0.0025663133710622787, 0.0030766872223466635, 0.021435698494315147, -0.008363389410078526, -0.014569726772606373, -0.001458898652344942, -0.04564474895596504, 0.039905451238155365, -0.029158713296055794, 0.06995009630918503, -0.04375733062624931, 0.06490413844585419, 0.026154248043894768, 0.009066356346011162, -0.004412807058542967, -0.05654556304216385, 0.012980827130377293, 0.05103737860918045, 0.010438588447868824, -0.07919460535049438, -0.000530836870893836, -0.05327146500349045, -0.02426682785153389, 0.0031007614452391863, -0.002024643123149872, 0.016408998519182205, -0.02767574042081833, 0.04082990065217018, 0.029813531786203384, -0.005821149796247482, 0.040021006017923355, -0.00804560910910368, 0.018296418711543083, 0.05454258620738983, 0.025441652163863182, -0.003998730331659317, -0.018816422671079636, 0.02754092402756214, 0.09028801321983337, 0.07857830077409744, -0.01877790316939354, 0.0208579171448946, -0.04656919836997986, -0.01597566157579422, 0.034089114516973495, -0.00398910092189908, 0.010111178271472454, -0.039905451238155365, -0.042101021856069565, -0.030102422460913658, -0.005464851390570402, -0.038249142467975616, -0.05754705145955086, -0.0582018680870533, -0.05465814098715782, -0.03576468303799629, -0.03491726890206337, -0.02372756600379944, 0.00013195689825806767, -0.02326534129679203, 0.01766085810959339, -0.004422436933964491, 0.04240917041897774, 0.04710846394300461, 0.0018729754956439137, 0.017757155001163483, 0.023862380534410477, 0.014232687652111053, 0.01630307175219059, -0.120794877409935, -0.008570428006350994, 0.027252033352851868, -0.005219294223934412, 0.07703755050897598, 0.033222444355487823, -0.03975137695670128, 0.008714873343706131, -0.03152761608362198, -0.0072944932617247105, 0.022572003304958344, -0.001503436011262238, 0.04884180799126625, 0.0020908473525196314, 0.033203184604644775, 0.04514400660991669, -0.057007789611816406, -0.013009716756641865, 0.03614987060427666, 0.002210014732554555, -0.013019345700740814, -0.06906416267156601, 0.02657795511186123, -0.02819574438035488, -0.050344038754701614, -0.05908780172467232, -0.016851963475346565, 0.05173071473836899, 0.028234262019395828, -0.03730543330311775, 0.028561672195792198, -0.029120193794369698, -0.001273527042940259, -0.02459423802793026, 0.029447603970766068, -0.03718987852334976, -0.026520177721977234, -0.012229710817337036, -0.047801800072193146, -0.019191980361938477, -0.0378446951508522, 0.005845224019140005, -0.04552919417619705, -0.03822988644242287, -0.007058565504848957, 0.016360849142074585, -0.03351133316755295, 0.029505381360650063, 0.06336338818073273, 0.020780880004167557, 0.028234262019395828, -0.05762408673763275, -0.012537861242890358, 0.022591261193156242, -0.0134526826441288, -0.033222444355487823, 0.012143043801188469, 0.01908605359494686, -0.0439114049077034, 0.014232687652111053, -0.06436487287282944, 0.04745513200759888, 0.020665323361754417, -0.035302456468343735, 0.020164579153060913, 0.02336163818836212, -0.0023652934469282627, 0.03403133898973465, 0.03609209135174751, 0.044181033968925476, 0.03372318670153618, -0.0006879212451167405, 0.0057633719407022, -0.02338089607656002, 0.07480346411466599, -0.019894948229193687, 0.0670226663351059, 0.06721526384353638, 0.012643788009881973, 0.0362076498568058, 0.01586010493338108, -0.017574191093444824, 0.046607717871665955, -0.01065044105052948, 0.03281799703836441, 0.04545215517282486, 0.004696883261203766, -0.02954390086233616, 0.06332486867904663, 0.009432285092771053, -0.014743061736226082, -0.012171933427453041, 0.04591438174247742, 0.0011332945432513952, 0.016611222177743912, 0.007116343826055527, 0.007905978709459305, 0.018585309386253357, 0.056275930255651474, 0.0030790946912020445, 0.024979425594210625, -0.010621552355587482, 0.028080187737941742, 0.02436312474310398, 0.008589686825871468, 0.02216755598783493, 0.057778164744377136, -0.0000565744521736633, -0.0192208681255579, 0.014675653539597988, 0.0252683162689209, -0.032336510717868805, -0.022379407659173012, 0.015917884185910225, -0.009528581984341145, -0.07557383924722672, 0.03301059082150459, -0.039520263671875, -0.04730105772614479, 0.06856342405080795, -0.040444713085889816, 0.011343779042363167, 0.009408211335539818, 0.058355946093797684, -0.01823863945901394, -0.014068982563912868, -0.027810556814074516, 0.030140941962599754, -0.0066300444304943085, -0.011334150098264217, -0.08612798154354095, -0.004653549753129482, 0.021782368421554565, -0.03031427599489689, 0.0356876440346241, -0.023092005401849747, -0.016197144985198975, -0.005084478296339512, -0.0019355685217306018, 0.027406109496951103, -0.052424054592847824, 0.020723100751638412, -0.011911931447684765, 0.06640636920928955, 0.0036568762734532356, -0.03358837217092514, -0.0036544688045978546, 0.022764597088098526, -0.053964804857969284, -0.015060841105878353, 0.01894160732626915, -0.0356876440346241, -0.00715967733412981, 0.00009419044363312423, -0.0023833492305129766, 0.0334920771420002, -0.00793005246669054, -0.04402695968747139, -0.0003436596889514476, -0.02809944748878479, -0.022013479843735695, 0.0038229883648455143, -0.0039192852564156055, 0.022687558084726334, 0.07218418270349503, -0.04899588227272034, -0.03559134900569916, 0.018421605229377747, -0.002361682476475835, -0.016774926334619522, 0.01581195741891861, -0.056275930255651474, -0.01794011890888214, 0.00033463185536675155, 0.014463800005614758, -0.0063507831655442715, -0.04487437382340431, -0.017593450844287872, -0.0011381094809621572, -0.07191455364227295, -0.007867460139095783, -0.006326708942651749, 0.0002378835342824459, -0.0023652934469282627, -0.013154162093997002, -0.031335022300481796, -0.007737459149211645, -0.005768186412751675, 0.017208263278007507, -0.014858617447316647, -0.012056376785039902, -0.03740173205733299, -0.04125360772013664, -0.025114241987466812, 0.007087454665452242, 0.009417840279638767, -0.05434999242424965, -0.05885668843984604, -0.007005602121353149, 0.07888644933700562, 0.043295104056596756, 0.00321150291711092, -0.03239428997039795, -0.015513436868786812, -0.040560271590948105, -0.0033896523527801037, 0.04591438174247742, 0.023650528863072395, 0.022649040445685387, 0.04348769783973694, 0.017294930294156075, -0.0241705309599638, -0.003269281005486846, -0.012691936455667019, 0.04437362775206566, -0.013683794997632504, -0.03641950339078903, -0.000019231176338507794, 0.042101021856069565, -0.042447689920663834, -0.0181038249284029, 0.014694913290441036, -0.0582018680870533, -0.05192330852150917, -0.010390440002083778, 0.012749714776873589, -0.03986693173646927, -0.031450580805540085, -0.036400243639945984, -0.009230061434209347, -0.009408211335539818, 0.022764597088098526, 0.054080359637737274, 0.05315591022372246, -0.010303772054612637, -0.003182613756507635, 0.07102862000465393, 0.05107589811086655, -0.003998730331659317, -0.013558609411120415, 0.019066793844103813, -0.018508272245526314, -0.020703841000795364, 0.0037989141419529915, 0.0334920771420002, -0.01290378998965025, -0.017054187133908272, -0.016851963475346565, -0.02973649464547634, 0.02592313662171364, 0.03647727891802788, -0.02844611555337906, -0.003909655846655369, -0.008825614117085934, -0.05119145289063454, 0.016919372603297234, 0.0052963318303227425, 0.013269717805087566, -0.06082114577293396, 0.059781137853860855, 0.025537949055433273, -0.03141206130385399, -0.015234176069498062, 0.03314540535211563, -0.04579882323741913, -0.03006390482187271, -0.06775452941656113, 0.027309812605381012, 0.0017465857090428472, 0.0184023454785347, -0.019586797803640366, 0.028946859762072563, 0.05026700347661972, 0.015888994559645653, 0.033337999135255814, 0.046261049807071686, -0.015503806993365288, 0.052847761660814285, 0.07703755050897598, -0.057354457676410675, 0.02097347378730774, -0.07715310901403427, 0.03224021568894386, 0.05904928222298622, 0.0000926105713006109, -0.006538562010973692, -0.011844523251056671, -0.016948260366916656, 0.005633370950818062, -0.02295719087123871, 0.018421605229377747, 0.04741661250591278, -0.03017946146428585, 0.01092007290571928, -0.01186378300189972, 0.02120458520948887, 0.0074148643761873245, 0.015734920278191566, 0.030025385320186615, 0.03466689959168434, 0.021705329418182373, -0.05388776585459709, 0.029274269938468933, -0.02393941953778267, 0.04194694757461548, 0.05315591022372246, -0.004102249629795551, 0.02064606361091137, -0.02644313871860504, -0.047378093004226685, 0.010188216343522072, -0.040791384875774384, 0.01486824732273817, -0.029043156653642654, 0.002693906892091036, 0.04410399869084358, -0.02118532732129097, 0.03366541117429733, 0.06324782967567444, 0.035514310002326965 ]
17,243
imodels.rule_list.greedy_rule_list
predict
null
def predict(self, X): check_is_fitted(self) X = check_array(X) return np.argmax(self.predict_proba(X), axis=1)
(self, X)
[ 0.03962084650993347, 0.01054454781115055, -0.0268161091953516, -0.003941824194043875, 0.03450615704059601, -0.040053073316812515, -0.01470473688095808, -0.05435260012745857, 0.09703505784273148, 0.019180091097950935, 0.010940756648778915, -0.04347487539052963, -0.004079146310687065, -0.03614501655101776, -0.0006511551328003407, 0.01773032918572426, 0.04639241099357605, -0.021233171224594116, -0.04437534883618355, 0.05201136693358421, 0.03409193828701973, 0.04376302659511566, -0.05889098718762398, -0.005785543937236071, -0.011327960528433323, -0.018477723002433777, 0.026581985875964165, -0.027932697907090187, 0.04279051348567009, -0.0022883289493620396, -0.04311468452215195, 0.00318542611785233, -0.02116113342344761, -0.034704260528087616, 0.005254264455288649, 0.005740520544350147, 0.01811753213405609, 0.0028094782028347254, 0.06681515276432037, -0.0973232090473175, -0.07614406198263168, -0.06940852105617523, -0.04516776651144028, 0.03443411737680435, -0.008860662579536438, -0.03257914260029793, -0.007163268979638815, 0.07293837517499924, -0.01184123009443283, 0.0012539097806438804, -0.016307581216096878, -0.0011604855535551906, 0.035748809576034546, -0.020314689725637436, -0.00728933559730649, 0.06094406545162201, 0.023322271183133125, 0.018216585740447044, -0.03387582302093506, -0.04228625074028969, 0.05129098892211914, 0.021701417863368988, 0.02251184545457363, 0.004668956622481346, 0.04563601315021515, 0.001182997482828796, 0.016964925453066826, 0.03493838384747505, 0.006987676490098238, 0.028761133551597595, -0.015452130697667599, -0.04124170169234276, -0.034704260528087616, 0.0203326977789402, 0.035280562937259674, 0.03652321547269821, 0.026870138943195343, -0.027752602472901344, 0.01682084985077381, 0.019612319767475128, -0.014875827357172966, 0.0032529616728425026, -0.007325354497879744, -0.019504262134432793, -0.04433932900428772, -0.08896680921316147, 0.013516111299395561, -0.020134594291448593, -0.020981039851903915, 0.0404132641851902, -0.00903625413775444, 0.08104263991117477, 0.034866344183683395, 0.06991278380155563, 0.012084358371794224, 0.007149762008339167, 0.01206634845584631, 0.055613260716199875, 0.02216966450214386, -0.008734595961868763, -0.01313791237771511, 0.11151467263698578, -0.020062556490302086, 0.05370425805449486, -0.0033159947488456964, 0.0536322183907032, 0.013327011838555336, 0.04714880883693695, -0.025879617780447006, -0.026996204629540443, -0.020224642008543015, 0.05730615183711052, -0.010238386690616608, -0.00735236844047904, -0.04203411564230919, -0.011264926753938198, -0.046788617968559265, 0.023502366617321968, -0.06602273881435394, 0.04995828494429588, 0.00989620666950941, 0.047797150909900665, -0.037423692643642426, -0.056909944862127304, -0.05348814278841019, 0.00880663376301527, 0.04902179166674614, 0.002937795827165246, 0.014632699079811573, -0.04178198426961899, -0.011147866025567055, -0.017514215782284737, -0.02678009122610092, 0.026365872472524643, -0.010778671130537987, -0.03492037206888199, 0.043186724185943604, -0.02188151329755783, 0.015632225200533867, -0.0389004684984684, 0.06541042029857635, 0.012228433974087238, 0.06973268836736679, -0.005425354465842247, 0.05600947141647339, -0.037999995052814484, 0.08767013251781464, 0.011760187335312366, 0.06137629225850105, -0.021593362092971802, -0.0030323455575853586, -0.0394047349691391, 0.02334028109908104, -0.06324928253889084, 0.010634595528244972, 0.03702748194336891, -0.005447866395115852, -0.06007961183786392, 0.014848812483251095, -0.05233553797006607, -0.04714880883693695, -0.003475828794762492, -0.03535260260105133, -0.02551942691206932, 0.019612319767475128, 0.020909002050757408, -0.023664452135562897, 0.07801704853773117, 0.010580566711723804, -0.008829145692288876, 0.0498502291738987, -0.02631184458732605, -0.0022568125277757645, 0.009189334698021412, -0.012903789058327675, 0.017262082546949387, 0.009635069407522678, -0.0053983405232429504, 0.020314689725637436, 0.0648341104388237, 0.041926059871912, -0.03142653405666351, -0.002207286423072219, -0.0793137326836586, -0.01702795922756195, -0.02492511458694935, -0.018252603709697723, 0.04840947315096855, -0.060799989849328995, 0.021557342261075974, -0.04376302659511566, -0.039224639534950256, 0.02400663122534752, -0.013696206733584404, -0.031048336997628212, 0.0401611328125, -0.0016152248717844486, 0.05474880710244179, 0.00978814996778965, -0.049670133739709854, 0.015884358435869217, -0.035496678203344345, 0.0007057463517412543, 0.01928814873099327, -0.08341988921165466, -0.012867770157754421, -0.018270613625645638, -0.004576657898724079, 0.03221895173192024, -0.07419904321432114, -0.0029873219318687916, -0.015875352546572685, -0.01443459466099739, -0.062348805367946625, 0.049670133739709854, 0.04333079978823662, 0.04621231555938721, -0.05734217166900635, 0.014119429513812065, -0.00735236844047904, -0.004374051466584206, -0.037207577377557755, -0.011264926753938198, 0.03193080052733421, 0.041818004101514816, -0.05968340486288071, 0.017937438562512398, 0.020350707694888115, 0.006956160068511963, -0.034992411732673645, 0.0030548572540283203, -0.00977014098316431, 0.006767060607671738, -0.0389004684984684, 0.03003980591893196, 0.03301136940717697, -0.014092414639890194, -0.006523932795971632, -0.07279430329799652, 0.019216110929846764, 0.02551942691206932, 0.028833171352744102, -0.0046329377219080925, 0.012273457832634449, -0.01928814873099327, 0.04037724435329437, 0.018603788688778877, 0.01491184625774622, 0.015154973603785038, -0.025087200105190277, 0.004439335782080889, 0.008554501459002495, -0.008892178535461426, -0.0045744068920612335, 0.018009476363658905, -0.04999430477619171, 0.06595069915056229, 0.03538861870765686, 0.03313743695616722, 0.06541042029857635, -0.03337156027555466, -0.017604263499379158, -0.008982226252555847, 0.027086252346634865, -0.01836966536939144, 0.031894780695438385, -0.01329999789595604, 0.012678670696914196, 0.02179146558046341, 0.025879617780447006, 0.13982556760311127, 0.013579145073890686, -0.0345601849257946, -0.07192984968423843, 0.03544265031814575, 0.03551468625664711, 0.020566821098327637, -0.0014677722938358784, 0.031048336997628212, 0.023286253213882446, 0.01238151453435421, -0.07491941750049591, 0.013903315179049969, -0.015569192357361317, -0.023700470104813576, 0.009229856543242931, 0.002807226963341236, -0.044447384774684906, 0.031264450401067734, 0.01856776885688305, 0.027176300063729286, 0.05658577382564545, 0.006812084466218948, 0.009162320755422115, 0.020963029935956, -0.02526729553937912, 0.0350644513964653, 0.0034375586546957493, 0.05838672071695328, 0.017352130264043808, -0.0066094775684177876, 0.020854972302913666, -0.0330473892390728, -0.07708055526018143, -0.029229380190372467, 0.0029783169738948345, 0.04995828494429588, -0.021359238773584366, -0.04516776651144028, 0.0038832933641970158, 0.004912084434181452, 0.05528908967971802, 0.026509948074817657, 0.002618127502501011, -0.09242463111877441, -0.015281040221452713, 0.08752605319023132, 0.012561609037220478, 0.047797150909900665, 0.00004790801904164255, -0.003730212803930044, 0.012498576194047928, 0.015281040221452713, -0.04174596443772316, 0.03828814625740051, -0.0075819892808794975, 0.010094311088323593, -0.020044546574354172, -0.027212318032979965, -0.036325111985206604, 0.03987297788262367, -0.04322274401783943, -0.009108292870223522, 0.056657809764146805, -0.03807203099131584, 0.046536486595869064, -0.01660473644733429, 0.019972508773207664, 0.022151654586195946, 0.010976775549352169, -0.07945780456066132, -0.055072978138923645, -0.02289004437625408, 0.03358767181634903, 0.0006871740915812552, -0.020764926448464394, -0.012597628869116306, 0.038180090487003326, -0.008577012456953526, 0.012192415073513985, -0.04102558642625809, -0.009072273969650269, 0.04837345331907272, 0.019144073128700256, -0.019594309851527214, -0.057378191500902176, 0.01954028196632862, 0.02497914247214794, 0.020909002050757408, -0.002541587222367525, -0.017964452505111694, -0.022223692387342453, -0.04714880883693695, -0.01916208304464817, -0.027302365750074387, 0.006190757267177105, -0.06832794845104218, 0.04433932900428772, 0.033659711480140686, 0.025717532262206078, 0.009824168868362904, 0.01533506903797388, -0.07592795044183731, 0.05809856951236725, 0.01361516397446394, 0.04023316875100136, 0.00842843484133482, -0.01491184625774622, 0.019882461056113243, -0.01465971302241087, -0.03083222359418869, -0.026509948074817657, -0.012039334513247013, -0.010778671130537987, -0.0075819892808794975, 0.04124170169234276, 0.014398575760424137, -0.08291562646627426, 0.05028245598077774, -0.034452129155397415, -0.010247391648590565, -0.05157914012670517, -0.060511838644742966, -0.05593743175268173, -0.047076769173145294, -0.014866822399199009, 0.025159237906336784, 0.044411368668079376, 0.0009567533852532506, -0.012525590136647224, -0.08406823128461838, 0.03131847828626633, 0.005479383282363415, -0.011255922727286816, -0.0202066320925951, -0.03452416509389877, 0.013912320137023926, 0.01655971258878708, -0.029463503509759903, 0.034704260528087616, -0.07156965881586075, 0.08687771111726761, 0.04556397348642349, -0.04801326245069504, 0.0011182759189978242, 0.05863885208964348, 0.00686161033809185, 0.018333647400140762, 0.00767653901129961, -0.03958482667803764, 0.0031268952880054712, 0.006172747816890478, -0.01979241333901882, -0.030886251479387283, -0.017181040719151497, 0.03450615704059601, -0.011300946585834026, 0.021323218941688538, 0.03297534957528114, 0.0016940162749961019, -0.043654970824718475, -0.055577244609594345, -0.03429004177451134, -0.045239802449941635, -0.07131752371788025, -0.011102842167019844, -0.03167866915464401, -0.024204736575484276, -0.019900470972061157, -0.004826539661735296, 0.004270496778190136, 0.029265398159623146, 0.05399240925908089, 0.06728339940309525, 0.004529383033514023, -0.0077665867283940315, -0.01329999789595604, -0.05788245424628258, -0.015272035263478756, -0.036919426172971725, 0.021557342261075974, -0.004668956622481346, 0.06904833018779755, 0.0009252368472516537, 0.019108053296804428, -0.03236302733421326, -0.09689097851514816, -0.08125875890254974, 0.008986728265881538, 0.018711846321821213, -0.016199523583054543, 0.028545020148158073, 0.036793358623981476, -0.041854023933410645, -0.018711846321821213, -0.04012511298060417, -0.027248337864875793, 0.01106682326644659, -0.017892414703965187, -0.0075234584510326385, 0.043943122029304504, -0.01999051868915558, 0.005736018065363169, -0.007748576812446117, -0.02694217674434185, 0.024168716743588448, 0.0676075741648674, 0.00600165780633688, 0.030273929238319397, -0.0022286726161837578, 0.019216110929846764, -0.025123218074440956, 0.0034218004439026117, 0.0023367295507341623, 0.0009606929961591959, 0.00003575513983378187, -0.059971556067466736, 0.004349288530647755, -0.027878668159246445, 0.003689691424369812, 0.012723694555461407, 0.0516151562333107, 0.06007961183786392, 0.07614406198263168, -0.04981420934200287, -0.016415636986494064, 0.08363600820302963, -0.005434359423816204, -0.017081987112760544, -0.010301420465111732, -0.0033565161284059286, 0.005308292806148529, -0.0071182455867528915, -0.05305591598153114, -0.04693269357085228, -0.0007445792434737086, -0.041097622364759445, 0.02514122799038887, -0.019972508773207664, 0.020134594291448593, -0.03434406965970993, -0.019432224333286285, 0.00842843484133482, -0.023394308984279633, 0.03205686807632446, 0.04923790693283081, 0.04790520668029785, 0.025285303592681885, -0.0195762999355793, 0.019972508773207664, -0.001734537654556334, -0.0040183644741773605, 0.014002367854118347, -0.03421800583600998, 0.0016163504915311933, 0.08911088854074478, 0.04246634244918823, -0.03272321820259094, 0.009680093266069889, 0.057162076234817505, 0.024709001183509827, -0.03735165297985077, 0.04451942443847656, 0.06436586380004883, 0.001827961765229702, 0.0376398041844368, 0.00966208428144455, -0.02903127484023571, 0.0003464010078459978, 0.01497487910091877, -0.018018480390310287, -0.049093831330537796, 0.0072578187100589275, 0.04297060891985893, 0.025861607864499092, -0.015803314745426178, -0.051435064524412155, 0.06267297267913818, -0.05853079631924629, 0.018477723002433777, -0.051146913319826126, 0.02175544761121273, 0.03868435323238373, 0.008986728265881538, 0.04999430477619171, 0.03492037206888199, 0.002838743617758155, 0.0548928827047348, 0.002279324224218726, 0.026419900357723236, -0.03675733879208565, -0.06314121931791306, 0.051182929426431656, -0.010976775549352169, -0.04253838211297989, 0.0363791398704052, -0.05806254968047142, 0.057378191500902176, 0.010175353847444057, -0.02425876446068287, 0.03987297788262367, 0.0383962020277977, -0.05802652984857559, -0.019252128899097443, 0.032489094883203506, 0.02141326665878296, 0.007347865961492062, -0.03522653505206108, -0.07344264537096024, 0.04714880883693695, 0.00034611960290931165, -0.00183809211011976, -0.016712794080376625, -0.02580757811665535, -0.03322748467326164, -0.007172273937612772, -0.05572132021188736, 0.009698103182017803, -0.048877716064453125, -0.0531279556453228, -0.0747753456234932, 0.023520374670624733, -0.015677249059081078, 0.006226776167750359, 0.054568711668252945, 0.01693791151046753, -0.02886918932199478, -0.01141800731420517, 0.01031042542308569, -0.07286634296178818, 0.0353165827691555, 0.01635260507464409, -0.006496918387711048, 0.01426350511610508, 0.041854023933410645, -0.018126538023352623, -0.08262747526168823, 0.014776774682104588, 0.03879241272807121, -0.011805211193859577, 0.0025911133270710707, -0.025915635749697685, -0.04304264858365059, 0.00864004623144865, -0.0275725070387125, 0.02321421541273594, 0.0015859594568610191, 0.025735540315508842, -0.011409003287553787, 0.05201136693358421, 0.0747753456234932, -0.021197153255343437, 0.04221421107649803, 0.037891935557127, -0.002433530520647764, 0.008486965671181679, 0.02425876446068287, -0.028545020148158073, 0.012543600052595139, -0.005848577246069908, 0.04019714891910553, 0.024330802261829376, 0.012102368287742138, -0.007136255037039518, 0.04873364046216011, 0.014866822399199009, 0.004394311923533678, 0.03998103737831116, 0.007658529561012983, -0.06335733830928802, -0.08349192887544632, 0.02270994894206524, 0.019882461056113243, 0.005092179402709007, 0.031174402683973312, -0.029463503509759903, -0.03003980591893196, 0.04826539382338524, 0.05100283771753311, -0.04974217340350151, 0.022475825622677803, -0.09458576887845993, -0.031048336997628212, 0.022854024544358253, 0.030760185793042183, -0.050426531583070755, -0.0014283765340223908, 0.0688682347536087, -0.03501041978597641, -0.030904261395335197, -0.05503695830702782, -0.03205686807632446, -0.009860187768936157, -0.03427203372120857, 0.038180090487003326, 0.028959237039089203, -0.03342558816075325, -0.0716416984796524, -0.05240757390856743, -0.008662558160722256, -0.025159237906336784, 0.01585734449326992, 0.006199762225151062, -0.024781038984656334, 0.08478861302137375, -0.04772511124610901, -0.008770614862442017, 0.0019011253025382757, 0.02614975906908512, -0.009626064449548721, 0.03810805082321167, 0.011210898868739605, 0.02074691653251648, -0.0014295021537691355, 0.04617629572749138, -0.0259336456656456, 0.00573151558637619, 0.01706397905945778, -0.02225971221923828, 0.0260597113519907, 0.02242179773747921, -0.04397914186120033, 0.02685212902724743, -0.03843222185969353, -0.008045732975006104, 0.00198216806165874, -0.016091465950012207, 0.040053073316812515, -0.014335542917251587, -0.014344547875225544, 0.006848103366792202, -0.008500472642481327, -0.0426824577152729, -0.005479383282363415, -0.05139904469251633, 0.07765685766935349, -0.0686160996556282, -0.024799048900604248, -0.0053713261149823666, -0.04325876012444496, -0.024240754544734955, 0.006289809476584196, 0.007361373398452997, -0.05024643614888191, 0.02242179773747921, 0.0688682347536087, -0.0411696620285511, 0.01160710770636797, -0.03162464126944542, 0.04570804908871651, -0.022313740104436874, 0.003475828794762492, 0.02865307591855526, 0.01430852897465229, -0.043690986931324005, -0.005758529994636774, 0.06126823648810387, -0.06098008528351784, -0.0023524877615273, 0.03275923803448677, 0.0037437197752296925, -0.01106682326644659, -0.02175544761121273, -0.008504974655807018, -0.0042412313632667065, -0.005902605596929789, -0.020260659977793694, -0.03438008949160576, 0.04412321746349335, -0.01747819595038891, 0.006298814434558153, -0.010292415507137775, 0.027086252346634865, -0.01401137188076973, 0.02375449799001217, 0.0166497603058815, -0.06753553450107574, -0.030634118244051933, 0.01714502088725567, -0.05518103390932083, -0.0020159357227385044, 0.03003980591893196, 0.031606629490852356, -0.024456867948174477, 0.03589288517832756, 0.022529853507876396, -0.002123992657288909, -0.0025843598414212465, -0.003223696257919073, 0.004322274122387171, -0.02321421541273594, -0.03236302733421326, -0.031048336997628212, -0.020170612260699272, -0.006915638688951731, -0.03099430724978447, 0.03792795538902283, 0.018999997526407242 ]
17,244
imodels.rule_list.greedy_rule_list
predict_proba
null
def predict_proba(self, X): check_is_fitted(self) X = check_array(X) n = X.shape[0] probs = np.zeros(n) for i in range(n): x = X[i] for j, rule in enumerate(self.rules_): if j == len(self.rules_) - 1: probs[i] = rule['val'] continue regular_condition = x[rule["index_col"]] >= rule["cutoff"] flipped_condition = x[rule["index_col"]] < rule["cutoff"] condition = flipped_condition if rule["flip"] else regular_condition if condition: probs[i] = rule['val_right'] break return np.vstack((1 - probs, probs)).transpose() # probs (n, 2)
(self, X)
[ 0.04289195314049721, 0.03598318248987198, -0.0676843598484993, -0.04569863900542259, 0.027401192113757133, -0.023263126611709595, -0.01939493417739868, -0.09154120832681656, 0.08146592229604721, -0.016147451475262642, 0.01378155779093504, -0.0047227926552295685, 0.007151657249778509, 0.010030311532318592, -0.02875056117773056, 0.004790260922163725, 0.028660602867603302, -0.029632149264216423, -0.01745184324681759, 0.051707830280065536, 0.032294902950525284, 0.02862462028861046, -0.05642162635922432, 0.02257944643497467, 0.009787425398826599, -0.03150327503681183, -0.009045272134244442, -0.022759361192584038, 0.012288256548345089, 0.013907499611377716, 0.00372875714674592, 0.026681529358029366, -0.01394348219037056, -0.03240285441279411, 0.03314051032066345, -0.004538378678262234, 0.04411537945270538, 0.007124669849872589, 0.04951285570859909, -0.04202835634350777, -0.031215408816933632, -0.07506091147661209, -0.0581488199532032, 0.015265864320099354, -0.026807470247149467, -0.049153026193380356, -0.018585313111543655, 0.08218558132648468, 0.016660213470458984, 0.013169843703508377, -0.02651960402727127, 0.032420847564935684, 0.04458316043019295, -0.0062970565631985664, 0.0016372347017750144, 0.05167184770107269, -0.010893908329308033, 0.022021707147359848, 0.001585508929565549, -0.05091620236635208, 0.057033341377973557, 0.033608291298151016, 0.029884031042456627, -0.01948489248752594, 0.03265473619103432, -0.037530455738306046, -0.010453114286065102, 0.006544440984725952, 0.0285346619784832, -0.012738046236336231, -0.016489293426275253, -0.020510412752628326, -0.006427495740354061, 0.0011649554362520576, -0.012657083570957184, 0.00984140019863844, 0.026879435405135155, -0.05768103897571564, 0.03418402001261711, 0.00909474864602089, 0.004342719912528992, 0.009063263423740864, 0.003285714192315936, -0.04271203652024269, -0.015391805209219456, -0.0494408905506134, 0.02972210757434368, -0.005892246030271053, 0.03979739919304848, 0.006409503985196352, -0.0028269286267459393, 0.04609445482492447, 0.05548606440424919, 0.037098661065101624, 0.014879045076668262, 0.017325902357697487, 0.015364818274974823, 0.01948489248752594, 0.0029416249599307775, -0.02002464048564434, -0.008528013713657856, 0.07049105316400528, -0.04091287776827812, 0.03459782898426056, 0.0007573335315100849, 0.06178312003612518, -0.0000261088898696471, 0.041668523102998734, -0.02983005717396736, -0.03706267476081848, -0.009409601800143719, 0.034993644803762436, -0.019502883777022362, -0.03279867023229599, -0.04357563331723213, 0.008680942468345165, -0.07578057795763016, 0.02801290526986122, -0.007997262291610241, 0.04634633660316467, 0.028174830600619316, 0.006436491385102272, -0.03580326586961746, 0.025781948119401932, -0.04224425554275513, 0.009301652200520039, 0.06102747470140457, 0.00482174614444375, 0.03137733414769173, -0.02777901478111744, -0.00876640249043703, -0.0013257552636787295, -0.029470225796103477, -0.0070122224278748035, -0.02522420883178711, -0.0766441747546196, 0.027725040912628174, -0.04289195314049721, 0.06379818171262741, -0.07491698116064072, 0.07164251059293747, 0.0057708024978637695, 0.018459372222423553, -0.03141331672668457, 0.019646815955638885, -0.037206608802080154, 0.0771479383111, 0.042855966836214066, 0.05037645250558853, -0.00633753789588809, 0.020942211151123047, -0.0191610436886549, -0.013034907169640064, -0.05613376200199127, 0.053830839693546295, 0.041164759546518326, -0.00612163869664073, -0.057896938174963, 0.021356018260121346, -0.058184802532196045, -0.028372738510370255, -0.009022782556712627, -0.07635630667209625, -0.013079886324703693, 0.004430429078638554, 0.02810286357998848, 0.01251315139234066, 0.039437565952539444, 0.024828394874930382, -0.0054469541646540165, 0.0494408905506134, -0.057860955595970154, -0.019628824666142464, 0.019628824666142464, -0.011397672817111015, 0.04400743171572685, 0.005806786008179188, 0.00468680914491415, -0.007740881759673357, 0.05512623116374016, 0.034669794142246246, -0.01209034863859415, 0.012756037525832653, -0.06405006349086761, -0.0037962256465107203, 0.006728854961693287, 0.019628824666142464, 0.038394052535295486, -0.042855966836214066, 0.04415136203169823, -0.08657553046941757, -0.06347432732582092, 0.02097819373011589, 0.029560182243585587, -0.01673217862844467, 0.0035555879585444927, 0.011694533750414848, 0.06833206117153168, -0.012738046236336231, -0.03483171761035919, 0.010758970864117146, -0.02340705879032612, -0.0315212644636631, 0.02684345282614231, -0.06588520109653473, -0.022489488124847412, -0.040193211287260056, -0.004380952101200819, 0.022075681015849113, -0.06919565796852112, -0.001066001714207232, 0.010210227221250534, 0.021320033818483353, -0.05537811666727066, 0.03054971992969513, 0.04483504220843315, 0.07272201031446457, -0.00844255369156599, -0.01197340339422226, -0.018090544268488884, -0.010435122065246105, -0.05347100645303726, -0.019520875066518784, 0.044763077050447464, 0.036684852093458176, -0.0182074885815382, 0.004857729189097881, 0.01980874128639698, 0.028606628999114037, 0.0041178250685334206, -0.021985722705721855, -0.0012594113359227777, -0.00033340667141601443, -0.054982300847768784, 0.06656888127326965, 0.04983670637011528, -0.024324629455804825, 0.013934486545622349, -0.08117805421352386, 0.04271203652024269, 0.03353632614016533, -0.006598415784537792, -0.002440109383314848, 0.018027573823928833, 0.0000813838341855444, 0.057105306535959244, 0.06674879789352417, 0.0035690816584974527, 0.014986994676291943, 0.006953749805688858, -0.007034712005406618, 0.014519213698804379, -0.013331768102943897, 0.001294270041398704, -0.015076952986419201, -0.02256145514547825, 0.013565659523010254, 0.028768552467226982, 0.03781832382082939, 0.030729636549949646, -0.013223818503320217, -0.017118997871875763, -0.013034907169640064, -0.0404810793697834, 0.025781948119401932, 0.05832873657345772, -0.002111762994900346, 0.01442925538867712, 0.043395716696977615, 0.05037645250558853, 0.030729636549949646, -0.013223818503320217, -0.011586584150791168, -0.026753494516015053, -0.004628336522728205, 0.06606511771678925, -0.005712329875677824, 0.017910627648234367, 0.05951618030667305, -0.0077993543818593025, 0.024828394874930382, -0.03580326586961746, 0.02022254839539528, -0.011334702372550964, 0.012207293882966042, -0.02884051948785782, 0.0056538572534918785, -0.0008911459590308368, 0.04962080717086792, 0.023820865899324417, 0.0019936931785196066, 0.03067566081881523, 0.021158110350370407, 0.008181675337255001, 0.07426928728818893, 0.002615527482703328, 0.06027182936668396, -0.020924219861626625, 0.03663087636232376, -0.007983768358826637, 0.017244938760995865, 0.004160555079579353, -0.0016597241628915071, -0.025062285363674164, -0.06016387790441513, 0.028066881000995636, 0.03843003511428833, -0.014555196277797222, -0.0033599294256418943, -0.028822528198361397, 0.021014178171753883, 0.02394680678844452, 0.046994034200906754, 0.029092401266098022, -0.058292753994464874, -0.04292793571949005, 0.044763077050447464, -0.010417130775749683, 0.06109943985939026, -0.0017609269125387073, -0.015877578407526016, -0.0012166813248768449, 0.036792803555727005, -0.023335091769695282, 0.03483171761035919, 0.019610833376646042, 0.006692871451377869, -0.034130048006772995, -0.055090248584747314, -0.03904175013303757, 0.02437860518693924, -0.0011036716168746352, 0.010192235931754112, 0.05699735879898071, -0.044475212693214417, 0.0483613945543766, 0.010992861352860928, 0.012414197437465191, 0.0034611322917044163, -0.018675271421670914, -0.039977312088012695, -0.04990867152810097, -0.017334897071123123, 0.02650161273777485, 0.008370587602257729, -0.040948860347270966, -0.0453747920691967, 0.03448987752199173, -0.011775495484471321, 0.03218695521354675, 0.019125061109662056, -0.025134252384305, 0.03835806995630264, 0.07520484924316406, 0.0020004399120807648, -0.08384080976247787, 0.013610637746751308, -0.013790554367005825, 0.017703725025057793, -0.006036178674548864, -0.003517356002703309, -0.00897330604493618, -0.027239268645644188, 0.03853798657655716, -0.007408037316054106, 0.005033147521317005, -0.05537811666727066, 0.05588188022375107, -0.02067233808338642, 0.02171584963798523, -0.0038502004463225603, 0.009724454954266548, -0.03994132950901985, 0.019988656044006348, 0.006710863206535578, 0.005460447631776333, -0.0040098754689097404, -0.041884422302246094, 0.046922069042921066, -0.03377021476626396, -0.03213297948241234, -0.03299657627940178, -0.05620572715997696, 0.025620024651288986, -0.014249339699745178, 0.019412925466895103, 0.011460643261671066, -0.040517061948776245, 0.09528346359729767, -0.01632736809551716, 0.014942015521228313, -0.024090738967061043, -0.03054971992969513, -0.06998728960752487, -0.015598708763718605, 0.0062610735185444355, 0.022525470703840256, 0.01720895618200302, 0.012054365128278732, 0.012324239127337933, -0.057860955595970154, -0.014663145877420902, 0.0018283954123035073, -0.014816074632108212, -0.04174048826098442, -0.059480197727680206, 0.019952673465013504, 0.03864593431353569, -0.02171584963798523, 0.06595717370510101, -0.08117805421352386, 0.07470108568668365, 0.055090248584747314, -0.07398141920566559, -0.02738320082426071, 0.02234555594623089, 0.006850298028439283, 0.0036298034247010946, 0.014033440500497818, -0.03896978497505188, 0.03150327503681183, -0.0035083601251244545, -0.007506991270929575, -0.03659489378333092, -0.04098484292626381, 0.04267605394124985, 0.024432579055428505, 0.03576728329062462, -0.011613572016358376, 0.03537146747112274, -0.03312251716852188, -0.046670183539390564, -0.017118997871875763, -0.06081157550215721, -0.06268270313739777, -0.028696587309241295, -0.01593155413866043, 0.013538671657443047, -0.007471007760614157, 0.005752811208367348, 0.009769433178007603, 0.06077559292316437, 0.0630425289273262, 0.08326508104801178, 0.01720895618200302, 0.010794954374432564, -0.012836999259889126, -0.0766441747546196, -0.07491698116064072, -0.016030507162213326, -0.018126526847481728, 0.015967536717653275, 0.09319643676280975, 0.031125450506806374, 0.00837958324700594, 0.0025570548605173826, -0.0820416510105133, -0.07045506685972214, -0.025062285363674164, 0.025134252384305, 0.044475212693214417, 0.012324239127337933, 0.015391805209219456, -0.004817248322069645, -0.04900909215211868, -0.039005767554044724, -0.029470225796103477, 0.03727857396006584, -0.04663420096039772, 0.002440109383314848, -0.024666469544172287, -0.031215408816933632, -0.0057438150979578495, -0.016795149073004723, -0.035605356097221375, 0.05174381285905838, 0.040948860347270966, 0.01006629504263401, 0.05642162635922432, 0.024108730256557465, -0.010237215086817741, -0.021374009549617767, -0.018657278269529343, 0.025584042072296143, 0.005698836408555508, -0.04026518017053604, -0.029092401266098022, -0.006773833651095629, -0.051707830280065536, -0.02320915088057518, 0.023047227412462234, 0.006387014407664537, 0.047137968242168427, 0.10895707458257675, -0.03767438977956772, -0.003155275247991085, 0.07599648088216782, 0.007030213717371225, 0.024738436564803123, -0.014708125032484531, -0.012324239127337933, -0.009207196533679962, -0.03771037235856056, -0.0483613945543766, -0.03932961821556091, -0.029254326596856117, -0.08117805421352386, 0.01863928698003292, -0.04415136203169823, 0.01236022263765335, -0.010291189886629581, -0.05055636912584305, -0.016876110807061195, -0.0003114794089924544, 0.013259802013635635, 0.051383983343839645, 0.0641220286488533, 0.02002464048564434, -0.04458316043019295, 0.001026082900352776, 0.02673550322651863, -0.023766890168190002, 0.0017620513681322336, -0.0404810793697834, 0.004394446033984423, 0.09190104156732559, 0.039653465151786804, -0.0581488199532032, 0.01262110099196434, -0.019736774265766144, 0.024306638166308403, -0.05886848270893097, 0.052031680941581726, 0.03907773271203041, -0.0012819007970392704, 0.03929363191127777, 0.032546788454055786, -0.020186563953757286, 0.031017500907182693, 0.021266059949994087, 0.015319839119911194, 0.011622567661106586, 0.028066881000995636, 0.022633420303463936, 0.03531749173998833, 0.037638407200574875, -0.049800723791122437, 0.026033831760287285, -0.059480197727680206, -0.015796616673469543, -0.03589322417974472, 0.026807470247149467, 0.0421363040804863, -0.0031935072038322687, 0.057033341377973557, 0.021104134619235992, 0.04375554621219635, 0.021032169461250305, 0.025997847318649292, 0.03245683014392853, -0.033608291298151016, -0.11694533377885818, 0.030477754771709442, -0.030639678239822388, -0.06225090101361275, 0.03004595637321472, -0.03117942623794079, 0.06977138668298721, -0.013565659523010254, -0.007196635939180851, 0.056925393640995026, 0.03143130987882614, -0.05311117321252823, -0.011586584150791168, 0.02162589132785797, -0.0530032254755497, 0.0383220873773098, -0.04202835634350777, -0.07477305084466934, 0.013790554367005825, -0.005892246030271053, -0.01176649983972311, -0.03022587113082409, -0.044547177851200104, -0.022327562794089317, 0.008730418980121613, -0.04400743171572685, 0.04400743171572685, 0.015229880809783936, -0.03857396915555, -0.05944421514868736, 0.0510961152613163, -0.04120074212551117, -0.014348293654620647, 0.023497017100453377, -0.003211498958989978, -0.03186310827732086, -0.007515986915677786, -0.02567399851977825, -0.02139200083911419, 0.009382613934576511, 0.00587875209748745, 0.019934682175517082, 0.015400801785290241, 0.0201145987957716, -0.026987385004758835, -0.04515889286994934, 0.011559597216546535, 0.03119741752743721, -0.0024423582945019007, -0.0007185391150414944, -0.007515986915677786, -0.004997164011001587, -0.003962647635489702, -0.03429197147488594, 0.003710765391588211, -0.044763077050447464, 0.028660602867603302, 0.0019757014233618975, 0.02959616668522358, 0.0241806972771883, -0.00702571589499712, 0.04479905962944031, 0.05559401586651802, -0.007547472137957811, -0.016939083114266396, 0.041596557945013046, -0.08232951909303665, 0.0036545416805893183, -0.03215097263455391, 0.03979739919304848, 0.04738985002040863, 0.037638407200574875, -0.02673550322651863, 0.01885518617928028, 0.036361005157232285, 0.0125671261921525, 0.0383220873773098, -0.004290994256734848, -0.07923496514558792, -0.07376552373170853, -0.03490368649363518, 0.03258277103304863, 0.0007191014010459185, 0.021967731416225433, -0.042963918298482895, -0.022165639325976372, 0.019322967156767845, 0.04533880949020386, -0.020996185019612312, 0.011793487705290318, -0.09607509523630142, -0.030711645260453224, 0.027095334604382515, 0.006805318873375654, 0.011073824018239975, 0.017748704180121422, 0.07095883041620255, -0.014825070276856422, -0.04577060416340828, -0.040948860347270966, -0.03691874444484711, -0.020060623064637184, -0.05570196360349655, 0.029416250064969063, 0.037098661065101624, 0.010183240287005901, -0.04724591597914696, -0.0394015833735466, 0.03889781981706619, 0.0058877477422356606, 0.02194974012672901, -0.04224425554275513, -0.005892246030271053, 0.09823407977819443, -0.054262638092041016, -0.037638407200574875, -0.004628336522728205, -0.015427788719534874, -0.012998923659324646, 0.05721325799822807, -0.023892831057310104, 0.02981206588447094, -0.031449299305677414, 0.061711154878139496, -0.024252664297819138, 0.03384217992424965, 0.004286496434360743, -0.027239268645644188, 0.017847657203674316, -0.004331475589424372, -0.0014438250800594687, 0.043179817497730255, -0.03067566081881523, -0.014411264099180698, -0.025314167141914368, 0.0006555685540661216, 0.03767438977956772, 0.019448909908533096, -0.02491835318505764, 0.00958951748907566, -0.0366668626666069, -0.02074430324137211, -0.012926957570016384, -0.04325178265571594, 0.07966676354408264, -0.032330889254808426, -0.050412435084581375, -0.018981127068400383, -0.029973989352583885, -0.04058902710676193, 0.056601542979478836, 0.002410873072221875, -0.06754042953252792, -0.005946220830082893, 0.06826009601354599, -0.03637899458408356, 0.0017283171182498336, -0.06599315255880356, 0.02203969843685627, 0.006967243272811174, 0.02990202233195305, 0.0004953309544362128, 0.016858119517564774, -0.05321912467479706, -0.016633225604891777, 0.0491890087723732, -0.06786427646875381, -0.027329225093126297, -0.022237606346607208, 0.03488569334149361, 0.013646621257066727, -0.03056771121919155, -0.03691874444484711, 0.01593155413866043, -0.019862715154886246, -0.019304975867271423, -0.07045506685972214, 0.01164955459535122, 0.03191708028316498, 0.00837958324700594, -0.02290329523384571, 0.021356018260121346, -0.024306638166308403, 0.0031125452369451523, 0.05966011434793472, -0.02736520953476429, -0.020492421463131905, 0.01917903497815132, -0.07570861279964447, -0.0013021413469687104, 0.04789361357688904, 0.032079003751277924, -0.007340569049119949, 0.01164955459535122, 0.008586486801505089, 0.04044509679079056, -0.030297838151454926, -0.05559401586651802, -0.018153514713048935, -0.04663420096039772, 0.01792861893773079, -0.03378820791840553, 0.04249613732099533, 0.008847364224493504, -0.022003715857863426, 0.04886515811085701, 0.0010103402892127633 ]
17,246
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 ---------- depth : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``depth`` parameter in ``fit``. feature_names : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``feature_names`` parameter in ``fit``. verbose : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``verbose`` 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.greedy_rule_list.GreedyRuleListClassifier, *, depth: Union[bool, NoneType, str] = '$UNCHANGED$', feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', verbose: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.rule_list.greedy_rule_list.GreedyRuleListClassifier
[ 0.0438334159553051, -0.05833040550351143, -0.019110532477498055, 0.004718180280178785, -0.002946484601125121, -0.01721755415201187, -0.011548127047717571, 0.00995954591780901, 0.056998662650585175, 0.010901279747486115, -0.021441085264086723, 0.0065303039737045765, 0.05125313624739647, -0.005360271316021681, -0.01991909183561802, 0.03747909516096115, 0.0299832746386528, 0.023857250809669495, 0.030154500156641006, -0.03367410972714424, 0.019177120178937912, -0.04276802018284798, -0.028784705325961113, 0.014944075606763363, 0.008461333811283112, 0.06552182883024216, 0.03799276798963547, -0.04531736299395561, 0.0899498239159584, -0.0064684730023145676, -0.025208020582795143, -0.014259178191423416, 0.014658701606094837, 0.06289638578891754, 0.02899397909641266, -0.03156234323978424, -0.010777617804706097, 0.022772829979658127, -0.06255394220352173, -0.015257986262440681, -0.037155669182538986, -0.026653913781046867, 0.04858964681625366, -0.09664659947156906, 0.05943385139107704, 0.0319238156080246, -0.005384052637964487, 0.10509366542100906, -0.01916760765016079, -0.017674151808023453, 0.013174757361412048, -0.0112437279894948, 0.015077250078320503, -0.0050748977810144424, -0.005888212937861681, 0.057379160076379776, 0.05562886968255043, 0.04406171664595604, 0.05947190150618553, 0.028042733669281006, 0.02722466178238392, 0.03468243032693863, 0.03238041698932648, -0.008366208523511887, -0.04356706887483597, -0.03871571272611618, -0.046420805156230927, -0.01387867983430624, 0.008623044937849045, 0.031695518642663956, 0.028670554980635643, -0.01800708845257759, 0.005474420730024576, 0.026691963896155357, 0.021593285724520683, -0.02636853978037834, -0.04048503190279007, -0.05254683271050453, 0.05300343036651611, -0.04166457802057266, 0.017084378749132156, -0.01721755415201187, -0.027091486379504204, -0.08104616403579712, -0.0090796435251832, -0.0320950411260128, -0.00841852743178606, -0.049236495047807693, 0.03945768624544144, 0.003022584365680814, -0.08545994758605957, 0.0515194870531559, -0.01616167090833187, -0.002982156351208687, 0.009536241181194782, -0.030649147927761078, 0.001826392370276153, -0.05840650573372841, 0.002458970993757248, -0.026596838608384132, 0.000706300197634846, 0.03582392632961273, 0.0665111243724823, 0.07575723528862, 0.037041522562503815, -0.05053018778562546, -0.01668485626578331, -0.008623044937849045, -0.011215190403163433, -0.0038073621690273285, 0.011443490162491798, -0.01088225468993187, -0.059586051851511, 0.01909150741994381, 0.0012960727326571941, 0.0010267512407153845, -0.01965274289250374, -0.04333876818418503, -0.05087263882160187, -0.014982124790549278, -0.026825137436389923, 0.011091528460383415, -0.0253792442381382, -0.06365738809108734, 0.0007372156833298504, 0.004237801302224398, 0.009631366468966007, 0.013469643890857697, 0.04486076161265373, -0.07240884751081467, -0.03156234323978424, -0.006839458830654621, -0.039039138704538345, 0.09284161031246185, 0.04402366653084755, 0.016209231689572334, 0.04744815081357956, 0.020470814779400826, -0.01199521217495203, 0.05901530385017395, -0.0030344747938215733, 0.02010934054851532, 0.036737121641635895, -0.021326936781406403, -0.0013697942486032844, -0.05072043836116791, 0.026977337896823883, -0.0001862361386884004, 0.025626568123698235, -0.03414973244071007, 0.02594999223947525, -0.01830197311937809, 0.002763369819149375, -0.012661084532737732, -0.0027062948793172836, 0.001925084157846868, 0.023039178922772408, -0.004780011251568794, 0.0112437279894948, -0.0181592870503664, -0.004770498722791672, -0.005636132787913084, -0.012137899175286293, -0.09139572083950043, 0.03521512821316719, 0.021479135379195213, -0.006168830674141645, -0.04851354658603668, -0.0382591150701046, 0.03559562563896179, -0.060879748314619064, -0.027700284495949745, -0.033769235014915466, 0.006839458830654621, 0.035386353731155396, 0.03930548578500748, 0.017150966450572014, 0.005512470845133066, 0.008594508282840252, 0.02809980884194374, 0.01380257960408926, -0.05262292921543121, -0.08553604036569595, -0.03578587621450424, 0.006354323588311672, 0.07122930139303207, 0.006316273473203182, 0.001914382679387927, -0.04368121922016144, 0.045621760189533234, 0.02941252663731575, -0.008351940661668777, 0.053650274872779846, 0.03439705818891525, -0.03125794604420662, -0.0480569489300251, -0.05905335396528244, 0.04877989739179611, 0.013726480305194855, 0.07686068117618561, 0.05836845561861992, 0.009013055823743343, 0.018853696063160896, 0.049008194357156754, 0.006126024294644594, 0.049921393394470215, 0.03645174950361252, -0.0001221013517351821, -0.05243268236517906, -0.013060607947409153, 0.013193782418966293, -0.026558788493275642, 0.018092699348926544, -0.008432796224951744, 0.003921511583030224, -0.010901279747486115, 0.01781683787703514, -0.015562385320663452, -0.012014237232506275, -0.022867955267429352, 0.09276551008224487, 0.04809499904513359, 0.033693134784698486, 0.0198049433529377, 0.025969017297029495, -0.031086720526218414, 0.05559081956744194, -0.05193803459405899, -0.036584921181201935, -0.07906757295131683, 0.004663483705371618, 0.0007966685807332397, 0.01872052252292633, 0.04387146607041359, -0.03472048044204712, -0.019900066778063774, 0.03616637364029884, 0.038544490933418274, -0.013450618833303452, -0.006701528560370207, -0.0059167505241930485, 0.04942674562335014, 0.050035540014505386, 0.03310336172580719, -0.05505812168121338, -0.01698925346136093, -0.0046135433949530125, 0.06780482083559036, 0.04284412041306496, -0.001844228245317936, 0.04276802018284798, -0.025816816836595535, -0.05182388424873352, -0.0028204445261508226, -0.03106769546866417, -0.03399753198027611, -0.042121175676584244, 0.0002607008791528642, 0.04292022064328194, -0.015324573963880539, -0.030744271352887154, 0.01216643676161766, 0.0018418501131236553, 0.04143627732992172, 0.01812123693525791, 0.011776425875723362, 0.04314852133393288, 0.013859654776751995, -0.05570496991276741, 0.004789523780345917, -0.009521973319351673, 0.04501296207308769, -0.0015196155291050673, 0.017617076635360718, -0.01822587475180626, -0.05235658213496208, -0.0001395656290696934, -0.02433287352323532, -0.04330071806907654, -0.012328148819506168, 0.050225790590047836, -0.023628951981663704, 0.04333876818418503, 0.006097487173974514, -0.014363815076649189, -0.030649147927761078, -0.004577871412038803, 0.053650274872779846, 0.012213999405503273, -0.020908387377858162, 0.011034454219043255, 0.007700336631387472, -0.005783576052635908, -0.042577773332595825, 0.0320950411260128, -0.003424485679715872, -0.07313179224729538, 0.0012366198934614658, 0.0016718149418011308, -0.011453002691268921, 0.020927412435412407, -0.001138522638939321, -0.032970186322927475, -0.017750250175595284, 0.05281317979097366, -0.021555235609412193, 0.08097006380558014, -0.00806181039661169, -0.011719351634383202, 0.005712232552468777, 0.003902486991137266, 0.045355409383773804, -0.033578984439373016, -0.04451831430196762, -0.0011730053229257464, -0.0026634889654815197, -0.013945266604423523, 0.0181592870503664, 0.04014258459210396, 0.10410436987876892, -0.014449426904320717, 0.04737205430865288, -0.03435900807380676, -0.0073911817744374275, -0.013897704891860485, -0.012185461819171906, -0.003586197504773736, -0.004107004962861538, -0.03833521530032158, 0.0008299621404148638, -0.03129599615931511, -0.003862058976665139, 0.022658681496977806, 0.024751421064138412, -0.0861448422074318, 0.03125794604420662, -0.004164079669862986, -0.02349577657878399, 0.01457308977842331, -0.012385223060846329, 0.03502487763762474, -0.017531463876366615, -0.006249686703085899, -0.012737184762954712, -0.03650882467627525, -0.011262753047049046, 0.0518999844789505, -0.002316283993422985, 0.07914367318153381, -0.0234577264636755, 0.021403035148978233, -0.038163989782333374, 0.05216633155941963, 0.049008194357156754, 0.08439455181360245, -0.006668234709650278, -0.013793068006634712, -0.045888107270002365, -0.00753386877477169, -0.07100100070238113, 0.028480306267738342, -0.04843745008111, -0.0036504066083580256, 0.0061498056165874004, 0.010910792276263237, -0.0008876314386725426, -0.025436319410800934, 0.003740775166079402, 0.025854866951704025, -0.05661816522479057, 0.00346966995857656, -0.09839688986539841, -0.05433517321944237, 0.02399042434990406, 0.019158095121383667, 0.002120089717209339, -0.03999038413167, -0.01793098822236061, -0.05079653859138489, 0.028765680268406868, 0.03215211629867554, 0.02214500866830349, -0.005084410309791565, 0.011357877403497696, 0.010387606918811798, -0.045773960649967194, 0.025740718469023705, 0.016104595735669136, 0.03848741576075554, -0.01774073950946331, 0.021935733035206795, -0.05277512967586517, -0.014240153133869171, 0.010692005045711994, -0.01890125870704651, -0.06989756226539612, 0.02621634118258953, -0.010340044274926186, 0.007191420067101717, -0.042653873562812805, 0.05452542379498482, -0.0565040148794651, 0.01308914553374052, 0.024542147293686867, 0.034511204808950424, 0.009707465767860413, 0.03829716518521309, 0.026939287781715393, 0.01559092290699482, 0.019262732937932014, -0.04885599762201309, -0.049008194357156754, 0.020052267238497734, -0.02418067492544651, -0.001661113346926868, 0.016551680862903595, 0.028708605095744133, -0.004715802147984505, 0.02937447838485241, 0.0065112789161503315, 0.05619961768388748, 0.008599264547228813, 0.019443469122052193, 0.034663405269384384, 0.05170973390340805, 0.006853727623820305, -0.04512711241841316, -0.042615823447704315, -0.0025279363617300987, 0.04136017709970474, 0.008808538317680359, 0.029393503442406654, -0.04147432744503021, -0.008518408052623272, -0.03633759915828705, -0.01551482267677784, -0.0565040148794651, -0.025074845179915428, 0.013269882649183273, 0.05117703601717949, -0.05638986453413963, -0.04463246464729309, -0.017683664336800575, -0.022164031863212585, -0.042615823447704315, -0.053954675793647766, 0.010520781390368938, 0.03886791318655014, 0.056846462190151215, -0.06639697402715683, 0.053193677216768265, 0.030744271352887154, 0.005398321431130171, 0.04166457802057266, -0.023438703268766403, -0.05220438167452812, 0.03532927855849266, -0.05053018778562546, -0.0061069997027516365, 0.03879181295633316, 0.03422583267092705, 0.002751479158177972, -0.06263004243373871, -0.020870337262749672, -0.027890533208847046, 0.03464438021183014, 0.016818029806017876, 0.010577855631709099, -0.06654917448759079, -0.03249456360936165, 0.030249623581767082, -0.06974536180496216, -0.028461281210184097, -0.010311506688594818, -0.023324552923440933, 0.021669384092092514, -0.013269882649183273, 0.020623013377189636, -0.07126735150814056, -0.021935733035206795, 0.017008278518915176, -0.024561172351241112, 0.04094162955880165, 0.05125313624739647, -0.01709389127790928, -0.06624477356672287, -0.013269882649183273, -0.0020190197974443436, -0.022867955267429352, -0.007438743952661753, -0.00950770452618599, 0.0649891272187233, 0.054144926369190216, 0.028118832036852837, -0.017379265278577805, 0.053155627101659775, 0.045431509613990784, 0.015571897849440575, -0.01886320859193802, -0.014392352662980556, -0.018749060109257698, -0.03302726149559021, 0.020204465836286545, 0.041854824870824814, 0.015562385320663452, -0.050073590129613876, -0.046877406537532806, -0.015733608976006508, 0.0017954768845811486, -0.007082026917487383, -0.024789471179246902, -0.0042687165550887585, -0.004889404866844416, 0.060803648084402084, -0.004413781687617302, -0.01743634045124054, -0.07739337533712387, 0.008071322925388813, -0.05566691979765892, -0.014002341777086258, 0.06848971545696259, 0.01282279659062624, 0.053612228482961655, -0.05170973390340805, 0.011662276461720467, -0.0009488679352216423, 0.012898895889520645, -0.018730035051703453, -0.012946458533406258, 0.028974954038858414, -0.011158116161823273, -0.006202124059200287, -0.010178332217037678, 0.017312677577137947, 0.015800196677446365, 0.06148854270577431, -0.024218725040555, -0.011519589461386204, 0.046573005616664886, 0.005222340580075979, 0.024770446121692657, 0.04029478132724762, -0.06514132767915726, 0.03163844347000122, -0.005959556438028812, -0.04390951618552208, 0.023476751521229744, -0.013469643890857697, 0.022810880094766617, -0.09147182106971741, -0.0626680925488472, 0.038468390703201294, 0.04170262813568115, 0.015562385320663452, -0.012385223060846329, 0.01032101921737194, 0.053650274872779846, -0.018178312107920647, 0.030230598524212837, 0.016399482265114784, -0.020052267238497734, -0.026863187551498413, 0.025588518008589745, 0.02895592898130417, -0.03785959258675575, 0.07731727510690689, 0.053345877677202225, 0.015562385320663452, -0.046687155961990356, -0.0942114070057869, -0.008646826259791851, 0.007543381303548813, -0.0032080772798508406, 0.027548085898160934, -0.03580490127205849, 0.05833040550351143, 0.01702730357646942, -0.018140261992812157, -0.032703839242458344, -0.06004264950752258, 0.026787089183926582, -0.046496905386447906, 0.02172645926475525, -0.022106958553195, -0.06742431968450546, 0.0031058182939887047, -0.01463016401976347, 0.04292022064328194, -0.0169131550937891, 0.007367400452494621, -0.03156234323978424, -0.07004975527524948, -0.035234153270721436, -0.03645174950361252, 0.024561172351241112, 0.04486076161265373, -0.05589521676301956, -0.03220919147133827, 0.03424485772848129, -0.027510035783052444, -0.04025673121213913, 0.02007129229605198, 0.01190008781850338, 0.009950033389031887, -0.007686067838221788, 0.0027538572903722525, -0.046002257615327835, 0.022791855037212372, 0.01660875603556633, -0.022278182208538055, -0.004116517025977373, -0.02083228901028633, 0.011919112876057625, -0.024466048926115036, 0.026977337896823883, 0.021155711263418198, -0.030934521928429604, 0.0542210228741169, 0.049769192934036255, -0.09816858917474747, -0.02022349089384079, -0.03232334181666374, 0.008646826259791851, 0.0058787004090845585, -0.056922562420368195, 0.014525527134537697, 0.008994031697511673, -0.07016390562057495, -0.010530293919146061, -0.05243268236517906, 0.012147411704063416, -0.025188995525240898, 0.04292022064328194, 0.0019892933778464794, 0.09238501638174057, -0.016903642565011978, 0.0707346573472023, 0.024694347754120827, -0.06567402929067612, 0.016751442104578018, 0.002067771041765809, 0.00951246079057455, -0.021098637953400612, 0.02829005755484104, -0.06609257310628891, 0.03778349235653877, -0.004007123876363039, -0.04288217052817345, 0.08797123283147812, -0.012356686405837536, -0.03770739212632179, 0.07716508209705353, -0.03721274435520172, 0.005003554280847311, 0.05890115350484848, -0.015952395275235176, -0.015105786733329296, -0.0033531421795487404, 0.03072524629533291, -0.045507609844207764, -0.024903621524572372, -0.0048228176310658455, 0.05848260596394539, -0.03194284066557884, -0.002046368084847927, 0.02157426066696644, -0.03818301483988762, -0.05452542379498482, 0.07408304512500763, 0.05604741722345352, 0.015762146562337875, 0.008604020811617374, -0.0029179472476243973, 0.015638485550880432, 0.021174736320972443, -0.018520761281251907, 0.030458897352218628, -0.04741010442376137, -0.027281736955046654, 0.0344160832464695, -0.006925071123987436, 0.042159225791692734, -0.04866574704647064, 0.0515194870531559, 0.0001041911673382856, -0.007619480602443218, 0.02718661166727543, 0.00022205649293027818, -0.011529101990163326, -0.053764425218105316, 0.00033531422377564013, -0.08211155980825424, 0.057759661227464676, 0.024561172351241112, -0.00907488726079464, 0.0003335306537337601, -0.08386185020208359, -0.07670848071575165, 0.030439874157309532, -0.007148614153265953, -0.0026706233620643616, 0.018064161762595177, 0.005840650759637356, -0.014382840134203434, 0.007709849160164595, 0.007705092895776033, 0.0070106834173202515, -0.020052267238497734, 0.004703911487013102, -0.02975497581064701, 0.04097967967391014, 0.007529112510383129, 0.04132212698459625, -0.0430724211037159, 0.08020906895399094, 0.00952672865241766, -0.006573110353201628, -0.0071628824807703495, 0.010197357274591923, 0.028784705325961113, 0.014506502076983452, -0.008194984868168831, 0.04044698178768158, -0.03890596330165863, -0.007001170888543129, -0.00044441025238484144, -0.022354282438755035, -0.032817989587783813, -0.00120748789049685, -0.019414931535720825, 0.08386185020208359, 0.006615916267037392, -0.012461323291063309, -0.0051842909306287766, 0.03687029704451561, -0.08142665773630142, 0.006116512231528759, -0.00601663114503026, 0.024922646582126617, 0.050035540014505386, -0.042615823447704315, 0.05901530385017395, -0.037536170333623886, 0.04387146607041359, 0.02083228901028633, 0.02218305692076683, 0.008175959810614586, 0.0057074762880802155, 0.07415913790464401, -0.01357428077608347, 0.02802370861172676, 0.016028495505452156, 0.005945287644863129, 0.0037122375797480345, 0.02165035903453827, -0.05433517321944237, 0.003707481548190117, 0.014925050549209118, 0.03378826007246971, -0.026045115664601326, -0.05121508613228798, -0.02041373960673809, 0.002328174654394388, -0.015077250078320503, 0.021326936781406403, 0.02714856155216694, 0.02010934054851532, 0.05635181441903114 ]
17,249
imodels.tree.cart_wrapper
GreedyTreeClassifier
Wrapper around sklearn greedy tree classifier
class GreedyTreeClassifier(DecisionTreeClassifier): """Wrapper around sklearn greedy tree classifier """ def fit(self, X, y, feature_names=None, sample_weight=None, check_input=True): """Build a decision tree classifier from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (class labels) as integers or strings. feature_names : array-like of shape (n_features) The names of the features sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. Splits are also ignored if they would result in any single class carrying a negative weight in either child node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeClassifier Fitted estimator. """ X, y, feature_names = check_fit_arguments(self, X, y, feature_names) super().fit(X, y, sample_weight=sample_weight, check_input=check_input) self._set_complexity() def _set_complexity(self): """Set complexity as number of non-leaf nodes """ self.complexity_ = compute_tree_complexity(self.tree_) def __str__(self): s = '> ------------------------------\n' s += '> Greedy CART Tree:\n' s += '> \tPrediction is made by looking at the value in the appropriate leaf of the tree\n' s += '> ------------------------------' + '\n' if hasattr(self, 'feature_names') and self.feature_names is not None: return s + export_text(self, feature_names=self.feature_names, show_weights=True) else: return s + export_text(self, show_weights=True)
(*, criterion='gini', splitter='best', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features=None, random_state=None, max_leaf_nodes=None, min_impurity_decrease=0.0, class_weight=None, ccp_alpha=0.0, monotonic_cst=None)
[ 0.017963040620088577, -0.034813083708286285, 0.0007822908810339868, -0.018063392490148544, -0.0028668793383985758, -0.0015189670957624912, -0.01875673420727253, 0.025106290355324745, 0.05616072937846184, -0.012215597555041313, 0.010609962046146393, 0.014113165438175201, 0.01758900098502636, 0.028864936903119087, -0.007001845166087151, -0.035196248441934586, 0.05455509573221207, -0.0031405671034008265, -0.009077310562133789, 0.0554673857986927, 0.014231763780117035, -0.014605803415179253, -0.005291296634823084, 0.0399584136903286, -0.06411591917276382, -0.00883555319160223, 0.037093814462423325, 0.01306402962654829, -0.029339328408241272, -0.015718800947070122, -0.0979437306523323, -0.01842830888926983, -0.09035345166921616, 0.0019158143550157547, -0.03694785013794899, -0.01851041615009308, 0.0103727662935853, 0.050176091492176056, -0.01941358484327793, -0.023737851530313492, -0.04222089797258377, -0.021785546094179153, -0.038644712418317795, -0.04816904664039612, -0.037367504090070724, 0.019851485267281532, 0.01767110638320446, 0.08663129806518555, -0.06057622656226158, -0.062327828258275986, 0.021986249834299088, -0.05616072937846184, -0.0013866847148165107, 0.04295073449611664, -0.03401026502251625, 0.03118215873837471, 0.042804766446352005, 0.014687909744679928, 0.04123562201857567, -0.019723765552043915, 0.010838035494089127, 0.04076123237609863, 0.03661942481994629, 0.021949758753180504, -0.050285566598176956, 0.002084588399156928, -0.06980862468481064, 0.01187804900109768, 0.006034815218299627, 0.03140110895037651, 0.0011768573895096779, -0.03806084394454956, 0.03322569653391838, 0.02357363887131214, 0.020599566400051117, 0.008105719462037086, -0.025671912357211113, -0.04327915981411934, 0.01617494784295559, 0.014295624569058418, -0.03871769458055496, 0.013127889484167099, 0.0803547278046608, -0.041855983436107635, -0.011494886130094528, -0.05999235808849335, 0.035926081240177155, 0.014058427885174751, 0.03849874436855316, 0.01821848191320896, -0.023938557133078575, 0.02329995110630989, 0.0034530272241681814, 0.035196248441934586, 0.03034285083413124, 0.03483133018016815, 0.02368311397731304, 0.011576992459595203, -0.03180252015590668, -0.025051552802324295, -0.016786182299256325, 0.10356345027685165, 0.0019374813418835402, 0.0413815900683403, -0.0400678887963295, -0.011029616929590702, -0.02579963393509388, 0.05769338086247444, 0.017789704725146294, -0.03806084394454956, -0.09911146014928818, 0.040140870958566666, 0.03526923060417175, 0.004645850043743849, -0.008393091149628162, -0.060831665992736816, -0.05937200039625168, -0.006737280637025833, -0.06418890506029129, -0.030142145231366158, 0.006796579342335463, 0.01566406339406967, -0.01827321946620941, 0.020727286115288734, -0.04422794282436371, -0.006486400030553341, 0.03904611989855766, 0.04711078852415085, -0.023372935131192207, -0.05298595130443573, 0.016384774819016457, 0.04331564903259277, 0.021110448986291885, -0.005204629153013229, 0.006240081042051315, -0.008621164597570896, 0.001847392413765192, 0.01709636300802231, -0.0015087038045749068, 0.015490727499127388, 0.07192514836788177, -0.11035090684890747, 0.050395041704177856, -0.021895021200180054, 0.03838926926255226, -0.01851041615009308, -0.011805065907537937, -0.0409436896443367, -0.023318197578191757, 0.013438069261610508, -0.006495522800832987, -0.006057622376829386, 0.048460979014635086, -0.00013199732347857207, 0.06218186020851135, -0.003204427659511566, -0.0015417743707075715, -0.030324604362249374, 0.0018006374593824148, 0.009943989105522633, -0.01458755787461996, -0.031200405210256577, -0.004205668810755014, 0.01362052746117115, 0.007727117743343115, 0.01842830888926983, -0.04411846771836281, -0.06378749758005142, -0.04725675284862518, 0.008402214385569096, 0.031382862478494644, 0.002590910764411092, -0.023847326636314392, 0.02740526758134365, -0.026055075228214264, 0.027441760525107384, 0.019103405997157097, 0.058058299124240875, 0.07838417589664459, 0.014624049887061119, -0.011431025341153145, -0.007435184437781572, -0.0035077647771686316, -0.004652692005038261, 0.038754187524318695, -0.010299783200025558, 0.043972499668598175, -0.007407815661281347, -0.029540032148361206, 0.04732973873615265, -0.006349556148052216, -0.02685789205133915, 0.022661346942186356, 0.01680442877113819, 0.04510374367237091, 0.01786268875002861, 0.01775321364402771, 0.009943989105522633, 0.009236962534487247, 0.07524588704109192, -0.01695951819419861, -0.002142747165635228, 0.10867229104042053, -0.006992722395807505, 0.003402851289138198, 0.021347645670175552, -0.02242415025830269, 0.03578011319041252, -0.048242028802633286, -0.011814188212156296, -0.029448803514242172, 0.02862774021923542, -0.010190308094024658, 0.07426061481237411, 0.03685661777853966, -0.037258028984069824, -0.0004111018206458539, 0.0018907262710854411, -0.026949122548103333, -0.05050451681017876, -0.02574489638209343, 0.0017766897799447179, -0.0000014120934110906092, 0.05845970660448074, 0.011649975553154945, -0.056671611964702606, 0.06940721720457077, 0.004349354654550552, 0.02163957990705967, -0.058678656816482544, 0.019322356209158897, -0.06057622656226158, 0.03890015557408333, -0.011576992459595203, -0.016129331663250923, -0.025325240567326546, 0.033316925168037415, -0.012361563742160797, -0.04816904664039612, -0.010765052400529385, -0.015536341816186905, -0.042476341128349304, -0.0016444072825834155, -0.04327915981411934, 0.002413013717159629, 0.023500656709074974, 0.03284253180027008, 0.03846225515007973, 0.036984339356422424, -0.002759685041382909, -0.015198794193565845, -0.05845970660448074, -0.014167902991175652, -0.038973137736320496, -0.008415899239480495, -0.08247124403715134, -0.04222089797258377, 0.03754996135830879, -0.012133491225540638, -0.01500721275806427, -0.008931344375014305, 0.005040416494011879, -0.06586752086877823, 0.10392836481332779, -0.018993930891156197, 0.0018542346078902483, 0.028755461797118187, -0.030762504786252975, -0.034484658390283585, -0.009615563787519932, 0.03238638490438461, 0.013474561274051666, -0.01802690140902996, -0.0031633744947612286, -0.03915559500455856, 0.023938557133078575, -0.07728942483663559, 0.021438874304294586, -0.027040351182222366, -0.014578434638679028, -0.0038430322892963886, -0.07046547532081604, -0.018309712409973145, 0.01595599763095379, -0.03517800197005272, 0.02090974524617195, -0.018665505573153496, -0.013155258260667324, 0.03678363561630249, 0.010418380610644817, -0.07024652510881424, 0.03419272601604462, 0.01642126590013504, 0.04101667180657387, 0.07309287786483765, -0.05214664340019226, -0.03377307206392288, -0.03838926926255226, 0.006399732083082199, 0.012653497979044914, 0.03900963068008423, -0.031474094837903976, -0.035816606134176254, -0.048023078590631485, -0.0039205774664878845, 0.005190944764763117, 0.0015337918885052204, -0.011431025341153145, 0.006595875136554241, 0.03868120536208153, 0.0012304545380175114, 0.019541306421160698, 0.015737047418951988, -0.021037466824054718, -0.05108838155865669, -0.06743666529655457, 0.05313191935420036, -0.04379004240036011, 0.05513896048069, 0.006787456572055817, -0.054409127682447433, -0.0025658227968961, -0.0539347343146801, 0.021548349410295486, 0.0004558611835818738, -0.010391011834144592, 0.05754741281270981, 0.02308100089430809, 0.010199430398643017, 0.00775448651984334, -0.026274025440216064, 0.013830355368554592, 0.020873254165053368, -0.007097635883837938, 0.013757371343672276, 0.06546611338853836, 0.040250346064567566, 0.0010810666717588902, -0.01761636883020401, -0.03694785013794899, 0.03074425831437111, 0.020782023668289185, -0.045578137040138245, 0.01570967771112919, -0.011020493693649769, 0.006071306765079498, 0.03882716968655586, 0.007790978532284498, 0.06141553446650505, 0.05630669742822647, -0.01295455452054739, -0.057510923594236374, 0.02824457734823227, 0.019486568868160248, 0.03269656375050545, -0.020398860797286034, 0.006139728706330061, 0.0401773639023304, 0.0101538160815835, -0.06214536726474762, 0.021037466824054718, -0.05929901450872421, -0.022770822048187256, 0.06656086444854736, -0.032879024744033813, -0.05189120024442673, -0.011896294541656971, 0.02901090309023857, 0.042585816234350204, -0.022387659177184105, 0.023427672684192657, -0.04867992922663689, -0.02574489638209343, 0.010290659964084625, 0.009214154444634914, 0.02957652509212494, -0.045249711722135544, 0.006960792001336813, 0.04805957153439522, 0.021292908117175102, 0.028116855770349503, -0.013711757026612759, 0.00901345070451498, -0.04871642217040062, -0.0014151937793940306, -0.06437136232852936, 0.03058004565536976, -0.008817307651042938, 0.051964182406663895, -0.042074933648109436, -0.011613484472036362, 0.008593795821070671, 0.0008050981559790671, 0.00879450049251318, -0.08517163246870041, -0.00899976585060358, 0.06364152580499649, 0.00273915845900774, -0.05575932189822197, 0.036473456770181656, 0.00890397559851408, -0.015591079369187355, 0.002349153393879533, -0.021457120776176453, 0.027478251606225967, 0.022716084495186806, 0.030251620337367058, 0.017634615302085876, -0.006764649413526058, 0.021037466824054718, -0.018884455785155296, 0.028536511585116386, 0.02674841694533825, 0.05926252529025078, -0.037914879620075226, -0.03180252015590668, 0.025234011933207512, 0.04875291511416435, 0.03402851149439812, 0.02058131992816925, 0.010190308094024658, 0.017224082723259926, -0.045906562358140945, 0.021274661645293236, 0.03229515627026558, 0.02474137395620346, -0.002387925749644637, -0.04112614691257477, -0.006933423224836588, -0.008137649856507778, -0.06192641705274582, -0.04897186532616615, -0.10210378468036652, -0.042184408754110336, -0.02835405245423317, -0.025653665885329247, -0.03915559500455856, 0.01328297983855009, -0.021621333435177803, -0.017415665090084076, -0.05221962556242943, -0.002365118358284235, 0.035926081240177155, -0.010181184858083725, 0.05714600533246994, -0.03879068046808243, 0.037203289568424225, -0.004771289881318808, -0.05159926787018776, -0.048023078590631485, 0.0271315798163414, 0.022935034707188606, 0.003988999407738447, 0.06393346190452576, -0.06360504031181335, -0.002791615203022957, 0.0416005402803421, -0.02368311397731304, 0.030050916597247124, 0.037914879620075226, 0.016649339348077774, 0.0016284422017633915, 0.00712956627830863, 0.047585178166627884, -0.03269656375050545, 0.0055649843998253345, 0.05353332683444023, 0.011412779800593853, -0.042695291340351105, -0.048460979014635086, 0.0552484355866909, -0.021274661645293236, -0.01892094686627388, -0.0416005402803421, -0.02941231243312359, 0.0420384407043457, -0.02612805925309658, -0.051234349608421326, 0.013939830474555492, -0.004641288425773382, 0.01565494015812874, -0.025544190779328346, 0.05225611850619316, -0.045906562358140945, -0.027934398502111435, -0.011960155330598354, -0.023263460025191307, -0.025325240567326546, -0.02308100089430809, -0.007850277237594128, -0.06105061620473862, -0.018309712409973145, 0.015800906345248222, 0.009341876022517681, -0.014122288674116135, 0.037367504090070724, 0.03468536213040352, 0.029339328408241272, -0.006814825348556042, -0.03817031905055046, -0.01539949793368578, 0.0396299883723259, -0.011275935918092728, -0.007225356996059418, 0.05988288298249245, -0.017443032935261726, -0.0035579409450292587, 0.0532778836786747, -0.050905924290418625, 0.050905924290418625, 0.007480798754841089, -0.044081974774599075, 0.07261848449707031, 0.03306148201227188, 0.04021385684609413, 0.01118470635265112, -0.00782747007906437, 0.0420384407043457, 0.025489453226327896, 0.00855274312198162, 0.01453282032161951, 0.053460344672203064, 0.07017354667186737, -0.011540500447154045, 0.004018648527562618, 0.06623244285583496, -0.0071158818900585175, 0.04528620094060898, 0.055576860904693604, 0.04638095200061798, 0.06466329842805862, -0.011668222025036812, 0.002206607721745968, 0.09998726099729538, -0.007676941808313131, -0.001590810134075582, 0.02014341950416565, 0.04076123237609863, 0.026146303862333298, -0.04751219600439072, 0.01957779750227928, -0.02868247777223587, 0.023391181603074074, 0.007964313961565495, -0.0396299883723259, 0.04470233619213104, 0.0531684085726738, 0.022223446518182755, -0.009560826234519482, 0.006609559524804354, -0.009852759540081024, -0.0022989772260189056, -0.012881570495665073, -0.00045614628470502794, 0.08612041920423508, -0.011312427930533886, -0.016275299713015556, 0.014961597509682178, 0.032879024744033813, -0.005373402964323759, -0.02430347353219986, -0.00599376205354929, 0.016211438924074173, -0.01705074869096279, 0.0684584304690361, -0.021566595882177353, -0.04134509712457657, 0.08728814870119095, -0.03275130316615105, -0.0207455325871706, 0.037367504090070724, 0.026730172336101532, -0.021785546094179153, 0.016603725031018257, -0.05637967959046364, 0.03063478320837021, -0.06159799173474312, -0.015217039734125137, -0.06272923946380615, 0.013739125803112984, 0.012288580648601055, -0.021110448986291885, -0.021822037175297737, -0.014359484426677227, -0.0027323162648826838, -0.021183433011174202, -0.009971357882022858, 0.017707599326968193, -0.05575932189822197, -0.003261445788666606, 0.02174905501306057, -0.004780413117259741, 0.0548105351626873, -0.034429922699928284, 0.006956230849027634, 0.0034872381947934628, -0.07889506220817566, -0.011896294541656971, 0.06043025851249695, -0.02818983979523182, -0.022442396730184555, 0.011850680224597454, -0.0200886819511652, 0.02185853011906147, 0.025398224592208862, -0.012498407624661922, -0.034922558814287186, -0.02946704998612404, -0.03568888455629349, -0.029029149562120438, -0.013875969685614109, 0.010016972199082375, 0.05148979276418686, -0.02530699595808983, -0.055613353848457336, 0.042184408754110336, -0.0276789553463459, -0.03466711565852165, 0.0004661244747694582, -0.039593495428562164, 0.005793057847768068, 0.00998960342258215, 0.009396613575518131, 0.004899010993540287, -0.04265879839658737, -0.053569819778203964, -0.01020855363458395, -0.07692451030015945, -0.027770185843110085, 0.02829931490123272, 0.0397394634783268, -0.058897607028484344, 0.021055711433291435, -0.021603086963295937, -0.031437601894140244, -0.0026707365177571774, -0.011431025341153145, 0.03211269900202751, 0.03384605422616005, -0.004194265231490135, -0.07239953428506851, -0.0009761530091054738, -0.03689311072230339, -0.02740526758134365, -0.016631092876195908, -0.10276063531637192, -0.015518096275627613, 0.04871642217040062, 0.033864300698041916, -0.00890397559851408, -0.012188228778541088, 0.01794479414820671, -0.00042364586261101067, -0.03328043222427368, -0.0009653195738792419, 0.0036012749187648296, 0.0018416906241327524, 0.04981117323040962, 0.04098018258810043, -0.0033298677299171686, -0.013693511486053467, 0.022898543626070023, 0.08553654700517654, 0.029722491279244423, 0.011923663318157196, 0.029394065961241722, 0.03689311072230339, -0.008315546438097954, -0.017005132511258125, 0.02408452332019806, -0.07177917659282684, 0.016412142664194107, -0.01837357133626938, -0.0397394634783268, -0.04134509712457657, -0.05875163897871971, -0.026821400970220566, 0.0011420762166380882, 0.02058131992816925, 0.0134563148021698, 0.07163321226835251, 0.09429455548524857, -0.03276954963803291, 0.03694785013794899, 0.052073657512664795, 0.0022522222716361284, -0.03435693681240082, 0.010035217739641666, -0.031090930104255676, -0.07940594106912613, 0.0021769581362605095, 0.02496032416820526, 0.051562774926424026, -0.03388254716992378, -0.0012099279556423426, -0.015591079369187355, -0.03879068046808243, -0.010327151976525784, 0.00842958316206932, -0.05291296914219856, 0.011805065907537937, 0.009090995416045189, -0.056343186646699905, 0.019687272608280182, -0.005346034187823534, 0.03512326255440712, -0.08064666390419006, 0.04594305157661438, 0.038133829832077026, -0.06707175076007843, -0.012233843095600605, 0.030251620337367058, -0.03112742118537426, -0.005277612246572971, -0.040250346064567566, 0.009761529974639416, 0.012927185744047165, -0.012918062508106232, 0.01178681943565607, 0.009205032140016556, 0.0019249372417107224, -0.018546907231211662, 0.06918826699256897, 0.04816904664039612, -0.03534221276640892, 0.035305723547935486, 0.054044209420681, -0.06305766105651855, 0.07451605796813965, -0.04849747195839882, -0.016786182299256325, 0.01897568441927433, -0.007567466702312231, -0.043534599244594574, -0.008963274769484997, -0.05948147550225258, 0.019796747714281082, -0.033809561282396317, 0.028372298926115036, 0.030050916597247124, -0.025161027908325195, -0.02952178753912449, 0.014669664204120636, 0.006577629130333662, 0.05886111408472061, 0.004632165655493736, -0.0006249204161576927, 0.08509864658117294, 0.01447808276861906, -0.05721898749470711, 0.014386853203177452, -0.015144056640565395, 0.03545168787240982, 0.029047394171357155, 0.06203589215874672, 0.005364280194044113, -0.025836125016212463, -0.03572537750005722, -0.0030881103593856096, -0.06951669603586197, -0.0071797422133386135, -0.05221962556242943, -0.009273453615605831, 0.005035854876041412, -0.004821466282010078, 0.049519240856170654, 0.06342257559299469, 0.050285566598176956 ]
17,255
imodels.tree.cart_wrapper
__str__
null
def __str__(self): s = '> ------------------------------\n' s += '> Greedy CART Tree:\n' s += '> \tPrediction is made by looking at the value in the appropriate leaf of the tree\n' s += '> ------------------------------' + '\n' if hasattr(self, 'feature_names') and self.feature_names is not None: return s + export_text(self, feature_names=self.feature_names, show_weights=True) else: return s + export_text(self, show_weights=True)
(self)
[ 0.02919938787817955, -0.056634571403265, 0.0383804515004158, -0.009032548405230045, 0.04745350778102875, -0.055086392909288406, -0.0265530813485384, 0.0017777063185349107, 0.07028015702962875, -0.024410832673311234, 0.005162098910659552, -0.008496985770761967, -0.00464453874155879, 0.016390901058912277, -0.0030018482357263565, 0.004140480421483517, 0.009847142733633518, -0.07186433672904968, 0.013672586530447006, 0.04255693778395653, 0.0006210720748640597, 0.00721433712169528, -0.0005361246876418591, -0.008379972539842129, -0.0067687854170799255, -0.006390741560608149, -0.008595997467637062, -0.04064871743321419, -0.043529052287340164, -0.004108976572751999, -0.07172032445669174, -0.10153178125619888, -0.05083790048956871, -0.010468214750289917, -0.04388909414410591, 0.03758836165070534, -0.02156650274991989, 0.01877617835998535, -0.009014545939862728, -0.06671573966741562, 0.0035576627124100924, -0.017020974308252335, -0.03629221022129059, -0.01973028853535652, -0.050189822912216187, -0.009136060252785683, 0.029865466058254242, 0.029433414340019226, -0.03015349805355072, -0.07906517386436462, 0.016633929684758186, 0.030675560235977173, -0.043997105211019516, 0.044141121208667755, -0.048497628420591354, -0.05112593248486519, 0.05076589062809944, -0.011737361550331116, 0.023186691105365753, 0.025959011167287827, -0.0036049182526767254, 0.053538210690021515, 0.044213131070137024, 0.025490958243608475, -0.0049685765989124775, 0.016696937382221222, -0.04655340313911438, 0.016561921685934067, -0.006260226480662823, 0.05955091118812561, 0.035842157900333405, -0.06466349959373474, 0.0014930482720956206, 0.03791239857673645, -0.0002757976180873811, -0.006390741560608149, -0.027471186593174934, -0.05044185370206833, 0.015544803813099861, -0.025166919454932213, -0.023870769888162613, 0.0006278228247538209, 0.053934257477521896, -0.05811074376106262, 0.027615204453468323, -0.08929035812616348, -0.0067102788016200066, -0.022970665246248245, 0.004874065518379211, 0.027273165062069893, -0.014176645316183567, 0.0032358753960579634, -0.03189970180392265, 0.036508236080408096, -0.010639234445989132, -0.013717591762542725, 0.021620508283376694, -0.05411427840590477, -0.010621231980621815, -0.02682311274111271, 0.017507031559944153, 0.05602249875664711, -0.026013018563389778, 0.01811010204255581, -0.034275978803634644, -0.01811010204255581, -0.02606702409684658, 0.05919086933135986, 0.00753837451338768, 0.009712127037346363, -0.05296214669942856, 0.06300731003284454, 0.056634571403265, -0.04342103749513626, 0.040000639855861664, -0.06664372980594635, -0.05267411097884178, -0.01188137847930193, -0.018614159896969795, -0.043601058423519135, 0.012007392942905426, 0.004196736961603165, -0.028839346021413803, 0.004577030893415213, -0.07128827273845673, 0.03580615296959877, 0.01581483520567417, 0.016462910920381546, -0.0029118377715349197, -0.11290910094976425, 0.0672198012471199, 0.013222534209489822, -0.022574618458747864, 0.0038456961046904325, 0.07539274543523788, -0.020738406106829643, 0.017903076484799385, 0.0007712770020589232, 0.044069115072488785, 0.08885831385850906, 0.032979827374219894, -0.1012437492609024, -0.0020274852868169546, 0.010000159963965416, -0.010657236911356449, -0.028407296165823936, -0.04608534649014473, 0.0007673390209674835, 0.004034718032926321, -0.06300731003284454, 0.022034557536244392, 0.0014604195021092892, -0.02621104195713997, -0.05505038797855377, 0.03620219975709915, 0.005981193855404854, 0.016192879527807236, -0.0066382703371346, 0.0366162471473217, 0.016660932451486588, 0.00551313953474164, -0.03360990062355995, 0.016354897990822792, 0.026301052421331406, 0.012232419103384018, 0.035086069256067276, -0.026805110275745392, -0.030171500518918037, -0.020702403038740158, 0.012007392942905426, 0.016084866598248482, -0.05004580691456795, -0.06419544667005539, 0.07265643030405045, 0.002932090312242508, 0.056994613260030746, 0.03647223114967346, 0.11449328809976578, 0.012871493585407734, 0.025760989636182785, -0.016282889991998672, -0.017029976472258568, -0.06649971753358841, 0.014995739795267582, 0.04662540927529335, -0.08489785343408585, 0.042628947645425797, 0.0011420075315982103, 0.013699589297175407, 0.02628304995596409, 0.02844330109655857, 0.006300731096416712, 0.014473679475486279, 0.037336330860853195, 0.013978621922433376, -0.03697628900408745, 0.03798440843820572, -0.06480751931667328, 0.007403358817100525, 0.0009113557171076536, 0.006867796648293734, -0.0019948564004153013, 0.04378107935190201, 0.013663585297763348, -0.002056738594546914, 0.028803342953324318, -0.007218837738037109, 0.015643814578652382, -0.022646628320217133, 0.0029455916956067085, 0.018272120505571365, 0.009235071949660778, 0.004779554437845945, 0.03062155283987522, 0.05105392262339592, -0.03517607972025871, -0.04446515813469887, 0.03676026687026024, -0.0836016982793808, -0.009208068251609802, -0.0014120388077571988, -0.01651691645383835, 0.05357421562075615, 0.04892967641353607, -0.03330386430025101, -0.02858731709420681, 0.06635569781064987, -0.023168688639998436, -0.012097403407096863, -0.03443799540400505, 0.029109377413988113, -0.039784617722034454, -0.037948403507471085, 0.026787107810378075, -0.0531061626970768, 0.0004494896566029638, -0.03874049335718155, 0.00605770293623209, -0.028569314628839493, -0.026985131204128265, -0.030063487589359283, -0.008794019930064678, -0.016084866598248482, -0.025400947779417038, 0.054150283336639404, -0.028767338022589684, 0.029631437733769417, 0.009307079948484898, 0.007290845736861229, -0.016993971541523933, 0.047489508986473083, -0.026247045025229454, -0.02075640857219696, -0.017921078950166702, 0.0022795144468545914, -0.08252157270908356, -0.020396366715431213, 0.0048155589029192924, 0.020810414105653763, 0.03123362362384796, -0.02158450521528721, 0.013645583763718605, -0.06689576059579849, 0.09317880868911743, 0.024626856669783592, -0.01381660345941782, -0.034546010196208954, -0.023924775421619415, -0.018272120505571365, -0.030045486986637115, 0.06660772860050201, 0.05000980198383331, -0.0672198012471199, -0.0021985049825161695, -0.03470802679657936, -0.03494205325841904, -0.04752551391720772, -0.005148597527295351, -0.06221522018313408, -0.032097723335027695, 0.00408647395670414, -0.07247640937566757, -0.012205416336655617, -0.00020533632778096944, -0.011395322158932686, -0.038560472428798676, -0.0014334162697196007, -0.044141121208667755, 0.04158482328057289, -0.011656352318823338, -0.008695009164512157, 0.048965681344270706, -0.011764365248382092, 0.019370246678590775, 0.07762500643730164, -0.039784617722034454, 0.05778670683503151, -0.014779714867472649, -0.001381660345941782, 0.017408020794391632, 0.03942457586526871, -0.04622936248779297, 0.0487496554851532, -0.033933937549591064, -0.04820959270000458, 0.029631437733769417, 0.013960619457066059, -0.0011701358016580343, 0.042772963643074036, 0.0015493048122152686, -0.042232900857925415, -0.0010654986836016178, 0.07258442044258118, 0.061495136469602585, -0.035230088979005814, 0.01242144126445055, -0.007457365281879902, -0.04068472236394882, 0.04558128863573074, 0.03404194861650467, -0.04403311014175415, -0.0032831309363245964, -0.005351121071726084, 0.02048637717962265, 0.024662861600518227, -0.08504186570644379, 0.013123522512614727, -0.0161298718303442, 0.03798440843820572, 0.0054996381513774395, -0.020522382110357285, -0.033861927688121796, 0.0645194873213768, 0.019244233146309853, 0.015301775187253952, 0.04687744006514549, 0.013087518513202667, 0.025418950244784355, -0.042628947645425797, -0.016381900757551193, 0.06419544667005539, -0.0075248731300234795, -0.030405528843402863, 0.05490637198090553, 0.0055536446161568165, 0.05519440397620201, 0.0019476009765639901, 0.01324053667485714, 0.059802938252687454, 0.04928971827030182, -0.022376596927642822, -0.0037016794085502625, 0.0178670734167099, 0.01191738247871399, 0.027885235846042633, 0.007605882361531258, 0.006809290032833815, 0.03553612157702446, -0.03333986923098564, 0.00662026833742857, 0.01607586443424225, -0.012439443729817867, -0.013042513281106949, 0.09425893425941467, -0.05036984384059906, -0.04694944620132446, 0.03233174979686737, 0.046517398208379745, 0.08482584357261658, 0.009523104876279831, -0.010693240910768509, -0.0042889975011348724, 0.009514103643596172, -0.028767338022589684, -0.027957243844866753, 0.05512239411473274, -0.01266446989029646, -0.045365262776613235, 0.020810414105653763, -0.053934257477521896, 0.013231535442173481, 0.015805833041667938, -0.003528409404680133, 0.010252189822494984, 0.01191738247871399, 0.015445792116224766, 0.009271075949072838, 0.015157759189605713, 0.013771598227322102, -0.03384392708539963, -0.005868680775165558, 0.01738101616501808, -0.004144981037825346, 0.019082214683294296, -0.055770471692085266, -0.031485654413700104, 0.016435906291007996, -0.003388893324881792, -0.05371823161840439, 0.03960459679365158, 0.024626856669783592, -0.031017599627375603, -0.06707578152418137, -0.027201157063245773, -0.010567226447165012, 0.0023447719868272543, 0.017921078950166702, 0.014914730563759804, -0.01693996600806713, 0.012862492352724075, 0.00231326837092638, -0.02532893978059292, -0.04453716799616814, 0.03928055614233017, -0.0005327493418008089, 0.011926383711397648, -0.015427789650857449, 0.041692838072776794, -0.006966808345168829, -0.014608695171773434, -0.05533841997385025, 0.0618191733956337, 0.028065256774425507, 0.03949658200144768, 0.0322057381272316, 0.0235467329621315, -0.024284817278385162, 0.015823835507035255, 0.06671573966741562, 0.048497628420591354, -0.05069388076663017, -0.06736381351947784, -0.04759752377867699, -0.0019070962443947792, 0.03758836165070534, -0.018632162362337112, -0.0150137422606349, -0.03328586369752884, -0.021134452894330025, 0.007902916520833969, 0.025544963777065277, -0.06106308475136757, 0.018668165430426598, 0.020126335322856903, 0.00215124967508018, 0.005630153231322765, -0.035356100648641586, -0.03398794308304787, -0.00520710414275527, 0.001868841820396483, 0.026499073952436447, 0.05159398540854454, -0.02592300809919834, 0.014113637618720531, 0.007304347585886717, -0.03686827793717384, 0.04946973919868469, -0.03683227300643921, 0.0023312706034630537, 0.031557660549879074, -0.02523892931640148, 0.05983894318342209, -0.0009867395274341106, 0.04313300549983978, 0.03895651921629906, -0.055986497551202774, 0.031053602695465088, 0.046661414206027985, -0.055302415043115616, -0.04198087006807327, 0.05044185370206833, -0.008312464691698551, -0.03551812097430229, -0.02640906348824501, 0.00602169893682003, 0.06480751931667328, -0.04212488606572151, -0.043457042425870895, -0.035086069256067276, -0.02225058153271675, -0.052782125771045685, -0.06574362516403198, -0.014545687474310398, -0.022214578464627266, 0.009082053788006306, 0.036580245941877365, -0.0072053358890116215, 0.008496985770761967, 0.027003133669495583, -0.040864743292331696, -0.015526801347732544, 0.020810414105653763, -0.04385308921337128, -0.040324680507183075, -0.03321385383605957, 0.05962291732430458, 0.01245744526386261, 0.025364942848682404, -0.06873197853565216, 0.020162340253591537, 0.019172225147485733, 0.03942457586526871, 0.01974829100072384, -0.01324053667485714, 0.015805833041667938, -0.008447480387985706, 0.05206204205751419, 0.03708430379629135, -0.020540382713079453, 0.034888047724962234, 0.023366712033748627, -0.06423145532608032, 0.03859647735953331, 0.04050470143556595, -0.019226230680942535, 0.00259455107152462, 0.006746282801032066, 0.047093465924263, -0.0054456316865980625, 0.03942457586526871, -0.023186691105365753, 0.015562805347144604, -0.025058908388018608, -0.03730032965540886, -0.024518845602869987, 0.06444747745990753, -0.027075141668319702, 0.06037900596857071, -0.026355057954788208, 0.08842626214027405, 0.02858731709420681, -0.00784440990537405, 0.016957968473434448, 0.060198985040187836, -0.02273663878440857, 0.05793072283267975, -0.028839346021413803, 0.05685059726238251, 0.05901084840297699, -0.0063502369448542595, 0.025544963777065277, -0.07233238965272903, -0.028839346021413803, -0.0670037716627121, -0.0008956039091572165, -0.008361970074474812, 0.08259358257055283, 0.026661094278097153, 0.05785871297121048, -0.00301985046826303, 0.005238607991486788, -0.006863296497613192, -0.014941733330488205, -0.037876393646001816, 0.0670037716627121, 0.08914634585380554, -0.032493770122528076, 0.04255693778395653, 0.02709314413368702, -0.006080205552279949, -0.021116450428962708, -0.00019886682275682688, 0.047057460993528366, 0.026445068418979645, 0.06815590709447861, 0.040252670645713806, -0.04327702149748802, 0.024320822209119797, -0.03589616343379021, -0.06300731003284454, 0.03375391662120819, -0.024932892993092537, 0.00580567354336381, -0.001819336088374257, -0.07964123785495758, 0.0026935625355690718, 0.01712898723781109, 0.052782125771045685, -0.016903961077332497, 0.026661094278097153, -0.05008181184530258, 0.015706822276115417, 0.02973945066332817, 0.01585984043776989, -0.005351121071726084, 0.0048560635186731815, 0.0008342842920683324, -0.0012522703036665916, -0.0017642047023400664, -0.03928055614233017, -0.008366471156477928, -0.014572691172361374, 0.03470802679657936, -0.039172545075416565, 0.04867764934897423, -0.041404806077480316, -0.0012792734196409583, 0.014752712100744247, 0.024860884994268417, -0.009748131036758423, -0.01446467824280262, 0.030855579301714897, 0.011971388943493366, 0.03294382244348526, 0.025436950847506523, 0.01605786383152008, -0.0026238043792545795, 0.01119729969650507, -0.05065787956118584, 0.01816410757601261, -0.015625813975930214, 0.02361874096095562, -0.0191362202167511, -0.05677858740091324, -0.05076589062809944, -0.019658280536532402, 0.04316901043057442, -0.036796268075704575, -0.029649440199136734, -0.022718636319041252, 0.05436630919575691, 0.043601058423519135, -0.066175676882267, 0.027687212452292442, -0.018398134037852287, 0.016453908756375313, 0.0033258858602494, -0.07121626287698746, 0.044069115072488785, -0.03469002619385719, 0.011305311694741249, -0.0340239480137825, -0.007056818809360266, -0.04255693778395653, -0.049721769988536835, -0.007542875129729509, -0.012016394175589085, 0.02415880374610424, -0.012016394175589085, -0.02981145866215229, -0.04385308921337128, 0.04687744006514549, -0.06448347866535187, -0.016858955845236778, -0.02885734848678112, -0.03015349805355072, -0.04363706335425377, 0.01698497124016285, 0.039244554936885834, -0.03400594741106033, -0.05044185370206833, 0.004964075982570648, 0.01632789522409439, 0.00817294791340828, 0.0039672101847827435, 0.04878566041588783, -0.006759784184396267, 0.018668165430426598, 0.011098287999629974, -0.01691296324133873, -0.05137796327471733, -0.022916659712791443, 0.034600015729665756, -0.01892019622027874, 0.05184601619839668, 0.021494494751095772, 0.0005951940547674894, -0.0031751184724271297, 0.007938921451568604, -0.050873901695013046, -0.04936172813177109, 0.021674515679478645, -0.001281523727811873, -0.06775986403226852, -0.04756151884794235, -0.0067282808013260365, 0.021548500284552574, 0.020648395642638206, 0.037120308727025986, -0.034131959080696106, 0.020000319927930832, 0.048029571771621704, -0.015175760723650455, -0.03874049335718155, 0.030441531911492348, 0.03798440843820572, -0.07233238965272903, 0.05004580691456795, -0.014095635153353214, -0.031485654413700104, -0.08540190756320953, -0.025490958243608475, 0.020792411640286446, -0.01649891398847103, 0.0878501906991005, 0.004973077215254307, 0.03261978551745415, -0.054078273475170135, 0.016462910920381546, -0.040468696504831314, 0.023438720032572746, 0.02599501609802246, -0.03830844536423683, 0.010909265838563442, 0.014536687172949314, -0.0005161536391824484, 0.013528569601476192, 0.0007183958659879863, -0.02628304995596409, -0.04133279621601105, 0.012106404639780521, 0.07992927730083466, -0.02232258953154087, -0.019784295931458473, -0.0635833740234375, -0.02430281974375248, 0.010513219982385635, 0.01215140987187624, 0.01245744526386261, -0.012556456960737705, -0.025004900991916656, 0.004185485653579235, 0.04219689592719078, 0.024518845602869987, 0.0231326837092638, 0.08604998141527176, -0.015373784117400646, -0.041008759289979935, 0.028209272772073746, -0.030045486986637115, -0.007268343586474657, 0.03895651921629906, -0.022556617856025696, -0.02572498470544815, -0.007938921451568604, -0.004388009198009968, 0.008460981771349907, -0.016993971541523933, 0.017876073718070984, 0.0045905327424407005, 0.016552921384572983, 0.014959735795855522, 0.019910309463739395, -0.011989391408860683, 0.05440231412649155, 0.012898496352136135, 0.019352246075868607, 0.07092823088169098, -0.019838301464915276, 0.012322429567575455, 0.056670576333999634, 0.022376596927642822, 0.010171180590987206, 0.022376596927642822, 0.044753193855285645, -0.016192879527807236, 0.03287181258201599, 0.002356023294851184, 0.017930081114172935, -0.055518440902233124, -0.01617487706243992, -0.04889367148280144, 0.017615044489502907, 0.0115393390879035, 0.001394036808051169, 0.0618191733956337, -0.006525757256895304, 0.013105520978569984 ]
17,267
imodels.tree.cart_wrapper
_set_complexity
Set complexity as number of non-leaf nodes
def _set_complexity(self): """Set complexity as number of non-leaf nodes """ self.complexity_ = compute_tree_complexity(self.tree_)
(self)
[ -0.03433365002274513, 0.002579283667728305, 0.052037205547094345, 0.06413491815328598, -0.02341163158416748, 0.03254455327987671, -0.03336242586374283, -0.018027296289801598, -0.022116664797067642, -0.03711101412773132, 0.03346465900540352, 0.021469181403517723, 0.04215456545352936, 0.0043023559264838696, -0.025439275428652763, -0.035611577332019806, 0.0007481200154870749, -0.005929583217948675, -0.0010771863162517548, 0.032800137996673584, -0.04661879315972328, 0.013776058331131935, 0.02494514361023903, 0.006257584784179926, -0.04682326316833496, 0.00585290789604187, 0.012591845355927944, 0.008634530007839203, 0.052480220794677734, -0.04154116287827492, -0.06934886425733566, 0.01841919496655464, -0.06692931801080704, -0.032323043793439865, 0.003135181963443756, -0.01191028393805027, 0.007058419287204742, 0.060386333614587784, -0.02382056787610054, 0.026257149875164032, -0.051900893449783325, -0.003974354360252619, -0.06318073719739914, -0.0006315091741271317, -0.007220290135592222, -0.011799530126154423, 0.05445674806833267, 0.06481648236513138, -0.02922194078564644, -0.08655828982591629, -0.00007674220978515223, 0.014432060532271862, 0.0022278535179793835, 0.009064765647053719, -0.004295966122299433, 0.02799513004720211, 0.059057287871837616, -0.010870902799069881, 0.06430531293153763, -0.02860853634774685, 0.005499348044395447, 0.04075736552476883, -0.04716404154896736, -0.024416934698820114, -0.052752844989299774, -0.02439989522099495, -0.08935268968343735, 0.03915569558739662, 0.005708076059818268, 0.05912544205784798, -0.021775884553790092, -0.013580108992755413, 0.043074674904346466, 0.01552255917340517, -0.0028391287196427584, -0.013546030968427658, -0.006474832538515329, -0.01869181916117668, 0.001634682179428637, -0.006223506759852171, -0.019594887271523476, 0.008276710286736488, 0.05397965759038925, 0.0126259233802557, 0.0024216724559664726, -0.03918977454304695, 0.052786923944950104, 0.004860383924096823, 0.035338953137397766, 0.008979570120573044, -0.026393461972475052, 0.0267342422157526, 0.025268886238336563, 0.03135181963443756, 0.014074240811169147, 0.08355941623449326, -0.007752759847790003, -0.05469529703259468, -0.03489593788981438, -0.0410640686750412, 0.00999339297413826, 0.08355941623449326, -0.018708858639001846, 0.021929234266281128, 0.017124228179454803, -0.03462331369519234, 0.02324124053120613, -0.016485264524817467, 0.009678171016275883, 0.017635399475693703, -0.07197287678718567, 0.030925843864679337, 0.0012225506361573935, 0.03792888671159744, -0.018231764435768127, 0.015284012071788311, -0.04590315371751785, -0.06515726447105408, -0.011688776314258575, 0.019117794930934906, 0.017226461321115494, 0.01954377070069313, 0.012677039951086044, 0.020889854058623314, 0.01889628730714321, 0.03820151090621948, 0.04791375994682312, 0.0663159191608429, -0.015139180235564709, -0.05561540275812149, 0.04225680232048035, 0.009541857987642288, 0.03145405277609825, 0.06594105809926987, 0.02005494199693203, -0.030312439426779747, 0.007369381841272116, -0.02908562868833542, -0.032629746943712234, -0.0030393374618142843, 0.012881509028375149, -0.030261322855949402, 0.06280587613582611, -0.02796105295419693, 0.0188281312584877, 0.05738746374845505, -0.025728939101099968, -0.00687099015340209, -0.07170025259256363, -0.0034333651419728994, 0.04559645056724548, -0.05684221163392067, 0.020071981474757195, -0.02535407990217209, 0.007467356044799089, 0.03341354429721832, -0.009490741416811943, -0.06979187577962875, 0.012830391526222229, -0.007688863668590784, -0.04051882028579712, -0.000780068221502006, -0.0003477027639746666, -0.035202641040086746, -0.026308266445994377, 0.0071989912539720535, 0.012600365094840527, -0.0811057984828949, -0.06648630648851395, 0.011015734635293484, 0.023803528398275375, -0.0379970446228981, -0.03782665356993675, 0.0753125250339508, 0.03850821405649185, 0.029971659183502197, 0.02334347553551197, 0.04109814763069153, -0.044676344841718674, 0.07142762839794159, -0.021997392177581787, 0.0028476484585553408, 0.0015750456368550658, 0.012898547574877739, 0.0369747020304203, 0.0014823958044871688, -0.0035398590844124556, 0.0037954444997012615, 0.004817786626517773, 0.03997357189655304, -0.015573675744235516, -0.025456314906477928, -0.0015867599286139011, -0.03424845635890961, 0.04702772945165634, -0.01687716133892536, 0.024144308641552925, -0.036224983632564545, 0.0013950708089396358, 0.04549421742558479, -0.0403825081884861, 0.04665287211537361, 0.07722089439630508, 0.015096583403646946, 0.0188281312584877, 0.04869755730032921, -0.04079144448041916, 0.07899295538663864, 0.0019541641231626272, 0.016101885586977005, -0.04815230518579483, -0.0003532936971168965, 0.004253368359059095, 0.06413491815328598, -0.02683647722005844, -0.05527462065219879, -0.04181378707289696, 0.021435102447867393, -0.014048682525753975, -0.013384160585701466, -0.004472746048122644, 0.034418847411870956, -0.0047155520878732204, -0.07067790627479553, 0.02799513004720211, -0.050810396671295166, 0.030619142577052116, -0.044914890080690384, 0.002566504292190075, -0.008540814742445946, -0.0011575892567634583, -0.043790314346551895, -0.012847431004047394, -0.026137875393033028, 0.023803528398275375, -0.03918977454304695, 0.0008386399131268263, -0.008655828423798084, -0.08062870055437088, -0.04907241463661194, -0.0622265487909317, -0.07374493032693863, 0.0138782924041152, -0.012591845355927944, -0.07899295538663864, 0.015599234029650688, 0.010223419405519962, 0.04965174198150635, 0.010342692956328392, 0.02922194078564644, -0.050912629812955856, -0.08294600993394852, -0.036327216774225235, -0.032186731696128845, 0.030022775754332542, -0.025797095149755478, 0.03084065020084381, 0.04222272336483002, 0.005601582117378712, 0.02501329965889454, 0.007927410304546356, -0.03489593788981438, -0.013588628731667995, 0.03956463560461998, -0.0009531208779662848, -0.02847222425043583, 0.058784663677215576, -0.019901590421795845, -0.06542988866567612, -0.012523689307272434, 0.04089367762207985, 0.008242632262408733, 0.021622532978653908, 0.010922020301222801, -0.018521428108215332, -0.03925793245434761, -0.017234981060028076, 0.05029922351241112, -0.007505693938583136, 0.03700878098607063, 0.03973502293229103, -0.04048474133014679, -0.04556237533688545, 0.017788751050829887, -0.07987898588180542, -0.017993219196796417, -0.018538467586040497, 0.015088063664734364, -0.051662348210811615, -0.014091280288994312, -0.02063426934182644, 0.04137077182531357, -0.012285142205655575, 0.04965174198150635, 0.08526331931352615, -0.06849691271781921, -0.010180821642279625, -0.00869416631758213, 0.02480883151292801, 0.06413491815328598, -0.04249534755945206, -0.029307136312127113, 0.008638789877295494, -0.06968964636325836, 0.05827349051833153, 0.022031469270586967, 0.035747889429330826, -0.017405372112989426, 0.059159521013498306, 0.07790245860815048, -0.029392331838607788, 0.051321566104888916, -0.008340606465935707, 0.04791375994682312, 0.032936450093984604, -0.05319586023688316, 0.02399095892906189, -0.04593723267316818, 0.04712996631860733, 0.05036738142371178, -0.029716072604060173, -0.021707728505134583, -0.04525567218661308, -0.009269233793020248, -0.028012169525027275, -0.03176075592637062, 0.08015161007642746, 0.008936972357332706, 0.013997565023601055, -0.043756235390901566, -0.03949647769331932, -0.02025941014289856, 0.04508528113365173, -0.01381013635545969, -0.0676790401339531, -0.013869772665202618, 0.08989793807268143, -0.01191028393805027, -0.043960705399513245, 0.0102660171687603, 0.04569868743419647, 0.03349873796105385, -0.02399095892906189, 0.043074674904346466, 0.026495695114135742, -0.0013972007436677814, 0.051355645060539246, -0.0036740414798259735, 0.011407632380723953, 0.021469181403517723, -0.024416934698820114, -0.014985829591751099, -0.017499087378382683, -0.007488654926419258, 0.0188281312584877, -0.008442840538918972, 0.014236112125217915, -0.014244630932807922, -0.04907241463661194, -0.004975397605448961, 0.03769034147262573, -0.029869424179196358, 0.003022298449650407, 0.023633139207959175, 0.03826966881752014, -0.019867511466145515, -0.021366946399211884, 0.014593931846320629, 0.06979187577962875, -0.08253707736730576, 0.015377727337181568, -0.043074674904346466, -0.012566287070512772, -0.011186124756932259, 0.003865730483084917, 0.10046213865280151, -0.03813335672020912, 0.02111136168241501, -0.019901590421795845, 0.026171954348683357, -0.011441710405051708, -0.0037081195041537285, 0.029869424179196358, 0.005558984354138374, -0.03932608664035797, -0.0029584020376205444, 0.026427539065480232, -0.052412066608667374, 0.05912544205784798, 0.03922385349869728, -0.006065895780920982, 0.03349873796105385, 0.0008881595567800105, -0.014585412107408047, -0.06106789410114288, 0.043585844337940216, 0.050265148282051086, -0.01362270675599575, -0.022747108712792397, 0.007970007136464119, 0.015795184299349785, -0.03949647769331932, 0.02676832117140293, 0.03854229301214218, 0.03145405277609825, 0.016135964542627335, 0.025268886238336563, 0.04839085415005684, -0.011049812659621239, 0.01139911264181137, -0.05326401814818382, -0.023973919451236725, 0.008634530007839203, 0.022508561611175537, 0.01474728249013424, -0.09160184115171432, 0.11075371503829956, 0.027909936383366585, 0.07265443354845047, -0.021520297974348068, 0.03407806530594826, 0.02022533118724823, 0.014628009870648384, 0.051219332963228226, 0.03714509308338165, -0.009149960242211819, 0.06430531293153763, -0.007126575335860252, -0.009149960242211819, 0.052786923944950104, -0.03489593788981438, 0.04610762372612953, -0.02131582982838154, -0.009490741416811943, 0.017805788666009903, -0.0663159191608429, -0.02402503602206707, -0.012276623398065567, -0.03489593788981438, 0.014636528678238392, 0.05428635701537132, 0.04767521470785141, 0.04563052952289581, -0.06161314249038696, 0.035066328942775726, 0.027330609038472176, 0.00433856388553977, 0.04075736552476883, -0.043040595948696136, -0.051491957157850266, 0.027535077184438705, 0.032016344368457794, -0.011049812659621239, -0.005742154084146023, -0.03240824118256569, -0.0011842127423733473, -0.03470851108431816, -0.03423141688108444, 0.01350343320518732, 0.0032608448527753353, -0.00920959748327732, 0.060522645711898804, 0.004468486178666353, 0.025950446724891663, -0.01910075545310974, -0.0474366657435894, 0.04092775657773018, 0.01394644845277071, 0.007680343929678202, -0.03458923473954201, 0.05871650576591492, -0.05731930583715439, -0.03932608664035797, -0.051287487149238586, 0.009950795210897923, -0.01981639489531517, -0.032663825899362564, -0.0629081055521965, -0.03891715034842491, -0.04535790532827377, -0.011058332398533821, 0.004447187762707472, 0.03453812003135681, -0.002413152949884534, -0.007876292802393436, -0.034418847411870956, -0.029920540750026703, -0.007863513194024563, 0.004278927110135555, -0.03165852278470993, -0.06396453082561493, -0.03436772897839546, -0.0020127356983721256, 0.006909327581524849, -0.002466399921104312, 0.03864452615380287, 0.0031074935104697943, -0.00920959748327732, -0.037315480411052704, -0.00404677027836442, -0.05428635701537132, 0.01552255917340517, 0.008741023950278759, 0.002634660340845585, 0.025848213583230972, 0.06839467585086823, -0.008472658693790436, 0.008276710286736488, -0.023156045004725456, 0.00953333918005228, 0.03285125643014908, -0.030789531767368317, 0.02138398587703705, 0.033447619527578354, 0.01335008256137371, 0.04055289924144745, -0.009005128405988216, 0.060624878853559494, 0.025967486202716827, 0.01381013635545969, -0.010513083077967167, -0.05643327534198761, 0.0505036935210228, -0.05680813640356064, 0.05319586023688316, -0.030619142577052116, 0.0018402155255898833, -0.0016378770815208554, 0.043858468532562256, 0.018385116010904312, 0.017567243427038193, -0.060181863605976105, -0.0043023559264838696, 0.08192367106676102, -0.025200730189681053, 0.01158654224127531, 0.009013648144900799, -0.03358393535017967, -0.021469181403517723, 0.013724940828979015, -0.005656959023326635, -0.0230367723852396, 0.032050419598817825, 0.004391810856759548, 0.0050904108211398125, 0.04014396294951439, 0.028966356068849564, -0.019799355417490005, 0.035270798951387405, -0.008442840538918972, 0.00691358745098114, 0.013614187017083168, -0.016101885586977005, -0.01381013635545969, 0.07878848910331726, -0.01659601740539074, 0.029886463657021523, -0.01657046005129814, 0.04212049022316933, 0.017567243427038193, -0.03484482318162918, -0.016621576622128487, 0.012608883902430534, -0.036804310977458954, 0.017908023670315742, -0.031709641218185425, -0.05445674806833267, 0.04835677519440651, 0.01369086280465126, 0.0053204381838440895, 0.02450212836265564, 0.016553420573472977, 0.02521776780486107, -0.0014238242292776704, -0.03959871083498001, 0.006602625362575054, -0.06144275143742561, 0.05524054542183876, -0.044199250638484955, -0.004587759729474783, -0.026376422494649887, 0.007829435169696808, -0.04055289924144745, 0.04920872673392296, 0.005771972239017487, 0.010018951259553432, -0.00802538450807333, 0.04246126860380173, -0.01467912644147873, -0.026325305923819542, -0.04085960239171982, -0.06536173075437546, 0.01974823884665966, -0.031709641218185425, -0.03895122930407524, 0.009252195246517658, -0.08185551315546036, -0.032936450093984604, 0.02477475441992283, -0.031709641218185425, -0.035373032093048096, 0.014832478016614914, -0.009788923896849155, 0.05029922351241112, -0.013724940828979015, 0.0121147520840168, 0.026086758822202682, 0.03244232013821602, -0.026274189352989197, 0.017890984192490578, 0.019117794930934906, 0.042802050709724426, 0.05295731499791145, -0.02802920900285244, -0.037042856216430664, -0.04699365422129631, -0.002413152949884534, -0.005141528323292732, -0.024689558893442154, -0.07722089439630508, -0.06491871178150177, 0.04273389279842377, -0.002854038029909134, -0.0477774478495121, -0.07981082797050476, -0.002118164673447609, 0.052480220794677734, -0.08805771917104721, -0.016885681077837944, -0.02131582982838154, -0.005614361260086298, -0.058818742632865906, -0.027807701379060745, -0.058955054730176926, 0.020446838811039925, -0.05639920011162758, 0.0008088215836323798, 0.01481543853878975, 0.014551334083080292, -0.0030840649269521236, -0.04065513238310814, -0.004323654342442751, -0.008834738284349442, -0.06106789410114288, -0.01357158925384283, -0.03728140518069267, -0.03792888671159744, 0.030278360471129417, 0.004677214659750462, -0.011228722520172596, -0.03820151090621948, 0.0025601147208362818, 0.031368859112262726, 0.036940623074769974, 0.03956463560461998, 0.011049812659621239, 0.023394592106342316, -0.0018913326784968376, 0.0505036935210228, -0.04150708392262459, -0.04028027504682541, -0.035543423146009445, 0.01903259940445423, 0.026649046689271927, 0.0756533071398735, -0.0063811177387833595, 0.0034589236602187157, -0.018521428108215332, -0.011356514878571033, 0.015854820609092712, -0.019935667514801025, 0.01362270675599575, 0.04089367762207985, -0.00021791325707454234, -0.01663861609995365, -0.02480883151292801, 0.004374771844595671, 0.04092775657773018, 0.03383952006697655, 0.009661131538450718, -0.024723635986447334, 0.07810692489147186, -0.01737981289625168, -0.04695957526564598, 0.032800137996673584, 0.020140137523412704, -0.06263548135757446, 0.022440405562520027, 0.07347230613231659, -0.0033247412648051977, -0.036293141543865204, -0.043210987001657486, 0.026512734591960907, 0.03786073252558708, -0.01329896505922079, 0.04096183553338051, -0.035986438393592834, -0.0075994087383151054, 0.05677405744791031, 0.007514213677495718, 0.05404781177639961, 0.003921107389032841, -0.0453919842839241, -0.0017741892952471972, -0.02145214192569256, -0.0016336172120645642, -0.05667182430624962, 0.0002364165848121047, 0.004915760830044746, -0.042427193373441696, -0.005184125620871782, 0.029699034988880157, -0.024076152592897415, -0.03922385349869728, -0.0383378230035305, 0.02382056787610054, 0.013145613484084606, 0.010674954392015934, -0.003143701469525695, -0.012131791561841965, 0.011041292920708656, -0.030090931802988052, 0.06301034241914749, 0.037213247269392014, -0.01006154902279377, 0.028966356068849564, 0.06682708859443665, -0.03796296566724777, 0.03837190195918083, -0.04017803817987442, -0.023701295256614685, 0.037315480411052704, -0.001566526130773127, -0.08594488352537155, -0.015002868138253689, -0.0312836654484272, -0.014568372629582882, -0.0015771754551678896, 0.00035941708483733237, 0.011441710405051708, 0.05650143325328827, -0.016246717423200607, -0.052139438688755035, 0.0019435146823525429, 0.02908562868833542, -0.02317308448255062, -0.016451185569167137, 0.08635381609201431, 0.035747889429330826, -0.022389288991689682, -0.007952968589961529, 0.015002868138253689, 0.044676344841718674, -0.010172302834689617, 0.05738746374845505, 0.02854038029909134, -0.0005212879041209817, 0.021980352699756622, 0.004408849868923426, -0.04021211713552475, -0.01257480587810278, -0.06376005709171295, -0.02433173917233944, 0.029443448409438133, 0.044335562735795975, 0.021673649549484253, 0.04655063897371292, 0.014789880253374577 ]
17,275
imodels.tree.cart_wrapper
fit
Build a decision tree classifier from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (class labels) as integers or strings. feature_names : array-like of shape (n_features) The names of the features sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. Splits are also ignored if they would result in any single class carrying a negative weight in either child node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeClassifier Fitted estimator.
def fit(self, X, y, feature_names=None, sample_weight=None, check_input=True): """Build a decision tree classifier from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (class labels) as integers or strings. feature_names : array-like of shape (n_features) The names of the features sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. Splits are also ignored if they would result in any single class carrying a negative weight in either child node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeClassifier Fitted estimator. """ X, y, feature_names = check_fit_arguments(self, X, y, feature_names) super().fit(X, y, sample_weight=sample_weight, check_input=check_input) self._set_complexity()
(self, X, y, feature_names=None, sample_weight=None, check_input=True)
[ -0.008463057689368725, -0.006838652770966291, 0.03938058763742447, -0.0597350038588047, -0.015606846660375595, -0.018415899947285652, 0.005066167563199997, 0.04526793211698532, 0.02112623304128647, 0.012358037754893303, 0.008225230500102043, 0.003944341093301773, 0.014233731664717197, -0.005016807001084089, 0.0050437310710549355, -0.03054957278072834, 0.011263135820627213, -0.044262778013944626, -0.029777755960822105, 0.05865805223584175, -0.016540206968784332, -0.020067228004336357, -0.007929068058729172, 0.06745316833257675, -0.032829124480485916, -0.01010541059076786, 0.008839990943670273, 0.03930879384279251, -0.02354937605559826, -0.013659356161952019, -0.043437112122774124, 0.03453430160880089, -0.07104301452636719, 0.010249004699289799, -0.042108871042728424, -0.00532643124461174, 0.02507506124675274, -0.011128516867756844, 0.009692578576505184, -0.024662228301167488, -0.03952418267726898, -0.05916063115000725, -0.022903205826878548, -0.00715276412665844, -0.0360061340034008, 0.03780105710029602, 0.0006517810397781432, 0.0728379338979721, -0.039703674614429474, -0.061206839978694916, -0.020731348544359207, -0.056396450847387314, 0.014143985696136951, -0.010554141364991665, -0.02726486511528492, 0.010293877683579922, 0.05937601998448372, 0.0004930426366627216, 0.078976571559906, -0.0010006690863519907, 0.03160857781767845, 0.06415051221847534, 0.025434045121073723, 0.011720840819180012, -0.07538672536611557, -0.019708244130015373, -0.0466320738196373, -0.019887736067175865, -0.007215586490929127, 0.05732981115579605, 0.010518242605030537, -0.04045754298567772, 0.008696396835148335, 0.04487305134534836, 0.03588049113750458, 0.007772012148052454, -0.046488478779792786, -0.022957053035497665, -0.015328634530305862, 0.01931336149573326, -0.035234320908784866, 0.028736701235175133, -0.0039017116650938988, -0.06465309113264084, -0.028054630383849144, -0.018810782581567764, 0.03137523680925369, 0.010527217760682106, 0.05740160495042801, 0.04519613832235336, -0.04092422127723694, 0.010338750667870045, 0.032200902700424194, 0.026223810389637947, 0.029508518055081367, 0.03171627223491669, -0.0075521343387663364, 0.031949613243341446, -0.024213498458266258, 0.03465994447469711, -0.032882969826459885, 0.04239605739712715, -0.012725996784865856, 0.06716598570346832, -0.04551922157406807, -0.021233927458524704, -0.024464787915349007, 0.022723712027072906, -0.004310056567192078, -0.04616539552807808, -0.06705828756093979, -0.017796652391552925, 0.05190914496779442, 0.039272893220186234, -0.012815743684768677, -0.043867893517017365, -0.04885777831077576, -0.015364532358944416, -0.11028000712394714, -0.038590822368860245, -0.008763707242906094, 0.005133477039635181, -0.010249004699289799, -0.03340349718928337, -0.040996018797159195, 0.000138124858494848, 0.05711441859602928, -0.0018229676643386483, 0.021144181489944458, -0.06450949609279633, 0.007754063233733177, 0.002253748942166567, -0.00031579408096149564, -0.0007976184715516865, -0.015741465613245964, -0.031949613243341446, -0.015687618404626846, -0.003432788420468569, 0.022741662338376045, -0.04042164236307144, 0.07660727202892303, -0.0741661787033081, 0.029723908752202988, -0.0180030670017004, 0.0527707077562809, 0.012349063530564308, 0.02089289203286171, -0.01747356541454792, -0.020139025524258614, 0.05007832497358322, -0.015983780845999718, -0.015337608754634857, 0.04042164236307144, -0.06501207500696182, -0.029077736660838127, 0.01567864418029785, -0.028862345963716507, -0.053273286670446396, 0.019923634827136993, 0.03406761959195137, 0.029329026117920876, -0.030603419989347458, -0.01997748203575611, 0.04042164236307144, 0.05183734744787216, 0.06910450011491776, 0.005290532484650612, -0.02240062691271305, -0.018649239093065262, -0.012725996784865856, 0.023603225126862526, -0.013892696239054203, -0.015885060653090477, 0.0014852979220449924, -0.028700802475214005, -0.039416488260030746, 0.015660693868994713, 0.02326218970119953, 0.045806411653757095, 0.0501142218708992, 0.005016807001084089, 0.035234320908784866, -0.019833888858556747, -0.02618791162967682, -0.01647738367319107, -0.0014953943900763988, -0.0033901589922606945, 0.04806801304221153, -0.03148293122649193, 0.06741727143526077, -0.000527538824826479, -0.012393936514854431, 0.044047385454177856, 0.03605998307466507, 0.023154493421316147, 0.01915181800723076, -0.0018655970925465226, 0.007291870657354593, -0.01747356541454792, 0.06910450011491776, 0.03758566826581955, -0.021467266604304314, 0.07097121328115463, 0.0017421961529180408, 0.013058057986199856, 0.06716598570346832, -0.02001338079571724, 0.05711441859602928, -0.014233731664717197, -0.032416291534900665, 0.006228379439562559, -0.0039600469172000885, -0.07079172134399414, 0.061673521995544434, -0.01601070538163185, 0.020174924284219742, -0.01481708139181137, -0.05165785551071167, -0.04598590359091759, -0.04322172328829765, 0.02392631024122238, 0.014754259027540684, 0.003627986181527376, 0.04573461413383484, 0.004303325433284044, -0.07430977374315262, 0.042324259877204895, -0.03912930190563202, 0.00921692419797182, -0.05826316773891449, -0.0024007081519812346, -0.07452516257762909, 0.02392631024122238, -0.01221444457769394, -0.025003263726830482, -0.032434239983558655, 0.044262778013944626, -0.016091475263237953, -0.030208537355065346, 0.024482736364006996, -0.01979799009859562, -0.015777364373207092, -0.002613855293020606, -0.0627145767211914, 0.0338522307574749, 0.016217119991779327, 0.026995627209544182, -0.015310685150325298, 0.0331881083548069, -0.016953038051724434, -0.062068402767181396, -0.021718556061387062, -0.01602865383028984, -0.06048887223005295, 0.009288721717894077, -0.01845179870724678, 0.03469584137201309, -0.027085373178124428, -0.014906827360391617, -0.015140167437493801, -0.021180080249905586, 0.029077736660838127, -0.01624404452741146, 0.1098492294549942, -0.05230402946472168, -0.02374681830406189, 0.034839436411857605, -0.010949023999273777, -0.0075700837187469006, -0.027587952092289925, -0.0804843008518219, 0.058981139212846756, -0.0022200942039489746, 0.01700688526034355, -0.013542686589062214, -0.005609131418168545, -0.015122218057513237, -0.04092422127723694, -0.009270772337913513, 0.014583741314709187, -0.007395078893750906, -0.03851902484893799, 0.014260655269026756, 0.05560668557882309, -0.0487859807908535, 0.0016546937404200435, -0.017850499600172043, 0.0044828178361058235, -0.0054296390153467655, -0.013937569223344326, -0.035718947649002075, 0.03313425928354263, -0.0031231644097715616, 0.030441878363490105, 0.026475099846720695, -0.031734220683574677, -0.03171627223491669, -0.020946739241480827, 0.0018555006245151162, 0.0016793739050626755, -0.03191371262073517, 0.008220742456614971, -0.031123947352170944, -0.04652437940239906, 0.03313425928354263, -0.0019979726057499647, 0.04925265908241272, -0.027318712323904037, -0.011783663183450699, 0.04286273941397667, 0.03168037533760071, 0.06809934228658676, 0.04943215101957321, -0.03272143006324768, -0.029957247897982597, -0.09039227664470673, 0.05190914496779442, -0.020605705678462982, 0.03101625293493271, 0.024339143186807632, -0.01981593854725361, -0.007166226394474506, -0.02087494358420372, -0.01692611537873745, -0.0461294949054718, 0.01629789173603058, 0.04289863631129265, 0.029777755960822105, -0.011514424346387386, -0.0093335947021842, -0.008911787532269955, -0.0016345009207725525, 0.06558644771575928, -0.013785000890493393, -0.003841133089736104, 0.03424711152911186, 0.023369884118437767, 0.022113438695669174, -0.026062266901135445, 0.024482736364006996, -0.018083838745951653, 0.027821291238069534, -0.03390607610344887, 0.0016681556589901447, -0.008732295595109463, 0.0013731153449043632, 0.023459630087018013, 0.026923829689621925, 0.0373343788087368, 0.05478101968765259, -0.04149859771132469, 0.007350205909460783, 0.025362247601151466, 0.016863292083144188, 0.012438809499144554, -0.0007286261534318328, -0.014987599104642868, 0.03930879384279251, 0.022346779704093933, -0.038985706865787506, 0.03317015990614891, 0.003762605367228389, -0.03510867431759834, 0.028018733486533165, -0.02530840039253235, -0.04907316714525223, -0.006717495620250702, 0.040960121899843216, 0.03905750438570976, -0.03516252338886261, 0.060776058584451675, -0.030657269060611725, -0.07129430025815964, 0.06357613950967789, 0.020067228004336357, 0.09627962112426758, -0.021880099549889565, 0.01639661192893982, 0.05334508419036865, 0.008166895247995853, 0.002752961590886116, 0.029723908752202988, 0.008790630847215652, -0.047601331025362015, -0.023190392181277275, -0.06020168587565422, 0.016351738944649696, 0.009988741017878056, 0.03577279672026634, -0.01042849663645029, 0.012977286241948605, 0.008252154104411602, -0.023800665512681007, 0.005182837136089802, -0.04821160435676575, -0.015355558134615421, 0.05029371380805969, 0.04257554933428764, -0.05510410666465759, -0.012708048336207867, 0.0016165516572073102, -0.007453413680195808, -0.05187324807047844, -0.02902388945221901, -0.039165198802948, 0.05456563085317612, 0.007780986838042736, 0.02618791162967682, -0.00936051830649376, 0.010195157490670681, 0.005371304228901863, 0.02658279612660408, 0.06763266026973724, 0.024069905281066895, -0.07933555543422699, 0.004087934736162424, 0.02722896635532379, 0.0842895358800888, 0.06425821036100388, -0.024213498458266258, 0.008965635672211647, 0.006977759301662445, -0.001384333590976894, 0.0012104505440220237, 0.02658279612660408, 0.027552053332328796, -0.0237288698554039, -0.051119379699230194, 0.04900136962532997, -0.03737027570605278, -0.07639188319444656, -0.02022877149283886, -0.06364793330430984, -0.03270347788929939, -0.013901671394705772, -0.0333496518433094, -0.019726192578673363, 0.02527250163257122, -0.03413941711187363, 0.007991890422999859, -0.07624828815460205, -0.0623914897441864, 0.05420664697885513, -0.0068925004452466965, -0.038088247179985046, -0.03645486757159233, -0.010563116520643234, -0.023657072335481644, -0.0735200047492981, -0.04533972963690758, 0.06113504245877266, 0.010850303806364536, 0.022562170401215553, 0.022149337455630302, -0.025828927755355835, 0.008341900072991848, 0.025613537058234215, -0.013811925426125526, 0.06020168587565422, 0.0054296390153467655, 0.02128777466714382, -0.03618562966585159, 0.06178121641278267, 0.02220318466424942, -0.058155473321676254, -0.016136348247528076, 0.027354611083865166, -0.005995039362460375, 0.033080413937568665, -0.0549246147274971, 0.04160629212856293, 0.007166226394474506, -0.014215782284736633, 0.01891847886145115, -0.027336662635207176, 0.025775080546736717, 0.014718360267579556, -0.023621173575520515, -0.011182364076375961, -0.043437112122774124, 0.0013540443032979965, -0.01352473720908165, 0.07718164473772049, 0.014897853136062622, -0.01739279367029667, -0.05610926076769829, -0.030657269060611725, -0.02351347915828228, -0.007377129513770342, 0.0067578814923763275, -0.022292930632829666, -0.00781239802017808, 0.016531232744455338, -0.04921676218509674, -0.020103126764297485, 0.010374649427831173, 0.015247862786054611, -0.01891847886145115, -0.030657269060611725, -0.008270103484392166, 0.01143365353345871, 0.015741465613245964, -0.015660693868994713, 0.006569414399564266, 0.024339143186807632, 0.011128516867756844, 0.05212453380227089, -0.0004484500386752188, -0.05607336387038231, 0.021251875907182693, -0.04785262048244476, -0.03290092200040817, 0.02749820612370968, 0.046488478779792786, 0.01636071503162384, 0.04393969103693962, -0.01364140771329403, 0.07639188319444656, -0.01054516714066267, 0.009432314895093441, 0.02503916248679161, 0.024716075509786606, 0.1055414155125618, -0.004538909066468477, 0.015122218057513237, 0.0506168007850647, 0.0034440066665410995, 0.021610861644148827, 0.01328242290765047, 0.03577279672026634, 0.020480060949921608, -0.04774492606520653, -0.03031623363494873, 0.04892957583069801, -0.01330934651196003, -0.010231055319309235, 0.022562170401215553, 0.029131583869457245, 0.017087657004594803, -0.02220318466424942, 0.04042164236307144, -0.007390591315925121, -0.013336271047592163, 0.02902388945221901, -0.009970791637897491, -0.02044416218996048, 0.037226684391498566, 0.009055381640791893, -0.006632236763834953, 0.0009580396581441164, -0.02611611597239971, -0.04358070716261864, -0.012887540273368359, 0.06623262166976929, 0.08113047480583191, -0.023854514583945274, 0.015777364373207092, 0.03877031430602074, 0.03096240572631359, 0.010150284506380558, -0.033116310834884644, 0.00323983421549201, 0.03367273882031441, -0.026026370003819466, 0.0698583647608757, 0.00030401491676457226, -0.07768422365188599, 0.029616214334964752, -0.01776972785592079, -0.03652666136622429, 0.04907316714525223, 0.030208537355065346, -0.016306865960359573, 0.06382742524147034, -0.05876574665307999, 0.05995039641857147, -0.033295802772045135, 0.01601070538163185, -0.08752039819955826, 0.04149859771132469, 0.008023301139473915, -0.02132367342710495, -0.02945467084646225, -0.002349104266613722, 0.004361660685390234, -0.034839436411857605, -0.013722178526222706, -0.03182396665215492, -0.034372758120298386, 0.006775830872356892, 0.01956465095281601, -0.03096240572631359, 0.04849879443645477, 0.03801644966006279, 0.011415704153478146, -0.02241857536137104, -0.07255075126886368, -0.036167677491903305, 0.045806411653757095, -0.07380719482898712, -0.004413264337927103, 0.011038770899176598, 0.009925918653607368, 0.006152095273137093, 0.029975198209285736, 0.004958472214639187, -0.012842667289078236, -0.009934893809258938, 0.0017332215793430805, -0.02595457248389721, 0.012806768529117107, -0.034839436411857605, 0.06885320693254471, 0.014135010540485382, -0.055498987436294556, 0.058550357818603516, 0.027821291238069534, -0.03894980624318123, -0.026510998606681824, -0.05054500326514244, 0.012887540273368359, -0.052842505276203156, 0.01934926025569439, 0.013776026666164398, -0.040529340505599976, -0.02241857536137104, -0.025344299152493477, -0.07825860381126404, 0.006533516105264425, 0.036598458886146545, 0.026241760700941086, -0.029382873326539993, -0.011891358532011509, -0.010033614002168179, 0.03708308935165405, 0.020282618701457977, 0.015185040421783924, 0.02328013814985752, 0.045160237699747086, -0.02634945511817932, -0.06626851856708527, 0.009100254625082016, 0.039021603763103485, -0.011702891439199448, -0.004603974986821413, -0.06357613950967789, -0.018828732892870903, 0.03191371262073517, 0.055498987436294556, 0.0000811921781860292, -0.026457151398062706, -0.0018353078048676252, -0.03381633013486862, -0.020839044824242592, 0.06881731003522873, 0.030423928052186966, -0.005694390274584293, 0.03566510230302811, 0.015095294453203678, 0.011272110044956207, -0.020928790792822838, 0.0197441428899765, 0.11473141610622406, 0.04218066856265068, -0.0067040338180959225, 0.0911102443933487, 0.0036504226736724377, -0.0069373734295368195, -0.04616539552807808, -0.015570948831737041, -0.06494028121232986, 0.0069912211038172245, 0.00033598695881664753, -0.011254160664975643, -0.03168037533760071, -0.030603419989347458, -0.005259121302515268, -0.020533908158540726, 0.017069708555936813, 0.033529143780469894, 0.05750930309295654, 0.060309380292892456, 0.04203707352280617, 0.027821291238069534, 0.06845832616090775, -0.007619443815201521, -0.04770902916789055, -0.02245447412133217, -0.013461914844810963, -0.03428301215171814, 0.020839044824242592, 0.01770690642297268, 0.04526793211698532, -0.009701553732156754, -0.02216728776693344, 0.078976571559906, -0.044083286076784134, -0.05786828696727753, 0.032667580991983414, -0.007538672536611557, 0.005124502349644899, -0.015140167437493801, -0.05162195861339569, 0.030208537355065346, -0.006838652770966291, 0.0010203010169789195, -0.06662750244140625, 0.077325239777565, 0.06278637051582336, -0.042719144374132156, -0.008440621197223663, 0.01329139806330204, -0.053955357521772385, -0.03623947501182556, -0.0036122805904597044, -0.002073134994134307, -0.020085178315639496, -0.0016760084545239806, 0.035700999200344086, 0.006686084438115358, 0.06379152834415436, -0.023226290941238403, 0.014664513058960438, 0.019223615527153015, -0.035934340208768845, 0.018792834132909775, 0.06978657096624374, -0.07125840336084366, 0.0487859807908535, -0.06336075067520142, 0.04221656545996666, 0.03406761959195137, -0.05097578465938568, -0.009414366446435452, -0.003387915436178446, -0.05980680137872696, 0.02243652567267418, 0.003466443158686161, 0.09943868219852448, 0.04813981056213379, -0.01978004164993763, 0.015463253483176231, 0.04017035663127899, 0.01330934651196003, 0.02328013814985752, 0.0052411723881959915, -0.01581326313316822, 0.02546994388103485, 0.00233339867554605, -0.005012319888919592, -0.02726486511528492, -0.047960314899683, 0.031070100143551826, -0.0003222445957362652, 0.061206839978694916, 0.0015245618997141719, -0.07125840336084366, -0.02067750133574009, -0.009522061794996262, -0.03273937851190567, 0.008373310789465904, -0.05381176248192787, -0.014099112711846828, -0.009077818132936954, -0.03408556804060936, 0.015454278327524662, 0.10173618048429489, 0.05072449520230293 ]
17,284
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 ---------- check_input : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``check_input`` parameter in ``fit``. 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.tree.cart_wrapper.GreedyTreeClassifier, *, check_input: Union[bool, NoneType, str] = '$UNCHANGED$', feature_names: Union[bool, NoneType, str] = '$UNCHANGED$', sample_weight: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.tree.cart_wrapper.GreedyTreeClassifier
[ 0.0437953919172287, -0.058368489146232605, -0.019139079377055168, 0.004718182608485222, -0.002958376659080386, -0.017293661832809448, -0.011548132635653019, 0.010007113218307495, 0.05703674256801605, 0.010910797864198685, -0.021460121497511864, 0.006535063497722149, 0.05125316232442856, -0.005307955667376518, -0.01993812806904316, 0.03747911378741264, 0.029983291402459145, 0.023800188675522804, 0.030135490000247955, -0.033636078238487244, 0.019196154549717903, -0.04280609264969826, -0.028727645054459572, 0.01498213317245245, 0.008494631387293339, 0.06555990874767303, 0.037935711443424225, -0.0453173853456974, 0.08994986861944199, -0.006573113612830639, -0.025169983506202698, -0.0142116229981184, 0.014601633884012699, 0.06289642304182053, 0.028974968940019608, -0.03156236186623573, -0.010768110863864422, 0.022753817960619926, -0.0625920221209526, -0.015315068885684013, -0.03719373792409897, -0.026749052107334137, 0.04858967289328575, -0.09672274440526962, 0.05943388491868973, 0.031904809176921844, -0.005369786638766527, 0.10509371757507324, -0.019158104434609413, -0.01772172376513481, 0.013165252283215523, -0.011215196922421455, 0.01511530764400959, -0.005089168902486563, -0.005854922346770763, 0.057455290108919144, 0.05559084564447403, 0.04406173899769783, 0.05947193503379822, 0.028023723512887955, 0.027148576453328133, 0.034701474010944366, 0.03238043189048767, -0.008385238237679005, -0.04345294088125229, -0.03871573507785797, -0.046420831233263016, -0.01381209958344698, 0.008675368502736092, 0.031676508486270905, 0.028670569881796837, -0.017930997535586357, 0.005474423989653587, 0.026691976934671402, 0.021612321957945824, -0.02638757973909378, -0.04052310064435005, -0.05243270844221115, 0.05292735621333122, -0.041664596647024155, 0.01707487553358078, -0.017255611717700958, -0.027034426108002663, -0.08112230151891708, -0.009112942032516003, -0.032209206372499466, -0.008456581272184849, -0.04927457123994827, 0.03938160836696625, 0.0029702673200517893, -0.08553608506917953, 0.05151951313018799, -0.016237778589129448, -0.002998804673552513, 0.00953624676913023, -0.030630137771368027, 0.001857308903709054, -0.058406535536050797, 0.0024565942585468292, -0.02657782845199108, 0.0006955990102142096, 0.035900045186281204, 0.0664350613951683, 0.07571922242641449, 0.03704154118895531, -0.050530217587947845, -0.016703888773918152, -0.008618293330073357, -0.011205684393644333, -0.00385492667555809, 0.011453008279204369, -0.010825185105204582, -0.05958608165383339, 0.01911054365336895, 0.0012925062328577042, 0.0010820429306477308, -0.01970982737839222, -0.04333879053592682, -0.05087266489863396, -0.01494408305734396, -0.026844177395105362, 0.01110104750841856, -0.025379257276654243, -0.06365741789340973, 0.0006611163262277842, 0.0042782314121723175, 0.009560028091073036, 0.013393551111221313, 0.04478468745946884, -0.07248498499393463, -0.03161943331360817, -0.006791900377720594, -0.03900110721588135, 0.09291776269674301, 0.04402368888258934, 0.016228266060352325, 0.04744817689061165, 0.020489851012825966, -0.011957168579101562, 0.05905338376760483, -0.002965511055663228, 0.02009032666683197, 0.03679421544075012, -0.021326947957277298, -0.0013412575935944915, -0.0507204644382, 0.026939302682876587, -0.00015576662553939968, 0.02566463127732277, -0.034130726009607315, 0.02593098022043705, -0.018273446708917618, 0.0028680083341896534, -0.01268011610955, -0.0026563559658825397, 0.0018941696034744382, 0.023039191961288452, -0.004841845016926527, 0.011243733577430248, -0.018197346478700638, -0.004782392177730799, -0.005640891846269369, -0.012128393165767193, -0.09139576554298401, 0.03523417189717293, 0.02144109643995762, -0.006102246697992086, -0.04851357266306877, -0.03829718381166458, 0.03550051897764206, -0.06087977811694145, -0.027757374569773674, -0.03380730003118515, 0.006829950027167797, 0.03531027212738991, 0.03930550813674927, 0.017122438177466393, 0.005574304610490799, 0.008627805858850479, 0.02808079682290554, 0.013745512813329697, -0.05258490890264511, -0.08553608506917953, -0.03580491989850998, 0.00637810816988349, 0.07119128853082657, 0.006435182876884937, 0.001882279058918357, -0.04364319145679474, 0.045583732426166534, 0.029374493286013603, -0.008370969444513321, 0.053688354790210724, 0.03441609814763069, -0.031200885772705078, -0.04805697500705719, -0.05909143388271332, 0.0487799234688282, 0.01381209958344698, 0.0768226683139801, 0.058406535536050797, 0.009013060480356216, 0.018891755491495132, 0.04904627054929733, 0.006107002962380648, 0.049921419471502304, 0.0364898182451725, -0.00011422389798099175, -0.05239465832710266, -0.013051102869212627, 0.013231839053332806, -0.026596853509545326, 0.01809270866215229, -0.008470850065350533, 0.003945295233279467, -0.010834697633981705, 0.017807334661483765, -0.015581417828798294, -0.012052293866872787, -0.022867966443300247, 0.09276556223630905, 0.04817112535238266, 0.033598028123378754, 0.019804952666163445, 0.02589293010532856, -0.031124787405133247, 0.05555279925465584, -0.0518619604408741, -0.03664201498031616, -0.0791437104344368, 0.004672998562455177, 0.0007520793005824089, 0.018720531836152077, 0.04383344203233719, -0.034777574241161346, -0.01993812806904316, 0.03618541732430458, 0.038544509559869766, -0.013441113755106926, -0.006720556877553463, -0.005931022111326456, 0.04938872158527374, 0.050073616206645966, 0.03310338035225868, -0.05502010136842728, -0.0169987753033638, -0.00455171475186944, 0.06780485063791275, 0.04288219287991524, -0.0018466073088347912, 0.04276804253458977, -0.025797806680202484, -0.05193806067109108, -0.0028156896587461233, -0.031048687174916267, -0.034054625779390335, -0.042083147913217545, 0.0002672408299986273, 0.04292024299502373, -0.01528653223067522, -0.030744288116693497, 0.012147418223321438, 0.0019096274627372622, 0.04139824956655502, 0.018102221190929413, 0.011785944923758507, 0.04314854368567467, 0.013859662227332592, -0.05566694587469101, 0.004770501516759396, -0.009488684125244617, 0.04505103453993797, -0.0014887008583173156, 0.017626598477363586, -0.018263934180140495, -0.05239465832710266, -0.00012529701052699238, -0.024332886561751366, -0.04326269403100014, -0.012356692925095558, 0.050149716436862946, -0.023609938099980354, 0.04330074042081833, 0.006126027554273605, -0.014420897699892521, -0.03068721294403076, -0.0045683616772294044, 0.053650304675102234, 0.012280592694878578, -0.020889373496174812, 0.011082022450864315, 0.007728877943009138, -0.005869191139936447, -0.042577795684337616, 0.032133106142282486, -0.0034482686314731836, -0.07309378683567047, 0.001287749968469143, 0.0017086765728890896, -0.011529107578098774, 0.020946448668837547, -0.0011664660414680839, -0.0330272801220417, -0.017816847190260887, 0.05281320586800575, -0.02155524678528309, 0.0810462012887001, -0.008023764938116074, -0.01175740733742714, 0.005688454490154982, 0.0038953544571995735, 0.04524128511548042, -0.033559978008270264, -0.0445563867688179, -0.0012485110200941563, -0.0026373309083282948, -0.013916736468672752, 0.018197346478700638, 0.04018065333366394, 0.1041044220328331, -0.014420897699892521, 0.04737207666039467, -0.03439707309007645, -0.007348379585891962, -0.013992836698889732, -0.012166443280875683, -0.0035029654391109943, -0.004171215929090977, -0.038316208869218826, 0.0009072513785213232, -0.03125796094536781, -0.0038525485433638096, 0.022639667615294456, 0.024770459160208702, -0.08614488691091537, 0.03125796094536781, -0.004135544411838055, -0.02347676455974579, 0.014592122286558151, -0.012356692925095558, 0.03502489626407623, -0.01745537482202053, -0.006235421169549227, -0.012708653695881367, -0.036394692957401276, -0.011215196922421455, 0.05190001055598259, -0.0023329320829361677, 0.0791437104344368, -0.0234387144446373, 0.021422071382403374, -0.038087911903858185, 0.05212831124663353, 0.04900822043418884, 0.08431849628686905, -0.006601650733500719, -0.013802587054669857, -0.045812033116817474, -0.007519603706896305, -0.07092494517564774, 0.02846129611134529, -0.04855162277817726, -0.003633761778473854, 0.006107002962380648, 0.01085372269153595, -0.0009268708527088165, -0.02543633244931698, 0.0037383988965302706, 0.025835856795310974, -0.05650404468178749, 0.003498209174722433, -0.09839694201946259, -0.054335203021764755, 0.023990437388420105, 0.01914859190583229, 0.0021783546544611454, -0.03999040275812149, -0.017930997535586357, -0.05075851455330849, 0.028746670112013817, 0.032171156257390976, 0.022145019844174385, -0.005017825402319431, 0.011338858865201473, 0.010368587449193, -0.045773983001708984, 0.025759756565093994, 0.0161331407725811, 0.038430359214544296, -0.017731236293911934, 0.021916721016168594, -0.05281320586800575, -0.014278210699558258, 0.010653961449861526, -0.0189202930778265, -0.069935642182827, 0.02619732916355133, -0.01033053733408451, 0.007224717643111944, -0.042653895914554596, 0.05448739975690842, -0.056465994566679, 0.013060614466667175, 0.02450411021709442, 0.03445414826273918, 0.009716982953250408, 0.038316208869218826, 0.026996375992894173, 0.015657518059015274, 0.01922469213604927, -0.04885602369904518, -0.04889407008886337, 0.02012837678194046, -0.024142637848854065, -0.0016789501532912254, 0.01658022776246071, 0.028689594939351082, -0.004770501516759396, 0.029393518343567848, 0.00647323252633214, 0.05616159364581108, 0.008661099709570408, 0.019472016021609306, 0.034701474010944366, 0.05167171359062195, 0.006829950027167797, -0.04508908465504646, -0.042653895914554596, -0.002506534568965435, 0.04139824956655502, 0.00884183682501316, 0.029393518343567848, -0.041474349796772, -0.008532681502401829, -0.036318592727184296, -0.015457755886018276, -0.05650404468178749, -0.025036808103322983, 0.013279401697218418, 0.05113901197910309, -0.05638989433646202, -0.04467053711414337, -0.017655136063694954, -0.022183069959282875, -0.042615845799446106, -0.054030802100896835, 0.010463711805641651, 0.038810860365629196, 0.05688454210758209, -0.0664350613951683, 0.05323175713419914, 0.030820388346910477, 0.005355517845600843, 0.041702646762132645, -0.02347676455974579, -0.05212831124663353, 0.03529124706983566, -0.050530217587947845, -0.006068952847272158, 0.03879183530807495, 0.034244876354932785, 0.0027538586873561144, -0.06255397200584412, -0.020889373496174812, -0.02789054811000824, 0.03468244895339012, 0.016779989004135132, 0.010577861219644547, -0.06658725440502167, -0.032551657408475876, 0.030249640345573425, -0.06978344917297363, -0.028480321168899536, -0.010311512276530266, -0.023305540904402733, 0.0217074453830719, -0.013298426754772663, 0.02066107466816902, -0.07122933864593506, -0.02201184444129467, 0.01692267507314682, -0.024561185389757156, 0.04094165191054344, 0.05129121243953705, -0.017141463235020638, -0.06620676070451736, -0.013279401697218418, -0.0020035631023347378, -0.022829916328191757, -0.007529116235673428, -0.00953624676913023, 0.06502721458673477, 0.054106902331113815, 0.028137871995568275, -0.017407812178134918, 0.05330785736441612, 0.04535543546080589, 0.015543368645012379, -0.01895834319293499, -0.014392360113561153, -0.01870150677859783, -0.03300825506448746, 0.020223502069711685, 0.041854847222566605, 0.015533856116235256, -0.050149716436862946, -0.0468774288892746, -0.01576215587556362, 0.0018121246248483658, -0.007043980527669191, -0.024751434102654457, -0.00424969382584095, -0.004889407195150852, 0.06080367788672447, -0.004458968061953783, -0.017322199419140816, -0.07743147015571594, 0.008085595443844795, -0.05574304610490799, -0.013992836698889732, 0.06848975270986557, 0.012794265523552895, 0.053612254559993744, -0.05167171359062195, 0.011614720337092876, -0.0009756222134456038, 0.012955977581441402, -0.018749069422483444, -0.01298451516777277, 0.028955943882465363, -0.011205684393644333, -0.006178346462547779, -0.010206875391304493, 0.01734122447669506, 0.015838254243135452, 0.06148857623338699, -0.02423776127398014, -0.011500570923089981, 0.04664912819862366, 0.005303199402987957, 0.024751434102654457, 0.04025675356388092, -0.06514136493206024, 0.031600408256053925, -0.006045171525329351, -0.04406173899769783, 0.023457739502191544, -0.013441113755106926, 0.022791866213083267, -0.09139576554298401, -0.06266812235116959, 0.038506459444761276, 0.041740696877241135, 0.015609955415129662, -0.012309130281209946, 0.010311512276530266, 0.053650304675102234, -0.018121246248483658, 0.03023061528801918, 0.016370952129364014, -0.020109351724386215, -0.026920277625322342, 0.025493407621979713, 0.029013019055128098, -0.037859611213207245, 0.07735536992549896, 0.05330785736441612, 0.015667030587792397, -0.04668717831373215, -0.09428755939006805, -0.00858975574374199, 0.007581434678286314, -0.003227103967219591, 0.02751005068421364, -0.035823944956064224, 0.058292388916015625, 0.01703682541847229, -0.018140271306037903, -0.0326467826962471, -0.06000463292002678, 0.026768077164888382, -0.046496931463479996, 0.0217074453830719, -0.022106969729065895, -0.06746240705251694, 0.003093929262831807, -0.014611146412789822, 0.04295829311013222, -0.01688462682068348, 0.007348379585891962, -0.03154333680868149, -0.07016394287347794, -0.03521514683961868, -0.036508843302726746, 0.024599235504865646, 0.0449368879199028, -0.05585719645023346, -0.032247256487607956, 0.03426390141248703, -0.02747200056910515, -0.04025675356388092, 0.02005227655172348, 0.011843019165098667, 0.009950038976967335, -0.007676559500396252, 0.002756236819550395, -0.046040333807468414, 0.02273479290306568, 0.0166182778775692, -0.022259168326854706, -0.004095116164535284, -0.020832298323512077, 0.01189058180898428, -0.02450411021709442, 0.026939302682876587, 0.021174747496843338, -0.030915511772036552, 0.054259102791547775, 0.049769219011068344, -0.09816864132881165, -0.020261550322175026, -0.03234238177537918, 0.008608780801296234, 0.005883459933102131, -0.05688454210758209, 0.014496996998786926, 0.009032085537910461, -0.07020199298858643, -0.010492249391973019, -0.05243270844221115, 0.012185468338429928, -0.025208033621311188, 0.04288219287991524, 0.0019869161769747734, 0.09230896085500717, -0.01692267507314682, 0.07073469460010529, 0.024675335735082626, -0.06575015932321548, 0.016713401302695274, 0.0020535034127533436, 0.00953624676913023, -0.021098647266626358, 0.028252022340893745, -0.0660545602440834, 0.037783510982990265, -0.003990479279309511, -0.04280609264969826, 0.08774297684431076, -0.012375717051327229, -0.037745460867881775, 0.07716511934995651, -0.03715568780899048, 0.005032094195485115, 0.058825086802244186, -0.015952404588460922, -0.015096282586455345, -0.003362656570971012, 0.030706238001585007, -0.04546958580613136, -0.024941684678196907, -0.004782392177730799, 0.058558735996484756, -0.031980909407138824, -0.0019916724413633347, 0.021574271842837334, -0.038164012134075165, -0.05452544987201691, 0.07408308237791061, 0.0560854971408844, 0.015781180933117867, 0.008656343445181847, -0.0028822768945246935, 0.01564800553023815, 0.021288897842168808, -0.01846369542181492, 0.03049696423113346, -0.04744817689061165, -0.0272817499935627, 0.034435123205184937, -0.00690604979172349, 0.042235344648361206, -0.04874187335371971, 0.05144341289997101, 0.0001594824279891327, -0.00760521600022912, 0.027186626568436623, 0.00023186634643934667, -0.011491058394312859, -0.053764455020427704, 0.00031242502154782414, -0.08211160451173782, 0.057759691029787064, 0.02454216033220291, -0.009032085537910461, 0.00037455331766977906, -0.08386189490556717, -0.07667046785354614, 0.030439889058470726, -0.0070915427058935165, -0.002620684215798974, 0.018073683604598045, 0.005797847639769316, -0.014325772412121296, 0.007724121678620577, 0.007733634207397699, 0.007029711734503508, -0.020033251494169235, 0.004694401752203703, -0.029754990711808205, 0.04097970202565193, 0.007552897557616234, 0.04128409922122955, -0.04307244345545769, 0.0802852064371109, 0.009621858596801758, -0.006615919526666403, -0.0071486178785562515, 0.010149800218641758, 0.028765695169568062, 0.014373335056006908, -0.00819498859345913, 0.04040895402431488, -0.03896305710077286, -0.006986905820667744, -0.00041171140037477016, -0.022373318672180176, -0.0328560546040535, -0.0013388794614002109, -0.01937689259648323, 0.08378579467535019, 0.0066492133773863316, -0.012423279695212841, -0.005193806253373623, 0.0368703156709671, -0.081426702439785, 0.006064196582883596, -0.0060023656114935875, 0.024903634563088417, 0.050149716436862946, -0.042577795684337616, 0.05893923342227936, -0.03753618896007538, 0.04383344203233719, 0.020908398553729057, 0.02216404490172863, 0.008152183145284653, 0.005740772932767868, 0.0741591826081276, -0.013536238111555576, 0.02800469845533371, 0.016028504818677902, 0.00597382802516222, 0.0037169959396123886, 0.02163134701550007, -0.054373253136873245, 0.0036932146176695824, 0.014896520413458347, 0.033788278698921204, -0.026064155623316765, -0.05121511220932007, -0.020413750782608986, 0.0023483899421989918, -0.0150772575289011, 0.021307922899723053, 0.027110526338219643, 0.02009032666683197, 0.05627574399113655 ]
17,289
imodels.tree.cart_wrapper
GreedyTreeRegressor
Wrapper around sklearn greedy tree regressor
class GreedyTreeRegressor(DecisionTreeRegressor): """Wrapper around sklearn greedy tree regressor """ def fit(self, X, y, feature_names=None, sample_weight=None, check_input=True): """Build a decision tree regressor from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (real numbers). Use ``dtype=np.float64`` and ``order='C'`` for maximum efficiency. sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeRegressor Fitted estimator. """ if feature_names is not None: self.feature_names = feature_names else: self.feature_names = ["X" + str(i + 1) for i in range(X.shape[1])] super().fit(X, y, sample_weight=sample_weight, check_input=check_input) self._set_complexity() def _set_complexity(self): """Set complexity as number of non-leaf nodes """ self.complexity_ = compute_tree_complexity(self.tree_) def __str__(self): if hasattr(self, 'feature_names') and self.feature_names is not None: return 'GreedyTree:\n' + export_text(self, feature_names=self.feature_names, show_weights=True) else: return 'GreedyTree:\n' + export_text(self, show_weights=True)
(*, criterion='squared_error', splitter='best', max_depth=None, min_samples_split=2, min_samples_leaf=1, min_weight_fraction_leaf=0.0, max_features=None, random_state=None, max_leaf_nodes=None, min_impurity_decrease=0.0, ccp_alpha=0.0, monotonic_cst=None)
[ 0.03325052559375763, -0.041461896151304245, 0.019626280292868614, -0.01367027498781681, -0.00006659656355623156, -0.014010881073772907, -0.04845813289284706, 0.01657002978026867, 0.038921158760786057, -0.01631227321922779, 0.038111068308353424, 0.026604102924466133, 0.021264871582388878, 0.02988128736615181, -0.005389862228184938, -0.019884034991264343, 0.02616223506629467, -0.017969276756048203, -0.025959713384509087, 0.044334035366773605, 0.002020623069256544, -0.021043937653303146, 0.015364100225269794, 0.03492594137787819, -0.060314908623695374, 0.014452748000621796, 0.023787198588252068, 0.000982119468972087, -0.02662251517176628, -0.021448982879519463, -0.084028460085392, -0.04020993784070015, -0.09212936460971832, -0.010448324494063854, -0.044702257961034775, -0.01765628717839718, -0.02207496203482151, 0.08483855426311493, -0.020086558535695076, -0.017334092408418655, -0.0323667898774147, -0.016487179324030876, -0.038957979530096054, -0.042161520570516586, -0.023787198588252068, 0.008860362693667412, 0.014968260191380978, 0.0851331278681755, -0.045180946588516235, -0.07353410869836807, 0.03525733947753906, -0.03492594137787819, -0.01302588451653719, 0.03536780923604965, -0.009997251443564892, 0.018760954961180687, 0.04116731882095337, 0.04094638302922249, 0.07975707948207855, -0.057295478880405426, 0.028058582916855812, 0.03094913251698017, 0.008607209660112858, 0.029586708173155785, -0.053834185004234314, -0.024449998512864113, -0.08432304114103317, -0.00977631751447916, -0.0037788874469697475, 0.04775850847363472, -0.011847571469843388, -0.029586708173155785, 0.04032040387392044, 0.01957104541361332, 0.0008100903360173106, 0.030507266521453857, -0.009509355761110783, -0.06035172939300537, 0.03339781612157822, 0.008910994045436382, -0.023695142939686775, 0.019129179418087006, 0.05339231714606285, -0.03621472045779228, -0.023013930767774582, -0.09080376476049423, 0.035459864884614944, -0.012040887959301472, 0.039289381355047226, -0.028979141265153885, -0.02509438991546631, 0.023474209010601044, 0.00875449925661087, 0.030801843851804733, 0.03608584403991699, 0.019755158573389053, 0.006411680951714516, 0.018079742789268494, -0.034852296113967896, -0.04617514833807945, -0.01933170109987259, 0.09448599070310593, -0.018181005492806435, 0.06510180234909058, -0.01085336972028017, -0.002759370254352689, -0.0049525978974998, 0.04271385446190834, 0.012206588871777058, -0.03308482468128204, -0.10391249507665634, 0.034723419696092606, 0.017481381073594093, 0.005813318770378828, -0.01618339493870735, -0.05184578150510788, -0.07629577815532684, 0.0010879836045205593, -0.04724299535155296, -0.025830835103988647, 0.024983922019600868, 0.03135417774319649, -0.025002334266901016, 0.038921158760786057, -0.0468011274933815, 0.0038295178674161434, 0.058731548488140106, 0.03899480402469635, -0.00702385138720274, -0.05784781649708748, -0.002013718942180276, 0.06675881147384644, 0.003376143518835306, 0.01775754801928997, 0.007838544435799122, 0.009168749675154686, 0.008358659222722054, 0.015805967152118683, 0.018144182860851288, 0.001161628169938922, 0.061014533042907715, -0.09021460264921188, 0.03754032403230667, -0.015566622838377953, 0.051551204174757004, -0.031998567283153534, 0.01367948018014431, 0.03698799014091492, 0.003626995487138629, -0.0031206889543682337, -0.0017778261099010706, -0.021927673369646072, 0.05832650512456894, -0.012998268008232117, 0.05136709287762642, 0.01749979332089424, 0.00011809023271780461, -0.0204179584980011, -0.008556579239666462, -0.00833104271441698, -0.01693825237452984, -0.022535240277647972, -0.010153746232390404, -0.009389683604240417, 0.026696158573031425, 0.009085899218916893, -0.021688327193260193, -0.06038855388760567, -0.039878539741039276, 0.0027087396010756493, 0.01668970286846161, -0.015888817608356476, -0.04705888405442238, 0.04514412581920624, -0.01693825237452984, 0.043965812772512436, 0.02675139158964157, 0.06484404951334, 0.034631360322237015, 0.025517845526337624, 0.03284548223018646, -0.0203995481133461, -0.02664092555642128, -0.00978552270680666, 0.03404220566153526, -0.012096121907234192, 0.025296911597251892, -0.021099170669913292, -0.03531257435679436, 0.05169849097728729, 0.012814156711101532, -0.021688327193260193, 0.02244318462908268, -0.001495905453339219, 0.037742845714092255, 0.00037282565608620644, -0.010393090546131134, -0.0068811653181910515, 0.03142782300710678, 0.08086174726486206, -0.04028358310461044, 0.02570195682346821, 0.08122996985912323, 0.0162202175706625, -0.014415926299989223, 0.020104968920350075, -0.02303234115242958, 0.024689344689249992, -0.03034156560897827, 0.0011127234902232885, -0.02065730281174183, 0.036546122282743454, -0.007166537921875715, 0.09735812991857529, 0.029973343014717102, -0.024026542901992798, -0.0089938435703516, 0.006176938768476248, -0.015934845432639122, -0.06108817458152771, -0.030801843851804733, -0.007014645729213953, 0.007106701843440533, 0.024173831567168236, 0.049489155411720276, -0.06668516248464584, 0.03615948557853699, -0.016763346269726753, 0.014369897544384003, -0.05821603909134865, 0.03903162479400635, -0.08012530207633972, 0.047463931143283844, -0.03884751349687576, -0.015078727155923843, -0.025020744651556015, 0.02829792909324169, -0.03312164917588234, -0.007046865299344063, -0.0005721838679164648, -0.03796377778053284, -0.038921158760786057, -0.012906212359666824, -0.0695941224694252, 0.005840935278683901, 0.0074933357536792755, 0.029255308210849762, 0.04017311707139015, 0.03420790657401085, -0.02329009771347046, -0.009831550531089306, -0.0347786508500576, -0.02424747683107853, -0.03175922483205795, -0.02065730281174183, -0.08086174726486206, -0.030544087290763855, 0.043744876980781555, -0.0066970535553991795, -0.012528783641755581, -0.004453195258975029, 0.01920282281935215, -0.08064080774784088, 0.06160368770360947, -0.01918441243469715, -0.011838365346193314, 0.013200790621340275, -0.02196449413895607, -0.006572778336703777, -0.013918825425207615, 0.04867906495928764, 0.00734604662284255, -0.0383688248693943, -0.005150517448782921, -0.03422631695866585, 0.02829792909324169, -0.04761121794581413, 0.02220384031534195, -0.021025527268648148, -0.01871492713689804, -0.009693467058241367, -0.06108817458152771, -0.00014721722982358187, 0.013375695794820786, -0.035828087478876114, 0.04131460562348366, -0.011138741858303547, -0.009509355761110783, 0.013209995813667774, 0.020602069795131683, -0.047206174582242966, 0.02988128736615181, 0.00905368011444807, 0.04282432049512863, 0.07717951387166977, -0.04775850847363472, -0.018926655873656273, -0.04234563186764717, 0.010383885353803635, 0.01800609938800335, 0.025168033316731453, -0.005666029639542103, -0.02052842639386654, -0.048531774431467056, -0.006784506607800722, -0.00012859034177381545, 0.015539005398750305, -0.022737763822078705, -0.007184948772192001, 0.040136292576789856, -0.005472712684422731, 0.02903437428176403, 0.019976090639829636, -0.03266137093305588, -0.030562499538064003, -0.08410210907459259, 0.05615399032831192, -0.03107801079750061, 0.04510730132460594, 0.021761972457170486, -0.05571212247014046, 0.01717759668827057, -0.032329969108104706, -0.009684261865913868, 0.016505591571331024, -0.011442526243627071, 0.04102002829313278, 0.01909235678613186, 0.00024150243552867323, 0.017370915040373802, -0.03781649097800255, -0.021430572494864464, 0.045070480555295944, 0.005072270054370165, 0.011755515821278095, 0.05666950345039368, 0.06502816081047058, -0.006255186162889004, -0.038810692727565765, -0.038589756935834885, 0.03192492574453354, 0.029236897826194763, -0.03921573609113693, 0.014682887122035027, -0.030875489115715027, 0.0037029413506388664, 0.03348987177014351, 0.004425578750669956, 0.06388667225837708, 0.043266188353300095, -0.018328294157981873, -0.05206671729683876, 0.023234864696860313, 0.02207496203482151, 0.021633094176650047, -0.029826054349541664, -0.000640362617559731, 0.0660223662853241, 0.02135692723095417, -0.052361294627189636, -0.01362424623221159, -0.04448132589459419, -0.021062348037958145, 0.044334035366773605, -0.016514796763658524, -0.062229666858911514, -0.019478989765048027, 0.050336066633462906, 0.05114615708589554, -0.05736912414431572, 0.012105327099561691, -0.03334258124232292, -0.031611934304237366, 0.02568354643881321, 0.004911172669380903, 0.031980156898498535, -0.01942375674843788, -0.002780082868412137, 0.03660135343670845, -0.003267978085204959, 0.02266411855816841, 0.014820970594882965, 0.028997551649808884, -0.034484073519706726, 0.005523343104869127, -0.052398115396499634, 0.03431837260723114, 0.011902804486453533, 0.050225600600242615, -0.06281882524490356, -0.02734054997563362, 0.005330026149749756, -0.0008388577844016254, 0.024413177743554115, -0.10170315951108932, -0.008050273172557354, 0.06425489485263824, 0.013449341058731079, -0.0984627977013588, 0.04536505788564682, 0.0002284132642671466, -0.008929405361413956, -0.0293841864913702, -0.027635127305984497, 0.02724849246442318, 0.016588440164923668, 0.029108019545674324, 0.024155421182513237, 0.007548569235950708, 0.010963836684823036, -0.033526692539453506, 0.005813318770378828, 0.0215778611600399, 0.03168557956814766, -0.03229314833879471, -0.021007115021348, 0.04311889782547951, 0.08145090192556381, 0.03980489447712898, 0.019350113347172737, 0.022480007261037827, 0.012510372325778008, -0.05840015038847923, 0.03625154122710228, 0.03290071338415146, 0.027285315096378326, -0.007438102271407843, -0.028610918670892715, -0.03383968397974968, 0.027045970782637596, -0.04466543719172478, -0.061861444264650345, -0.08410210907459259, -0.04017311707139015, -0.01265766192227602, -0.04838448762893677, -0.025223268195986748, 0.03396856039762497, -0.02818746119737625, -0.012050094082951546, -0.013292846269905567, 0.007143524009734392, 0.04138825088739395, -0.02557307854294777, 0.05608034506440163, -0.042198341339826584, 0.061161819845438004, 0.005012433975934982, -0.05692725628614426, -0.05258222669363022, 0.06348162144422531, 0.017435353249311447, 0.008054875768721104, 0.06322386860847473, -0.05854743719100952, -0.012786539271473885, 0.061493221670389175, -0.01848478801548481, 0.01752740889787674, 0.0287950299680233, 0.019258057698607445, 0.004462400916963816, 0.02757989428937435, 0.0672743171453476, -0.04569645971059799, -0.017665492370724678, 0.0576268807053566, -0.003288690699264407, -0.02085982635617256, -0.049268223345279694, 0.0480162650346756, -0.01909235678613186, -0.03709845617413521, -0.05015195533633232, -0.03730097785592079, 0.05600669980049133, -0.03035997599363327, -0.03925256058573723, 0.0007491034339182079, -0.01788642629981041, 0.007336840964853764, -0.015281249769032001, 0.06756889820098877, -0.029347363859415054, -0.0221854280680418, -0.034612949937582016, -0.009274614043533802, -0.025830835103988647, -0.04783215373754501, 0.009656645357608795, -0.054644275456666946, -0.020730948075652122, 0.014231814071536064, 0.015041904523968697, -0.039547137916088104, 0.038921158760786057, 0.007530157919973135, 0.021743562072515488, 0.004055054392665625, -0.03742985427379608, -0.01367027498781681, 0.004540648311376572, -0.025260088965296745, 0.0037443663459271193, 0.05917341634631157, -0.005965210497379303, 0.007336840964853764, 0.06889449805021286, -0.04547552764415741, 0.053208205848932266, -0.00405275309458375, -0.04403945803642273, 0.04595421627163887, 0.05420240759849548, 0.03656453266739845, 0.008367865346372128, 0.01907394453883171, 0.05869472771883011, 0.0019274166552349925, 0.006867356598377228, 0.02410018816590309, 0.06267153471708298, 0.055638477206230164, -0.032569315284490585, 0.029255308210849762, 0.04893682152032852, -0.014820970594882965, 0.042198341339826584, 0.06543320417404175, 0.03586490824818611, 0.0804198756814003, -0.004434784408658743, -0.008846554905176163, 0.08292379230260849, 0.0007640624535270035, -0.009794728830456734, 0.03422631695866585, 0.012059299275279045, 0.0006346091395244002, -0.04492319002747536, 0.008013450540602207, -0.006825931835919619, 0.018447967246174812, -0.007594597060233355, -0.03693275526165962, 0.036049019545316696, 0.06778983026742935, 0.002869836986064911, -0.0131915844976902, -0.02686185948550701, -0.020602069795131683, -0.00804106704890728, -0.010945425368845463, 0.016137367114424706, 0.06480722874403, -0.0029641941655427217, -0.028058582916855812, 0.024542056024074554, 0.02014179155230522, -0.0016708113253116608, -0.017969276756048203, -0.0033163074404001236, 0.02387925423681736, -0.0024786002468317747, 0.037742845714092255, -0.002029828727245331, -0.034392017871141434, 0.08734247088432312, -0.04886317625641823, 0.01128603145480156, 0.018788572400808334, 0.028500450775027275, -0.0033508283086121082, -0.0014199594734236598, -0.05784781649708748, 0.024799810722470284, -0.04068863019347191, -0.017103953287005424, -0.06528591364622116, 0.02113599330186844, 0.004418674390763044, -0.03172240033745766, -0.0384056456387043, -0.03001016564667225, -0.004842130932956934, -0.008068683557212353, -0.021688327193260193, 0.044113099575042725, -0.07143524289131165, 0.01224341057240963, 0.018668899312615395, -0.00131294468883425, 0.04897364228963852, -0.04311889782547951, 0.0125932227820158, -0.0005750606069341302, -0.09021460264921188, -0.008713074028491974, 0.061971910297870636, -0.022848229855298996, -0.01907394453883171, -0.013035089708864689, -0.0019216631771996617, 0.005601590499281883, 0.022277483716607094, -0.022167017683386803, -0.02662251517176628, -0.03514687344431877, -0.017591848969459534, -0.024044955149292946, -0.018696516752243042, 0.0017502093687653542, 0.05468109995126724, -0.011819954961538315, -0.05659585818648338, 0.0384056456387043, -0.039289381355047226, -0.022848229855298996, 0.004823719616979361, -0.05545436590909958, -0.005431287456303835, 0.03398697078227997, 0.0012496564304456115, -0.00036620916216634214, -0.0396207831799984, -0.03214585781097412, 0.003928477875888348, -0.06164051219820976, -0.0251864455640316, 0.017978481948375702, 0.009385081008076668, -0.05578576773405075, 0.017821988090872765, -0.04020993784070015, -0.025646723806858063, -0.0025522448122501373, -0.00911351665854454, 0.03888433799147606, 0.00009586740634404123, -0.022700941190123558, -0.07636942714452744, 0.01338490191847086, -0.03347146138548851, -0.029549885541200638, -0.04054133966565132, -0.07055150717496872, -0.011543787084519863, 0.029328953474760056, 0.039326202124357224, -0.020841415971517563, -0.02292187511920929, 0.044812723994255066, -0.0076682413928210735, -0.021448982879519463, 0.014876204542815685, 0.0022634200286120176, -0.007129715755581856, 0.007778708357363939, 0.032201092690229416, 0.007194154430180788, 0.0010799287119880319, -0.005086078774183989, 0.09728448837995529, 0.02533373422920704, -0.0010908603435382247, 0.037485089153051376, 0.019350113347172737, 0.0030976750422269106, -0.015161577612161636, 0.015364100225269794, -0.0719875767827034, -0.004943392239511013, -0.011184769682586193, -0.018447967246174812, -0.018530815839767456, -0.03800060227513313, -0.02675139158964157, -0.004540648311376572, -0.013559808023273945, 0.01597166806459427, 0.06918907910585403, 0.09551701694726944, -0.03398697078227997, 0.03855293616652489, 0.04669066146016121, -0.0033554311376065016, -0.04867906495928764, 0.011912010610103607, 0.0037328593898564577, -0.05979939550161362, 0.0009067488717846572, 0.003111483296379447, 0.06443900614976883, -0.02448682114481926, -0.01158060971647501, 0.00009924757614498958, -0.03170398995280266, -0.002047089161351323, 0.004851336590945721, -0.05696408078074455, 0.021798795089125633, 0.008473728783428669, -0.02785606123507023, 0.031998567283153534, -0.007599199656397104, 0.034870706498622894, -0.07058832794427872, 0.033176880329847336, 0.06274517625570297, -0.08417575061321259, -0.008243589662015438, 0.03435519337654114, -0.01548377238214016, 0.011267620138823986, -0.0348338857293129, -0.02124646119773388, 0.02857409603893757, 0.007451910525560379, 0.009444916620850563, -0.0016477974131703377, 0.00977631751447916, -0.01822703331708908, 0.07044103741645813, 0.033526692539453506, -0.026972325518727303, 0.03586490824818611, 0.06285564601421356, -0.07331317663192749, 0.0708092600107193, -0.040394049137830734, -0.014590831473469734, 0.028721384704113007, -0.005946799647063017, -0.06274517625570297, 0.0023508730810135603, -0.04860541969537735, 0.011074303649365902, -0.0245972890406847, 0.03107801079750061, 0.047574397176504135, -0.0043427287600934505, -0.0010810793610289693, 0.016836991533637047, -0.010687668807804585, 0.08115632086992264, 0.02209337241947651, 0.007525555323809385, 0.08719518035650253, 0.011663460172712803, -0.05029924586415291, 0.02951306477189064, -0.042897965759038925, 0.05571212247014046, 0.023805608972907066, 0.045070480555295944, 0.011083508841693401, -0.03939984738826752, -0.030580909922719002, -0.017582641914486885, -0.038700226694345474, 0.009748701006174088, -0.048310842365026474, -0.013522985391318798, -0.022774584591388702, 0.005228764843195677, 0.0347970612347126, 0.04171965271234512, 0.035330984741449356 ]
17,295
imodels.tree.cart_wrapper
__str__
null
def __str__(self): if hasattr(self, 'feature_names') and self.feature_names is not None: return 'GreedyTree:\n' + export_text(self, feature_names=self.feature_names, show_weights=True) else: return 'GreedyTree:\n' + export_text(self, show_weights=True)
(self)
[ 0.03657059744000435, -0.0634387955069542, 0.05426948890089989, -0.018391918390989304, 0.04076431319117546, -0.05633080378174782, -0.014438101090490818, 0.016117362305521965, 0.06638860702514648, -0.025873076170682907, -0.010484281927347183, -0.008933852426707745, -0.014464755542576313, 0.01760115474462509, -0.009551359340548515, 0.013398557901382446, 0.004962264094501734, -0.05352314934134483, 0.02166159264743328, 0.044460464268922806, -0.012652218341827393, -0.0023922822438180447, 0.031257376074790955, -0.011115116067230701, -0.01316754799336195, -0.0075922198593616486, -0.0010034480364993215, -0.03820543736219406, -0.03314099460840225, 0.0005261577316559851, -0.08252374082803726, -0.12048039585351944, -0.04090647026896477, -0.017743315547704697, -0.04051553085446358, 0.03820543736219406, -0.03221695497632027, 0.03559324890375137, -0.00599736487492919, -0.06240813434123993, 0.011319470591843128, -0.02672603540122509, -0.033212073147296906, -0.01897832751274109, -0.05675728619098663, -0.010670866817235947, 0.026601646095514297, 0.048867419362068176, -0.026974814012646675, -0.0540207102894783, 0.01803652010858059, 0.02565983682870865, -0.047125961631536484, 0.042967788875103, -0.056437425315380096, -0.03523785248398781, 0.045526664704084396, -0.014162666164338589, 0.02628178521990776, 0.013522947207093239, -0.0021690470166504383, 0.03523785248398781, 0.04332318529486656, 0.013132007792592049, -0.010697522200644016, -0.0004164836718700826, -0.04595314338803291, 0.025251127779483795, -0.009067127481102943, 0.07470495253801346, 0.02860965207219124, -0.054589349776506424, -0.00243004341609776, 0.05533568561077118, -0.008742825128138065, -0.006290569435805082, -0.040728770196437836, -0.03880961611866951, 0.010484281927347183, -0.02677934430539608, -0.01580638810992241, 0.0068369959481060505, 0.026406176388263702, -0.06674400717020035, -0.0014371463330462575, -0.08408749848604202, -0.004273677710443735, -0.030368879437446594, 0.00960466917604208, 0.0023012112360447645, -0.019458116963505745, 0.008733940310776234, -0.012190199457108974, 0.023758450523018837, -0.025801995769143105, -0.017565615475177765, 0.01782328076660633, -0.04517126455903053, -0.00804091151803732, -0.024806877598166466, -0.002858744002878666, 0.03244796395301819, -0.027365753427147865, 0.04129740968346596, -0.031026367098093033, -0.02946261130273342, -0.022088073194026947, 0.03163054585456848, 0.00885388720780611, 0.012874343432486057, -0.05533568561077118, 0.026957044377923012, 0.06781020760536194, -0.028041012585163116, 0.04236361011862755, -0.08629097789525986, -0.04232806712388992, 0.004204818978905678, 0.008809463120996952, -0.053203292191028595, 0.01242120936512947, 0.019475886598229408, -0.050573334097862244, 0.007694397121667862, -0.047907840460538864, 0.03564656153321266, 0.01860515959560871, -0.004164836835116148, 0.011648215353488922, -0.10121774673461914, 0.04765905812382698, 0.04183050990104675, -0.05313220992684364, 0.012287934310734272, 0.06219489499926567, -0.011168425902724266, -0.009240384213626385, 0.0057707978412508965, 0.058996301144361496, 0.1003647893667221, 0.02740129455924034, -0.09233276546001434, -0.0007896530441939831, 0.011381666176021099, -0.004113748203963041, -0.008418523706495762, -0.01887170784175396, 0.01819644868373871, 0.002556654391810298, -0.06489592790603638, 0.026583874598145485, -0.0015848592156544328, -0.034100573509931564, -0.05462488904595375, 0.02137727476656437, 0.023811759427189827, 0.01242120936512947, -0.004549112170934677, 0.027045894414186478, -0.004904511850327253, 0.017387915402650833, -0.02583753690123558, -0.0006047342903912067, 0.03028002940118313, 0.00871617067605257, 0.032821133732795715, -0.009915643371641636, -0.015379909425973892, -0.012865458615124226, 0.009880103170871735, 0.004082650411874056, -0.047516901046037674, -0.09439408034086227, 0.06518024951219559, 0.005188831128180027, 0.06891194730997086, 0.030439957976341248, 0.11649992316961288, 0.00644605653360486, 0.03358524292707443, 0.012065810151398182, -0.03504238277673721, -0.0647893100976944, -0.00391383608803153, 0.05444718897342682, -0.06713494658470154, 0.03934271261096001, 0.00010148318688152358, 0.005268796347081661, 0.02711697481572628, 0.041119709610939026, -0.004988919012248516, 0.008813905529677868, 0.013425212353467941, 0.0029098326340317726, -0.02923160046339035, 0.014100471511483192, -0.08195510506629944, 0.0057707978412508965, 0.009986722841858864, 0.0023900610394775867, -0.00888054259121418, 0.014900119975209236, 0.01954696699976921, 0.002403388498350978, 0.02048877626657486, -0.007605547085404396, 0.00034401551238261163, -0.009702404029667377, 0.021057413890957832, 0.019404808059334755, -0.004475811030715704, 0.004940051585435867, 0.04659286141395569, 0.055762168020009995, -0.04222144931554794, -0.03820543736219406, 0.02411384880542755, -0.0884944498538971, -0.015602033585309982, -0.006250586826354265, -0.008005371317267418, 0.05462488904595375, 0.029249370098114014, -0.026477254927158356, -0.03305214270949364, 0.04982699453830719, -0.030777588486671448, -0.004311439115554094, -0.026903735473752022, 0.030653199180960655, -0.049578215926885605, -0.03745909780263901, 0.03211033716797829, -0.061555176973342896, 0.008809463120996952, -0.023118730634450912, -0.006841438356786966, -0.025091197341680527, -0.02677934430539608, -0.019298188388347626, -0.015362138859927654, -0.0334075428545475, -0.03863191604614258, 0.05277680978178978, -0.04972037672996521, 0.023705139756202698, -0.014127125963568687, 0.0047801220789551735, -0.003071983577683568, 0.057539165019989014, -0.02756122313439846, -0.024202698841691017, -0.019671356305480003, -0.011337241157889366, -0.10661981999874115, -0.04929389804601669, 0.0002895949874073267, -0.0003095862048212439, 0.015299944207072258, -0.02677934430539608, 0.003993800841271877, -0.0629056915640831, 0.09290140122175217, 0.018285298720002174, -0.004453598987311125, -0.027632303535938263, -0.03617965802550316, -0.007010253146290779, -0.041332948952913284, 0.06891194730997086, 0.03223472461104393, -0.06962274014949799, 0.021448353305459023, -0.03033333830535412, -0.03617965802550316, -0.034722521901130676, -0.004155951552093029, -0.07442063838243484, -0.02432708814740181, 0.002283441135659814, -0.07527359575033188, -0.01692589558660984, 0.01161267515271902, -0.017627811059355736, -0.00227677752263844, -0.005584212951362133, -0.0199379064142704, 0.039449334144592285, -0.012909883633255959, 0.022248001769185066, 0.0596715584397316, 0.007219050545245409, 0.024362629279494286, 0.05569108575582504, -0.04168834909796715, 0.03763679787516594, -0.0026477256324142218, 0.009373659268021584, 0.02187483385205269, 0.04069323092699051, -0.03891623392701149, 0.03891623392701149, -0.03575317934155464, -0.042185910046100616, 0.009764598682522774, 0.008827232755720615, -0.0023789547849446535, 0.038560833781957626, 0.012207969091832638, -0.039449334144592285, 0.003680604975670576, 0.059991419315338135, 0.060879915952682495, -0.0014016063651069999, 0.015131129883229733, -0.008898312225937843, -0.02946261130273342, 0.03422496095299721, 0.040622152388095856, -0.05423394963145256, 0.006281684618443251, -0.02411384880542755, 0.0007058010087348521, 0.011923650279641151, -0.06962274014949799, -0.016659347340464592, -0.004475811030715704, 0.012687758542597294, 0.014438101090490818, -0.03202148526906967, -0.043571967631578445, 0.06791682541370392, 0.013345247134566307, -0.006352764088660479, 0.05437610670924187, 0.045846521854400635, 0.03980473428964615, -0.04037337377667427, -0.0017758863978087902, 0.05867644026875496, 0.010697522200644016, -0.044958025217056274, 0.040160130709409714, -0.002692150417715311, 0.052528031170368195, -0.012207969091832638, 0.0011939199175685644, 0.08195510506629944, 0.028307562693953514, -0.02766784280538559, -0.009267039597034454, 0.012145774438977242, 0.014331480488181114, 0.02255009114742279, 0.020755324512720108, -0.006757031194865704, 0.057930100709199905, -0.025144508108496666, 0.02064870484173298, -0.011825915426015854, -0.010901876725256443, -0.01910271868109703, 0.08259481936693192, -0.028485262766480446, -0.0456688217818737, 0.045739904046058655, 0.049578215926885605, 0.0782589465379715, -0.022407932206988335, -0.020524315536022186, -0.0018036519177258015, -0.017841050401329994, -0.024735799059271812, -0.02315427176654339, 0.0707244798541069, -0.005673062987625599, -0.01675708219408989, 0.021945912390947342, -0.0674903467297554, 0.020790865644812584, 0.03536223992705345, 0.025979695841670036, 0.025517677888274193, 0.013514062389731407, -0.0006758141680620611, 0.023118730634450912, 0.028414182364940643, 0.011701525188982487, -0.04385628551244736, -0.02054208517074585, 0.015219978988170624, -0.008498487994074821, 0.03390510380268097, -0.03735247626900673, -0.039946891367435455, 0.020968563854694366, -0.007187952753156424, -0.06606874614953995, 0.04079985246062279, 0.02717028371989727, -0.03184378519654274, -0.09190628677606583, -0.013451867736876011, -0.02461140789091587, 0.016330601647496223, 0.01876508817076683, 0.03244796395301819, -0.007378980051726103, -0.001688147196546197, 0.012154659256339073, -0.026654954999685287, -0.05689944326877594, 0.01999121718108654, 0.012083579786121845, 0.013753957115113735, -0.003649507649242878, 0.06020465865731239, 0.0037761186249554157, -0.0017503420822322369, -0.051639534533023834, 0.06745480746030807, 0.02372290939092636, 0.04510018229484558, 0.030475499108433723, 0.007174625527113676, -0.02811209298670292, 0.01648164726793766, 0.06788128614425659, 0.0468771792948246, -0.06109315901994705, -0.059600479900836945, -0.015957433730363846, -0.005046671722084284, 0.03514900058507919, -0.045348964631557465, -0.019475886598229408, -0.0398758128285408, -0.03450928255915642, 0.013478522188961506, 0.036215197294950485, -0.061270855367183685, 0.014455870725214481, 0.01177260559052229, 0.008680630475282669, -0.014269285835325718, -0.015957433730363846, -0.012350128963589668, 0.0021190689876675606, 0.005508690606802702, 0.017219100147485733, 0.03335423395037651, -0.025251127779483795, 0.0010462070349603891, 0.012545598670840263, -0.03221695497632027, 0.07076001912355423, -0.01581527292728424, 0.008378541097044945, 0.02933822013437748, -0.04463816434144974, 0.04424722492694855, -0.009809023700654507, 0.05700606480240822, 0.021892603486776352, -0.04399844631552696, 0.04627300053834915, 0.032927755266427994, -0.05739700421690941, -0.049258358776569366, 0.05750362202525139, -0.004075986798852682, -0.03724585846066475, -0.05849874019622803, 0.012234624475240707, 0.0659976676106453, -0.047303661704063416, -0.020399926230311394, -0.013007618486881256, -0.03813435509800911, -0.04940051585435867, -0.05700606480240822, 0.00745894480496645, -0.008747267536818981, 0.0018813955830410123, 0.032590124756097794, -0.003785003675147891, 0.007525582332164049, 0.02717028371989727, -0.04659286141395569, 0.009809023700654507, 0.015379909425973892, -0.04556220397353172, -0.03465144336223602, -0.018622929230332375, 0.07392307370901108, -0.004931166768074036, 0.01625063829123974, -0.06553564965724945, 0.03578871861100197, 0.02372290939092636, 0.009657979011535645, 0.010093343444168568, -0.016117362305521965, 0.02299434132874012, -0.0202044565230608, 0.06365203112363815, 0.02800547331571579, -0.025091197341680527, 0.02466471865773201, 0.015433219261467457, -0.05217263102531433, 0.027045894414186478, 0.04556220397353172, -0.001132280332967639, 0.007165740244090557, 0.011168425902724266, 0.05156845226883888, 0.0025144508108496666, 0.04403398558497429, -0.015299944207072258, 0.010040032677352428, -0.03123960830271244, -0.04119079187512398, -0.02411384880542755, 0.04900957643985748, -0.027578992769122124, 0.08131538331508636, -0.009915643371641636, 0.09467840194702148, 0.04776567965745926, 0.008134203962981701, 0.0025899731554090977, 0.050360094755887985, -0.0272769033908844, 0.0417594313621521, -0.032643433660268784, 0.04659286141395569, 0.04637962207198143, -0.0035384453367441893, 0.021590514108538628, -0.06727710366249084, -0.04222144931554794, -0.0571126826107502, 0.01954696699976921, -0.012394553981721401, 0.059102918952703476, 0.0161973275244236, 0.07115095853805542, -0.011923650279641151, -0.004093756899237633, -0.008107548579573631, -0.030635427683591843, -0.03429604321718216, 0.05117751285433769, 0.07577115297317505, -0.03884515538811684, 0.04090647026896477, 0.022479012608528137, 0.005744142923504114, -0.028769582509994507, -0.002081307815387845, 0.05796564370393753, 0.033318694680929184, 0.06919626146554947, 0.034331582486629486, -0.03569987043738365, 0.03275005519390106, -0.020702015608549118, -0.04595314338803291, 0.024184929206967354, -0.04542004317045212, -0.008245266042649746, -0.006170622073113918, -0.06574889272451401, 0.018996097147464752, 0.023314200341701508, 0.05601094663143158, -0.023189811035990715, 0.023012110963463783, -0.040053512901067734, 0.023189811035990715, 0.02510896697640419, 0.011310585774481297, -0.024718027561903, -0.0022734454832971096, -0.010262157768011093, 0.0006963607156649232, -0.008973835036158562, -0.019724667072296143, -0.018800627440214157, -0.02939153090119362, 0.05245695263147354, -0.04502910375595093, 0.04332318529486656, -0.04090647026896477, -0.013398557901382446, -0.0013805045746266842, 0.057539165019989014, -0.01808982901275158, 0.006810341030359268, 0.01483792532235384, 0.011799260042607784, 0.026459485292434692, 0.03168385848402977, 0.02333196997642517, 0.01139055099338293, 0.007245705462992191, -0.05021793395280838, 0.02589084580540657, -0.010555362328886986, 0.01860515959560871, -0.006370534189045429, -0.037672337144613266, -0.061946116387844086, -0.017059171572327614, 0.05235033109784126, -0.034047260880470276, -0.027419064193964005, -0.017743315547704697, 0.034989070147275925, 0.05462488904595375, -0.05473150685429573, 0.01821422018110752, -0.005855205003172159, 0.0022545650135725737, 0.00918707437813282, -0.06311893463134766, 0.04069323092699051, -0.031026367098093033, -0.0056508504785597324, -0.04893849790096283, -0.0006735929055139422, -0.05817888304591179, -0.06151963770389557, -0.011257275938987732, 0.0039449334144592285, 0.022141382098197937, -0.03012009896337986, -0.03481137007474899, -0.036997076123952866, 0.03589534014463425, -0.06585551053285599, -0.020222226157784462, -0.03578871861100197, -0.0017725544748827815, -0.054482728242874146, 0.010786372236907482, 0.03250127658247948, -0.03346085548400879, -0.04865417629480362, 0.007658856920897961, -0.009382544085383415, 0.0015493192477151752, 0.017059171572327614, 0.04047999158501625, -0.008409637957811356, 0.02132396399974823, 0.003725029993802309, -0.004242580384016037, -0.044851403683423996, -0.03195040673017502, 0.055264607071876526, -0.013149777427315712, 0.05071549490094185, 0.030813127756118774, -0.01576196402311325, 0.012003614567220211, 0.014749075286090374, -0.05878306180238724, -0.058711979538202286, 0.02015114575624466, 0.007729936856776476, -0.0634387955069542, -0.05867644026875496, 0.0008546244935132563, 0.022621171548962593, 0.03424273058772087, 0.021945912390947342, -0.030475499108433723, 0.02784554287791252, 0.034491512924432755, -0.02327866107225418, -0.01559314876794815, 0.02560652606189251, 0.03891623392701149, -0.07968054711818695, 0.04332318529486656, 0.016241753473877907, -0.010128882713615894, -0.09432300180196762, -0.048583097755908966, 0.029302680864930153, -0.003163054585456848, 0.08927632868289948, 0.018160909414291382, 0.03912947326898575, -0.061946116387844086, -0.00201022787950933, -0.051639534533023834, 0.0259974654763937, 0.03863191604614258, -0.033265385776758194, -0.0005869643064215779, 0.024931268766522408, -0.012794378213584423, 0.02265671268105507, 0.025357747450470924, -0.010892991907894611, -0.040160130709409714, -0.0024455920793116093, 0.05828550085425377, -0.024007229134440422, 0.008502930402755737, -0.04030229151248932, -0.03006679005920887, 0.025037888437509537, 0.012590023688971996, 0.008191956207156181, -0.018027635291218758, -0.003527339082211256, -0.0010139988735318184, 0.029036130756139755, 0.0212173443287611, 0.03136399760842323, 0.07484711706638336, -0.018622929230332375, -0.03998243436217308, 0.013407442718744278, -0.021021874621510506, 0.006797013338655233, 0.03525562211871147, -0.023616289719939232, -0.007165740244090557, 0.00045119065907783806, -0.001086744712665677, 0.04286116734147072, -0.0009101556497626007, 0.034598130732774734, 0.028041012585163116, 0.02127065509557724, 0.030759818851947784, 0.022727791219949722, -0.010661981999874115, 0.05856982246041298, 0.018516309559345245, 0.02510896697640419, 0.060986537486314774, -0.046628400683403015, 0.021181805059313774, 0.06901856511831284, 0.005313220899552107, 0.030777588486671448, 0.015299944207072258, 0.03628627955913544, -0.003071983577683568, 0.03486468270421028, -0.013967196457087994, 0.01277660857886076, -0.04968483746051788, -0.0068369959481060505, -0.049364976584911346, 0.021785983815789223, -0.003191930940374732, -0.02127065509557724, 0.07996486872434616, -0.013291937299072742, 0.014482525177299976 ]
17,316
imodels.tree.cart_wrapper
fit
Build a decision tree regressor from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (real numbers). Use ``dtype=np.float64`` and ``order='C'`` for maximum efficiency. sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeRegressor Fitted estimator.
def fit(self, X, y, feature_names=None, sample_weight=None, check_input=True): """Build a decision tree regressor from the training set (X, y). Parameters ---------- X : {array-like, sparse matrix} of shape (n_samples, n_features) The training input samples. Internally, it will be converted to ``dtype=np.float32`` and if a sparse matrix is provided to a sparse ``csc_matrix``. y : array-like of shape (n_samples,) or (n_samples, n_outputs) The target values (real numbers). Use ``dtype=np.float64`` and ``order='C'`` for maximum efficiency. sample_weight : array-like of shape (n_samples,), default=None Sample weights. If None, then samples are equally weighted. Splits that would create child nodes with net zero or negative weight are ignored while searching for a split in each node. check_input : bool, default=True Allow to bypass several input checking. Don't use this parameter unless you know what you do. Returns ------- self : DecisionTreeRegressor Fitted estimator. """ if feature_names is not None: self.feature_names = feature_names else: self.feature_names = ["X" + str(i + 1) for i in range(X.shape[1])] super().fit(X, y, sample_weight=sample_weight, check_input=check_input) self._set_complexity()
(self, X, y, feature_names=None, sample_weight=None, check_input=True)
[ -0.002352234674617648, -0.006831085775047541, 0.05729355290532112, -0.05625705048441887, -0.01544030848890543, -0.020497724413871765, -0.018817877396941185, 0.03999469056725502, 0.028164267539978027, 0.0008326642564497888, 0.028611036017537117, 0.004954659380018711, 0.027342213317751884, 0.008278614841401577, 0.008667303249239922, -0.02233840897679329, -0.004789355210959911, -0.05175362899899483, -0.04514145851135254, 0.04943043366074562, -0.022517116740345955, -0.022963885217905045, -0.0044073681347072124, 0.06269051134586334, -0.04042358696460724, 0.0046731955371797085, 0.008408177644014359, 0.029486700892448425, -0.024339931085705757, -0.015136506408452988, -0.035884421318769455, 0.024911794811487198, -0.07398481667041779, 0.0003085492935497314, -0.051396213471889496, -0.01606578379869461, 0.0030246207024902105, 0.009480421431362629, 0.010677759535610676, -0.02133764885365963, -0.030040694400668144, -0.044319406151771545, -0.011910839937627316, -0.002183579606935382, -0.026538031175732613, 0.024411413818597794, -0.0022718163672834635, 0.07634375244379044, -0.036349061876535416, -0.06801599264144897, -0.013269015587866306, -0.04549887403845787, -0.002530941739678383, -0.0032993832137435675, -0.01719164103269577, -0.0019590784795582294, 0.05046693608164787, 0.01662871241569519, 0.09492930769920349, -0.019907990470528603, 0.04885857179760933, 0.0505741611123085, -0.006920439191162586, 0.023642972111701965, -0.06740838289260864, -0.024339931085705757, -0.06426313519477844, -0.026877574622631073, 0.001616183901205659, 0.06501370668411255, -0.007948006503283978, -0.03440115228295326, 0.013170726597309113, 0.028325103223323822, 0.03602738678455353, 0.014671867713332176, -0.03608100116252899, -0.036009516566991806, -0.012169965542852879, 0.011562361381947994, -0.034758564084768295, 0.04828670620918274, -0.0025756186805665493, -0.04617796093225479, -0.03468708321452141, -0.04031636193394661, 0.026019779965281487, 0.0021020444110035896, 0.058222830295562744, 0.0044073681347072124, -0.038136132061481476, 0.01060627680271864, 0.029951339587569237, 0.02392890490591526, 0.037671495229005814, 0.01616407372057438, -0.010141638107597828, 0.03424031287431717, -0.032739173620939255, 0.011821486055850983, -0.031720541417598724, 0.0471787229180336, -0.026645256206393242, 0.0739133283495903, -0.024304190650582314, -0.008609223179519176, -0.011312170885503292, 0.01942548155784607, -0.0020696537103503942, -0.031166549772024155, -0.08091865479946136, -0.006321770139038563, 0.04178176075220108, 0.04056655243039131, -0.02841445803642273, -0.03300723433494568, -0.06533537805080414, -0.01415361650288105, -0.101148322224617, -0.03248898312449455, 0.006862359587103128, 0.023839550092816353, -0.019496964290738106, -0.01908593811094761, -0.04267529770731926, 0.003323955461382866, 0.07512854039669037, 0.013483463786542416, 0.022106090560555458, -0.06361979246139526, -0.006102853454649448, 0.017602667212486267, -0.007760363630950451, -0.0023567022290080786, -0.024214835837483406, -0.02022966369986534, 0.0001587423321325332, -0.012312931939959526, 0.03298936411738396, -0.047679100185632706, 0.0781308189034462, -0.05153917893767357, 0.019961602985858917, -0.01292053610086441, 0.050145260989665985, -0.00004537489439826459, 0.008792398497462273, 0.016771677881479263, -0.021409131586551666, 0.04414069652557373, -0.0161819439381361, -0.011473007500171661, 0.05168214440345764, -0.06647910922765732, -0.0245007686316967, 0.03064829856157303, -0.03111293725669384, -0.0330251045525074, 0.02784259431064129, 0.03334677964448929, 0.021141070872545242, -0.022106090560555458, -0.0205692071467638, 0.028021302074193954, 0.05672169104218483, 0.06211864948272705, 0.011142399162054062, -0.03214943781495094, -0.023285558447241783, -0.0077558960765600204, 0.014805898070335388, -0.031506095081567764, -0.020479854196310043, 0.0013224338181316853, -0.03416883200407028, -0.03445476293563843, 0.02326768822968006, 0.034097347408533096, 0.02403612993657589, 0.06462055444717407, 0.027806852012872696, 0.019729282706975937, -0.025197725743055344, -0.02943308837711811, -0.015672627836465836, -0.008104375563561916, -0.019353998824954033, 0.033185940235853195, -0.03259620815515518, 0.0655498281121254, 0.022767307236790657, -0.009073861874639988, 0.03450837731361389, 0.016798485070466995, 0.017459701746702194, 0.00699638994410634, -0.012277189642190933, -0.0007488951669074595, 0.0020819397177547216, 0.07369887828826904, 0.01241122093051672, -0.014627191238105297, 0.05021674558520317, 0.017316734418272972, -0.0009320701356045902, 0.06705097109079361, -0.028164267539978027, 0.05304032191634178, -0.007760363630950451, -0.02031901851296425, 0.006451332941651344, 0.010990497656166553, -0.06361979246139526, 0.07734450697898865, -0.007501238025724888, 0.015904948115348816, -0.029236510396003723, -0.03938708454370499, -0.03432966768741608, -0.04539164900779724, 0.012375478632748127, 0.00256891711615026, 0.012625669129192829, 0.017834985628724098, 0.021820159628987312, -0.0786311998963356, 0.028128525242209435, -0.03874373808503151, 0.0037148776464164257, -0.059795454144477844, 0.011437266133725643, -0.07977493107318878, 0.031738411635160446, -0.034669212996959686, -0.01258099265396595, -0.038028910756111145, 0.03874373808503151, -0.016441069543361664, -0.0077737667597830296, 0.033757805824279785, -0.03432966768741608, -0.010400763712823391, -0.008399242535233498, -0.0725908949971199, 0.03422244265675545, 0.03595590591430664, 0.034669212996959686, 0.0014553474029526114, 0.03504449874162674, -0.02212396077811718, -0.05893766134977341, -0.007791637443006039, -0.010784984566271305, -0.049037277698516846, 0.003252472495660186, -0.01089220866560936, 0.04635666683316231, -0.015779852867126465, -0.01100836880505085, -0.015029282309114933, -0.006482606753706932, 0.04635666683316231, -0.03345400094985962, 0.08320610970258713, -0.04943043366074562, -0.02986198663711548, 0.02369658462703228, 0.0033105523325502872, 0.0038489080034196377, -0.02369658462703228, -0.06519241631031036, 0.058580245822668076, -0.01720057614147663, 0.01352814119309187, -0.007729089818894863, 0.011356847360730171, -0.014332323335111141, -0.03540191054344177, -0.0036925391759723425, 0.008761124685406685, -0.007398481480777264, -0.03910115361213684, 0.032274533063173294, 0.05196807533502579, -0.05203955993056297, -0.002276283921673894, -0.010373957455158234, 0.0034892596304416656, -0.00887281633913517, -0.00380646507255733, -0.03795742616057396, 0.027574533596634865, -0.011642779223620892, 0.04042358696460724, 0.04321141913533211, -0.04210343584418297, -0.01707548089325428, -0.02089088037610054, -0.005785648245364428, 0.010659889318048954, -0.031488221138715744, 0.021230423822999, -0.03322168439626694, -0.0440334752202034, 0.01999734528362751, -0.001990352291613817, 0.056900396943092346, -0.03098784200847149, -0.013688977807760239, 0.037099629640579224, 0.026573771610856056, 0.07584337145090103, 0.044319406151771545, -0.036777958273887634, -0.036009516566991806, -0.10472246259450912, 0.05929507687687874, -0.019300386309623718, 0.0469285324215889, 0.024429285898804665, -0.02033688873052597, -0.008309888653457165, -0.0034691551700234413, -0.03325742483139038, -0.027449438348412514, 0.01403745636343956, 0.028146397322416306, 0.02065856195986271, -0.018335366621613503, -0.0006930491654202342, -0.005910743027925491, -0.014591448940336704, 0.07241219282150269, -0.005848195869475603, 0.0005299787735566497, 0.02065856195986271, 0.03313232958316803, 0.009650193154811859, -0.03608100116252899, 0.012661410495638847, -0.01606578379869461, 0.026680996641516685, -0.03259620815515518, 0.0022159703075885773, -0.0298798568546772, 0.005906275473535061, 0.024339931085705757, 0.02065856195986271, 0.03720685467123985, 0.05929507687687874, -0.04796503484249115, 0.015234795399010181, 0.023446394130587578, 0.019264644011855125, 0.0045659709721803665, -0.0020305614452809095, -0.029379475861787796, 0.05765096843242645, 0.021534226834774017, -0.035544876009225845, 0.011356847360730171, 0.013688977807760239, -0.04067377746105194, 0.022284798324108124, -0.03191712126135826, -0.06454906612634659, -0.02046198397874832, 0.05840153992176056, 0.04796503484249115, -0.05046693608164787, 0.05861598625779152, -0.023982517421245575, -0.06426313519477844, 0.07841675728559494, 0.009516162797808647, 0.09249889105558395, -0.0042733377777040005, -0.00032027694396674633, 0.04478404298424721, -0.003732748329639435, 0.002685076789930463, 0.034973014146089554, 0.018496204167604446, -0.048501156270504, -0.022749437019228935, -0.05128898844122887, 0.01786179281771183, 0.006741731893271208, 0.03681369870901108, -0.026770349591970444, 0.007224241737276316, 0.003525000996887684, -0.009927188977599144, 0.021319778636097908, -0.06819469481706619, -0.013894490897655487, 0.056328535079956055, 0.039244119077920914, -0.08241979777812958, 0.003967301454395056, -0.0027141168247908354, -0.004610647913068533, -0.05468442663550377, -0.03223879262804985, -0.02986198663711548, 0.0411384142935276, 0.007282321806997061, 0.02503689005970955, -0.0033306570257991552, 0.013519206084311008, -0.0027632613200694323, 0.008309888653457165, 0.06279774010181427, 0.01274182926863432, -0.07963196188211441, 0.011258558370172977, 0.0440334752202034, 0.10043349117040634, 0.07212625443935394, -0.016905708238482475, 0.007353804539889097, 0.009257037192583084, -0.02323194593191147, 0.013054566457867622, 0.038028910756111145, 0.03055894561111927, -0.018567686900496483, -0.04817948117852211, 0.019818637520074844, -0.011723197065293789, -0.06890952587127686, -0.03974450007081032, -0.0626547709107399, -0.02314259298145771, -0.006603233981877565, -0.028271490707993507, -0.01399277988821268, 0.032846398651599884, -0.04135286435484886, 0.007586123887449503, -0.052968837320804596, -0.05279013141989708, 0.060260094702243805, -0.02178441733121872, -0.039244119077920914, -0.043533094227313995, 0.0023187268525362015, -0.014645061455667019, -0.08485021442174911, -0.05111028254032135, 0.07627226412296295, 0.018371108919382095, 0.01897871308028698, 0.032614078372716904, -0.019175291061401367, -0.00608945032581687, 0.04299697279930115, -0.020837267860770226, 0.057472262531518936, -0.00480275833979249, 0.02459012158215046, -0.017781374976038933, 0.06576427817344666, 0.033418260514736176, -0.057436518371105194, -0.01953270472586155, 0.023392783477902412, -0.0057945833541452885, 0.0411384142935276, -0.05561370402574539, 0.022838789969682693, 0.00914981309324503, -0.028789741918444633, 0.007863120175898075, -0.0348479188978672, 0.03935134410858154, 0.002899525687098503, -0.030916359275579453, -0.015261601656675339, -0.04775058478116989, -0.010213120840489864, -0.015261601656675339, 0.07648671418428421, 0.019371869042515755, -0.014788026921451092, -0.05897340178489685, -0.017915405333042145, -0.03681369870901108, -0.0318635068833828, 0.030809134244918823, -0.026538031175732613, -0.00575884198769927, 0.01399277988821268, -0.033293165266513824, -0.04514145851135254, 0.018031563609838486, 0.006831085775047541, -0.012902665883302689, -0.02233840897679329, -0.012616734020411968, 0.016887838020920753, 0.013465593568980694, -0.022892402485013008, 0.026698866859078407, 0.022642211988568306, 0.0156011451035738, 0.04103119298815727, 0.007242112420499325, -0.060474544763565063, 0.030165787786245346, -0.05153917893767357, -0.033400390297174454, 0.011651714332401752, 0.06008138880133629, 0.014993540942668915, 0.03122016228735447, 0.002183579606935382, 0.07870268821716309, -0.016673389822244644, 0.014716544188559055, 0.01865703985095024, 0.036349061876535416, 0.10479395091533661, -0.03336464986205101, 0.03293574973940849, 0.049251727759838104, -0.013894490897655487, 0.02199886552989483, 0.024232707917690277, 0.03572358563542366, 0.03742130473256111, -0.04178176075220108, -0.02975476160645485, 0.041603054851293564, -0.012027000077068806, -0.02503689005970955, 0.033185940235853195, 0.010481181554496288, 0.010543729178607464, -0.028664646670222282, 0.028593163937330246, 0.0017368113622069359, -0.0053254771046340466, 0.007251047994941473, -0.01810304820537567, -0.017495442181825638, 0.05775819346308708, 0.0007176214130595326, -0.015610081143677235, -0.009346391074359417, -0.03427605703473091, -0.05128898844122887, -0.0021567735821008682, 0.07791637629270554, 0.07691561430692673, -0.02750305086374283, 0.006080515217036009, 0.049251727759838104, 0.035098109394311905, 0.004744678270071745, -0.022999627515673637, 0.006598766427487135, 0.035223204642534256, -0.014189357869327068, 0.049466174095869064, 0.01060627680271864, -0.08134755492210388, 0.023410653695464134, -0.03200647234916687, -0.021516356617212296, 0.03432966768741608, 0.02616274543106556, 0.0011939880205318332, 0.06222587451338768, -0.06533537805080414, 0.04775058478116989, -0.019068066030740738, 0.0070812758058309555, -0.10229204595088959, 0.042389366775751114, 0.0052673970349133015, -0.022606471553444862, -0.03649202734231949, -0.01319753285497427, 0.006594298407435417, -0.02809278480708599, -0.0029039932414889336, -0.013108178973197937, -0.045999255031347275, 0.0012386648450046778, 0.025751719251275063, -0.015753047540783882, 0.039708755910396576, 0.02562662400305271, 0.01134791225194931, -0.027002669870853424, -0.08048976212739944, -0.023875292390584946, 0.035562749952077866, -0.06322663277387619, -0.012071676552295685, -0.002705181483179331, 0.024465026333928108, -0.003457985818386078, 0.029236510396003723, -0.0018306326819583774, -0.008466257713735104, -0.007872055284678936, 0.0032993832137435675, -0.027270730584859848, 0.012983083724975586, -0.04642815142869949, 0.07119698077440262, 0.01117814052850008, -0.04517719894647598, 0.048501156270504, 0.011356847360730171, -0.0330251045525074, -0.019068066030740738, -0.05929507687687874, 0.01821027137339115, -0.03009430505335331, 0.013724719174206257, 0.008774527348577976, -0.03899392858147621, -0.0015123103512451053, -0.00915874820202589, -0.0705178901553154, 0.010686695575714111, 0.023642972111701965, 0.008050763048231602, -0.033078718930482864, -0.003393204417079687, -0.02369658462703228, 0.04821522533893585, 0.017263123765587807, 0.016816355288028717, 0.025644494220614433, 0.035330429673194885, -0.04564183950424194, -0.07044640928506851, 0.014859510585665703, 0.04460533708333969, -0.011615972965955734, -0.020283276215195656, -0.05550648272037506, -0.01730779930949211, 0.026538031175732613, 0.06176123395562172, -0.0035339363384991884, -0.025751719251275063, 0.021176813170313835, -0.03214943781495094, -0.018603427335619926, 0.07641523331403732, 0.026216357946395874, -0.011437266133725643, 0.005414830520749092, 0.015610081143677235, 0.013063502497971058, -0.012518445029854774, 0.015279472805559635, 0.11044109612703323, 0.033650580793619156, -0.016655517742037773, 0.07977493107318878, -0.0039025202859193087, 0.010302474722266197, -0.04896579310297966, -0.019371869042515755, -0.06798025220632553, -0.009685934521257877, -0.0041057998314499855, 0.0022036840673536062, -0.013492399826645851, -0.018728522583842278, -0.007210838608443737, -0.03888670355081558, 0.009596580639481544, 0.029897727072238922, 0.04889431223273277, 0.07148291170597076, 0.03731407970190048, 0.026984799653291702, 0.05933081731200218, -0.012402284890413284, -0.06476351618766785, -0.0007477782783098519, 0.0009404470329172909, -0.026734609156847, 0.027092022821307182, 0.004592777229845524, 0.05018100515007973, -0.01796008087694645, -0.03493727371096611, 0.08942512422800064, -0.041388604789972305, -0.05411256477236748, 0.022159703075885773, -0.008180325850844383, 0.001911050989292562, -0.01649468205869198, -0.03125590458512306, 0.030862746760249138, -0.0035406379029154778, -0.0014955565566197038, -0.0615825280547142, 0.06647910922765732, 0.06208290904760361, -0.0649779662489891, 0.007805040571838617, 0.011142399162054062, -0.04242510721087456, -0.017575860023498535, 0.0005475702928379178, -0.025573011487722397, -0.004592777229845524, 0.009748482145369053, 0.03440115228295326, 0.00010624706192174926, 0.06637188047170639, -0.033311035484075546, 0.024286318570375443, 0.012822247110307217, -0.014019586145877838, 0.02335704118013382, 0.07355591654777527, -0.07848823815584183, 0.04685704782605171, -0.07201903313398361, 0.036009516566991806, 0.04042358696460724, -0.03295362368226051, -0.0245007686316967, -0.000968370062764734, -0.054184045642614365, 0.005651617888361216, 0.0041393074207007885, 0.08799546211957932, 0.058258574455976486, -0.012536315247416496, 0.020050955936312675, 0.03561636060476303, -0.005468442570418119, 0.03354335576295853, 0.017834985628724098, -0.014073198661208153, 0.03927985951304436, 0.0033105523325502872, -0.0043649254366755486, -0.018335366621613503, -0.05804412439465523, 0.04371180012822151, 0.007344868965446949, 0.0471787229180336, 0.012500573880970478, -0.07384184747934341, -0.010052284225821495, -0.012563121505081654, -0.015047152526676655, 0.015458179637789726, -0.05196807533502579, -0.02357148937880993, -0.016566164791584015, -0.024232707917690277, 0.00426440266892314, 0.09421447664499283, 0.04549887403845787 ]
17,327
imodels.tree.cart_ccp
HSDecisionTreeCCPClassifierCV
null
class HSDecisionTreeCCPClassifierCV(HSTreeClassifier): def __init__(self, estimator_: BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs): super().__init__(estimator_=estimator_, reg_param=None) self.reg_param_list = np.array(reg_param_list) self.cv = cv self.scoring = scoring self.desired_complexity = desired_complexity def fit(self, X, y, sample_weight=None, *args, **kwargs): m = DecisionTreeCCPClassifier(self.estimator_, desired_complexity=self.desired_complexity) m.fit(X, y, sample_weight, *args, **kwargs) self.scores_ = [] for reg_param in self.reg_param_list: est = HSTreeClassifier(deepcopy(m.estimator_), reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(estimator_: sklearn.base.BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs)
[ -0.037579648196697235, -0.030558094382286072, -0.016577675938606262, -0.006748395040631294, -0.02740555815398693, -0.023930605500936508, -0.01352365780621767, -0.0014777507167309523, 0.03779459372162819, -0.01344305370002985, 0.008611256256699562, 0.015825366601347923, 0.03732888028025627, 0.006820043548941612, -0.017535975202918053, 0.007209632080048323, 0.05939662456512451, -0.050082314759492874, 0.007402187678962946, 0.02317829616367817, 0.002635322045534849, -0.0021975943818688393, -0.023034999147057533, 0.0254889614880085, -0.05280495807528496, -0.005808007903397083, 0.014320747926831245, -0.018736088648438454, -0.005342292599380016, -0.017061304301023483, -0.08490349352359772, 0.024647090584039688, -0.10267233103513718, 0.014723771251738071, -0.016514983028173447, -0.021136313676834106, 0.033155351877212524, 0.042595043778419495, -0.029608750715851784, 0.04958077520132065, -0.04119789972901344, -0.026671161875128746, -0.07874172180891037, -0.05602914094924927, -0.00030422632698901, 0.03141787648200989, -0.0036876597441732883, 0.11284641921520233, 0.025238191708922386, -0.09414615482091904, 0.013237063772976398, -0.05782035365700722, -0.02728017419576645, -0.012753436341881752, -0.0207064226269722, 0.07222171127796173, 0.08533338457345963, -0.002691297559067607, 0.061474431306123734, -0.0024069424252957106, 0.01601344347000122, 0.007706693839281797, 0.04521021619439125, -0.0033809144515544176, -0.04126954823732376, -0.030217763036489487, -0.06208344176411629, -0.0145356934517622, -0.0028883309569209814, 0.04993901774287224, -0.01139211468398571, -0.05739046260714531, 0.031131282448768616, 0.01621047779917717, 0.05875178799033165, -0.008687382563948631, -0.012189204804599285, -0.06623905897140503, 0.012878821231424809, 0.015279047191143036, -0.02815786749124527, -0.01972125470638275, 0.022694667801260948, -0.046105820685625076, -0.012672832235693932, -0.03836778178811073, 0.04069636017084122, -0.06337311863899231, -0.0009902049787342548, 0.06584499031305313, -0.021530380472540855, 0.00834257435053587, -0.0022949916310608387, -0.00005747974500991404, 0.08232414722442627, 0.05771288275718689, -0.013756515458226204, 0.006291635800153017, -0.06308652460575104, -0.024844124913215637, -0.013093766756355762, 0.07146939635276794, 0.025506872683763504, 0.07659226655960083, 0.0012538491282612085, -0.03636162355542183, -0.02453961782157421, 0.05241089314222336, 0.01113238837569952, -0.03023567609488964, -0.04975989833474159, 0.033638980239629745, 0.032206010073423386, 0.012314589694142342, -0.013290800154209137, -0.0665256530046463, -0.049974843859672546, -0.004484749399125576, -0.04768209159374237, -0.051157042384147644, -0.0020408632699400187, 0.027315998449921608, -0.005539325997233391, 0.02402016706764698, -0.045066919177770615, -0.014034153893589973, 0.020616861060261726, 0.0382244847714901, -0.02362610027194023, -0.05918167904019356, -0.015010365284979343, -0.005637842696160078, -0.00926057156175375, -0.044314607977867126, 0.0060722120106220245, -0.05484694242477417, 0.01644333451986313, -0.02434258535504341, 0.004198155365884304, -0.023249944671988487, 0.0481836311519146, -0.04388471692800522, 0.00922474730759859, -0.00830675009638071, 0.07695051282644272, 0.01489393599331379, 0.029053473845124245, -0.007012598682194948, -0.036504920572042465, 0.018664440140128136, -0.033441945910453796, -0.013729647733271122, 0.02421719953417778, 0.01142793893814087, 0.03286875784397125, -0.018789824098348618, 0.02018697001039982, -0.0705021470785141, -0.037937890738248825, -0.016900094226002693, -0.0061662509106099606, 0.014992453157901764, -0.01963169500231743, 0.01887938566505909, 0.023930605500936508, 0.01936301216483116, 0.012699699960649014, -0.05710386857390404, -0.0513719879090786, -0.012672832235693932, -0.021369170397520065, -0.05885925889015198, -0.036307886242866516, 0.04051723703742027, -0.019094331189990044, 0.005310946609824896, 0.02951919101178646, 0.009148620069026947, 0.035788435488939285, 0.01605822518467903, 0.001248251530341804, 0.009986012242734432, -0.004975093994289637, -0.007876859046518803, 0.01700756698846817, 0.0006336416117846966, 0.03059391863644123, 0.030450621619820595, -0.016111960634589195, -0.006336416117846966, -0.02899973839521408, -0.02919677272439003, 0.020401915535330772, 0.030737215653061867, 0.09056372940540314, -0.012359369546175003, 0.004961660131812096, 0.029250508174300194, 0.00258382479660213, 0.07616237550973892, 0.002671146299690008, 0.004903445485979319, 0.07039467245340347, -0.005602018442004919, 0.008508261293172836, 0.04169943928718567, 0.020813895389437675, 0.07429951429367065, -0.04814780503511429, -0.007733562029898167, -0.0157358068972826, 0.028068307787179947, 0.0036025771405547857, 0.03987240046262741, 0.023769397288560867, -0.04048141464591026, -0.03847525641322136, -0.03525107353925705, -0.027817538008093834, -0.0342479906976223, -0.0033853924833238125, 0.038976795971393585, -0.020455652847886086, 0.04492362216114998, 0.017813613638281822, -0.026509951800107956, 0.024324672296643257, -0.030737215653061867, 0.024288848042488098, -0.02362610027194023, 0.01749119535088539, -0.06426872313022614, 0.009287439286708832, -0.016541851684451103, -0.02581137977540493, 0.0354481041431427, -0.010138265788555145, 0.013407229445874691, -0.0764489695429802, 0.006484190933406353, -0.02366192452609539, -0.02294543758034706, 0.002912960248067975, -0.01887938566505909, 0.008530652150511742, 0.005960261449217796, 0.0414128452539444, 0.013263932429254055, 0.05620826408267021, 0.03779459372162819, 0.006578229833394289, -0.0927848294377327, -0.045102741569280624, -0.014007285237312317, -0.040051523596048355, -0.0684959813952446, -0.021655764430761337, 0.02994908206164837, 0.029178859665989876, -0.016792621463537216, -0.02919677272439003, 0.004207111429423094, 0.016434378921985626, 0.0919966995716095, -0.03039688430726528, -0.03890514746308327, 0.024270936846733093, -0.012117556296288967, -0.030934248119592667, 0.005915481131523848, 0.04234427586197853, 0.030844688415527344, -0.029734136536717415, 0.01959587074816227, -0.054703645408153534, 0.004621329717338085, -0.06641817837953568, 0.0034570409916341305, 0.011777225881814957, 0.0027002536226063967, 0.06244168430566788, -0.05065550282597542, -0.02505907043814659, -0.006994686555117369, 0.0185211431235075, 0.007778342347592115, 0.007648479659110308, -0.021136313676834106, 0.02711896412074566, 0.018413670361042023, -0.057892002165317535, 0.022533459588885307, 0.0012079492444172502, -0.009332220070064068, 0.08934570103883743, 0.0018303957767784595, 0.0014374484308063984, -0.005790095776319504, 0.008029112592339516, 0.03274337202310562, 0.03654074668884277, -0.021369170397520065, -0.03808118775486946, -0.05979068949818611, -0.006054299883544445, -0.014652122743427753, 0.03980075195431709, -0.0026935364585369825, -0.005673666950315237, 0.07326061278581619, 0.007706693839281797, 0.05452452227473259, 0.0215124674141407, 0.005315424408763647, -0.032922495156526566, -0.0290713869035244, 0.05724716559052467, -0.0366482175886631, 0.06369553506374359, 0.028408637270331383, -0.060722120106220245, -0.020330267027020454, -0.01828828454017639, 0.0016467964742332697, -0.02505907043814659, -0.02871314436197281, 0.011195081286132336, 0.007223066408187151, 0.009878539480268955, -0.033836014568805695, -0.05850101634860039, -0.015296959318220615, 0.03908426687121391, 0.002505459124222398, 0.007397709880024195, 0.055778373032808304, 0.03908426687121391, 0.027495119720697403, -0.000783095951192081, -0.0199182890355587, 0.03761547431349754, 0.06312234699726105, -0.03174029290676117, 0.020204883068799973, -0.027674240991473198, -0.03102380968630314, 0.017938997596502304, 0.051766056567430496, -0.027907097712159157, 0.03417634218931198, -0.009197878651320934, -0.05699639767408371, 0.05448869988322258, 0.044028013944625854, 0.04599834978580475, 0.03440920263528824, 0.027853362262248993, 0.015959708020091057, 0.0705021470785141, -0.05280495807528496, 0.07680721580982208, -0.04692978039383888, -0.0072678467258811, 0.02285587787628174, 0.0037951325066387653, -0.046069998294115067, -0.01767927221953869, 0.018216636031866074, 0.04800450801849365, -0.06441202014684677, -0.00049286347348243, -0.046464063227176666, -0.0070036426186561584, -0.020975103601813316, 0.011589148081839085, 0.03277919813990593, -0.07945820689201355, 0.0284802857786417, 0.002389030298218131, -0.03786624222993851, 0.06760037690401077, -0.02059894986450672, -0.0045026615262031555, -0.03482117876410484, -0.03980075195431709, -0.06641817837953568, 0.019972024485468864, 0.022049831226468086, 0.09500593692064285, 0.0030226719100028276, 0.02126169763505459, 0.007017076946794987, -0.014365527778863907, -0.045031093060970306, -0.03886932134628296, 0.005230342037975788, 0.03818866237998009, 0.019183890894055367, -0.03501821309328079, -0.02871314436197281, 0.0016288843471556902, -0.05835771933197975, 0.0003697175707202405, -0.008508261293172836, 0.024109726771712303, -0.010568156838417053, 0.019542133435606956, 0.028856441378593445, -0.0014844677643850446, 0.01776883378624916, -0.03919174149632454, 0.016577675938606262, 0.05352144315838814, 0.030092379078269005, -0.03711393475532532, -0.07308149337768555, 0.03007446601986885, 0.03326282650232315, 0.005396028980612755, 0.005902046803385019, 0.02724434994161129, 0.015270090661942959, -0.02158411592245102, 0.02649204060435295, 0.0426308698952198, 0.0006700255908071995, -0.023214120417833328, -0.01832410879433155, 0.011212993413209915, -0.024718739092350006, -0.08905910700559616, 0.029107211157679558, -0.12051281332969666, -0.01071145385503769, -0.04564010724425316, -0.01621047779917717, -0.04055306315422058, 0.054703645408153534, -0.010245738551020622, 0.031847767531871796, -0.03337029740214348, 0.008723207749426365, 0.04177108779549599, -0.015780586749315262, 0.051443636417388916, 0.011195081286132336, -0.014562562108039856, -0.028426550328731537, -0.08891580998897552, -0.04811198264360428, 0.025220278650522232, 0.04069636017084122, 0.00415113614872098, 0.04664318636059761, -0.0073126270435750484, -0.0008670590468682349, -0.0026420392096042633, -0.024862036108970642, 0.04273834079504013, -0.008270925842225552, 0.004594461526721716, 0.005449765361845493, 0.04839857667684555, 0.005888612940907478, -0.03987240046262741, -0.02457544207572937, 0.10224243998527527, 0.004679543897509575, -0.00042485332232899964, -0.02099301666021347, 0.04298911243677139, -0.024163464084267616, -0.019094331189990044, -0.03922756388783455, -0.046822309494018555, 0.04144866764545441, -0.0067886970937252045, -0.04782538861036301, 0.007841034792363644, -0.005812486167997122, 0.048971764743328094, -0.008127628825604916, 0.060722120106220245, 0.009233702905476093, -0.009063538163900375, -0.024073902517557144, -0.01238623820245266, -0.036827340722084045, -0.0167299285531044, -0.03277919813990593, -0.04098295420408249, -0.028748968616127968, -0.041126251220703125, 0.04205768182873726, -0.013944593258202076, -0.002977891592308879, 0.016514983028173447, 0.024718739092350006, 0.007415622007101774, -0.014508824795484543, -0.01559250894933939, 0.05133616551756859, 0.002675624331459403, -0.03102380968630314, 0.05703222006559372, -0.025506872683763504, 0.02362610027194023, 0.02994908206164837, -0.03616458922624588, 0.027065228670835495, 0.00582592049613595, -0.03512568771839142, 0.03879767283797264, 0.019900375977158546, 0.018825648352503777, 0.005615452770143747, -0.008875460363924503, 0.059683218598365784, 0.0304685328155756, -0.010989091359078884, 0.01577163115143776, -0.010496508330106735, 0.048935938626527786, -0.014419264160096645, 0.026384567841887474, 0.055384304374456406, -0.040051523596048355, 0.008588866330683231, 0.045425161719322205, 0.057497937232255936, 0.01975707896053791, -0.0382244847714901, -0.021440818905830383, 0.06151025369763374, -0.011096564121544361, 0.01451778132468462, 0.03639744967222214, -0.0014094606740400195, -0.0060587781481444836, -0.04553263261914253, -0.0018393518403172493, -0.01572684943675995, 0.0442071370780468, 0.03512568771839142, -0.013595306314527988, 0.0390484444797039, 0.014168494381010532, 0.01724938116967678, -0.06645400077104568, 0.010962223634123802, 0.02994908206164837, -0.013747559860348701, -0.029340069741010666, 0.018664440140128136, 0.05549177899956703, 0.03994404897093773, -0.009968100115656853, -0.011795138008892536, 0.014410308562219143, 0.01625525765120983, -0.012332501821219921, -0.013613218441605568, 0.016362730413675308, -0.04349065199494362, -0.029662488028407097, -0.007182763889431953, -0.04159196466207504, 0.05989816412329674, -0.05918167904019356, -0.00014175771502777934, 0.04427878558635712, 0.03671986609697342, -0.03689898923039436, 0.009654638357460499, -0.06394630670547485, 0.02951919101178646, 0.009574033319950104, 0.003188359085470438, -0.02959083952009678, 0.02652786485850811, 0.0018863711738958955, -0.02636665478348732, 0.029286332428455353, -0.0597548671066761, 0.0018393518403172493, 0.007590265013277531, -0.009036669507622719, 0.01274448074400425, -0.03596755862236023, 0.00556619418784976, 0.007805210538208485, 0.026671161875128746, 0.005458721425384283, -0.05230341851711273, -0.003913800232112408, 0.0032801588531583548, -0.09149515628814697, -0.01684635877609253, 0.028408637270331383, -0.0021169898100197315, -0.024718739092350006, 0.01864652708172798, 0.014571517705917358, 0.03643327206373215, 0.026599513366818428, -0.026241270825266838, -0.0009521416504867375, -0.007505182642489672, -0.005221385974436998, -0.00012342576519586146, 0.01585223525762558, 0.010684585198760033, 0.07465776056051254, -0.01569998264312744, -0.01199217140674591, 0.03154326230287552, -0.0537722148001194, -0.050727151334285736, 0.022927526384592056, -0.015270090661942959, -0.005472155753523111, 0.016514983028173447, 0.0025815856643021107, 0.029698312282562256, -0.05513353645801544, -0.025721818208694458, -0.018933121114969254, -0.09342966973781586, -0.018771912902593613, 0.019685430452227592, 0.05169440805912018, -0.050010666251182556, -0.014490912668406963, -0.03553766757249832, 0.020419828593730927, -0.003871259046718478, 0.01752701960504055, 0.03059391863644123, 0.0040167951956391335, -0.01982872746884823, -0.07730875164270401, -0.012233984656631947, -0.03294040635228157, -0.04073218256235123, -0.029644574970006943, -0.060722120106220245, -0.04596252366900444, 0.017956910654902458, 0.02812204323709011, -0.0199182890355587, 0.003015954978764057, 0.018968945369124413, -0.03297623246908188, -0.017177732661366463, -0.006802131421864033, -0.0233036819845438, 0.043311528861522675, 0.0330657921731472, 0.05155111104249954, 0.008445569314062595, -0.0533781461417675, 0.005646798759698868, 0.10890574753284454, 0.04725220054388046, 0.009421780705451965, 0.023751484230160713, 0.05011814087629318, -0.005122869275510311, -0.057927828282117844, 0.025309840217232704, -0.04886429011821747, -0.0014083412243053317, -0.05162275955080986, -0.001994963502511382, -0.011383158154785633, -0.036630306392908096, -0.022909613326191902, -0.0078679034486413, 0.00362496729940176, 0.018968945369124413, 0.1442284733057022, 0.08934570103883743, -0.013362448662519455, -0.010568156838417053, 0.057497937232255936, -0.003060735296458006, -0.020724333822727203, 0.015708938241004944, -0.0449952706694603, -0.07938656210899353, -0.008763509802520275, 0.015010365284979343, 0.027226436883211136, -0.022049831226468086, 0.005306468345224857, 0.051766056567430496, -0.0533781461417675, -0.06369553506374359, 0.05459617078304291, -0.03122084215283394, -0.02138708345592022, 0.002953262533992529, -0.06863927841186523, 0.03564513847231865, -0.022211041301488876, 0.06047135218977928, -0.018252460286021233, 0.003707811003550887, 0.05778453126549721, -0.06337311863899231, -0.007366363424807787, 0.03693481162190437, -0.021440818905830383, -0.016111960634589195, 0.002874896861612797, 0.010138265788555145, -0.022676756605505943, -0.04288163781166077, 0.00788581557571888, -0.005660233087837696, 0.02783544920384884, 0.005212429910898209, 0.06555839627981186, 0.04359812289476395, -0.01744641549885273, 0.006766307167708874, 0.07788193970918655, -0.03326282650232315, 0.06082959473133087, -0.025309840217232704, 0.03412260860204697, 0.00016414787387475371, -0.04352647438645363, -0.061080362647771835, 0.015780586749315262, -0.04252339527010918, 0.025435224175453186, -0.03294040635228157, 0.03326282650232315, 0.04349065199494362, -0.031077545136213303, -0.0012415344826877117, 0.01668514870107174, 0.00840078853070736, 0.03568096458911896, 0.02154829166829586, 0.004993006121367216, 0.03211645036935806, 0.06279993057250977, -0.051085393875837326, 0.0024741129018366337, -0.007034989073872566, 0.04675066098570824, 0.0066095758229494095, 0.06416124850511551, -0.019649606198072433, -0.005342292599380016, -0.027727976441383362, -0.03217018395662308, -0.055814195424318314, 0.0008088446338661015, -0.03297623246908188, 0.01344305370002985, 0.014329703524708748, 0.035197336226701736, 0.037042286247015, 0.04463702812790871, 0.026295006275177002 ]
17,329
imodels.tree.cart_ccp
__init__
null
def __init__(self, estimator_: BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs): super().__init__(estimator_=estimator_, reg_param=None) self.reg_param_list = np.array(reg_param_list) self.cv = cv self.scoring = scoring self.desired_complexity = desired_complexity
(self, estimator_: sklearn.base.BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs)
[ 0.0008179403957910836, -0.032842423766851425, -0.02203758805990219, 0.01454908773303032, -0.028919877484440804, -0.009530008770525455, -0.027119070291519165, -0.04036658629775047, -0.02968655712902546, 0.018435975536704063, -0.007738117594271898, 0.08365724980831146, 0.007626681588590145, 0.00044657985563389957, -0.005473737604916096, -0.028402814641594887, 0.04910317063331604, -0.020932143554091454, -0.02159184403717518, 0.03694327175617218, -0.019363123923540115, 0.013720002956688404, -0.02480120211839676, 0.03327034041285515, 0.012088580057024956, 0.055842820554971695, 0.03351995721459389, -0.04279143363237381, -0.0003195427998434752, 0.01789216883480549, -0.07545556128025055, 0.0019857899751514196, -0.06982135772705078, 0.05545056611299515, 0.015476235188543797, -0.0488535538315773, -0.01555646862834692, 0.05181329324841499, -0.043468963354825974, 0.0666833147406578, 0.0038333991542458534, -0.026887284591794014, -0.046535685658454895, -0.04318368807435036, -0.009106552228331566, 0.014388619922101498, 0.0034567455295473337, 0.058125030249357224, 0.022697288542985916, -0.08651001751422882, -0.016768893226981163, -0.03501765802502632, 0.005157259292900562, 0.0034589741844683886, -0.02383839525282383, 0.10006063431501389, 0.10120174288749695, 0.018685592338442802, 0.058445967733860016, -0.008424563333392143, -0.00777823431417346, -0.01536925695836544, -0.008861392736434937, -0.00852708425372839, -0.009244732558727264, -0.03729986771941185, -0.09121707081794739, 0.00125142652541399, -0.0015645617386326194, 0.04329066723585129, 0.03587348386645317, -0.036176592111587524, 0.009512178599834442, -0.016751063987612724, 0.016483616083860397, 0.0452876016497612, -0.03790607675909996, -0.05027993395924568, 0.027297368273139, 0.006583640351891518, 0.02513996697962284, -0.008313127793371677, -0.0069892676547169685, -0.038084376603364944, -0.03214706480503082, -0.07845096290111542, -0.04496666416525841, -0.08244483172893524, 0.03573084622621536, 0.008014478720724583, -0.03325251117348671, 0.03268195688724518, -0.004542132373899221, 0.021395716816186905, 0.037977397441864014, 0.02134222723543644, 0.0003922548203263432, -0.01667974330484867, -0.015708021819591522, -0.016144851222634315, -0.007301288191229105, 0.021645333617925644, -0.013666514307260513, 0.03337731957435608, -0.02276860922574997, -0.05252648517489433, -0.008206148631870747, 0.013737833127379417, 0.006797597277909517, 0.0014999288832768798, -0.050244275480508804, 0.06051421910524368, -0.03166566044092178, 0.04457440972328186, -0.08429912477731705, 0.03776343911886215, -0.019166996702551842, -0.02585315704345703, 0.0021172845736145973, -0.022786438465118408, 0.00935171078890562, 0.06632672250270844, -0.002743555000051856, 0.023321330547332764, 0.017490997910499573, -0.01363976951688528, 0.00029056944185867906, 0.05591414123773575, -0.020664695650339127, -0.0626537874341011, 0.022839928045868874, -0.05555754527449608, -0.051314059644937515, -0.022483332082629204, 0.021288737654685974, -0.049745041877031326, 0.03779910132288933, -0.01857861317694187, -0.01365759875625372, -0.029062515124678612, 0.06137004867196083, -0.003124666167423129, 0.028313664719462395, 0.0031915276776999235, 0.042363520711660385, 0.028581110760569572, 0.012017261236906052, 0.02242984250187874, -0.03631922975182533, -0.004290286917239428, -0.007555362302809954, 0.006855544168502092, -0.03434012457728386, -0.026994261890649796, 0.042149562388658524, -0.040330927819013596, 0.049638062715530396, -0.05712656304240227, 0.03662233427166939, 0.01363976951688528, 0.00960132759064436, 0.020896483212709427, 0.011437793262302876, -0.004502015188336372, 0.01618942618370056, 0.060478560626506805, -0.023053884506225586, -0.02920515276491642, -0.06276077032089233, -0.006356311030685902, -0.02194844000041485, -0.0763113871216774, -0.04147203266620636, 0.02025461196899414, -0.01501266099512577, 0.05306137725710869, -0.0053043547086417675, 0.04239917919039726, 0.0013060302007943392, 0.03250366076827049, 0.017597977072000504, -0.024034522473812103, -0.0328780859708786, -0.06532825529575348, 0.016768893226981163, -0.004379435908049345, -0.003073405474424362, 0.020432909950613976, -0.03050672635436058, 0.026174092665314674, 0.017455339431762695, -0.009155583567917347, 0.002863905858248472, -0.013497130945324898, 0.025960136204957962, -0.028064047917723656, 0.004274685867130756, 0.017107658088207245, 0.005380131304264069, 0.0860821008682251, 0.02218022570014, 0.0200049951672554, 0.04650002345442772, -0.01786542311310768, 0.0000145737421917147, 0.06051421910524368, 0.0037955110892653465, 0.014700639992952347, 0.02275077812373638, -0.02849196270108223, -0.01643012836575508, -0.00138626410625875, 0.02430196851491928, 0.03437578305602074, 0.02872375026345253, -0.018453804776072502, -0.015823915600776672, -0.025888817384839058, 0.03441144526004791, -0.010590880177915096, 0.0913597121834755, -0.00192115711979568, -0.0100024975836277, 0.005839247722178698, 0.036408379673957825, 0.0032851339783519506, 0.04543023928999901, -0.03897586464881897, -0.022839928045868874, 0.005808045621961355, -0.04603645205497742, -0.09613808989524841, 0.021787971258163452, -0.013363407924771309, -0.025211285799741745, 0.03360910341143608, -0.00399609562009573, 0.02551439218223095, -0.08308669924736023, 0.0027257250621914864, -0.002487252000719309, 0.040330927819013596, -0.004132047761231661, 0.013711088337004185, -0.003777681151404977, 0.017098743468523026, -0.003940377850085497, 0.03601612150669098, 0.02872375026345253, -0.005678779911249876, 0.021787971258163452, -0.020343760028481483, -0.06365225464105606, -0.0023758159950375557, -0.04664266109466553, -0.015609958209097385, 0.04995900020003319, -0.004397265613079071, 0.03364476561546326, -0.020183293148875237, -0.022839928045868874, -0.0010201968252658844, 0.00405181385576725, 0.061690982431173325, -0.0488535538315773, -0.02123524807393551, 0.0181061252951622, 0.008963913656771183, 0.010733517818152905, -0.0034411444794386625, 0.061797961592674255, 0.029882684350013733, 0.006793139968067408, 0.003256160533055663, -0.0312555767595768, -0.015574298799037933, -0.01824876293540001, -0.014985916204750538, 0.009155583567917347, 0.05327533558011055, 0.06971437484025955, -0.038333993405103683, -0.015351426787674427, -0.0024716509506106377, 0.009726135991513729, -0.0028282462153583765, 0.020557718351483345, 0.0030667195096611977, -0.025567881762981415, 0.001557875657454133, -0.045608535408973694, 0.043326325714588165, 0.03646186739206314, 0.019380953162908554, 0.07035624980926514, -0.01645687222480774, 0.04168598726391792, 0.01586849056184292, 0.015618872828781605, 0.04054488241672516, 0.03847663104534149, -0.005683237221091986, -0.033769574016332626, -0.07331599295139313, -0.015182044357061386, -0.04396819695830345, 0.04871091619133949, -0.03291374444961548, -0.013399067334830761, 0.05159933865070343, 0.059052176773548126, 0.10177229344844818, -0.012837430462241173, 0.013140535913407803, -0.02562137134373188, -0.03936811909079552, 0.024515924975275993, -0.05623507499694824, 0.06643369793891907, 0.010216454975306988, 0.006044290028512478, -0.017803018912672997, -0.025603540241718292, -0.05880255997180939, -0.025835327804088593, -0.03221838176250458, 0.02704775147140026, -0.00988660380244255, -0.014237066730856895, -0.020325930789113045, -0.027725283056497574, -0.02501515857875347, 0.05969404801726341, -0.01054630521684885, -0.02180580049753189, 0.040830157697200775, 0.012668047100305557, 0.011535856872797012, -0.020807335153222084, 0.007385979872196913, 0.018774742260575294, 0.017134403809905052, -0.0208608228713274, 0.04471704736351967, -0.040830157697200775, -0.04197126254439354, 0.04518062248826027, 0.025318264961242676, 0.015217703767120838, -0.023874053731560707, -0.03123774565756321, -0.05134972184896469, 0.04614342749118805, 0.04086581990122795, 0.05830332636833191, 0.03822701424360275, -0.02036159113049507, -0.00834878720343113, 0.03524944186210632, -0.062047578394412994, 0.03858361020684242, -0.07837963849306107, -0.012561068870127201, 0.016171595081686974, 0.012676961719989777, -0.03526727482676506, -0.013809151947498322, -0.014459938742220402, 0.043219346553087234, -0.03410833701491356, -0.004490871913731098, -0.042256541550159454, -0.03088115155696869, 0.01893520914018154, 0.02287558652460575, 0.023321330547332764, -0.03933246061205864, -0.006102236919105053, 0.0006847743643447757, -0.01717006228864193, 0.0031469534151256084, -0.00586599251255393, 0.041079774498939514, -0.018168529495596886, -0.053952865302562714, 0.014647151343524456, 0.015003746375441551, 0.03098812885582447, 0.08929146081209183, -0.02478337101638317, 0.01204400509595871, -0.00417216494679451, -0.02123524807393551, -0.03173698112368584, -0.035926975309848785, 0.006160183344036341, 0.053560610860586166, 0.006690619047731161, -0.030114471912384033, -0.018382485955953598, -0.029365621507167816, -0.021003462374210358, 0.001287086051888764, 0.00018178002210333943, 0.020932143554091454, 0.005892736837267876, -0.007345862686634064, 0.03624790906906128, 0.0020871968008577824, 0.004263542126864195, -0.031202087178826332, -0.024747712537646294, 0.013818067498505116, -0.020789504051208496, -0.030970299616456032, -0.0014508970780298114, 0.04960240423679352, -0.0012558839516714215, 0.012953323312103748, -0.02194844000041485, 0.05017295479774475, 0.013078131712973118, -0.029722215607762337, 0.0656135305762291, 0.041436370462179184, 0.013666514307260513, -0.01550297997891903, -0.029615238308906555, 0.039617735892534256, -0.037941738963127136, -0.09235817939043045, 0.031772639602422714, -0.1093321144580841, -0.003913633059710264, -0.022857757285237312, -0.0348215289413929, -0.051314059644937515, 0.047855086624622345, -0.005068110302090645, 0.001079257926903665, 0.010278859175741673, -0.02847413346171379, 0.0643654465675354, -0.016537105664610863, 0.003418857231736183, 0.018774742260575294, 0.016260745003819466, 0.014941342175006866, -0.0674678236246109, -0.07042756676673889, 0.05473737418651581, 0.008317585103213787, -0.0029017941560596228, 0.050244275480508804, 0.0165549349039793, -0.03088115155696869, -0.012507579289376736, -0.031505193561315536, 0.08237350732088089, -0.041543349623680115, 0.04407517611980438, 0.016652999445796013, -0.00607549212872982, -0.004822951275855303, -0.053952865302562714, 0.03776343911886215, 0.05448775738477707, 0.022804267704486847, 0.015306852757930756, 0.015574298799037933, 0.04115109518170357, 0.004000553395599127, 0.007849553599953651, -0.06383055448532104, -0.0352851040661335, 0.06350962072610855, 0.033430807292461395, -0.039867352694272995, 0.008776701055467129, 0.005709982011467218, 0.011678495444357395, -0.04960240423679352, 0.057875413447618484, 0.03822701424360275, -0.01091181579977274, -0.04503798484802246, -0.07388654351234436, -0.03672931343317032, -0.03393004089593887, 0.02524694614112377, -0.05580716207623482, 0.006873373873531818, 0.024890350177884102, 0.06639803946018219, 0.012186643667519093, 0.026673326268792152, 0.05669865012168884, 0.014317300170660019, 0.007091788575053215, 0.02683379501104355, 0.009824199602007866, 0.02226937562227249, -0.05473737418651581, 0.007256713695824146, 0.03442927449941635, -0.057732775807380676, -0.014023109339177608, 0.008509255014359951, -0.05623507499694824, 0.026013625785708427, -0.007501873187720776, -0.016831297427415848, 0.016251830384135246, 0.03437578305602074, -0.009663731791079044, -0.001999162370339036, -0.030667193233966827, 0.01574368216097355, -0.018810400739312172, 0.031754810363054276, 0.049745041877031326, -0.0016793408431112766, 0.03655101731419563, -0.07128339260816574, 0.06315302103757858, 0.0069491504691541195, -0.008059053681790829, -0.02253682166337967, 0.06507863849401474, 0.08287274092435837, -0.004359377082437277, -0.05455907806754112, -0.04471704736351967, 0.08422780781984329, -0.0066817039623856544, 0.060728177428245544, 0.04275577515363693, -0.02323218248784542, 0.008865850046277046, -0.006414257455617189, -0.014575831592082977, 0.009743966162204742, 0.03359127417206764, -0.02310737408697605, 0.007305745966732502, 0.027333028614521027, -0.0030533471144735813, 0.034999825060367584, -0.013202940113842487, -0.04371858015656471, 0.0457511730492115, 0.007430553901940584, -0.05530792847275734, 0.012489750050008297, 0.026281071826815605, 0.021859290078282356, 0.009387371130287647, -0.029044685885310173, 0.0117498142644763, 0.017803018912672997, 0.015921978279948235, 0.006534608546644449, 0.04222087934613228, 0.008486967533826828, -0.04361160099506378, 0.011295155622065067, -0.035944804549217224, 0.03496416658163071, -0.06457940489053726, -0.03428663685917854, 0.031398214399814606, -0.05438077822327614, -0.034999825060367584, 0.017606891691684723, -0.0790928304195404, 0.013746747747063637, 0.03168348968029022, 0.017544487491250038, -0.04471704736351967, -0.0012235675239935517, -0.024890350177884102, -0.011687410064041615, -0.021609673276543617, -0.06104911118745804, 0.008478052914142609, 0.03801305592060089, -0.034732379019260406, -0.0017907769652083516, -0.038904543966054916, -0.008553829044103622, 0.001056413515470922, 0.027475666254758835, -0.01991584710776806, -0.04257747530937195, -0.044396113604307175, 0.02549656294286251, -0.09820634126663208, -0.02301822602748871, 0.015948724001646042, -0.022126736119389534, -0.0314873643219471, 0.027618303894996643, 0.0028282462153583765, 0.019220486283302307, 0.016269659623503685, -0.022483332082629204, -0.02061120793223381, 0.0348215289413929, 0.02394537255167961, 0.029276471585035324, 0.019862357527017593, 0.006271619349718094, 0.024747712537646294, -0.033216848969459534, 0.0033453095238655806, 0.005843705032020807, -0.033769574016332626, 0.00822843611240387, 0.0581606887280941, -0.021556183695793152, 0.007796064484864473, -0.003998324740678072, 0.0003468446375336498, 0.02836715430021286, -0.06764612346887589, -0.02073601633310318, -0.025906646624207497, -0.13436509668827057, 0.0027658420149236917, -0.021770142018795013, 0.029989663511514664, -0.03385872021317482, 0.0010959733044728637, -0.05980102717876434, 0.04639304429292679, -0.00757319200783968, 0.036301400512456894, 0.02658417820930481, 0.014495598152279854, -0.025888817384839058, -0.06522127985954285, 0.05006597563624382, 0.003487947629764676, -0.028171027079224586, -0.02287558652460575, -0.07531291991472244, -0.04564419388771057, 0.018052635714411736, 0.08665265142917633, -0.0004897613544017076, 0.012293621897697449, 0.03972471505403519, -0.04664266109466553, 0.033680424094200134, 0.0224120132625103, 0.010457156226038933, 0.016358807682991028, 0.03576650470495224, 0.05673430860042572, 0.0025674859061837196, -0.07096245884895325, 0.01634097844362259, 0.09328532218933105, 0.01763363741338253, -0.007069501560181379, 0.01727704145014286, -0.0046000792644917965, -0.03205791488289833, -0.05170631408691406, 0.03601612150669098, -0.04411083459854126, -0.0044641271233558655, -0.005219663493335247, 0.02635239064693451, 0.04657134413719177, 0.01920265518128872, -0.03787041828036308, 0.0036929899360984564, 0.0181061252951622, 0.009137754328548908, 0.08565418422222137, 0.036158762872219086, -0.007247799076139927, -0.04161467030644417, 0.03876190632581711, -0.034126169979572296, -0.0727454349398613, 0.049531083554029465, -0.018293337896466255, -0.010305603966116905, -0.016403382644057274, -0.03346646577119827, 0.0314873643219471, -0.05281176045536995, -0.012498664669692516, 0.03655101731419563, -0.08807903528213501, -0.056056778877973557, 0.027564814314246178, 0.001584620214998722, -0.02039724960923195, 0.031986597925424576, -0.06828799843788147, 0.07666798681020737, -0.020825164392590523, 0.05042257159948349, -0.02383839525282383, -0.01634097844362259, 0.04589381068944931, -0.11254146695137024, 0.02909817546606064, 0.015511894598603249, -0.018311167135834694, -0.04913882911205292, 0.024266308173537254, 0.05042257159948349, 0.0462147481739521, 0.00027301826048642397, -0.02991834469139576, -0.027707453817129135, 0.0421852208673954, -0.016260745003819466, 0.05570018291473389, 0.01574368216097355, 0.0060487473383545876, -0.01574368216097355, 0.03733552619814873, -0.0001181221887236461, 0.0665406808257103, -0.04036658629775047, 0.029882684350013733, -0.008611775934696198, -0.04945976659655571, -0.08273010700941086, -0.0042546275071799755, -0.05110010504722595, 0.00661929976195097, -0.03922548145055771, 0.029365621507167816, 0.027939239516854286, 0.019149165600538254, -0.0062582469545304775, -0.024997329339385033, 0.0008937169332057238, -0.006498949136584997, 0.045251939445734024, 0.002482794690877199, -0.023624436929821968, 0.06860893219709396, -0.05826766788959503, -0.030346257612109184, -0.009815284982323647, 0.037121567875146866, 0.006534608546644449, 0.005188461393117905, -0.03207574412226677, 0.015708021819591522, 0.007903043180704117, -0.02670898661017418, -0.052883081138134, -0.005620833020657301, -0.02836715430021286, 0.015173128806054592, -0.011357559822499752, 0.019523590803146362, 0.023143034428358078, 0.06522127985954285, -0.0007911957800388336 ]
17,330
imodels.tree.hierarchical_shrinkage
__repr__
null
def __repr__(self): # s = self.__class__.__name__ # s += "(" # s += "estimator_=" # s += repr(self.estimator_) # s += ", " # s += "reg_param=" # s += str(self.reg_param) # s += ", " # s += "shrinkage_scheme_=" # s += self.shrinkage_scheme_ # s += ")" # return s attr_list = ["estimator_", "reg_param", "shrinkage_scheme_"] s = self.__class__.__name__ s += "(" for attr in attr_list: s += attr + "=" + repr(getattr(self, attr)) + ", " s = s[:-2] + ")" return s
(self)
[ 0.05789157375693321, -0.03615407645702362, 0.04899384453892708, -0.006631063297390938, 0.015176828019320965, -0.0636732205748558, 0.008620851673185825, -0.04903138428926468, 0.009892626665532589, -0.0042447252199053764, -0.0239525455981493, 0.03784352168440819, 0.009892626665532589, 0.057215798646211624, -0.030034540221095085, -0.008695937693119049, -0.002398070180788636, -0.08687490969896317, 0.004570881370455027, 0.00623216712847352, -0.008691244758665562, 0.029602793976664543, -0.007602492813020945, -0.016059093177318573, 0.018508784472942352, 0.05702808126807213, -0.004460598342120647, -0.020104369148612022, -0.006387032568454742, -0.0001781834289431572, -0.08086799830198288, -0.08146868646144867, -0.01436026394367218, -0.03998348116874695, 0.008634930476546288, 0.0024778496008366346, -0.02720003016293049, 0.014829553663730621, -0.05901787057518959, -0.022657305002212524, 0.03345096856355667, -0.03091680444777012, -0.03200555592775345, -0.0641612857580185, -0.03874455764889717, -0.00980815477669239, 0.03795614838600159, 0.018771586939692497, -0.005898971110582352, -0.10399459302425385, 0.008287656120955944, 0.03983330726623535, -0.01087813451886177, 0.03820018097758293, -0.040208738297224045, -0.011234794743359089, 0.07508634775876999, 0.014200706034898758, 0.03990839421749115, 0.0373554602265358, -0.0477173738181591, 0.019822796806693077, 0.03208064287900925, -0.04032136872410774, -0.006537205073982477, -0.05147169157862663, -0.0904039666056633, 0.011628998443484306, -0.02445937879383564, 0.026955999433994293, 0.03232467174530029, -0.05650247633457184, -0.030203483998775482, 0.033263251185417175, -0.053499024361371994, -0.03521549701690674, -0.02547304332256317, -0.027350202202796936, 0.004861840978264809, -0.07013065367937088, 0.023107824847102165, 0.009667367674410343, -0.019043775275349617, -0.07508634775876999, 0.010061570443212986, -0.07013065367937088, -0.036867398768663406, -0.04557741433382034, -0.026843369007110596, 0.0020073866471648216, -0.013909745961427689, 0.04670370742678642, -0.009676753543317318, 0.031160835176706314, -0.0066545275039970875, -0.0026514867786318064, -0.030654001981019974, -0.04159783571958542, 0.05383691191673279, -0.01619049347937107, 0.0318366102874279, -0.003479782957583666, -0.06055714190006256, 0.009315400384366512, -0.05372428148984909, -0.01620926521718502, -0.028551584109663963, 0.01327151246368885, -0.0007010014378465712, -0.012332933023571968, -0.012060744687914848, 0.05695299431681633, -0.018461856991052628, -0.015317615121603012, 0.044338490813970566, -0.01753266341984272, -0.008114018477499485, 0.0005446693394333124, 0.04569004476070404, -0.034596037119627, -0.0026069041341543198, 0.026336537674069405, -0.030053311958909035, 0.027838263660669327, -0.049181558191776276, 0.026955999433994293, 0.0006482063909061253, 0.024647094309329987, -0.006523126736283302, -0.10249286890029907, 0.009596973657608032, -0.0426865890622139, -0.06292235851287842, 0.03844420984387398, 0.06209640949964523, -0.015946462750434875, 0.0426115021109581, 0.01865895837545395, 0.032212045043706894, 0.09776242822408676, 0.0319116972386837, -0.0012706018751487136, -0.01280222274363041, 0.04355008155107498, -0.008428442291915417, -0.031104519963264465, 0.0027195336297154427, 0.10864994674921036, 0.014566752128303051, -0.06573809683322906, 0.003493861760944128, 0.028514040634036064, 0.03224958851933479, -0.029490163549780846, 0.030654001981019974, 0.03514041006565094, -0.004664739593863487, -0.006954872980713844, 0.020010512322187424, -0.03551584482192993, -0.03356359899044037, -0.015524102374911308, 0.019522450864315033, -0.04508935287594795, 0.04674125090241432, 0.044488660991191864, 0.01745757646858692, -0.02986559458076954, -0.007166053634136915, 0.02231941744685173, -0.006931408774107695, -0.08687490969896317, -0.08394654095172882, 0.04741702973842621, -0.029114732518792152, 0.0905541405081749, 0.01924087665975094, 0.09903889149427414, -0.02506006881594658, 0.002869706368073821, 0.029058417305350304, -0.04189818352460861, -0.0747484639286995, 0.00981753971427679, 0.025210240855813026, -0.09348250180482864, 0.028363868594169617, -0.035872504115104675, 0.03472743555903435, 0.016002777963876724, 0.040246281772851944, 0.013421684503555298, -0.0041320957243442535, 0.027444060891866684, -0.0005754664889536798, -0.0742603987455368, 0.0017750882543623447, -0.033206939697265625, 0.029020873829722404, 0.05777894705533981, -0.0004704628954641521, 0.036529507488012314, -0.02286379411816597, 0.03290659189224243, 0.024797266349196434, -0.012041972950100899, 0.004294000566005707, -0.03345096856355667, 0.022769935429096222, 0.023520799353718758, 0.02599864825606346, 0.02400886081159115, 0.03341342508792877, -0.005387445446103811, 0.03722405806183815, -0.004003040958195925, -0.017429418861865997, 0.005485996603965759, -0.02984682470560074, 0.0013175307540223002, 0.050270311534404755, -0.04141012206673622, 0.017710993066430092, -0.02661811001598835, -0.05541372671723366, -0.02607373520731926, 0.03226836025714874, 0.0005869054002687335, -0.00981753971427679, -0.01965385116636753, 0.02706862799823284, -0.03086048923432827, -0.018283525481820107, 0.01840554177761078, 0.0009872681694105268, 0.06070731207728386, -0.05012013763189316, 0.0017797810724005103, -0.01516744215041399, -0.015101741999387741, -0.021512238308787346, 0.033319566398859024, -0.011178480461239815, 0.004951006267219782, 0.04625318944454193, -0.069342240691185, 0.02656179666519165, 0.052447814494371414, -0.01708214357495308, -0.03656705096364021, 0.05586424469947815, -0.018086424097418785, -0.032737649977207184, 0.008480064570903778, -0.004498141817748547, -0.028063522651791573, -0.014660609886050224, 0.03275642171502113, 0.03990839421749115, 0.01412561908364296, -0.0021481735166162252, -0.016547154635190964, -0.01624680869281292, 0.010925063863396645, 0.033770084381103516, 0.006518433801829815, -0.006551283877342939, -0.0038200179114937782, -0.018527556210756302, -0.00517157232388854, 0.12013816088438034, 0.01673487015068531, -0.08927766978740692, 0.04460129141807556, -0.05680282413959503, -0.061908695846796036, 0.011075236834585667, -0.0320618711411953, -0.05800420418381691, -0.04715422913432121, 0.025754617527127266, -0.03365745767951012, 0.016274966299533844, 0.008996283635497093, 0.018461856991052628, -0.03622916340827942, 0.02241327613592148, -0.0045427242293953896, 0.030560143291950226, 0.020367171615362167, 0.03296290710568428, 0.01724170334637165, -0.008803874254226685, -0.004394897725433111, 0.1065475270152092, -0.03581618890166283, 0.05541372671723366, 0.015477173961699009, -0.018377384170889854, 0.02659934014081955, 0.02551058679819107, -0.004791447892785072, 0.03358237072825432, 0.019447363913059235, -0.020048055797815323, 0.02397131733596325, 0.016490839421749115, 0.01299932412803173, 0.004139135126024485, 0.03200555592775345, 0.01093444973230362, 0.028551584109663963, 0.04591530188918114, 0.05777894705533981, -0.01784239336848259, -0.006523126736283302, -0.013158882968127728, 0.007705736439675093, 0.028889473527669907, 0.07876557856798172, 0.022976422682404518, 0.005462531931698322, -0.01642513833940029, 0.017504505813121796, 0.008588001132011414, -0.0746358335018158, -0.04358762502670288, -0.010718576610088348, 0.018499398604035378, -0.0024191883858293295, -0.04088451713323593, -0.05729088559746742, 0.037543173879384995, 0.0479050911962986, 0.047604747116565704, 0.050720829516649246, 0.014773239381611347, -0.0023757789749652147, -0.07929118722677231, -0.03945787623524666, 0.06066976860165596, 0.019297191873192787, -0.013496771454811096, 0.01787993684411049, -0.05781649053096771, 0.012961780652403831, -0.02506006881594658, 0.03039119951426983, 0.03596636280417442, 0.01778607815504074, -0.05432497337460518, -0.02920858934521675, 0.034858837723731995, 0.04358762502670288, 0.025754617527127266, 0.03140486404299736, -0.030654001981019974, 0.03874455764889717, -0.02438429184257984, 0.04291184991598129, 0.06213395297527313, -0.022582219913601875, 0.014200706034898758, 0.009977098554372787, -0.0006810566410422325, -0.03930770233273506, -0.005706562660634518, 0.0006487930077128112, 0.08567352592945099, -0.03303799405694008, -0.05789157375693321, -0.003986615687608719, -0.01655654050409794, -0.0533113069832325, -0.06295990198850632, 0.07377234101295471, -0.01299932412803173, -0.003468050854280591, -0.018142739310860634, -0.06994293630123138, 0.02438429184257984, 0.0066779921762645245, 0.024271663278341293, 0.029377534985542297, 0.026411622762680054, 0.023013966158032417, 0.022657305002212524, 0.010465160012245178, 0.03243730217218399, -0.001919394824653864, -0.037974920123815536, -0.012548806145787239, -0.039645593613386154, 0.02333308383822441, -0.022976422682404518, -0.0426865890622139, 0.0021012446377426386, -0.01059656124562025, -0.08101817220449448, -0.016406366601586342, -0.013215197250247002, -0.030710317194461823, -0.05259798839688301, -0.014472893439233303, -0.00443244120106101, -0.02498498186469078, 0.023145366460084915, 0.047642286866903305, 0.01961630955338478, -0.031611353158950806, -0.0041766781359910965, -0.02864544279873371, -0.037055112421512604, -0.041184861212968826, 0.0694548711180687, 0.0016472068382427096, 0.021418381482362747, 0.008503529243171215, 0.022112930193543434, -0.005199729464948177, -0.013243354856967926, 0.021699955686926842, -0.0016671515768393874, 0.036529507488012314, -0.012727135792374611, 0.023295540362596512, -0.05702808126807213, 0.021643640473484993, 0.07001802325248718, 0.046591080725193024, -0.01355308573693037, 0.026374079287052155, -0.021981528028845787, 0.014576137997210026, 0.012689593248069286, -0.043324824422597885, -0.005913049913942814, 0.005589240230619907, 0.00611484469845891, 0.012933623977005482, -0.002801659516990185, -0.05898032709956169, 0.005110564641654491, -0.026880912482738495, -0.021906442940235138, 0.033751312643289566, -0.03407043218612671, 0.010399458929896355, -0.007194210775196552, -0.019156405702233315, 0.07504880428314209, 0.0020414101891219616, -0.034783750772476196, -0.000676363764796406, 0.006265017203986645, -0.035384442657232285, 0.03129223734140396, -0.05210992693901062, 0.009977098554372787, 0.002169291488826275, 0.0008523474098183215, 0.025304099544882774, -0.003385924967005849, 0.06318516284227371, -0.013130725361406803, 0.015552259981632233, 0.055038295686244965, 0.004519259557127953, -0.04047154262661934, -0.020048055797815323, 0.034858837723731995, -0.004362047649919987, -0.018030108883976936, -0.010690419003367424, -0.02389623038470745, 0.08244480937719345, -0.012079516425728798, -0.00318647688254714, -0.05729088559746742, -0.03519672527909279, -0.04610301926732063, -0.06164589151740074, -0.01972893811762333, 0.02175626903772354, -0.009277856908738613, 0.01912824809551239, -0.03395780175924301, 0.01433210726827383, -0.00008982497820397839, 0.005026092287153006, -0.019006231799721718, 0.04569004476070404, -0.05278570204973221, 0.026955999433994293, 0.0015099395532160997, 0.047079142183065414, 0.0005188584327697754, -0.008128097280859947, -0.04981979355216026, 0.0320618711411953, -0.004969777539372444, -0.0347086638212204, 0.015129899606108665, 0.00018478280981071293, 0.018612029030919075, 0.005875506903976202, 0.024703409522771835, 0.04846823960542679, -0.008832031860947609, -0.0021012446377426386, 0.04475146532058716, -0.0794413611292839, 0.002782887779176235, 0.028945786878466606, -0.056127045303583145, -0.06656404584646225, 0.0003798313264269382, 0.01386281754821539, -0.029433848336338997, 0.03254993259906769, 0.05120889097452164, 0.017410647124052048, -0.058717526495456696, -0.02554813027381897, -0.03027857095003128, 0.03814386576414108, -0.009221542626619339, 0.012267231941223145, -0.029677879065275192, 0.0584922656416893, 0.011394353583455086, -0.011178480461239815, 0.005927128717303276, 0.018199054524302483, -0.023051509633660316, 0.09348250180482864, 0.0047585973516106606, 0.02543550170958042, 0.009826925583183765, 0.009080755524337292, 0.03598513454198837, -0.04163537919521332, -0.0319492407143116, -0.02496621198952198, -0.003315531648695469, -0.028044750913977623, 0.036942481994628906, 0.006025679409503937, 0.01974770985543728, -0.05057065561413765, -0.0033976573031395674, 0.00018038322741631418, -0.011300495825707912, -0.034896381199359894, 0.04415077343583107, 0.06712719798088074, 0.02385868690907955, 0.015495945699512959, -0.0042517646215856075, 0.0211931224912405, -0.007076888345181942, -0.01352492906153202, 0.07546178251504898, -0.011225408874452114, 0.010239901021122932, 0.05226010084152222, 0.0004112150927539915, 0.033263251185417175, -0.06968013197183609, -0.04351253807544708, 0.018105195835232735, -0.004810219164937735, 0.054437603801488876, 0.019954197108745575, -0.048205435276031494, 0.0036628060042858124, 0.0030855797231197357, 0.0741477683186531, 0.013665715232491493, 0.007419469766318798, 0.014726310037076473, 0.02017945609986782, -0.026787055656313896, -0.04929418861865997, -0.02070506103336811, 0.02915227599442005, -0.054024629294872284, 0.0021211893763393164, -0.017053987830877304, -0.03596636280417442, -0.013740802183747292, -0.024722181260585785, -0.029490163549780846, -0.03345096856355667, 0.04430094733834267, -0.02556690201163292, -0.013712644577026367, -0.011901186779141426, 0.0002843602269422263, 0.04903138428926468, 0.021024178713560104, 0.01007095631211996, 0.05357411131262779, 0.021643640473484993, 0.022657305002212524, -0.01516744215041399, 0.03147995099425316, 0.04561495780944824, -0.0106153329834342, 0.03896981477737427, -0.006912637036293745, 0.050307855010032654, -0.02825123816728592, -0.06581318378448486, -0.031648896634578705, -0.010605947114527225, -0.021493466570973396, -0.0030550758820027113, -0.017992567270994186, -0.0067530786618590355, 0.018236597999930382, 0.01591830514371395, -0.04080943018198013, 0.031179606914520264, -0.03285027667880058, 0.004249418154358864, -0.016406366601586342, -0.06202132627367973, 0.05210992693901062, -0.05680282413959503, 0.035928819328546524, 0.0028884781058877707, 0.04043399915099144, -0.10301847010850906, -0.04032136872410774, 0.027575461193919182, 0.023126594722270966, 0.03506532683968544, -0.06311007589101791, 0.001105177216231823, 0.012633278034627438, 0.005298280622810125, -0.069192074239254, 0.00016791770758572966, -0.03927015885710716, -0.010024027898907661, -0.0022983462549746037, -0.0640111118555069, 0.02872052788734436, -0.054512690752744675, -0.03814386576414108, 0.022469589486718178, -0.0026772976852953434, -0.0015204985393211246, 0.00004821218317374587, 0.009179306216537952, -0.03298167884349823, 0.03836912289261818, -0.014501051045954227, -0.017176002264022827, -0.040133655071258545, -0.0344834066927433, 0.021587325260043144, -0.05811683461070061, 0.06581318378448486, 0.04426340386271477, -0.03621039167046547, 0.023089053109288216, 0.01976648159325123, -0.03930770233273506, -0.04291184991598129, 0.026749512180685997, -0.005598626099526882, -0.05068328604102135, -0.060331881046295166, 0.010803048498928547, 0.015054812654852867, 0.01145066786557436, 0.01613418012857437, -0.03767457604408264, 0.03151749446988106, 0.006776542868465185, -0.02445937879383564, -0.059355758130550385, 0.04981979355216026, -0.007302147336304188, -0.046478450298309326, 0.049181558191776276, -0.017363717779517174, -0.02765054814517498, -0.058229465037584305, -0.08747559785842896, 0.02706862799823284, -0.020554888993501663, 0.07786454260349274, 0.00030533160315826535, 0.04617810621857643, -0.051321521401405334, 0.04996996372938156, -0.009714296087622643, 0.02231941744685173, 0.032118186354637146, 0.0012553499545902014, 0.00745232030749321, 0.04741702973842621, 0.03350728377699852, 0.058717526495456696, -0.006776542868465185, 0.0015310576418414712, -0.03669845312833786, 0.020010512322187424, 0.08597386628389359, -0.005260737147182226, -0.05702808126807213, 0.03339465335011482, -0.010971993207931519, -0.021474696695804596, 0.013496771454811096, -0.021681183949112892, 0.006335410755127668, 0.004481716547161341, 0.04456374794244766, 0.06859137862920761, -0.005697176791727543, -0.027838263660669327, 0.09400811046361923, -0.03412674739956856, -0.01891237497329712, 0.006776542868465185, -0.019897881895303726, 0.0054531460627913475, 0.04981979355216026, -0.05481303483247757, -0.035872504115104675, 0.03341342508792877, -0.013712644577026367, 0.00011959554103668779, -0.014857711270451546, 0.02455323562026024, 0.043287280946969986, 0.02335185371339321, 0.07099414616823196, 0.006213395390659571, 0.012595735490322113, -0.0158807635307312, 0.03934524580836296, 0.01089690625667572, 0.025810932740569115, 0.012623892165720463, -0.020892776548862457, 0.038519296795129776, 0.024703409522771835, -0.016509611159563065, -0.023295540362596512, 0.06543775647878647, -0.06123291701078415, 0.03472743555903435, 0.013177654705941677, 0.010352530516684055, -0.0533113069832325, -0.0060069081373512745, -0.018208440393209457, 0.03395780175924301, 0.015984006226062775, 0.008128097280859947, 0.055113378912210464, -0.003672191873192787, -0.04955698922276497 ]
17,333
imodels.tree.hierarchical_shrinkage
__str__
null
def __str__(self): # check if fitted if not checks.check_is_fitted(self.estimator_): s = self.__class__.__name__ s += "(" s += "est=" s += repr(self.estimator_) s += ", " s += "reg_param=" s += str(self.reg_param) s += ")" return s else: s = "> ------------------------------\n" s += "> Decision Tree with Hierarchical Shrinkage\n" s += "> \tPrediction is made by looking at the value in the appropriate leaf of the tree\n" s += "> ------------------------------" + "\n" if hasattr(self, "feature_names") and self.feature_names is not None: return s + export_text( self.estimator_, feature_names=self.feature_names, show_weights=True ) else: return s + export_text(self.estimator_, show_weights=True)
(self)
[ 0.04154076427221298, -0.024115078151226044, 0.040395066142082214, -0.014949500560760498, 0.035553570836782455, -0.0738050788640976, 0.004160081967711449, -0.03243062272667885, 0.018959440290927887, -0.012926051393151283, 0.020031223073601723, 0.008098416030406952, 0.016741963103413582, -0.00957211572676897, -0.019347500056028366, 0.004571239463984966, 0.021306272596120834, -0.09845604747533798, 0.013757606036961079, 0.03810367360711098, -0.00628285575658083, 0.02104756608605385, -0.019809475168585777, -0.03244910016655922, -0.006560040637850761, 0.01854366436600685, -0.0005338694900274277, -0.06057412177324295, -0.02156497910618782, -0.005261891521513462, -0.08736865222454071, -0.1012648493051529, -0.03939720243215561, -0.011087392456829548, -0.025815146043896675, 0.022950902581214905, -0.02193455770611763, 0.005049383267760277, -0.04494089633226395, -0.02768152393400669, -0.02241501212120056, -0.006592378951609135, -0.05078025534749031, -0.051778122782707214, -0.04542135074734688, -0.00279263686388731, 0.007585624232888222, 0.061535026878118515, -0.02603689394891262, -0.0721789225935936, 0.015097332186996937, 0.019624684005975723, -0.044460441917181015, 0.02197151631116867, -0.03862108290195465, -0.015457672998309135, 0.07739000022411346, -0.028235891833901405, 0.053847767412662506, 0.0075348070822656155, -0.0012900643050670624, 0.04704750329256058, 0.03250453993678093, 0.016852837055921555, -0.018940962851047516, -0.011761875823140144, -0.05887405201792717, 0.013064644299447536, -0.02847611904144287, 0.05780227109789848, 0.024078121408820152, -0.06759613752365112, -0.01400707196444273, 0.04963456094264984, -0.02278459072113037, -0.006375250406563282, -0.035073116421699524, -0.06456558406352997, 0.028586992993950844, -0.04054289683699608, 0.015744097530841827, 0.0038597984239459038, 0.026073850691318512, -0.09165577590465546, 0.00610268535092473, -0.08707299083471298, -0.02849459834396839, -0.055917415767908096, 0.009364226832985878, 0.02239653281867504, -0.010024850256741047, 0.0033123583998531103, -0.005197215359658003, 0.019735557958483696, -0.008283206261694431, 0.014921782538294792, 0.0012288526631891727, -0.03895370662212372, -0.012639627791941166, -0.03366871550679207, 0.022636760026216507, 0.052147701382637024, -0.023782456293702126, 0.048119284212589264, -0.042021218687295914, -0.03538725897669792, -0.02317265048623085, 0.05248032510280609, 0.003122948808595538, -0.001465614652261138, -0.022100869566202164, 0.028513077646493912, 0.00056620774557814, -0.022950902581214905, 0.03374263271689415, -0.042021218687295914, -0.05074330046772957, -0.00851881317794323, -0.01947685331106186, -0.0479714497923851, 0.025907540693879128, 0.0046890429221093655, -0.05680440738797188, -0.014330455102026463, -0.056656576693058014, 0.01955076865851879, 0.010403669439256191, 0.029788127169013023, -0.0011508944444358349, -0.09904737025499344, 0.03503616154193878, -0.02441074140369892, -0.03651447966694832, 0.01179883349686861, 0.07620734721422195, -0.020419280976057053, 0.016113676130771637, 0.01583649218082428, 0.020807338878512383, 0.09039920568466187, 0.02880874089896679, -0.05070634186267853, -0.017065344378352165, 0.012768980115652084, 0.05244336649775505, -0.03459266573190689, -0.012427118606865406, 0.05758052319288254, 0.019698601216077805, -0.04841494560241699, 0.001958772772923112, -0.0010071047581732273, -0.04069073125720024, -0.046456173062324524, 0.02594449743628502, -0.0018906313925981522, 0.020160574465990067, -0.02156497910618782, 0.033114343881607056, -0.021417146548628807, -0.007026635110378265, -0.050188928842544556, 0.0365883931517601, 0.007659540046006441, 0.049301937222480774, 0.050558511167764664, -0.03769713267683983, 0.008712842129170895, -0.002603227272629738, 0.011734156869351864, -0.01583649218082428, -0.053847767412662506, -0.09047312289476395, 0.055067382752895355, -0.01578105427324772, 0.06774396449327469, 0.03854716941714287, 0.09209927171468735, -0.011253703385591507, 0.01883932761847973, -0.0011110490886494517, -0.016002802178263664, -0.06833529472351074, 0.003263851162046194, 0.0058070216327905655, -0.08877305686473846, 0.029954439029097557, -0.007142128422856331, -0.008384840562939644, 0.02197151631116867, 0.009179436601698399, -0.003471739822998643, 0.027940228581428528, 0.020641028881072998, 0.015429954044520855, -0.04250166937708855, 0.012131455354392529, -0.055030424147844315, 0.043314747512340546, -0.00012711522867903113, -0.0005523485015146434, 0.0422799214720726, 0.028235891833901405, 0.026258641853928566, -0.002024604007601738, 0.05658265948295593, 0.02069646492600441, 0.02106604538857937, -0.024891195818781853, 0.027404338121414185, -0.0028157357592135668, 0.009812342002987862, -0.013046164996922016, 0.017407206818461418, 0.04460827633738518, -0.007266861852258444, -0.008130754344165325, 0.029769647866487503, -0.06877879053354263, -0.0060980659909546375, 0.03010226972401142, -0.02880874089896679, 0.05044763535261154, 0.02237805351614952, -0.011420014314353466, -0.031857773661613464, 0.03891674801707268, -0.04032114893198013, 0.0034740495029836893, -0.02350527234375477, 0.018017012625932693, -0.040468983352184296, -0.02232261747121811, 0.009267211891710758, -0.029529422521591187, 0.05126070976257324, -0.06042628735303879, -0.027090195566415787, -0.022174784913659096, -0.0077149770222604275, -0.049006275832653046, 0.011253703385591507, -0.02890113554894924, 0.001443670829758048, 0.059945836663246155, -0.07576385140419006, 0.017434924840927124, 0.023375919088721275, -0.005243412684649229, -0.03082295134663582, 0.0746181532740593, -0.010551501996815205, -0.040025487542152405, -0.027533691376447678, -0.00340013368986547, -0.041651636362075806, -0.004136983305215836, 0.022026952356100082, 0.02921527810394764, 0.024503137916326523, -0.0011110490886494517, -0.002041928004473448, -0.05044763535261154, 0.05532608926296234, -0.017804503440856934, -0.03424156457185745, -0.01506037451326847, -0.019680121913552284, -0.000337818986736238, -0.0033123583998531103, 0.0902513712644577, 0.054217349737882614, -0.08226845413446426, 0.025907540693879128, -0.03523942828178406, -0.040801603347063065, -0.005719246808439493, -0.011383056640625, -0.05477171763777733, -0.012270047329366207, 0.01120750606060028, -0.05613916367292404, 0.008130754344165325, 0.024891195818781853, -0.0026494248304516077, -0.038805872201919556, 0.01624302938580513, -0.05573262646794319, 0.04782361909747124, 0.0203268863260746, -0.012057539075613022, 0.03729059547185898, -0.026073850691318512, -0.0025200718082487583, 0.07435944676399231, -0.0346481017768383, 0.07051581889390945, -0.01949533075094223, 0.0015464602038264275, 0.007705737836658955, 0.035147033631801605, -0.015356038697063923, 0.015402236022055149, -0.03972982242703438, -0.031820815056562424, 0.013304870575666428, 0.024632489308714867, -0.03337305039167404, 0.031137093901634216, 0.022895464673638344, -0.025815146043896675, 0.024928154423832893, 0.07583776116371155, 0.040838561952114105, 0.0009164422517642379, 0.0046128174290061, 0.01505113486200571, -0.007590244058519602, 0.04989326745271683, 0.06268072873353958, -0.00853729248046875, 0.02119539864361286, 0.008731321431696415, -0.02394876815378666, 0.01728709228336811, -0.09054704010486603, -0.00897154863923788, -0.019606204703450203, 0.026609741151332855, -0.006689393427222967, -0.04823015630245209, -0.06689393520355225, 0.07387898862361908, 0.0008465686114504933, 0.020031223073601723, 0.06316117942333221, 0.027755439281463623, 0.015744097530841827, -0.0495976023375988, 0.0013374167028814554, 0.06815050542354584, 0.002372239949181676, -0.018109407275915146, 0.039951570332050323, -0.010348232463002205, 0.03331761434674263, -0.00019374063413124532, 0.04094943776726723, 0.0504106767475605, 0.06530474126338959, -0.046493131667375565, -0.020179053768515587, 0.029326152056455612, -0.002700241981074214, 0.043647367507219315, 0.017185458913445473, -0.0002823820395860821, 0.04420173913240433, -0.01297224871814251, 0.01955076865851879, 0.02921527810394764, -0.028697866946458817, -0.011105871759355068, 0.055067382752895355, -0.020086659118533134, -0.056286994367837906, 0.016132155433297157, 0.032375186681747437, 0.11397839337587357, -0.02198999561369419, -0.024614011868834496, -0.016566412523388863, 0.004296364728361368, -0.04483002424240112, -0.026572784408926964, 0.09342975914478302, 0.010375951416790485, -0.019717078655958176, -0.007673399522900581, -0.0837467685341835, 0.03686558082699776, 0.03126644715666771, 0.00037564316880889237, 0.027552170678973198, 0.0238933302462101, 0.014700034633278847, 0.027958707883954048, 0.02234109491109848, 0.028125017881393433, -0.026110809296369553, 0.007807372137904167, -0.007003535982221365, -0.01402555126696825, 0.012676585465669632, -0.029954439029097557, -0.042908210307359695, 0.005192595534026623, 0.013461941853165627, -0.07605951279401779, 0.022932423278689384, 0.01640010066330433, -0.01686207577586174, -0.07495076954364777, -0.02117691934108734, -0.010034089908003807, 0.001816715463064611, 0.007119029760360718, 0.02073342353105545, -0.006033389363437891, -0.0017093063797801733, 0.0017093063797801733, -0.037142764776945114, -0.04989326745271683, 0.022470448166131973, 0.03254149854183197, 0.03858412429690361, -0.022026952356100082, 0.05399560183286667, -0.012251568958163261, -0.03910153731703758, -0.043203871697187424, 0.03329913690686226, -0.0004677493707276881, 0.05558479204773903, 0.02969573251903057, 0.02880874089896679, -0.06061107665300369, 0.019754037261009216, 0.06083282455801964, 0.04420173913240433, -0.012759740464389324, -0.02274763397872448, -0.06142415478825569, -0.0021747457794845104, 0.01360977441072464, -0.043203871697187424, -0.03660687431693077, 0.0033169782254844904, -0.017758306115865707, -0.004104644991457462, -0.0028319049160927534, -0.057913146913051605, 0.033483926206827164, 0.026147767901420593, 0.00026303683989681304, 0.03372415155172348, -0.04072768986225128, -0.02197151631116867, -0.046973586082458496, -0.028235891833901405, 0.05599133297801018, 0.03006531298160553, -0.044090863317251205, 0.023394398391246796, 0.018478987738490105, -0.06086978316307068, 0.04183642566204071, -0.03865804150700569, 0.004892311990261078, 0.018922483548521996, -0.01317551825195551, 0.035941630601882935, 0.004395688883960247, 0.07746391743421555, 0.030804472044110298, -0.038362376391887665, 0.06338292360305786, 0.011724917218089104, -0.030989261344075203, -0.040025487542152405, 0.0414668470621109, -0.018996398895978928, -0.01790613867342472, -0.008426418527960777, -0.009211774915456772, 0.08884697407484055, -0.01237168163061142, -0.031100135296583176, -0.02801414392888546, -0.005026284605264664, -0.020049700513482094, -0.0585414320230484, -0.00558527372777462, 0.02197151631116867, -0.004227068275213242, 0.00010885278607020155, -0.044053904712200165, 0.015078853815793991, -0.007465511094778776, 0.0014991078060120344, -0.017573516815900803, 0.005557555239647627, -0.04597571864724159, -0.0135728158056736, -0.021324751898646355, 0.037105806171894073, 0.01703762635588646, 0.003751234384253621, -0.06526778638362885, 0.031414277851581573, 0.015069614164531231, -0.0001396751613356173, 0.021287793293595314, -0.011493929661810398, 0.026942363008856773, -0.020973650738596916, 0.06401120871305466, 0.04301908239722252, -0.029843565076589584, 0.022599801421165466, 0.025408606976270676, -0.059871919453144073, 0.01194666512310505, 0.059539295732975006, -0.022969381883740425, -0.04264950379729271, 0.01668652519583702, 0.025316212326288223, 0.020160574465990067, 0.03584923595190048, -0.0037466147914528847, -0.004044588189572096, 0.006735590752214193, -0.043647367507219315, 0.00843103788793087, 0.03442635387182236, -0.027478253468871117, 0.044497400522232056, -0.03341000899672508, 0.07365724444389343, 0.026960842311382294, -0.014478286728262901, 0.022636760026216507, 0.039175454527139664, -0.005719246808439493, 0.07321374863386154, -0.01760123483836651, 0.022636760026216507, 0.0414668470621109, 0.011438493616878986, 0.01749960146844387, -0.06718959659337997, -0.04305604100227356, -0.052665114402770996, 0.028568513691425323, -0.015115811489522457, 0.06682001799345016, 0.021601935848593712, 0.02967725321650505, -0.039175454527139664, -0.01032975409179926, 0.002118153963238001, -0.009396565146744251, -0.01945837400853634, 0.04021027684211731, 0.064048171043396, -0.021398667246103287, 0.03939720243215561, 0.016196832060813904, -0.004192420281469822, -0.03891674801707268, -0.005127918906509876, 0.057913146913051605, -0.00039672074490226805, 0.055141299962997437, 0.03736451268196106, -0.021823683753609657, 0.03206104412674904, -0.051371585577726364, -0.06763309240341187, 0.021417146548628807, -0.004019179847091436, 0.012445597909390926, -0.0015406855382025242, -0.08625991642475128, 0.03424156457185745, 0.03254149854183197, 0.06282855570316315, -0.017194697633385658, 0.06482429057359695, -0.022211743518710136, -0.004026109352707863, 0.019255105406045914, -0.009830821305513382, -0.015827253460884094, 0.016058240085840225, -0.01822028122842312, -0.003333147382363677, -0.040875520557165146, -0.005298849660903215, -0.0268314890563488, -0.0031067796517163515, 0.011835791170597076, -0.03681014105677605, 0.05196291208267212, -0.03377958759665489, -0.010680854320526123, -0.011909707449376583, 0.024928154423832893, -0.006874183192849159, 0.001584573183208704, 0.016363143920898438, 0.03298499062657356, 0.04106030985713005, 0.0455322265625, 0.01033899374306202, 0.02971421182155609, 0.03566444665193558, -0.03050880879163742, 0.046160511672496796, 0.004266336094588041, 0.030638160184025764, -0.006569279823452234, -0.060684993863105774, -0.03906457871198654, -0.0008673574775457382, 0.028660910204052925, -0.06434383243322372, -0.018904004245996475, -0.014764711260795593, 0.037955839186906815, 0.04394303262233734, -0.053847767412662506, 0.03135884180665016, -0.048488862812519073, 0.004414168186485767, -0.006010290700942278, -0.07110714167356491, 0.0364036038517952, -0.08611208200454712, 0.004143912810832262, 0.009507439099252224, 0.008957688696682453, -0.08115971088409424, -0.02394876815378666, 0.02309873327612877, 0.011124350130558014, 0.02969573251903057, -0.028125017881393433, -0.04468218982219696, -0.013988593593239784, 0.03664383292198181, -0.05048459395766258, -0.00226021115668118, -0.028531556949019432, -0.021380187943577766, -0.02119539864361286, -0.006213559303432703, 0.02928919531404972, -0.04508873075246811, -0.04131901636719704, 0.03571988269686699, -0.02319112978875637, 0.001633080537430942, 0.025316212326288223, 0.02725650556385517, 0.014496765099465847, 0.017434924840927124, -0.006694013252854347, 0.004180870950222015, -0.05732182040810585, -0.03455570712685585, 0.042058173567056656, -0.02027144841849804, 0.07509860396385193, 0.04276037588715553, -0.015402236022055149, 0.014598400332033634, 0.009123999625444412, -0.07044190168380737, -0.05780227109789848, 0.017222415655851364, -0.007992162369191647, -0.07070060819387436, -0.04231688007712364, 0.018959440290927887, 0.02919680066406727, 0.021786725148558617, 0.011161308735609055, -0.03887978941202164, 0.0390276201069355, 0.04106030985713005, -0.016640327870845795, -0.06171981617808342, 0.05074330046772957, 0.027792396023869514, -0.06449166685342789, 0.025371650233864784, -0.03566444665193558, -0.02919680066406727, -0.0660438984632492, -0.09291234612464905, 0.008093796670436859, -0.04179947078227997, 0.10156051069498062, -0.0034740495029836893, 0.025833623483777046, -0.03972982242703438, 0.023782456293702126, -0.027866313233971596, 0.0352763868868351, 0.015559307299554348, -0.030564244836568832, 0.0009897807613015175, -0.004823015537112951, 0.00739621464163065, 0.025002069771289825, -0.01908879354596138, -0.00392909487709403, -0.07343549281358719, 0.02439226396381855, 0.06268072873353958, -0.022193264216184616, -0.033927422016859055, -0.03542421758174896, -0.025334691628813744, -0.01524516474455595, 0.006315194070339203, 0.026203203946352005, -0.015032656490802765, -0.0020084348507225513, 0.007982922717928886, 0.05454996973276138, -0.008800617419183254, -0.009488959796726704, 0.09468632936477661, 0.0004920030478388071, -0.027700001373887062, 0.04819319769740105, -0.016871316358447075, 0.024946633726358414, 0.038805872201919556, -0.04985630884766579, -0.020844297483563423, 0.02725650556385517, -0.012353203259408474, -0.0048322551883757114, 0.005474399775266647, 0.041245099157094955, 0.009830821305513382, 0.04719533398747444, 0.049375854432582855, 0.024262910708785057, -0.02843916229903698, 0.03706884756684303, 0.029917480424046516, 0.015725618228316307, 0.04641921445727348, -0.0009805412264540792, -0.0030120748560875654, 0.04996718093752861, -0.01541147567331791, 0.012658106163144112, 0.0036703888326883316, 0.055917415767908096, -0.0439060740172863, 0.026277119293808937, 0.011734156869351864, 0.012768980115652084, -0.020955171436071396, 0.013960874639451504, -0.03738299012184143, 0.028679387643933296, 0.0034555706661194563, 0.008204670622944832, 0.05684136599302292, -0.013471181504428387, -0.01360977441072464 ]
17,342
imodels.tree.hierarchical_shrinkage
_shrink
null
def _shrink(self): if hasattr(self.estimator_, "tree_"): self._shrink_tree(self.estimator_.tree_, self.reg_param) elif hasattr(self.estimator_, "estimators_"): for t in self.estimator_.estimators_: if isinstance(t, np.ndarray): assert t.size == 1, "multiple trees stored under tree_?" t = t[0] self._shrink_tree(t.tree_, self.reg_param)
(self)
[ 0.049281444400548935, -0.010321042500436306, 0.015652557834982872, -0.024482881650328636, -0.08425197750329971, -0.03084913082420826, -0.01801140233874321, -0.029674094170331955, 0.00044009118573740125, 0.01246943324804306, 0.029340874403715134, -0.014696743339300156, 0.028078146278858185, -0.020045796409249306, -0.027534471824765205, 0.0009596509044058621, 0.010627955198287964, -0.00240926630795002, 0.0353037528693676, 0.046615686267614365, -0.07793834060430527, -0.020361479371786118, -0.000042097763071069494, 0.0015970432432368398, -0.03658401966094971, 0.03197155520319939, 0.025622842833399773, -0.040196821093559265, 0.05734886974096298, -0.011794224381446838, -0.06804697215557098, -0.02748185768723488, -0.00872509554028511, 0.0024289963766932487, 0.026815418154001236, -0.0012057293206453323, -0.01673990674316883, 0.038232579827308655, 0.03725045919418335, 0.007251913659274578, -0.033953335136175156, -0.036443714052438736, -0.028235986828804016, -0.06485508382320404, 0.06489015370607376, 0.03542651981115341, 0.00441296910867095, 0.04850977659225464, -0.0388990193605423, -0.019659964367747307, -0.020028259605169296, -0.02153651788830757, 0.038267653435468674, 0.08439227938652039, 0.026815418154001236, 0.03244507685303688, 0.0595235638320446, 0.0556301549077034, 0.08046379685401917, -0.07892046123743057, 0.018572615459561348, 0.010452576912939548, 0.010145663283765316, -0.04640522971749306, 0.01077702734619379, -0.04808886721730232, -0.03405856341123581, 0.03411117568612099, -0.04005651921033859, 0.04117894172668457, -0.049106065183877945, -0.05548985302448273, -0.036969851702451706, 0.044826820492744446, -0.04402007907629013, -0.021606668829917908, -0.02497394196689129, -0.05380621552467346, 0.012811421416699886, -0.03602280467748642, 0.04345886781811714, 0.030393145978450775, -0.010838409885764122, -0.022501099854707718, -0.031094660982489586, -0.04521265625953674, 0.039846062660217285, -0.005537585821002722, 0.02725386619567871, 0.00012023039016639814, 0.020221175625920296, 0.01888829655945301, 0.05896235257387161, -0.0003326716541778296, 0.05531447380781174, 0.06320652365684509, -0.03507576137781143, -0.00628733029589057, -0.0398811399936676, -0.05619136989116669, 0.006936231628060341, 0.027411706745624542, -0.026254206895828247, 0.05489356443285942, 0.008093731477856636, 0.047703035175800323, 0.06373265385627747, -0.009487993083894253, -0.005769962444901466, 0.01638038083910942, -0.06117212772369385, 0.030726365745067596, -0.05920788273215294, 0.013030645437538624, -0.021676819771528244, -0.036969851702451706, -0.039144549518823624, -0.027359092608094215, 0.01820432022213936, -0.018099091947078705, 0.010724414139986038, 0.02795538119971752, -0.0334622748196125, -0.0427924282848835, -0.019572274759411812, 0.03153310716152191, 0.04405515640974045, 0.05559508129954338, -0.029007654637098312, -0.047667957842350006, -0.06278561055660248, 0.00547620328143239, -0.07043212652206421, 0.03553174436092377, 0.030586063861846924, -0.03226970136165619, -0.06352220475673676, -0.01815170608460903, -0.03426901623606682, -0.03847810998558998, -0.008089347742497921, 0.05184197425842285, 0.04100356251001358, 0.009917670860886574, 0.06881864368915558, -0.016976667568087578, 0.01293418649584055, 0.038934092968702316, -0.045002199709415436, -0.03212939575314522, -0.07892046123743057, 0.034847769886255264, 0.04352901875972748, -0.05306962504982948, 0.026306821033358574, 0.01943197101354599, -0.012276516295969486, -0.007791203446686268, 0.014135531149804592, 0.004399815574288368, -0.016687292605638504, 0.022167880088090897, -0.026061290875077248, -0.03477761521935463, -0.016345303505659103, -0.02690310776233673, -0.02444780431687832, -0.008856629952788353, -0.08137576282024384, 0.03098943457007408, 0.010040436871349812, -0.0367593988776207, -0.04261704906821251, 0.04261704906821251, -0.08200712502002716, 0.07744728028774261, 0.03241000324487686, 0.017423884943127632, -0.005160521250218153, 0.03405856341123581, -0.03711015358567238, -0.0169240552932024, -0.0008374337921850383, -0.01131193246692419, -0.011750379577279091, -0.01691528595983982, -0.006410095375031233, -0.007870123721659184, -0.03167341277003288, 0.004660691600292921, 0.009382765740156174, -0.004748381208628416, 0.026166517287492752, -0.03230477496981621, 0.02011594921350479, -0.026832956820726395, 0.002279924461618066, -0.013960152864456177, 0.017178352922201157, 0.04254689812660217, -0.09568667411804199, -0.022939547896385193, 0.054472655057907104, 0.01783602498471737, -0.00883470755070448, 0.04759780690073967, -0.004268281627446413, 0.014723050408065319, 0.005664735101163387, 0.0453178808093071, -0.024500418454408646, 0.03547913208603859, 0.03204170614480972, 0.014495057985186577, 0.04903591424226761, -0.010566572658717632, 0.004005213268101215, -0.017344962805509567, 0.023781364783644676, -0.039986368268728256, -0.008260341361165047, 0.033427201211452484, -0.008935550227761269, -0.02211526781320572, -0.014573978260159492, -0.023500759154558182, -0.016634680330753326, -0.011881913989782333, 0.06425879150629044, -0.038969170302152634, 0.01709066517651081, -0.018642766401171684, -0.004283627029508352, -0.054437581449747086, -0.002632874296978116, -0.028376290574669838, -0.025991138070821762, -0.08039364218711853, 0.011399622075259686, -0.027850154787302017, -0.03728553280234337, -0.05608614161610603, -0.049456823617219925, -0.00455108005553484, 0.02813076041638851, -0.02248356305062771, -0.013170948252081871, 0.016178695484995842, 0.043774548918008804, -0.03391826152801514, 0.027411706745624542, -0.037881821393966675, -0.040582653135061264, 0.0011531156487762928, -0.014915967360138893, -0.039144549518823624, 0.01543333474546671, 0.005077216308563948, -0.005046525038778782, 0.00249476358294487, 0.03098943457007408, -0.0065942429937422276, 0.01820432022213936, 0.04472159594297409, -0.028463980183005333, 0.004062211606651545, 0.057278718799352646, -0.014863353222608566, -0.011127784848213196, 0.004573002457618713, 0.02209772914648056, 0.05299947410821915, -0.047001518309116364, 0.02172943390905857, -0.03230477496981621, 0.01257466059178114, 0.015179035253822803, 0.00935645867139101, 0.007023921236395836, 0.015468410216271877, 0.021501440554857254, -0.06822235137224197, 0.024184737354516983, 0.010671800002455711, -0.01962488889694214, -0.026306821033358574, 0.0017844793619588017, -0.00034774327650666237, 0.010750720277428627, 0.01836216077208519, -0.03249769285321236, 0.032901063561439514, -0.013039413839578629, -0.01797632686793804, 0.024184737354516983, -0.057278718799352646, -0.05629659444093704, 0.016538221389055252, 0.023430608212947845, -0.0028696355875581503, -0.01958981156349182, -0.023746289312839508, -0.07379940152168274, 0.005603352561593056, 0.0770263671875, 0.03833780810236931, 0.014293372631072998, -0.034654852002859116, 0.03281337395310402, 0.08011303842067719, -0.006182102952152491, -0.005423589609563351, -0.02546500228345394, 0.037531062960624695, 0.03939007967710495, -0.0828489437699318, 0.06973060965538025, 0.033953335136175156, -0.01061041746288538, 0.06096167117357254, -0.016161156818270683, -0.028078146278858185, -0.000722889497410506, -0.0838310644030571, -0.03470746427774429, -0.036443714052438736, 0.046615686267614365, -0.007383447606116533, -0.05292932316660881, -0.03623326122760773, -0.05110538378357887, -0.03819750249385834, 0.07997273653745651, -0.011013789102435112, -0.006778390612453222, 0.02870951034128666, 0.046966444700956345, -0.022904472425580025, -0.0616631880402565, -0.016696061939001083, 0.017502805218100548, 0.04433576017618179, -0.016117312014102936, 0.010180739685893059, -0.020010720938444138, 0.016091005876660347, 0.03221708536148071, 0.01219759602099657, 0.009961515665054321, -0.001066522323526442, -0.014915967360138893, 0.0009053930407389998, 0.048018716275691986, 0.07281728088855743, 0.05149121582508087, -0.0029639017302542925, -0.012092368677258492, 0.038232579827308655, -0.0024640720803290606, -0.0003277391369920224, 0.037495989352464676, 0.024482881650328636, -0.05335023254156113, 0.009601989760994911, 0.06131242960691452, -0.06467970460653305, -0.03651386499404907, -0.019835341721773148, 0.059242960065603256, -0.054823413491249084, 0.024517957121133804, -0.014679205603897572, -0.0021067378111183643, 0.0006401326390914619, 0.006879233755171299, 0.06524091213941574, -0.06815220415592194, 0.03013007901608944, -0.009084622375667095, 0.03693477436900139, 0.020186100155115128, 0.017765872180461884, 0.04710674658417702, -0.03956545889377594, 0.04486189782619476, -0.00970721710473299, 0.0201334860175848, -0.014293372631072998, 0.020466705784201622, -0.06324159353971481, -0.014012766070663929, -0.010969944298267365, -0.06706485152244568, 0.06460954993963242, -0.009935209527611732, 0.05335023254156113, -0.03651386499404907, 0.020536858588457108, -0.05556000396609306, 0.05236811190843582, -0.029147956520318985, 0.0067389304749667645, -0.07071273028850555, 0.04461636766791344, 0.00898816343396902, -0.0463000051677227, 0.017064357176423073, 0.09140743315219879, 0.02991962432861328, 0.032883524894714355, 0.0012397088576108217, -0.010803334414958954, 0.011601307429373264, 0.029323335736989975, 0.015196572989225388, 0.005458665080368519, 0.06881864368915558, 0.03230477496981621, 0.07892046123743057, -0.027516935020685196, 0.0023522682022303343, 0.06215424835681915, -0.03386564552783966, 0.0171169713139534, 0.0246056467294693, -0.058892201632261276, -0.04226629063487053, -0.01976519078016281, -0.02478102408349514, 0.028762124478816986, -0.00730891153216362, -0.022764168679714203, -0.04177523031830788, -0.03193648159503937, -0.014240758493542671, 0.0020179522689431906, -0.03619818389415741, 0.03069129027426243, 0.01852000132203102, 0.006809081882238388, 0.016336536034941673, -0.018397236242890358, 0.024675797671079636, -0.07344864308834076, 0.042161062359809875, 0.025096707046031952, 0.02550007775425911, 0.0657319724559784, -0.06611780822277069, -0.05938326194882393, 0.05412190034985542, -0.047001518309116364, -0.036443714052438736, -0.020361479371786118, 0.01693282276391983, -0.05029864236712456, 0.060681067407131195, -0.023991819471120834, 0.040372200310230255, 0.033076442778110504, -0.005055293906480074, -0.01559117529541254, 0.03177863731980324, 0.03134019300341606, -0.0033321972005069256, 0.04549326002597809, 0.029621480032801628, 0.0026964491698890924, 0.07288742810487747, -0.018309546634554863, 0.06324159353971481, -0.020922690629959106, -0.01122424378991127, -0.038092274218797684, 0.009724754840135574, 0.02244848757982254, -0.012618504464626312, -0.003939446527510881, -0.0075149815529584885, 0.010627955198287964, 0.02264140360057354, -0.023605987429618835, 0.06776636838912964, -0.013337558135390282, -0.018835684284567833, -0.02890242636203766, -0.024360116571187973, -0.042862579226493835, 0.00022059364710003138, 0.04409023001790047, -0.07646515965461731, -0.03228723630309105, -0.017002975568175316, 0.057699624449014664, -0.02032640390098095, 0.024289963766932487, 0.0015170266851782799, 0.0016189655289053917, 0.013933845795691013, -0.026464661583304405, 0.017336195334792137, 0.001818459015339613, -0.024097047746181488, -0.017932482063770294, 0.001755980309098959, 0.050684474408626556, 0.024886252358555794, 0.03446193411946297, -0.06822235137224197, 0.007247528992593288, -0.01654699072241783, -0.060365382581949234, -0.060891520231962204, 0.056612279266119, 0.019923031330108643, -0.008369953371584415, -0.029639016836881638, -0.01077702734619379, 0.03421640396118164, 0.033234283328056335, 0.01070687547326088, -0.009146004915237427, 0.0398811399936676, -0.0770263671875, 0.037180304527282715, -0.03512837365269661, -0.00349442264996469, 0.051771823316812515, 0.04798363894224167, 0.02600867673754692, 0.005879574455320835, -0.028200911357998848, 0.019923031330108643, 0.032164473086595535, 0.01691528595983982, -0.01850246451795101, 0.03230477496981621, -0.04349394142627716, 0.06717008352279663, 0.010522727854549885, -0.028569206595420837, -0.08193697780370712, 0.027376631274819374, 0.013039413839578629, -0.05450773239135742, 0.04044235125184059, 0.021133145317435265, 0.010566572658717632, -0.0015433335211127996, -0.01944950968027115, -0.06022508069872856, 0.010057974606752396, 0.03935500234365463, 0.020940229296684265, 0.057875003665685654, 0.007896430790424347, -0.02227310836315155, 0.00278852297924459, 0.026990797370672226, 0.004038096871227026, 0.002764408476650715, 0.016450531780719757, 0.08039364218711853, -0.009181080386042595, 0.059242960065603256, 0.039319928735494614, -0.05324500426650047, 0.08179667592048645, 0.00828226376324892, -0.014915967360138893, 0.029814396053552628, -0.0164329931139946, -0.029446100816130638, -0.035742200911045074, -0.02106299437582493, -0.01461782306432724, -0.004410776775330305, 0.021518979221582413, -0.06345205008983612, -0.014819508418440819, 0.040372200310230255, -0.0024640720803290606, -0.004507235251367092, -0.017529111355543137, -0.016529452055692673, -0.02334291860461235, -0.00498514249920845, 0.004875530488789082, -0.0484396256506443, 0.010391194373369217, 0.028762124478816986, 0.001004043617285788, -0.004202514421194792, -0.06741560995578766, 0.026832956820726395, 0.021308524534106255, -0.08916258066892624, -0.013591857627034187, -0.03728553280234337, -0.015564869157969952, 0.05229795724153519, -0.02244848757982254, 0.054998792707920074, 0.025885911658406258, 0.007383447606116533, 0.008102500811219215, 0.03067375347018242, 0.004064403939992189, 0.027937842532992363, 0.020799925550818443, 0.0044831205159425735, 0.042687200009822845, 0.047843337059020996, -0.055875685065984726, -0.07948167622089386, 0.004726458806544542, -0.019203979521989822, -0.07422030717134476, 0.007738589774817228, -0.02337799407541752, -0.020221175625920296, -0.0007596094510518014, -0.010391194373369217, -0.0056165060959756374, -0.05454280599951744, -0.026622502133250237, 0.050684474408626556, -0.05706826224923134, -0.00579626951366663, 0.015284262597560883, -0.004268281627446413, -0.09358213096857071, 0.0513509139418602, -0.05864667147397995, -0.004542311187833548, 0.03365519270300865, -0.028095684945583344, 0.029165495187044144, -0.019063675776124, -0.029831934720277786, 0.009321383200585842, -0.007716667372733355, -0.02244848757982254, 0.0052131349220871925, -0.04335363954305649, -0.08179667592048645, 0.004998296033591032, 0.03204170614480972, -0.018677841871976852, -0.003411117708310485, -0.002217445755377412, 0.050193414092063904, -0.05633167177438736, -0.019817804917693138, 0.04637015610933304, 0.019572274759411812, 0.02939348667860031, 0.010049205273389816, -0.023027237504720688, -0.0014523557620123029, 0.016091005876660347, -0.03098943457007408, 0.04651045799255371, 0.013407709077000618, 0.06625811010599136, 0.01505627017468214, -0.017073126509785652, 0.029200570657849312, -0.00071192835457623, -0.024658259004354477, -0.0659424290060997, -0.01836216077208519, -0.03819750249385834, -0.05615629255771637, -0.03172602504491806, 0.02834121510386467, 0.014591515995562077, 0.03917962312698364, -0.04437083750963211, 0.018940910696983337, -0.02421981282532215, 0.0612773522734642, -0.03269060701131821, 0.004318702965974808, 0.061593037098646164, 0.0027293325401842594, -0.06741560995578766, 0.061242278665304184, 0.00045845116255804896, 0.030621139332652092, 0.022886933758854866, -0.08860137313604355, 0.05629659444093704, -0.037320610135793686, -0.004950066562741995, 0.05920788273215294, 0.033549964427948, -0.013013106770813465, 0.039670683443546295, -0.014661667868494987, 0.03942515328526497, -0.020414093509316444, -0.07772788405418396, -0.024851176887750626, 0.034654852002859116, 0.05405174568295479, -0.017002975568175316, 0.024658259004354477, -0.028797199949622154, -0.04815901815891266, 0.024202274158596992, 0.007076534908264875, 0.00672139273956418, 0.004932528827339411, -0.002260194392874837, 0.02407950907945633, -0.028428904712200165, -0.01980026625096798, 0.04808886721730232, -0.0025999906938523054, 0.011741611175239086, 0.020080873742699623, 0.03470746427774429, 0.0030537834390997887, -0.057383943349123, 0.067099928855896, 0.028463980183005333, -0.009856288321316242, 0.037531062960624695, -0.029481176286935806, 0.05208750441670418, -0.016161156818270683, -0.03426901623606682, -0.028990115970373154, -0.00292224925942719, -0.018572615459561348, 0.024868713691830635, 0.016099773347377777, 0.0051955971866846085, -0.01461782306432724, 0.0174589604139328, 0.0041871690191328526, -0.0037377607077360153, 0.02942856401205063, -0.0029639017302542925, -0.013153410516679287, 0.009724754840135574, 0.02706095017492771, 0.03365519270300865, -0.05759439989924431, 0.049982957541942596, 0.0007058996707201004, 0.05236811190843582, 0.022395873442292213, 0.06583720445632935, -0.02030886523425579, 0.015766553580760956, -0.016713600605726242, -0.01105763390660286, -0.03365519270300865, 0.04524772986769676, -0.014644130133092403, -0.02583329752087593, 0.020975304767489433, 0.03383057191967964, 0.02816583588719368, 0.054437581449747086, -0.014977349899709225 ]
17,343
imodels.tree.hierarchical_shrinkage
_shrink_tree
Shrink the tree
def _shrink_tree( self, tree, reg_param, i=0, parent_val=None, parent_num=None, cum_sum=0 ): """Shrink the tree""" if reg_param is None: reg_param = 1.0 left = tree.children_left[i] right = tree.children_right[i] is_leaf = left == right n_samples = tree.weighted_n_node_samples[i] if isinstance(self, RegressorMixin) or isinstance( self.estimator_, GradientBoostingClassifier ): val = deepcopy(tree.value[i, :, :]) else: # If classification, normalize to probability vector val = tree.value[i, :, :] / n_samples # Step 1: Update cum_sum # if root if parent_val is None and parent_num is None: cum_sum = val # if has parent else: if self.shrinkage_scheme_ == "node_based": val_new = (val - parent_val) / (1 + reg_param / parent_num) elif self.shrinkage_scheme_ == "constant": val_new = (val - parent_val) / (1 + reg_param) else: # leaf_based val_new = 0 cum_sum += val_new # Step 2: Update node values if ( self.shrinkage_scheme_ == "node_based" or self.shrinkage_scheme_ == "constant" ): tree.value[i, :, :] = cum_sum else: # leaf_based if is_leaf: # update node values if leaf_based root_val = tree.value[0, :, :] tree.value[i, :, :] = root_val + (val - root_val) / ( 1 + reg_param / n_samples ) else: tree.value[i, :, :] = val # Step 3: Recurse if not leaf if not is_leaf: self._shrink_tree( tree, reg_param, left, parent_val=val, parent_num=n_samples, cum_sum=deepcopy(cum_sum), ) self._shrink_tree( tree, reg_param, right, parent_val=val, parent_num=n_samples, cum_sum=deepcopy(cum_sum), ) # edit the non-leaf nodes for later visualization (doesn't effect predictions) return tree
(self, tree, reg_param, i=0, parent_val=None, parent_num=None, cum_sum=0)
[ 0.031150028109550476, -0.04292534291744232, -0.006851689424365759, 0.01802036724984646, -0.015509177930653095, 0.007768696639686823, -0.03795939311385155, -0.024171369150280952, -0.021895309910178185, -0.012847505509853363, 0.023306090384721756, 0.017766425386071205, 0.06015567108988762, -0.0052057793363928795, -0.030999545007944107, 0.021011220291256905, 0.03323798254132271, -0.0076652392745018005, 0.01483200304210186, 0.035100214183330536, -0.04367775842547417, -0.026616720482707024, 0.02385159209370613, 0.021932929754257202, -0.053948238492012024, -0.01600765436887741, 0.011361483484506607, -0.008742135018110275, 0.019732113927602768, 0.0016647207085043192, -0.03297463804483414, -0.05887656286358833, -0.024848543107509613, -0.01896088756620884, 0.012076279148459435, -0.034573521465063095, -0.026372184976935387, 0.022459622472524643, -0.004023075103759766, -0.04232340678572655, -0.01402315590530634, -0.010204643942415714, -0.1045106053352356, -0.07008756697177887, 0.054738275706768036, 0.060193292796611786, -0.0008417655481025577, 0.0455964170396328, -0.03263605013489723, -0.03365181386470795, -0.004110073205083609, 0.0012638239422813058, 0.020296424627304077, 0.026560289785265923, 0.0053797755390405655, 0.05428682640194893, 0.06933514773845673, -0.008234254084527493, 0.0896880030632019, -0.05281961336731911, 0.056732177734375, 0.011370888911187649, -0.01668482832610607, -0.04224816709756851, -0.05199195444583893, -0.02800869010388851, -0.06230005621910095, -0.0196380615234375, 0.001049267826601863, 0.009875461459159851, -0.009734383784234524, -0.03844846412539482, 0.033689431846141815, 0.037432704120874405, -0.018086202442646027, -0.003726811148226261, 0.020540960133075714, -0.07840175926685333, 0.01698579452931881, -0.03242913633584976, 0.030096646398305893, -0.005770091433078051, 0.04555879905819893, -0.04687552526593208, 0.001012822613120079, -0.049584224820137024, 0.01642148196697235, -0.0173996239900589, 0.045746900141239166, 0.006442563142627478, -0.004279366694390774, -0.005224589724093676, 0.08412012457847595, 0.002093832939863205, 0.06071998178958893, 0.02577025257050991, 0.001411955920048058, -0.016675421968102455, -0.050411880016326904, -0.023983264341950417, 0.0349685400724411, 0.07937990128993988, -0.05944087728857994, 0.024227799847722054, 0.007778102066367865, 0.01454984676092863, 0.00342819606885314, 0.01454984676092863, 0.013599921949207783, -0.0325608104467392, -0.06056949868798256, 0.004262907896190882, -0.004735519178211689, -0.004469822160899639, -0.05793604254722595, 0.002131453948095441, -0.04047998785972595, -0.0005701903719455004, 0.004081857390701771, -0.02025880478322506, 0.04401634633541107, -0.019092559814453125, 0.00894904974848032, -0.013957319781184196, -0.029889730736613274, 0.03590906038880348, 0.07400012761354446, 0.0635039210319519, -0.03297463804483414, 0.011013491079211235, -0.02385159209370613, 0.0005431504105217755, -0.0437529981136322, 0.013665758073329926, 0.07313484698534012, -0.03856132924556732, -0.01778523623943329, 0.009174774400889874, -0.04032950475811958, -0.022516053169965744, 0.056807417422533035, -0.03549523279070854, 0.0393889844417572, 0.02671077288687229, 0.06041901558637619, 0.017117466777563095, -0.005591392517089844, 0.06105856969952583, -0.06459492444992065, -0.03039761260151863, -0.018481221050024033, 0.00670120632275939, 0.0678679347038269, -0.007989718578755856, 0.05759745463728905, 0.02977686934173107, -0.0010145861888304353, -0.017117466777563095, -0.05059998482465744, -0.0011885823914781213, 0.00024556394782848656, 0.032654859125614166, -0.00409831665456295, -0.017051631584763527, -0.010148212313652039, 0.02213984541594982, -0.0135811110958457, -0.0025746740866452456, -0.09322436153888702, 0.010458584874868393, 0.01353408582508564, -0.07087760418653488, -0.034046828746795654, 0.07020042836666107, -0.018913861364126205, 0.06004280969500542, 0.03923850134015083, 0.012518323957920074, -0.04634883627295494, 0.08223908394575119, -0.02550690807402134, -0.020747875794768333, 0.04104430228471756, -0.02960757538676262, -0.002997908042743802, -0.03190244361758232, -0.02951352298259735, 0.016054678708314896, 0.033689431846141815, 0.03346370905637741, -0.017832262441515923, -0.029964972287416458, 0.043828241527080536, -0.01467211451381445, 0.05022377893328667, -0.02037166804075241, 0.01893267035484314, 0.0003750324249267578, 0.05522734671831131, 0.05876370146870613, -0.03096192516386509, 0.007237302605062723, 0.059666600078344345, -0.0017164492746815085, -0.031507425010204315, -0.002332489937543869, -0.020973600447177887, 0.04318868741393089, -0.0261276513338089, 0.023193227127194405, -0.06041901558637619, 0.07287150621414185, 0.03391515836119652, 0.06245053932070732, -0.021895309910178185, -0.04597262665629387, -0.046047866344451904, -0.031657908111810684, 0.019468767568469048, -0.049847569316625595, -0.03378348425030708, 0.01904553361237049, -0.0010616121580824256, -0.02577025257050991, 0.026616720482707024, -0.04311344400048256, 0.010562041774392128, -0.036134786903858185, 0.0502990186214447, 0.0055302586406469345, 0.01262178085744381, -0.05240578576922417, 0.04977232962846756, -0.04149575158953667, 0.04950898140668869, -0.07411298900842667, -0.05281961336731911, -0.029363039880990982, -0.0023125039879232645, 0.006277972366660833, -0.04868132621049881, -0.04318868741393089, -0.0369248241186142, 0.024284230545163155, 0.02364467643201351, -0.0021643720101565123, 0.031657908111810684, 0.048493221402168274, 0.01886683516204357, -0.0036774338223040104, -0.030830251052975655, -0.07020042836666107, -0.05075046792626381, -0.028083933517336845, -0.0000766376979299821, 0.0024876759853214025, 0.03137575462460518, 0.06041901558637619, 0.005586689803749323, 0.023023933172225952, 0.02435947209596634, -0.05676979944109917, -0.0008740959456190467, 0.026146460324525833, -0.049283258616924286, -0.02379516139626503, 0.09593305736780167, -0.0455964170396328, -0.018716352060437202, 0.041270025074481964, 0.04518258944153786, 0.02644742839038372, 0.010449179448187351, 0.01771940104663372, -0.02774534560739994, -0.026842445135116577, 0.013797431252896786, 0.00901018362492323, 0.009184179827570915, -0.02420898899435997, 0.015076538547873497, -0.06986183673143387, 0.0073407599702477455, 0.02317441813647747, -0.02197055146098137, -0.004063047003000975, -0.006367321591824293, 0.056732177734375, -0.019214827567338943, 0.028817538172006607, -0.025281181558966637, 0.023193227127194405, -0.04796652868390083, 0.011446130461990833, 0.07772459089756012, 0.005163455847650766, -0.017521891742944717, 0.006959849502891302, -0.020540960133075714, 0.024378282949328423, 0.011267432011663914, -0.021594343706965446, -0.030359990894794464, -0.015988843515515327, 0.04529545083642006, 0.07479016482830048, 0.01774761639535427, -0.01543393637984991, -0.02202698215842247, 0.07287150621414185, -0.039501845836639404, 0.015330478549003601, 0.0326736718416214, 0.03152623772621155, -0.0006366146262735128, -0.13739119470119476, 0.05402347818017006, -0.05887656286358833, 0.038316793739795685, 0.030980734154582024, -0.025488097220659256, -0.014568657614290714, -0.015640851110219955, -0.04431731253862381, -0.007862748578190804, -0.035043783485889435, 0.02671077288687229, 0.0391632616519928, -0.008121391758322716, -0.028328467160463333, -0.03656742349267006, 0.012386650778353214, 0.09096711128950119, -0.025130698457360268, -0.03323798254132271, 0.007434811908751726, 0.08427061140537262, 0.003804404055699706, -0.08539923280477524, -0.022459622472524643, 0.02052215114235878, 0.058989424258470535, -0.027877017855644226, 0.044129207730293274, -0.03839203342795372, -0.003388223936781287, 0.04950898140668869, -0.010787766426801682, 0.007378380745649338, 0.04066809266805649, -0.007100927177816629, -0.015330478549003601, -0.005285723600536585, 0.06301485002040863, 0.00398780545219779, -0.007058604154735804, 0.03605954349040985, -0.0249802153557539, -0.006710611283779144, -0.03146980702877045, 0.003084906144067645, -0.019468767568469048, -0.004199422430247068, 0.050374262034893036, 0.039614710956811905, -0.05507686361670494, -0.07862748950719833, 0.04258675500750542, 0.02650385908782482, -0.051089055836200714, 0.06636310368776321, -0.04962184652686119, -0.014615683816373348, 0.008262469433248043, -0.019064344465732574, 0.02706817165017128, -0.0677550733089447, -0.022158656269311905, 0.006691800896078348, -0.010054160840809345, -0.01763475313782692, 0.024133747443556786, 0.025130698457360268, 0.001875162124633789, 0.05105143412947655, -0.03427255526185036, 0.05199195444583893, -0.04292534291744232, 0.02259129472076893, -0.056243106722831726, -0.04115716367959976, 0.01896088756620884, -0.046047866344451904, 0.019083155319094658, -0.05797366425395012, 0.00583122530952096, 0.05323344096541405, 0.02456638775765896, -0.05861321836709976, 0.019299473613500595, -0.011436725035309792, -0.014305312186479568, -0.0524810254573822, -0.008318901062011719, 0.029626386240124702, -0.03188363462686539, 0.014662710018455982, 0.020841926336288452, 0.027387946844100952, 0.053948238492012024, -0.015067133121192455, -0.012424271553754807, -0.006861094851046801, 0.01695757918059826, 0.0055772848427295685, -0.07012518495321274, 0.037225790321826935, 0.04947135969996452, 0.033745862543582916, -0.03122526966035366, 0.008624570444226265, 0.012659401632845402, 0.003437601262703538, 0.011888175271451473, 0.01483200304210186, -0.028460141271352768, 0.03340727835893631, -0.03643575310707092, -0.040028538554906845, 0.058575596660375595, -0.0030425828881561756, -0.03470519557595253, -0.04431731253862381, 0.014474605210125446, 0.005210481584072113, -0.011135758832097054, -0.02960757538676262, 0.028065122663974762, -0.02951352298259735, 0.000476726156193763, 0.03773367032408714, -0.02016475237905979, 0.03506259247660637, -0.03931374475359917, 0.036492183804512024, 0.04281247779726982, 0.019130179658532143, 0.006997470278292894, -0.09044042229652405, -0.0545501708984375, 0.06406823545694351, -0.038316793739795685, -0.00685639213770628, 0.01854705810546875, -0.047402217984199524, -0.059139907360076904, 0.002929720329120755, -0.03666147589683533, 0.05169098824262619, 0.026936497539281845, 0.026522669941186905, 0.012631186284124851, 0.024547576904296875, 0.027350327000021935, -0.009894272312521935, 0.01831192709505558, 0.06598689407110214, -0.01995783858001232, 0.03160147741436958, -0.045897383242845535, 0.0545501708984375, -0.01737140864133835, -0.05086333304643631, -0.03320036083459854, -0.013355386443436146, 0.018528247252106667, -0.07099046558141708, -0.05688266083598137, -0.014775572344660759, -0.016844715923070908, 0.02571382187306881, -0.0037785398308187723, 0.05191671475768089, 0.02311798557639122, -0.048493221402168274, -0.034046828746795654, 0.0018540003802627325, 0.004342852160334587, 0.038674190640449524, 0.0014201854355633259, -0.08720503002405167, -0.07321009039878845, 0.007806317415088415, 0.08329246938228607, -0.04804177209734917, -0.012574754655361176, 0.0031366348266601562, 0.006437860429286957, 0.00785804633051157, -0.03199649602174759, 0.004157099407166243, 0.01904553361237049, 0.011004086583852768, 0.022628916427493095, 0.014888434670865536, 0.02202698215842247, -0.01434293296188116, 0.05492637678980827, -0.03636050969362259, 0.003221281571313739, 0.029174936935305595, -0.02420898899435997, -0.02992735244333744, 0.039501845836639404, -0.007542971987277269, -0.010815981775522232, 0.0011697720037773252, 0.0459350049495697, 0.0543244443833828, -0.008873808197677135, 0.013345981016755104, -0.00901018362492323, 0.013552895747125149, -0.06933514773845673, 0.044806379824876785, -0.02343776263296604, 0.006315593142062426, 0.02509307861328125, 0.02129337750375271, 0.011464941315352917, -0.014822597615420818, -0.005323344375938177, 0.024434713646769524, 0.024604007601737976, 0.004947136156260967, -0.026729583740234375, 0.04051760956645012, -0.046047866344451904, -0.000944047118537128, -0.03352013975381851, 0.0005011209286749363, -0.011474345810711384, 0.02960757538676262, 0.01127683650702238, -0.024434713646769524, 0.06617499887943268, 0.017672374844551086, -0.035137832164764404, 0.011145164258778095, -0.01798274554312229, -0.02712460234761238, 0.023550625890493393, 0.0038937535136938095, 0.04292534291744232, 0.07437633723020554, 0.03553285077214241, -0.02119932509958744, -0.0033129823859781027, 0.034930918365716934, 0.0020891304593533278, -0.017804047092795372, 0.027181033045053482, 0.05251864716410637, -0.048606082797050476, 0.06275150924921036, 0.006781150586903095, -0.05044950172305107, 0.03980281576514244, 0.012113899923861027, 0.001650612917728722, 0.025168320164084435, 0.021594343706965446, 0.010590257123112679, -0.0013884429354220629, -0.015255236998200417, -0.005629013292491436, -0.023776350542902946, 0.0018492977833375335, -0.03434779867529869, -0.040969058871269226, 0.019064344465732574, -0.039351362735033035, -0.012800479307770729, -0.014737951569259167, -0.009047804400324821, 0.02514950931072235, -0.03263605013489723, 0.09284815192222595, -0.05511448159813881, 0.013289550319314003, 0.0021420347038656473, -0.011201594956219196, -0.009174774400889874, -0.04627359285950661, 0.0032894692849367857, -0.02529999241232872, -0.10172666609287262, -0.006757637485861778, -0.002823911840096116, -0.018001556396484375, 0.016195757314562798, -0.0261276513338089, 0.03848608583211899, 0.05605500191450119, -0.03148861601948738, 0.04183433949947357, 0.055866897106170654, -0.008300090208649635, 0.024453524500131607, -0.013110850937664509, 0.021782446652650833, 0.026014788076281548, 0.05278199166059494, -0.03942660614848137, -0.08381915837526321, -0.021236944943666458, -0.046988386660814285, -0.06275150924921036, 0.0027533727698028088, -0.04525783285498619, -0.04717649146914482, -0.030096646398305893, -0.0021984658669680357, -0.02146267145872116, -0.07460206001996994, -0.01692936383187771, 0.05206719785928726, -0.049433741718530655, -0.021067652851343155, -0.015085943974554539, -0.010044755414128304, -0.04431731253862381, 0.0434144102036953, -0.06854511052370071, 0.006362618878483772, 0.028535382822155952, -0.011295647360384464, 0.030792631208896637, -0.03856132924556732, -0.03673671931028366, 0.038166310638189316, -0.0017117466777563095, -0.03090549260377884, -0.01778523623943329, -0.034912109375, -0.0783265233039856, 0.02550690807402134, 0.025205940008163452, -0.006132191512733698, -0.006503697019070387, -0.020597392693161964, 0.04040474817156792, -0.02639099583029747, -0.016901148483157158, 0.017051631584763527, 0.024810923263430595, 0.024378282949328423, 0.0016611937899142504, -0.034366607666015625, 0.0018540003802627325, 0.004554469138383865, -0.05372251197695732, 0.030265940353274345, 0.031827203929424286, 0.02379516139626503, 0.03205292671918869, 0.02795225940644741, 0.002795696258544922, 0.006578938569873571, -0.03382110595703125, -0.045897383242845535, 0.006151001900434494, -0.023964453488588333, -0.007284328807145357, -0.021161703392863274, -0.000006185940947034396, 0.007204384543001652, 0.029551144689321518, 0.001975092338398099, 0.04567166045308113, -0.0002227857185062021, 0.04762794077396393, -0.02800869010388851, 0.045483555644750595, 0.06245053932070732, 0.017531296238303185, -0.05534020811319351, 0.027500810101628304, 0.026880066841840744, 0.012066873721778393, -0.005102321971207857, -0.060494258999824524, 0.04379061982035637, -0.01737140864133835, 0.005558474455028772, 0.03146980702877045, 0.00788626167923212, 0.017521891742944717, 0.052593886852264404, -0.04518258944153786, 0.027670104056596756, -0.043151065707206726, -0.045897383242845535, -0.010759551078081131, 0.01928066462278366, 0.03842965513467789, -0.03506259247660637, 0.024716870859265327, -0.0028803430031985044, -0.02129337750375271, 0.004364013671875, 0.04988519102334976, -0.037489134818315506, -0.01730557158589363, -0.03718816861510277, 0.028384899720549583, -0.043828241527080536, -0.014013750478625298, -0.01869754120707512, -0.02010832168161869, 0.023306090384721756, 0.01325192954391241, 0.0586884580552578, 0.022008173167705536, -0.055716414004564285, -0.005525555927306414, 0.07787507027387619, -0.012922747060656548, -0.01561263483017683, 0.012762858532369137, 0.04326392710208893, 0.0327865332365036, 0.006663585547357798, -0.0938262939453125, 0.028968021273612976, -0.0008993724477477372, 0.012358435429632664, -0.0001522467064205557, 0.010674904100596905, 0.012142115272581577, 0.03299344703555107, 0.05127716064453125, -0.05590451881289482, 0.003649218240752816, 0.024096127599477768, 0.008544625714421272, -0.0013508221600204706, 0.02650385908782482, 0.062262434512376785, -0.05755983665585518, 0.04172147437930107, 0.011135758832097054, 0.012273788452148438, 0.03609716519713402, 0.04864370450377464, -0.009772004559636116, 0.003983102738857269, -0.03466757386922836, -0.03039761260151863, -0.022327948361635208, 0.052180059254169464, -0.057484593242406845, -0.047251734882593155, 0.0033999804873019457, 0.04333917051553726, 0.05387299507856369, 0.03310631215572357, 0.03470519557595253 ]
17,346
imodels.tree.cart_ccp
fit
null
def fit(self, X, y, sample_weight=None, *args, **kwargs): m = DecisionTreeCCPClassifier(self.estimator_, desired_complexity=self.desired_complexity) m.fit(X, y, sample_weight, *args, **kwargs) self.scores_ = [] for reg_param in self.reg_param_list: est = HSTreeClassifier(deepcopy(m.estimator_), reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(self, X, y, sample_weight=None, *args, **kwargs)
[ -0.01696145161986351, -0.00015135901048779488, 0.03956131637096405, -0.010981038212776184, -0.020057957619428635, -0.00702028488740325, -0.010352494195103645, 0.000311961310217157, 0.05372205004096031, 0.008402157574892044, 0.014807763509452343, 0.004090159200131893, 0.044145990163087845, 0.004954407922923565, -0.017201777547597885, -0.006779958959668875, 0.020261310040950775, -0.05575557425618172, -0.0428149551153183, 0.019244546070694923, -0.021296558901667595, -0.024938417598605156, -0.018320217728614807, 0.07128431648015976, -0.03399685025215149, -0.003456993494182825, 0.013763271272182465, -0.01183142140507698, -0.02491993084549904, -0.010481899604201317, -0.03170451149344444, 0.012654075399041176, -0.08725673705339432, 0.02236878126859665, -0.018153836950659752, -0.03170451149344444, 0.016896748915314674, 0.032795220613479614, -0.018791625276207924, 0.006877013947814703, -0.03786054998636246, -0.057012662291526794, -0.02689799666404724, -0.009368082508444786, -0.01011216826736927, 0.053500209003686905, -0.0030572209507226944, 0.12703989446163177, 0.004117889329791069, -0.0827460065484047, -0.014299382455646992, -0.047991205006837845, -0.0447375625371933, -0.018061405047774315, 0.017349669709801674, 0.028247518464922905, 0.08415098488330841, 0.03469933941960335, 0.0954647809267044, -0.018726922571659088, 0.038230281323194504, 0.019281519576907158, 0.005032975692301989, -0.005116165615618229, -0.049987755715847015, -0.05760423466563225, -0.04233430698513985, -0.012635588645935059, -0.009451271966099739, 0.056532010436058044, 0.011184390634298325, -0.03686227276921272, 0.036917731165885925, 0.018458865582942963, 0.029208822175860405, -0.0032236003316938877, -0.03266581520438194, -0.0218881294131279, -0.018209297209978104, 0.024938417598605156, -0.025289664044976234, 0.022830946370959282, -0.012256613001227379, -0.05586649477481842, -0.055829521268606186, -0.021758724004030228, 0.026250965893268585, -0.03878488019108772, 0.027711408212780952, 0.043517448008060455, -0.012265856377780437, 0.02464263327419758, 0.054535459727048874, 0.025640908628702164, 0.07061880081892014, 0.037749629467725754, -0.04044867306947708, 0.033275872468948364, -0.02992979995906353, 0.022553646937012672, -0.04126208275556564, 0.030576830729842186, 0.024753551930189133, 0.05560768023133278, -0.0020254377741366625, -0.005878737661987543, -0.00841602310538292, 0.03930250182747841, -0.02077893353998661, -0.0014211570378392935, -0.047436606138944626, 0.009132378734648228, 0.055829521268606186, -0.005929575767368078, -0.022830946370959282, -0.04299982264637947, -0.07971420139074326, 0.003669589292258024, -0.038156334310770035, -0.020834393799304962, -0.010065951384603977, 0.038563039153814316, 0.004926677793264389, -0.0007186664151959121, -0.04122510924935341, -0.006877013947814703, 0.029837366193532944, 0.03338679298758507, -0.019799144938588142, -0.06906592100858688, -0.006992555223405361, -0.007112717721611261, -0.0014061367837712169, -0.03364560380578041, -0.010398710146546364, -0.05475729703903198, -0.00016074672748800367, -0.04425691068172455, 0.02015038952231407, -0.04810212180018425, 0.09531688690185547, -0.017534537240862846, 0.033959876745939255, 0.002276162151247263, 0.06747607886791229, 0.01996552385389805, 0.047991205006837845, 0.0057724397629499435, -0.046623196452856064, 0.0046586222015321255, -0.019799144938588142, 0.005961927119642496, 0.03878488019108772, -0.029948286712169647, -0.015981663018465042, 0.007561017759144306, -0.01690599136054516, -0.020390715450048447, -0.021444451063871384, -0.023348571732640266, 0.013966623693704605, -0.0032051135785877705, -0.0016337529523298144, 0.047991205006837845, 0.0418536551296711, 0.0848904475569725, 0.012598615139722824, -0.019725197926163673, -0.0506163015961647, -0.02449473924934864, 0.010204601101577282, -0.08555597066879272, -0.0035563588608056307, 0.016471557319164276, 0.009002972394227982, -0.007533288095146418, 0.02388468198478222, -0.01683204621076584, 0.02098228596150875, 0.055829521268606186, 0.040078941732645035, -0.0019110519206151366, 0.010574333369731903, -0.01758999563753605, 0.0007209772593341768, -0.04044867306947708, 0.03135326877236366, 0.030946562066674232, -0.022313321009278297, 0.006553498562425375, 0.004106335341930389, -0.01696145161986351, 0.020113416016101837, -0.0002042191190412268, 0.04884158819913864, -0.008568537421524525, 0.00710347481071949, -0.0005803058156743646, -0.012644832022488117, 0.07084063440561295, 0.0021929724607616663, -0.061671286821365356, 0.0543505921959877, -0.031223861500620842, 0.006424092222005129, 0.056162279099226, -0.012034773826599121, 0.10330309718847275, -0.03261035680770874, -0.036843787878751755, 0.0248274989426136, -0.0010306277545168996, 0.015279171988368034, 0.012228883802890778, 0.03157510608434677, 0.012358289211988449, -0.009284893050789833, -0.046068597584962845, -0.046142544597387314, -0.049026452004909515, 0.005490519106388092, 0.01777486316859722, -0.032850682735443115, 0.04333258047699928, 0.03562366962432861, -0.05080116540193558, 0.043443500995635986, -0.03765719756484032, -0.0006660951767116785, -0.036640435457229614, 0.04577281326055527, -0.05276074633002281, 0.025030851364135742, -0.02758200094103813, -0.03590096905827522, -0.00481575820595026, 0.00860551092773676, 0.03007769212126732, -0.05745634064078331, 0.031686026602983475, -0.025770315900444984, 0.006969446782022715, 0.0073206922970712185, -0.04532913491129875, -0.008263508789241314, 0.03945039585232735, 0.0533892884850502, -0.0017700915923342109, 0.07002722471952438, 0.024735065177083015, -0.0007544842083007097, -0.015611930750310421, -0.07283718883991241, -0.05109695345163345, -0.06355691701173782, -0.03638162091374397, 0.014086786657571793, 0.02201753668487072, 0.0023547301534563303, -0.008979864418506622, -0.04810212180018425, 0.05479427054524422, -0.010121411643922329, 0.0779394879937172, -0.04444177821278572, 0.00200348487123847, 0.02717529609799385, -0.023644356057047844, -0.028450870886445045, 0.03013315238058567, -0.05324139818549156, 0.03198181092739105, 0.020113416016101837, 0.03506907448172569, -0.05331534519791603, 0.010232331231236458, -0.016721125692129135, -0.024587173014879227, 0.035827022045850754, 0.014909439720213413, 0.0649249255657196, -0.03638162091374397, 0.03033650480210781, -0.013254889287054539, -0.025474529713392258, 0.019706711173057556, 0.017072372138500214, 0.03020709753036499, 0.016674909740686417, 0.016185015439987183, -0.053906913846731186, 0.022128455340862274, 0.0053056529723107815, 0.03310949355363846, 0.06400059908628464, -0.022072995081543922, -0.0026851780712604523, -0.011406229808926582, 0.011674285866320133, 0.03713957220315933, -0.02833995223045349, -0.022109968587756157, -0.03159359470009804, -0.04629043862223625, 0.036511026322841644, -0.0069186086766421795, 0.08526018261909485, -0.04085537791252136, -0.028450870886445045, 0.05708660930395126, 0.03956131637096405, 0.08725673705339432, 0.022257862612605095, -0.006950960028916597, -0.042482197284698486, -0.04728871211409569, 0.06858526915311813, -0.002950922818854451, 0.04348047450184822, 0.030428936704993248, -0.03068774938583374, -0.05083813890814781, -0.000974590249825269, -0.006946338340640068, -0.01032476406544447, 0.0390806645154953, -0.011239850893616676, 0.04396112635731697, -0.008688700385391712, -0.05154063180088997, -0.04355442151427269, 0.010056708008050919, 0.022867919877171516, -0.011988557875156403, -0.0077089108526706696, 0.03765719756484032, -0.0011068849125877023, 0.00800007488578558, -0.007154312916100025, 0.015584200620651245, -0.012617101892828941, 0.015593443997204304, -0.03516150638461113, 0.02209148183465004, -0.029227308928966522, -0.00691398698836565, 0.023977115750312805, 0.05575557425618172, -0.001163500128313899, 0.00015554737183265388, -0.00047776298015378416, 0.009964275173842907, 0.0609687939286232, 0.04266706481575966, 0.02042768895626068, 0.021241098642349243, 0.012801967561244965, 0.026509778574109077, 0.01723875105381012, -0.03516150638461113, 0.04544005170464516, -0.021647803485393524, -0.003692697500810027, 0.0204461757093668, -0.0036071971990168095, -0.009234054945409298, -0.01104574091732502, 0.035475779324769974, 0.036307673901319504, -0.05760423466563225, 0.02360738255083561, -0.02724924311041832, -0.04987683519721031, 0.013883434236049652, -0.007371530402451754, 0.03109445422887802, -0.04362836852669716, 0.0007273320225067437, 0.021148666739463806, -0.02691648341715336, 0.0381193608045578, -0.011822178028523922, 0.004261160269379616, -0.0419645719230175, -0.08060155808925629, -0.02772989496588707, 0.017201777547597885, -0.011979314498603344, 0.050505381077528, 0.00296016619540751, 0.04418296366930008, 0.0044021205976605415, -0.02545604296028614, -0.04669714346528053, -0.03506907448172569, 0.006525768432766199, 0.055422816425561905, 0.029966771602630615, -0.07169102132320404, -0.0022068375255912542, -0.01210872083902359, -0.04429388418793678, -0.05601438507437706, -0.007357665337622166, 0.008411400951445103, 0.0032628842163830996, -0.009377325884997845, 0.0286172516644001, -0.0003425797331146896, 0.026177020743489265, -0.054942164570093155, 0.029948286712169647, 0.04617951810359955, 0.018209297209978104, -0.03662194684147835, -0.051429711282253265, -0.003413087921217084, 0.04577281326055527, 0.028044166043400764, -0.00018472153169568628, 0.017026154324412346, 0.012755751609802246, -0.006308550946414471, 0.021370505914092064, 0.05313047766685486, 0.01792275533080101, -0.008448374457657337, -0.05719752982258797, 0.02656523883342743, -0.02105623297393322, -0.09864448010921478, 0.017100101336836815, -0.10041919350624084, 0.016166528686881065, -0.02530815079808235, -0.03686227276921272, -0.032296083867549896, 0.06788278371095657, -0.011064227670431137, 0.0013749406207352877, -0.045181240886449814, -0.02469809167087078, 0.041668787598609924, -0.014909439720213413, -0.000853271980304271, 0.007537909783422947, -0.00911389198154211, -0.01645307056605816, -0.1265222579240799, -0.027711408212780952, 0.038710933178663254, 0.026787078008055687, 0.024180468171834946, 0.0342741496860981, -0.014918683096766472, -0.0035933321341872215, -0.006969446782022715, -0.03249943628907204, 0.06817856431007385, -0.023311598226428032, 0.018320217728614807, -0.01602787896990776, 0.05952683836221695, -0.029634013772010803, -0.05105997994542122, 0.011128931306302547, 0.042149439454078674, 0.001075688865967095, 0.030428936704993248, -0.0011877637589350343, 0.033608630299568176, 0.0015690498985350132, -0.04288890212774277, -0.03845211863517761, -0.04728871211409569, 0.039524342864751816, -0.004249606281518936, -0.032370030879974365, 0.015223711729049683, -0.023644356057047844, 0.03527242690324783, 0.015048089437186718, 0.08355941623449326, 0.005065327510237694, 0.004926677793264389, -0.049026452004909515, -0.012201153673231602, -0.04610557109117508, 0.012533912435173988, -0.011202877387404442, -0.02634339965879917, -0.0007371530518867075, 0.017710158601403236, 0.002276162151247263, -0.040226832032203674, -0.006590471602976322, 0.024180468171834946, 0.007334556896239519, 0.00788915529847145, 0.013014563359320164, -0.005753953009843826, 0.03577156364917755, -0.009090784005820751, -0.022941865026950836, 0.0017146317986771464, -0.0032467085402458906, 0.020057957619428635, 0.036011889576911926, -0.053574156016111374, 0.05176246911287308, -0.011775962077081203, -0.030354991555213928, 0.025770315900444984, 0.02401408925652504, 0.019096653908491135, 0.016637936234474182, 0.0004650534247048199, 0.08932723104953766, 0.008753403089940548, -0.006391740869730711, 0.036030374467372894, 0.0045615676790475845, 0.057419367134571075, -0.009192460216581821, 0.06581228226423264, 0.048065152019262314, -0.031630564481019974, -0.008161832578480244, 0.014909439720213413, 0.038230281323194504, 0.03124234825372696, -0.04595767706632614, -0.0399310477077961, 0.04133602976799011, -0.032296083867549896, -0.01898573525249958, 0.05372205004096031, -0.03571610525250435, 0.011064227670431137, -0.025271177291870117, -0.01731269806623459, -0.029060930013656616, 0.039043691009283066, 0.02249818854033947, -0.002303892048075795, 0.02841389924287796, 0.00400003744289279, -0.019041193649172783, -0.04222338646650314, 0.004684041254222393, 0.01069449633359909, -0.05756726115942001, -0.04410902038216591, 0.07823527604341507, 0.06488795578479767, 0.005388842895627022, -0.0005525759188458323, 0.02813659980893135, 0.016924478113651276, 0.029818879440426826, -0.010823901742696762, -0.007533288095146418, 0.02682405151426792, -0.046475302428007126, 0.025714855641126633, -0.016563991084694862, -0.0639636218547821, 0.04333258047699928, -0.07501860707998276, -0.024661120027303696, 0.038156334310770035, 0.05176246911287308, -0.048582773655653, 0.03948736935853958, -0.06991630792617798, 0.06437032669782639, 0.0052085984498262405, -0.014290139079093933, -0.06163431331515312, 0.03510604798793793, -0.025160256773233414, -0.017183290794491768, 0.03249943628907204, -0.053278371691703796, 0.01731269806623459, 0.011748231947422028, -0.004392877221107483, -0.011036497540771961, -0.04026380553841591, -0.0012651764554902911, -0.00360257551074028, 0.049987755715847015, 0.000849805714096874, -0.04577281326055527, 0.0024055682588368654, -0.001841727178543806, -0.09487321227788925, -0.03874790668487549, 0.006239226087927818, -0.034218691289424896, -0.014881709590554237, 0.025160256773233414, 0.024457767605781555, 0.011230607517063618, 0.00012738420628011227, 0.00110572949051857, -0.024402307346463203, 0.0030733966268599033, -0.006511903367936611, -0.009779409505426884, 0.009797896258533001, -0.01194234099239111, 0.0572345033288002, -0.0044806888327002525, -0.045661892741918564, 0.015843013301491737, -0.01736815646290779, -0.049913808703422546, 0.03460690751671791, -0.01252466905862093, 0.006128306500613689, -0.012191910296678543, 0.012737264856696129, 0.06647779792547226, -0.05568162724375725, 0.0030156259890645742, -0.05978565290570259, -0.08341152220964432, 0.003669589292258024, 0.051836416125297546, 0.014539708383381367, -0.04972894489765167, -0.006225361488759518, -0.006608958356082439, 0.05228009447455406, -0.03109445422887802, 0.009331109002232552, -0.0077921003103256226, -0.0021120936144143343, -0.057973966002464294, -0.0675869956612587, 0.002953233662992716, 0.021167153492569923, -0.033331334590911865, -0.04381323233246803, -0.023773763328790665, -0.04880461469292641, 0.029670987278223038, 0.03109445422887802, -0.03310949355363846, 0.005499762482941151, -0.041668787598609924, -0.039117638021707535, -0.009095405228435993, 0.04699292778968811, 0.0013079267228022218, 0.02009492926299572, 0.06418546289205551, 0.04532913491129875, -0.014807763509452343, -0.036289189010858536, 0.033331334590911865, 0.12141996622085571, 0.024550199508666992, -0.03420020267367363, 0.03978315368294716, -0.0013056158786639571, -0.04274101182818413, -0.05020959675312042, -0.0005378444329835474, -0.06584925949573517, 0.00027571024838835, -0.04059656709432602, 0.016767343506217003, -0.033738039433956146, -0.024328360334038734, -0.039524342864751816, -0.0214629378169775, -0.018921030685305595, 0.02057558111846447, 0.1303674727678299, 0.05545978993177414, 0.0271198358386755, 0.0010612461483106017, 0.07653450965881348, 0.01918908767402172, -0.04451572522521019, 0.013328836299479008, -0.016924478113651276, -0.03445901721715927, 0.011286066845059395, 0.010306277312338352, 0.02532663755118847, -0.052871666848659515, -0.007718153763562441, 0.07069274038076401, -0.04277798533439636, -0.07427914440631866, 0.07779159396886826, -0.01939244009554386, -0.03177845850586891, 0.016702638939023018, -0.0627804845571518, 0.03063228912651539, -0.015963176265358925, 0.022257862612605095, -0.05154063180088997, 0.04385020583868027, 0.04629043862223625, -0.05383296683430672, -0.0020959179382771254, 0.016397610306739807, -0.06082089990377426, -0.004127132706344128, 0.009853355586528778, 0.01893027499318123, -0.019096653908491135, -0.007043393328785896, 0.03164905309677124, 0.006932473741471767, 0.03488420695066452, 0.005019111093133688, 0.014613654464483261, 0.020538607612252235, 0.006687526125460863, -0.009881085716187954, 0.09184140712022781, -0.03200029954314232, 0.06274350732564926, -0.0609687939286232, 0.05220614746212959, -0.009622273035347462, -0.04640135541558266, -0.02229483425617218, 0.02325613796710968, -0.036363136023283005, -0.01414224598556757, -0.02085288055241108, 0.06880711019039154, 0.02732319012284279, -0.054054807871580124, 0.02449473924934864, 0.030576830729842186, 0.03848909214138985, 0.016055608168244362, 0.004718703683465719, -0.01721102185547352, 0.010028978809714317, 0.05298258364200592, -0.053500209003686905, -0.008979864418506622, -0.0022819391451776028, 0.04192759841680527, 0.017479076981544495, 0.039672236889600754, 0.006525768432766199, -0.038636986166238785, -0.021962076425552368, 0.004117889329791069, -0.027230756357312202, -0.009377325884997845, -0.06089484691619873, 0.011600338853895664, 0.004510729573667049, 0.0018706124974414706, 0.022054510191082954, 0.07235653698444366, 0.03804541379213333 ]
17,348
imodels.tree.hierarchical_shrinkage
get_params
null
def get_params(self, deep=True): d = { "reg_param": self.reg_param, "estimator_": self.estimator_, "shrinkage_scheme_": self.shrinkage_scheme_, "max_leaf_nodes": self.estimator_.max_leaf_nodes, } if deep: return deepcopy(d) return d
(self, deep=True)
[ 0.0673147439956665, -0.01515314169228077, 0.00014721094339620322, 0.001214311458170414, -0.059147611260414124, 0.011875302530825138, -0.012342257425189018, -0.05577821284532547, -0.014329103752970695, 0.02651570923626423, 0.029225878417491913, -0.00001728369534248486, -0.029830172657966614, 0.021901097148656845, -0.011756274849176407, -0.023109685629606247, 0.005411182530224323, 0.00928873848170042, -0.03620273247361183, 0.01861410215497017, 0.014786902815103531, -0.033254507929086685, -0.011069576255977154, 0.028475088998675346, -0.019740287214517593, -0.010758273303508759, -0.0016618098597973585, -0.032027605921030045, 0.023182934150099754, 0.04702509939670563, -0.06720487028360367, -0.018440138548612595, -0.011142823845148087, 0.04936902970075607, 0.002189422957599163, -0.0003828342887572944, -0.01246128510683775, 0.07764268666505814, -0.1339702606201172, -0.018989495933055878, -0.03319957107305527, -0.06823033839464188, -0.03504908084869385, -0.017725970596075058, 0.05445975065231323, 0.00015908510249573737, 0.046805355697870255, 0.022194087505340576, 0.001005440717563033, -0.05731641501188278, 0.02453801780939102, -0.017487915232777596, -0.007663552649319172, 0.027156628668308258, -0.011911925859749317, -0.05240881070494652, 0.06669213622808456, -0.007036368362605572, 0.0286398958414793, -0.007306469604372978, -0.03739301115274429, -0.010053263045847416, 0.025966349989175797, -0.0268270131200552, -0.06079568713903427, -0.028182096779346466, -0.07529875636100769, 0.016526538878679276, -0.01766187883913517, 0.04695184901356697, 0.007420919369906187, -0.05603457987308502, -0.010483593679964542, 0.004474983550608158, -0.04226398840546608, 0.004266685340553522, 0.0015050136717036366, -0.07137999683618546, 0.012424660846590996, -0.010703337378799915, -0.05738966539502144, 0.036697156727313995, -0.08269678801298141, -0.009980014525353909, -0.01697518117725849, -0.005928494967520237, -0.0410187765955925, -0.033291131258010864, 0.06859657913446426, -0.027229875326156616, -0.01071249321103096, 0.06343261152505875, 0.012992331758141518, 0.044900912791490555, 0.06024632975459099, 0.006322202272713184, -0.036459099501371384, 0.04284997284412384, -0.013349414803087711, -0.013349414803087711, -0.04958876967430115, -0.03779587149620056, -0.06793735176324844, 0.01675543747842312, 0.007063836324959993, -0.06321286410093307, 0.014411508105695248, -0.044278305023908615, 0.027486242353916168, -0.023164622485637665, -0.024428145959973335, 0.0680105984210968, -0.0415315106511116, 0.04918590933084488, 0.019685350358486176, 0.040469419211149216, -0.0029001557268202305, -0.010923080146312714, 0.032302286475896835, 0.001015168963931501, -0.03144162520766258, 0.07522550970315933, -0.0049808514304459095, -0.003715037601068616, -0.012955707497894764, 0.034188419580459595, 0.008574572391808033, 0.023512549698352814, -0.0011113067157566547, -0.03252203017473221, 0.03334606811404228, -0.03177123889327049, -0.05065086483955383, -0.026295965537428856, -0.005369980353862047, -0.03534207120537758, 0.05966034531593323, 0.0268270131200552, 0.021022122353315353, 0.0018872757209464908, 0.028145473450422287, 0.07434653490781784, -0.01893456093966961, 0.03620273247361183, 0.0014649563236162066, -0.04610950127243996, 0.0371183305978775, 0.05233556404709816, -0.013505065813660622, 0.007906186394393444, 0.011957705952227116, 0.03477440029382706, 0.009741959162056446, 0.004587144590914249, -0.006097880657762289, -0.02239551953971386, 0.0022649597376585007, -0.02962874248623848, -0.001471823314204812, -0.015748281031847, -0.046475738286972046, -0.014558003284037113, -0.0041110338643193245, -0.04295984283089638, 0.021663041785359383, 0.055009108036756516, 0.035451941192150116, -0.04255698248744011, -0.0013344836188480258, 0.009421500377357006, -0.011124512180685997, -0.0070455241948366165, -0.06984179466962814, -0.02296319045126438, -0.04314296320080757, 0.057536158710718155, 0.014008644968271255, -0.022853318601846695, -0.03371230885386467, 0.03940732404589653, 0.020106526091694832, -0.019154304638504982, -0.005855247378349304, -0.031954359263181686, 0.04010317847132683, -0.05669381096959114, -0.0040950109250843525, 0.027339747175574303, -0.03852835297584534, 0.025288809090852737, 0.010044107213616371, 0.03499414399266243, 0.010840676724910736, 0.03697183355689049, -0.03058096393942833, -0.012955707497894764, 0.04475441575050354, 0.022450456395745277, 0.012699340470135212, 0.12994162738323212, -0.014786902815103531, -0.05314129218459129, -0.014301636256277561, -0.024025283753871918, -0.02840184047818184, 0.007773424498736858, -0.0032663948368281126, -0.017497071996331215, 0.04277672618627548, 0.03559843823313713, -0.026625581085681915, -0.009540528059005737, 0.076836958527565, -0.013376882299780846, 0.028475088998675346, -0.030416155233979225, -0.012754276394844055, 0.0025728296022862196, 0.006487009581178427, -0.03999330848455429, 0.03492089733481407, -0.0372098907828331, 0.04204424470663071, -0.03426166623830795, -0.017552006989717484, -0.0233660526573658, -0.01511651836335659, -0.041165273636579514, -0.08020635694265366, -0.037978991866111755, 0.019740287214517593, -0.004243795294314623, 0.003156522987410426, 0.0016171744791790843, 0.011628090403974056, -0.013074735179543495, -0.012507064267992973, -0.05233556404709816, 0.0403229221701622, -0.006427495740354061, 0.0299400445073843, 0.01164640299975872, -0.040469419211149216, 0.018989495933055878, -0.011875302530825138, -0.04881966859102249, 0.037686001509428024, 0.05614444985985756, 0.0553753487765789, -0.017158301547169685, 0.053800519555807114, -0.0024034439120441675, -0.04548689350485802, 0.06028295308351517, -0.016215234994888306, 0.0467321053147316, 0.03464621677994728, 0.07383380085229874, 0.013358570635318756, -0.009513060562312603, 0.026698829606175423, 0.02019808441400528, -0.04200762137770653, 0.008702755905687809, 0.008075571618974209, 0.0075628370977938175, 0.033840492367744446, -0.028932888060808182, -0.08020635694265366, 0.027559490874409676, 0.06401859223842621, 0.016865309327840805, -0.006267266348004341, -0.008606618270277977, -0.007159973960369825, -0.02147992141544819, 0.05032125115394592, -0.048673175275325775, -0.027303123846650124, 0.008748535998165607, 0.006793735083192587, -0.039590444415807724, 0.028475088998675346, -0.005649237893521786, -0.006624349392950535, -0.005182282999157906, 0.012159137055277824, 0.045230526477098465, 0.004637502133846283, -0.026607269421219826, -0.011271007359027863, 0.025124000385403633, 0.0274313073605299, -0.004893869627267122, 0.06233389303088188, -0.0033762664534151554, -0.009870143607258797, -0.02369566820561886, 0.020692508667707443, 0.08057259768247604, 0.0176069438457489, 0.016773749142885208, -0.01919092796742916, 0.03731976076960564, 0.03970031812787056, 0.02708338014781475, 0.05834188684821129, -0.0070134783163666725, 0.006358826067298651, 0.01149990689009428, -0.028603272512555122, 0.031496562063694, 0.041458263993263245, 0.055595092475414276, -0.046475738286972046, -0.10232719779014587, 0.03874809294939041, -0.009165133349597454, 0.03156980872154236, 0.06563004106283188, 0.006070412695407867, 0.0021321980748325586, -0.018211238086223602, -0.047720953822135925, 0.016270171850919724, -0.03178955242037773, -0.001978835556656122, 0.03426166623830795, -0.008862985298037529, -0.0047565302811563015, -0.02398866042494774, -0.007347671315073967, 0.02616778202354908, 0.029152629896998405, 0.022615263238549232, 0.0673147439956665, 0.009824363514780998, 0.027907418087124825, -0.04988176375627518, -0.029207566753029823, 0.0176069438457489, -0.005260108970105648, -0.034829337149858475, -0.024757761508226395, -0.06277337670326233, -0.04010317847132683, 0.009567995555698872, 0.03999330848455429, 0.010236382484436035, -0.050284624099731445, -0.025270497426390648, 0.02426333911716938, 0.044644542038440704, 0.09668711572885513, 0.032027605921030045, 0.03189942240715027, -0.008547104895114899, -0.021534858271479607, 0.005369980353862047, -0.0020211818628013134, 0.05636419355869293, 0.010346254333853722, -0.013019799254834652, 0.028530023992061615, 0.09895779937505722, -0.011554842814803123, -0.007778002414852381, 0.022505391389131546, 0.051822829991579056, -0.06486093997955322, -0.012735963799059391, -0.05288492143154144, -0.009059838950634003, -0.030471092090010643, 0.0014386328402906656, 0.054386503994464874, -0.08855661004781723, -0.006734221242368221, -0.005969697143882513, -0.017176613211631775, 0.01420092023909092, -0.00686698267236352, 0.03779587149620056, 0.00037224768311716616, 0.032943204045295715, -0.017176613211631775, 0.05793902277946472, 0.0005485002184286714, 0.08628592640161514, -0.029555493965744972, -0.062993124127388, -0.0062397983856499195, -0.07339431345462799, 0.07295482605695724, -0.0016377753345295787, -0.014750278554856777, 0.03849172592163086, 0.013605781830847263, -0.11932069063186646, -0.036147795617580414, -0.005814045201987028, -0.04354582726955414, -0.04167800769209862, -0.009046105667948723, 0.009906766936182976, -0.07815542072057724, 0.005319622810930014, 0.09580814093351364, 0.034170106053352356, -0.009668711572885513, -0.029152629896998405, -0.030471092090010643, -0.004516185726970434, 0.000842349894810468, 0.02494088187813759, -0.02898782305419445, 0.046219371259212494, 0.03728313744068146, 0.05603457987308502, -0.01865988038480282, 0.048343557864427567, -0.04581650719046593, -0.011921081691980362, 0.028127161785960197, 0.06735136359930038, 0.02235889621078968, -0.040469419211149216, 0.02426333911716938, 0.024995816871523857, 0.01863241381943226, -0.007127928081899881, 0.030416155233979225, -0.04090890660881996, -0.01008073054254055, 0.02050938829779625, 0.017204081639647484, 0.032924894243478775, 0.02744961902499199, 0.02898782305419445, 0.036056239157915115, -0.01857747696340084, -0.0314050018787384, 0.01119775976985693, -0.03918758034706116, -0.022505391389131546, 0.01887962408363819, -0.001958234468474984, 0.035158950835466385, -0.021241866052150726, -0.03559843823313713, 0.07295482605695724, -0.037374697625637054, 0.0467321053147316, -0.090680792927742, 0.0030970091465860605, -0.014100204221904278, 0.022944878786802292, -0.032595276832580566, 0.013074735179543495, 0.011545686982572079, 0.06976854801177979, -0.015867307782173157, 0.0073934514075517654, 0.05098047852516174, -0.042740099132061005, -0.016315951943397522, 0.02611284703016281, -0.00047639693366363645, -0.008258691057562828, -0.0016629543388262391, 0.03334606811404228, 0.052848298102617264, -0.03534207120537758, -0.05083398520946503, -0.015922244638204575, 0.03241216018795967, -0.01577574759721756, -0.0049488055519759655, -0.06376222521066666, -0.05804889276623726, -0.02052769996225834, -0.03426166623830795, 0.022944878786802292, 0.004925915505737066, -0.0116830263286829, -0.034518033266067505, -0.05262855440378189, 0.02243214286863804, -0.03488427400588989, 0.014741122722625732, -0.06028295308351517, -0.030764082446694374, 0.016151143237948418, 0.035140641033649445, -0.041128650307655334, 0.030635898932814598, 0.017204081639647484, 0.0157025009393692, 0.03944394737482071, 0.034225042909383774, -0.04123852029442787, -0.03411516919732094, 0.04024967551231384, 0.029793549329042435, -0.038894589990377426, -0.036660533398389816, -0.03314463794231415, 0.025050753727555275, -0.0015919954748824239, 0.060026586055755615, 0.018843000754714012, -0.03468284010887146, -0.0352138876914978, 0.05548522248864174, -0.0078741405159235, -0.04936902970075607, -0.016499070450663567, 0.008020635694265366, 0.017204081639647484, -0.02459295466542244, 0.05050436779856682, 0.0555584691464901, 0.024739449843764305, -0.0825502872467041, 0.03092889115214348, 0.03742963448166847, -0.05010150745511055, -0.020729131996631622, 0.005864403210580349, 0.008789737708866596, 0.045340396463871, -0.048966165632009506, -0.017552006989717484, 0.05980684235692024, -0.011628090403974056, -0.008373141288757324, 0.06079568713903427, 0.00032818454201333225, -0.08972857147455215, 0.008162553422152996, 0.02179122529923916, -0.018669037148356438, 0.03907771036028862, 0.014411508105695248, 0.028200408443808556, 0.030471092090010643, 0.027834169566631317, 0.021333426237106323, -0.004010317847132683, -0.0773496925830841, -0.006752532906830311, -0.019465606659650803, -0.04918590933084488, -0.029848484322428703, 0.004971695598214865, 0.008762270212173462, 0.0022546593099832535, -0.02772429771721363, 0.022120840847492218, 0.008890453726053238, 0.04438817501068115, -0.01959379017353058, 0.012076733633875847, -0.006409184075891972, -0.05445975065231323, -0.00710046011954546, -0.04816043749451637, 0.08672541379928589, -0.11705000698566437, -0.0030008715111762285, 0.008890453726053238, 0.05306804180145264, 0.013028955087065697, 0.028804704546928406, 0.05079736188054085, -0.011298475787043571, 0.00896370131522417, 0.03999330848455429, -0.0236224215477705, 0.00019456450536381453, 0.08357575535774231, 0.024428145959973335, -0.0009361986303701997, 0.006015476770699024, -0.048966165632009506, 0.04409518465399742, -0.012662716209888458, 0.0004082993546035141, -0.0007856972515583038, -0.020106526091694832, 0.021882785484194756, 0.0201614610850811, -0.016004648059606552, 0.00740260723978281, -0.033858802169561386, 0.022505391389131546, -0.06724149733781815, 0.024025283753871918, 0.006793735083192587, -0.04416843131184578, -0.02525218389928341, 0.006784578785300255, 0.027797546237707138, 0.015400352887809277, -0.030544338747859, -0.009361986070871353, 0.020106526091694832, 0.04830693453550339, 0.005026631522923708, 0.002771971980109811, 0.010419501923024654, -0.05669381096959114, 0.012085889466106892, -0.09280498325824738, -0.021663041785359383, 0.01794571429491043, -0.016315951943397522, -0.0207657553255558, 0.005333356559276581, -0.038967836648225784, -0.021534858271479607, -0.012259853072464466, -0.025270497426390648, 0.022487079724669456, -0.06335935741662979, -0.04284997284412384, -0.006134504452347755, -0.04405856132507324, -0.006496165879070759, -0.012342257425189018, 0.014530535787343979, -0.011042107827961445, 0.032338909804821014, -0.036349229514598846, 0.019135991111397743, 0.036056239157915115, 0.024336587637662888, -0.02931743860244751, -0.021003810688853264, 0.03786912187933922, 0.021168619394302368, 0.06383547186851501, -0.04816043749451637, 0.002680412260815501, -0.043655697256326675, -0.00914682075381279, -0.02332942932844162, -0.005296732764691114, 0.03332775458693504, -0.04006655514240265, -0.0208573155105114, 0.017716815695166588, -0.006921918597072363, -0.007993168197572231, -0.023567484691739082, -0.036752089858055115, -0.012626091949641705, 0.024757761508226395, 0.02391541190445423, -0.05109035223722458, -0.06090556085109711, 0.007663552649319172, 0.0033671106211841106, -0.08994831889867783, 0.01735057681798935, 0.05354415252804756, -0.06138167157769203, -0.004770264029502869, 0.04314296320080757, -0.033272821456193924, -0.028475088998675346, -0.019667038694024086, 0.024153467267751694, 0.0026666782796382904, -0.02898782305419445, 0.03594636544585228, -0.018037274479866028, 0.026314277201890945, 0.014255856163799763, 0.015345417894423008, 0.046805355697870255, 0.020051589235663414, 0.0010769717628136277, 0.03523220121860504, 0.02554517611861229, -0.021644730120897293, -0.050284624099731445, 0.030178099870681763, 0.009439812041819096, 0.07712995260953903, -0.03583649545907974, -0.08035285770893097, 0.0274313073605299, -0.020381204783916473, 0.03396867588162422, 0.0010844110511243343, 0.008579150773584843, -0.0685233324766159, 0.057169921696186066, -0.005067833233624697, -0.05292154848575592, -0.0026346324011683464, -0.028200408443808556, -0.0036234778817743063, 0.017213236540555954, 0.029152629896998405, 0.044571295380592346, -0.006120770704001188, 0.0010557986097410321, -0.04918590933084488, -0.0034952941350638866, -0.0032183260191231966, -0.015043269842863083, -0.04193437471985817, 0.007933653891086578, 0.04131176695227623, -0.0012818367686122656, 0.011307631619274616, -0.026424149051308632, 0.029427310451865196, 0.0189528726041317, 0.01637088693678379, 0.012827523984014988, 0.022267336025834084, -0.012333100661635399, 0.056620560586452484, -0.014521379955112934, -0.03948057442903519, 0.054056886583566666, -0.04486428573727608, 0.003685280680656433, 0.007672708947211504, -0.01828448660671711, -0.03656897321343422, -0.011518219485878944, -0.0182570181787014, 0.07159973680973053, 0.015409509651362896, 0.0072652678936719894, 0.03087395429611206, 0.00645038578659296, 0.09031455963850021, 0.0002569396165199578, 0.05050436779856682, -0.031496562063694, 0.01121607143431902, 0.02801728993654251, -0.04200762137770653, 0.05163970962166786, -0.0877508819103241, 0.00724237784743309, 0.0064320736564695835, 0.030178099870681763, -0.05010150745511055, -0.00763608468696475, 0.007713910657912493, -0.04508402943611145, -0.009989171288907528, -0.0037814185488969088, -0.01611451990902424, -0.017552006989717484, -0.065593421459198, -0.003536496078595519, 0.021882785484194756, 0.006070412695407867, 0.03629429265856743, 0.06768098473548889, -0.007018056232482195 ]
17,350
imodels.tree.hierarchical_shrinkage
predict_proba
null
def predict_proba(self, X, *args, **kwargs): if hasattr(self.estimator_, "predict_proba"): return self.estimator_.predict_proba(X, *args, **kwargs) else: return NotImplemented
(self, X, *args, **kwargs)
[ 0.025356288999319077, -0.008276368491351604, -0.04032318666577339, -0.01005508005619049, -0.015584088861942291, -0.0373058058321476, -0.031065313145518303, -0.022373197600245476, 0.10053365677595139, 0.0037052929401397705, 0.04800379276275635, 0.003992458339780569, 0.00281379371881485, -0.009935070760548115, -0.05787885934114456, -0.03433985635638237, 0.027636470273137093, -0.013269620016217232, -0.023693300783634186, 0.02717357687652111, 0.008469240739941597, 0.028647977858781815, -0.02739645168185234, 0.010749421082437038, 0.006154772359877825, -0.004341771826148033, 0.018190009519457817, -0.055821556597948074, 0.03854018822312355, 0.06295354664325714, -0.0042346203699707985, -0.00024042079166974872, -0.04892958328127861, 0.0040974668227136135, 0.05530722811818123, 0.025544876232743263, -0.0075263092294335365, 0.018241440877318382, 0.002410904737189412, -0.055170074105262756, -0.08249794691801071, -0.09093289822340012, -0.010415108874440193, -0.015206916257739067, -0.005087545141577721, -0.05455288290977478, -0.026127779856324196, 0.06909117847681046, 0.02019588276743889, -0.008306371048092842, -0.00629192590713501, 0.019132940098643303, 0.05561582371592522, -0.01325247623026371, -0.013792518526315689, 0.09113863110542297, 0.02739645168185234, 0.04011745750904083, 0.0008518530521541834, -0.013449634425342083, 0.05023254081606865, 0.016767039895057678, 0.02408761903643608, -0.02496197260916233, 0.042037609964609146, -0.03358551114797592, 0.012249539606273174, -0.012472414411604404, -0.01879005692899227, 0.022698936983942986, -0.012729577720165253, -0.026916412636637688, -0.046426527202129364, 0.02527056820690632, 0.018584325909614563, 0.04601506516337395, -0.012035236693918705, -0.04402633756399155, 0.0276021808385849, 0.05667876452207565, -0.03535136580467224, -0.0357971154153347, -0.049958232790231705, -0.02916230447590351, -0.03696292266249657, -0.06922832876443863, -0.009266446344554424, -0.024430502206087112, 0.06072479858994484, 0.02516770362854004, -0.01070656068623066, 0.05829032137989998, 0.04450637474656105, 0.05609586089849472, 0.010826569981873035, -0.010809426195919514, 0.02969377487897873, 0.028013642877340317, -0.0049761077389121056, -0.01644987240433693, -0.009857921861112118, 0.06857684999704361, -0.01159805990755558, 0.009395028464496136, 0.022441774606704712, 0.045329298824071884, -0.002284466288983822, 0.045672181993722916, -0.02131025493144989, -0.022013168781995773, -0.012866731733083725, 0.013098178431391716, -0.012703861109912395, -0.03806015104055405, -0.05403855815529823, -0.015978405252099037, -0.05335278809070587, -0.0019072935683652759, -0.029505189508199692, 0.02902515046298504, -0.03144248574972153, 0.0668967142701149, -0.008520673029124737, -0.019132940098643303, -0.04100895673036575, 0.010560834780335426, 0.07858906686306, 0.025253424420952797, -0.008949278853833675, -0.0342027023434639, 0.02508198283612728, -0.005520436447113752, -0.03279687836766243, 0.031853947788476944, 0.005053256638348103, -0.041146110743284225, 0.06939977407455444, -0.007869193330407143, 0.05167265608906746, -0.051604077219963074, 0.05589013174176216, -0.01856718212366104, 0.05530722811818123, 0.024481935426592827, 0.045432161539793015, -0.014109686948359013, 0.0766003429889679, 0.005228984635323286, 0.0333283469080925, -0.019475825130939484, 0.04282624274492264, -0.00579902995377779, -0.033722665160894394, -0.06226778030395508, -0.0002550201606936753, 0.0284765362739563, 0.0020476619247347116, -0.044540662318468094, 0.017195645719766617, -0.02761932648718357, -0.013552499935030937, 0.017529956996440887, -0.008897846564650536, -0.018155720084905624, 0.029008006677031517, 0.0596618577837944, -0.010089368559420109, 0.03658574819564819, 0.016947053372859955, 0.005550438538193703, 0.04018603265285492, -0.01776140369474888, 0.01700705848634243, 0.0036774335894733667, 0.011846650391817093, 0.03898593783378601, 0.023813311010599136, 0.014889748767018318, -0.003868162864819169, 0.05215269327163696, 0.03943168744444847, -0.023984752595424652, -0.056610189378261566, -0.05664447695016861, 0.010295099578797817, 0.005147549789398909, 0.0018515748670324683, 0.0307052843272686, -0.053627096116542816, 0.02873370051383972, -0.047318026423454285, -0.0417633019387722, 0.042140472680330276, 0.025562020018696785, -0.00489038648083806, -0.010346531867980957, 0.009746484458446503, 0.024790531024336815, 0.002991664921864867, 0.03247113898396492, 0.0264878086745739, -0.06744533032178879, -0.004296767991036177, 0.05016396567225456, -0.04838096722960472, -0.02208174578845501, -0.025767751038074493, -0.0030302396044135094, 0.03115103393793106, -0.09456747770309448, 0.01976727694272995, -0.04148899391293526, 0.01732422597706318, -0.032625436782836914, 0.023230407387018204, 0.06449652463197708, 0.06919404119253159, -0.032419703900814056, 0.01088657509535551, -0.011529482901096344, 0.03178536891937256, -0.011220887303352356, -0.03176822513341904, 0.03788870945572853, 0.07790330052375793, -0.02650495246052742, 0.004335342440754175, 0.0228703785687685, 0.033191196620464325, -0.02285323478281498, -0.026007769629359245, 0.021910302340984344, -0.01143518928438425, -0.043889183551073074, 0.037717267870903015, 0.01677561178803444, 0.009523609653115273, -0.021138813346624374, -0.05256415531039238, 0.02991664968430996, 0.038025863468647, 0.056370168924331665, 0.0016426298534497619, 0.008760692551732063, -0.01832716353237629, 0.013543928042054176, 0.021944591775536537, 0.03037954494357109, 0.028425103053450584, 0.004500355571508408, 0.041111819446086884, 0.030756717547774315, -0.04364916309714317, 0.029505189508199692, -0.010089368559420109, -0.024979116395115852, 0.07824618369340897, 0.04018603265285492, 0.05578726530075073, 0.06154772266745567, -0.01767568290233612, -0.03658574819564819, -0.004341771826148033, 0.02372759021818638, 0.02928231470286846, 0.0153526421636343, 0.009223585948348045, -0.008409236557781696, 0.036071423441171646, 0.042997684329748154, 0.01396396104246378, -0.021018804982304573, -0.009875066578388214, -0.035625673830509186, 0.01138375699520111, 0.03397982940077782, -0.013012456707656384, 0.0005812959279865026, 0.04464352875947952, -0.009712195955216885, 0.04052891954779625, -0.03662003576755524, -0.000690054555889219, -0.02131025493144989, -0.004346057772636414, -0.025904905050992966, 0.04402633756399155, -0.005533294286578894, 0.04601506516337395, -0.004350343719124794, 0.027225008234381676, 0.0494781956076622, 0.0030302396044135094, -0.0037181510124355555, 0.04118039831519127, -0.005807601846754551, 0.018721479922533035, -0.012455270625650883, 0.04306625947356224, 0.009223585948348045, 0.027962209656834602, 0.004744660574942827, -0.040460340678691864, -0.08482956141233444, -0.006429079454392195, 0.022218899801373482, 0.0940188616514206, 0.003538136836141348, -0.07694322615861893, -0.009652191773056984, 0.014229696244001389, 0.03168250247836113, -0.002766647143289447, 0.028202228248119354, -0.08517244458198547, -0.04011745750904083, 0.06106768548488617, 0.021601706743240356, 0.028116507455706596, -0.03596855700016022, -0.02871655486524105, -0.008002061396837234, -0.007924912497401237, -0.02880227565765381, 0.04793521761894226, 0.016544165089726448, -0.005764741450548172, -0.02120739035308361, -0.0552043616771698, -0.015464079566299915, 0.03984314948320389, -0.0011647349456325173, 0.02319611981511116, 0.07365153729915619, -0.07454303652048111, 0.030122380703687668, -0.01700705848634243, 0.045123565942049026, 0.008182074874639511, 0.04063178226351738, -0.05558153614401817, -0.04131755232810974, -0.024773387238383293, 0.0437520295381546, 0.004658939782530069, -0.024876251816749573, -0.013449634425342083, 0.06919404119253159, 0.02869941107928753, -0.003550994908437133, -0.021344544366002083, 0.003698863787576556, 0.03929453343153, 0.04872385039925575, -0.009352168068289757, -0.04639223963022232, 0.026813548058271408, 0.021601706743240356, 0.009455032646656036, -0.021944591775536537, 0.010140801779925823, -0.04762662202119827, -0.030225245282053947, 0.012052381411194801, -0.005636159796267748, -0.014778311364352703, -0.07200568914413452, 0.07255430519580841, -0.013869667425751686, 0.00928359106183052, 0.01645844429731369, 0.005254701245576143, -0.06261066347360611, 0.03159678354859352, -0.00676767760887742, 0.01889292150735855, -0.00019434571731835604, -0.018910065293312073, -0.0030559557490050793, -0.01667274720966816, -0.018910065293312073, -0.06823396682739258, -0.024876251816749573, -0.011812361888587475, 0.004491783678531647, 0.041248973459005356, 0.039157379418611526, -0.051604077219963074, 0.0766003429889679, -0.05866749584674835, -0.015815535560250282, -0.03850590065121651, -0.053935691714286804, -0.03565996140241623, -0.030208101496100426, -0.0489981584250927, 0.013406774029135704, 0.01578124798834324, 0.020573055371642113, -0.0020605199970304966, -0.05715880170464516, 0.007406299468129873, 0.002618778496980667, -0.02717357687652111, -0.005670448299497366, -0.02936803549528122, 0.007003410719335079, 0.002144098049029708, 0.0025266283191740513, 0.04073464870452881, -0.051192618906497955, 0.0532156340777874, -0.006339072249829769, -0.07042842358350754, -0.00937788374722004, 0.0770803764462471, 0.00654480280354619, -0.013106750324368477, -0.008743547834455967, -0.030739571899175644, 0.018515748903155327, 0.02232176437973976, -0.017589962109923363, -0.0030795291531831026, 0.015489796176552773, 0.03850590065121651, 0.011049444787204266, 0.0048818145878612995, 0.06072479858994484, 0.027362162247300148, -0.008722118102014065, -0.07810903340578079, -0.02319611981511116, -0.0032466852571815252, -0.027139287441968918, -0.008233508095145226, -0.04049462825059891, -0.012249539606273174, 0.0065705194137990475, 0.007997775450348854, -0.0018708622083067894, 0.0227503702044487, 0.018601469695568085, 0.020555909723043442, 0.005168979987502098, 0.0023937607184052467, -0.003953883890062571, -0.07324007153511047, -0.0007580956444144249, -0.038711629807949066, -0.005203268490731716, 0.02494482882320881, 0.06857684999704361, 0.008773550391197205, 0.019647266715765, -0.039020225405693054, -0.05664447695016861, -0.0845552533864975, 0.0009081074967980385, 0.023213263601064682, 0.027739334851503372, 0.002256606938317418, 0.014666873961687088, -0.014829743653535843, 0.013655365444719791, 0.002989521948620677, -0.02276751399040222, 0.02254463918507099, -0.03912309184670448, -0.0029530904721468687, 0.03734009340405464, -0.03003665991127491, 0.011666635982692242, -0.030122380703687668, -0.026453519240021706, 0.04793521761894226, 0.017401374876499176, 0.00866211298853159, 0.03058527410030365, -0.00817350298166275, 0.010363676585257053, 0.010346531867980957, 0.04604935273528099, 0.04460924118757248, 0.0058461762964725494, -0.04882671684026718, -0.007329150568693876, 0.006304784212261438, 0.006206204649060965, -0.013269620016217232, 0.02319611981511116, -0.0006241564988158643, 0.06021047383546829, 0.10787138342857361, -0.05280417203903198, -0.015335497446358204, 0.08311513811349869, -0.025767751038074493, -0.006081909406930208, -0.010029364377260208, 0.00747916242107749, 0.023984752595424652, 0.022458918392658234, -0.024601943790912628, -0.032728299498558044, -0.005769027397036552, -0.01276386622339487, 0.043134838342666626, -0.05177552253007889, 0.05054113641381264, -0.05355851724743843, -0.024036185815930367, 0.004774663131684065, -0.01644129864871502, 0.030568130314350128, 0.05434715375304222, 0.06171916425228119, 0.014349705539643764, -0.039500266313552856, -0.005486147943884134, 0.050198253244161606, -0.011983804404735565, 0.03115103393793106, -0.0355570949614048, 0.0076034581288695335, 0.07104561477899551, 0.0455007404088974, -0.02880227565765381, 0.004086751490831375, 0.042449068278074265, 0.017495669424533844, -0.038917362689971924, 0.026230644434690475, 0.038917362689971924, -0.010406536981463432, 0.005258987192064524, -0.014486859552562237, -0.009669335559010506, 0.05150121450424194, 0.015944117680191994, 0.01005508005619049, -0.045877911150455475, -0.03399697318673134, 0.026213500648736954, 0.03211110830307007, -0.02120739035308361, -0.06775392591953278, 0.019390104338526726, -0.027310730889439583, 0.011992376297712326, -0.030413832515478134, -0.0011990233324468136, 0.020504478365182877, 0.04052891954779625, 0.04416349157691002, 0.026693537831306458, 0.0018097859574481845, 0.03720293939113617, 0.0027345018461346626, 0.03137390688061714, -0.010329388082027435, -0.08229222148656845, 0.04474639520049095, -0.03586569055914879, -0.05863320454955101, 0.05763884261250496, -0.05643874779343605, 0.08407521992921829, -0.006690528709441423, -0.05805030092597008, 0.0636393129825592, -0.006360502913594246, -0.08050922304391861, -0.011838078498840332, -0.02815079689025879, 0.006660526618361473, 0.035831402987241745, -0.06624523550271988, -0.08777836710214615, 0.010415108874440193, -0.03514563664793968, 0.00372672313824296, -0.0037952999118715525, -0.05078115686774254, -0.028785131871700287, 0.0035788542591035366, -0.06813109666109085, 0.003964599221944809, -0.01635557785630226, -0.055718690156936646, -0.06449652463197708, 0.016604170203208923, -0.03310547396540642, -0.03524849936366081, 0.024344781413674355, 0.026470663025975227, -0.027362162247300148, -0.015146911144256592, -0.0022351767402142286, -0.08709260076284409, 0.008156359195709229, 0.03823159262537956, 0.03878020867705345, -0.015541228465735912, 0.04594649001955986, -0.011298036202788353, -0.05589013174176216, 0.010946579277515411, 0.04992394521832466, 0.0015729814767837524, 0.01623556949198246, -0.0041146110743284225, -0.01942439191043377, -0.0043717739172279835, -0.04330627992749214, 0.025373434647917747, -0.01921866275370121, -0.0025459155440330505, 0.0026637818664312363, 0.0349227599799633, 0.0003136855084449053, -0.0355570949614048, 0.006253351457417011, 0.06120483949780464, -0.008983567357063293, -0.029093727469444275, 0.028545113280415535, -0.08284083008766174, 0.03135676309466362, -0.019647266715765, 0.019647266715765, 0.028836565092206, 0.05715880170464516, -0.015061190351843834, 0.06994838267564774, -0.04584362357854843, 0.008434952236711979, 0.036380019038915634, -0.04704371839761734, -0.08229222148656845, -0.10759707540273666, -0.016518447548151016, -0.02794506587088108, 0.0024044758174568415, 0.02770504727959633, -0.012506702914834023, -0.07406299561262131, 0.042894817888736725, 0.08441810309886932, -0.04769519716501236, 0.037374380975961685, -0.09065859764814377, -0.045980777591466904, 0.05962757021188736, -0.002191244624555111, 0.02837367169559002, 0.015146911144256592, 0.06483940780162811, -0.014272556640207767, -0.019132940098643303, -0.052289847284555435, -0.031408198177814484, -0.04210618510842323, -0.01463258545845747, 0.061684876680374146, 0.03289974480867386, -0.057913150638341904, -0.05777599662542343, -0.026127779856324196, 0.0075863138772547245, 0.001066155731678009, 0.03919167071580887, -0.004005316644906998, -0.014298273250460625, 0.08098925650119781, -0.04138612747192383, -0.016595598310232162, -0.02408761903643608, -0.016535593196749687, 0.003938882611691952, 0.0276021808385849, -0.035179924219846725, 0.01209524180740118, -0.018910065293312073, 0.00009181529458146542, -0.01767568290233612, 0.03178536891937256, 0.024704810231924057, -0.011838078498840332, 0.007161994464695454, 0.01877291314303875, -0.03864305466413498, 0.02739645168185234, -0.01236954890191555, -0.003081672126427293, -0.00906071625649929, -0.019235806539654732, -0.025373434647917747, 0.0017422805540263653, -0.04663225635886192, -0.01534407027065754, 0.006141914054751396, -0.04927246645092964, 0.0035295647103339434, -0.03696292266249657, 0.08962994068861008, -0.06247350946068764, -0.03454558923840523, 0.01170092448592186, -0.07029127329587936, -0.06278210878372192, 0.0040203179232776165, 0.0003878877905663103, -0.0711141899228096, 0.03147677332162857, 0.05180981010198593, -0.0041746157221496105, -0.008494957350194454, -0.02119024656713009, 0.013278191909193993, -0.028305094689130783, -0.0007779186125844717, -0.020847361534833908, -0.0025137700140476227, -0.062130626291036606, -0.03149391710758209, 0.0006262995302677155, -0.09134436398744583, 0.010963723994791508, 0.0344427227973938, 0.037614401429891586, 0.007024840917438269, -0.009472177363932133, -0.016587024554610252, -0.01374965813010931, -0.05331850051879883, -0.02914516068994999, -0.03545423224568367, 0.03867734223604202, -0.010415108874440193, -0.001956583233550191, -0.02297324500977993, 0.043683454394340515, -0.0029402323998510838, 0.03922595828771591, 0.017084207385778427, -0.04484925791621208, 0.002783791394904256, 0.043340567499399185, -0.0494781956076622, 0.00720485532656312, 0.04903244599699974, 0.019955862313508987, -0.021258823573589325, 0.03610571101307869, 0.009129293262958527, 0.01656988076865673, -0.008932134136557579, -0.02482481859624386, -0.02472195401787758, -0.08064637333154678, 0.030756717547774315, -0.03641430661082268, -0.012926735915243626, 0.040014591068029404, -0.005228984635323286, 0.030773861333727837, 0.04697514325380325 ]
17,351
imodels.tree.hierarchical_shrinkage
score
null
def score(self, X, y, *args, **kwargs): if hasattr(self.estimator_, "score"): return self.estimator_.score(X, y, *args, **kwargs) else: return NotImplemented
(self, X, y, *args, **kwargs)
[ 0.002328866859897971, -0.023544589057564735, 0.013521077111363411, 0.03260413557291031, 0.0035039635840803385, -0.0362723134458065, -0.017675502225756645, 0.014706837013363838, 0.03879738599061966, 0.023135116323828697, 0.044529981911182404, -0.0015248532872647047, 0.013794058002531528, -0.012813033536076546, -0.02919187769293785, -0.0011686987709254026, 0.013981731608510017, -0.04459822550415993, -0.018084973096847534, 0.01907452940940857, -0.007967624813318253, -0.04647497087717056, 0.023954059928655624, -0.00506293959915638, 0.01014294009655714, 0.008189422078430653, 0.052821770310401917, -0.06466230750083923, -0.016293536871671677, 0.030556781217455864, -0.02700803056359291, -0.012497399002313614, -0.04060588404536247, 0.04852232336997986, 0.026871541514992714, -0.022077316418290138, -0.04927302151918411, 0.028372934088110924, -0.004875265061855316, -0.020507678389549255, -0.09902375936508179, -0.05295826122164726, 0.02081478014588356, 0.004194946028292179, -0.03178519383072853, -0.005263409577310085, -0.06647080928087234, 0.045656029134988785, 0.04743040353059769, -0.0937688797712326, -0.02919187769293785, -0.06466230750083923, 0.0033461465500295162, 0.016668885946273804, 0.007750093471258879, 0.08332736790180206, 0.08366859704256058, 0.04118596762418747, 0.03482210636138916, 0.009801714681088924, 0.040469393134117126, -0.0025101432111114264, -0.006820253096520901, -0.014007323421537876, 0.006820253096520901, -0.059475675225257874, -0.023544589057564735, 0.038285546004772186, -0.031051557511091232, 0.0660613402724266, -0.007012192625552416, 0.020115267485380173, 0.0285947322845459, -0.01781199313700199, 0.013640506193041801, 0.0551421083509922, -0.0627855658531189, 0.017760809510946274, 0.03576047718524933, 0.02733219601213932, 0.018409138545393944, 0.007020723074674606, 0.0009101135074160993, -0.040878865867853165, -0.0819624662399292, -0.061932504177093506, 0.02692272514104843, -0.02567725069820881, 0.041083600372076035, 0.04398402199149132, 0.009682285599410534, 0.0574965663254261, 0.029089508578181267, -0.0229986272752285, -0.008308851160109043, 0.0017306552035734057, -0.03313303738832474, -0.00557904364541173, 0.004414610099047422, 0.0037044337950646877, -0.004909387789666653, 0.12563937902450562, 0.039548084139823914, 0.02664974331855774, 0.018084973096847534, -0.010927760042250156, 0.010296491906046867, -0.004474324639886618, -0.0202005747705698, 0.02612084336578846, -0.03767134249210358, -0.01077420823276043, -0.03623819351196289, -0.008424014784395695, -0.06312679499387741, -0.03907036781311035, -0.059305064380168915, -0.013597852550446987, -0.0283046904951334, 0.02523365616798401, -0.07418251037597656, 0.08018808811903, 0.015022470615804195, -0.019211018458008766, -0.041288334876298904, -0.010833922773599625, 0.006914089899510145, 0.023373974487185478, -0.04425700008869171, -0.07268112152814865, 0.0207806583493948, -0.026632683351635933, 0.020558862015604973, 0.015500186942517757, 0.013120136223733425, -0.01720631681382656, 0.10421039164066315, 0.00937518198043108, 0.05944155529141426, -0.018494443967938423, 0.08912821114063263, -0.010432982817292213, 0.02045649290084839, -0.007187070790678263, 0.06244434416294098, 0.03941159322857857, 0.020712412893772125, 0.06002163887023926, 0.03442969545722008, 0.006261495407670736, 0.01207086630165577, -0.007869523018598557, 0.049102410674095154, -0.0451100654900074, 0.02490949258208275, -0.014203528873622417, 0.012958054430782795, -0.03562398627400398, 0.043881651014089584, 0.004177884664386511, -0.0009309069719165564, -0.03205817565321922, 0.01631912961602211, -0.024397652596235275, 0.03842203691601753, 0.06316091865301132, -0.059100329875946045, 0.020712412893772125, -0.056063417345285416, 0.0009890219662338495, -0.023749323561787605, -0.04811285436153412, -0.07895967364311218, 0.006982335355132818, 0.01948400028049946, 0.002301142318174243, -0.0021614530123770237, 0.05442553386092186, -0.0038451894652098417, 0.027485746890306473, 0.05568806827068329, -0.02644500881433487, -0.06326328217983246, -0.05244642496109009, -0.012975115329027176, -0.005920269526541233, 0.013981731608510017, 0.013572260737419128, -0.07861845195293427, 0.04787399619817734, -0.005011755507439375, -0.060601722449064255, -0.011456659995019436, -0.016148516908288002, 0.00927281379699707, -0.01943281665444374, -0.012139111757278442, 0.006372394040226936, 0.04906828701496124, 0.04180017486214638, 0.044154632836580276, -0.027758728712797165, 0.027366317808628082, 0.005864820443093777, -0.021650783717632294, 0.018938038498163223, -0.021360741928219795, 0.025694310665130615, -0.03429320454597473, -0.05879322439432144, -0.02052473835647106, -0.038251426070928574, -0.06623195111751556, 0.008163830265402794, 0.03787607699632645, 0.04162956029176712, 0.07923265546560287, -0.0424485020339489, -0.008031604811549187, 0.012574175372719765, 0.042175523936748505, 0.004269589204341173, -0.03053971938788891, 0.033184219151735306, 0.06404810398817062, -0.03410553187131882, 0.044359367340803146, 0.007639195304363966, 0.021087761968374252, -0.06237609684467316, -0.01154196634888649, -0.022418541833758354, 0.018494443967938423, -0.03859265148639679, -0.05466439202427864, 0.016830967739224434, 0.020592983812093735, 0.04268736019730568, -0.09233573079109192, 0.03681827709078789, 0.0018810078036040068, 0.012497399002313614, 0.004401814192533493, 0.021855520084500313, -0.06336565315723419, -0.03746660426259041, 0.004015802405774593, 0.01725750043988228, 0.016506804153323174, 0.04203903302550316, 0.04316507652401924, 0.010586533695459366, -0.05534684285521507, -0.03130747750401497, -0.017138071358203888, -0.019654612988233566, 0.012574175372719765, 0.02081478014588356, 0.034242019057273865, 0.018323831260204315, -0.0302155539393425, 0.02450001984834671, -0.02494361437857151, 0.01596084237098694, -0.03814905881881714, 0.014817735180258751, 0.011959968134760857, -0.005101327318698168, 0.05879322439432144, 0.045656029134988785, -0.02526777982711792, -0.02567725069820881, 0.013341933488845825, -0.0025570616126060486, -0.007421663496643305, 0.009997919201850891, 0.00595439225435257, -0.02405642718076706, 0.0415613166987896, 0.0164385586977005, 0.07629811763763428, -0.00821927934885025, -0.02931130677461624, -0.037193626165390015, 0.025643127039074898, 0.012565644457936287, 0.022742707282304764, 0.004922183696180582, -0.00609514769166708, -0.020541800186038017, 0.003228850197046995, 0.029737837612628937, 0.01472389791160822, -0.005506533198058605, 0.07582040131092072, -0.013572260737419128, -0.027690483257174492, -0.011482251808047295, 0.043711040169000626, 0.032877117395401, 0.02223086915910244, 0.022179683670401573, -0.04971661418676376, -0.06333152949810028, 0.03393491730093956, 0.03053971938788891, 0.06551537662744522, 0.0015109910164028406, -0.019774042069911957, 0.0012977247824892402, 0.05370895937085152, 0.037807829678058624, -0.06790395826101303, -0.035487495362758636, -0.0542549192905426, 0.009707877412438393, 0.02211144007742405, -0.015935249626636505, 0.005886147264391184, -0.03328658640384674, 0.004177884664386511, -0.0228450745344162, 0.0000719773379387334, -0.020917149260640144, 0.01987640932202339, -0.02264034003019333, -0.04316507652401924, 0.019654612988233566, -0.03770546242594719, -0.027281012386083603, 0.04405226558446884, -0.035487495362758636, 0.059714533388614655, -0.024960676208138466, 0.011567558161914349, 0.003399463137611747, -0.003220319515094161, 0.05480088293552399, -0.006824518088251352, 0.04661146178841591, -0.06715326011180878, -0.007310765329748392, -0.013145728036761284, 0.017138071358203888, -0.002056952565908432, 0.027059214189648628, -0.0302155539393425, 0.003510361537337303, 0.07274936884641647, -0.031768132001161575, -0.030846823006868362, -0.014331488870084286, 0.03477092087268829, 0.016575049608945847, -0.008304585702717304, 0.026496192440390587, 0.02069535106420517, -0.034037284553050995, 0.0033312179148197174, -0.06821106374263763, -0.00596292270347476, -0.0872855857014656, -0.023476343601942062, 0.02381756901741028, -0.057803671807050705, 0.0038579856045544147, -0.025899047031998634, 0.0062828222289681435, -0.02057592198252678, -0.022367358207702637, -0.01579876057803631, -0.03722774609923363, -0.07350005954504013, 0.018067913129925728, 0.0038451894652098417, 0.04896591976284981, 0.013410178013145924, 0.007370479870587587, 0.025660188868641853, -0.003352544503286481, 0.06155715510249138, -0.004708917811512947, -0.018050851300358772, -0.0409812331199646, 0.010475635528564453, 0.021684907376766205, 0.000219131019548513, -0.006103678606450558, 0.025574881583452225, -0.059748657047748566, 0.05186633765697479, -0.02576255612075329, -0.03349132463335991, -0.05834963172674179, -0.04210727661848068, -0.03442969545722008, 0.03702301159501076, 0.019756980240345, -0.019091589376330376, -0.012062336318194866, -0.032877117395401, 0.03992343321442604, 0.010902168229222298, -0.024755939841270447, -0.015508717857301235, 0.043676916509866714, -0.0004374622949399054, 0.02765635959804058, -0.027929341420531273, 0.08093878626823425, -0.04446173831820488, 0.011226332746446133, -0.010134410113096237, -0.0037620156072080135, -0.03777370974421501, 0.022572094574570656, 0.058213140815496445, 0.031734008342027664, 0.011994090862572193, 0.011780824512243271, 0.002812981139868498, 0.0026402354706078768, 0.013725812546908855, 0.028901835903525352, 0.04026465862989426, -0.03593108803033829, -0.04917065426707268, -0.06097707152366638, 0.06258083134889603, -0.007114560343325138, -0.0442228801548481, -0.03951396048069, -0.07274936884641647, 0.013614914380013943, -0.019910532981157303, -0.027826974168419838, -0.05166160315275192, -0.01725750043988228, 0.005975719075649977, 0.0021209323313087225, 0.01863093487918377, -0.004725978709757328, 0.04729391261935234, 0.007681848481297493, -0.01704423502087593, -0.02105363830924034, 0.016703007742762566, 0.001653879415243864, -0.029123632237315178, -0.023476343601942062, -0.012130580842494965, 0.038490284234285355, 0.025421330705285072, 0.07452373951673508, -0.027195705100893974, -0.03238233923912048, -0.06183013692498207, -0.0607382133603096, 0.07070200890302658, 0.0006765869911760092, 0.022486787289381027, 0.0137087507173419, -0.04493945464491844, -0.0359652116894722, -0.045621905475854874, 0.024107610806822777, -0.017999667674303055, -0.005114123225212097, 0.010799800045788288, 0.00047824945067986846, 0.05654113367199898, -0.049136530607938766, -0.002335264813154936, -0.030471473932266235, -0.026598559692502022, 0.05783779174089432, -0.006461965851485729, -0.004452998284250498, 0.003220319515094161, -0.0023416627664119005, 0.03231409564614296, 0.013478423468768597, 0.01854562759399414, 0.006133535876870155, 0.028492363169789314, -0.03552161902189255, -0.037841953337192535, -0.019006283953785896, 0.04316507652401924, -0.0005763518856838346, 0.007583745755255222, 0.0023544589057564735, 0.06357038766145706, -0.02235029824078083, -0.07056552171707153, 0.01619970053434372, 0.07336357235908508, 0.005634492728859186, -0.052173443138599396, 0.005549186374992132, 0.0032501767855137587, 0.021736091002821922, -0.009571386501193047, 0.006419312674552202, 0.014391203410923481, -0.011507843621075153, 0.01898922212421894, 0.013222504407167435, -0.010646248236298561, 0.06203487142920494, -0.04528068006038666, -0.014160875231027603, 0.03497565537691116, -0.006065290421247482, 0.04405226558446884, 0.000016511468857061118, 0.007003661710768938, 0.030966252088546753, -0.01127751637250185, -0.003318422008305788, 0.027400441467761993, -0.03149515017867088, 0.033457200974226, -0.011874661780893803, 0.06264907866716385, 0.03900212049484253, 0.008283259347081184, 0.016532395035028458, 0.04592900723218918, 0.010637718252837658, 0.0557221919298172, -0.011072780936956406, -0.027042154222726822, 0.05097915232181549, -0.033098913729190826, 0.03722774609923363, 0.00018740766972769052, -0.02709333784878254, 0.010322083719074726, 0.034924473613500595, 0.016208231449127197, -0.007626399397850037, -0.012326786294579506, -0.0020132327917963266, 0.033457200974226, -0.005587574560195208, -0.05046731233596802, 0.005259144585579634, 0.021241312846541405, -0.00582216726616025, -0.00016741396393626928, 0.0007640261319465935, 0.00531459366902709, 0.004508447367697954, 0.06582248210906982, 0.07998335361480713, -0.038285546004772186, 0.06247846409678459, 0.011456659995019436, 0.02316923998296261, 0.015278390608727932, -0.0159181896597147, 0.054289042949676514, -0.025864925235509872, -0.01927926391363144, 0.033064790070056915, -0.0028769609052687883, 0.023868752643465996, -0.025131288915872574, -0.0692688599228859, -0.0027170113753527403, -0.011141026392579079, -0.03224584832787514, -0.0005233019473962486, -0.0229986272752285, 0.10079813748598099, 0.020592983812093735, -0.09868253767490387, -0.08305438607931137, 0.01556843239814043, -0.013358994387090206, -0.05534684285521507, 0.049136530607938766, -0.053470101207494736, -0.045621905475854874, -0.003548749489709735, -0.058213140815496445, 0.01510777696967125, -0.055380966514348984, 0.00899130292236805, -0.0069993967190384865, 0.0281511377543211, -0.027281012386083603, -0.03342307731509209, -0.002048421883955598, 0.025847863405942917, -0.057155340909957886, -0.05875910446047783, 0.04081061854958534, -0.03746660426259041, -0.0011601680889725685, 0.022179683670401573, 0.0026551641058176756, -0.03620406985282898, 0.04920477792620659, 0.014374141581356525, -0.028560608625411987, 0.012966584414243698, 0.003365340642631054, -0.019296325743198395, 0.007297969423234463, 0.010083225555717945, 0.02154841646552086, -0.012360909022390842, 0.01202821359038353, 0.022537970915436745, 0.061659522354602814, 0.010270900093019009, -0.016054678708314896, 0.023783447220921516, 0.010108817368745804, -0.004241864662617445, -0.0218213964253664, 0.02441471442580223, -0.006112209055572748, -0.027809912338852882, 0.0071700094267725945, -0.08298614621162415, 0.019910532981157303, -0.03292829915881157, -0.026513254269957542, -0.004109639674425125, 0.03175107017159462, -0.03927510231733322, 0.04811285436153412, -0.07315883785486221, 0.017914360389113426, 0.026291456073522568, -0.0566093809902668, -0.06479880213737488, -0.061932504177093506, 0.0630926713347435, 0.013939078897237778, 0.020183512941002846, -0.037637218832969666, 0.015372227877378464, -0.08046106994152069, 0.05555157735943794, 0.08810453116893768, -0.0362723134458065, 0.027929341420531273, -0.03750072792172432, -0.03971869498491287, 0.03709125518798828, 0.003830260830000043, 0.05329948663711548, 0.044154632836580276, 0.016506804153323174, 0.008304585702717304, -0.029550164937973022, -0.056063417345285416, 0.029055386781692505, 0.04405226558446884, 0.024960676208138466, -0.02559194341301918, 0.005672880914062262, -0.010680370964109898, -0.05183221772313118, -0.00469612143933773, -0.01214764267206192, -0.0016133587341755629, 0.060431107878685, -0.00454683555290103, 0.030147310346364975, 0.017069825902581215, -0.016370313242077827, -0.005587574560195208, -0.03139278292655945, -0.04770338162779808, 0.009409304708242416, 0.032740626484155655, 0.04439349099993706, -0.03965045139193535, 0.0009074476547539234, 0.03130747750401497, 0.014775082468986511, -0.013606383465230465, 0.029635470360517502, 0.0015803024871274829, -0.037432484328746796, -0.06326328217983246, -0.0424485020339489, 0.018255585804581642, -0.0548350028693676, 0.029789023101329803, 0.004572427365928888, -0.04773750528693199, -0.008074258454144001, 0.03852440416812897, -0.0062828222289681435, -0.04159544035792351, 0.045826639980077744, -0.031563397496938705, 0.03801256790757179, -0.016796845942735672, 0.02502892166376114, -0.06558362394571304, 0.02647913061082363, 0.0533677339553833, -0.11253630369901657, -0.0306591484695673, -0.05029670149087906, -0.052787650376558304, -0.0018415536032989621, 0.04135658219456673, 0.0548350028693676, 0.02231617458164692, -0.005442553199827671, 0.017624318599700928, 0.017624318599700928, 0.016711538657546043, -0.020183512941002846, -0.02025175839662552, -0.045860763639211655, -0.038285546004772186, -0.015483126044273376, 0.03579459711909294, -0.05097915232181549, 0.06316091865301132, 0.001955650979653001, 0.003192594973370433, -0.029225999489426613, 0.029771961271762848, -0.02154841646552086, -0.009895551949739456, -0.019705796614289284, -0.02187258191406727, -0.0651741474866867, 0.12604884803295135, 0.024875368922948837, 0.03709125518798828, 0.002911083633080125, 0.03664766252040863, -0.02939661219716072, 0.04169780761003494, 0.0030497065745294094, -0.040640007704496384, 0.03219466656446457, 0.03753485158085823, 0.017709625884890556, -0.014834797009825706, 0.005685676820576191, 0.05125213414430618, 0.011431068181991577, 0.027263950556516647, 0.022367358207702637, -0.020439432933926582, -0.03248470649123192, 0.022742707282304764, 0.020644167438149452, 0.0020494882483035326, -0.0004691856447607279, -0.03859265148639679, -0.010936290957033634, -0.024312347173690796, 0.0337643027305603, 0.006026902701705694, 0.10154883563518524 ]
17,354
imodels.tree.cart_ccp
HSDecisionTreeCCPRegressorCV
null
class HSDecisionTreeCCPRegressorCV(HSTreeRegressor): def __init__(self, estimator_: BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs): super().__init__(estimator_=estimator_, reg_param=None) self.reg_param_list = np.array(reg_param_list) self.cv = cv self.scoring = scoring self.desired_complexity = desired_complexity def fit(self, X, y, sample_weight=None, *args, **kwargs): m = DecisionTreeCCPRegressor(self.estimator_, desired_complexity=self.desired_complexity) m.fit(X, y, sample_weight, *args, **kwargs) self.scores_ = [] for reg_param in self.reg_param_list: est = HSTreeRegressor(deepcopy(m.estimator_), reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(estimator_: sklearn.base.BaseEstimator, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], desired_complexity: int = 1, cv: int = 3, scoring=None, *args, **kwargs)
[ -0.024297093972563744, -0.0315176285803318, -0.01167018711566925, 0.0014249271480366588, -0.03140931949019432, -0.033575478941202164, -0.03855764865875244, -0.025163559243083, 0.04418966546654701, -0.020596571266651154, 0.027365820482373238, 0.025614840909838676, 0.03891867399215698, 0.013357986696064472, -0.014531323686242104, 0.01897195167839527, 0.030109623447060585, -0.05895565450191498, -0.0006639505736529827, 0.015063837170600891, -0.0028972390573471785, -0.008443511091172695, -0.024892788380384445, 0.014143219217658043, -0.047222286462783813, 0.014711836352944374, 0.003664420684799552, -0.024712275713682175, -0.018367230892181396, -0.015280453488230705, -0.06635670363903046, 0.008272023871541023, -0.10412009060382843, 0.009684540331363678, -0.023575041443109512, -0.021138111129403114, 0.011191826313734055, 0.06252981722354889, -0.012265880592167377, 0.04808875173330307, -0.03061506152153015, -0.015316556207835674, -0.07065291702747345, -0.051265787333250046, 0.011751418001949787, 0.012347111478447914, -0.003366573713719845, 0.10339803993701935, 0.03112049773335457, -0.10527537763118744, 0.027564385905861855, -0.049821678549051285, -0.025091353803873062, -0.014982606284320354, -0.0025993920862674713, 0.05722272768616676, 0.08383039385080338, 0.04585038498044014, 0.08079776912927628, -0.022997397929430008, 0.023665297776460648, -0.0000888464055606164, 0.007432636339217424, 0.008141151629388332, -0.03146347403526306, -0.04566987231373787, -0.06086909398436546, -0.02698674239218235, 0.011182800866663456, 0.04664464667439461, -0.00666996743530035, -0.04541715607047081, 0.027004795148968697, -0.005555297713726759, 0.04458679258823395, -0.002696417970582843, -0.003030367661267519, -0.07913704216480255, 0.013421166688203812, 0.012744241394102573, -0.028521105647087097, -0.013746090233325958, 0.009973361156880856, -0.037691183388233185, -0.0020928264129906893, -0.06657331436872482, 0.017085587605834007, -0.08657419681549072, -0.003779497928917408, 0.039568521082401276, -0.015966404229402542, 0.006069760769605637, -0.004208216909319162, -0.006904635112732649, 0.09249503165483475, 0.0454893596470356, -0.01431470736861229, 0.0015975430142134428, -0.06722316145896912, -0.036229025572538376, -0.0008275408181361854, 0.08498567342758179, 0.009747720323503017, 0.0831083357334137, 0.03128296136856079, -0.012446394190192223, -0.021318623796105385, 0.049460653215646744, 0.0113723399117589, -0.026156382635235786, -0.04967726767063141, 0.04408135637640953, 0.02001892775297165, -0.0006024632602930069, -0.025939766317605972, -0.0630713552236557, -0.0770430937409401, 0.002016108250245452, -0.05076034739613533, -0.040001753717660904, 0.021029803901910782, 0.04094042256474495, -0.00615550484508276, 0.04274555668234825, -0.05101306736469269, -0.0052484250627458096, 0.032835375517606735, 0.04707787558436394, -0.03166203945875168, -0.06834235042333603, -0.027203358709812164, -0.003104829229414463, -0.01427860464900732, -0.04288996756076813, 0.014964555390179157, -0.034405842423439026, 0.031210755929350853, -0.02426099218428135, 0.0087909996509552, -0.02796151489019394, 0.052962612360715866, -0.016562098637223244, -0.002978469943627715, 0.002324109198525548, 0.07588780671358109, -0.009165564551949501, 0.025813406333327293, 0.01786179468035698, -0.0354708693921566, 0.005636528600007296, -0.030163777992129326, -0.004458679351955652, 0.02528991736471653, 0.00666996743530035, 0.0360846146941185, 0.00019503901421558112, 0.027510231360793114, -0.05743934214115143, -0.04097652807831764, -0.0067557115107774734, -0.00900761503726244, 0.025813406333327293, -0.011047416366636753, 0.00444739731028676, 0.0436481237411499, 0.006209658458828926, 0.02880992740392685, -0.06512921303510666, -0.051157478243112564, -0.009973361156880856, -0.01843041181564331, -0.0758156031370163, -0.03743846341967583, 0.04505612701177597, -0.015063837170600891, 0.011534801684319973, 0.03482102230191231, 0.003104829229414463, 0.0037975492887198925, 0.018520668148994446, 0.02048826403915882, -0.004688833840191364, -0.008055407553911209, 0.002061236649751663, 0.018286000937223434, -0.010785671882331371, 0.02079513669013977, 0.015469992533326149, -0.014206399209797382, -0.01343019213527441, -0.016453789547085762, -0.022961296141147614, 0.007468739058822393, 0.018087435513734818, 0.07559898495674133, -0.03583189472556114, -0.0008506690501235425, 0.012969883158802986, 0.013412140309810638, 0.07021968811750412, -0.01830405183136463, 0.0056951954029500484, 0.05993042513728142, 0.0063224793411791325, -0.004900936968624592, 0.04808875173330307, 0.023791657760739326, 0.06433495134115219, -0.027311667799949646, -0.0012173367431387305, -0.007030994165688753, 0.030488701537251472, 0.015117991715669632, 0.04863029345870018, 0.019423235207796097, -0.04552546143531799, -0.049568962305784225, -0.04068770632147789, -0.007369456812739372, -0.0233403742313385, -0.0020070825703442097, 0.013800243847072124, -0.007572534494102001, 0.023665297776460648, 0.05148240178823471, -0.026697922497987747, -0.0031792910303920507, -0.025091353803873062, 0.016507944092154503, -0.03361158072948456, 0.025741200894117355, -0.07025578618049622, 0.0079561248421669, -0.03597630560398102, -0.01609276421368122, 0.024766428396105766, -0.015812966972589493, 0.006191607099026442, -0.03935190662741661, 0.00585314491763711, -0.034117020666599274, -0.013412140309810638, -0.00010598106746328995, -0.02832254208624363, 0.0029446238186210394, 0.013962706550955772, 0.04274555668234825, 0.026968691498041153, 0.049460653215646744, 0.024603966623544693, 0.007983202114701271, -0.07245805114507675, -0.05693390592932701, 0.004770064726471901, -0.05029101297259331, -0.06711485981941223, -0.0007829765672795475, 0.033557429909706116, 0.04372032731771469, -0.012013162486255169, -0.029459776356816292, 0.028827978298068047, 0.0032221630681306124, 0.07126666605472565, -0.019748158752918243, -0.04743890464305878, 0.0026151868514716625, -0.01391757745295763, -0.019332977011799812, 0.011543827131390572, 0.04859418794512749, 0.04386473819613457, -0.031373217701911926, 0.015469992533326149, -0.045453257858753204, 0.01167018711566925, -0.05476774647831917, 0.011236954480409622, 0.016661381348967552, 0.007333354093134403, 0.05462333559989929, -0.041698578745126724, -0.02056046761572361, -0.018484564498066902, 0.014404963701963425, -0.002973957220092416, 0.010298285633325577, -0.020163338631391525, 0.019748158752918243, 0.026788178831338882, -0.0570061095058918, 0.017338305711746216, 0.0067827883176505566, -0.009847002103924751, 0.09726058691740036, -0.0052213482558727264, 0.011688238009810448, -0.011155723594129086, 0.006223197095096111, 0.03431558609008789, 0.035922154784202576, -0.003172521712258458, -0.034423891454935074, -0.05906396359205246, -0.013637782074511051, 0.0038720108568668365, 0.043214891105890274, -0.010848850943148136, -0.009183615446090698, 0.07588780671358109, 0.017952051013708115, 0.04704177379608154, 0.013854398392140865, 0.012744241394102573, -0.025217711925506592, -0.03754677250981331, 0.0685589611530304, -0.04776382818818092, 0.06397392600774765, 0.027925413101911545, -0.05595913156867027, -0.020849289372563362, 0.0009053871617652476, -0.0285030547529459, -0.008818075992166996, -0.030037418007850647, -0.0035628818441182375, 0.0075048417784273624, 0.0101538747549057, -0.021986523643136024, -0.06336017698049545, -0.02844890020787716, 0.04588649049401283, 0.019369080662727356, 0.011282083578407764, 0.039135292172431946, 0.03899088129401207, 0.01770835742354393, -0.012374188750982285, -0.024730326607823372, 0.05014660209417343, 0.05985822156071663, -0.032059166580438614, 0.023358425125479698, -0.040290575474500656, -0.027004795148968697, 0.03112049773335457, 0.045020025223493576, -0.01711266301572323, 0.022221190854907036, -0.009422795847058296, -0.04159027338027954, 0.055995237082242966, 0.04707787558436394, 0.039388008415699005, 0.03473076596856117, 0.029387570917606354, 0.01840333454310894, 0.07245805114507675, -0.0582336001098156, 0.06505700200796127, -0.03711353987455368, 0.0025587764102965593, 0.009296436794102192, 0.002104108454659581, -0.04967726767063141, -0.025723149999976158, 0.023936068639159203, 0.05628405511379242, -0.07123056054115295, 0.0022699551191180944, -0.03536256030201912, -0.0007440533954650164, -0.008944435976445675, -0.003982575610280037, 0.013150395825505257, -0.06736757606267929, 0.007035506889224052, -0.0022067755926400423, -0.04736669734120369, 0.067873015999794, -0.003010059706866741, -0.0054154000245034695, -0.02765464223921299, -0.04032667726278305, -0.05512877181172371, 0.009892130270600319, 0.02315985970199108, 0.10072644054889679, -0.013033062219619751, 0.016255225986242294, 0.010334388352930546, 0.00713930232450366, -0.03906308487057686, -0.04873859882354736, 0.01626425050199032, 0.04408135637640953, 0.01963984966278076, -0.060255348682403564, -0.018060358241200447, -0.009504026733338833, -0.04133755341172218, -0.006069760769605637, -0.013312858529388905, 0.028033720329403877, -0.022907141596078873, 0.017618101090192795, 0.027871258556842804, 0.015993481501936913, 0.02861136384308338, -0.059280578047037125, 0.006363094784319401, 0.06653721630573273, 0.01994672231376171, -0.051265787333250046, -0.07408267259597778, 0.026968691498041153, 0.030578957870602608, 0.017852768301963806, 0.0022485191002488136, 0.03081362508237362, 0.016417687758803368, -0.03148152679204941, 0.04094042256474495, 0.05422620475292206, 0.006169043015688658, -0.0069136605598032475, -0.017690306529402733, -0.0033733427990227938, -0.006114888936281204, -0.07971468567848206, 0.0016584662953391671, -0.1073693335056305, -0.0019145695259794593, -0.0239541195333004, -0.009030179120600224, -0.029513929039239883, 0.07531016319990158, -0.009973361156880856, 0.03337691351771355, -0.016056660562753677, 0.01583101972937584, 0.039929550141096115, -0.03743846341967583, 0.033810146152973175, 0.011832648888230324, 0.0012387727620080113, -0.028485003858804703, -0.09574427455663681, -0.05289040505886078, 0.04704177379608154, 0.05299871414899826, -0.0012071828823536634, 0.04949675500392914, -0.0036779590882360935, 0.0006458992720581591, 0.0012207214022055268, -0.02886408194899559, 0.027744898572564125, -0.02438735030591488, 0.009296436794102192, 0.009395718574523926, 0.06545413285493851, 0.008967000059783459, -0.040832117199897766, -0.027817104011774063, 0.09754940122365952, -0.0004456422757357359, 0.011291109025478363, -0.018899746239185333, 0.029676392674446106, -0.024603966623544693, -0.02825033664703369, -0.038593750447034836, -0.051446299999952316, 0.05317922681570053, -0.01776251196861267, -0.04043498635292053, -0.00343426619656384, -0.00804638210684061, 0.04094042256474495, -0.010722491890192032, 0.07025578618049622, 0.01778958924114704, 0.0023895453196018934, -0.02547043189406395, -0.01200413703918457, -0.03476686775684357, -0.026463255286216736, 0.0038088313303887844, -0.04758331552147865, -0.03173424303531647, -0.03953241929411888, 0.0582336001098156, -0.045020025223493576, -0.00785232987254858, 0.006051709409803152, 0.016462815925478935, 0.012960856780409813, -0.014729888178408146, -0.01012679748237133, 0.03348522260785103, -0.002486571203917265, -0.024603966623544693, 0.05065204203128815, -0.03207721933722496, 0.012229777872562408, 0.046789053827524185, -0.02976664900779724, 0.03408091887831688, 0.0023872887250036, -0.03740236163139343, 0.03207721933722496, 0.019549593329429626, 0.029513929039239883, -0.0013380551245063543, -0.0029446238186210394, 0.06263812631368637, 0.006972327362746, -0.01776251196861267, 0.016417687758803368, 0.015605377964675426, 0.04841367527842522, -0.01400783471763134, 0.054117895662784576, 0.05220445618033409, -0.05202394351363182, -0.007193456403911114, 0.05231276527047157, 0.046716850250959396, 0.019495440647006035, -0.04826926440000534, -0.02243780717253685, 0.05462333559989929, -0.00913848727941513, 0.0009240026120096445, 0.04353981465101242, -0.02541627734899521, -0.03711353987455368, -0.03844933956861496, -0.013195524923503399, -0.0014903631526976824, 0.0630352571606636, 0.0101629002019763, -0.02164354920387268, 0.029315365478396416, 0.03202306479215622, 0.004339089151471853, -0.07415487617254257, -0.0032582655549049377, 0.02480253204703331, -0.012608855962753296, -0.02243780717253685, 0.040290575474500656, 0.036716412752866745, 0.048233162611722946, -0.022275345399975777, 0.002680622972548008, 0.013484345749020576, 0.015506095252931118, 0.007865868508815765, -0.012365163303911686, 0.025307968258857727, -0.030470650643110275, -0.047944340854883194, 0.011733366176486015, -0.04837757349014282, 0.05440671741962433, -0.06736757606267929, 0.01085787732154131, 0.03343106806278229, 0.03122880682349205, -0.015993481501936913, 0.011904854327440262, -0.06646500527858734, 0.011742392554879189, 0.017058510333299637, -0.0024459557607769966, -0.035272303968667984, 0.02066877670586109, -0.006548121105879545, -0.04112093523144722, 0.015713686123490334, -0.07574339210987091, 0.00900761503726244, 0.02048826403915882, -0.013195524923503399, 0.03171619400382042, -0.032221630215644836, 0.004761039279401302, 0.013601679354906082, 0.04743890464305878, -0.010397568345069885, -0.05747544392943382, 0.006994891446083784, -0.004059293773025274, -0.0940113440155983, -0.00005806747140013613, 0.019964775070548058, 0.01082177460193634, -0.04119314253330231, -0.009449873119592667, 0.02978469990193844, 0.02438735030591488, 0.011083518154919147, -0.03743846341967583, 0.003319188952445984, -0.0113723399117589, 0.02066877670586109, -0.004733962006866932, 0.019567646086215973, -0.0036238052416592836, 0.062421511858701706, -0.015217273496091366, -0.002144724130630493, 0.020596571266651154, -0.07072512060403824, -0.033755991607904434, 0.023755554109811783, -0.018204769119620323, 0.0010323106544092298, 0.030416496098041534, -0.01958569698035717, 0.03346717357635498, -0.062132690101861954, -0.007234071847051382, 0.006728634238243103, -0.09112312644720078, -0.02613832987844944, 0.010415619239211082, 0.03834103047847748, -0.041806887835264206, -0.010596132837235928, -0.037691183388233185, 0.01843041181564331, 0.0007778996368870139, 0.020145287737250328, 0.032709017395973206, -0.0044722179882228374, -0.04216791316866875, -0.0703279972076416, 0.0010289259953424335, -0.03231188654899597, -0.030831677839159966, -0.04592259228229523, -0.04444238170981407, -0.04494781792163849, 0.0018852361245080829, 0.03225773200392723, -0.03001936711370945, 0.0002916418598033488, 0.04039888456463814, -0.025939766317605972, -0.01222075242549181, 0.00480616744607687, -0.01711266301572323, 0.04209570959210396, 0.004986680578440428, 0.050904758274555206, 0.014937478117644787, -0.039568521082401276, -0.003833651775494218, 0.11552853137254715, 0.026824280619621277, 0.009016640484333038, 0.010560030117630959, 0.031264908611774445, 0.0017340561607852578, -0.06581515818834305, 0.03371988981962204, -0.05148240178823471, -0.02184211276471615, -0.05877514183521271, 0.004257858265191317, 0.01680579036474228, -0.023809708654880524, -0.02176990732550621, -0.01670650951564312, -0.017266100272536278, 0.014738913625478745, 0.13531279563903809, 0.08787389099597931, -0.010930081829428673, -0.002439186442643404, 0.05834190919995308, -0.012789369560778141, -0.04079601168632507, 0.02922510914504528, -0.021210316568613052, -0.06866727024316788, -0.004724936559796333, 0.0035673948004841805, 0.01958569698035717, -0.029134850949048996, -0.004309755750000477, 0.051085274666547775, -0.05682559683918953, -0.0612662248313427, 0.053648561239242554, -0.021806010976433754, -0.017338305711746216, 0.0011377980699762702, -0.05238496884703636, 0.04155416786670685, -0.02431514672935009, 0.05025491118431091, -0.005478579550981522, -0.015108966268599033, 0.07123056054115295, -0.07668206095695496, 0.004381961189210415, 0.04014616459608078, -0.009129461832344532, -0.010830800049006939, -0.0025610330048948526, -0.0036982668098062277, -0.01364680752158165, -0.021029803901910782, 0.011056441813707352, -0.014964555390179157, 0.025795355439186096, 0.009242282249033451, 0.06076078861951828, 0.037257950752973557, 0.007780124433338642, 0.005672631319612265, 0.07920925319194794, -0.0491357296705246, 0.06314356625080109, -0.021372778341174126, 0.0381966196000576, 0.010271208360791206, -0.02279883436858654, -0.08238628506660461, 0.007793663069605827, -0.0309219341725111, 0.013150395825505257, -0.02899044193327427, 0.00991920754313469, 0.05083255469799042, -0.03642759099602699, 0.0015614402946084738, 0.011173775419592857, -0.011056441813707352, 0.04834147170186043, 0.033755991607904434, 0.00981992483139038, 0.029676392674446106, 0.07195261120796204, -0.049027420580387115, 0.007766586262732744, -0.016544047743082047, 0.05747544392943382, 0.008416433818638325, 0.04895521700382233, -0.011119620874524117, -0.017356356605887413, -0.016905073076486588, -0.0351639986038208, -0.03909918665885925, 0.008195305243134499, -0.032709017395973206, 0.00048484752187505364, -0.0003342317068018019, 0.04743890464305878, 0.01868312992155552, 0.04418966546654701, 0.02534407190978527 ]
17,373
imodels.tree.cart_ccp
fit
null
def fit(self, X, y, sample_weight=None, *args, **kwargs): m = DecisionTreeCCPRegressor(self.estimator_, desired_complexity=self.desired_complexity) m.fit(X, y, sample_weight, *args, **kwargs) self.scores_ = [] for reg_param in self.reg_param_list: est = HSTreeRegressor(deepcopy(m.estimator_), reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(self, X, y, sample_weight=None, *args, **kwargs)
[ -0.014697188511490822, -0.0004299276333767921, 0.040928877890110016, -0.005850969348102808, -0.027347933501005173, -0.009018306620419025, -0.018762169405817986, -0.006878842134028673, 0.060909613966941833, -0.0012371684424579144, 0.03183150663971901, 0.013162355870008469, 0.04781237244606018, 0.01044616661965847, -0.01583203487098217, 0.004269626457244158, 0.0025999140925705433, -0.065225750207901, -0.05339358374476433, 0.010278729721903801, -0.020148171111941338, -0.03038039058446884, -0.022920172661542892, 0.0686860978603363, -0.030473411083221436, 0.006818379275500774, 0.00871133990585804, -0.01078103855252266, -0.0364639088511467, -0.002604565117508173, -0.015087872743606567, 0.00539051927626133, -0.0916062742471695, 0.015869243070483208, -0.02310621179640293, -0.028873464092612267, -0.006553271785378456, 0.03746853023767471, -0.0021115581039339304, -0.0006185842212289572, -0.028873464092612267, -0.04089166969060898, -0.021301621571183205, -0.0031836156267672777, -0.004067307338118553, 0.03717086464166641, -0.006353278178721666, 0.11794959008693695, 0.013953027315437794, -0.0873645544052124, -0.0026813067961484194, -0.03434304893016815, -0.047440290451049805, -0.019850505515933037, 0.02329225279390812, 0.017320357263088226, 0.07114183157682419, 0.06280722469091415, 0.10180128365755081, -0.04122654348611832, 0.04524501413106918, 0.01076243445277214, -0.020631875842809677, 0.004467294085770845, -0.04383111000061035, -0.06537458300590515, -0.04226836934685707, -0.021413246169686317, 0.005111458711326122, 0.05242617428302765, 0.004492874722927809, -0.022417863830924034, 0.03456629812717438, 0.000327896123053506, 0.02156207710504532, 0.0017534303478896618, -0.02234344743192196, -0.02725491300225258, -0.0232736486941576, 0.02390618622303009, -0.025747986510396004, 0.030510619282722473, -0.016548290848731995, -0.046138010919094086, -0.0554400272667408, -0.04353344440460205, 0.009395037777721882, -0.050119273364543915, 0.028873464092612267, 0.021971367299556732, -0.0034743037540465593, 0.023831769824028015, 0.049300696700811386, 0.016855256631970406, 0.08453673869371414, 0.023069005459547043, -0.040296342223882675, 0.02801767736673355, -0.03739411383867264, 0.00785090308636427, -0.03921730816364288, 0.039812635630369186, 0.01836218312382698, 0.059123627841472626, 0.021506264805793762, 0.01544134970754385, -0.003951032180339098, 0.03717086464166641, -0.021245809271931648, 0.0001384401839459315, -0.05097505822777748, 0.017143618315458298, 0.04576592892408371, -0.013534436002373695, -0.03685459494590759, -0.039328932762145996, -0.10053621232509613, 0.007976480759680271, -0.033170994371175766, -0.014753000810742378, 0.007195110898464918, 0.05640743672847748, 0.0012848412152379751, 0.008302050642669201, -0.0491146557033062, -0.00010769992513814941, 0.039514973759651184, 0.03573835268616676, -0.02677120827138424, -0.07571842521429062, -0.022752735763788223, -0.00021438245312310755, -0.00007717768312431872, -0.03464071452617645, -0.014427429996430874, -0.041561417281627655, 0.013953027315437794, -0.04818445444107056, 0.024799179285764694, -0.052500590682029724, 0.09964321553707123, 0.00538121722638607, 0.030138539150357246, 0.007050929591059685, 0.06794194132089615, 0.003771968185901642, 0.04312415421009064, 0.026827020570635796, -0.042379993945360184, -0.00267200474627316, -0.0235713142901659, 0.011088005267083645, 0.04383111000061035, -0.03248264640569687, -0.0061858417466282845, 0.021301621571183205, -0.01630643755197525, -0.008604366332292557, -0.0218411386013031, -0.02388758212327957, 0.008836916647851467, 0.002349922200664878, -0.0009900835575535893, 0.04118933528661728, 0.051049474626779556, 0.06983955204486847, 0.021748118102550507, -0.023534106090664864, -0.048035621643066406, -0.021952763199806213, 0.012185643427073956, -0.09607124328613281, -0.002051095012575388, 0.01932959258556366, 0.012213549576699734, -0.005590512882918119, 0.026213087141513824, -0.019831903278827667, 0.0008319492335431278, 0.05927245691418648, 0.043942734599113464, -0.010027575306594372, 0.009953158907592297, -0.01599016971886158, 0.002029002644121647, -0.045542679727077484, 0.023720145225524902, 0.022845756262540817, -0.025282884016633034, 0.010976381599903107, 0.011450784280896187, -0.007860205136239529, 0.00965549424290657, -0.01179495919495821, 0.0354778952896595, -0.023980602622032166, 0.007864856161177158, -0.014641376212239265, -0.002294110134243965, 0.07400685548782349, -0.015506464056670666, -0.06336534768342972, 0.04334740340709686, -0.018157539889216423, -0.005623070057481527, 0.05655626952648163, -0.01964586228132248, 0.09748514741659164, -0.022380655631422997, -0.026213087141513824, 0.029561813920736313, 0.006776520051062107, 0.02092953957617283, 0.015004155226051807, 0.03170127794146538, 0.019385404884815216, -0.02264111116528511, -0.04844490811228752, -0.03722667694091797, -0.04197070375084877, 0.0030557129066437483, 0.004878908395767212, -0.024296870455145836, 0.02595262974500656, 0.05733763799071312, -0.04952394217252731, 0.029022296890616417, -0.0294501893222332, -0.004064981825649738, -0.03718946874141693, 0.05402611941099167, -0.0560353547334671, 0.02535730041563511, -0.0439799427986145, -0.02677120827138424, -0.00918574258685112, 0.0001643840951146558, 0.022920172661542892, -0.03519883751869202, 0.03153384104371071, -0.037301093339920044, 0.009115977212786674, 0.0026859575882554054, -0.0519796758890152, -0.011813563294708729, 0.044091563671827316, 0.05056576803326607, 0.0073392922058701515, 0.06347697228193283, 0.013069335371255875, 0.008855520747601986, 0.0013453043065965176, -0.07873228192329407, -0.04037075862288475, -0.07199762016534805, -0.031236177310347557, 0.03374772146344185, 0.02087372913956642, 0.010232219472527504, -0.0046463580802083015, -0.03925451636314392, 0.06742102652788162, -0.021971367299556732, 0.057858552783727646, -0.040631216019392014, -0.004318461753427982, 0.007916017435491085, -0.0215434730052948, -0.02392479032278061, 0.03233381360769272, -0.05004485696554184, 0.036501117050647736, 0.016706423833966255, 0.0344918817281723, -0.04610080271959305, 0.023720145225524902, -0.01162752229720354, -0.016529686748981476, 0.03929172456264496, 0.016604101285338402, 0.058044593781232834, -0.02805488556623459, 0.0402219258248806, -0.022064385935664177, -0.02310621179640293, 0.00832065474241972, 0.01802731119096279, 0.03354307636618614, 0.008734595030546188, 0.023868978023529053, -0.049970440566539764, 0.014529752545058727, 0.007906715385615826, 0.03054782748222351, 0.06291884928941727, -0.023478293791413307, 0.000424985948484391, -0.01979469507932663, 0.014222785830497742, 0.039180099964141846, -0.019757486879825592, -0.005795157048851252, -0.030938511714339256, -0.039366140961647034, 0.028222322463989258, 0.0071579026989638805, 0.07821136713027954, -0.041896287351846695, -0.03131059184670448, 0.05730042979121208, 0.04357065260410309, 0.08141126483678818, 0.014911134727299213, -0.005553304683417082, -0.03536627069115639, -0.049970440566539764, 0.07836019992828369, -0.008446232415735722, 0.043310195207595825, 0.028445571660995483, -0.028706027194857597, -0.05927245691418648, 0.012715858407318592, -0.02074350044131279, 0.001041825977154076, 0.04197070375084877, -0.02342248149216175, 0.04286370053887367, -0.013878610916435719, -0.050268106162548065, -0.033208202570676804, 0.0022069038823246956, 0.025599153712391853, -0.000531087105628103, -0.006264909170567989, 0.024296870455145836, -0.0021150463726371527, 0.0006220724317245185, -0.012911200523376465, 0.01585063897073269, -0.0069672116078436375, 0.01584133692085743, -0.03311518579721451, 0.023013193160295486, -0.03527325391769409, 0.0014604168245568871, 0.03689180314540863, 0.05127272382378578, 0.00831600371748209, -0.013320489786565304, -0.0035905789118260145, 0.023720145225524902, 0.0528726689517498, 0.039031267166137695, 0.008785756304860115, 0.02407362312078476, 0.007032325491309166, 0.03862197697162628, 0.01981329917907715, -0.038101065903902054, 0.0377475880086422, -0.020817916840314865, 0.0022685297299176455, 0.021338829770684242, -0.009236903861165047, -0.015952961519360542, -0.013022825121879578, 0.04498456045985222, 0.04509618505835533, -0.05715159699320793, 0.026827020570635796, -0.019683070480823517, -0.04055679962038994, 0.024780575186014175, -0.01853892207145691, 0.019515633583068848, -0.02931996062397957, -0.01821335032582283, 0.019124949350953102, -0.03406399115920067, 0.03425002843141556, -0.001759244129061699, -0.00009272948955185711, -0.039366140961647034, -0.07977410405874252, -0.019701674580574036, 0.012148435227572918, -0.018408693373203278, 0.04736587405204773, -0.009860139340162277, 0.042193952947854996, 0.0025510783307254314, -0.011320555582642555, -0.04260324314236641, -0.04167304188013077, 0.009553172625601292, 0.06001662090420723, 0.032519854605197906, -0.09391317516565323, 0.009041561745107174, -0.01786917634308338, -0.04290090873837471, -0.05480749160051346, -0.00895319227129221, 0.008209031075239182, -0.005534700583666563, -0.008971796371042728, 0.03211056441068649, 0.010548488236963749, 0.03797083720564842, -0.06258397549390793, 0.017776155844330788, 0.053430791944265366, 0.007506728637963533, -0.04796120524406433, -0.045356638729572296, -0.003516162745654583, 0.046621713787317276, 0.038101065903902054, 0.002509219339117408, 0.015143685042858124, 0.009534568525850773, -0.021599285304546356, 0.033357035368680954, 0.05618418753147125, 0.018650546669960022, 0.0038045253604650497, -0.0591980442404747, 0.016269229352474213, -0.004818445537239313, -0.09272251278162003, -0.005697485990822315, -0.09026677906513214, 0.0259898379445076, -0.014873926527798176, -0.028408363461494446, -0.0259898379445076, 0.07460218667984009, -0.013990235514938831, 0.00005145178874954581, -0.03558951988816261, -0.024761971086263657, 0.041896287351846695, -0.02963622845709324, -0.012548422440886497, 0.0034836058039218187, -0.0006988141103647649, -0.01432510744780302, -0.13476763665676117, -0.0264363344758749, 0.055514443665742874, 0.03551510348916054, 0.024985220283269882, 0.0354778952896595, -0.0125019121915102, -0.003832431510090828, 0.002345271175727248, -0.03361749276518822, 0.05618418753147125, -0.03073386661708355, 0.01852031797170639, -0.00336267938837409, 0.07203482836484909, -0.029487397521734238, -0.04844490811228752, 0.011953093111515045, 0.03266868740320206, -0.0011906583094969392, 0.03689180314540863, -0.0023755028378218412, 0.021301621571183205, 0.001052290783263743, -0.05194246768951416, -0.03929172456264496, -0.0488169901072979, 0.04859374091029167, -0.00870203785598278, -0.02422245405614376, 0.010334542021155357, -0.023645728826522827, 0.02612006664276123, 0.006046311464160681, 0.08825754374265671, 0.015413443557918072, 0.010092689655721188, -0.05127272382378578, -0.012092622928321362, -0.03988705202937126, 0.002441779710352421, 0.011339159682393074, -0.02308760955929756, -0.000007630561412952375, 0.02122720517218113, 0.013562342151999474, -0.06671407073736191, -0.01679014228284359, 0.01869705691933632, 0.010836850851774216, 0.005162619985640049, 0.013897215016186237, -0.0034394210670143366, 0.0235713142901659, -0.0062928153201937675, -0.012920502573251724, -0.00009345621219836175, 0.0020010967273265123, 0.01663200743496418, 0.04498456045985222, -0.05134714022278786, 0.056295812129974365, -0.0156645979732275, -0.030045518651604652, 0.01981329917907715, 0.02249228022992611, 0.02535730041563511, 0.014464638195931911, 0.0075206817127764225, 0.0927969291806221, -0.005832365248352289, -0.007646258920431137, 0.03376632556319237, 0.018399391323328018, 0.05555165186524391, -0.013125147670507431, 0.07828578352928162, 0.04089166969060898, -0.036966219544410706, -0.012204247526824474, 0.013357697986066341, 0.03212916851043701, 0.041114918887615204, -0.044128771871328354, -0.036501117050647736, 0.030175745487213135, -0.024501515552401543, -0.025413112714886665, 0.0516820102930069, -0.05305870994925499, -0.008674131706357002, -0.01884588785469532, -0.026994455605745316, -0.015236705541610718, 0.04866815730929375, 0.0009034585091285408, -0.004006844479590654, 0.019571445882320404, 0.015069269575178623, -0.02388758212327957, -0.0462496317923069, 0.00029853664455004036, 0.005371915176510811, -0.05957012251019478, -0.03519883751869202, 0.09949438273906708, 0.05570048466324806, 0.0035510454326868057, -0.012167039327323437, 0.03813827410340309, 0.015218101441860199, 0.03038039058446884, 0.0030185049399733543, -0.015041363425552845, 0.03054782748222351, -0.0376545675098896, 0.008990400470793247, -0.005706788040697575, -0.07783928513526917, 0.043161362409591675, -0.07947643846273422, -0.01851101592183113, 0.027292121201753616, 0.049003031104803085, -0.030789678916335106, 0.03929172456264496, -0.06954188644886017, 0.04859374091029167, 0.012529818341135979, -0.02452011965215206, -0.06712336093187332, 0.03813827410340309, -0.029822269454598427, -0.02089233323931694, 0.026250295341014862, -0.05886317044496536, 0.01803661324083805, 0.020297003909945488, 0.0031464076600968838, 0.007720674853771925, -0.038733601570129395, -0.005209130235016346, 0.006911399308592081, 0.05990499630570412, -0.0038045253604650497, -0.04468689486384392, 0.0068741911090910435, -0.008743897080421448, -0.09532707929611206, -0.029226940125226974, 0.0006784659344702959, -0.026975851505994797, -0.021264413371682167, 0.008646225556731224, 0.03694761544466019, 0.009218299761414528, -0.0072044129483401775, -0.0014325107913464308, -0.027143288403749466, 0.0025650314055383205, 0.004357995465397835, -0.011125213466584682, 0.013590248301625252, -0.02122720517218113, 0.05458424240350723, -0.001881333184428513, -0.03404538705945015, 0.00672535877674818, -0.029022296890616417, -0.040594007819890976, 0.036501117050647736, -0.02438989095389843, 0.013525133952498436, -0.0011772866128012538, -0.000616840086877346, 0.07062092423439026, -0.05901200324296951, 0.01629713550209999, -0.039031267166137695, -0.08066710084676743, -0.0015755293425172567, 0.04018471762537956, 0.00490681454539299, -0.043607860803604126, -0.00558586185798049, -0.004462643060833216, 0.04926348850131035, -0.029022296890616417, 0.014371617697179317, -0.007050929591059685, -0.005748647265136242, -0.07969968765974045, -0.06109565496444702, 0.009241554886102676, 0.015478557907044888, -0.02567357011139393, -0.05335637554526329, -0.01612969860434532, -0.04766353964805603, 0.014604168012738228, 0.03198033943772316, -0.03441746532917023, -0.00008313678699778393, -0.027906054630875587, -0.035887185484170914, -0.004374274052679539, 0.05759809538722038, 0.012706556357443333, 0.018948210403323174, 0.04435202106833458, 0.044872935861349106, -0.01743198186159134, -0.029022296890616417, 0.028073489665985107, 0.11802400648593903, 0.01481811422854662, -0.03145942464470863, 0.034770943224430084, -0.012287965975701809, -0.03519883751869202, -0.050602976232767105, 0.004990532528609037, -0.06842564791440964, -0.013887912966310978, -0.047737956047058105, 0.025282884016633034, -0.013301885686814785, -0.014148369431495667, -0.04159862548112869, -0.030510619282722473, -0.03531046211719513, 0.015794826671481133, 0.12420054525136948, 0.048072829842567444, 0.023868978023529053, 0.00668815104290843, 0.07486264407634735, 0.01677153818309307, -0.049449529498815536, 0.027943262830376625, -0.0032859379425644875, -0.027050267904996872, 0.015078571625053883, 0.001003455137833953, 0.01742267981171608, -0.055030737072229385, -0.0051858751103281975, 0.06823960691690445, -0.04159862548112869, -0.07017442584037781, 0.0798485204577446, -0.012604234740138054, -0.03374772146344185, 0.02249228022992611, -0.05004485696554184, 0.03266868740320206, -0.012948408722877502, 0.016213417053222656, -0.04450085386633873, 0.03731969743967056, 0.05640743672847748, -0.06563504040241241, 0.001381349633447826, 0.015887847170233727, -0.0485193245112896, -0.0027859543915838003, 0.00673466082662344, 0.003881267039105296, -0.007971829734742641, 0.005297499243170023, 0.03138500824570656, -0.0027115382254123688, 0.035701144486665726, 0.004813794512301683, 0.013878610916435719, 0.010157804004848003, 0.02230623923242092, -0.013180959038436413, 0.08855520933866501, -0.04643567278981209, 0.06031428650021553, -0.060872405767440796, 0.049970440566539764, -0.003427793737500906, -0.021599285304546356, -0.033208202570676804, 0.025859609246253967, -0.02535730041563511, -0.023478293791413307, -0.01886449195444584, 0.055663276463747025, 0.03529185801744461, -0.05871433764696121, 0.02468755654990673, 0.02390618622303009, 0.018938908353447914, 0.024036414921283722, 0.010371750220656395, -0.009627589024603367, 0.009850837290287018, 0.05696555972099304, -0.0516820102930069, -0.0068323323503136635, -0.009488058276474476, 0.04717983677983284, 0.022678319364786148, 0.029729248955845833, 0.0138600068166852, -0.04889140650629997, -0.013339093886315823, 0.0012592606944963336, -0.01289259735494852, -0.009250856935977936, -0.06161656603217125, 0.005623070057481527, -0.0034836058039218187, 0.009953158907592297, 0.006325372029095888, 0.07370918989181519, 0.04200791195034981 ]
17,381
imodels.tree.gosdt.pygosdt_shrinkage
HSOptimalTreeClassifier
null
class HSOptimalTreeClassifier(BaseEstimator): def __init__(self, estimator_: OptimalTreeClassifier, reg_param: float = 1, shrinkage_scheme_: str = 'node_based'): """ Params ------ reg_param: float Higher is more regularization (can be arbitrarily large, should not be < 0) shrinkage_scheme: str Experimental: Used to experiment with different forms of shrinkage. options are: (i) node_based shrinks based on number of samples in parent node (ii) leaf_based only shrinks leaf nodes based on number of leaf samples (iii) constant shrinks every node by a constant lambda """ super().__init__() self.reg_param = reg_param # print('est', estimator_) self.estimator_ = estimator_ # self.tree_ = estimator_.tree_ self.shrinkage_scheme_ = shrinkage_scheme_ def _calc_probs(self, node): lbls = np.array([float(l) for l in node["labels"]]) if "labels" in node else np.array( [float(node['prediction'])]) node['probs'] = np.mean(lbls == 1) node['n_obs'] = len(node.get('labels', [])) if "prediction" in node: node['prediction'] = np.round(node['probs']) return self._calc_probs(node['true']) self._calc_probs(node['false']) def impute_nodes(self, X, y): """ Returns --- the leaf by which this sample would be classified """ source_node = self.estimator_.tree_.source for i in range(len(y)): sample, label = X[i, ...], y[i] _add_label(source_node, label) nodes = [source_node] while len(nodes) > 0: node = nodes.pop() if "prediction" in node: continue else: value = sample[node["feature"]] reference = node["reference"] relation = node["relation"] if relation == "==": is_true = value == reference elif relation == ">=": is_true = value >= reference elif relation == "<=": is_true = value <= reference elif relation == "<": is_true = value < reference elif relation == ">": is_true = value > reference else: raise "Unsupported relational operator {}".format(node["relation"]) next_node = node['true'] if is_true else node['false'] _add_label(next_node, label) nodes.append(next_node) self._calc_probs(source_node) self.estimator_.tree_.source = source_node # def fit(self, *args, **kwargs): # X = kwargs['X'] if "X" in kwargs else args[0] # y = kwargs['y'] if "y" in kwargs else args[1] def shrink_tree(self): root = self.estimator_.tree_.source shrink_node(root, self.reg_param, None, None, 0, self.shrinkage_scheme_, 0) def predict_proba(self, X): probs = [] for i in range(X.shape[0]): sample = X[i, ...] node = self.estimator_.tree_.__find_leaf__(sample) probs.append([1 - node["probs"], node["probs"]]) return np.array(probs) def fit(self, *args, **kwargs): X = kwargs['X'] if "X" in kwargs else args[0] y = kwargs['y'] if "y" in kwargs else args[1] if not hasattr(self.estimator_, "tree_"): self.estimator_.fit(X, y) self.impute_nodes(X, y) self.shrink_tree() def predict(self, X): return self.estimator_.predict(X) def score(self, X, y, weight=None): self.estimator_.score(X, y, weight) @property def complexity_(self): return self.estimator_.complexity_
(estimator_: imodels.tree.gosdt.pygosdt.OptimalTreeClassifier, reg_param: float = 1, shrinkage_scheme_: str = 'node_based')
[ 0.04913114011287689, -0.047085586935281754, 0.013267680071294308, -0.012898344546556473, -0.01971685327589512, -0.01914864405989647, -0.04973722994327545, -0.021573001518845558, -0.006463377736508846, 0.009072404354810715, 0.009498560801148415, 0.03140302002429962, 0.0327477790415287, 0.022027568891644478, -0.03761543706059456, -0.0011370099382475019, 0.05076000466942787, 0.0005761994398199022, 0.03252049535512924, 0.07030639797449112, -0.023220809176564217, -0.014299927279353142, -0.03253943473100662, 0.03324022889137268, -0.044661227613687515, -0.01720726303756237, -0.0036791532766073942, -0.04621433466672897, 0.00795492623001337, -0.023012464866042137, -0.07083672285079956, -0.03844881057739258, -0.06280604004859924, -0.01878877729177475, 0.012140732258558273, -0.05905585736036301, 0.029471106827259064, 0.0658743679523468, -0.05636633560061455, -0.0176997110247612, -0.029963554814457893, -0.0700412318110466, -0.05269191786646843, -0.0700412318110466, 0.0008523135329596698, 0.043032363057136536, -0.012225964106619358, 0.07132916897535324, -0.012036561034619808, -0.05579812452197075, 0.010473986156284809, -0.05140397697687149, 0.024281464517116547, 0.0673895925283432, -0.0320848673582077, 0.06905633211135864, 0.05689666420221329, 0.007699232082813978, 0.08773147314786911, -0.021743465214967728, 0.023069286718964577, 0.027463436126708984, 0.006984235718846321, -0.01811639778316021, -0.045343078672885895, -0.01565415784716606, -0.06458642333745956, 0.01954638957977295, -0.03610021248459816, 0.01917705498635769, -0.012907815165817738, -0.08386765420436859, 0.03977463021874428, 0.06345000863075256, 0.010341404005885124, 0.01644965074956417, -0.042388394474983215, -0.06769263744354248, 0.03585398942232132, -0.0030375507194548845, -0.015559457242488861, -0.00002450771353323944, 0.0358729287981987, -0.09023158997297287, -0.023391271010041237, -0.07087460160255432, 0.05856340751051903, -0.015521576628088951, 0.05076000466942787, -0.002078698016703129, -0.05310860276222229, 0.0409868098795414, 0.062427230179309845, 0.03225533291697502, 0.0709882453083992, 0.06291967630386353, -0.0050286496989429, -0.025152718648314476, -0.012860463932156563, -0.046024929732084274, 0.008944557048380375, 0.07549604028463364, -0.003319287672638893, 0.09591367840766907, -0.03882761672139168, 0.008466314524412155, -0.01904447190463543, 0.03437664732336998, -0.0031843381002545357, -0.046252213418483734, -0.09788347035646439, 0.045494601130485535, -0.01887401007115841, 0.028429390862584114, -0.00795492623001337, -0.027292972430586815, -0.01753871887922287, 0.00015729328151792288, -0.028069525957107544, -0.0380510650575161, 0.01743454672396183, 0.0326530784368515, -0.042274750769138336, -0.011146366596221924, -0.040721647441387177, -0.008944557048380375, 0.07322320342063904, 0.04844928905367851, -0.04860081151127815, -0.044433943927288055, -0.00827217660844326, 0.007718172390013933, -0.03789954259991646, 0.05068424344062805, 0.022538958117365837, -0.03219851106405258, -0.0343577042222023, 0.01770918071269989, 0.021951807662844658, -0.009545911103487015, 0.05129033327102661, -0.075344517827034, 0.03583505004644394, -0.03375161439180374, 0.05254039540886879, -0.013627545908093452, 0.000720323296263814, 0.0007102612871676683, -0.013419202528893948, -0.024679211899638176, -0.03456604853272438, -0.01632653921842575, 0.042577795684337616, -0.028277868404984474, 0.03808894380927086, -0.002302430337294936, -0.002857617801055312, -0.043449047952890396, -0.013769598677754402, 0.00894929189234972, -0.0100099490955472, -0.025531524792313576, 0.041100453585386276, 0.005885698366910219, -0.014631382189691067, 0.022728361189365387, -0.022254852578043938, -0.014650322496891022, -0.043865736573934555, 0.014962837100028992, -0.00397036038339138, -0.05435866117477417, -0.05916949734091759, 0.03252049535512924, -0.025342121720314026, 0.07095036655664444, 0.06318484246730804, 0.029168061912059784, 0.028467271476984024, 0.05189642310142517, -0.00874568335711956, -0.014091583900153637, -0.03382737562060356, -0.030853750184178352, -0.014792374335229397, 0.01596667245030403, 0.023504912853240967, 0.0017306699883192778, -0.021213136613368988, 0.03517213836312294, -0.006359206046909094, -0.042161110788583755, 0.01867513544857502, 0.03242579475045204, 0.06742747128009796, -0.0070505267940461636, 0.007140493486076593, -0.011051665060222149, 0.03238791227340698, 0.05757851526141167, 0.0021603780332952738, -0.002027795882895589, 0.08341308683156967, 0.013892710208892822, -0.030209779739379883, 0.03628961741924286, -0.010426635853946209, 0.05723758786916733, -0.015275352634489536, -0.013087747618556023, -0.05924525856971741, 0.01670534536242485, 0.011269479058682919, 0.04075952619314194, 0.042880840599536896, -0.026099734008312225, -0.01009518001228571, -0.006738011725246906, 0.006463377736508846, -0.05250251293182373, 0.01572991907596588, -0.000916828925255686, -0.021459359675645828, 0.042047467082738876, 0.03807000443339348, -0.024944376200437546, 0.0386192724108696, -0.012746822088956833, 0.04629009589552879, -0.042880840599536896, 0.01838156208395958, -0.03676312416791916, 0.0668213814496994, -0.05780579894781113, -0.001377906883135438, 0.006482318043708801, -0.014290456660091877, -0.028277868404984474, -0.04844928905367851, -0.004036651458591223, -0.043183885514736176, -0.042994480580091476, -0.015038598328828812, -0.043373286724090576, -0.0035323661286383867, 0.010625508613884449, 0.047085586935281754, 0.00894929189234972, 0.025266360491514206, -0.04026708006858826, -0.010597098618745804, -0.05428289994597435, -0.021989688277244568, -0.008778829127550125, 0.014820785261690617, -0.05208582803606987, 0.03329704701900482, 0.022860942408442497, 0.0177944116294384, -0.0055068922229111195, -0.023599615320563316, -0.05083576589822769, -0.022387435659766197, 0.08841332048177719, -0.04666890203952789, -0.021042674779891968, 0.029508987441658974, -0.002343862084671855, 0.0096548181027174, -0.01857096515595913, -0.0012914917897433043, 0.044471826404333115, -0.062465112656354904, 0.00975425448268652, -0.010199352167546749, 0.008224825374782085, -0.027861181646585464, -0.011307359673082829, -0.008172739297151566, 0.014830254949629307, -0.0009280747035518289, -0.07576119899749756, 0.006510728504508734, 0.025891391560435295, -0.027008868753910065, -0.002403050661087036, -0.026042914018034935, -0.0031511925626546144, 0.03471757099032402, -0.005672620143741369, -0.044850632548332214, 0.026497479528188705, -0.027330853044986725, 0.021743465214967728, 0.06644257158041, -0.01936645805835724, -0.014479859732091427, -0.005923578981310129, -0.015104889869689941, -0.008111183531582355, 0.03337280824780464, -0.006008810363709927, -0.01796487532556057, -0.041251976042985916, 0.011155837215483189, 0.02045552432537079, 0.05132821574807167, -0.0092760119587183, -0.0034968529362231493, 0.03897913917899132, 0.005606329068541527, 0.046024929732084274, 0.024073122069239616, 0.0013447613455355167, -0.028221048414707184, -0.09121648967266083, 0.0387139730155468, -0.00831005722284317, 0.047729555517435074, 0.027330853044986725, -0.05769215524196625, 0.031421959400177, -0.05519203469157219, -0.025171659886837006, -0.004642741288989782, -0.04738863185048103, 0.062048424035310745, -0.004581185057759285, -0.022027568891644478, -0.026156555861234665, -0.029812032356858253, -0.030209779739379883, 0.06765475124120712, -0.00508073577657342, -0.0409868098795414, 0.03981251269578934, 0.04034284129738808, 0.027463436126708984, -0.027614958584308624, -0.010729679837822914, 0.03430088609457016, 0.04083528742194176, -0.01740613579750061, 0.05507839471101761, -0.015123830176889896, -0.03704722970724106, 0.021156316623091698, 0.01672428473830223, -0.000997917028144002, 0.05898009613156319, -0.0011080076219514012, 0.007017381489276886, 0.044699110090732574, 0.0660637691617012, 0.060874126851558685, -0.005052325315773487, -0.0018762735417112708, 0.012169143185019493, 0.00986789632588625, -0.021554062142968178, 0.0189308300614357, -0.05257827416062355, -0.05394197627902031, 0.027311913669109344, 0.042426273226737976, -0.0749657079577446, -0.024432986974716187, 0.045456722378730774, 0.05837400630116463, -0.0400397963821888, 0.0172735545784235, -0.09159529209136963, -0.03954734653234482, 0.013750658370554447, 0.015180651098489761, 0.0413656160235405, -0.07314743846654892, 0.01612766645848751, 0.00434916652739048, 0.015313233248889446, 0.05541931837797165, 0.024148883298039436, 0.006207683589309454, -0.00868412759155035, 0.0009955494897440076, -0.062427230179309845, 0.061555977910757065, -0.006738011725246906, 0.07504147291183472, -0.04034284129738808, 0.0070268516428768635, -0.00796439591795206, -0.030399182811379433, -0.005435866303741932, -0.04829776659607887, -0.0009748336160555482, 0.006231358740478754, 0.0387139730155468, -0.04106257110834122, -0.005279609002172947, -0.00504285516217351, -0.021800285205245018, -0.010843321681022644, 0.011032724753022194, 0.028921838849782944, -0.01707468181848526, 0.0389033779501915, 0.05129033327102661, 0.00808277353644371, 0.044888511300086975, -0.026042914018034935, 0.022520016878843307, 0.0361570343375206, 0.0355888232588768, -0.027084629982709885, -0.012642650865018368, 0.05015391483902931, 0.03897913917899132, 0.025929272174835205, -0.03825940564274788, 0.015426875092089176, 0.0324636735022068, -0.0009008480701595545, 0.01693262904882431, 0.045115794986486435, -0.025967152789235115, -0.03206592798233032, -0.026289137080311775, -0.011771396733820438, 0.036346435546875, -0.021288897842168808, -0.029300644993782043, -0.07511723041534424, -0.025872450321912766, -0.01947062835097313, -0.0025806159246712923, -0.0362517349421978, 0.010824381373822689, 0.00885932520031929, -0.01778494194149971, -0.015133299864828587, 0.0016714815283194184, 0.061934784054756165, -0.025133779272437096, 0.022538958117365837, 0.003837778465822339, 0.00960273202508688, 0.012964636087417603, -0.04727499186992645, -0.0717458575963974, 0.042388394474983215, -0.03579716756939888, 0.015057538636028767, 0.041895944625139236, -0.01881718821823597, -0.021402539685368538, 0.03774802014231682, -0.025664107874035835, 0.008215355686843395, 0.014631382189691067, 0.0096548181027174, 0.005298549309372902, 0.030096137896180153, 0.03306976333260536, -0.00920025072991848, 0.0025001196190714836, 0.08204938471317291, 0.004597757942974567, -0.005705765448510647, -0.01962215080857277, 0.05663149803876877, -0.005970929749310017, -0.0008398839272558689, -0.010483456775546074, -0.03138407692313194, 0.029111241921782494, -0.02005777880549431, -0.05738911032676697, -0.011648285202682018, -0.01777547225356102, 0.06773051619529724, -0.012784702703356743, 0.0768597424030304, 0.0018040636787191033, -0.025720927864313126, -0.025777749717235565, 0.0000481645911349915, -0.04996451362967491, 0.022160151973366737, -0.015360583551228046, -0.07329896092414856, -0.023997360840439796, 0.027955884113907814, 0.062048424035310745, -0.04689618572592735, 0.00993418786674738, 0.030115077272057533, -0.0012595299631357193, 0.023239748552441597, -0.05458594486117363, 0.0052369930781424046, 0.008991907350718975, -0.00819641537964344, -0.012064971029758453, 0.05553296208381653, 0.028580913320183754, -0.00531748915091157, 0.026023972779512405, -0.07826132327318192, 0.045646123588085175, 0.01730196364223957, -0.044206660240888596, 0.03225533291697502, 0.03329704701900482, 0.028751377016305923, 0.01630759797990322, 0.011903978884220123, 0.04750227555632591, 0.046024929732084274, 0.014214695431292057, 0.02123207598924637, -0.01599508337676525, 0.05310860276222229, -0.05579812452197075, 0.043524809181690216, 0.0158056803047657, -0.00468772416934371, 0.0026658473070710897, 0.061328694224357605, 0.03386525809764862, 0.022823061794042587, -0.05382833257317543, -0.004280508030205965, 0.07360200583934784, -0.006056161131709814, 0.022482136264443398, 0.05882857367396355, -0.01715991273522377, 0.044282421469688416, -0.025739869102835655, 0.0051943776197731495, -0.024944376200437546, -0.005710500758141279, 0.013542314991354942, 0.0015282455133274198, 0.03867609426379204, 0.002895498415455222, 0.03666842356324196, -0.007344101555645466, 0.00018451995856594294, 0.00916710589081049, 0.0042899781838059425, 0.008731478825211525, 0.026345958933234215, 0.06731382757425308, -0.012358546257019043, -0.01802169531583786, 0.024906495586037636, 0.031043153256177902, 0.02017142064869404, -0.026289137080311775, 0.0043775769881904125, 0.03683888539671898, -0.0347365103662014, 0.05432078242301941, 0.024963315576314926, -0.06519251316785812, 0.062275707721710205, -0.03433876484632492, -0.027236152440309525, 0.041971705853939056, 0.03649795800447464, 0.0012607137905433774, 0.003629435086622834, -0.08015535026788712, -0.0015495533589273691, -0.023599615320563316, 0.01785123348236084, -0.05890433490276337, -0.006927414797246456, 0.012633180245757103, -0.0011831768788397312, 0.0027984294574707747, -0.0177470613270998, 0.004048489034175873, -0.0026350694242864847, -0.011676695197820663, 0.059434663504362106, -0.05045695975422859, -0.006524933502078056, -0.0351153165102005, -0.013220329768955708, 0.010114120319485664, -0.04875233396887779, 0.011970269493758678, -0.0020692278631031513, -0.08129177242517471, -0.04159289970993996, 0.03466074913740158, -0.027160391211509705, 0.00036460079718381166, 0.009020318277180195, 0.007741848006844521, 0.004735074937343597, 0.04651737958192825, -0.012727881781756878, 0.01769024133682251, -0.03704722970724106, 0.0010215924121439457, -0.012396426871418953, 0.0010671676136553288, 0.031156795099377632, 0.05356317013502121, -0.05163126066327095, -0.047085586935281754, 0.01757659949362278, -0.01960321143269539, -0.05030543729662895, 0.01811639778316021, -0.05454806610941887, -0.010341404005885124, -0.009953128173947334, 0.00835740752518177, 0.0008357407641597092, -0.06856388598680496, -0.05204794555902481, 0.010038359090685844, -0.08530711382627487, -0.023372331634163857, -0.01986837573349476, 0.03564564511179924, -0.06769263744354248, 0.026402778923511505, -0.0634121298789978, 0.0367252416908741, 0.0033287578262388706, 0.00993418786674738, 0.022122271358966827, -0.014091583900153637, -0.011667225509881973, -0.0673895925283432, -0.03354327380657196, -0.01954638957977295, -0.004848716780543327, -0.0052369930781424046, -0.06920785456895828, -0.021023733541369438, 0.060608960688114166, 0.021288897842168808, 0.0022077288012951612, -0.004611963406205177, 0.044812750071287155, -0.025872450321912766, -0.021099494770169258, -0.0035702467430382967, -0.01716938242316246, 0.011941859498620033, 0.009332832880318165, 0.023163987323641777, 0.024925434961915016, -0.029035480692982674, 0.0031322522554546595, 0.06845024973154068, 0.04735075309872627, 0.03610021248459816, 0.01696103997528553, 0.0173209048807621, -0.011373650282621384, -0.011752456426620483, 0.014063172973692417, -0.05522991716861725, -0.003915907349437475, -0.01900659129023552, -0.042085349559783936, 0.0015909852227196097, -0.03308870643377304, 0.022614719346165657, -0.004545672331005335, -0.024925434961915016, 0.0026942577678710222, 0.06356365233659744, 0.074018694460392, -0.024603450670838356, -0.021913927048444748, 0.05602540820837021, 0.0013317398261278868, -0.045570362359285355, 0.01773759163916111, -0.00947962049394846, -0.031043153256177902, -0.0181258674710989, -0.024830734357237816, 0.03723663091659546, -0.01815427839756012, -0.00805436260998249, 0.006591224577277899, -0.041706543415784836, -0.026592181995511055, 0.029168061912059784, -0.065306156873703, 0.040873169898986816, -0.026289137080311775, -0.06841236352920532, -0.015057538636028767, 0.02130783721804619, 0.08030687272548676, -0.07356412708759308, 0.012737352401018143, 0.022860942408442497, -0.07924621552228928, 0.001725934911519289, 0.05572236329317093, -0.025455763563513756, -0.045721884816884995, 0.01836262084543705, 0.0331265851855278, -0.0327477790415287, -0.006870593875646591, -0.010625508613884449, 0.008603631518781185, 0.012339605949819088, -0.01992519572377205, 0.05719970911741257, 0.022406375035643578, -0.0768597424030304, 0.030247660353779793, 0.043524809181690216, -0.06345000863075256, 0.03134619817137718, -0.01710309088230133, 0.028429390862584114, 0.05348740890622139, -0.045267317444086075, -0.06375305354595184, -0.03216062858700752, -0.041782304644584656, 0.014972307719290257, -0.00453856959939003, 0.04977510869503021, 0.03771013766527176, 0.028902899473905563, -0.011856628581881523, -0.0156636293977499, 0.012358546257019043, 0.05504051223397255, 0.010312994010746479, 0.002748711034655571, 0.05246463418006897, 0.04776743799448013, -0.044699110090732574, 0.026327017694711685, -0.01874142698943615, 0.03592975065112114, 0.03270990028977394, 0.07511723041534424, -0.002533265156671405, 0.014906016178429127, -0.020929032936692238, -0.03924430161714554, -0.0774279460310936, 0.0052511985413730145, -0.0417444221675396, -0.0018005123129114509, -0.01814480870962143, 0.03761543706059456, 0.05288131907582283, 0.03583505004644394, 0.047881077975034714 ]
17,383
imodels.tree.gosdt.pygosdt_shrinkage
__init__
Params ------ reg_param: float Higher is more regularization (can be arbitrarily large, should not be < 0) shrinkage_scheme: str Experimental: Used to experiment with different forms of shrinkage. options are: (i) node_based shrinks based on number of samples in parent node (ii) leaf_based only shrinks leaf nodes based on number of leaf samples (iii) constant shrinks every node by a constant lambda
def __init__(self, estimator_: OptimalTreeClassifier, reg_param: float = 1, shrinkage_scheme_: str = 'node_based'): """ Params ------ reg_param: float Higher is more regularization (can be arbitrarily large, should not be < 0) shrinkage_scheme: str Experimental: Used to experiment with different forms of shrinkage. options are: (i) node_based shrinks based on number of samples in parent node (ii) leaf_based only shrinks leaf nodes based on number of leaf samples (iii) constant shrinks every node by a constant lambda """ super().__init__() self.reg_param = reg_param # print('est', estimator_) self.estimator_ = estimator_ # self.tree_ = estimator_.tree_ self.shrinkage_scheme_ = shrinkage_scheme_
(self, estimator_: imodels.tree.gosdt.pygosdt.OptimalTreeClassifier, reg_param: float = 1, shrinkage_scheme_: str = 'node_based')
[ 0.04766981303691864, -0.011980035342276096, 0.015153850428760052, 0.0008493308559991419, -0.04334269464015961, -0.011497258208692074, -0.02297663502395153, 0.002456354210153222, -0.025086551904678345, 0.011854871176183224, 0.0020138081163167953, 0.06054387986660004, 0.021224331110715866, 0.02111704833805561, -0.018077336251735687, -0.018104158341884613, 0.033150725066661835, -0.00642362330108881, 0.03783545643091202, 0.05725384131073952, -0.03990960866212845, 0.005341844167560339, -0.02185015380382538, 0.036440763622522354, -0.03676261752843857, 0.04148310795426369, 0.003911392297595739, -0.029270624741911888, 0.019668715074658394, -0.012659500353038311, -0.07424046099185944, -0.048778411000967026, -0.06626568734645844, 0.046346645802259445, 0.03238185867667198, -0.02760772407054901, -0.00823850929737091, 0.06673058867454529, -0.06841136515140533, 0.025462046265602112, 0.0011991211213171482, -0.05607371777296066, -0.06497827917337418, -0.07617156952619553, 0.015734972432255745, 0.05289096385240555, 0.02741103619337082, 0.053713470697402954, -0.034509655088186264, -0.0619385726749897, -0.01820250228047371, -0.03540368750691414, 0.020866718143224716, 0.04809894785284996, -0.026284554973244667, 0.06454914808273315, 0.07903247326612473, 0.007500932551920414, 0.08833041042089462, 0.0024518840946257114, -0.00022560350771527737, -0.00258822413161397, 0.009700252674520016, -0.028644800186157227, -0.05757569149136543, -0.019168056547641754, -0.09247872233390808, 0.014501207508146763, -0.014939283020794392, 0.03726327419281006, 0.01856011524796486, -0.050995614379644394, -0.0012516455026343465, 0.05882733687758446, 0.00987905915826559, 0.010272433049976826, -0.05560882017016411, -0.07273848354816437, 0.007353417109698057, -0.012650559656322002, 0.024889864027500153, 0.021313734352588654, 0.011711825616657734, -0.05939951911568642, -0.03197060152888298, -0.09777139127254486, 0.01906077191233635, -0.057826023548841476, 0.036083150655031204, 0.0031313488725572824, -0.05993593856692314, 0.01469789445400238, 0.04280627518892288, 0.005502770189195871, 0.06000746041536331, 0.05957832559943199, 0.00008577124390285462, -0.0381215438246727, -0.008850921876728535, -0.05117442086338997, 0.02333424799144268, 0.04774133488535881, -0.009141482412815094, 0.03338317200541496, -0.018577994778752327, -0.01799687370657921, -0.008721287362277508, 0.004177366849035025, -0.004400874953716993, -0.01155984029173851, -0.07202325761318207, 0.03374078497290611, -0.03729903697967529, 0.05210421234369278, -0.03492090851068497, -0.0033325061667710543, 0.00859612226486206, -0.03345469757914543, -0.0006582314381375909, -0.05017310380935669, 0.01405419036746025, 0.033150725066661835, -0.047634050250053406, 0.017156483605504036, -0.010692629031836987, 0.022440215572714806, 0.050423432141542435, 0.049994297325611115, -0.024800460785627365, -0.03284675255417824, 0.018881965428590775, -0.008412845432758331, -0.06454914808273315, 0.01583331637084484, 0.034652698785066605, -0.0396592803299427, -0.00995952170342207, 0.01690615527331829, -0.02075943537056446, 0.02741103619337082, 0.03241761773824692, -0.0374063178896904, 0.03125537559390068, -0.0201872531324625, 0.04294932261109352, 0.0056592258624732494, -0.02977128140628338, 0.018721040338277817, -0.04173343628644943, -0.012444932013750076, -0.031165972352027893, 0.023817025125026703, 0.045345328748226166, -0.012400230392813683, 0.038228828459978104, -0.0015846726018935442, 0.010424419306218624, -0.02590906247496605, 0.0012035912368446589, -0.002503291005268693, 0.006401272490620613, 0.02746467851102352, 0.019096534699201584, -0.017451513558626175, -0.016325034201145172, 0.02755408175289631, -0.04062483832240105, -0.023888548836112022, -0.06941268593072891, 0.020652150735259056, -0.010665807873010635, -0.07087889313697815, -0.08253707736730576, 0.0342414453625679, -0.012230364605784416, 0.09419526159763336, 0.061473675072193146, 0.059327997267246246, 0.011613481678068638, 0.050566479563713074, -0.011890632100403309, 0.007894307374954224, -0.02490774542093277, -0.013964787125587463, 0.003182755783200264, -0.020151492208242416, 0.005990017671138048, 0.02140313759446144, -0.00558323273435235, 0.01705813966691494, 0.037942737340927124, 0.002986068604514003, 0.010603225789964199, -0.004894827958196402, 0.04248442500829697, -0.02934214659035206, 0.012891948223114014, -0.025515686720609665, 0.008663174696266651, 0.09777139127254486, 0.0024317684583365917, 0.02240445464849472, 0.05596643313765526, -0.0034599057398736477, 0.019078653305768967, 0.035439446568489075, -0.002565873321145773, 0.06018626689910889, -0.015279015526175499, 0.024854103103280067, -0.015824375674128532, 0.02390642836689949, 0.03876524791121483, 0.046418167650699615, 0.03345469757914543, -0.06987757980823517, -0.02691037766635418, 0.00036822963738813996, 0.011953214183449745, -0.04341421648859978, 0.024389205500483513, 0.027715006843209267, 0.015582986176013947, 0.025301119312644005, 0.005918494891375303, -0.023870667442679405, 0.044987715780735016, -0.05761145427823067, 0.002143442863598466, -0.019311102107167244, -0.0298964474350214, -0.07248815149068832, 0.03152358531951904, -0.02955671399831772, 0.012695261277258396, -0.009941641241312027, -0.009923760779201984, -0.011541959829628468, -0.0821794643998146, -0.04044603183865547, -0.020169373601675034, -0.02027665637433529, -0.01370551809668541, -0.014545909129083157, 0.011881691403687, 0.0007984827971085906, 0.017540916800498962, 0.008998436853289604, 0.00806417316198349, -0.02383490651845932, 0.0035046073608100414, -0.05957832559943199, -0.036136794835329056, 0.004235479049384594, -0.012033677659928799, -0.020526986569166183, 0.0029883035458624363, -0.002302133711054921, 0.0066113704815506935, -0.01141679473221302, -0.00033973235986195505, -0.04094668850302696, -0.005462538450956345, 0.10277797281742096, -0.051710840314626694, -0.0056413449347019196, 0.037513602524995804, -0.02068791165947914, 0.002932426519691944, -0.031005047261714935, 0.05879157781600952, 0.04019569978117943, -0.020312419161200523, 0.024925626814365387, -0.03890829533338547, -0.03284675255417824, -0.03622619807720184, -0.018077336251735687, -0.02834082953631878, 0.008551420643925667, 0.02648124285042286, -0.06036507338285446, 0.0036543577443808317, 0.019454147666692734, -0.049994297325611115, -0.016289271414279938, -0.005663695745170116, 0.03420568257570267, -0.0035113126505166292, 0.010603225789964199, -0.06547894328832626, 0.026820974424481392, -0.023960070684552193, 0.019221698865294456, 0.08060596883296967, -0.05589491128921509, -0.012802544981241226, 0.0374063178896904, -0.020580628886818886, 0.0011991211213171482, 0.04334269464015961, -0.050995614379644394, -0.037155989557504654, -0.02068791165947914, 0.011577720753848553, 0.028930891305208206, 0.03497455269098282, -0.011649243533611298, 0.023530935868620872, 0.07581395655870438, 0.023638218641281128, 0.04459434002637863, 0.0034062638878822327, 0.03377654775977135, -0.015967421233654022, -0.07166564464569092, 0.03511759638786316, -0.036279838532209396, 0.03990960866212845, 0.04566717892885208, -0.033079203218221664, -0.005091514904052019, -0.053641948848962784, -0.04048179090023041, -0.0446658618748188, -0.04080364480614662, 0.03908710181713104, 0.004139370284974575, -0.02961035631597042, -0.012963471002876759, -0.05246182531118393, -0.01309757586568594, 0.07016366720199585, -0.029485192149877548, -0.047991663217544556, 0.03481362387537956, 0.04674001783132553, 0.0024742349050939083, -0.05432141572237015, -0.0086363535374403, 0.06297565251588821, 0.024818342179059982, -0.025533568114042282, 0.03535004332661629, -0.022797828540205956, -0.02519383653998375, 0.02034818008542061, -0.024442847818136215, 0.033579859882593155, 0.02419251948595047, -0.008198278024792671, -0.026785213500261307, 0.019811760634183884, 0.05274791643023491, 0.0769583135843277, 0.026373958215117455, -0.011649243533611298, 0.00852906983345747, -0.002346835331991315, -0.0348493866622448, 0.016861453652381897, -0.0446658618748188, -0.04212681204080582, 0.02404947392642498, 0.05893462151288986, -0.06673058867454529, -0.013446249067783356, 0.012954531237483025, 0.07048552483320236, -0.05278367921710014, 0.032435499131679535, -0.05954256281256676, -0.027232229709625244, -0.009262176230549812, 0.029234861955046654, 0.035367924720048904, -0.0755278617143631, 0.01956143043935299, -0.0022954284213483334, 0.021421018987894058, 0.018595876172184944, 0.023370008915662766, 0.04960092157125473, -0.0077423215843737125, -0.021206451579928398, -0.05153203383088112, 0.024460729211568832, 0.022279290482401848, 0.07345370948314667, -0.0284123532474041, -0.001848412211984396, -0.01662900485098362, -0.024818342179059982, 0.02099188230931759, -0.01975811831653118, -0.0005685487994924188, 0.003267688676714897, 0.003781757550314069, -0.05414260923862457, -0.004425460938364267, -0.0026485712733119726, -0.02767924591898918, -0.03461693972349167, 0.02185015380382538, 0.022011080756783485, -0.015860136598348618, 0.019686594605445862, 0.0646921917796135, 0.025497807189822197, 0.02868056297302246, 0.02099188230931759, -0.014000548981130123, 0.011103883385658264, 0.01337472628802061, -0.013026053085923195, -0.02033029869198799, 0.0634763091802597, 0.02910969778895378, 0.024067355319857597, -0.04924330860376358, 0.004836715757846832, 0.05410684645175934, -0.012337648309767246, 0.024281922727823257, 0.062045853585004807, -0.02063426934182644, -0.006285048555582762, -0.02784017100930214, 0.003596245776861906, 0.0028966653626412153, -0.047133393585681915, 0.031058689579367638, -0.06530013680458069, -0.010272433049976826, -0.003509077476337552, 0.008444136939942837, -0.06454914808273315, 0.00949462503194809, 0.01238234993070364, -0.008444136939942837, 0.0064325639978051186, -0.04212681204080582, 0.03452753648161888, -0.03547520935535431, 0.012927710078656673, 0.008980556391179562, 0.02183227427303791, 0.03170239180326462, -0.03869372606277466, -0.07352523505687714, 0.04924330860376358, -0.04309236630797386, -0.024389205500483513, 0.01997268572449684, 0.0011454791529104114, -0.02848387509584427, 0.035135477781295776, -0.019865401089191437, 0.04030298441648483, -0.0039002166595309973, 0.01516279112547636, -0.012891948223114014, 0.030808359384536743, 0.001532148220576346, -0.033722907304763794, 0.04888569563627243, 0.08153576403856277, 0.03027193993330002, 0.022315051406621933, -0.04545261338353157, 0.0374063178896904, -0.006298459134995937, -0.00535078439861536, -0.048277754336595535, -0.027750767767429352, 0.03259642422199249, -0.03908710181713104, -0.05947104096412659, -0.00454839039593935, -0.012194602750241756, 0.02755408175289631, -0.024424968287348747, 0.09626942127943039, 0.03581494092941284, -0.037585124373435974, -0.032578542828559875, -0.03461693972349167, -0.037871215492486954, 0.009181713685393333, 0.011139645241200924, -0.07245239615440369, 0.008962675929069519, -0.0008163634338416159, 0.0646921917796135, 0.01877468265593052, 0.05146051198244095, 0.01956143043935299, 0.017147542908787727, 0.010191970504820347, -0.012328708544373512, 0.005654755514115095, 0.016459139063954353, -0.026785213500261307, -0.018721040338277817, 0.03438448905944824, -0.017076021060347557, -0.027947455644607544, -0.00238036154769361, -0.058541249483823776, 0.02925274334847927, 0.035922225564718246, -0.0167631097137928, -0.023030277341604233, 0.05271215736865997, 0.0017344229854643345, 0.0002655556017998606, -0.025891181081533432, 0.025748135522007942, 0.028072619810700417, 0.025998465716838837, 0.03527852147817612, -0.0032945098355412483, 0.06344054639339447, -0.0597928948700428, 0.04645392671227455, -0.021099166944622993, -0.008229569531977177, 0.011381033807992935, 0.05814787372946739, 0.07288152724504471, 0.017880650237202644, -0.05607371777296066, -0.010084686800837517, 0.08961781859397888, 0.006732064764946699, 0.03488514944911003, 0.054357174783945084, -0.006647131405770779, 0.034295085817575455, -0.03197060152888298, 0.005131746642291546, -0.029306385666131973, 0.012614798732101917, -0.004640028811991215, -0.015502523630857468, 0.022601140663027763, 0.02092036046087742, 0.03754936531186104, 0.004747312515974045, -0.016253510490059853, -0.007036035880446434, 0.0008700053440406919, -0.0381215438246727, 0.01762138120830059, 0.05464326590299606, 0.006727594416588545, -0.005824621766805649, -0.020294537767767906, 0.04638240486383438, 0.0038488099817186594, -0.015314776450395584, 0.006986863911151886, 0.06501404196023941, 0.008032881654798985, 0.05446445941925049, 0.02092036046087742, -0.04502347484230995, 0.04688306525349617, -0.020312419161200523, -0.030701076611876488, 0.05024462565779686, -0.034366607666015625, -0.0016930740093812346, 0.02340576983988285, -0.10056077688932419, 0.021206451579928398, -0.0160478837788105, 0.06390544027090073, -0.05635980889201164, -0.023870667442679405, 0.012757843360304832, 0.005967666860669851, -0.019114414229989052, -0.017460454255342484, -0.027929574251174927, -0.006785706616938114, -0.022797828540205956, 0.01459061075001955, -0.05746840685606003, -0.019382623955607414, 0.00970919243991375, -0.008520130068063736, -0.032095767557621, -0.04809894785284996, -0.022243527695536613, -0.026302436366677284, -0.08310925960540771, -0.0409824512898922, 0.023799145594239235, 0.002202672651037574, -0.005730748176574707, 0.0010828968370333314, 0.02097400277853012, 0.03851491957902908, 0.022279290482401848, -0.00020199546997901052, 0.022744186222553253, 0.0025390523951500654, 0.002360245678573847, 0.011220107786357403, 0.017800187692046165, 0.01848859153687954, 0.04015994071960449, -0.049493640661239624, -0.048277754336595535, -0.002378126373514533, -0.023817025125026703, -0.05757569149136543, 0.019096534699201584, -0.053641948848962784, -0.011702884919941425, 0.008220628835260868, 0.03170239180326462, 0.0008090994087979198, -0.05721807852387428, -0.0482419915497303, 0.013142277486622334, -0.10020316392183304, -0.02590906247496605, -0.06165248155593872, 0.03962352126836777, -0.06615840643644333, 0.01726376824080944, -0.09748530387878418, 0.024138877168297768, 0.003236397635191679, 0.0037795223761349916, 0.0389440543949604, 0.002061862498521805, -0.03170239180326462, -0.024514371529221535, 0.00357836508192122, -0.01466213259845972, -0.0160478837788105, -0.03295403718948364, -0.09240719676017761, 0.007384708616882563, 0.0439506359398365, 0.0026888027787208557, -0.002268607495352626, -0.015100209042429924, 0.06086573377251625, -0.04309236630797386, -0.010031044483184814, 0.026606407016515732, -0.013124397024512291, 0.023173322901129723, 0.02753620035946369, 0.024997148662805557, 0.008180397562682629, -0.03887253254652023, 0.004273475147783756, 0.07745897769927979, 0.046632733196020126, 0.04334269464015961, -0.00003043551987502724, 0.015252194367349148, -0.01516279112547636, -0.019936924800276756, 0.005551941692829132, -0.07148683816194534, -0.00018648958939593285, -0.02025877684354782, -0.04287779703736305, -0.006727594416588545, 0.006258227396756411, -0.003392853308469057, 0.0024451788049191236, -0.006262697745114565, 0.02776864916086197, 0.0410897321999073, 0.06630145013332367, -0.01990116387605667, -0.014831999316811562, 0.04441553354263306, 0.01619092933833599, -0.09111978858709335, 0.046990346163511276, -0.002762560499832034, -0.012257185764610767, -0.0381215438246727, -0.046418167650699615, 0.05446445941925049, -0.027142826467752457, -0.0028743145521730185, 0.048206232488155365, -0.06129486858844757, -0.04480890929698944, 0.02868056297302246, -0.033651381731033325, 0.04588174819946289, -0.020455462858080864, -0.06937692314386368, -0.003743760986253619, 0.01820250228047371, 0.03570765629410744, -0.0331149622797966, 0.0033280360512435436, 0.028734203428030014, -0.06869745999574661, 0.03574341908097267, 0.05568034201860428, -0.0160478837788105, -0.04194800555706024, 0.000924206105992198, 0.04269899055361748, -0.023530935868620872, -0.011836989782750607, -0.020526986569166183, -0.008895623497664928, 0.01299029216170311, -0.03218517079949379, 0.06698091328144073, 0.025676613673567772, -0.030075253918766975, 0.028716323897242546, 0.030414985492825508, -0.015869077295064926, 0.03155934810638428, -0.046346645802259445, 0.049207549542188644, 0.03148782625794411, -0.050137341022491455, -0.0843251422047615, -0.009150422178208828, -0.0342414453625679, 0.011434675194323063, 0.0021758514922112226, 0.05560882017016411, 0.052426066249608994, 0.0381215438246727, 0.02168922871351242, -0.033436816185712814, 0.012722082436084747, 0.029860684648156166, 0.019328981637954712, -0.00006820489943493158, 0.029377907514572144, 0.06258227676153183, -0.04645392671227455, 0.00846201740205288, -0.02197531796991825, 0.04573870077729225, 0.03923014551401138, 0.045488372445106506, -0.03890829533338547, 0.025283239781856537, -0.0030777067877352238, -0.015824375674128532, -0.06923387944698334, 0.00963767059147358, -0.044916193932294846, 0.01583331637084484, -0.02562297135591507, 0.042412903159856796, 0.060043223202228546, 0.05947104096412659, 0.008296621963381767 ]
17,387
imodels.tree.gosdt.pygosdt_shrinkage
_calc_probs
null
def _calc_probs(self, node): lbls = np.array([float(l) for l in node["labels"]]) if "labels" in node else np.array( [float(node['prediction'])]) node['probs'] = np.mean(lbls == 1) node['n_obs'] = len(node.get('labels', [])) if "prediction" in node: node['prediction'] = np.round(node['probs']) return self._calc_probs(node['true']) self._calc_probs(node['false'])
(self, node)
[ 0.04296526312828064, -0.039000287652015686, -0.007165149319916964, 0.02044011652469635, 0.02637048438191414, -0.02307203784584999, -0.02120918408036232, -0.07007063180208206, 0.05909859761595726, 0.032198309898376465, -0.003198040882125497, -0.010348236188292503, 0.06080763787031174, 0.009792798198759556, -0.019773591309785843, -0.025943225249648094, 0.04436667263507843, 0.015714621171355247, 0.005601378157734871, 0.03865848109126091, 0.02230297029018402, 0.0798463448882103, -0.027942800894379616, 0.030472179874777794, -0.030882349237799644, -0.02713955193758011, -0.017688563093543053, -0.012569988146424294, -0.030916530638933182, 0.00268532894551754, 0.04047006368637085, -0.004189284052699804, 0.0163213312625885, -0.0029374121222645044, 0.03558221086859703, -0.002061529317870736, 0.01821836456656456, 0.053458765149116516, -0.11136103421449661, -0.04795565828680992, -0.0264730267226696, -0.07813730090856552, -0.08579380065202713, 0.006387536413967609, -0.0038432034198194742, -0.014723378233611584, 0.018782347440719604, 0.035513848066329956, -0.016150426119565964, -0.03838503360748291, -0.02184152975678444, -0.01421066652983427, 0.05127119645476341, 0.04320452734827995, 0.01835508830845356, 0.041529666632413864, 0.02320876158773899, -0.022542236372828484, -0.028472604230046272, 0.01785946637392044, 0.06060255318880081, 0.029925286769866943, -0.020781924948096275, -0.05516780540347099, 0.043717239052057266, -0.02170480601489544, 0.0017207894707098603, 0.010433687828481197, -0.04487938433885574, -0.03240339457988739, -0.03371935710310936, -0.0491178035736084, 0.0006264699040912092, 0.042760178446769714, -0.06596893817186356, -0.02126045525074005, 0.03243757784366608, -0.03221540153026581, 0.0658663958311081, 0.028797321021556854, 0.007361689116805792, -0.00395215442404151, 0.04047006368637085, -0.10103843361139297, 0.004503319971263409, -0.03616328164935112, 0.02505452372133732, 0.02573814056813717, 0.014561019837856293, 0.06231159344315529, -0.04740876331925392, 0.026353394612669945, 0.09085255861282349, 0.06757543236017227, 0.04474266245961189, 0.07123278081417084, -0.007848765701055527, -0.028199156746268272, 0.019927404820919037, 0.013937219977378845, 0.011168574914336205, 0.055953964591026306, -0.018047461286187172, 0.024644354358315468, 0.001777401426807046, -0.00917754415422678, 0.0046272254548966885, 0.01119421049952507, -0.00258919526822865, 0.003537712385877967, -0.03166850656270981, 0.024302545934915543, -0.0172185767441988, -0.012125637382268906, 0.03339463844895363, -0.029019497334957123, 0.024217095226049423, 0.022422602400183678, -0.0037321157287806273, 0.04522119462490082, 0.0005490290350280702, 0.02025212161242962, 0.007891491055488586, -0.004524683114141226, -0.030984891578555107, -0.00590473273769021, 0.07512938976287842, 0.031189976260066032, -0.04323870688676834, 0.06740453094244003, 0.0013554822653532028, -0.02324294112622738, -0.02038884535431862, 0.06812232732772827, 0.020645201206207275, -0.03344590961933136, -0.006447352934628725, 0.018098732456564903, 0.09980792552232742, -0.020337574183940887, 0.07410396635532379, -0.04686187207698822, 0.023413846269249916, -0.05188645049929619, 0.050245773047208786, -0.036641813814640045, -0.002343520987778902, 0.01835508830845356, -0.0038282491732388735, -0.02546469308435917, 0.015253180637955666, 0.002356338780373335, 0.041222039610147476, -0.009895340539515018, 0.022371331229805946, 0.03395862132310867, 0.022012433037161827, -0.09010057896375656, -0.029344214126467705, -0.005682557355612516, 0.005537289194762707, -0.04265763610601425, 0.024712715297937393, -0.027395907789468765, -0.009724436327815056, 0.007229238748550415, -0.020781924948096275, 0.015022460371255875, 0.01667168363928795, -0.008810100145637989, 0.024815257638692856, -0.09037403017282486, -0.011219846084713936, 0.024302545934915543, 0.03095071204006672, 0.040333341807127, 0.021499721333384514, -0.02932712435722351, -0.01617606170475483, 0.033155374228954315, 0.08025651425123215, -0.022183336317539215, 0.011946188285946846, -0.029668930917978287, -0.02156808227300644, 0.03520622104406357, 0.04682769253849983, 0.03541130572557449, -0.05967967212200165, 0.04628079757094383, -0.027156643569469452, -0.026438847184181213, -0.02614830993115902, 0.06514859944581985, 0.059337861835956573, 0.018731076270341873, 0.020047036930918694, 0.012330722063779831, -0.018645625561475754, -0.015612078830599785, 0.013330510817468166, -0.04672515019774437, -0.028848592191934586, 0.04952797293663025, -0.040264979004859924, -0.006293539423495531, -0.03500113636255264, 0.08490510284900665, -0.02030339278280735, -0.10062826424837112, -0.06699436157941818, 0.004490502178668976, 0.044845204800367355, -0.006613984238356352, 0.011459112167358398, 0.016235878691077232, 0.05147628113627434, 0.02411455288529396, -0.06907939165830612, -0.01658623106777668, -0.02365311048924923, -0.04036752134561539, 0.010484958998858929, 0.03064308501780033, 0.050553400069475174, -0.005797917488962412, -0.021004099398851395, 0.046930234879255295, 0.014082488603889942, 0.03643672913312912, -0.021499721333384514, 0.057799726724624634, 0.0017827422125265002, -0.03366808593273163, 0.0510319285094738, 0.006306357216089964, 0.0030356820207089186, 0.025310879573225975, -0.03520622104406357, 0.037086162716150284, 0.007271964568644762, -0.05759464204311371, -0.03944464027881622, -0.03177104890346527, -0.031019072979688644, -0.002978001954033971, 0.0976887196302414, -0.02008121833205223, -0.014236302115023136, 0.011732558719813824, -0.03547966852784157, -0.02927585318684578, 0.016560595482587814, -0.03753051534295082, 0.024165824055671692, -0.020115399733185768, -0.022781500592827797, 0.08169210702180862, 0.016688773408532143, 0.04559718444943428, -0.01074131578207016, 0.02361893095076084, -0.008434111252427101, -0.026250852271914482, 0.03742797300219536, 0.051373738795518875, 0.01857726275920868, 0.03489859402179718, 0.023943647742271423, 0.023225851356983185, -0.0438881441950798, -0.013945764862000942, 0.022866953164339066, -0.017568929120898247, 0.01017733197659254, -0.035787295550107956, -0.004178602248430252, 0.025857772678136826, 0.028626417741179466, 0.03722288832068443, 0.01300579309463501, -0.05961130931973457, 0.03185650333762169, 0.013091244734823704, 0.01139929611235857, -0.026678111404180527, -0.004300371278077364, 0.029942378401756287, 0.02741299942135811, 0.005853461567312479, -0.02392655797302723, 0.056227412074804306, 0.018833618611097336, 0.029429666697978973, -0.011279663071036339, -0.02705410122871399, 0.052194077521562576, -0.04764803126454353, -0.018611444160342216, -0.002463153563439846, 0.009732982143759727, 0.007340325973927975, 0.022969495505094528, -0.007032698951661587, -0.0062764487229287624, 0.046930234879255295, 0.08237572014331818, 0.027720626443624496, 0.004178602248430252, -0.009681710973381996, -0.010681498795747757, 0.04716949909925461, 0.028472604230046272, 0.09146781265735626, -0.03412952646613121, -0.029583480209112167, 0.05174972489476204, -0.002931003225967288, 0.010288420133292675, 0.011091668158769608, -0.034009892493486404, 0.04351215437054634, 0.01008333545178175, 0.08798137307167053, -0.015757346525788307, -0.04009407386183739, 0.06562712788581848, -0.00476822117343545, 0.021038280799984932, -0.0027066918555647135, 0.03269393369555473, -0.026729382574558258, 0.01898743212223053, 0.008904097601771355, -0.05588560178875923, -0.012339267879724503, 0.0021256182808429003, 0.015979522839188576, -0.024097461253404617, -0.023277122527360916, -0.012501626275479794, -0.042623452842235565, -0.01252726186066866, 0.06494351476430893, 0.000004710707798949443, -0.035821475088596344, -0.014296118170022964, 0.0012401220155879855, -0.004840855486690998, -0.003069862723350525, -0.009032275527715683, 0.028079524636268616, 0.007776131387799978, 0.09256159514188766, 0.031070344150066376, -0.03681271895766258, 0.013723589479923248, -0.059748031198978424, -0.01456956472247839, 0.011484747752547264, 0.03399280086159706, 0.004725495353341103, -0.009126272983849049, 0.03975226730108261, -0.005379202775657177, 0.02669520303606987, -0.0047468580305576324, 0.07772713154554367, 0.005622741300612688, 0.029480937868356705, -0.0007076493347994983, -0.05462091416120529, -0.04501610994338989, -0.018662715330719948, 0.006438807584345341, 0.024165824055671692, -0.02896822616457939, -0.05704775080084801, 0.049972325563430786, -0.016398238018155098, -0.01709039881825447, 0.00740014249458909, -0.036641813814640045, 0.037359610199928284, -0.01635551080107689, 0.013928675092756748, 0.07458250224590302, -0.02052556909620762, 0.03616328164935112, -0.015612078830599785, 0.0012294405605643988, 0.040128257125616074, -0.01944887265563011, -0.05253588408231735, -0.0611836276948452, -0.004076059907674789, 0.046930234879255295, -0.0061568161472678185, -0.00851956382393837, -0.012450355105102062, -0.00599445728585124, -0.007259146776050329, -0.050826843827962875, -0.027361728250980377, -0.046520065516233444, 0.014740468934178352, -0.05468927323818207, 0.052228257060050964, -0.010160242207348347, 0.061251986771821976, -0.061833061277866364, 0.055543795228004456, 0.00829311553388834, 0.00023993317154236138, -0.04563136398792267, -0.011373660527169704, -0.011134394444525242, -0.044708482921123505, 0.0044734119437634945, -0.03202740475535393, 0.01474901381880045, 0.015697531402111053, 0.03756469488143921, -0.006216632202267647, 0.06094435974955559, -0.05520198866724968, 0.03240339457988739, 0.003740660846233368, 0.01627006009221077, 0.03876102343201637, -0.021790258586406708, 0.00017771344573702663, -0.011527474038302898, -0.08483673632144928, 0.06395226716995239, -0.024798167869448662, 0.017056217417120934, 0.01300579309463501, -0.025122886523604393, -0.023277122527360916, 0.004073923919349909, 0.014988278970122337, 0.06053419038653374, -0.0010622750269249082, 0.027088280767202377, 0.0019280106062069535, -0.0392395555973053, -0.045392099767923355, -0.020132489502429962, -0.06979718804359436, -0.03889774531126022, -0.06880594044923782, 0.09864577651023865, -0.013937219977378845, 0.017654381692409515, 0.014578109607100487, -0.03139506280422211, -0.055988144129514694, 0.0159111600369215, 0.021516811102628708, -0.01585988886654377, 0.03221540153026581, 0.01110021397471428, 0.04146130755543709, -0.0008203391334973276, -0.06572967022657394, 0.0248323492705822, 0.03647090867161751, 0.0035184856969863176, 0.02883150242269039, 0.035821475088596344, 0.011826555244624615, 0.0414271242916584, -0.00899809505790472, -0.027566812932491302, -0.012834888882935047, -0.029515117406845093, -0.036094922572374344, 0.0034180795773863792, 0.011305298656225204, 0.011544563807547092, 0.013646682724356651, 0.023499296978116035, -0.011134394444525242, -0.002204661490395665, -0.022268788889050484, -0.013834677636623383, 0.005981639493256807, 0.030762717127799988, -0.04047006368637085, -0.02954929880797863, -0.008143574930727482, 0.08387967199087143, 0.03269393369555473, -0.09297176450490952, -0.04395650327205658, 0.052775152027606964, -0.0024268366396427155, 0.053766392171382904, -0.02420000359416008, 0.01245889998972416, 0.01840635947883129, -0.01551808137446642, -0.02705410122871399, -0.010715680196881294, 0.026797745376825333, -0.058620065450668335, 0.03377062827348709, -0.03168559819459915, 0.06326865404844284, 0.014834465458989143, -0.030933620408177376, -0.007348871324211359, 0.02946384623646736, 0.0016011566622182727, -0.0023328394163399935, 0.009570622816681862, 0.03753051534295082, 0.016423873603343964, -0.015483900904655457, 0.040401700884103775, -0.011954734101891518, -0.001200600527226925, -0.02678065374493599, -0.003776978002861142, 0.03293319791555405, -0.020423026755452156, -0.03399280086159706, -0.0068703400902450085, -0.044981930404901505, 0.00112476188223809, -0.05824407935142517, 0.00036877873935736716, 0.00745568610727787, -0.05010904744267464, 0.035513848066329956, 0.05656921863555908, -0.0027195096481591463, 0.01359541155397892, 0.02754972130060196, 0.043033622205257416, -0.04658842459321022, 0.05937204509973526, 0.03937627747654915, 0.0625508576631546, 0.06480678915977478, -0.009544987231492996, 0.006690890993922949, -0.03698362037539482, -0.01031405571848154, 0.0009127340745180845, -0.019927404820919037, -0.02946384623646736, -0.003524894593283534, 0.08941696584224701, 0.030984891578555107, 0.009228815324604511, 0.01934633031487465, 0.021721895784139633, 0.011390750296413898, -0.052194077521562576, -0.10814803838729858, 0.03882938623428345, -0.044845204800367355, -0.014791740104556084, -0.0329161062836647, -0.09030566364526749, 0.06265340000391006, -0.002501607174053788, -0.011288207955658436, 0.06846413761377335, 0.06873758137226105, 0.01622733287513256, -0.010826767422258854, 0.01595388725399971, -0.04853673279285431, -0.006737889721989632, -0.032198309898376465, -0.04364887624979019, -0.012817799113690853, -0.06292684376239777, -0.03653927147388458, -0.010724225081503391, 0.01780819520354271, -0.02378983423113823, -0.0027985526248812675, -0.04323870688676834, 0.022234607487916946, 0.006665255408734083, 0.02515706606209278, -0.09536442160606384, -0.04070932790637016, 0.013962855562567711, -0.004840855486690998, -0.0018062414601445198, -0.04433249309659004, -0.012587078846991062, 0.018508901819586754, -0.027754807844758034, 0.000006980526450206526, -0.00546038243919611, 0.04231582581996918, 0.02932712435722351, 0.0014622971648350358, 0.03520622104406357, -0.04036752134561539, -0.00942535512149334, -0.0037107528187334538, -0.011903462931513786, -0.030916530638933182, -0.03944464027881622, 0.05745792016386986, 0.003524894593283534, 0.010826767422258854, 0.006690890993922949, -0.00690024858340621, -0.04645170271396637, -0.00976716261357069, 0.0132365133613348, 0.0003241834929212928, -0.018098732456564903, -0.021516811102628708, 0.032147038727998734, 0.03240339457988739, -0.06142289191484451, -0.062209051102399826, 0.024490540847182274, -0.09365538507699966, 0.010860947892069817, -0.07294181734323502, 0.0007364893681369722, -0.02030339278280735, -0.004503319971263409, -0.07013899832963943, 0.04351215437054634, 0.025225428864359856, -0.00983552448451519, -0.006537077482789755, -0.008724648505449295, -0.0008833599858917296, -0.02710537239909172, -0.028763139620423317, -0.009613349102437496, -0.03486441448330879, 0.05386893451213837, -0.0013330511283129454, -0.0639180913567543, 0.020508477464318275, 0.050279952585697174, 0.00881864596158266, -0.0030805442947894335, -0.01753474958240986, 0.03453969582915306, 0.006472988519817591, -0.022678958252072334, -0.0023499298840761185, 0.0051783905364573, 0.012441810220479965, -0.03530876338481903, -0.03947881981730461, -0.07485594600439072, -0.00692161126062274, 0.01772274263203144, 0.01690240390598774, 0.015219000168144703, 0.029993649572134018, -0.04132458195090294, -0.01703912764787674, -0.015919705852866173, -0.05468927323818207, 0.013398872688412666, 0.08900679647922516, -0.03722288832068443, -0.00845120195299387, -0.004772493615746498, -0.004836582578718662, -0.019961586222052574, -0.0012411901261657476, -0.02831879071891308, -0.004308916628360748, 0.01885071024298668, -0.012518716976046562, -0.021824438124895096, -0.055270347744226456, 0.05704775080084801, -0.03571893274784088, 0.009006639942526817, 0.0026917378418147564, -0.024507630616426468, -0.002602013060823083, -0.025276700034737587, -0.007015608716756105, 0.038009047508239746, -0.01958559639751911, -0.04395650327205658, 0.017654381692409515, -0.012031640857458115, 0.025259608402848244, 0.05711610987782478, -0.02307203784584999, -0.015193364582955837, -0.03739379346370697, -0.030745627358555794, -0.010630227625370026, -0.018047461286187172, 0.06894266605377197, -0.0611836276948452, -0.02474689669907093, -0.04467429965734482, 0.009630439803004265, -0.05397147685289383, 0.0677805170416832, -0.03865848109126091, -0.05475763604044914, -0.02859223634004593, 0.08210227638483047, -0.006161088589578867, 0.0006622529472224414, -0.034061163663864136, -0.033326275646686554, -0.039547182619571686, 0.01271525677293539, 0.03243757784366608, 0.05342458561062813, -0.08736611902713776, -0.011553109623491764, -0.005135664716362953, -0.07150622457265854, 0.010621682740747929, -0.03036963753402233, -0.008224754594266415, -0.02025212161242962, -0.06678927689790726, -0.07048080116510391, -0.018252545967698097, 0.0025058796163648367, 0.02691737748682499, -0.04460594058036804, 0.029583480209112167, -0.02623376064002514, 0.012313632294535637, -0.0015413402579724789, 0.020047036930918694, 0.012749437242746353, -0.0001783810294000432, -0.007848765701055527, -0.017739834263920784, 0.017201485112309456, 0.054996900260448456, -0.05383475497364998, 0.034334611147642136, 0.038453396409749985, 0.03585565462708473, -0.01456956472247839, 0.08237572014331818, -0.0169451292604208, 0.016688773408532143, -0.025139976292848587, -0.018013279885053635, -0.018816528841853142, -0.0430678054690361, 0.0026896013878285885, -0.01713312417268753, 0.024046190083026886, 0.0036167555954307318, 0.0002777189656626433, -0.0038132951594889164, 0.007566773798316717 ]
17,398
imodels.tree.gosdt.pygosdt_shrinkage
fit
null
def fit(self, *args, **kwargs): X = kwargs['X'] if "X" in kwargs else args[0] y = kwargs['y'] if "y" in kwargs else args[1] if not hasattr(self.estimator_, "tree_"): self.estimator_.fit(X, y) self.impute_nodes(X, y) self.shrink_tree()
(self, *args, **kwargs)
[ 0.013552715070545673, -0.0007820540340617299, 0.057573042809963226, -0.030866220593452454, -0.06890740990638733, 0.011022412218153477, -0.03604814037680626, -0.054488152265548706, 0.01247820258140564, 0.04180197790265083, 0.04003423452377319, -0.02410719357430935, 0.0008188820793293417, 0.011377695016562939, -0.02766001597046852, -0.014939181506633759, 0.0004695573588833213, -0.015467772260308266, -0.011914950795471668, 0.06578785926103592, -0.023743247613310814, -0.034453704953193665, -0.004497352056205273, 0.05549333989620209, 0.0007349358056671917, -0.009237335994839668, 0.011239048093557358, -0.039306338876485825, -0.00872174371033907, 0.008730409666895866, -0.042391229420900345, -0.012426210567355156, -0.029705055058002472, -0.011559667997062206, 0.00568018201738596, -0.05722642317414284, -0.007933191023766994, 0.05122995376586914, -0.035840172320604324, -0.046897243708372116, -0.048664990812540054, -0.04734784737229347, -0.014115966856479645, -0.008193152956664562, 0.017495479434728622, 0.0161436740309, -0.016542283818125725, 0.06547590345144272, -0.023431291803717613, -0.04301513731479645, -0.04402032494544983, -0.04939288645982742, 0.04110874608159065, 0.027712007984519005, 0.014861192554235458, 0.07549312710762024, 0.043084461241960526, 0.051784541457891464, 0.08908050507307053, -0.03691468387842178, 0.026360202580690384, 0.04408964887261391, 0.0010961754014715552, -0.01209692470729351, -0.06447071582078934, -0.009947900660336018, -0.07244289666414261, 0.028717197477817535, -0.06135116517543793, 0.06786755472421646, -0.005888151936233044, -0.04187130182981491, -0.009791922755539417, 0.0393756628036499, 0.04710521548986435, 0.041697993874549866, -0.04440160468220711, 0.011178390122950077, 0.00009484571637585759, 0.03329253941774368, -0.026013586670160294, 0.024973737075924873, -0.054488152265548706, -0.04582273215055466, -0.056602515280246735, -0.016611607745289803, 0.007582241203635931, 0.013994650915265083, 0.06987793743610382, -0.005875153932720423, -0.010251190513372421, 0.03400310128927231, 0.024245841428637505, 0.006065792869776487, 0.04076213017106056, 0.048699650913476944, 0.0012933136895298958, -0.0029094142373651266, -0.015927039086818695, -0.022946028038859367, -0.010641134344041348, 0.060796577483415604, -0.0000741299445508048, 0.06769424676895142, -0.03112618438899517, -0.015805723145604134, -0.015649745240807533, 0.012781492434442043, 0.0006574886501766741, 0.011949611827731133, -0.07105643302202225, 0.026550842449069023, -0.005684514530003071, 0.03242599591612816, -0.06343086063861847, -0.020623696967959404, -0.06935801357030869, -0.02514704503118992, -0.013613373041152954, -0.03266862779855728, -0.012642845511436462, 0.08464381098747253, -0.02558031491935253, -0.0248870812356472, -0.02114362083375454, -0.007469590753316879, 0.043084461241960526, 0.02372591570019722, -0.03604814037680626, -0.12651510536670685, -0.0026797805912792683, -0.020848996937274933, -0.011291040107607841, 0.05126461759209633, 0.010623803362250328, -0.056221235543489456, 0.0007376437424682081, -0.053829580545425415, -0.008006846532225609, -0.022443434223532677, 0.032911259680986404, -0.03469633683562279, 0.04155934602022171, -0.019427867606282234, 0.03951430693268776, 0.020623696967959404, 0.001937804277986288, -0.026862798258662224, -0.008444450795650482, -0.013587376102805138, -0.03746927157044411, -0.010303182527422905, -0.002599625615403056, -0.018318694084882736, 0.005164589267224073, 0.0013702192809432745, -0.022634074091911316, -0.004007756244391203, 0.04561476409435272, 0.017937416210770607, -0.02318865992128849, -0.032529979944229126, 0.044817544519901276, 0.018266702070832253, 0.02908114530146122, 0.04454025253653526, -0.05791965872049332, -0.002419818192720413, -0.037538591772317886, 0.0005713760619983077, -0.007335276808589697, -0.055250708013772964, -0.0425298735499382, 0.01682824268937111, -0.02946242317557335, -0.0030047339387238026, 0.04613468796014786, 0.013795346021652222, -0.0055372025817632675, 0.08180154860019684, -0.008253810927271843, -0.013422733172774315, 0.013587376102805138, -0.03639475628733635, -0.034644342958927155, -0.02700144425034523, -0.0161436740309, 0.016083016991615295, -0.05705311521887779, -0.002759935799986124, 0.03532024472951889, -0.01984380930662155, 0.015008505433797836, -0.0001678924891166389, 0.02577095478773117, 0.032720621675252914, -0.0064903986640274525, 0.00202662474475801, 0.016247659921646118, 0.056325219571590424, 0.020398395135998726, -0.033691149204969406, 0.07992982119321823, 0.0074825887568295, -0.02977437898516655, 0.05296303704380989, -0.00884305965155363, 0.041039422154426575, 0.012157582677900791, -0.009410644881427288, 0.025025729089975357, -0.0004535804910119623, -0.019982455298304558, 0.009072693064808846, 0.0056021930649876595, 0.03982626274228096, -0.004774645436555147, -0.03242599591612816, 0.00822348240762949, -0.021732870489358902, 0.05434950441122055, 0.012114254757761955, -0.04322310909628868, 0.02129959873855114, 0.02533768303692341, -0.023968547582626343, 0.05916747823357582, -0.038543783128261566, 0.04020754247903824, -0.07646365463733673, 0.012027600780129433, -0.025892270728945732, 0.02025974914431572, -0.03261663392186165, -0.024939075112342834, 0.01868264190852642, -0.0004156692884862423, -0.027365392073988914, -0.05091799795627594, -0.007768547628074884, -0.030363626778125763, -0.019514523446559906, -0.02608291059732437, -0.030207648873329163, 0.02107429876923561, 0.014133297838270664, -0.0010777614079415798, 0.006897673010826111, 0.033101897686719894, -0.028717197477817535, -0.0003915686102118343, 0.02272072806954384, -0.04876897484064102, 0.011143728159368038, -0.016819577664136887, -0.05091799795627594, 0.052096497267484665, 0.02164621651172638, 0.02980903908610344, -0.00008177988638635725, -0.0012597352033481002, -0.009237335994839668, -0.028838513419032097, 0.08415854722261429, -0.0384397953748703, -0.008102166466414928, -0.012348221614956856, -0.03370847925543785, -0.02438448742032051, 0.014297940768301487, -0.045892056077718735, 0.038647767156362534, 0.054141536355018616, 0.022443434223532677, 0.012252901680767536, 0.039652954787015915, -0.019479861482977867, -0.026134902611374855, 0.017660122364759445, 0.012755496427416801, 0.04266852140426636, -0.05916747823357582, -0.013526718132197857, -0.004973950330168009, -0.01767745427787304, -0.033569831401109695, 0.007543246727436781, 0.02876918949186802, -0.0019486360251903534, -0.029843701049685478, -0.027625354006886482, 0.06873410195112228, -0.006624712608754635, 0.03923701494932175, 0.021854186430573463, -0.01263418048620224, -0.0228420440107584, 0.0311955064535141, 0.01136036403477192, 0.008674084208905697, 0.022252794355154037, -0.0114210220053792, -0.027053436264395714, -0.06634244322776794, 0.09906306862831116, 0.02750403806567192, 0.05237378925085068, 0.014254613779485226, -0.014471248723566532, 0.02407253347337246, 0.022616742178797722, 0.058058302849531174, -0.02441914938390255, -0.03507761284708977, -0.05535469204187393, -0.05358694866299629, 0.06429740786552429, -0.011412356048822403, 0.016013693064451218, 0.007391602266579866, 0.002974404953420162, 0.004051083233207464, -0.023119335994124413, -0.07583974301815033, -0.010407167486846447, 0.051472585648298264, 0.06960064172744751, 0.04280716925859451, -0.028786521404981613, -0.029687723144888878, 0.018595987930893898, -0.0020905323326587677, 0.05015544220805168, -0.021403584629297256, -0.07854335755109787, 0.0300863329321146, 0.0063127572648227215, -0.011256379075348377, 0.012391548603773117, 0.044124312698841095, -0.006776357535272837, 0.014410590752959251, -0.02149023860692978, 0.018266702070832253, 0.0057105110026896, -0.006650708615779877, 0.04779844731092453, 0.001802407088689506, 0.049704842269420624, 0.07369071990251541, -0.03486964479088783, 0.04925423860549927, 0.05237378925085068, -0.014323936775326729, 0.04149002581834793, 0.03947964683175087, -0.00040619150968268514, 0.02025974914431572, -0.005948809906840324, -0.054557476192712784, -0.012868146412074566, -0.032911259680986404, -0.06519860774278641, 0.004748649429529905, 0.013518053106963634, -0.04887296259403229, 0.006780690047889948, 0.04402032494544983, 0.05337897688150406, -0.021888846531510353, 0.047590479254722595, -0.05025942623615265, -0.0762556865811348, 0.009679272770881653, -0.0037564588710665703, 0.0359094962477684, -0.02876918949186802, -0.013492057099938393, -0.0002859588130377233, 0.007820540107786655, 0.010563145391643047, -0.007551912218332291, 0.02835324965417385, -0.05362160876393318, 0.041004762053489685, -0.01798940822482109, 0.03382979333400726, 0.010268520563840866, 0.06609981507062912, -0.0415940098464489, 0.07597839087247849, -0.025510992854833603, 0.016862904652953148, 0.005961807910352945, -0.044852208346128464, -0.02291136607527733, 0.0674169585108757, 0.02438448742032051, -0.0863075703382492, -0.014081304892897606, -0.053829580545425415, -0.011594329960644245, -0.028283925727009773, 0.021732870489358902, 0.04249521344900131, -0.0022400107700377703, -0.013405402190983295, -0.005532869603484869, 0.03816250339150429, 0.04280716925859451, -0.0037564588710665703, 0.029410431161522865, 0.03304990753531456, 0.03656806796789169, -0.013457395136356354, 0.0228420440107584, 0.03840513527393341, 0.01603102497756481, 0.04668927565217018, -0.048318374902009964, 0.0007728470372967422, 0.014765873551368713, -0.02753870002925396, 0.03778122365474701, 0.05875153839588165, -0.01315410528331995, -0.04010355845093727, -0.08644621819257736, 0.03486964479088783, 0.03500829264521599, -0.058647554367780685, -0.06485199183225632, -0.06336154043674469, 0.000590331619605422, -0.033691149204969406, -0.009696603752672672, -0.043119121342897415, -0.030259640887379646, 0.013024124316871166, 0.00883872713893652, -0.04003423452377319, -0.025528322905302048, 0.08388125151395798, -0.03601348027586937, -0.04218325763940811, -0.019289221614599228, 0.0053075687028467655, 0.050051458179950714, -0.08485177904367447, -0.030606258660554886, 0.07098710536956787, 0.024852421134710312, 0.026446858420968056, 0.035493552684783936, -0.037919871509075165, -0.05098732188344002, 0.013613373041152954, -0.03488697484135628, 0.032027386128902435, 0.02611757069826126, 0.017556138336658478, -0.05098732188344002, 0.02866520546376705, 0.005879486445337534, -0.008994704112410545, 0.005645520053803921, 0.02842257358133793, -0.007915860041975975, 0.033101897686719894, -0.04495619237422943, 0.022894036024808884, -0.03296325355768204, -0.015649745240807533, -0.027989301830530167, -0.006048462353646755, 0.041663333773612976, 0.018595987930893898, -0.03923701494932175, -0.007759882137179375, -0.041351377964019775, 0.018197378143668175, -0.04353506118059158, 0.10557945817708969, 0.011932281777262688, -0.011412356048822403, -0.01309344731271267, -0.017634127289056778, -0.06485199183225632, -0.009679272770881653, 0.052477773278951645, -0.029930355027318, -0.014488579705357552, 0.021403584629297256, -0.017382830381393433, -0.02889050543308258, 0.015337791293859482, 0.02681080438196659, 0.02350061573088169, -0.04457491263747215, -0.0519925132393837, -0.018959935754537582, 0.0043890345841646194, 0.00696266395971179, -0.005918480921536684, -0.010043220594525337, 0.03239133581519127, -0.002944075968116522, 0.04942754656076431, -0.046515967696905136, 0.058335598558187485, 0.0011871623573824763, -0.05532003194093704, 0.01786809228360653, 0.04786777123808861, 0.04610002785921097, 0.049011606723070145, -0.001830569701269269, 0.03944498673081398, 0.023899223655462265, -0.0040749129839241505, 0.014878523536026478, 0.015996363013982773, 0.09975630044937134, -0.07015522569417953, 0.07916726171970367, 0.058682214468717575, 0.03625611215829849, 0.03972227871417999, 0.0214209146797657, 0.0161436740309, 0.07174966484308243, -0.029514415189623833, 0.020311741158366203, 0.03972227871417999, -0.00493928836658597, -0.006334420759230852, 0.07105643302202225, -0.011369029060006142, 0.019965125247836113, 0.0010458077304065228, -0.03424573317170143, -0.02608291059732437, -0.019306551665067673, 0.005311901681125164, -0.006520727649331093, -0.0057105110026896, -0.014393260702490807, 0.01499983947724104, 0.02681080438196659, -0.03351783752441406, -0.043431077152490616, -0.02422850951552391, 0.020207755267620087, 0.07521583139896393, 0.019514523446559906, 0.008470446802675724, -0.059375446289777756, 0.03402043506503105, -0.0008741241181269288, -0.0023223322350531816, -0.01902925968170166, 0.00864375475794077, 0.0456840880215168, -0.009072693064808846, 0.039930250495672226, -0.008483444340527058, -0.05431484431028366, 0.02791997790336609, -0.024644451215863228, -0.026862798258662224, -0.0031368816271424294, 0.034921638667583466, -0.0390637069940567, -0.017036212608218193, -0.054488152265548706, 0.026256218552589417, -0.01979181542992592, -0.03712265193462372, -0.11119464784860611, -0.014817865565419197, -0.002137108938768506, -0.023777907714247704, -0.012382883578538895, -0.021351590752601624, 0.01072778832167387, 0.00022706104209646583, -0.023015351966023445, 0.018925273790955544, -0.060727253556251526, 0.014193955808877945, 0.018942605704069138, -0.0027057770639657974, 0.00041133660124614835, 0.0063127572648227215, 0.009566621854901314, 0.013518053106963634, -0.07168034464120865, -0.07022455334663391, 0.02426317147910595, -0.10502487421035767, -0.030017010867595673, 0.019115913659334183, -0.024973737075924873, -0.006620379630476236, -0.010875100269913673, -0.013899330981075764, -0.015034501440823078, 0.022946028038859367, 0.018630649894475937, -0.015407114289700985, 0.06852612644433975, 0.016169670969247818, 0.058023642748594284, -0.016195667907595634, -0.06582251936197281, 0.03457501903176308, 0.03303257375955582, -0.03816250339150429, 0.02422850951552391, -0.0012489034561440349, -0.004952286835759878, -0.036810699850320816, -0.003043728182092309, -0.010311848483979702, -0.03566686436533928, -0.005160256754606962, -0.0114210220053792, -0.062460336834192276, -0.011975608766078949, 0.025060391053557396, 0.017920086160302162, -0.03975693881511688, -0.030554266646504402, -0.015493768267333508, 0.03816250339150429, -0.02538967691361904, -0.0008486694423481822, 0.0019150575390085578, -0.06904605776071548, -0.057677026838064194, -0.07174966484308243, 0.027486708015203476, 0.004150735680013895, -0.01864797994494438, -0.013128109276294708, -0.03816250339150429, -0.05691446736454964, 0.03443637490272522, 0.031836748123168945, -0.016576945781707764, 0.035840172320604324, -0.025528322905302048, -0.018353356048464775, 0.020433057099580765, 0.05753837898373604, 0.08166290819644928, -0.003782455110922456, 0.002202099421992898, 0.05053672194480896, 0.016386305913329124, -0.0032365338411182165, 0.019514523446559906, 0.10107344388961792, 0.05081401392817497, 0.008630757220089436, 0.02149023860692978, 0.00002745177516771946, -0.07022455334663391, -0.05407221242785454, 0.02850922755897045, -0.09906306862831116, 0.003329687053337693, -0.004241722170263529, -0.02117828279733658, -0.013145440258085728, -0.020883658900856972, -0.013933992944657803, -0.04218325763940811, -0.029445093125104904, 0.043049801141023636, 0.017538806423544884, 0.04017288237810135, 0.0151211554184556, -0.0228420440107584, 0.0187519658356905, 0.02507772110402584, -0.018578657880425453, 0.03443637490272522, 0.02376057766377926, 0.0014492912450805306, 0.012140251696109772, -0.04842235893011093, 0.03431505709886551, -0.020329071208834648, 0.016247659921646118, -0.008470446802675724, -0.015433110296726227, -0.04058882221579552, 0.04360438510775566, -0.04131671413779259, 0.02403787150979042, 0.035528216511011124, -0.04956619441509247, -0.004243888892233372, -0.015996363013982773, 0.015857715159654617, -0.06689703464508057, 0.0482143871486187, 0.0021750200539827347, -0.05819695070385933, -0.009003370068967342, -0.0311955064535141, -0.024436481297016144, 0.0113430330529809, 0.04318844527006149, 0.0573304109275341, 0.00995656568557024, 0.022356780245900154, 0.017816100269556046, 0.029687723144888878, 0.028647873550653458, -0.02038106508553028, 0.017122866585850716, 0.000745767611078918, 0.001990879885852337, 0.026637496426701546, 0.013500722125172615, -0.04859566688537598, 0.06779823452234268, -0.05667183920741081, 0.0727895125746727, 0.030727574601769447, 0.009696603752672672, -0.0387517511844635, -0.029705055058002472, -0.03951430693268776, -0.038890399038791656, 0.03242599591612816, 0.0456840880215168, 0.003357849782332778, 0.003266862826421857, -0.001671342644840479, -0.003641642164438963, 0.013041455298662186, 0.06620379537343979, -0.024939075112342834, -0.013734688051044941, 0.04564942419528961, 0.02388189360499382, -0.0012066594790667295, 0.021923508495092392, 0.008890719152987003, 0.0560825876891613, 0.051472585648298264, 0.058335598558187485, -0.0021945172920823097, 0.012963466346263885, -0.019583845511078835, 0.017495479434728622, -0.04041551053524017, 0.022512758150696754, -0.06620379537343979, 0.0004210851911921054, -0.026204226538538933, 0.021022304892539978, 0.02785065583884716, 0.07895929366350174, 0.06388146430253983 ]
17,401
imodels.tree.gosdt.pygosdt_shrinkage
impute_nodes
Returns --- the leaf by which this sample would be classified
def impute_nodes(self, X, y): """ Returns --- the leaf by which this sample would be classified """ source_node = self.estimator_.tree_.source for i in range(len(y)): sample, label = X[i, ...], y[i] _add_label(source_node, label) nodes = [source_node] while len(nodes) > 0: node = nodes.pop() if "prediction" in node: continue else: value = sample[node["feature"]] reference = node["reference"] relation = node["relation"] if relation == "==": is_true = value == reference elif relation == ">=": is_true = value >= reference elif relation == "<=": is_true = value <= reference elif relation == "<": is_true = value < reference elif relation == ">": is_true = value > reference else: raise "Unsupported relational operator {}".format(node["relation"]) next_node = node['true'] if is_true else node['false'] _add_label(next_node, label) nodes.append(next_node) self._calc_probs(source_node) self.estimator_.tree_.source = source_node
(self, X, y)
[ 0.023270735517144203, -0.03911463916301727, 0.054710984230041504, 0.011732623912394047, -0.004235061816871166, -0.011847563087940216, -0.022810978814959526, -0.015428355894982815, 0.054887812584638596, 0.044313423335552216, 0.014146343804895878, 0.008439178578555584, 0.007789330556988716, 0.042686592787504196, -0.04770854488015175, -0.02898232266306877, 0.009601830504834652, 0.025834759697318077, 0.019345125183463097, 0.01744421012699604, -0.03333232179284096, 0.0015991999534890056, -0.022351223975419998, 0.045763421803712845, -0.020795125514268875, -0.04180244728922844, -0.03527744486927986, -0.035595737397670746, -0.01968110166490078, -0.009230488911271095, -0.036002445966005325, -0.051669519394636154, -0.02961890771985054, -0.04339390993118286, 0.01985793001949787, -0.057717081159353256, 0.013439026661217213, 0.05983903259038925, -0.045339033007621765, -0.06666464358568192, -0.01106067281216383, -0.09817562252283096, -0.04509147256612778, -0.02270488254725933, -0.027355492115020752, 0.03568415343761444, -0.011104879900813103, 0.007024543825536966, 0.004982165526598692, -0.06599269062280655, -0.030503053218126297, -0.02659512683749199, 0.05290732532739639, 0.10305611789226532, 0.002251257887110114, 0.07250001281499863, 0.02558719925582409, 0.0004790968669112772, 0.027284760028123856, 0.02535732090473175, 0.01086616050451994, 0.03812439739704132, -0.025852443650364876, -0.0050307936035096645, 0.01904451474547386, -0.010583233088254929, -0.12017319351434708, 0.03361525014042854, -0.04406585916876793, 0.03066219948232174, -0.021467076614499092, -0.07136830687522888, 0.032996345311403275, 0.05191708356142044, 0.018160369247198105, 0.02553415112197399, -0.017382320016622543, 0.034393299371004105, 0.036391470581293106, 0.0062067084945738316, -0.0487695187330246, -0.0010162158869206905, 0.026117688044905663, -0.03349146991968155, -0.00983170885592699, -0.05393293499946594, 0.01380152627825737, -0.019539637491106987, 0.05899025499820709, -0.012157014571130276, -0.027956711128354073, 0.0202823206782341, 0.05159878730773926, 0.028858540579676628, 0.04682439938187599, 0.10263172537088394, -0.005477287340909243, -0.0283987857401371, 0.02861098013818264, -0.03596707805991173, 0.01144969742745161, 0.048168301582336426, -0.04286342114210129, 0.0650024488568306, -0.02880549244582653, -0.007908690720796585, -0.03062683343887329, 0.012298477813601494, -0.014756404794752598, -0.03407500684261322, -0.07062561810016632, 0.01601189374923706, -0.0223335400223732, 0.018231101334095, -0.013173782266676426, -0.057292692363262177, -0.00604314124211669, 0.012218904681503773, -0.029353663325309753, -0.013483233749866486, 0.02661280892789364, 0.03062683343887329, -0.045940250158309937, 0.03734634816646576, -0.03388049453496933, -0.028098175302147865, 0.09867075085639954, 0.03140488266944885, -0.055701229721307755, -0.07027196139097214, 0.007983842864632607, -0.03755854442715645, -0.05655001103878021, 0.06316342204809189, -0.006520580500364304, -0.028876224532723427, -0.026347564533352852, 0.003165244357660413, 0.07674391567707062, -0.04622317850589752, 0.0548170804977417, -0.06772562116384506, 0.03465854376554489, 0.02031768672168255, 0.026223784312605858, -0.005959147121757269, -0.03023781068623066, 0.04795610532164574, 0.02295244298875332, -0.05842439830303192, -0.040882933884859085, -0.002172790002077818, 0.023482929915189743, -0.05863659456372261, 0.014234757982194424, 0.010220733471214771, -0.015092380344867706, -0.02516280859708786, 0.003872561501339078, -0.0385487861931324, -0.004677135031670332, -0.07469269633293152, 0.059343911707401276, 0.025481101125478745, 0.018920734524726868, 0.018991466611623764, 0.020971953868865967, 0.0023230949882417917, -0.033756714314222336, 0.011759147979319096, -0.00924817193299532, -0.06578049808740616, -0.05718659609556198, -0.009548782370984554, -0.014561892487108707, 0.028115857392549515, 0.031369518488645554, 0.006228812038898468, 0.032801833003759384, 0.08501952886581421, 0.008129727095365524, 0.01480945385992527, -0.025003662332892418, -0.07363171875476837, -0.027072565630078316, -0.03709878772497177, 0.03289024904370308, 0.008713264018297195, -0.050856105983257294, 0.024791467934846878, 0.027726834639906883, -0.024013418704271317, 0.01430549006909132, 0.05739878863096237, 0.09357806295156479, 0.02289939485490322, -0.0273908581584692, 0.032129883766174316, -0.0212725643068552, 0.08282684534788132, 0.013739636167883873, -0.048592690378427505, 0.06001586467027664, 0.024420125409960747, -0.012917379848659039, 0.03373903036117554, -0.010998782701790333, 0.0406353734433651, -0.023818906396627426, -0.06418903172016144, 0.0017495048232376575, 0.013173782266676426, 0.01987561210989952, 0.031564030796289444, -0.014570734463632107, 0.05644391104578972, 0.020848173648118973, -0.003788567613810301, -0.022174393758177757, -0.028098175302147865, -0.01378384418785572, -0.04611708223819733, 0.004347790498286486, 0.0023717230651527643, 0.060970742255449295, -0.006449848413467407, -0.005136891268193722, -0.004761128686368465, 0.019380491226911545, -0.03345610201358795, 0.04565732553601265, -0.013748478144407272, 0.022068295627832413, -0.07334879040718079, 0.0020633768290281296, 0.013739636167883873, -0.004544512834399939, -0.04823903366923332, -0.013050002045929432, 0.04385366663336754, -0.06634635478258133, -0.024596955627202988, -0.023394515737891197, -0.04813293367624283, 0.007952897809445858, 0.0202646367251873, 0.020052442327141762, -0.02942439541220665, 0.0020346420351415873, -0.017285063862800598, 0.02008780837059021, -0.03587866574525833, -0.01968110166490078, -0.013615855947136879, 0.04685976356267929, -0.048981714993715286, 0.026117688044905663, 0.019239027053117752, 0.028133541345596313, -0.004409680608659983, -0.022457320243120193, 0.014897868037223816, -0.04944147169589996, 0.026100004091858864, -0.05913171544671059, -0.002114215400069952, 0.013642380014061928, 0.022457320243120193, 0.032996345311403275, -0.021679271012544632, -0.03534817695617676, 0.03936220332980156, -0.023854272440075874, 0.0074268304742872715, 0.023482929915189743, 0.03432256728410721, -0.015251526609063148, -0.016728051006793976, 0.018832320347428322, -0.02717866376042366, 0.002884527901187539, -0.044348787516355515, -0.007422409951686859, 0.015728965401649475, -0.03066219948232174, -0.02777988277375698, -0.023695126175880432, -0.025834759697318077, 0.008147410117089748, -0.05050244554877281, -0.014765246771275997, 0.04625854268670082, 0.014270124025642872, 0.03876098245382309, -0.004316845443099737, 0.014508843421936035, -0.01824878342449665, -0.0067460378631949425, -0.04618781432509422, 0.02254573628306389, 0.037240248173475266, -0.022687198594212532, -0.06928171962499619, -0.026895735412836075, 0.03731098026037216, 0.004047180525958538, 0.04905244708061218, 0.0426158607006073, -0.017567990347743034, 0.013315246440470219, 0.02657744288444519, 0.03538354113698006, 0.027726834639906883, -0.016896039247512817, -0.05050244554877281, -0.06525000929832458, 0.0466475673019886, 0.028098175302147865, 0.04788537323474884, 0.009982014074921608, -0.013987197540700436, 0.030750615522265434, -0.05708049610257149, 0.03939756751060486, -0.04286342114210129, 0.012864331714808941, 0.06125366687774658, 0.025887809693813324, -0.0426158607006073, -0.01319146528840065, -0.029866468161344528, -0.0233237836509943, 0.00294420775026083, -0.007338415831327438, -0.023288417607545853, 0.03490610420703888, -0.015454880893230438, -0.005481708329170942, 0.035401225090026855, 0.03301402926445007, -0.06125366687774658, -0.011458538472652435, -0.04622317850589752, 0.05036098510026932, 0.048168301582336426, -0.00608292780816555, 0.0049512204714119434, 0.016745734959840775, 0.013571648858487606, 0.06977684050798416, -0.018010063096880913, 0.07554147392511368, 0.03897317871451378, 0.030998175963759422, 0.0233237836509943, 0.036002445966005325, 0.0016058310866355896, 0.01197134330868721, -0.0033243908546864986, 0.016878357157111168, -0.0008741998462937772, -0.05605488643050194, -0.00481859827414155, 0.0002662109909579158, 0.01625061221420765, -0.03488842025399208, 0.02434939332306385, 0.06677073985338211, -0.018160369247198105, -0.031776223331689835, -0.015490246005356312, -0.07745122909545898, -0.05418049544095993, 0.01327988039702177, -0.03025549277663231, 0.03161707893013954, -0.059167083352804184, -0.02822195552289486, 0.04282805696129799, 0.012917379848659039, 0.045763421803712845, 0.009292379952967167, -0.022015247493982315, 0.03106890805065632, -0.00902271457016468, -0.005835366901010275, 0.06153659522533417, -0.006051982752978802, 0.064931720495224, -0.0223335400223732, 0.06776098906993866, -0.033579882234334946, -0.026276834309101105, -0.00975213572382927, -0.03124573640525341, -0.053260985761880875, 0.00016384338960051537, -0.004747866652905941, -0.04325244575738907, -0.029477443546056747, 0.002897790167480707, 0.03960976377129555, -0.028062809258699417, 0.013120734132826328, -0.009575306437909603, 0.023836588487029076, -0.0007924162782728672, 0.015888111665844917, 0.007090854924172163, 0.01147622149437666, -0.022687198594212532, 0.05495854467153549, 0.07136830687522888, -0.007634604815393686, 0.0007244475418701768, -0.011564635671675205, 0.03287256509065628, 0.03939756751060486, 0.01744421012699604, -0.03999878838658333, 0.007727440446615219, 0.005260671488940716, -0.014791770838201046, -0.007378202397376299, 0.024508541449904442, -0.03872561454772949, -0.02210366167128086, -0.07278294116258621, -0.009734452702105045, 0.07136830687522888, -0.039645127952098846, -0.04565732553601265, -0.03181159123778343, -0.0030834609642624855, 0.02068902738392353, -0.02615305222570896, -0.0007305260514840484, -0.0011239711893722415, -0.0182664655148983, 0.020353052765130997, -0.045339033007621765, 0.014906710013747215, 0.07547074556350708, -0.008045732975006104, -0.03324390947818756, 0.0017395581817254424, -0.03423415124416351, 0.011882929131388664, -0.06995367258787155, -0.004263796377927065, 0.015384148806333542, -0.04569268971681595, 0.06765489280223846, 0.03996342048048973, -0.028098175302147865, 0.01769177056849003, 0.010415245778858662, -0.029760370030999184, 0.027443906292319298, 0.04986586049199104, 0.02396037057042122, -0.015463721938431263, 0.018213417381048203, 0.045728057622909546, 0.007333995308727026, -0.005207622889429331, 0.04926464334130287, -0.007753964513540268, 0.014517685398459435, 0.010220733471214771, 0.04042317718267441, -0.02597622387111187, 0.017576832324266434, -0.021343296393752098, -0.03106890805065632, 0.0233414676040411, 0.012139331549406052, -0.007320732809603214, 0.02457927167415619, -0.04618781432509422, -0.01643628254532814, -0.02374817430973053, 0.0567975714802742, -0.010300306603312492, -0.0233414676040411, -0.018938418477773666, -0.03720488399267197, -0.04403049498796463, 0.030326224863529205, -0.029459761455655098, -0.041943907737731934, -0.04042317718267441, 0.02130793035030365, 0.02130793035030365, -0.08784879744052887, -0.04084756597876549, 0.003666997654363513, 0.00003550400651874952, 0.05520610511302948, -0.04346464201807976, 0.016896039247512817, 0.05046708136796951, -0.019557319581508636, -0.03770000487565994, 0.05502927675843239, 0.05655001103878021, 0.004062653053551912, -0.0003163586661685258, -0.03469390794634819, 0.06857439875602722, 0.041873179376125336, -0.03872561454772949, 0.004522409290075302, 0.03685122728347778, 0.023995734751224518, 0.022386588156223297, 0.042120739817619324, 0.046400006860494614, 0.05290732532739639, 0.00451135728508234, 0.01787744276225567, -0.03391585871577263, 0.036214638501405716, -0.03432256728410721, 0.03414573892951012, 0.046364642679691315, -0.017488418146967888, -0.0003356993547640741, -0.022386588156223297, -0.007055488880723715, 0.001322904136031866, -0.062208548188209534, 0.007776068523526192, 0.018832320347428322, -0.048415862023830414, 0.03527744486927986, 0.08593903481960297, 0.0052739339880645275, 0.03333232179284096, 0.006418903358280659, -0.0005885100108571351, -0.02717866376042366, -0.020795125514268875, 0.02556951716542244, 0.026718907058238983, 0.022068295627832413, -0.06029878929257393, 0.05559512972831726, -0.029282931238412857, 0.014933234080672264, 0.012351526878774166, -0.006153659429401159, -0.02617073617875576, 0.033579882234334946, 0.061784155666828156, 0.0040781255811452866, -0.04364147037267685, 0.04774390906095505, 0.013960673473775387, 0.044136591255664825, -0.01886768639087677, -0.04275732487440109, 0.08883903920650482, -0.04622317850589752, 0.040458545088768005, 0.009354270063340664, -0.07646098732948303, 0.017382320016622543, -0.022987809032201767, -0.0007145009003579617, 0.03202378749847412, 0.016692684963345528, -0.006069665774703026, -0.008425915613770485, -0.0688926950097084, -0.01308536808937788, 0.000528553850017488, -0.002787271747365594, -0.03922073915600777, -0.01946890540421009, -0.027479272335767746, 0.013058844022452831, 0.06627561897039413, -0.06337562203407288, 0.01074237935245037, -0.020441466942429543, -0.021025003865361214, 0.06938781589269638, 0.02694878540933132, 0.017364637926220894, -0.035631101578474045, 0.004418522119522095, -0.006131555885076523, -0.010653965175151825, -0.005477287340909243, -0.025251222774386406, -0.013456709682941437, -0.022775612771511078, 0.009743294678628445, -0.062031716108322144, 0.03407500684261322, 0.03485305607318878, 0.001560518518090248, -0.0005973514635115862, 0.01297927089035511, -0.056090254336595535, -0.02659512683749199, -0.04300488531589508, 0.002415930386632681, 0.005990092642605305, 0.0548524484038353, 0.04307561740279198, 0.04014024883508682, -0.01266981940716505, -0.02456158958375454, 0.019575003534555435, -0.0029862048104405403, -0.0004898724146187305, 0.011308233253657818, 0.003182927379384637, -0.047001227736473083, -0.027691468596458435, -0.01198018528521061, 0.012369208969175816, -0.05322561785578728, -0.03685122728347778, 0.003669207915663719, -0.06146586313843727, 0.011104879900813103, 0.05106830224394798, -0.005976830143481493, -0.077168308198452, -0.0015991999534890056, -0.05803537368774414, -0.0024336131755262613, 0.0014842608943581581, 0.030485371127724648, -0.005057318136096001, -0.02514512650668621, -0.00036774968612007797, -0.08424147963523865, -0.04548049345612526, -0.004867226351052523, 0.01541067287325859, -0.0026590705383569, -0.06585123389959335, -0.055913422256708145, 0.05400366708636284, 0.002953049261122942, -0.012926221825182438, 0.001249962137080729, 0.008191617205739021, -0.001091920887120068, 0.0038659304846078157, -0.05301342159509659, -0.007780489046126604, -0.03695732355117798, 0.07419757544994354, 0.028328053653240204, 0.008377287536859512, -0.042120739817619324, 0.023270735517144203, 0.06585123389959335, 0.0750463530421257, 0.05824756994843483, 0.0648609846830368, 0.011688416823744774, -0.041271958500146866, -0.043747566640377045, -0.0009869284695014358, -0.0022280490957200527, 0.002398247364908457, 0.017178965732455254, -0.039857324212789536, -0.0011958081740885973, -0.0547463521361351, 0.006971495226025581, -0.016356710344552994, -0.026718907058238983, 0.02113110013306141, 0.04792074114084244, 0.019840247929096222, -0.005238567944616079, -0.05700976401567459, 0.00044870434794574976, 0.01266981940716505, -0.03552500531077385, 0.018796954303979874, 0.015154270455241203, -0.038265861570835114, -0.023836588487029076, -0.002570655895397067, 0.04770854488015175, 0.007272104732692242, -0.022864028811454773, 0.0053225620649755, -0.013439026661217213, 0.0019119668286293745, 0.027850614860653877, -0.021431710571050644, 0.026082322001457214, -0.007776068523526192, -0.08056342601776123, -0.028858540579676628, 0.019769515842199326, 0.04933537542819977, -0.035224396735429764, 0.04611708223819733, -0.01646280847489834, -0.027532322332262993, -0.020353052765130997, 0.04134269058704376, -0.08056342601776123, -0.03812439739704132, 0.027479272335767746, 0.09180977195501328, -0.02231585793197155, -0.023659760132431984, -0.05655001103878021, 0.020052442327141762, 0.010786587372422218, -0.019239027053117752, -0.007930793799459934, 0.053685374557971954, -0.06772562116384506, 0.03879634663462639, 0.020017076283693314, -0.07154513150453568, 0.02229817397892475, -0.003976448904722929, 0.038867078721523285, 0.08898050338029861, -0.014287807047367096, -0.025675613433122635, -0.05594879016280174, -0.015242685563862324, -0.015622868202626705, -0.00883704423904419, 0.08360489457845688, 0.043323177844285965, 0.009964331053197384, -0.027302443981170654, 0.01763872243463993, 0.03363293409347534, 0.03464085981249809, -0.01580853946506977, 0.007329574320465326, 0.04205000773072243, 0.017718296498060226, 0.012413416989147663, 0.03388049453496933, 0.03149329870939255, 0.03695732355117798, 0.028062809258699417, 0.07044879347085953, -0.0010278202826157212, 0.0629512295126915, -0.008850306272506714, -0.035648785531520844, -0.05902561917901039, -0.0002195169945480302, -0.031121956184506416, 0.02212134562432766, -0.010989940725266933, -0.017815550789237022, 0.057292692363262177, 0.03147561475634575, 0.06252683699131012 ]
17,402
imodels.tree.gosdt.pygosdt_shrinkage
predict
null
def predict(self, X): return self.estimator_.predict(X)
(self, X)
[ 0.042096346616744995, -0.01913161762058735, -0.03288671001791954, -0.006330564152449369, 0.026916559785604477, -0.014840573072433472, -0.02510176971554756, 0.008709296584129333, 0.07510177791118622, 0.047320228070020676, 0.03554953262209892, -0.025729313492774963, 0.009489485993981361, -0.01887720823287964, 0.007746778894215822, -0.015052581205964088, 0.02632293663918972, -0.024135012179613113, -0.04423338919878006, 0.01048168446868658, 0.0133904367685318, -0.027747631072998047, -0.0554613396525383, -0.0077001373283565044, 0.004030275624245405, -0.00889586377888918, 0.007102274335920811, -0.0541723296046257, 0.03370082005858421, 0.023558348417282104, -0.05658074468374252, -0.03461669757962227, -0.036295801401138306, -0.00024884461890906096, -0.015340912155807018, -0.016010858118534088, -0.016341591253876686, 0.019725240767002106, 0.05508820712566376, -0.044267307966947556, -0.055427420884370804, -0.0828358381986618, -0.027374496683478355, -0.0038352280389517546, -0.024711674079298973, -0.012321915477514267, -0.03239484876394272, 0.037822261452674866, 0.048100415617227554, -0.053256455808877945, -0.031071919947862625, 0.009574289433658123, 0.010329038836061954, -0.0002660702739376575, 0.03152985870838165, 0.03098711557686329, 0.06706243008375168, 0.03402307257056236, -0.0009656972833909094, 0.006618895567953587, 0.051289018243551254, 0.02861262485384941, 0.009972864761948586, 0.02172659896314144, 0.01220319140702486, -0.024202853441238403, 0.019589556381106377, 0.03714383393526077, -0.012635687366127968, 0.001794649288058281, -0.010447762906551361, -0.047320228070020676, -0.010583448223769665, 0.013466759584844112, 0.03397219255566597, 0.04240163788199425, 0.035142477601766586, -0.01542571559548378, 0.02121777832508087, 0.0503731444478035, -0.03500679135322571, 0.0049567511305212975, -0.03290367126464844, -0.007517809979617596, -0.043249670416116714, -0.11160110682249069, -0.018588878214359283, -0.05576663091778755, -0.016239827498793602, 0.07557667791843414, 0.019521713256835938, 0.06227952241897583, -0.017367711290717125, 0.0302747692912817, 0.019979652017354965, 0.0003426582261454314, 0.008844980970025063, 0.030936233699321747, 0.01588365249335766, 0.008285279385745525, -0.01777476631104946, 0.14518320560455322, -0.03710991144180298, 0.06295794993638992, -0.021879244595766068, 0.0325305350124836, -0.00200877757743001, 0.040061067789793015, -0.017053937539458275, -0.027764592319726944, -0.020030533894896507, 0.050780199468135834, -0.027696749195456505, -0.007746778894215822, -0.06268657743930817, -0.02874830923974514, -0.014857533387839794, 0.01573948748409748, -0.10481684654951096, 0.01536635309457779, -0.024711674079298973, 0.06489146500825882, -0.047150619328022, -0.01957259513437748, -0.07401629537343979, 0.03772049769759178, 0.06153325363993645, 0.010371440090239048, -0.034972868859767914, -0.05678427219390869, -0.017070898786187172, -0.01437415461987257, -0.023999325931072235, 0.022388063371181488, 0.0022812080569565296, -0.009709974750876427, 0.07259160280227661, -0.011304276064038277, 0.030139083042740822, -0.00705987261608243, 0.05987111106514931, -0.005995591636747122, 0.07869743555784225, 0.033683858811855316, 0.049491189420223236, -0.04392809420824051, 0.02951153926551342, 0.03646540641784668, 0.024050207808613777, -0.03173338621854782, 0.0056054964661598206, 0.0065425727516412735, 0.04392809420824051, -0.07503393292427063, 0.016282228752970695, 0.019928770139813423, -0.007640774827450514, -0.0375848114490509, 0.04986432567238808, -0.026848716661334038, -0.04243555665016174, -0.011075307615101337, 0.013721169903874397, -0.013526122085750103, 0.034650616347789764, 0.05563094839453697, -0.02410108968615532, 0.04521710425615311, -0.024016287177801132, -0.02576323412358761, 0.02842605672776699, -0.015298510901629925, -0.013331074267625809, 0.010176393203437328, -0.02257463149726391, 0.0019695560913532972, 0.021455228328704834, 0.05508820712566376, 0.018063096329569817, 0.059057001024484634, 0.0408073365688324, -0.019589556381106377, -0.05505428463220596, -0.07476256787776947, -0.041078705340623856, -0.06746948510408401, -0.0031144001986831427, 0.03297151252627373, -0.05407056584954262, 0.03047829680144787, 0.020115336403250694, -0.016663843765854836, 0.029358893632888794, -0.011804616078734398, -0.010142471641302109, -0.01472184807062149, -0.022014928981661797, -0.010066148824989796, -0.005872626788914204, -0.00214976305142045, 0.0210312120616436, -0.046947091817855835, 0.029206248000264168, 0.019402988255023956, -0.06662145256996155, 0.0059913513250648975, -0.02026798203587532, 0.00038373481947928667, -0.006139757111668587, -0.0847354307770729, 0.004871948156505823, -0.008298000320792198, 0.005440129898488522, -0.01536635309457779, 0.04297829791903496, 0.026882637292146683, 0.018571916967630386, -0.04667572304606438, 0.02722185105085373, -0.04474220797419548, 0.018843287602066994, -0.019216421991586685, -0.01431479211896658, 0.05234058201313019, 0.035786982625722885, -0.04392809420824051, 0.013110586442053318, -0.013322594575583935, -0.03161466121673584, -0.07666216045618057, 0.012042065151035786, -0.015239148400723934, 0.00489314878359437, -0.05563094839453697, 0.021709637716412544, 0.027137046679854393, -0.004528495017439127, -0.009124832227826118, -0.05139078199863434, 0.03934871777892113, 0.018945051357150078, 0.028137726709246635, 0.025525785982608795, -0.004969471599906683, 0.011991183273494244, 0.024321578443050385, -0.0004269314813427627, 0.02944369614124298, 0.0168928112834692, -0.02516961097717285, 0.04413162171840668, 0.0026776634622365236, -0.022201497107744217, 0.010278156958520412, 0.01440807618200779, -0.04548847675323486, 0.07998644560575485, 0.05054274946451187, 0.0631275549530983, 0.06095659360289574, -0.04742199182510376, -0.0018709722207859159, 0.002001357264816761, 0.02913840487599373, -0.034837186336517334, 0.0022557671181857586, -0.024575987830758095, 0.027120087295770645, 0.07971508055925369, 0.008285279385745525, 0.09301222860813141, 0.01860583759844303, -0.07035279273986816, -0.062109917402267456, 0.036804620176553726, 0.009226595982909203, 0.02147218957543373, -0.009141792543232441, 0.009565808810293674, 0.025135690346360207, 0.015451156534254551, -0.07530530542135239, -0.005597015842795372, -0.0065425727516412735, -0.0325305350124836, 0.009565808810293674, 0.023812759667634964, -0.022896884009242058, 0.04894844815135002, -0.02703528292477131, 0.011931820772588253, 0.05634329468011856, -0.004070557188242674, -0.03480326384305954, 0.001579460920765996, -0.040569886565208435, -0.0032585656736046076, -0.014077343046665192, 0.04168928787112236, 0.045352790504693985, 0.017944373190402985, 0.0066231354139745235, -0.039416562765836716, -0.04966079816222191, -0.00882802065461874, 0.019012894481420517, 0.05247626453638077, -0.003684702329337597, -0.06112619861960411, -0.03198779374361038, 0.021845323964953423, 0.07042063772678375, -0.01835142821073532, -0.023626191541552544, -0.07421982288360596, -0.047320228070020676, 0.07381276786327362, 0.030359571799635887, 0.04664180055260658, 0.01612110249698162, 0.021590912714600563, 0.0025780193973332644, -0.019402988255023956, 0.006674017757177353, 0.028663506731390953, 0.006996270269155502, 0.04362280294299126, -0.0009651672444306314, -0.028850072994828224, -0.02154003083705902, 0.02332090027630329, -0.05970150604844093, 0.013746610842645168, 0.04409770295023918, -0.03161466121673584, 0.045861609280109406, -0.03239484876394272, 0.010591928847134113, -0.00796302780508995, 0.04620082303881645, -0.055936239659786224, -0.050576671957969666, -0.01586669310927391, 0.03619403764605522, -0.004799865186214447, 0.01042232196778059, 0.016392473131418228, 0.04559024050831795, 0.0065468125976622105, 0.044776126742362976, -0.05959974229335785, 0.011601087637245655, 0.05959974229335785, 0.038602448999881744, 0.004600577522069216, -0.020539352670311928, 0.0031462013721466064, 0.021014250814914703, 0.005304444581270218, -0.03453189134597778, -0.005295964423567057, -0.05444370210170746, -0.0071743568405508995, -0.019742202013731003, -0.045420631766319275, -0.03493895009160042, -0.0388738214969635, 0.0439620167016983, 0.030308689922094345, 0.028256449848413467, -0.001072761369869113, 0.020793762058019638, -0.10257803648710251, 0.08080055564641953, 0.029528500512242317, 0.027561062946915627, 0.006203359458595514, -0.01785956881940365, 0.02664518915116787, 0.02198100835084915, -0.011643489822745323, -0.0019123138627037406, -0.01816486194729805, 0.0008692335686646402, 0.043317511677742004, 0.007784940302371979, 0.038907740265131, -0.04487789049744606, 0.04850747063755989, -0.05532565712928772, -0.006843624170869589, -0.058107201009988785, -0.05454546585679054, -0.02849389985203743, -0.048982370644807816, -0.06061737984418869, 0.0016928853001445532, 0.0171981044113636, -0.020488470792770386, -0.0031546817626804113, -0.05820896849036217, 0.055732712149620056, -0.009082430973649025, -0.012372797355055809, -0.038602448999881744, -0.005804784130305052, -0.028086844831705093, -0.000442302058218047, -0.024966083467006683, -0.02306649088859558, -0.05820896849036217, 0.0631275549530983, 0.034650616347789764, -0.05878562852740288, 0.010278156958520412, 0.06814791262149811, 0.03002035804092884, 0.024575987830758095, -0.0016049019759520888, -0.019216421991586685, -0.009014587849378586, 0.00917571410536766, -0.01886024884879589, 0.0027603465132415295, 0.016027819365262985, 0.03344641253352165, -0.02276119776070118, 0.038975585252046585, 0.032157402485609055, 0.027764592319726944, -0.027323614805936813, -0.07170964777469635, -0.07109906524419785, -0.04386025294661522, -0.036227960139513016, 0.008276799693703651, -0.034837186336517334, -0.03707599267363548, -0.008912824094295502, 0.021302582696080208, -0.022727277129888535, 0.009353800676763058, 0.06862280517816544, 0.015171305276453495, 0.000007031052518868819, -0.0012243472738191485, -0.025339217856526375, -0.04966079816222191, 0.0018253905000165105, -0.06831751763820648, 0.029341932386159897, -0.01841927133500576, 0.06472185999155045, 0.03456581383943558, 0.013331074267625809, -0.026662148535251617, -0.04640435054898262, -0.08853461593389511, 0.004435211420059204, 0.03415875881910324, -0.015128904022276402, -0.0012932498939335346, 0.0022366864141076803, -0.032021716237068176, -0.00915027316659689, -0.013712689280509949, 0.0011978462571278214, 0.0073906052857637405, -0.014153665862977505, -0.010846338234841824, 0.05084804445505142, -0.05016961693763733, 0.010693692602217197, -0.006877545267343521, -0.04762551933526993, 0.05518997088074684, 0.025474904105067253, -0.0022981686051934958, 0.0006286042626015842, -0.003589298576116562, -0.006262721959501505, -0.04168928787112236, 0.013593964278697968, 0.003432412398979068, -0.01316146831959486, -0.006254241336137056, -0.032157402485609055, 0.011015945114195347, 0.0024317337665706873, -0.013560043647885323, -0.013746610842645168, 0.05430801585316658, 0.0650271475315094, 0.0178426094353199, -0.04263908416032791, 0.01245760079473257, 0.06736771762371063, 0.008234397508203983, -0.0331411175429821, -0.007237959187477827, 0.007814621552824974, 0.009701494127511978, 0.003137721214443445, -0.029850753024220467, -0.03605835139751434, 0.013237791135907173, 0.0077764601446688175, 0.006279682274907827, -0.027255771681666374, 0.026187250390648842, -0.02109905518591404, -0.017121780663728714, 0.008175035938620567, -0.003343369113281369, 0.014637044630944729, 0.04104478284716606, 0.012092947028577328, 0.02147218957543373, -0.07279513031244278, 0.023829719051718712, 0.029223207384347916, -0.009184194728732109, 0.027103126049041748, -0.04786296561360359, 0.00570301990956068, 0.09898237884044647, -0.014272390864789486, -0.022388063371181488, 0.01080393698066473, 0.06967437267303467, 0.013543082401156425, -0.026543425396084785, 0.020115336403250694, 0.0719810202717781, 0.0011225832859054208, 0.03205563873052597, 0.0337856225669384, -0.020318863913416862, -0.013984059914946556, 0.022846002131700516, -0.033107198774814606, -0.0924016460776329, -0.04531886801123619, 0.013314113952219486, 0.0376187302172184, -0.023863641545176506, -0.04748983308672905, 0.03152985870838165, -0.051017649471759796, 0.0010775316040962934, -0.04294437915086746, -0.005228121764957905, 0.017486434429883957, 0.009743896313011646, 0.055291734635829926, 0.06523067504167557, -0.008255599066615105, 0.04213026538491249, 0.013967098668217659, 0.011227953247725964, 0.003161041997373104, -0.07537315040826797, 0.059633661061525345, 0.02428765781223774, -0.009693014435470104, 0.061227962374687195, -0.052544109523296356, 0.036872461438179016, -0.013364995829761028, -0.08704207837581635, 0.07618726044893265, 0.00786974374204874, 0.011372119188308716, -0.001839171047322452, -0.011660450138151646, 0.04993216693401337, 0.01373813021928072, -0.062042076140642166, -0.05518997088074684, 0.044843971729278564, -0.00104785047005862, -0.0042104823514819145, -0.011321237310767174, -0.03734736144542694, -0.02727273292839527, -0.014628564938902855, -0.03717775642871857, 0.018571916967630386, -0.026729991659522057, -0.02269335649907589, -0.060210324823856354, -0.002329970011487603, -0.0299694761633873, 0.03856853023171425, 0.043181825429201126, -0.03297151252627373, -0.0631275549530983, -0.028900954872369766, 0.013593964278697968, -0.0816146731376648, 0.053188614547252655, 0.01964043825864792, 0.0034218120854347944, -0.00589382741600275, 0.04406378045678139, -0.019860927015542984, -0.06685890257358551, 0.02518657222390175, 0.02632293663918972, -0.011643489822745323, 0.017639080062508583, -0.038907740265131, -0.016621440649032593, -0.0071489159017801285, 0.01906377635896206, 0.0325135737657547, 0.046438273042440414, 0.007920625619590282, -0.023185214027762413, 0.06540028750896454, 0.09932159632444382, -0.03609227389097214, -0.0027624666690826416, 0.04162144660949707, -0.005715740844607353, -0.025390099734067917, 0.03850068524479866, -0.06495930999517441, 0.028544781729578972, -0.034837186336517334, 0.033616017550230026, 0.020624155178666115, 0.0055842953734099865, -0.0490841343998909, 0.06295794993638992, 0.02396540530025959, 0.013025783002376556, 0.03127544745802879, 0.018147900700569153, -0.06987790018320084, -0.06397558748722076, 0.042808692902326584, 0.008654174394905567, 0.00619911914691329, 0.011677410453557968, -0.03595658764243126, -0.029816830530762672, 0.033107198774814606, 0.046879250556230545, -0.015408754348754883, 0.006334804464131594, -0.04094301909208298, -0.05712348595261574, 0.04538671299815178, 0.017350750043988228, -0.007000510115176439, 0.002637381898239255, 0.06136364862322807, -0.005499492399394512, -0.01682497002184391, -0.07869743555784225, 0.025831077247858047, 0.012347356416285038, 0.0024508147034794092, 0.03364994004368782, 0.05339214205741882, -0.03459973633289337, -0.039552245289087296, -0.044402994215488434, -0.011906379833817482, -0.03256445750594139, 0.0148151321336627, 0.013186909258365631, -0.017350750043988228, 0.09708278626203537, -0.057089563459157944, 0.017164181917905807, -0.019419949501752853, 0.009014587849378586, 0.011304276064038277, 0.014713368378579617, 0.036804620176553726, 0.0325135737657547, -0.0023130092304199934, 0.027238812297582626, -0.029053600504994392, -0.000055519642046419904, 0.015179785899817944, -0.018317507579922676, -0.0013759330613538623, 0.008090232498943806, -0.03134328871965408, 0.03176730498671532, -0.060719143599271774, 0.004647219553589821, 0.009023068472743034, -0.017639080062508583, -0.008370082825422287, -0.01042232196778059, 0.004960991442203522, 0.0009317759540863335, -0.018775444477796555, -0.04867707937955856, -0.025322256609797478, -0.006203359458595514, 0.04450475797057152, -0.0669606626033783, -0.02498304471373558, 0.02976594865322113, -0.07727274298667908, 0.002300288761034608, 0.003127120668068528, -0.019911808893084526, -0.014162146486341953, 0.04450475797057152, 0.07910449057817459, -0.06597694754600525, 0.026170291006565094, -0.0027879076078534126, 0.05776799097657204, -0.011524764820933342, -0.02250678837299347, 0.03548169136047363, 0.03928087651729584, -0.07476256787776947, -0.007649255450814962, 0.02218453586101532, -0.031139761209487915, -0.0005952129722572863, 0.0369742289185524, 0.018113980069756508, 0.004948270972818136, -0.01310210581868887, -0.024270696565508842, -0.03843284398317337, -0.04026459529995918, -0.01726594567298889, -0.03487110510468483, 0.07557667791843414, -0.0011840657098218799, 0.042232029139995575, -0.036940306425094604, 0.017164181917905807, -0.03270014375448227, 0.035142477601766586, -0.0035087354481220245, -0.007827342487871647, -0.014187587425112724, 0.021082093939185143, -0.03397219255566597, -0.0061821588315069675, 0.02657734602689743, 0.021590912714600563, -0.023507466539740562, 0.041282232850790024, 0.025474904105067253, 0.003436652710661292, -0.002832429250702262, 0.00911635160446167, 0.005435889586806297, -0.013076664879918098, -0.04277477040886879, -0.04301222041249275, -0.04124831035733223, -0.0037059029564261436, -0.008709296584129333, 0.05111941322684288, 0.04725238308310509 ]
17,403
imodels.tree.gosdt.pygosdt_shrinkage
predict_proba
null
def predict_proba(self, X): probs = [] for i in range(X.shape[0]): sample = X[i, ...] node = self.estimator_.tree_.__find_leaf__(sample) probs.append([1 - node["probs"], node["probs"]]) return np.array(probs)
(self, X)
[ 0.04792400076985359, -0.012937691994011402, -0.03705168887972832, -0.025571389123797417, 0.02954121306538582, 0.000003702151389006758, 0.011435596272349358, -0.042487844824790955, 0.10028275847434998, 0.040806930512189865, 0.00003789466427406296, -0.028217937797307968, 0.020260408520698547, 0.012490639463067055, -0.031991057097911835, -0.026662196964025497, 0.03719474747776985, -0.03461972624063492, -0.02088628150522709, 0.06026264280080795, 0.00925398152321577, 0.05951159447431564, -0.047959763556718826, 0.011408773250877857, -0.047101423144340515, -0.013036043383181095, -0.008409053087234497, -0.03386867791414261, 0.02526739239692688, -0.012526404112577438, 0.0014093322679400444, -0.006151439156383276, -0.043525006622076035, -0.011390890926122665, 0.007425537798553705, 0.03193741291761398, 0.014761664904654026, 0.03980553150177002, 0.0108991339802742, -0.068559929728508, -0.01874043047428131, -0.08404581993818283, -0.07846660912036896, -0.003983235452324152, 0.004048058297485113, -0.027556300163269043, 0.010139144957065582, 0.0638033002614975, -0.02394411899149418, 0.005521095357835293, -0.0057446216233074665, 0.019688181579113007, 0.033314332365989685, 0.0034847722854465246, 0.016075998544692993, 0.04939033091068268, 0.020403465256094933, -0.0037306509912014008, 0.0318480022251606, 0.009209276176989079, 0.09034031629562378, 0.03701592609286308, 0.028450405225157738, -0.010908074676990509, 0.04280972480773926, -0.06305225193500519, 0.003936294931918383, 0.013688740320503712, -0.005400391295552254, -0.016067057847976685, -0.01032690703868866, -0.05035596713423729, -0.007675887085497379, 0.03680134192109108, -0.0010410728864371777, 0.04331042245030403, 0.03401173651218414, -0.02330036275088787, 0.03934059664607048, 0.06205085292458534, -0.03131153807044029, -0.020922046154737473, 0.003171835793182254, -0.039948590099811554, -0.015772003680467606, -0.07481866329908371, 0.027502654120326042, -0.026858899742364883, 0.026912545785307884, 0.03944788873195648, -0.012329701334238052, 0.056328583508729935, 0.05217994004487991, 0.04384688287973404, 0.01754233054816723, 0.008440346457064152, 0.019688181579113007, 0.03338586166501045, 0.019294774159789085, -0.01834702491760254, -0.011918412521481514, 0.08547639101743698, -0.016746576875448227, 0.03292092680931091, -0.03102542646229267, 0.07596311718225479, 0.005601564887911081, 0.04148644953966141, -0.021655211225152016, -0.0024073764216154814, -0.03259905055165291, 0.04302430897951126, 0.024659402668476105, -0.03633640706539154, -0.032384466379880905, -0.03161553665995598, -0.0072020115330815315, 0.042022909969091415, -0.036837104707956314, -0.00686225201934576, 0.029272980988025665, 0.03610394150018692, -0.04377535730600357, 0.0216909758746624, -0.0845465213060379, 0.01451131608337164, 0.06838110834360123, 0.00856105051934719, -0.0560782328248024, 0.017864208668470383, 0.014117909595370293, 0.006106733810156584, -0.05421849712729454, 0.02278178185224533, 0.02423023246228695, -0.07753673940896988, 0.031168483197689056, -0.04130762815475464, 0.09363062679767609, -0.07982564717531204, 0.052930984646081924, -0.04255937412381172, 0.059905000030994415, -0.014904721640050411, 0.0460284985601902, -0.024087175726890564, 0.05800950154662132, 0.02941603772342205, 0.02220955491065979, -0.042773958295583725, 0.0015546241775155067, 0.011069013737142086, 0.03730203956365585, -0.07546242326498032, 0.042022909969091415, 0.02780664898455143, -0.009084101766347885, -0.0709918960928917, 0.016603520140051842, -0.052644871175289154, -0.005664152093231678, 0.016630344092845917, -0.03701592609286308, -0.010076557286083698, 0.02070746012032032, 0.030936015769839287, -0.024999162182211876, 0.051822297275066376, -0.012392288073897362, -0.025285275653004646, 0.046457670629024506, -0.03399385139346123, -0.012526404112577438, 0.03633640706539154, 0.008918692357838154, 0.0139927351847291, 0.019831238314509392, 0.022942721843719482, 0.018472198396921158, 0.050034087151288986, 0.0410572774708271, -0.0011612182715907693, 0.02231684885919094, -0.07224364578723907, -0.011668063700199127, -0.0229606032371521, 0.016415758058428764, 0.03776697441935539, -0.05439731851220131, 0.03091813437640667, -0.04638614133000374, -0.03039955347776413, 0.02498127892613411, 0.04874657839536667, 0.04234478995203972, 0.03715898469090462, -0.030417434871196747, 0.021941324695944786, -0.011811120435595512, -0.012374406680464745, 0.039304833859205246, -0.05307404324412346, -0.019366303458809853, 0.033832915127277374, -0.06333836168050766, -0.0066163730807602406, -0.05028443783521652, 0.02895110286772251, 0.009477507323026657, -0.09262922406196594, 0.0000632159790256992, 0.019115954637527466, 0.06698630750179291, -0.0437038280069828, 0.03045319952070713, 0.046994131058454514, 0.04227326065301895, -0.019831238314509392, 0.002169321058318019, -0.03690863400697708, -0.00007166806608438492, -0.016022352501749992, -0.018955014646053314, 0.05196535214781761, 0.031865883618593216, -0.03563900664448738, 0.0047700474970042706, 0.014010617509484291, 0.001533389207907021, -0.00865493156015873, -0.0006107851513661444, -0.015459067188203335, 0.017792679369449615, -0.07102765887975693, 0.04953338950872421, 0.03372562304139137, -0.034530315548181534, -0.004070410504937172, -0.0636960044503212, 0.017032690346240997, 0.01810561679303646, -0.005310980603098869, 0.014100028201937675, -0.013483095914125443, 0.026894662529230118, 0.04996255785226822, 0.05393238365650177, -0.01141771487891674, 0.009557977318763733, -0.009352332912385464, -0.005673093255609274, 0.001601564697921276, -0.018195025622844696, -0.020832635462284088, 0.013143336400389671, -0.026286672800779343, 0.02768147550523281, 0.05836714059114456, 0.020796870812773705, 0.05504107475280762, -0.03776697441935539, -0.03465548902750015, -0.018123498186469078, 0.014922603964805603, 0.003527242224663496, 0.0509997196495533, 0.023640122264623642, 0.013366862200200558, 0.03513830527663231, 0.017756914719939232, 0.055470243096351624, -0.002923721680417657, -0.01850796304643154, -0.03358256444334984, 0.012115116231143475, 0.019223246723413467, -0.0054227439686656, 0.029505448415875435, 0.024677284061908722, 0.029576977714896202, 0.0028991338331252337, -0.05189382657408714, 0.0218519140034914, 0.018722549080848694, -0.00771612161770463, -0.015181894414126873, 0.00952221266925335, -0.023693768307566643, 0.017604917287826538, 0.007242246530950069, 0.007389773614704609, 0.047780945897102356, -0.025338921695947647, -0.010595138184726238, 0.02485610544681549, -0.00712154246866703, 0.030131321400403976, 0.011310421861708164, -0.0002446213911753148, 0.03628275915980339, 0.01850796304643154, 0.004121821839362383, -0.024945516139268875, -0.0408426932990551, -0.05300251394510269, 0.04170103371143341, 0.06437552720308304, -0.01570047438144684, -0.04863928630948067, -0.019884884357452393, 0.024659402668476105, 0.06430399417877197, 0.04402570426464081, 0.040055882185697556, -0.071099191904068, -0.06258731335401535, 0.059046659618616104, -0.0011265716748312116, 0.04627884924411774, -0.017050573602318764, -0.04388264939188957, 0.021887678653001785, 0.01451131608337164, 0.01868678443133831, 0.040878456085920334, 0.03701592609286308, 0.02612573280930519, -0.010246437974274158, -0.04373959079384804, -0.024659402668476105, 0.013572506606578827, -0.03698016330599785, 0.02163732796907425, 0.036246996372938156, -0.0485677570104599, 0.047387536615133286, -0.01393014844506979, 0.052001118659973145, -0.026447610929608345, -0.007139424327760935, -0.04552780091762543, -0.07145683467388153, -0.02573232725262642, 0.04981950297951698, 0.0012204525992274284, -0.016889633610844612, -0.016585638746619225, 0.03833920136094093, -0.016979044303297997, 0.02262084372341633, 0.0024364348500967026, 0.020975692197680473, 0.021494271233677864, 0.09055490046739578, 0.0019145013066008687, -0.059905000030994415, 0.03335009887814522, 0.00974573940038681, 0.00516345351934433, 0.021655211225152016, 0.02111874893307686, -0.02060016803443432, -0.006392847280949354, -0.01251746341586113, -0.02013523317873478, -0.014904721640050411, -0.023318246006965637, 0.06090639904141426, 0.000041037998016690835, 0.022871192544698715, 0.008967868052423, 0.014117909595370293, -0.06820229440927505, 0.05804526433348656, 0.008069292642176151, -0.023979881778359413, -0.03490583971142769, -0.044955573976039886, 0.04874657839536667, -0.0044213468208909035, -0.03628275915980339, -0.021154511719942093, 0.0140463812276721, 0.015387538820505142, -0.025696562603116035, 0.013545683585107327, 0.052573345601558685, -0.050034087151288986, 0.05804526433348656, -0.04123609885573387, -0.015280245803296566, -0.026054205372929573, -0.060083821415901184, -0.019795473664999008, -0.03574629873037338, -0.03644369915127754, 0.02480245940387249, 0.029272980988025665, 0.025052808225154877, 0.007085778284817934, -0.023729532957077026, 0.005145571194589138, -0.06298071891069412, -0.03687287122011185, -0.02866498939692974, -0.040234703570604324, -0.01730986312031746, 0.04234478995203972, -0.014582844451069832, 0.04431181773543358, -0.07453255355358124, 0.09041184931993484, 0.07313774526119232, -0.041736796498298645, 0.005918971728533506, 0.01638893596827984, 0.007966470904648304, 0.01810561679303646, -0.002180497394874692, -0.05196535214781761, 0.0022296730894595385, 0.01644258201122284, -0.015548476949334145, -0.031007543206214905, 0.032151997089385986, 0.008806928992271423, 0.024838222190737724, 0.031007543206214905, 0.034476667642593384, 0.05232299491763115, -0.023908354341983795, -0.05665045976638794, -0.007640122901648283, -0.05969041585922241, -0.025231629610061646, -0.02133333310484886, -0.03401173651218414, 0.02070746012032032, -0.015575299970805645, 0.006929310038685799, 0.012910868972539902, 0.047780945897102356, 0.06652137637138367, 0.04534897953271866, 0.04853199049830437, 0.011730651371181011, -0.024426935240626335, -0.05543448030948639, -0.0034445375204086304, -0.04356076940894127, -0.022334730252623558, -0.05150041729211807, 0.10250014066696167, 0.00021556300634983927, 0.016049176454544067, 0.004792400170117617, -0.07102765887975693, -0.056328583508729935, -0.01754233054816723, 0.034762781113386154, 0.03444090485572815, 0.012392288073897362, 0.04913998395204544, -0.015557418577373028, -0.017336687073111534, -0.06416093558073044, 0.009133277460932732, 0.03317127749323845, -0.009826208464801311, 0.015012014657258987, 0.028217937797307968, 0.009978205896914005, -0.018794076517224312, -0.029112042859196663, -0.028343113139271736, 0.020492875948548317, 0.003737356746569276, -0.020260408520698547, 0.018937133252620697, -0.006133556831628084, -0.0031226598657667637, -0.019241128116846085, 0.04266666620969772, 0.006687901448458433, -0.03488795831799507, -0.04452640563249588, -0.011802179738879204, -0.006513551343232393, -0.005234981887042522, -0.07539089024066925, -0.014055322855710983, -0.0015199776971712708, 0.032044705003499985, 0.07753673940896988, -0.06251578778028488, -0.03563900664448738, 0.07582005858421326, -0.008668343536555767, 0.0004911986761726439, -0.011784297414124012, 0.02884381078183651, 0.019455714151263237, 0.022138027474284172, -0.0407354012131691, -0.03467337414622307, 0.042022909969091415, -0.023228835314512253, 0.021816149353981018, -0.0380888506770134, 0.036533109843730927, -0.01585247367620468, -0.0462430864572525, -0.022245319560170174, 0.004711930640041828, 0.004653813783079386, 0.059440068900585175, 0.05847443267703056, 0.05085666477680206, -0.007613299880176783, 0.023979881778359413, 0.03581782802939415, -0.01816820353269577, 0.0053243921138346195, -0.018150322139263153, 0.016818106174468994, 0.05114277824759483, 0.0016652696067467332, -0.035442303866147995, -0.012436993420124054, 0.030328024178743362, 0.023979881778359413, -0.049640681594610214, 0.04463369771838188, 0.027323832735419273, -0.0306856669485569, 0.0432746559381485, 0.06466163694858551, -0.03676557540893555, 0.04477675259113312, 0.016469404101371765, 0.029809443280100822, -0.04477675259113312, 0.029720034450292587, 0.06072757765650749, 0.02464151941239834, 0.0159240011125803, -0.048996925354003906, 0.007018720265477896, -0.04960491880774498, 0.01461860816925764, 0.024820340797305107, -0.003422185080125928, -0.009611623361706734, 0.01197205949574709, 0.08132774382829666, 0.01706845499575138, 0.0039653535932302475, 0.01949147880077362, 0.02648337557911873, 0.01531601045280695, -0.025249511003494263, -0.10314389318227768, 0.05028443783521652, -0.019688181579113007, -0.00603073462843895, 0.02594691328704357, -0.08075551688671112, 0.05561329796910286, -0.026465492323040962, -0.045992735773324966, 0.05092819407582283, 0.005306510254740715, -0.029630623757839203, -0.03535289317369461, -0.0003783179563470185, -0.046457670629024506, -0.00004226040618959814, -0.04781670868396759, -0.05997652933001518, 0.019867001101374626, -0.01806091144680977, -0.014636490494012833, -0.040341995656490326, -0.03372562304139137, -0.021673092618584633, 0.014779547229409218, -0.04799553006887436, 0.025750208646059036, -0.006227437872439623, -0.04341771453619003, -0.060083821415901184, -0.019974295049905777, -0.007447890471667051, 0.0016842694021761417, 0.017148924991488457, -0.03115059994161129, -0.033779267221689224, -0.02549985982477665, -0.036425817757844925, -0.056149762123823166, 0.05554177239537239, 0.04695836827158928, 0.06212238222360611, 0.03479854762554169, 0.04288125038146973, -0.029487567022442818, -0.024945516139268875, -0.01482425257563591, 0.02490975148975849, 0.014341436326503754, -0.0027694886084645987, 0.005838502198457718, -0.005628387909382582, 0.010237496346235275, -0.05732997879385948, 0.0033551270607858896, -0.021011454984545708, 0.014439787715673447, -0.00614249799400568, 0.03658675774931908, 0.007452360820025206, -0.03236658126115799, 0.04996255785226822, 0.028879575431346893, -0.036193348467350006, -0.04817435145378113, 0.008596815168857574, -0.08576250076293945, 0.01367085799574852, -0.013089689426124096, 0.03773121163249016, 0.00023498183873016387, 0.024015646427869797, -0.03131153807044029, 0.03701592609286308, -0.0033305392134934664, -0.0063973176293075085, 0.00032020118669606745, -0.021708857268095016, -0.056328583508729935, -0.10207097232341766, -0.016585638746619225, -0.011346186511218548, -0.012302878312766552, 0.037123218178749084, -0.056614696979522705, -0.06230119988322258, 0.025857502594590187, 0.038625314831733704, -0.01058619748800993, 0.021476389840245247, -0.08769376575946808, -0.0319552943110466, 0.03381503373384476, -0.024033529683947563, 0.013831797055900097, -0.004662754945456982, 0.08526180684566498, -0.03880413621664047, -0.019241128116846085, -0.0513215996325016, -0.02705560252070427, -0.009754680097103119, 0.008547638542950153, 0.019813355058431625, 0.05128583312034607, -0.015441184863448143, -0.03395808860659599, -0.047673650085926056, 0.00024783459957689047, 0.022334730252623558, 0.0460284985601902, -0.02728806994855404, -0.0334395095705986, 0.07278010249137878, -0.045992735773324966, -0.004425817169249058, -0.006705783773213625, -0.007058954797685146, 0.004595696926116943, 0.026984073221683502, 0.004796870518475771, 0.028343113139271736, -0.04141492024064064, 0.03912601247429848, -0.016764460131525993, 0.02451634593307972, 0.02376529760658741, 0.013572506606578827, 0.0016507403925061226, -0.0014484493294730783, -0.02542833238840103, 0.05600670725107193, -0.008154232986271381, -0.05057055130600929, 0.053503211587667465, 0.03392232581973076, 0.0005370214930735528, 0.007483654655516148, -0.055577535182237625, 0.0007465772796422243, -0.029809443280100822, -0.06598491221666336, 0.016227995976805687, -0.014779547229409218, 0.068559929728508, -0.047208718955516815, -0.024480581283569336, 0.00438334746286273, -0.013313216157257557, -0.03898295760154724, 0.01286616362631321, -0.032742105424404144, -0.05625705420970917, -0.0057133277878165245, 0.08526180684566498, -0.021208159625530243, 0.0030399553943425417, -0.052859459072351456, 0.014153674244880676, -0.02514221891760826, 0.013286393135786057, 0.0280927624553442, 0.059905000030994415, -0.09112712740898132, -0.0036725341342389584, 0.06305225193500519, -0.04828164353966713, -0.031240010634064674, -0.019187482073903084, -0.004086057655513287, -0.006012852769345045, -0.040520817041397095, -0.07868119329214096, -0.030310142785310745, -0.035263482481241226, -0.015271305106580257, -0.06258731335401535, 0.026465492323040962, -0.01485107559710741, -0.005409331992268562, -0.014529198408126831, 0.017837384715676308, 0.019241128116846085, 0.019867001101374626, 0.008105057291686535, -0.023640122264623642, -0.0032053645700216293, 0.03923330456018448, -0.09606258571147919, 0.00588320754468441, 0.02358647622168064, 0.012910868972539902, -0.003413243917748332, 0.020635932683944702, -0.0024230231065303087, 0.032616931945085526, -0.0408426932990551, -0.053538978099823, -0.03658675774931908, -0.05622129142284393, -0.02514221891760826, -0.017336687073111534, -0.010461023077368736, 0.005968147423118353, -0.014412964694201946, 0.03535289317369461, 0.010648784227669239 ]
17,404
imodels.tree.gosdt.pygosdt_shrinkage
score
null
def score(self, X, y, weight=None): self.estimator_.score(X, y, weight)
(self, X, y, weight=None)
[ 0.03518129885196686, -0.001396781299263239, -0.002563208807259798, 0.0129919508472085, 0.008079133927822113, -0.03248406574130058, -0.014415956102311611, 0.03038994036614895, 0.03305366635322571, 0.06118195131421089, 0.014499721117317677, -0.03198147565126419, 0.04737748205661774, 0.0024417496751993895, -0.027206869795918465, 0.008895842358469963, 0.024543143808841705, -0.017406366765499115, -0.03769424930214882, 0.03802930936217308, -0.012288324534893036, -0.09830659627914429, 0.013402399607002735, 0.017506884410977364, -0.019584255293011665, -0.011098861694335938, 0.02980358526110649, -0.04801409691572189, 0.001153862802311778, -0.007006941828876734, -0.02085748314857483, -0.056223064661026, -0.03409235179424286, 0.025464558973908424, 0.02990410290658474, -0.02789374440908432, -0.034293390810489655, 0.0193497147411108, 0.016149891540408134, -0.02963605523109436, -0.045132581144571304, -0.017992721870541573, 0.019751785323023796, 0.02871464006602764, -0.018914135172963142, 0.03501376882195473, -0.034444164484739304, 0.04010668024420738, 0.05682617425918579, -0.08456914126873016, -0.024224836379289627, -0.06510215252637863, -0.004114955198019743, 0.02058943547308445, 0.026486491784453392, 0.0561225488781929, 0.06329283118247986, 0.018813617527484894, 0.056223064661026, -0.03819683939218521, 0.0690893679857254, -0.025045733898878098, -0.009691610001027584, -0.0008680147584527731, -0.006403834093362093, -0.05273844301700592, -0.03060773015022278, 0.047746047377586365, -0.01998632773756981, 0.028195297345519066, 0.0024312790483236313, -0.0010502036893740296, 0.03819683939218521, -0.023504458367824554, -0.016543585807085037, 0.07391422986984253, -0.036521539092063904, 0.030792012810707092, 0.013863107189536095, 0.019584255293011665, 0.03271860629320145, 0.014600238762795925, 0.024543143808841705, -0.05491632968187332, -0.0645325556397438, -0.05367660894989967, 0.011844370514154434, -0.018662840127944946, 0.034125860780477524, 0.04332325607538223, 0.013854729942977428, 0.04898576810956001, 0.030205657705664635, -0.005742090288549662, 0.048784732818603516, 0.008485394529998302, -0.020237622782588005, -0.02450963854789734, -0.020656447857618332, 0.04245210066437721, -0.03045695275068283, 0.08785272389650345, 0.03193121775984764, 0.03404209390282631, 0.0030888342298567295, -0.022247983142733574, 0.0016313232481479645, 0.00800374522805214, -0.004351591691374779, 0.03188095614314079, -0.05310700833797455, -0.02958579733967781, -0.043993376195430756, -0.017406366765499115, -0.0517667680978775, -0.009004737250506878, -0.01541275903582573, 0.020120352506637573, -0.01867959462106228, 0.05344206839799881, -0.024878203868865967, 0.07143478840589523, -0.00027328330907039344, -0.023738998919725418, -0.028999442234635353, -0.025699101388454437, 0.011040226556360722, 0.011048602871596813, -0.024660414084792137, -0.0431557260453701, -0.011986770667135715, -0.022532783448696136, -0.007417390588670969, 0.00040181021904572845, -0.0007706379401497543, 0.0015632642898708582, 0.034611694514751434, -0.0007114789332263172, 0.0675145834684372, -0.010009917430579662, 0.09529105573892593, -0.0032291405368596315, 0.03812982514500618, -0.025481311604380608, 0.07793495059013367, -0.0051808650605380535, 0.0003876748669426888, 0.05947314575314522, 0.01129989791661501, 0.008996360935270786, -0.01073029637336731, 0.026235196739435196, 0.06134948134422302, -0.04352429136633873, 0.03094279021024704, -0.012455854564905167, 0.0025129499845206738, -0.03585141897201538, 0.06034430116415024, -0.0096748573705554, 0.01053763646632433, -0.026670774444937706, 0.023822763934731483, 0.006026891525834799, 0.03174693509936333, 0.0715688094496727, -0.06094741076231003, 0.06858678162097931, -0.07411526888608932, -0.03409235179424286, -0.024811191484332085, -0.1058119460940361, -0.09636325389146805, 0.03655504435300827, 0.03725866973400116, -0.000010936894796031993, 0.0034720590338110924, 0.027474919334053993, 0.012790914624929428, 0.034678708761930466, 0.06108143553137779, -0.01846180483698845, -0.041815485805273056, -0.04888525232672691, -0.01971828006207943, -0.02631896175444126, 0.01764090731739998, 0.029233982786536217, -0.05876952037215233, 0.03621998429298401, 0.026402726769447327, -0.05873601511120796, -0.01589859649538994, -0.02755868434906006, 0.023772506043314934, 0.00701112998649478, 0.009364926256239414, -0.016685986891388893, 0.004301332402974367, 0.02337043359875679, 0.054346729069948196, -0.07056362926959991, 0.036521539092063904, 0.002793562598526478, 0.0060687740333378315, 0.028011014685034752, -0.025028981268405914, 0.02789374440908432, -0.03394157811999321, -0.06563825160264969, -0.01133340410888195, -0.010696790181100368, -0.0411788709461689, 0.02276732586324215, 0.04509907215833664, 0.01765766181051731, 0.023889776319265366, -0.03993915021419525, 0.00740901380777359, -0.02238200604915619, 0.023772506043314934, 0.0007748262141831219, -0.01743987202644348, 0.03121083788573742, 0.06791666150093079, -0.05752979964017868, 0.05069457367062569, -0.012908185832202435, -0.006244680378586054, -0.03658854961395264, 0.028396332636475563, -0.03635400906205177, 0.017356107011437416, -0.04566867649555206, -0.044160906225442886, -0.0051180412992835045, -0.009457067586481571, 0.04047524556517601, -0.08577535301446915, 0.05407867953181267, 0.008414193987846375, 0.007714756298810244, -0.0013475693995133042, -0.020522423088550568, -0.04690839722752571, -0.003972555045038462, 0.040441740304231644, -0.02238200604915619, 0.01720532961189747, 0.01563054881989956, 0.012372089549899101, -0.0004290338256396353, -0.05092911794781685, -0.03769424930214882, -0.029569042846560478, 0.0312778502702713, 0.00885395985096693, 0.014692380093038082, -0.01732260175049305, 0.010671660304069519, -0.05448075383901596, 0.03340547904372215, -0.03621998429298401, 0.02827906236052513, -0.029334502294659615, 0.025916889309883118, 0.013938494957983494, -0.0040395669639110565, 0.029049700126051903, 0.02521326392889023, 0.025079239159822464, -0.005494983866810799, 0.021259555593132973, 0.011718722991645336, -0.024576649069786072, -0.005683455150574446, 0.002299349056556821, 0.005771408323198557, 0.03060773015022278, 0.016300668939948082, 0.04700891673564911, -0.02750842459499836, -0.02342069335281849, -0.0072037894278764725, -0.0027705272659659386, 0.027056094259023666, 0.016903776675462723, 0.020237622782588005, 0.00512222945690155, -0.024208083748817444, -0.005917997099459171, 0.030105140060186386, 0.038967475295066833, 0.007785956375300884, 0.03422637656331062, -0.05072808265686035, -0.007279178127646446, 0.0040039666928350925, 0.03675607964396477, 0.05551943928003311, 0.008594288490712643, 0.014047389850020409, -0.020070092752575874, -0.03923552483320236, 0.034678708761930466, 0.02777647227048874, 0.07257398962974548, -0.009029866196215153, -0.02119254320859909, 0.0010276917601004243, 0.042686641216278076, 0.06587279587984085, -0.07378020882606506, -0.001903559546917677, -0.05334154888987541, -0.006944118067622185, 0.03863241523504257, -0.004401850514113903, 0.0024291849695146084, -0.005557807628065348, -0.005515925120562315, -0.031780440360307693, 0.010303094051778316, -0.024777686223387718, -0.03360651805996895, -0.01628391444683075, -0.0184115469455719, 0.030306175351142883, -0.032450560480356216, -0.03923552483320236, 0.02042190544307232, -0.033640023320913315, 0.06831873208284378, -0.03809631988406181, 0.00763936759904027, 0.037560224533081055, -0.0031558461487293243, 0.022633301094174385, -0.025615336373448372, 0.038598909974098206, -0.0630582869052887, -0.01279929094016552, -0.016367679461836815, 0.024157823994755745, 0.0007486496469937265, 0.0053065125830471516, -0.03621998429298401, 0.017959214746952057, 0.052604418247938156, -0.03796229511499405, -0.03655504435300827, -0.004540062975138426, 0.03977162018418312, 0.014072519727051258, -0.015228476375341415, 0.023303421214222908, 0.005168300122022629, -0.025179756805300713, 0.0050552175380289555, -0.05203481391072273, -0.06443203240633011, -0.0692904070019722, -0.025514816865324974, 0.02353796362876892, -0.03420962393283844, 0.007367131300270557, 0.021812405437231064, 0.019265949726104736, 0.013854729942977428, -0.014700756408274174, -0.0024773497134447098, -0.04422791674733162, -0.09689934551715851, 0.05126417800784111, 0.00672632921487093, 0.0521688386797905, -0.01010205876082182, -0.015136335045099258, 0.0713677778840065, 0.005423783324658871, 0.06480059772729874, 0.021477345377206802, -0.004540062975138426, -0.01689540036022663, 0.004762039985507727, -0.004523309879004955, 0.012874679639935493, -0.0041379909962415695, -0.028178544715046883, -0.04727696254849434, 0.0585014745593071, 0.002422902500256896, -0.028195297345519066, -0.04928732290863991, -0.04010668024420738, -0.002074230695143342, 0.017305847257375717, 0.010939707979559898, -0.05344206839799881, 0.009004737250506878, -0.021728640422225, 0.01889738254249096, -0.05732876434922218, -0.004431168083101511, -0.03420962393283844, 0.03735918924212456, -0.04406038671731949, 0.0627567321062088, -0.03558336943387985, 0.0432562455534935, -0.049555372446775436, 0.02625194936990738, -0.00028715687221847475, 0.011869499459862709, -0.05746278539299965, 0.013058963231742382, 0.057998884469270706, 0.02658700942993164, 0.02886541746556759, 0.0072372956201434135, 0.017339354380965233, 0.0017119471449404955, 0.0073294369503855705, 0.027525177225470543, 0.06734705716371536, -0.07297606766223907, -0.042519111186265945, -0.0690893679857254, 0.06379541754722595, -0.01207053568214178, -0.05732876434922218, -0.05039302259683609, -0.06801717728376389, -0.01911517232656479, 0.00034160411451011896, -0.025297028943896294, -0.035650383681058884, -0.0035998006351292133, 0.024576649069786072, -0.021728640422225, 0.023822763934731483, -0.02871464006602764, 0.05997573584318161, -0.012003524228930473, -0.03353950381278992, -0.024643661454319954, 0.015261982567608356, -0.018813617527484894, -0.0778009295463562, -0.03447767347097397, 0.01709643565118313, -0.0024438437540084124, 0.03258458152413368, 0.09261058270931244, -0.03883345052599907, 0.0008345087990164757, -0.052972983568906784, -0.06989350914955139, 0.08108451217412949, 0.002540173474699259, 0.01867959462106228, 0.0004751045780722052, -0.029351254925131798, -0.04509907215833664, -0.07505343854427338, 0.015764571726322174, 0.00005497078018379398, -0.02259979583323002, 0.05716123431921005, 0.0004675133968703449, 0.05193429812788963, -0.0410783551633358, -0.011643334291875362, -0.036789584904909134, -0.012975198216736317, 0.06557124108076096, 0.005231123883277178, -0.026788044720888138, 0.013829600997269154, -0.0108643202111125, 0.026134679093956947, 0.011249639093875885, 0.031947970390319824, -0.001402016612701118, 0.03977162018418312, -0.023621728643774986, -0.0368230938911438, -0.046707361936569214, 0.030473705381155014, -0.0029652807861566544, 0.006056209094822407, 0.025983901694417, 0.07009454816579819, -0.023018620908260345, -0.08074945956468582, 0.011727099306881428, 0.05498334392905235, 0.015571912750601768, -0.033154185861349106, 0.005293947644531727, 0.017071306705474854, 0.009733492508530617, -0.057060714811086655, -0.012539619579911232, -0.003497188678011298, 0.009004737250506878, 0.014466214925050735, 0.0140557661652565, -0.02390652894973755, 0.06969247758388519, -0.02353796362876892, -0.0049002524465322495, 0.021929675713181496, 0.009465444833040237, 0.036421019583940506, -0.025095993652939796, -0.01083919033408165, 0.05873601511120796, 0.007417390588670969, -0.011986770667135715, 0.027173364534974098, -0.013611812144517899, 0.04389285668730736, -0.028413087129592896, 0.07451733946800232, 0.03191446512937546, -0.026134679093956947, 0.007794332690536976, 0.06302478164434433, 0.04590321704745293, 0.054447248578071594, 0.012916562147438526, -0.019869057461619377, 0.03856540471315384, -0.020003080368041992, 0.008728312328457832, 0.03601894900202751, -0.03839787468314171, -0.03732568025588989, 0.006156727205961943, -0.005214370787143707, -0.024610156193375587, -0.005226935725659132, -0.01133340410888195, 0.05032600834965706, 0.03427663445472717, -0.04821513220667839, -0.004678274970501661, -0.03176368772983551, -0.031679920852184296, -0.014968805015087128, -0.0036207418888807297, -0.0065420460887253284, 0.04372532665729523, 0.07431630790233612, 0.05709422007203102, -0.03164641559123993, 0.03404209390282631, 0.027307389304041862, 0.014348943717777729, -0.0066383760422468185, -0.044965051114559174, 0.03645452484488487, -0.008234099484980106, 0.028781652450561523, 0.015814831480383873, -0.02936800755560398, 0.009214149788022041, -0.020656447857618332, -0.07243996858596802, -0.001399922533892095, 0.014122778549790382, 0.012171054258942604, -0.0010161740938201547, -0.03278562054038048, 0.0821567103266716, 0.01127476803958416, -0.07585757970809937, -0.06439852714538574, 0.012782538309693336, -0.02975332736968994, -0.033908069133758545, 0.039470065385103226, -0.019249195232987404, -0.02523001655936241, -0.004699216224253178, -0.03261809051036835, 0.014407578855752945, -0.05334154888987541, 0.021041767671704292, -0.021125532686710358, -0.013385646045207977, -0.010236082598567009, -0.015932101756334305, -0.013544799759984016, -0.014499721117317677, -0.09006412327289581, -0.03575089946389198, 0.058467965573072433, -0.009733492508530617, -0.001153862802311778, 0.002548550022765994, 0.012807668186724186, -0.04265313595533371, 0.03655504435300827, 0.019651267677545547, -0.023018620908260345, 0.01613313890993595, 0.005373524501919746, -0.011819240637123585, -0.0062865628860890865, -0.001509863999672234, 0.024911709129810333, -0.003830154426395893, 0.023621728643774986, 0.02651999704539776, 0.04613776132464409, 0.002791468519717455, -0.019215689972043037, 0.023722246289253235, 0.03372378647327423, -0.006860353052616119, 0.015320617705583572, 0.037560224533081055, 0.0012952162651345134, -0.005993385333567858, 0.006198609713464975, -0.08845583349466324, 0.016208525747060776, -0.007911603897809982, -0.019584255293011665, -0.0312778502702713, 0.01677812822163105, -0.051130153238773346, 0.04288767650723457, -0.0347457192838192, 0.03541583940386772, -0.010110435076057911, -0.019567502662539482, -0.0800793394446373, -0.05716123431921005, 0.07083167880773544, 0.04640580713748932, 0.0027474919334053993, -0.0290999598801136, 0.004313897341489792, -0.0755225196480751, 0.04074329510331154, 0.05092911794781685, -0.011182626709342003, 0.011366910301148891, -0.06466657668352127, -0.04875122755765915, 0.029669562354683876, 0.03916851058602333, 0.049052782356739044, 0.03611946478486061, 0.01392174232751131, 0.006722141057252884, -0.016535209491848946, -0.07981128990650177, 0.045400626957416534, 0.06567175686359406, 0.04466349631547928, -0.034511178731918335, 0.035549864172935486, -0.008996360935270786, -0.061315976083278656, -0.028262309730052948, -0.04754501208662987, -0.01661897450685501, 0.058970555663108826, -0.018042979761958122, 0.013829600997269154, -0.0009842386934906244, -0.01862933486700058, -0.01329350471496582, -0.0193497147411108, -0.045400626957416534, -0.012673643417656422, 0.07625965029001236, 0.05464828386902809, 0.0007585967541672289, -0.01266526710242033, 0.08054842054843903, 0.006826847326010466, -0.04228457063436508, 0.06014326587319374, 0.0018794770585373044, -0.033103927969932556, -0.0584009550511837, -0.046874891966581345, 0.014223296195268631, -0.06516916304826736, 0.009373302571475506, 0.00659230537712574, -0.03427663445472717, -0.020823977887630463, 0.044160906225442886, -0.0024061494041234255, -0.03323794901371002, 0.031127072870731354, -0.024978721514344215, -0.0015318524092435837, 0.01073029637336731, 0.0016082879155874252, -0.06962546706199646, 0.03689010441303253, 0.030741753056645393, -0.09696635603904724, -0.01993606984615326, -0.058635495603084564, -0.06496813148260117, 0.022147465497255325, 0.038766440004110336, 0.09307966381311417, -0.016803259029984474, -0.0007596437935717404, 0.004778793081641197, 0.025849876925349236, 0.007249860558658838, -0.009607844986021519, -0.010939707979559898, -0.04881823807954788, -0.017029423266649246, -0.012196183204650879, 0.05109664797782898, -0.04174847528338432, 0.036689069122076035, 0.0069566830061376095, 0.010696790181100368, -0.05136469379067421, 0.007032071240246296, -0.028463345021009445, -0.018696347251534462, 0.006458281073719263, -0.014759392477571964, -0.0539446584880352, 0.12484335154294968, 0.035650383681058884, 0.02370549365878105, -0.0064415279775857925, -0.0011004626285284758, -0.04640580713748932, 0.015463017858564854, -0.015571912750601768, -0.018378039821982384, 0.0022511843126267195, 0.027391154319047928, 0.018009474501013756, -0.00855240598320961, 0.023454198613762856, 0.06828522682189941, 0.011936511844396591, 0.05002445727586746, 0.020522423088550568, 0.0041044848039746284, -0.04359130561351776, 0.010252835229039192, -0.0009172267164103687, 0.02789374440908432, -0.020070092752575874, -0.0346452035009861, -0.023738998919725418, -0.024643661454319954, 0.025514816865324974, 0.042184051126241684, 0.0977034941315651 ]
17,406
sklearn.utils._metadata_requests
set_score_request
Request metadata passed to the ``score`` 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 ``score`` 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 ``score``. - ``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 ---------- weight : str, True, False, or None, default=sklearn.utils.metadata_routing.UNCHANGED Metadata routing for ``weight`` parameter in ``score``. 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.tree.gosdt.pygosdt_shrinkage.HSOptimalTreeClassifier, *, weight: Union[bool, NoneType, str] = '$UNCHANGED$') -> imodels.tree.gosdt.pygosdt_shrinkage.HSOptimalTreeClassifier
[ 0.043795470148324966, -0.05825444683432579, -0.01912960410118103, 0.004656360484659672, -0.0028822822496294975, -0.017217595130205154, -0.01160522922873497, 0.010007131844758987, 0.05696074664592743, 0.010863255709409714, -0.021441137418150902, 0.006568369455635548, 0.05129130929708481, -0.0053602843545377254, -0.019862065091729164, 0.03749820962548256, 0.029926272109150887, 0.023838281631469727, 0.030116520822048187, -0.03367419168353081, 0.019158141687512398, -0.042768124490976334, -0.028746724128723145, 0.014944110997021198, 0.008475622162222862, 0.06552198529243469, 0.03799285739660263, -0.04543161764740944, 0.08995003998279572, -0.006516051013022661, -0.025227105244994164, -0.014230674132704735, 0.014658736065030098, 0.06285848468542099, 0.02895599789917469, -0.031581442803144455, -0.010768130421638489, 0.022734833881258965, -0.06259214133024216, -0.015258022584021091, -0.03723185881972313, -0.02665397711098194, 0.048589762300252914, -0.09664683043956757, 0.05947204306721687, 0.031923893839120865, -0.005403090268373489, 0.10509391129016876, -0.01920570246875286, -0.01769321784377098, 0.013203326612710953, -0.011253267526626587, 0.015096310526132584, -0.005103447008877993, -0.005854933522641659, 0.05737929791212082, 0.055629000067710876, 0.044099871069192886, 0.05947204306721687, 0.028004750609397888, 0.027262777090072632, 0.03473958745598793, 0.0323614664375782, -0.008361472748219967, -0.043529123067855835, -0.03875385597348213, -0.04638286679983139, -0.013878712430596352, 0.008604041300714016, 0.031695593148469925, 0.02868964895606041, -0.01795956864953041, 0.005479190032929182, 0.026673002168536186, 0.021555285900831223, -0.026406653225421906, -0.04048512876033783, -0.0524708554148674, 0.05304160714149475, -0.04170272499322891, 0.017055882140994072, -0.017217595130205154, -0.027053501456975937, -0.08104635775089264, -0.00908917747437954, -0.03209511935710907, -0.008394766598939896, -0.049236610531806946, 0.03938167914748192, 0.0030487508047372103, -0.08553624898195267, 0.05148155987262726, -0.016190245747566223, -0.0029940539970993996, 0.00950772687792778, -0.030611170455813408, 0.001879904419183731, -0.05836859717965126, 0.0024423301219940186, -0.02661592699587345, 0.000711652624886483, 0.0358240120112896, 0.06643518060445786, 0.07575741410255432, 0.037022583186626434, -0.05053031072020531, -0.01671343296766281, -0.008627821691334248, -0.011205704882740974, -0.0038549336604774, 0.01147205475717783, -0.010863255709409714, -0.05951009318232536, 0.019034478813409805, 0.001326991361565888, 0.0010624254355207086, -0.019671814516186714, -0.043338872492313385, -0.05091080814599991, -0.015039235353469849, -0.026787152513861656, 0.011082042939960957, -0.02539832890033722, -0.06365753710269928, 0.0006884659524075687, 0.004285373724997044, 0.00964090134948492, 0.013431626372039318, 0.0448228195309639, -0.0724090188741684, -0.0316004678606987, -0.006772887893021107, -0.03896313160657883, 0.09291793406009674, 0.044023770838975906, 0.016190245747566223, 0.04744826629757881, 0.02045183815062046, -0.01198572851717472, 0.05905349552631378, -0.0030011883936822414, 0.02014743909239769, 0.03671818599104881, -0.021384062245488167, -0.0013472053688019514, -0.05079665780067444, 0.026996426284313202, -0.00018266940605826676, 0.02562662959098816, -0.034187864512205124, 0.02593102864921093, -0.018321042880415916, 0.002770510734990239, -0.012689651921391487, -0.0026896544732153416, 0.0019322230946272612, 0.023077283054590225, -0.004815694410353899, 0.011291317641735077, -0.0181878674775362, -0.004777644760906696, -0.005664683412760496, -0.012166465632617474, -0.09139593690633774, 0.03519618883728981, 0.021460162475705147, -0.006168845109641552, -0.048513662070035934, -0.038278233259916306, 0.03553863614797592, -0.060917939990758896, -0.027719374746084213, -0.033769313246011734, 0.006782400421798229, 0.03531033545732498, 0.03930557891726494, 0.017141494899988174, 0.005560046527534723, 0.008570747449994087, 0.028061825782060623, 0.013821638189256191, -0.05266110599040985, -0.08553624898195267, -0.03578596189618111, 0.006354338489472866, 0.0712675228714943, 0.006321045104414225, 0.0018953622784465551, -0.043681323528289795, 0.04562186822295189, 0.029393572360277176, -0.008394766598939896, 0.05365040525794029, 0.03435909003019333, -0.03121996857225895, -0.04801901429891586, -0.05901544541120529, 0.048741962760686874, 0.013821638189256191, 0.07678475975990295, 0.05836859717965126, 0.009036858566105366, 0.0188632532954216, 0.049046363681554794, 0.006092745345085859, 0.049921512603759766, 0.03643281012773514, -0.00011429842561483383, -0.05239475518465042, -0.01306063961237669, 0.01319381408393383, -0.02661592699587345, 0.018121279776096344, -0.008432815782725811, 0.003938167821615934, -0.010901305824518204, 0.01776931807398796, -0.015562422573566437, -0.012004753574728966, -0.022963134571909904, 0.09291793406009674, 0.04809511452913284, 0.03367419168353081, 0.019785964861512184, 0.02593102864921093, -0.031086795032024384, 0.055514849722385406, -0.05193815752863884, -0.03664208576083183, -0.07906775921583176, 0.0047134351916611195, 0.0007657548994757235, 0.01874910481274128, 0.043833520263433456, -0.034682512283325195, -0.0199191402643919, 0.03624255955219269, 0.03856360539793968, -0.013412601314485073, -0.0066682505421340466, -0.0059310332871973515, 0.049426861107349396, 0.05007370933890343, 0.03308441489934921, -0.054982151836156845, -0.01700831949710846, -0.004568370059132576, 0.06784302741289139, 0.042844224721193314, -0.0018620685441419482, 0.042768124490976334, -0.02581687830388546, -0.05186205729842186, -0.0028228294104337692, -0.03110582008957863, -0.034035664051771164, -0.0421212762594223, 0.00029563013231381774, 0.042920324951410294, -0.015362660400569439, -0.030744345858693123, 0.012185490690171719, 0.0018156951991841197, 0.04143637418746948, 0.0181022547185421, 0.01181450393050909, 0.043186672031879425, 0.013888224959373474, -0.055743150413036346, 0.0048061818815767765, -0.009555289521813393, 0.04501307010650635, -0.0015398331452161074, 0.01765516772866249, -0.01821640506386757, -0.05231865495443344, -0.00009832042997004464, -0.024428056553006172, -0.043300822377204895, -0.012328177690505981, 0.0501878596842289, -0.02366705797612667, 0.043300822377204895, 0.006049938965588808, -0.01436384953558445, -0.030687270686030388, -0.0045398324728012085, 0.05368845537304878, 0.012233053334057331, -0.020889412611722946, 0.011063017882406712, 0.007714623585343361, -0.005854933522641659, -0.042577873915433884, 0.032152190804481506, -0.0034791906364262104, -0.0731319710612297, 0.0012354337377473712, 0.001750296913087368, -0.01151010487228632, 0.02094648778438568, -0.001134363585151732, -0.03297026455402374, -0.01780736818909645, 0.05281330645084381, -0.021555285900831223, 0.08104635775089264, -0.008028536103665829, -0.01173840370029211, 0.00571700232103467, 0.00392152089625597, 0.04531746730208397, -0.03356004133820534, -0.04459451884031296, -0.0012282993411645293, -0.0026611171197146177, -0.013926275074481964, 0.01822591759264469, 0.04018072783946991, 0.1041807159781456, -0.014420924708247185, 0.04737216606736183, -0.03428298979997635, -0.007400711998343468, -0.013878712430596352, -0.012156953103840351, -0.0035267530474811792, -0.004185492638498545, -0.038278233259916306, 0.0008757429895922542, -0.031277045607566833, -0.0038692024536430836, 0.022658733651041985, 0.024694405496120453, -0.08606894314289093, 0.03129607066512108, -0.004152198787778616, -0.023457782343029976, 0.01457312423735857, -0.012385252863168716, 0.03496788814663887, -0.017493456602096558, -0.006225920282304287, -0.012756239622831345, -0.03641378507018089, -0.011272292584180832, 0.05193815752863884, -0.0023043989203870296, 0.07914385944604874, -0.023381683975458145, 0.021422112360596657, -0.03814505785703659, 0.05216645821928978, 0.049084413796663284, 0.08439475297927856, -0.006677763070911169, -0.013793100602924824, -0.04588821902871132, -0.007467299234122038, -0.07092507183551788, 0.028442325070500374, -0.048475611954927444, -0.0036313903983682394, 0.0061355517245829105, 0.010882280766963959, -0.0009476811392232776, -0.025455404072999954, 0.0038049931172281504, 0.02589297853410244, -0.05658024922013283, 0.0034672999754548073, -0.09839712083339691, -0.054373353719711304, 0.023952431976795197, 0.01919618993997574, 0.0021189055405557156, -0.03991437703371048, -0.01795005612075329, -0.05075860768556595, 0.0287276990711689, 0.03213316947221756, 0.022183110937476158, -0.0050368597730994225, 0.011338879354298115, 0.01043519377708435, -0.04569796845316887, 0.025797853246331215, 0.016152195632457733, 0.03843042999505997, -0.017750293016433716, 0.021916760131716728, -0.05273720622062683, -0.014278236776590347, 0.010663493536412716, -0.018958378583192825, -0.06985967606306076, 0.026292502880096436, -0.010311531834304333, 0.007234243210405111, -0.042653974145650864, 0.054449453949928284, -0.05650414898991585, 0.013013076968491077, 0.024561231955885887, 0.034530311822891235, 0.009707489050924778, 0.03829725831747055, 0.026901302859187126, 0.015638522803783417, 0.01924375258386135, -0.048894163221120834, -0.049008313566446304, 0.02007133886218071, -0.024142682552337646, -0.001668251701630652, 0.01656123250722885, 0.02865159884095192, -0.004692032467573881, 0.02937454730272293, 0.0064827571623027325, 0.056123651564121246, 0.008551722392439842, 0.019405465573072433, 0.03466348722577095, 0.0517098568379879, 0.006863256450742483, -0.04512722045183182, -0.042577873915433884, -0.0025921515189111233, 0.0413602776825428, 0.008860877715051174, 0.029355522245168686, -0.04151247441768646, -0.008556478656828403, -0.03629963472485542, -0.015524372458457947, -0.05658024922013283, -0.025074904784560204, 0.013307963497936726, 0.05113910883665085, -0.05642804875969887, -0.04463256895542145, -0.01764565519988537, -0.022164085879921913, -0.042615924030542374, -0.053992852568626404, 0.010577880777418613, 0.0388680063188076, 0.05684660002589226, -0.06643518060445786, 0.05319380387663841, 0.030725320801138878, 0.005388821475207806, 0.04166467487812042, -0.02343875728547573, -0.05224255844950676, 0.03532936051487923, -0.05049226060509682, -0.0061593325808644295, 0.03875385597348213, 0.034225914627313614, 0.0026825203094631433, -0.06263019144535065, -0.02083233743906021, -0.027871575206518173, 0.034720562398433685, 0.016760995611548424, 0.010606418363749981, -0.06654933094978333, -0.03251366689801216, 0.030154570937156677, -0.06974552571773529, -0.028518423438072205, -0.010292506776750088, -0.02328655868768692, 0.021707486361265182, -0.013298450969159603, 0.020661113783717155, -0.0712294727563858, -0.021954810246825218, 0.01700831949710846, -0.024599280208349228, 0.0409797765314579, 0.05125325918197632, -0.01712246984243393, -0.06632103025913239, -0.01323186419904232, -0.0020404276438057423, -0.022848984226584435, -0.00743876164779067, -0.009502970613539219, 0.06498928368091583, 0.054107002913951874, 0.028099874034523964, -0.017407843843102455, 0.0532318539917469, 0.04535551741719246, 0.01553388498723507, -0.018882278352975845, -0.014344824478030205, -0.018758617341518402, -0.03298928961157799, 0.020204514265060425, 0.04193102568387985, 0.015552910044789314, -0.05003565922379494, -0.04687751457095146, -0.01572413370013237, 0.001804993604309857, -0.007134362123906612, -0.024808555841445923, -0.00427110493183136, -0.004868013318628073, 0.060879889875650406, -0.004432816989719868, -0.017407843843102455, -0.07746966183185577, 0.008076097816228867, -0.055705100297927856, -0.013983350247144699, 0.06845182925462723, 0.012841852381825447, 0.05368845537304878, -0.0517098568379879, 0.01168132945895195, -0.0009221163345500827, 0.01294648926705122, -0.018739592283964157, -0.012936976738274097, 0.029013073071837425, -0.01118667982518673, -0.006173601374030113, -0.010197381488978863, 0.017341256141662598, 0.015781208872795105, 0.061488691717386246, -0.024218780919909477, -0.01151010487228632, 0.04657311737537384, 0.005250890739262104, 0.024732455611228943, 0.0402187779545784, -0.0651034340262413, 0.03163851797580719, -0.00599286425858736, -0.043985720723867416, 0.02351485751569271, -0.013450651429593563, 0.0227919090539217, -0.09139593690633774, -0.06270629167556763, 0.03843042999505997, 0.04170272499322891, 0.01553388498723507, -0.012337690219283104, 0.010311531834304333, 0.05365040525794029, -0.01814981736242771, 0.030249696224927902, 0.016390008851885796, -0.020090363919734955, -0.026825202628970146, 0.025455404072999954, 0.02899404801428318, -0.037859681993722916, 0.0773555114865303, 0.05334600433707237, 0.015581447631120682, -0.0467253178358078, -0.09428773075342178, -0.008613553829491138, 0.007586205378174782, -0.0032128412276506424, 0.027548151090741158, -0.03576693683862686, 0.05833054706454277, 0.017074907198548317, -0.01814981736242771, -0.032646842300891876, -0.060042791068553925, 0.026825202628970146, -0.04649701714515686, 0.021764561533927917, -0.022107010707259178, -0.06738642603158951, 0.003084422554820776, -0.014677761122584343, 0.042920324951410294, -0.016941731795668602, 0.0072960746474564075, -0.031543392688035965, -0.07012602686882019, -0.03519618883728981, -0.03645183518528938, 0.024542206898331642, 0.0448228195309639, -0.055895350873470306, -0.03217121586203575, 0.03424493968486786, -0.027491075918078423, -0.04029487818479538, 0.020052313804626465, 0.011900116689503193, 0.00988346990197897, -0.007657548878341913, 0.0027348387520760298, -0.0459643192589283, 0.022810934111475945, 0.016608795151114464, -0.022278234362602234, -0.004118904937058687, -0.020813312381505966, 0.011900116689503193, -0.024504156783223152, 0.026977401226758957, 0.021117711439728737, -0.030934594571590424, 0.054221153259277344, 0.049769312143325806, -0.09824492782354355, -0.020204514265060425, -0.0323614664375782, 0.008632577955722809, 0.00592627702280879, -0.05688465014100075, 0.01461117435246706, 0.00901307724416256, -0.07012602686882019, -0.010501781478524208, -0.05243280529975891, 0.012147440575063229, -0.025151005014777184, 0.042920324951410294, 0.0020035668276250362, 0.0923091322183609, -0.016875144094228745, 0.07073482125997543, 0.024694405496120453, -0.06571223586797714, 0.01674197055399418, 0.0020618306007236242, 0.009541020728647709, -0.02109868824481964, 0.02827109955251217, -0.06613077968358994, 0.037783581763505936, -0.0039690835401415825, -0.042844224721193314, 0.08797144144773483, -0.012366227805614471, -0.037707481533288956, 0.07724136114120483, -0.037250883877277374, 0.0050368597730994225, 0.05890129506587982, -0.015942921862006187, -0.015105823054909706, -0.003395956475287676, 0.030630195513367653, -0.04550771787762642, -0.024884656071662903, -0.004813316278159618, 0.05855884402990341, -0.031999994069337845, -0.0020558855030685663, 0.021593336015939713, -0.03814505785703659, -0.054487504065036774, 0.07412126660346985, 0.056009501218795776, 0.01580023393034935, 0.008627821691334248, -0.00289179477840662, 0.015629010275006294, 0.021250886842608452, -0.018454216420650482, 0.030458969995379448, -0.04744826629757881, -0.027281802147626877, 0.034454215317964554, -0.006896550301462412, 0.04219737648963928, -0.048665862530469894, 0.05151960626244545, 0.00011526454181876034, -0.0076432800851762295, 0.027224726974964142, 0.00022161113156471401, -0.011500592343509197, -0.05368845537304878, 0.0003834719827864319, -0.08203565329313278, 0.05768369883298874, 0.024504156783223152, -0.009065396152436733, 0.00037663488183170557, -0.08393815159797668, -0.07670865952968597, 0.030477995052933693, -0.007191437296569347, -0.002677764045074582, 0.01807371713221073, 0.005840664729475975, -0.01432579942047596, 0.007719379849731922, 0.0076623051427304745, 0.0070344810374081135, -0.020090363919734955, 0.004682519938796759, -0.029736021533608437, 0.04101782664656639, 0.007467299234122038, 0.04132222756743431, -0.043072521686553955, 0.08013315498828888, 0.009555289521813393, -0.006487513426691294, -0.007129605859518051, 0.010235431604087353, 0.02880379930138588, 0.014468486420810223, -0.008199760690331459, 0.04044707864522934, -0.03892508149147034, -0.006963137537240982, -0.0004589773016050458, -0.02237335965037346, -0.032837092876434326, -0.0012282993411645293, -0.019367415457963943, 0.08378595113754272, 0.006634956691414118, -0.012432815507054329, -0.005089178215712309, 0.03685135766863823, -0.08142685145139694, 0.006121282931417227, -0.006007133051753044, 0.024903681129217148, 0.05007370933890343, -0.042577873915433884, 0.0589773952960968, -0.03746015951037407, 0.043871570378541946, 0.02083233743906021, 0.022240186110138893, 0.008152198046445847, 0.00571700232103467, 0.07412126660346985, -0.013564800843596458, 0.028042800724506378, 0.015942921862006187, 0.0059500583447515965, 0.0036432810593396425, 0.021574310958385468, -0.054335303604602814, 0.0036789528094232082, 0.014868010766804218, 0.03378833830356598, -0.026026153936982155, -0.05117715895175934, -0.02041378803551197, 0.002296075690537691, -0.015086797997355461, 0.021346012130379677, 0.027129601687192917, 0.020090363919734955, 0.05635194852948189 ]
17,407
imodels.tree.gosdt.pygosdt_shrinkage
shrink_tree
null
def shrink_tree(self): root = self.estimator_.tree_.source shrink_node(root, self.reg_param, None, None, 0, self.shrinkage_scheme_, 0)
(self)
[ 0.042555466294288635, -0.005537237040698528, 0.028331218287348747, -0.04446543753147125, -0.05900801345705986, -0.0036419269163161516, -0.02256780117750168, -0.010496457107365131, 0.015145725570619106, -0.011434687301516533, -0.0031770002096891403, -0.027677807956933975, 0.04664347320795059, -0.017725860700011253, -0.021277733147144318, 0.0036084188614040613, 0.019769862294197083, -0.006969714071601629, 0.023958392441272736, 0.05059744417667389, -0.052507415413856506, -0.04399632290005684, 0.0021843186113983393, -0.013897542841732502, -0.04828537628054619, -0.008326797746121883, 0.007187517825514078, -0.03066004067659378, 0.019769862294197083, -0.042421434074640274, -0.0672510415315628, -0.04469999298453331, -0.03079407475888729, -0.005750852171331644, 0.006437771022319794, -0.005884884856641293, -0.007095369976013899, 0.015070331282913685, 0.026639051735401154, -0.02598564140498638, -0.045772258192300797, -0.0201384536921978, -0.05626033619046211, -0.0541493184864521, 0.05438387766480446, 0.025935379788279533, 0.024678820744156837, 0.03215115889906883, -0.029855843633413315, -0.01673736609518528, -0.009549848735332489, -0.010890178382396698, 0.013931051827967167, 0.08578109741210938, 0.045504193753004074, -0.004131984896957874, 0.04443192854523659, 0.017038941383361816, 0.10628814250230789, -0.05776820704340935, 0.047548193484544754, 0.029604531824588776, -0.027996135875582695, -0.040176380425691605, -0.005734097678214312, -0.052440397441387177, -0.03558575361967087, 0.025499772280454636, -0.041014086455106735, 0.025047410279512405, -0.06202375516295433, -0.06152113154530525, 0.0011141489958390594, 0.07170763611793518, -0.017675597220659256, -0.03154800832271576, -0.014132101088762283, -0.039539724588394165, 0.004490104503929615, -0.02353953942656517, 0.030894597992300987, 0.021529044955968857, 0.01542216818779707, -0.020674584433436394, -0.0386350043118, -0.04530314356088638, 0.04778275266289711, -0.014324773102998734, 0.01732376031577587, -0.010370801202952862, 0.020037928596138954, 0.02353953942656517, 0.02188088186085224, -0.01115824468433857, 0.07143957167863846, 0.05036288872361183, -0.002915217075496912, 0.002259711967781186, -0.04084654524922371, -0.05136813595890999, 0.024159442633390427, 0.08872982114553452, -0.060381852090358734, 0.05277547985315323, 0.01602531597018242, 0.0386350043118, 0.04449894651770592, 0.006228344514966011, -0.011233638040721416, 0.013554084114730358, -0.0673515647649765, 0.023891376331448555, -0.03689257428050041, 0.019149960950016975, -0.01698867790400982, -0.020641077309846878, -0.03628942742943764, -0.011484949849545956, 0.008104805834591389, -0.02328822761774063, 0.04386228695511818, 0.0029005571268498898, -0.06684894114732742, -0.030224433168768883, -0.018781369552016258, 0.06215778738260269, 0.07157360762357712, 0.05786873400211334, -0.026052657514810562, -0.02950400672852993, -0.04041093960404396, -0.011116359382867813, -0.09234871715307236, 0.032419223338365555, 0.03655749186873436, -0.04677750542759895, -0.036021359264850616, -0.02590187080204487, -0.010002209804952145, -0.013001197949051857, 0.007698518689721823, 0.03007364645600319, 0.05951063707470894, -0.013143607415258884, 0.05806978419423103, -0.0201384536921978, -0.007903756573796272, 0.04728012904524803, -0.056226830929517746, -0.017591826617717743, -0.04671048745512962, 0.030442237854003906, 0.03066004067659378, -0.06296198815107346, 0.03937218338251114, 0.0340108647942543, -0.018680844455957413, -0.023254720494151115, 0.006948771420866251, 0.014224248938262463, -0.00836868304759264, 0.011602228507399559, 0.01744103990495205, -0.04657645523548126, -0.004720473662018776, -0.031330205500125885, -0.021462028846144676, -0.013503821566700935, -0.10628814250230789, 0.015145725570619106, -0.016712235286831856, -0.04707907885313034, -0.05823732540011406, 0.053646694868803024, -0.04872098192572594, 0.05830433964729309, 0.03977428376674652, 0.032737553119659424, -0.010680751875042915, 0.045571208000183105, -0.023237966001033783, -0.0015267193084582686, 0.01847979612648487, 0.004035648889839649, -0.005378072615712881, -0.041851792484521866, -0.03893657773733139, 0.01822848431766033, -0.013595969416201115, -0.014467183500528336, 0.023824360221624374, -0.009717389941215515, 0.04516911134123802, -0.03240247070789337, 0.02931971102952957, -0.033055879175662994, -0.016469299793243408, -0.026789838448166847, 0.011853540316224098, 0.034546997398138046, -0.04463297873735428, -0.005977032706141472, 0.06942907720804214, 0.0010146714048460126, 0.007154009770601988, 0.04650944098830223, 0.01074776891618967, 0.01988714188337326, -0.014718495309352875, 0.06279444694519043, -0.017742613330483437, 0.05703102797269821, 0.04979324713349342, 0.018329007551074028, 0.0002746105019468814, -0.0526079386472702, -0.05941011384129524, -0.004041931591928005, 0.032670535147190094, -0.040645498782396317, -0.023958392441272736, 0.02861603908240795, 0.0005570744979195297, -0.028817087411880493, -0.02372383512556553, -0.049290623515844345, -0.016837891191244125, -0.03776378929615021, 0.054484400898218155, -0.061018507927656174, 0.009533095173537731, -0.040880054235458374, -0.0025927003007382154, -0.07666685432195663, 0.046274881809949875, -0.015824267640709877, -0.022282980382442474, -0.06497248262166977, -0.020289240404963493, -0.03422866761684418, -0.05438387766480446, -0.06688245385885239, -0.03086109086871147, -0.00671840226277709, 0.028900858014822006, -0.000867549329996109, 0.01054671872407198, -0.012892295606434345, 0.02084212563931942, -0.03615539148449898, 0.003997952211648226, -0.05508754774928093, -0.028431743383407593, 0.01667872816324234, 0.01693003997206688, -0.03598785027861595, 0.0022282979916781187, 0.0029424424283206463, -0.02732597105205059, 0.004766547586768866, 0.01814471371471882, -0.036322932690382004, -0.002674376592040062, 0.05676295980811119, 0.012490197084844112, 0.007840928621590137, 0.029839089140295982, -0.020741602405905724, 0.0011937310919165611, -0.024326983839273453, 0.06008027866482735, 0.04436491057276726, -0.03344122692942619, 0.021713340654969215, -0.029604531824588776, -0.03464752063155174, -0.006446147803217173, 0.025801345705986023, 0.007991715334355831, -0.001855518901720643, -0.00022460993204731494, -0.06996520608663559, 0.015673479065299034, 0.046207863837480545, -0.053780727088451385, -0.022534292191267014, -0.015514316037297249, -0.000033099204301834106, 0.008234649896621704, 0.000427753635449335, -0.04520261660218239, 0.045571208000183105, -0.021327996626496315, -0.0054032038897275925, 0.049357641488313675, -0.04587278142571449, -0.026471510529518127, 0.014475560747087002, -0.01988714188337326, 0.04211986064910889, 0.0059393360279500484, -0.024779343977570534, -0.06014729291200638, 0.005910016130656004, 0.06366565823554993, 0.05642787739634514, 0.01916671358048916, -0.023120686411857605, 0.023522784933447838, 0.06634631752967834, -0.025164689868688583, -0.00564195029437542, -0.0009638855117373168, 0.004138268064707518, 0.024226458743214607, -0.08356955647468567, 0.05200479179620743, -0.002125679049640894, 0.03298886492848396, 0.04144969582557678, -0.026856856420636177, -0.0324694849550724, -0.00923152081668377, -0.06018080189824104, -0.06319653987884521, -0.049927279353141785, 0.03856798633933067, 0.009533095173537731, -0.02700764313340187, -0.023824360221624374, -0.04456596076488495, -0.023891376331448555, 0.07606370747089386, -0.04225389286875725, -0.020741602405905724, 0.016879776492714882, 0.05552315711975098, -0.028884103521704674, -0.06480494141578674, 0.004724662285298109, 0.05863942205905914, 0.05042990297079086, -0.008929946459829807, 0.019652584567666054, -0.024142688140273094, 0.03920464217662811, 0.04020988941192627, -0.020574061200022697, 0.04041093960404396, 0.005197966005653143, -0.015413790941238403, 0.01196244265884161, 0.014576084911823273, 0.046911537647247314, 0.041717760264873505, -0.0050806873477995396, 0.020674584433436394, 0.03558575361967087, -0.03367578238248825, -0.021780356764793396, 0.02623695321381092, 0.004171776119619608, -0.07311498373746872, -0.0010235720546916127, 0.060716934502124786, -0.06343109905719757, -0.014534199610352516, 0.012054589577019215, 0.06869189441204071, -0.02667256072163582, 0.02033950202167034, -0.033323947340250015, -0.014953052625060081, 0.025416001677513123, -0.00978440698236227, 0.048452917486429214, -0.05016183853149414, 0.008289101533591747, -0.004640891682356596, 0.03007364645600319, 0.00885455310344696, 0.018194975331425667, 0.024008655920624733, -0.023254720494151115, 0.04051146283745766, -0.010144620202481747, 0.028951121494174004, -0.008670257404446602, 0.030107155442237854, -0.06681543588638306, 0.004318374674767256, -0.011342539452016354, -0.028582530096173286, 0.05542263016104698, -0.002670187968760729, 0.030961615964770317, -0.001868084422312677, 0.01292580459266901, -0.04222038388252258, 0.04818485304713249, -0.015162479132413864, 0.02707465924322605, -0.10756145417690277, 0.020238978788256645, 0.015874529257416725, -0.039104118943214417, 0.008938323706388474, 0.03990831598639488, 0.04392930492758751, 0.0011141489958390594, -0.008586486801505089, -0.006542484275996685, 0.006643008906394243, 0.05284249782562256, 0.05173672363162041, -0.024025408551096916, 0.08129099756479263, 0.03419516235589981, 0.041918810456991196, -0.06279444694519043, -0.007790666073560715, 0.05120059475302696, -0.007036730647087097, 0.008201141841709614, 0.042421434074640274, -0.041081104427576065, -0.015556201338768005, -0.005763417575508356, -0.03084433637559414, 0.07773911952972412, -0.012615852989256382, -0.03706011548638344, -0.02424321323633194, -0.021713340654969215, -0.011434687301516533, -0.000013465470146911684, -0.016176102682948112, 0.0152965122833848, 0.017239989712834358, 0.015606463886797428, 0.0224505215883255, -0.004117324948310852, 0.04945816472172737, -0.05944361910223961, 0.04372825473546982, 0.030542762950062752, 0.006793796084821224, 0.060582902282476425, -0.04818485304713249, -0.05488650128245354, 0.061956737190485, -0.03699309751391411, -0.03809887170791626, -0.026538526639342308, -0.032670535147190094, -0.04945816472172737, 0.014986560679972172, -0.02270183339715004, 0.01789340190589428, 0.02918567880988121, 0.00009188587864628062, -0.017591826617717743, 0.028046397492289543, 0.016527939587831497, 0.005382261238992214, 0.04041093960404396, 0.049089573323726654, -0.015355152077972889, 0.049223605543375015, -0.04359422251582146, 0.047045569866895676, -0.028951121494174004, -0.02737623266875744, -0.0464424230158329, 0.019736355170607567, 0.025432756170630455, -0.058136798441410065, -0.01956881396472454, -0.0013110099826008081, 0.00038534478517249227, 0.022467276081442833, -0.03615539148449898, 0.06500598788261414, 0.008787536062300205, -0.03957323357462883, -0.008988586254417896, -0.021277733147144318, -0.03886955976486206, 0.0018618017202243209, 0.025667313486337662, -0.0904722511768341, -0.06018080189824104, -0.025030655786395073, 0.0320841409265995, -0.006132008042186499, 0.028833841904997826, -0.013286017812788486, -0.009089110419154167, 0.01125876884907484, -0.023774096742272377, -0.010345669463276863, -0.003840882098302245, -0.03612188622355461, -0.001564415986649692, -0.0065927463583648205, 0.056729454547166824, 0.011987573467195034, 0.03303912654519081, -0.03836693614721298, 0.024008655920624733, 0.022031668573617935, -0.03548522666096687, -0.04201933369040489, 0.07840928435325623, 0.026438003405928612, -0.000036715086025651544, -0.010178128257393837, 0.04047795757651329, 0.053010039031505585, 0.008121560327708721, -0.013721625320613384, -0.009868177585303783, 0.06182270497083664, -0.08537899702787399, 0.045001570135354996, -0.03354175016283989, -0.016125841066241264, 0.013126853853464127, 0.04057848080992699, 0.03923815116286278, 0.04071251302957535, -0.01563997194170952, 0.03032495826482773, 0.03843395411968231, 0.006689082831144333, 0.004259735345840454, 0.04118162766098976, -0.0379648394882679, 0.04855344071984291, -0.021529044955968857, -0.026572035625576973, -0.0798836499452591, 0.03397735580801964, 0.05123410001397133, -0.03886955976486206, 0.05629384517669678, 0.03268728777766228, 0.004628325812518597, -0.029018137603998184, -0.01745779439806938, -0.05086551234126091, -0.0028838030993938446, 0.04322563111782074, 0.01602531597018242, 0.05716506019234657, 0.0030199303291738033, 0.005378072615712881, 0.006919451989233494, 0.02147878333926201, -0.01764209009706974, -0.005600064992904663, 0.013847281225025654, 0.09630268812179565, -0.005533048417419195, 0.07264586538076401, 0.0395062156021595, -0.02995636872947216, 0.05927607789635658, 0.014182363636791706, -0.019032681360840797, 0.032804567366838455, -0.0023351055569946766, 0.03161502629518509, -0.021126946434378624, -0.021076684817671776, -0.024997148662805557, 0.00209217076189816, 0.04077953100204468, -0.0783422663807869, -0.0152965122833848, 0.04684452340006828, -0.00997707899659872, -0.017172973603010178, 0.008330986835062504, -0.016184480860829353, 0.0012387578608468175, 0.00029712385730817914, 0.027108168229460716, -0.029135415330529213, 0.0073047964833676815, 0.01770910620689392, -0.0023623311426490545, 0.01589966006577015, -0.042421434074640274, 0.004544555209577084, -0.01026189886033535, -0.09060628712177277, -0.0012659832136705518, 0.003790619783103466, 0.005616819020360708, 0.037428706884384155, -0.034848570823669434, 0.06949609518051147, 0.04815134406089783, -0.01904943585395813, 0.021529044955968857, 0.0596446692943573, -0.018312254920601845, 0.020574061200022697, 0.020607568323612213, 0.022282980382442474, 0.013822149485349655, 0.030157417058944702, -0.05311056226491928, -0.08021873235702515, -0.00028089332045055926, 0.008661880157887936, -0.08249729126691818, -0.018965665251016617, -0.025483017787337303, -0.017407530918717384, 0.00965875107795, -0.0026869422290474176, -0.009675504639744759, -0.03173230588436127, -0.004971785470843315, 0.04265599325299263, -0.033508241176605225, -0.0302076805382967, 0.004875448998063803, -0.012305901385843754, -0.10260223597288132, 0.004498481284826994, -0.054618433117866516, -0.020641077309846878, 0.037428706884384155, -0.03675854206085205, 0.024410754442214966, -0.02739298716187477, -0.013185492716729641, 0.012515327893197536, -0.004523612558841705, -0.01764209009706974, -0.005855565425008535, -0.05753365159034729, -0.06584369391202927, -0.0024125934578478336, 0.018161466345191002, -0.04077953100204468, -0.024846361950039864, -0.00018835296214092523, 0.03183282911777496, -0.028967874124646187, -0.01292580459266901, 0.04165074601769447, 0.02353953942656517, 0.009692259132862091, -0.018630582839250565, -0.004615760408341885, 0.0044607846066355705, 0.021830620244145393, -0.02675633132457733, 0.045571208000183105, 0.05016183853149414, 0.05445089191198349, 0.010689129121601582, 0.0010754051618278027, 0.015698611736297607, -0.036423459649086, -0.02167983166873455, -0.06772015988826752, -0.036523982882499695, -0.03866850957274437, -0.05776820704340935, -0.03977428376674652, -0.00035942826070822775, 0.028381479904055595, 0.04084654524922371, -0.03380981460213661, 0.027560528367757797, -0.01674574427306652, 0.07398619502782822, -0.0020544740837067366, -0.026370985433459282, 0.03618890047073364, 0.027862103655934334, -0.09985455870628357, 0.06845733523368835, 0.01001058705151081, 0.012892295606434345, 0.02070809341967106, -0.07639878988265991, 0.058002766221761703, -0.03866850957274437, -0.02181386575102806, 0.052943021059036255, 0.024678820744156837, 0.006722590886056423, 0.047045569866895676, -0.014601216651499271, 0.046207863837480545, -0.01485252846032381, -0.0588739812374115, -0.03816588595509529, 0.039740774780511856, 0.040243398398160934, 0.005135138053447008, 0.007112124469131231, -0.05880696326494217, -0.028331218287348747, 0.024662066251039505, -0.00221363827586174, -0.02315419539809227, 0.022417014464735985, 0.010245145298540592, 0.017926909029483795, -0.08082187920808792, -0.02739298716187477, 0.019099697470664978, -0.005386449862271547, -0.008377060294151306, 0.005214720033109188, 0.05451790988445282, 0.025348985567688942, -0.03166528791189194, 0.07257885485887527, 0.03548522666096687, 0.00397910363972187, 0.010622113011777401, -0.013813772238790989, 0.05394826829433441, 0.018881894648075104, -0.013872412033379078, -0.04986026510596275, 0.013026328757405281, 0.019418025389313698, 0.007916321977972984, 0.02950400672852993, 0.019099697470664978, -0.0069906567223370075, 0.03930516913533211, 0.031531255692243576, -0.032486241310834885, 0.006165516562759876, 0.046408914029598236, 0.015924790874123573, -0.009122618474066257, 0.04764872044324875, 0.024159442633390427, -0.03880254551768303, 0.05542263016104698, 0.014123723842203617, 0.05900801345705986, 0.02379085123538971, 0.05508754774928093, -0.024092426523566246, 0.028314463794231415, 0.006751910783350468, -0.014542576856911182, -0.020875634625554085, 0.041081104427576065, -0.0386350043118, -0.050966035574674606, 0.0038848617114126682, 0.028381479904055595, 0.052507415413856506, 0.05542263016104698, 0.0011455629719421268 ]
17,408
imodels.tree.gosdt.pygosdt_shrinkage
HSOptimalTreeClassifierCV
null
class HSOptimalTreeClassifierCV(HSOptimalTreeClassifier): def __init__(self, estimator_: OptimalTreeClassifier, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', cv: int = 3, scoring="accuracy", *args, **kwargs): """Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args """ 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_ = [] opt = copy.deepcopy(self.estimator_) for reg_param in self.reg_param_list: est = HSOptimalTreeClassifier(opt, reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(estimator_: imodels.tree.gosdt.pygosdt.OptimalTreeClassifier, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', cv: int = 3, scoring='accuracy', *args, **kwargs)
[ 0.033236313611269, -0.03782573714852333, -0.014675053767859936, 0.01217677816748619, -0.0268518328666687, -0.02566746436059475, 0.0007616269285790622, -0.036715392023324966, 0.000560087850317359, -0.0005412929458543658, -0.0043812342919409275, 0.005806176457554102, 0.025574935600161552, -0.020559879019856453, -0.028535854071378708, 0.0028591372538357973, 0.036123208701610565, -0.020171258598566055, 0.030145853757858276, 0.045820217579603195, -0.005065946839749813, -0.013583214953541756, -0.033884014934301376, 0.016756949946284294, -0.027277464047074318, 0.003194553777575493, 0.02814723365008831, -0.029313094913959503, 0.027388498187065125, 0.010825859382748604, -0.10888778418302536, 0.00610226858407259, -0.0613650418817997, 0.006981291342526674, 0.008267439901828766, -0.05066872388124466, 0.041119758039712906, 0.06473308801651001, -0.030460452660918236, 0.013823789544403553, -0.03133022040128708, -0.03727056458592415, -0.042711254209280014, -0.0718022808432579, 0.015470800921320915, 0.04171194136142731, 0.007328273728489876, 0.09726618230342865, 0.010409479960799217, -0.09889468550682068, -0.013962582685053349, -0.07913055270910263, 0.01851499453186989, 0.03068252094089985, -0.03845493122935295, 0.08112917095422745, 0.09156641364097595, -0.007101578637957573, 0.07846434414386749, -0.02785114198923111, -0.002435818314552307, -0.002981737721711397, 0.05288941040635109, -0.01173264067620039, -0.0381588414311409, -0.021485166624188423, -0.0619572252035141, 0.003960228990763426, -0.038676999509334564, 0.03603067994117737, -0.027592061087489128, -0.09763629734516144, 0.024001948535442352, 0.028961487114429474, 0.026111602783203125, 0.008008359931409359, -0.02849884331226349, -0.06784205138683319, 0.030404934659600258, 0.003511464688926935, 0.00969700887799263, -0.008059251122176647, 0.009294508956372738, -0.06532526761293411, -0.05092780292034149, -0.059958603233098984, 0.045228034257888794, -0.029886772856116295, 0.050816766917705536, 0.037659186869859695, -0.03504987433552742, 0.03342137113213539, 0.0337359681725502, -0.00042013818165287375, 0.047744814306497574, 0.06495515257120132, -0.015082179568707943, -0.022151373326778412, -0.04193401336669922, -0.05226021632552147, -0.006259567104279995, 0.0613650418817997, 0.017450915649533272, 0.07713193446397781, -0.047078609466552734, -0.039602287113666534, -0.0219293050467968, 0.01093689352273941, -0.0037659185472875834, -0.02435355633497238, -0.06636159121990204, 0.027055395767092705, -0.02435355633497238, 0.042341139167547226, -0.029202060773968697, -0.054258834570646286, -0.030478958040475845, -0.006560285575687885, -0.03405056521296501, -0.06910043954849243, -0.009974595159292221, 0.031071141362190247, -0.0330512560904026, -0.023076660931110382, -0.01778401806950569, -0.026019074022769928, 0.02566746436059475, 0.051112860441207886, -0.039824359118938446, -0.045154012739658356, -0.01873706467449665, -0.02159620076417923, -0.043340448290109634, -0.0027828009333461523, 0.02944263629615307, -0.060846880078315735, -0.017747007310390472, -0.0016157826175913215, -0.0009721297537907958, 0.00234328955411911, 0.022762063890695572, -0.026426199823617935, -0.009511951357126236, -0.015109938569366932, 0.0727645754814148, 0.0028244389686733484, -0.00040539141627959907, 0.000402210745960474, -0.013065054081380367, 0.019856661558151245, -0.03603067994117737, -0.002960918704047799, 0.03066401556134224, 0.009192727506160736, 0.026981372386217117, -0.009789537638425827, 0.014998904429376125, -0.06854526698589325, -0.007929710671305656, -0.0022415081039071083, -0.008577411994338036, -0.00020471977768465877, 0.006291952449828386, 0.006241061724722385, 0.002218375913798809, 0.052704352885484695, -0.05092780292034149, -0.012907755561172962, -0.03838090971112251, 0.034198611974716187, -0.037381600588560104, -0.047078609466552734, -0.08860549330711365, 0.01965309865772724, -0.026130108162760735, 0.048299986869096756, 0.03497585281729698, 0.015461547300219536, 0.04223010316491127, 0.04108274728059769, -0.019153444096446037, -0.02538987807929516, -0.00501042976975441, -0.01376827247440815, -0.012750456109642982, 0.0318668894469738, 0.022706545889377594, 0.012787467800080776, -0.043007344007492065, -0.0054406882263720036, -0.016701431944966316, -0.03219999000430107, 0.0033125279005616903, 0.014980398118495941, 0.04785585030913353, -0.010585284791886806, 0.010548273101449013, 0.033310335129499435, 0.02664826810359955, 0.06817515194416046, 0.008952152915298939, -0.005991233978420496, 0.06861929595470428, -0.012445111759006977, -0.023335741832852364, 0.05325952544808388, 0.009155715815722942, 0.031163670122623444, -0.005741406697779894, 0.008198044262826443, -0.03686343878507614, 0.03627125546336174, -0.032977234572172165, 0.05189010128378868, 0.05596136301755905, -0.03188539296388626, -0.029276084154844284, -0.026500223204493523, -0.0012202223297208548, -0.01909792609512806, 0.010474249720573425, 0.017053041607141495, -0.05066872388124466, 0.043969642370939255, 0.02002321369946003, -0.01751568540930748, 0.0487811379134655, -0.0075087049044668674, 0.05688665062189102, -0.02749953232705593, -0.010372468270361423, -0.052704352885484695, 0.03852895647287369, -0.013037295080721378, -0.03660435974597931, 0.04966941103339195, -0.007027555722743273, 0.004478389862924814, -0.051482975482940674, -0.017645224928855896, -0.011788157746195793, -0.014980398118495941, -0.030460452660918236, -0.014332697726786137, 0.016442352905869484, -0.03038642928004265, 0.022021833807229996, 0.03886205703020096, 0.02590803988277912, -0.01404585875570774, 0.0012213790323585272, -0.06288251280784607, -0.02533436194062233, -0.012889249250292778, -0.01684947870671749, -0.06199423596262932, -0.030515968799591064, 0.024612637236714363, 0.023317234590649605, -0.03845493122935295, -0.017043787986040115, 0.008993790484964848, 0.03590114042162895, 0.10096733272075653, -0.06284549832344055, -0.018598271533846855, 0.03418010473251343, 0.0006164725637063384, 0.00890126172453165, 0.005417556036263704, 0.00830445159226656, 0.021022522822022438, -0.054554928094148636, 0.0312747061252594, -0.028702406212687492, 0.017626719549298286, -0.055665273219347, -0.0038260621950030327, 0.0026093097403645515, 0.03379148617386818, 0.03532746061682701, -0.05540619418025017, -0.009451807476580143, -0.004672700073570013, 0.01629430614411831, 0.001974331447854638, -0.01280597411096096, -0.014730570837855339, 0.0020344750955700874, 0.005237124860286713, -0.05966251343488693, 0.027407003566622734, 0.009215859696269035, -0.015850167721509933, 0.06184618920087814, -0.005658130627125502, -0.007249624468386173, 0.011492066085338593, 0.0022218457888811827, 0.010872123762965202, 0.033624932169914246, 0.0109183881431818, -0.07391193509101868, -0.06029170751571655, 0.016035225242376328, 0.01655338704586029, 0.012000974267721176, 0.00037994602462276816, 0.006754595786333084, 0.05618343502283096, 0.013907065615057945, 0.06047676503658295, 0.016109248623251915, 0.006754595786333084, -0.008572785183787346, -0.03138573840260506, 0.04874412342905998, -0.043007344007492065, 0.04356251657009125, 0.02503826841711998, -0.037936773151159286, 0.02122608572244644, -0.047744814306497574, -0.04981745779514313, -0.023668844252824783, -0.066472627222538, 0.03184838220477104, 0.010131893679499626, -0.02283608540892601, -0.028628382831811905, -0.018006086349487305, -0.031163670122623444, 0.07217239588499069, -0.02030079998075962, 0.0017823342932388186, 0.05255630984902382, 0.04789286106824875, 0.049595389515161514, 0.004203116521239281, -0.009937583468854427, 0.0362897589802742, 0.059588491916656494, -0.029146544635295868, 0.011195974424481392, -0.03499436005949974, -0.041119758039712906, 0.005838561803102493, 0.0418969988822937, -0.019893672317266464, 0.03506838157773018, -0.02096700668334961, -0.0605878010392189, 0.05751584842801094, 0.03949125483632088, 0.05807102099061012, 0.01970861479640007, -0.001354389009065926, -0.017099305987358093, 0.06602849066257477, -0.05603538826107979, 0.04252619668841362, -0.06214228272438049, -0.04630136862397194, 0.017062295228242874, 0.05340757220983505, -0.062068261206150055, -0.0162758007645607, -0.008868876844644547, 0.055184122174978256, -0.06758297234773636, -0.008998417295515537, -0.07727997750043869, -0.017691489309072495, -0.022114362567663193, 0.03467975929379463, 0.04263722896575928, -0.08956779539585114, 0.03603067994117737, -0.0043812342919409275, -0.011926950886845589, 0.06928549706935883, 0.01877407543361187, 0.02590803988277912, -0.03627125546336174, 0.009345400147140026, -0.07076595723628998, 0.033014245331287384, 0.036086197942495346, 0.10496456921100616, -0.017321374267339706, 0.017737753689289093, 0.010233675129711628, -0.02788815274834633, -0.010927640832960606, -0.023872407153248787, 0.011186720803380013, 0.034550219774246216, 0.02538987807929516, -0.039232172071933746, -0.020818959921598434, -0.022225396707654, -0.028406314551830292, 0.0008235055138356984, 0.002542226342484355, 0.007753905840218067, -0.0005574855022132397, -0.007809423375874758, 0.05166803300380707, 0.00037213892210274935, 0.03754815086722374, -0.014906375668942928, 0.005352785810828209, 0.0599956177175045, 0.0032199991401284933, -0.029257578775286674, -0.023243213072419167, 0.059218376874923706, 0.04171194136142731, -0.0027203441131860018, 0.00004554147380986251, 0.021429648622870445, 0.02061539702117443, -0.021115051582455635, 0.05422182381153107, 0.026074590161442757, -0.022317925468087196, -0.06414090096950531, -0.026426199823617935, 0.015720628201961517, -0.042970333248376846, -0.06425193697214127, 0.009956089779734612, -0.08816135674715042, -0.021707234904170036, -0.057700905948877335, -0.007925083860754967, -0.05873722583055496, 0.034272633492946625, -0.0029123411513864994, 0.02564895898103714, -0.023853901773691177, -0.0044251857325434685, 0.02944263629615307, -0.007175601553171873, 0.041452862322330475, 0.009345400147140026, 0.007767785340547562, 0.035234931856393814, -0.08653285354375839, -0.04752274602651596, 0.03919516131281853, -0.002653260715305805, -0.008942900225520134, 0.03967631235718727, 0.007221865933388472, -0.032977234572172165, 0.02785114198923111, -0.015369018539786339, 0.05085378140211105, -0.005533216986805201, 0.01267643366008997, 0.0020009332802146673, 0.023835396394133568, 0.0031367233023047447, -0.04948435351252556, -0.013879306614398956, 0.0725795179605484, 0.01748792640864849, 0.020393328741192818, -0.025241833180189133, 0.046745505183935165, -0.0030025567393749952, 0.011778905056416988, -0.03253309428691864, -0.04526504501700401, 0.0430813692510128, 0.016053730621933937, -0.04589423909783363, -0.006629682146012783, 0.007420802488923073, 0.08061101287603378, -0.026093097403645515, 0.07046986371278763, 0.00956746842712164, 0.0027411631308496, -0.014675053767859936, -0.022669535130262375, -0.03775171563029289, -0.006884136237204075, -0.00672221090644598, -0.058367110788822174, -0.011140456423163414, -0.01329637598246336, 0.06395584344863892, -0.001789273926988244, -0.009789537638425827, 0.022317925468087196, 0.004115214571356773, 0.011399537324905396, -0.034513209015131, 0.0013312568189576268, 0.00841548666357994, -0.002014812780544162, -0.01404585875570774, 0.05100182443857193, -0.026463210582733154, -0.007550342939794064, 0.019190454855561256, -0.04526504501700401, 0.016664421185851097, -0.0024751429446041584, -0.06266044080257416, 0.034550219774246216, 0.03227401524782181, 0.032107461243867874, -0.021485166624188423, -0.01778401806950569, 0.01222304254770279, 0.057996995747089386, 0.01872781105339527, 0.022688040509819984, -0.0344206802546978, 0.05725676566362381, -0.0532965362071991, 0.05629446730017662, 0.03691895678639412, -0.03282918781042099, 0.014499248936772346, 0.06014366075396538, 0.06291952729225159, 0.022428959608078003, -0.04915125295519829, -0.007703015115112066, 0.06421492248773575, -0.018653787672519684, 0.04167493060231209, 0.06980366259813309, -0.023927925154566765, 0.007888073101639748, -0.03908412903547287, -0.0033148410730063915, -0.018533501774072647, 0.015887180343270302, 0.028313785791397095, -0.00021512925741262734, 0.05007653683423996, -0.009900571778416634, 0.02444608509540558, -0.04356251657009125, -0.02529734931886196, 0.005519337486475706, 0.019319994375109673, -0.002003246685490012, -0.015406030230224133, 0.03915815055370331, 0.00971551425755024, -0.007476320024579763, 0.005445314571261406, 0.028942981734871864, 0.018255915492773056, 0.008318331092596054, 0.012232295237481594, 0.05622044578194618, -0.042082056403160095, -0.0019130310975015163, 0.000057649725931696594, -0.03436516225337982, 0.03727056458592415, -0.033273324370384216, -0.015452294610440731, 0.03901010379195213, 0.019338499754667282, -0.015082179568707943, 0.005463820416480303, -0.07609561085700989, 0.04074964299798012, -0.0017487925942987204, 0.012047238647937775, -0.048040907829999924, -0.015544823370873928, 0.013796030543744564, -0.026944361627101898, 0.005292642395943403, -0.04974343627691269, 0.011852927505970001, -0.0019257537787780166, -0.01939401775598526, 0.03506838157773018, -0.07794618606567383, 0.02529734931886196, 0.0028799560386687517, 0.0525192953646183, -0.02687033824622631, -0.04789286106824875, 0.016349824145436287, -0.0004065480316057801, -0.08919768035411835, -0.025223325937986374, 0.024908728897571564, -0.025778498500585556, -0.012472869828343391, 0.0053481594659388065, 0.004575544968247414, 0.017450915649533272, 0.035808611661195755, -0.027036890387535095, 0.009511951357126236, -0.016793960705399513, 0.019523557275533676, 0.0003860182187054306, -0.00029146543238312006, 0.010363215580582619, 0.07150618731975555, -0.03375447541475296, -0.020411834120750427, 0.06358572840690613, -0.03469826653599739, -0.031200680881738663, 0.04559814929962158, -0.020263787358999252, 0.0031991801224648952, -0.010270686820149422, 0.006352095864713192, 0.002558418782427907, -0.0475967675447464, -0.04889217019081116, -0.007490199059247971, -0.05351860821247101, -0.030090337619185448, -0.018505742773413658, 0.049262285232543945, -0.04467286169528961, 0.03664137050509453, -0.036437805742025375, 0.046153321862220764, 0.007258877623826265, 0.017737753689289093, 0.037363093346357346, -0.027147924527525902, 0.0005077513051219285, -0.06258641928434372, -0.01438821479678154, -0.025260338559746742, -0.0059125847183167934, -0.00956746842712164, -0.06850825995206833, -0.01808936335146427, 0.03101562336087227, 0.036419302225112915, -0.018940627574920654, 0.024575626477599144, 0.04311838001012802, -0.05755285918712616, -0.039232172071933746, 0.015257984399795532, -0.00956746842712164, 0.03369895741343498, -0.003724280744791031, 0.03188539296388626, 0.018940627574920654, -0.04093470051884651, 0.01280597411096096, 0.08505239337682724, 0.028628382831811905, 0.03347688913345337, 0.030164359137415886, 0.027055395767092705, -0.005325027275830507, -0.02594505064189434, 0.02374286763370037, -0.06595446914434433, -0.019282983615994453, -0.04545010253787041, -0.013398157432675362, -0.02342827059328556, -0.03915815055370331, -0.001479302765801549, 0.011381031945347786, -0.02216987870633602, 0.0172103401273489, 0.09882066398859024, 0.06336366385221481, -0.023964935913681984, 0.014341950416564941, 0.06599147617816925, -0.01438821479678154, -0.04274826496839523, 0.029609188437461853, -0.016719937324523926, -0.05189010128378868, -0.04134183004498482, -0.022114362567663193, 0.047041598707437515, -0.01808936335146427, -0.011325513944029808, 0.01600746624171734, -0.0637337788939476, -0.04263722896575928, 0.04966941103339195, -0.05029860883951187, 0.01970861479640007, 0.0038977719377726316, -0.06369676440954208, 0.031422749161720276, 0.009160342626273632, 0.05751584842801094, -0.04348849505186081, -0.009983847849071026, 0.03434665873646736, -0.09030802547931671, 0.0008425895939581096, 0.03292171657085419, -0.015887180343270302, -0.03005332499742508, 0.03886205703020096, 0.017108559608459473, 0.003118217457085848, -0.054295849055051804, 0.00967850349843502, 0.004584797658026218, 0.05444389209151268, -0.013379652053117752, 0.06602849066257477, 0.02185528166592121, -0.05481400713324547, 0.026814820244908333, 0.063918836414814, -0.0369744747877121, 0.09260273724794388, -0.01502666249871254, 0.06066182255744934, 0.003125157207250595, -0.04200803488492966, -0.019912179559469223, -0.005089079029858112, -0.0218367762863636, 0.04193401336669922, -0.018922122195363045, 0.02096700668334961, 0.0338284969329834, 0.004679639358073473, -0.019208960235118866, 0.004159165546298027, 0.009900571778416634, 0.030812060460448265, 0.02664826810359955, 0.02413148805499077, 0.037400104105472565, 0.049891479313373566, -0.05914435163140297, 0.015359765850007534, -0.017413903027772903, 0.06288251280784607, 0.008966032415628433, 0.08246158808469772, 0.022373441606760025, 0.001871393178589642, -0.025741487741470337, -0.01816338673233986, -0.04570918157696724, 0.02155919000506401, -0.04696757346391678, -0.002736536553129554, 0.002357168821617961, 0.027018383145332336, 0.04400665685534477, 0.04352550581097603, 0.042674243450164795 ]
17,410
imodels.tree.gosdt.pygosdt_shrinkage
__init__
Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args
def __init__(self, estimator_: OptimalTreeClassifier, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', cv: int = 3, scoring="accuracy", *args, **kwargs): """Note: args, kwargs are not used but left so that imodels-experiments can still pass redundant args """ 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_: imodels.tree.gosdt.pygosdt.OptimalTreeClassifier, reg_param_list: List[float] = [0.1, 1, 10, 50, 100, 500], shrinkage_scheme_: str = 'node_based', cv: int = 3, scoring='accuracy', *args, **kwargs)
[ 0.05005177855491638, -0.023057978600263596, -0.010860642418265343, 0.01776689663529396, -0.04366534948348999, -0.009055176749825478, 0.0003124175127595663, -0.03170936182141304, -0.004321050364524126, 0.00012981136387679726, -0.006688113324344158, 0.030966753140091896, 0.017497701570391655, 0.00017593428492546082, -0.012382988817989826, -0.019307808950543404, 0.045818913727998734, -0.0064699724316596985, 0.019771937280893326, 0.053393516689538956, -0.027290843427181244, -0.0009566879598423839, -0.013069900684058666, 0.04225439578294754, -0.004896571394056082, 0.03984091803431511, 0.040286485105752945, -0.03397431597113609, 0.01787828840315342, 0.03976665809750557, -0.09854408353567123, -0.013014205731451511, -0.03625783696770668, 0.03766879066824913, 0.018221743404865265, -0.03716753050684929, -0.0011330574052408338, 0.06713176518678665, -0.05012603849172592, 0.022482456639409065, -0.0019493460422381759, -0.058925945311784744, -0.042959872633218765, -0.06601785123348236, 0.0004403433413244784, 0.041511788964271545, 0.002891529817134142, 0.06702037155628204, -0.006706678308546543, -0.0952766090631485, -0.033287402242422104, -0.04611595720052719, 0.0348840095102787, 0.04774969443678856, -0.037501703947782516, 0.08785052597522736, 0.08911295980215073, 0.007370384410023689, 0.07117898017168045, -0.015622615814208984, -0.004933701828122139, -0.0016650663455948234, 0.028887450695037842, -0.03026127628982067, -0.03633209690451622, -0.038949791342020035, -0.0928260013461113, 0.004467251244932413, -0.028107712045311928, 0.04140039533376694, -0.0006172928842715919, -0.06690897792577744, -0.0010141240200027823, 0.016086746007204056, 0.023744890466332436, 0.021182892844080925, -0.03228488191962242, -0.05287368968129158, 0.01979050412774086, -0.0026548237074166536, 0.03943248465657234, 0.017274918034672737, -0.005611331667751074, -0.06126515939831734, -0.05562134087085724, -0.08109279721975327, 0.0053003644570708275, -0.03651775047183037, 0.04522482678294182, 0.012652183882892132, -0.04451934993267059, 0.02264954335987568, 0.029741451144218445, 0.004578642547130585, 0.03480974957346916, 0.048380911350250244, -0.003081823233515024, -0.03675909712910652, -0.01940063387155533, -0.03752027079463005, 0.002387948799878359, 0.0405835285782814, -0.006298243999481201, 0.0377059206366539, -0.03401144593954086, -0.048083867877721786, -0.020848719403147697, 0.004474213346838951, 0.012615053914487362, -0.013348379172384739, -0.06434698402881622, 0.040397875010967255, -0.04392526298761368, 0.06765159219503403, -0.05699516460299492, -0.015836115926504135, -0.014276638627052307, -0.03235914558172226, 0.003933501895517111, -0.054915860295295715, -0.0006840116111561656, 0.058666031807661057, -0.0369076170027256, -0.0014028329169377685, 0.006159005220979452, -0.0104522081092, 0.024580324068665504, 0.06705750524997711, -0.028980277478694916, -0.06390141695737839, 0.019196417182683945, -0.04860369488596916, -0.07789958268404007, 0.008609611541032791, 0.03607218340039253, -0.05391333997249603, 0.010108751244843006, -0.008247589692473412, -0.03766879066824913, 0.017636939883232117, 0.049754735082387924, -0.022111153230071068, 0.010312968865036964, -0.013961030170321465, 0.05072012543678284, 0.011770336888730526, -0.02914736419916153, 0.023856282234191895, -0.023243630304932594, -0.015316289849579334, -0.02159132808446884, 0.026065541431307793, -0.0013459769543260336, -0.011621815152466297, 0.03276757895946503, -0.018184613436460495, 0.03144944831728935, -0.05331925302743912, 0.03831857442855835, 0.002450606320053339, -0.002487736754119396, 0.015501942485570908, 0.014388030394911766, -0.012410836294293404, 0.00018536191782914102, 0.06078246608376503, -0.06947097927331924, -0.01314416155219078, -0.058814555406570435, 0.04232865571975708, -0.037111833691596985, -0.07411228120326996, -0.09342008829116821, 0.020774459466338158, -0.03204353526234627, 0.06516385078430176, 0.03599792346358299, 0.05034882202744484, 0.015501942485570908, 0.052168212831020355, 0.0002606380148790777, -0.02192550152540207, -0.03196927532553673, -0.020068980753421783, -0.01163109764456749, 0.00953323021531105, 0.000526497489772737, 0.018045375123620033, -0.02704949676990509, 0.02459889091551304, 0.02987140789628029, 0.0011057896772399545, 0.0011318970937281847, -0.009398632682859898, 0.01325555332005024, -0.02528580278158188, 0.0066741895861923695, 0.011584685184061527, 0.005202897358685732, 0.09535086899995804, 0.02426471747457981, -0.01484287716448307, 0.057477857917547226, -0.007681351620703936, -0.021944066509604454, 0.05034882202744484, 0.0064235590398311615, 0.03135662153363228, 0.014406595379114151, 0.0075931670144200325, -0.012568640522658825, 0.022296804934740067, 0.0021790903992950916, 0.05265090614557266, 0.044333696365356445, -0.0312081016600132, -0.0025480736512690783, -0.02001328580081463, 0.007105830125510693, -0.014490138739347458, 0.0543217770755291, 0.013979596085846424, -0.017497701570391655, 0.01982763409614563, 0.0007489898125641048, -0.009542512707412243, 0.049494825303554535, -0.020774459466338158, 0.017674069851636887, -0.008377546444535255, -0.03958100825548172, -0.07281271368265152, 0.03384435921907425, -0.00307021988555789, -0.023169370368123055, 0.035088229924440384, -0.00040727408486418426, 0.012030249461531639, -0.08480583131313324, -0.011213380843400955, -0.008061937987804413, 0.01776689663529396, -0.022222544997930527, -0.00968175195157528, 0.020774459466338158, -0.00962605606764555, 0.018398113548755646, 0.021461371332406998, 0.008261513896286488, -0.03141231834888458, 0.01910359039902687, -0.035700879991054535, -0.042997002601623535, -0.00666490662842989, -0.04474213346838951, -0.04600456729531288, 0.003367263125255704, 0.007022286765277386, 0.022408196702599525, -0.01902933046221733, -0.0045740013010799885, 0.0011295763542875648, 0.017469853162765503, 0.08035018295049667, -0.0729612335562706, -0.0066417003981769085, 0.02987140789628029, 0.008753491565585136, 0.019920459017157555, -0.00009899022552417591, 0.05985420569777489, 0.02593558467924595, -0.005100788548588753, 0.04734126105904579, -0.026306888088583946, -0.029351580888032913, -0.05268803611397743, -0.001004841411486268, -0.012067380361258984, 0.038986921310424805, 0.06230481341481209, -0.0413261353969574, -0.011733206920325756, -0.0008186093182303011, -0.022092588245868683, -0.030279841274023056, 0.005718081723898649, 0.02846045233309269, -0.024543194100260735, -0.0050636581145226955, -0.06315881013870239, 0.03427135944366455, 0.01928924210369587, 0.010702838189899921, 0.06074533611536026, -0.023559238761663437, 0.0006434002425521612, 0.027346540242433548, -0.00832649227231741, 0.015019247308373451, 0.04919778183102608, -0.021795544773340225, -0.0676887184381485, -0.06115376949310303, 0.021034371107816696, 0.004915136843919754, 0.0100252078846097, 0.006725243758410215, -0.007848438806831837, 0.05550994724035263, 0.04756404086947441, 0.05933437868952751, 0.01310703158378601, 0.018982917070388794, -0.00278477999381721, -0.04604169726371765, 0.036387793719768524, -0.060076989233493805, 0.04140039533376694, 0.02123858965933323, -0.021535631269216537, 0.007904133759438992, -0.03759453073143959, -0.057626381516456604, -0.050905779004096985, -0.047229867428541183, 0.03308318555355072, -0.0016929141711443663, -0.01928924210369587, -0.0072682760655879974, -0.022686675190925598, -0.014508703723549843, 0.07006506621837616, -0.030094189569354057, -0.021795544773340225, 0.045744653791189194, 0.024116195738315582, 0.01029440388083458, -0.02976001612842083, 0.0019690715707838535, 0.029852841049432755, 0.021461371332406998, -0.024116195738315582, 0.027030931785702705, -0.03932109475135803, -0.0405835285782814, 0.01736774481832981, 0.014833594672381878, 0.026733888313174248, 0.015084224753081799, -0.028052017092704773, -0.05443316698074341, 0.02654823660850525, 0.04102909192442894, 0.060188379138708115, 0.03412283957004547, -0.025619976222515106, -0.016643701121211052, 0.0381329208612442, -0.049569085240364075, 0.027105191722512245, -0.06501533091068268, -0.03759453073143959, 0.020774459466338158, 0.057143684476614, -0.06980515271425247, 0.0015142241027206182, -0.013348379172384739, 0.07351819425821304, -0.05929724872112274, 0.008846317417919636, -0.05937150865793228, -0.034512706100940704, -0.022816630080342293, 0.017460571601986885, 0.031987838447093964, -0.0701393261551857, 0.014620095491409302, -0.01610531099140644, -0.020607372745871544, 0.03135662153363228, 0.018296005204319954, 0.024784542620182037, -0.017831875011324883, -0.011798184365034103, -0.04748978093266487, 0.0085214264690876, 0.05814620852470398, 0.10121747106313705, -0.031505145132541656, 0.011658946052193642, -0.010108751244843006, -0.015056377276778221, 0.004281599074602127, -0.013571160845458508, -0.001565278391353786, 0.03883839771151543, 0.008623535744845867, -0.052205342799425125, -0.023447846993803978, -0.021944066509604454, -0.021981196478009224, -0.008164046332240105, 0.010591446422040462, 0.014360181987285614, 0.025007324293255806, -0.009923099540174007, 0.045447610318660736, 0.008999480865895748, 0.021479936316609383, 0.017497701570391655, -0.016086746007204056, 0.03588653355836868, -0.0218883715569973, -0.04466786980628967, 0.00657208077609539, 0.04221726581454277, 0.03805866092443466, 0.02372632548213005, -0.020180372521281242, 0.01871372200548649, 0.03557092323899269, -0.02437610737979412, 0.05320786312222481, 0.04945769160985947, -0.00863281823694706, -0.03215492516756058, -0.024357542395591736, 0.026696758344769478, -0.022798065096139908, -0.08584548532962799, 0.018370265141129494, -0.07229288667440414, -0.009124795906245708, -0.03872700780630112, -0.00203637033700943, -0.0676887184381485, 0.026678193360567093, -0.004627376329153776, 0.021461371332406998, 0.002891529817134142, -0.0506458654999733, 0.04099196195602417, -0.0148057471960783, 0.012225184589624405, 0.011055576615035534, 0.01052646804600954, 0.04136326536536217, -0.07199584692716599, -0.05034882202744484, 0.056326817721128464, -0.014480856247246265, -0.014629377983510494, 0.04485352337360382, -0.0019075743621215224, -0.032377708703279495, 0.025118716061115265, -0.02571280300617218, 0.06657480448484421, -0.027457930147647858, 0.024543194100260735, -0.005462809931486845, 0.014517986215651035, -0.004518305417150259, -0.0543217770755291, 0.03876413777470589, 0.058703161776065826, 0.030576884746551514, 0.015436964109539986, -0.0218883715569973, 0.04396239295601845, -0.0035413119476288557, 0.016012484207749367, -0.07266419380903244, -0.046710044145584106, 0.06831993907690048, -0.002698916010558605, -0.04351682960987091, -0.0071708085015416145, 0.002696595387533307, 0.03289753571152687, -0.04986612871289253, 0.09445973485708237, 0.03597935661673546, -0.016773657873272896, -0.04403665289282799, -0.06341872364282608, -0.0360536202788353, -0.019994720816612244, 0.02654823660850525, -0.07270132005214691, -0.0024366825819015503, 0.009055176749825478, 0.056104034185409546, 0.02008754573762417, 0.02513728104531765, 0.04229152575135231, 0.019771937280893326, 0.0041841319762170315, -0.0011005682172253728, 0.0056716687977313995, 0.005295723211020231, -0.017469853162765503, 0.00348561629652977, 0.03532957658171654, -0.056178294122219086, -0.022890891879796982, 0.012772858142852783, -0.03984091803431511, 0.026381149888038635, 0.005323571152985096, -0.02957436442375183, 0.0032396274618804455, 0.044259436428546906, 0.020811589434742928, -0.010043772868812084, -0.025230107828974724, -0.004525267519056797, 0.014880008064210415, 0.03254479542374611, 0.04359108954668045, -0.0007281039142981172, 0.0676887184381485, -0.07329540699720383, 0.06308455020189285, 0.01700572296977043, -0.010322251357138157, 0.011445445939898491, 0.056215424090623856, 0.06754019856452942, 0.026418279856443405, -0.05153699591755867, -0.010405794717371464, 0.070622019469738, -0.008869524113833904, 0.06219341978430748, 0.08636531233787537, -0.003513464005663991, 0.02227823995053768, -0.018398113548755646, 0.0028010245878249407, -0.006223983131349087, 0.015539072453975677, -0.008688513189554214, 0.010637859813869, 0.029555799439549446, -0.015167768113315105, 0.03204353526234627, -0.015529789961874485, -0.05250238627195358, 0.000055115437135100365, 0.019382068887352943, -0.019307808950543404, 0.005411755759268999, 0.04362821951508522, 0.02456175908446312, 0.0001637508685234934, 0.0014689714880660176, 0.03217349201440811, 0.002754611661657691, 0.003487936919555068, 0.010480055585503578, 0.06133941933512688, -0.015901094302535057, 0.009426480159163475, -0.0027754975017160177, -0.0332317091524601, 0.02860897406935692, -0.03527387976646423, -0.04370247945189476, 0.050794389098882675, -0.05302221328020096, -0.029240190982818604, 0.012652183882892132, -0.091712087392807, 0.0178411565721035, -0.0031537634786218405, 0.02532293274998665, -0.05239099636673927, -0.02914736419916153, 0.017544114962220192, -0.009310447610914707, -0.0018275119364261627, -0.05695803463459015, -0.005328212399035692, 0.0053003644570708275, -0.014545834623277187, 0.011204098351299763, -0.08057297021150589, -0.009106230922043324, 0.0074492865242064, 0.04385100305080414, -0.03146801516413689, -0.049643345177173615, -0.013283400796353817, -0.010043772868812084, -0.08124131709337234, -0.03055831976234913, 0.030743971467018127, -0.02398623898625374, -0.016383789479732513, 0.016161005944013596, 0.006497819907963276, 0.015047094784677029, 0.01877870038151741, -0.03438274934887886, -0.010201577097177505, 0.017247071489691734, 0.031078144907951355, 0.016801506280899048, 0.02536006271839142, 0.0007147602154873312, 0.05576986074447632, -0.040509264916181564, -0.023317892104387283, 0.018110353499650955, -0.027179453521966934, -0.01885296031832695, 0.052316732704639435, -0.009885968640446663, 0.0036944749299436808, -0.011148402467370033, 0.020607372745871544, 0.006005842238664627, -0.050980038940906525, -0.05684664100408554, -0.0070176455192267895, -0.085102878510952, -0.014137400314211845, -0.048269521445035934, 0.05398760363459587, -0.046932827681303024, 0.036536313593387604, -0.08168688416481018, 0.03312031552195549, 0.002158204559236765, 0.012772858142852783, 0.039135441184043884, -0.02101580612361431, -0.020811589434742928, -0.04600456729531288, 0.016458049416542053, -0.010006642900407314, -0.008911295793950558, -0.01549265906214714, -0.08428601175546646, -0.017135679721832275, 0.015761854127049446, 0.061599332839250565, -0.000769295496866107, 0.0005479634855873883, 0.06171072646975517, -0.06716889142990112, -0.009412556886672974, 0.013701117597520351, 0.017423439770936966, 0.01215092372149229, 0.01524202898144722, 0.03651775047183037, 0.005523147061467171, -0.05855464190244675, 0.027513626962900162, 0.10908911377191544, 0.016662267968058586, 0.02329932525753975, 0.022074023261666298, 0.01526059489697218, -0.013162726536393166, -0.025081586092710495, 0.0269752349704504, -0.09728164970874786, -0.0005850938614457846, -0.029778581112623215, -0.005003321450203657, -0.001772976596839726, 0.01283783558756113, -0.018648743629455566, -0.005323571152985096, -0.005439603701233864, 0.014601529575884342, 0.056104034185409546, 0.03369583934545517, -0.03672196716070175, 0.0009207178954966366, 0.04771256446838379, -0.010507903061807156, -0.06947097927331924, 0.05239099636673927, -0.004434762056916952, -0.02823766879737377, -0.03883839771151543, -0.03681479021906853, 0.057440727949142456, -0.032451968640089035, 0.00021480517170857638, 0.018045375123620033, -0.0836176648736, -0.03319457918405533, 0.03221062198281288, -0.0296114943921566, 0.015279159881174564, 0.006061537656933069, -0.057774901390075684, 0.035013966262340546, -0.0037385672330856323, 0.039098311215639114, -0.05580699071288109, -0.0022069381084293127, 0.02964862436056137, -0.09386565536260605, 0.020421721041202545, 0.033528752624988556, -0.016346659511327744, -0.050980038940906525, 0.013422640040516853, 0.04017509147524834, 0.019122155383229256, -0.03434561938047409, -0.02402336895465851, -0.015520507469773293, 0.04864082485437393, -0.017906134948134422, 0.05398760363459587, 0.006715961266309023, -0.016838636249303818, 0.018184613436460495, 0.02326219528913498, -0.033640142530202866, 0.08866739273071289, -0.035051096230745316, 0.07452071458101273, 0.0030887851025909185, -0.05276229977607727, -0.05120282247662544, -0.012030249461531639, -0.034327056258916855, 0.03052118979394436, -0.007969112135469913, 0.03861561790108681, 0.05190829932689667, 0.04496491327881813, -0.0046064904890954494, -0.030781101435422897, 0.02051454596221447, 0.01199311949312687, 0.03614644333720207, 0.006521026603877544, 0.006070820614695549, 0.05981707572937012, -0.06070820614695549, 0.015696877613663673, -0.008809187449514866, 0.06122802942991257, 0.016912898048758507, 0.04503917694091797, -0.015761854127049446, 0.026232628151774406, -0.0018495580879971385, -0.003100388450548053, -0.04637587070465088, 0.009885968640446663, -0.028219103813171387, 0.00661849370226264, -0.012772858142852783, 0.03744600713253021, 0.04247717931866646, 0.041734568774700165, 0.012939944863319397 ]
17,425
imodels.tree.gosdt.pygosdt_shrinkage
fit
null
def fit(self, X, y, *args, **kwargs): self.scores_ = [] opt = copy.deepcopy(self.estimator_) for reg_param in self.reg_param_list: est = HSOptimalTreeClassifier(opt, reg_param) cv_scores = cross_val_score(est, X, y, cv=self.cv, scoring=self.scoring) self.scores_.append(np.mean(cv_scores)) self.reg_param = self.reg_param_list[np.argmax(self.scores_)] super().fit(X=X, y=y)
(self, X, y, *args, **kwargs)
[ 0.0073976824060082436, 0.0057462118566036224, 0.02763611264526844, -0.011383834294974804, -0.028921091929078102, -0.004006512463092804, -0.024468908086419106, -0.04734516516327858, 0.020179610699415207, 0.02030629850924015, 0.01771824061870575, -0.029880302026867867, 0.02168176881968975, -0.0349116288125515, -0.0021288131829351187, 0.00002064337968477048, -0.0003373637155164033, -0.0488654226064682, -0.021518884226679802, 0.021265508607029915, -0.009836428798735142, -0.025790084153413773, -0.03538218513131142, 0.04397888109087944, -0.019835742190480232, -0.03938191011548042, 0.02741893194615841, -0.04220524802803993, -0.007985876873135567, 0.02573578990995884, -0.055851370096206665, 0.0044657569378614426, -0.04948076605796814, -0.010361279360949993, 0.004162610042840242, -0.06138944998383522, 0.008474531583487988, 0.055778976529836655, -0.000041392802813788876, 0.0025269759353250265, -0.038223620504140854, -0.06486432254314423, -0.023925960063934326, 0.0029907450079917908, 0.01748296245932579, 0.048829227685928345, -0.0034929728135466576, 0.09816520661115646, 0.027925685048103333, -0.07029381394386292, -0.03435058146715164, -0.06377843022346497, -0.01717529073357582, 0.003440940286964178, -0.01004455890506506, 0.06359744071960449, 0.09302528947591782, 0.007388633210211992, 0.08542399853467941, -0.03581654652953148, 0.02312963455915451, 0.00958305224776268, 0.00861026905477047, -0.0016356343403458595, -0.027581816539168358, -0.039743877947330475, -0.057299233973026276, 0.01916610449552536, -0.0395628958940506, 0.06681894510984421, -0.017329126596450806, -0.04227764159440994, 0.01770014315843582, 0.018677450716495514, 0.024396514520049095, 0.037897851318120956, -0.052485086023807526, -0.020595870912075043, 0.0010508327977731824, 0.019347088411450386, -0.03190731257200241, 0.03945430368185043, -0.016994308680295944, -0.025536708533763885, -0.09172221273183823, -0.040431614965200424, 0.017736338078975677, -0.01771824061870575, 0.0447390116751194, 0.03024226799607277, -0.008592170663177967, 0.04843106493353844, 0.03290271759033203, 0.018188796937465668, 0.0244327113032341, 0.02459559589624405, -0.04759854078292847, 0.025790084153413773, -0.041807085275650024, -0.014596283435821533, -0.017636798322200775, 0.04564392566680908, 0.02902968041598797, 0.08303502202033997, -0.016089392825961113, -0.039816271513700485, -0.009736888110637665, 0.004434084519743919, -0.013076025061309338, 0.01992623321712017, -0.06566064804792404, 0.011908684857189655, 0.01748296245932579, 0.02320202626287937, -0.04542674496769905, -0.03724631294608116, -0.07181407511234283, -0.0032373343128710985, -0.016641391441226006, -0.04864824563264847, -0.009646396152675152, 0.05682867765426636, -0.016016999259591103, -0.012578321620821953, -0.035472676157951355, -0.008515252731740475, 0.04010584577918053, 0.03290271759033203, -0.032957013696432114, -0.10634563863277435, 0.0053751966916024685, 0.0016084868693724275, -0.03359045460820198, -0.01572742685675621, 0.01757345348596573, -0.07318954914808273, -0.002961335238069296, -0.037825457751750946, 0.02626064047217369, -0.05762500315904617, 0.057769790291786194, -0.000939415127504617, 0.008967709727585316, -0.019057516008615494, 0.05454828962683678, 0.02008911781013012, 0.021953243762254715, 0.02282196283340454, -0.01111235935240984, 0.020831149071455002, -0.033246587961912155, -0.005248508416116238, 0.04495618864893913, -0.030513742938637733, -0.012343044392764568, 0.012469732202589512, -0.0189308263361454, -0.029645023867487907, 0.022315209731459618, -0.012596420012414455, 0.01145622693002224, -0.017329126596450806, 0.008225679397583008, 0.01053321361541748, 0.0273465383797884, 0.08549639582633972, -0.057444021105766296, 0.016596145927906036, -0.034622058272361755, -0.013474187813699245, -0.012279699556529522, -0.08035647124052048, -0.0691717192530632, 0.014098579995334148, -0.024179335683584213, -0.0030540889129042625, 0.021482687443494797, 0.011718652211129665, 0.0003153064171783626, 0.08614793419837952, 0.03797024488449097, -0.03377143666148186, 0.023654485121369362, -0.054403506219387054, -0.013582778163254261, -0.024776579812169075, 0.02030629850924015, 0.007121683098375797, -0.0677962526679039, 0.012777402997016907, -0.018586959689855576, -0.06736189126968384, -0.010886130854487419, -0.023690681904554367, 0.03538218513131142, 0.017890173941850662, 0.01570027880370617, 0.031653936952352524, 0.02740083448588848, 0.044558025896549225, -0.0006108178058639169, -0.03346376493573189, 0.047381363809108734, -0.04235003516077995, -0.0185688603669405, 0.06146184355020523, -0.00198628893122077, 0.05110961198806763, 0.005519982893019915, -0.020885443314909935, 0.022622881457209587, 0.002493041567504406, -0.050132304430007935, 0.02808856964111328, 0.05201452970504761, 0.007040240801870823, -0.0045675598084926605, -0.05038568004965782, -0.017609650269150734, -0.03854938969016075, 0.0035042844247072935, -0.018016861751675606, -0.054946452379226685, 0.023998351767659187, 0.020885443314909935, -0.024848973378539085, 0.04817768931388855, -0.027219850569963455, 0.03330088034272194, -0.03349996358156204, 0.017519159242510796, -0.034097205847501755, 0.034839238971471786, -0.025826280936598778, -0.05480166897177696, 0.07043860107660294, 0.0026740245521068573, 0.006298210006207228, -0.06768766045570374, 0.02168176881968975, -0.0043978882022202015, 0.015736475586891174, -0.025301430374383926, -0.034314386546611786, -0.00356989074498415, 0.02121121436357498, 0.01600795052945614, 0.032033998519182205, 0.04636785760521889, 0.0011249227682128549, 0.011356686241924763, 0.008497154340147972, -0.01771824061870575, -0.0378616526722908, -0.03398861736059189, -0.04419606178998947, 0.0004697075637523085, 0.04010584577918053, 0.02206183411180973, -0.021808458492159843, -0.02725604735314846, 0.05208692327141762, -0.006094604264944792, 0.07803989201784134, -0.06374222785234451, 0.023238223046064377, 0.025446217507123947, -0.020831149071455002, -0.023401107639074326, 0.026749294251203537, -0.013944744132459164, 0.010732294991612434, -0.012831698171794415, 0.016234179958701134, -0.015437854453921318, 0.055923763662576675, -0.010180296376347542, -0.06848398596048355, 0.024487007409334183, 0.0378616526722908, 0.07380488514900208, -0.05780598521232605, 0.03465825319290161, -0.027817094698548317, 0.02008911781013012, 0.029047779738903046, 0.002780352020636201, 0.020270101726055145, -0.001467093825340271, -0.008655514568090439, -0.030495643615722656, 0.03916473314166069, 0.022043734788894653, 0.02032439596951008, 0.06960608065128326, -0.02352779731154442, 0.00462637934833765, 0.017998764291405678, 0.01473201997578144, 0.03697483614087105, 0.01688571833074093, 0.002411599038168788, -0.048358671367168427, -0.05740782245993614, 0.03188921511173248, -0.012379240244626999, 0.08086322993040085, -0.005402344278991222, -0.009171316400170326, 0.032938916236162186, 0.029898399487137794, 0.09954068064689636, 0.007927057333290577, -0.017157193273305893, -0.07105394452810287, -0.03435058146715164, 0.05505504459142685, -0.022659078240394592, 0.0340610109269619, 0.004049495793879032, -0.009456364437937737, -0.007660107687115669, 0.005700965877622366, -0.060737911611795425, 0.026785491034388542, 0.006415849085897207, 0.000267091381829232, 0.039128534495830536, -0.027744701132178307, -0.035852741450071335, -0.0027713030576705933, -0.04955315962433815, 0.04365311190485954, -0.020052922889590263, 0.0038164800498634577, 0.05168876051902771, 0.013103173114359379, 0.049661748111248016, -0.0006888667121529579, 0.007474599871784449, -0.0516163669526577, 0.02421553246676922, -0.0464402511715889, 0.020867345854640007, -0.023238223046064377, -0.0013279630802571774, -0.010804688557982445, 0.04383409395813942, 0.0024183860514312983, 0.03456776216626167, -0.036468084901571274, -0.02314773201942444, 0.07919818162918091, 0.013637072406709194, 0.057299233973026276, 0.005592376459389925, 0.006216767709702253, 0.01404428482055664, 0.036468084901571274, -0.057299233973026276, 0.007275518495589495, -0.040033452212810516, -0.040504008531570435, 0.024342220276594162, 0.013727564364671707, -0.027545619755983353, -0.0189308263361454, 0.019962430000305176, 0.02137409895658493, -0.055018845945596695, 0.010497016832232475, -0.04292917996644974, -0.05328141152858734, 0.016994308680295944, 0.021971343085169792, 0.04079357907176018, -0.041191741824150085, -0.0008540137787349522, 0.01838787831366062, -0.01508493721485138, 0.04039541631937027, 0.01584506593644619, 0.040902167558670044, -0.04148131608963013, -0.019745251163840294, -0.03214259073138237, 0.02419743314385414, -0.01099472027271986, 0.08969520032405853, -0.015401657670736313, 0.07080057263374329, -0.005361622665077448, -0.039888665080070496, -0.020794952288269997, -0.03833220899105072, 0.0003990110708400607, 0.05548940226435661, 0.022007538005709648, -0.07112634181976318, -0.000391658628359437, -0.04148131608963013, -0.028287651017308235, -0.03985246643424034, 0.008343318477272987, 0.020903542637825012, -0.015284018591046333, -0.015093985944986343, 0.026912178844213486, -0.007918008603155613, 0.035780347883701324, -0.05842132866382599, 0.005415917839854956, 0.0516163669526577, 0.008365941233932972, -0.020957836881279945, -0.0017249947413802147, 0.027581816539168358, 0.06776005774736404, 0.03778925910592079, 0.009872625581920147, 0.011709603480994701, 0.015908410772681236, -0.029246861115098, 0.044485632330179214, 0.04596969485282898, 0.01145622693002224, -0.07463741302490234, -0.06352505087852478, 0.014704872854053974, -0.047453757375478745, -0.07557851821184158, -0.00931157823652029, -0.08223869651556015, 0.012668813578784466, -0.04741755872964859, -0.03574415296316147, -0.042639605700969696, 0.037753064185380936, -0.02298484742641449, 0.0021503048483282328, -0.03717391937971115, -0.011899635195732117, 0.05795077234506607, 0.011130457744002342, 0.004393363371491432, -0.010687049478292465, 0.002110714791342616, 0.018514566123485565, -0.10497017204761505, -0.02618824690580368, 0.02113882079720497, 0.019365185871720314, 0.019274694845080376, 0.06015876680612564, -0.0018335845088586211, -0.034314386546611786, 0.006461095064878464, -0.028142863884568214, 0.06450235843658447, 0.007836566306650639, 0.02718365378677845, -0.013609925284981728, 0.03930952027440071, 0.007375059183686972, -0.05686487630009651, -0.011962980031967163, 0.036305200308561325, 0.009483511559665203, 0.032033998519182205, -0.023093437775969505, 0.024794677272439003, -0.0172929298132658, -0.032649341970682144, -0.024179335683584213, -0.04933597892522812, 0.05201452970504761, 0.04571631923317909, -0.030821412801742554, 0.004006512463092804, -0.023346813395619392, 0.05690107122063637, -0.019600464031100273, 0.06479193270206451, -0.011827242560684681, 0.016089392825961113, -0.010171247646212578, -0.018270239233970642, -0.05748021602630615, -0.021410295739769936, 0.023111535236239433, -0.014840610325336456, -0.018948925659060478, -0.0021469113416969776, 0.01545595284551382, -0.04046780988574028, 0.006746143102645874, 0.03538218513131142, 0.004818673711270094, -0.014071431942284107, 0.007895385846495628, -0.012931238859891891, 0.010949474759399891, -0.0029703842010349035, -0.00555617967620492, 0.01157386600971222, -0.0067959134466946125, -0.0026016314513981342, 0.04672982543706894, -0.06942509859800339, 0.057082053273916245, -0.022731471806764603, -0.0743478387594223, 0.017283881083130836, 0.043870292603969574, 0.01855076290667057, -0.011003769002854824, -0.01194488164037466, 0.03916473314166069, 0.049661748111248016, 0.036540478467941284, 0.006008637137711048, 0.016016999259591103, 0.0622943677008152, -0.061968594789505005, 0.08723383396863937, 0.04557153210043907, -0.021717965602874756, 0.01855076290667057, 0.03552697226405144, 0.04419606178998947, 0.05892807990312576, -0.044015076011419296, -0.015302116982638836, 0.04672982543706894, -0.026296837255358696, 0.03527359664440155, 0.06754287332296371, -0.04006964713335037, 0.015745526179671288, -0.01688571833074093, -0.014216219075024128, -0.0259710680693388, 0.02727414481341839, 0.022116128355264664, -0.011320489458739758, 0.025898674502968788, -0.023401107639074326, 0.001878830255009234, -0.010569410398602486, -0.011564817279577255, -0.003088023280724883, -0.04151751101016998, -0.00508109899237752, 0.03398861736059189, 0.019980529323220253, 0.0052801803685724735, -0.011537669226527214, 0.05085623636841774, 0.020034823566675186, 0.01845122128725052, 0.011501472443342209, 0.02122931182384491, 0.030586134642362595, -0.009293479844927788, 0.01833358220756054, -0.009483511559665203, -0.059434834867715836, 0.04803290218114853, -0.06153423711657524, -0.026930278167128563, 0.008311646990478039, 0.040902167558670044, -0.04528195783495903, 0.00888174306601286, -0.0450647808611393, 0.07948775589466095, 0.01397189125418663, -0.023346813395619392, -0.08556878566741943, 0.008727907203137875, 0.0015338313532993197, -0.029301155358552933, -0.0025835330598056316, -0.05205072462558746, 0.01381805632263422, 0.015030642040073872, -0.021518884226679802, 0.019582366570830345, -0.09027434885501862, 0.014777266420423985, 0.0001476142933825031, 0.0740220695734024, -0.011139506474137306, -0.029445942491292953, 0.005927194841206074, 0.006574209313839674, -0.0902019515633583, -0.048286277800798416, -0.006610406097024679, -0.04741755872964859, 0.013030779547989368, 0.019202301278710365, 0.0005635925335809588, -0.011121408082544804, 0.02611585333943367, -0.033246587961912155, -0.01316651701927185, 0.016496604308485985, -0.014541988261044025, -0.014062383212149143, 0.025229036808013916, 0.01743771694600582, 0.060375943779945374, -0.0054475897923111916, -0.022640978917479515, 0.05863850936293602, 0.012967435643076897, -0.03349996358156204, 0.034929729998111725, 0.010415574535727501, 0.027817094698548317, -0.007108109537512064, 0.014098579995334148, 0.047381363809108734, -0.04709178954362869, -0.03621470928192139, -0.034314386546611786, -0.07018522918224335, -0.010723245330154896, 0.013030779547989368, 0.009574003517627716, -0.05567038804292679, 0.01752820797264576, -0.007415780331939459, 0.04926358535885811, -0.03927332162857056, 0.019256597384810448, -0.009022004902362823, -0.03398861736059189, -0.08730622380971909, -0.08223869651556015, 0.0057190642692148685, 0.010325082577764988, -0.019509973004460335, -0.024613695219159126, -0.03069472499191761, -0.06605881452560425, 0.04629546403884888, 0.04520956426858902, -0.04115554690361023, 0.044775206595659256, -0.018342632800340652, -0.06710851192474365, 0.004316445905715227, 0.025934871286153793, -0.0013766023330390453, 0.015546443872153759, 0.02533762715756893, 0.0345858596265316, 0.014469594694674015, -0.05621333420276642, 0.02917446754872799, 0.08824733644723892, 0.02153698354959488, -0.0027735652402043343, 0.03398861736059189, -0.019274694845080376, -0.02490326762199402, -0.039888665080070496, 0.00725289573892951, -0.066420778632164, -0.03319229185581207, -0.027509422972798347, 0.010858982801437378, -0.03319229185581207, -0.041191741824150085, -0.02711126022040844, -0.009718789719045162, -0.0078275166451931, 0.026514016091823578, 0.08585835993289948, 0.05726303532719612, 0.02144649066030979, 0.011429079808294773, 0.05773359164595604, 0.03688434511423111, -0.04242242872714996, 0.04481140151619911, 0.0002798167697619647, -0.008601219393312931, -0.02160937711596489, -0.04803290218114853, 0.021265508607029915, -0.04763473942875862, -0.01698525995016098, 0.040902167558670044, -0.03143675625324249, -0.0763748437166214, 0.06243915110826492, -0.021555081009864807, -0.024541301652789116, 0.03319229185581207, -0.060810305178165436, 0.03985246643424034, -0.007963254116475582, 0.026695000007748604, -0.031653936952352524, 0.01682237535715103, -0.0062529644928872585, -0.07992211729288101, 0.004011036828160286, -0.01963666081428528, -0.041119348257780075, -0.0011475456412881613, 0.053860556334257126, 0.034404877573251724, 0.03512880951166153, -0.022640978917479515, 0.021265508607029915, 0.02542811818420887, 0.051507774740457535, -0.01016219798475504, 0.05201452970504761, 0.007574140559881926, 0.015329264104366302, 0.007687255274504423, 0.08383134752511978, -0.030115580186247826, 0.07025761902332306, -0.05201452970504761, 0.04937217757105827, -0.006022211164236069, -0.011166654527187347, -0.018080206587910652, -0.0021684032399207354, -0.031491052359342575, 0.0030540889129042625, -0.026170149445533752, 0.0629459023475647, 0.037065327167510986, -0.02139219641685486, 0.003047302132472396, 0.02383546717464924, 0.0335361585021019, 0.009691642597317696, -0.004590182565152645, -0.0028821551240980625, 0.011637209914624691, 0.036848150193691254, -0.02816096320748329, 0.0004241790156811476, -0.015247821807861328, 0.0798497200012207, 0.02474038302898407, 0.06899073719978333, 0.054403506219387054, -0.0012872419320046902, -0.047308970242738724, 0.012723108753561974, -0.0023278945591300726, 0.01940138265490532, -0.03858558461070061, -0.01355563011020422, -0.008931513875722885, -0.001779289566911757, 0.03212449327111244, 0.0567924827337265, 0.026152050122618675 ]
17,435
imodels.tree.hierarchical_shrinkage
HSTreeClassifier
null
class HSTreeClassifier(HSTree, ClassifierMixin): def __init__( self, estimator_: BaseEstimator = DecisionTreeClassifier(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 = DecisionTreeClassifier(max_leaf_nodes=20), reg_param: float = 1, shrinkage_scheme_: str = 'node_based', max_leaf_nodes: int = None, random_state: int = None)
[ -0.01014738529920578, -0.045051127672195435, 0.004359567072242498, -0.03772396966814995, -0.037687696516513824, 0.0024869709741324186, -0.037506334483623505, 0.04091599956154823, -0.020512409508228302, 0.0016424889909103513, 0.027386151254177094, 0.04164145886898041, 0.01971440203487873, 0.023595618084073067, -0.0051281023770570755, -0.02696901187300682, 0.056332044303417206, -0.015706229954957962, 0.030741408467292786, 0.02910912223160267, -0.031158549711108208, 0.004563603084534407, -0.018970804288983345, 0.018254412338137627, -0.048678431659936905, 0.04069836065173149, 0.016984855756163597, -0.002507374621927738, 0.007621874567121267, -0.02196333184838295, -0.07972816377878189, -0.027041558176279068, -0.09082771837711334, 0.059669166803359985, 0.019841358065605164, -0.0338246189057827, -0.0040489789098501205, 0.07871251553297043, -0.0879984200000763, 0.04272965341806412, -0.030124766752123833, -0.040226809680461884, -0.05491739511489868, -0.07160300016403198, 0.006397658959031105, 0.05401057004928589, 0.03931998461484909, 0.0376514233648777, -0.014209967106580734, -0.06732277572154999, -0.018154660239815712, -0.04381784424185753, -0.004413976799696684, 0.02744056098163128, -0.029979674145579338, 0.05277728661894798, 0.07443229854106903, -0.00876900926232338, 0.03743378818035126, 0.02618914097547531, 0.005830892827361822, 0.005581515375524759, 0.04077090695500374, -0.024157850071787834, -0.04951271042227745, -0.018236275762319565, -0.09082771837711334, 0.004928600508719683, -0.024448035284876823, 0.024865174666047096, -0.006116542965173721, -0.04138755053281784, 0.026406779885292053, 0.06946288794279099, 0.04947643727064133, 0.00965769961476326, -0.04657459631562233, -0.055243853479623795, 0.012613953091204166, 0.014527356252074242, -0.008827953599393368, -0.006284305825829506, 0.00651554623618722, -0.026606282219290733, -0.027531243860721588, -0.08059871196746826, 0.0702608972787857, -0.03197469189763069, 0.009376583620905876, 0.017438268288969994, -0.08168690651655197, 0.024194123223423958, 0.01693044602870941, -0.0019462758209556341, 0.057891786098480225, 0.06108381599187851, 0.007708022836595774, -0.003799601923674345, -0.035747088491916656, -0.04766278713941574, -0.017991432920098305, 0.06529148668050766, 0.010718685574829578, 0.048569612205028534, -0.05165282264351845, -0.0251009501516819, -0.019678128883242607, 0.020240360870957375, -0.01740199513733387, -0.04243946820497513, -0.05502621456980705, 0.03823179379105568, 0.0032509721349924803, 0.0529586523771286, -0.005282262805849314, -0.04737260192632675, -0.006198157090693712, -0.01107234787195921, -0.013457301072776318, -0.0656542181968689, -0.021945195272564888, 0.014627107419073582, -0.04135127738118172, 0.03786906227469444, -0.018036773428320885, 0.025119086727499962, 0.04410802945494652, 0.037687696516513824, -0.029925266280770302, -0.023504935204982758, 0.013956055976450443, 0.013946987688541412, -0.049766622483730316, -0.009793723002076149, 0.03206537663936615, -0.017365721985697746, -0.016350077465176582, 0.028673844411969185, 0.021890785545110703, 0.0027590186800807714, 0.01811838708817959, -0.0730176493525505, 0.02744056098163128, -0.02461126446723938, 0.02901843935251236, 0.024865174666047096, -0.013856304809451103, -0.00932217389345169, -0.03447753190994263, -0.0027544847689568996, -0.015207475982606411, 0.009440060704946518, 0.06166418269276619, -0.0031920282635837793, 0.014717789366841316, 0.0036046341992914677, -0.023958349600434303, -0.042403195053339005, 0.016676533967256546, -0.009195217862725258, -0.0015178003814071417, 0.00421220762655139, 0.021129051223397255, 0.0017195692053064704, -0.030070357024669647, -0.00382453971542418, -0.040444448590278625, -0.07660868018865585, -0.038086701184511185, 0.020367316901683807, -0.004572671372443438, -0.06032207980751991, -0.036907825618982315, 0.02481076493859291, -0.02116532437503338, 0.03961016982793808, 0.05009308084845543, 0.052487101405858994, 0.04135127738118172, 0.05002053454518318, -0.008841555565595627, -0.002259130822494626, -0.031539417803287506, 0.0006087070796638727, 0.01933353580534458, -0.013883509673178196, 0.014890086837112904, 0.029925266280770302, 0.00725460983812809, 0.043273746967315674, 0.00923602469265461, -0.021745692938566208, 0.02127414382994175, -0.007200200110673904, 0.06514639407396317, -0.022416744381189346, 0.012396314181387424, -0.030469361692667007, -0.014110215939581394, 0.08321037143468857, -0.017012059688568115, 0.046719688922166824, 0.049947988241910934, -0.0016730943461880088, 0.02107464149594307, 0.05136263743042946, -0.006030394230037928, 0.0495852567255497, -0.057601600885391235, 0.007730693556368351, -0.0468285046517849, 0.028601299971342087, -0.02305152267217636, 0.07646358758211136, 0.030034083873033524, -0.0765361338853836, -0.029145395383238792, 0.00035706281778402627, 0.009476333856582642, -0.04559522122144699, 0.040734633803367615, 0.017637770622968674, 0.015143997967243195, 0.030070357024669647, -0.005241455510258675, -0.03620050475001335, 0.04403548315167427, -0.07109517604112625, 0.0080344807356596, -0.029870856553316116, -0.011652717366814613, -0.054083116352558136, 0.05890743061900139, 0.0017241033492609859, -0.013647735118865967, 0.015579274855554104, -0.0017082339618355036, -0.024085303768515587, -0.05252337455749512, 0.015216544270515442, -0.03057818114757538, -0.01793702319264412, -0.010310614481568336, -0.03754260763525963, 0.025246042758226395, 0.006116542965173721, 0.01626846194267273, 0.01820000261068344, 0.016141505911946297, -0.005168909672647715, -0.020748184993863106, -0.07936543226242065, -0.022471154108643532, -0.0007929061539471149, 0.002058495534583926, -0.023196615278720856, -0.029925266280770302, -0.014826608821749687, 0.0031217492651194334, -0.040154267102479935, -0.0319928303360939, -0.05194300785660744, -0.011498556472361088, 0.11150335520505905, -0.05669477581977844, -0.015406977385282516, 0.020439863204956055, -0.003108146833255887, -0.01677628606557846, -0.02823856845498085, 0.11237390339374542, 0.04584913328289986, -0.042294375598430634, 0.011326259933412075, -0.015143997967243195, -0.035511314868927, -0.035946592688560486, -0.01613243855535984, -0.02352307178080082, -0.004604410380125046, 0.021401099860668182, -0.06057599186897278, -0.00817957241088152, 0.03097718395292759, -0.017900750041007996, 0.0031897611916065216, -0.028311114758253098, -0.0046928259544074535, -0.001202678307890892, 0.0011312657734379172, -0.04153263941407204, 0.025336725637316704, -0.03776024281978607, 0.025862684473395348, 0.07929288595914841, -0.042403195053339005, -0.026116594672203064, 0.038195520639419556, 0.009630494751036167, 0.006257100962102413, 0.04301983490586281, -0.042983561754226685, -0.013203389942646027, -0.01427344512194395, -0.023849530145525932, -0.022978976368904114, 0.052704740315675735, 0.017565224319696426, -0.005753812380135059, 0.06768550723791122, -0.0011199304135516286, 0.0628974661231041, -0.0030832092743366957, 0.00852416642010212, -0.029780173674225807, -0.0633690133690834, 0.016658397391438484, -0.035946592688560486, 0.030560044571757317, 0.04483348876237869, -0.07428720593452454, -0.010918187908828259, -0.04762651398777962, -0.0029653217643499374, -0.0390297994017601, -0.04080718010663986, 0.03968271613121033, -0.012777181342244148, -0.022235378623008728, 0.008574041537940502, -0.07472248375415802, -0.02658814564347267, 0.0835731029510498, -0.02939930558204651, -0.05901625007390976, 0.04428939148783684, 0.05640459060668945, 0.05502621456980705, -0.036817144602537155, -0.026914602145552635, 0.03531181439757347, 0.04051699489355087, -0.013221526518464088, 0.048098061233758926, -0.009136274456977844, -0.026914602145552635, 0.007277280557900667, -0.006125611253082752, 0.0156880933791399, 0.04029935598373413, -0.010410364717245102, -0.025318589061498642, 0.036037273705005646, 0.03373393416404724, 0.07595576345920563, 0.004375436343252659, -0.010011361911892891, 0.0333712063729763, 0.012323768809437752, -0.03302660956978798, 0.034078530967235565, -0.0285468902438879, -0.03614609315991402, 0.05538894608616829, 0.012160539627075195, -0.06739532202482224, -0.00165382435079664, 0.035837773233652115, 0.07142163068056107, -0.05774669349193573, 0.021310416981577873, -0.055642858147621155, -0.021256007254123688, -0.00128089205827564, 0.028746390715241432, 0.05488112196326256, -0.05698496103286743, 0.015379772521555424, 0.000504138704854995, 0.006161884404718876, 0.027603790163993835, 0.012169607914984226, 0.04077090695500374, -0.02979831025004387, -0.03513044863939285, -0.04185909777879715, 0.015615548007190228, 0.03714360296726227, 0.0670325979590416, -0.025645045563578606, -0.0012514202389866114, -0.011997311376035213, -0.023468662053346634, 0.0035978329833596945, -0.06188182160258293, -0.009530743584036827, 0.014300649985671043, -0.003003861987963319, -0.02765819989144802, -0.004225810058414936, 0.04421684518456459, -0.03888470679521561, 0.008642054162919521, -0.003758794628083706, 0.033588845282793045, -0.008691929280757904, 0.028057202696800232, 0.022126559168100357, 0.020367316901683807, -0.01847204938530922, 0.03620050475001335, -0.006551819387823343, -0.021818239241838455, 0.034187350422143936, -0.009412855841219425, -0.030052220448851585, 0.0782046914100647, 0.04831570014357567, 0.006388590671122074, -0.0397915355861187, 0.005422820802778006, 0.040843453258275986, -0.027295470237731934, 0.032700154930353165, 0.05168909579515457, 0.013792826794087887, -0.02912725880742073, -0.009866269305348396, 0.004618012346327305, -0.014581765979528427, -0.03743378818035126, 0.012623021379113197, -0.0699344351887703, -0.004264350514858961, 0.013974192552268505, -0.008397211320698261, -0.04457957670092583, 0.016005482524633408, -0.02089327573776245, 0.0035343552008271217, -0.0292360782623291, -0.028292978182435036, 0.0419316440820694, -0.012858795933425426, 0.059850532561540604, -0.0030945444013923407, 0.002043759683147073, 0.009476333856582642, -0.028111612424254417, -0.06880997121334076, 0.03598286584019661, -0.03663577884435654, -0.0163772813975811, 0.06115636229515076, -0.006275237537920475, -0.04019053652882576, 0.033008474856615067, 0.0013205657014623284, 0.03640000522136688, -0.006066667381674051, 0.009412855841219425, -0.0006580157787539065, 0.031249232590198517, 0.017320381477475166, -0.010791231878101826, -0.003332586493343115, 0.08284764736890793, -0.0022568637505173683, 0.009884405881166458, -0.055461492389440536, 0.03863079845905304, 0.02049427293241024, -0.01624125801026821, -0.0425482876598835, -0.03231928497552872, 0.02961694449186325, -0.002239860827103257, -0.058871157467365265, -0.033879026770591736, -0.029489988461136818, 0.03924743831157684, -0.011135825887322426, 0.059669166803359985, 0.01450921967625618, -0.014572697691619396, -0.028075339272618294, -0.011453215032815933, -0.043273746967315674, 0.03404225781559944, 0.0014316518791019917, -0.04762651398777962, -0.0018544596387073398, -0.03725242242217064, 0.04175027832388878, 0.039174892008304596, 0.024665674194693565, 0.028891483321785927, 0.026497462764382362, 0.022507427260279655, -0.027585653588175774, 0.002579920692369342, 0.015633683651685715, -0.00040155398892238736, -0.018898257985711098, 0.03663577884435654, -0.006923618260771036, 0.016966719180345535, 0.027241060510277748, -0.04679223150014877, 0.035638269037008286, 0.03527554124593735, 0.001168672344647348, 0.013148980215191841, 0.031720779836177826, 0.017855407670140266, 0.01279531791806221, -0.04066208750009537, 0.05644086375832558, 0.050455812364816666, 0.04501485452055931, 0.02548181638121605, -0.0014588567428290844, 0.07294510304927826, -0.027386151254177094, 0.013411959633231163, 0.015561138279736042, 0.021219734102487564, 0.03776024281978607, 0.049186255782842636, 0.08241236954927444, 0.005749278236180544, -0.03424175828695297, -0.03393343836069107, 0.108674056828022, -0.023976486176252365, 0.02952626161277294, 0.00656542181968689, 0.02675137296319008, 0.037397515028715134, -0.06732277572154999, 0.020911412313580513, -0.03326238691806793, 0.012677431106567383, 0.02087513916194439, -0.047118689864873886, 0.004479721654206514, 0.00668784324079752, 0.038086701184511185, -0.01882571168243885, 0.008741804398596287, -0.008161435835063457, -0.019478626549243927, -0.03714360296726227, -0.013158048503100872, 0.04697359725832939, -0.012922273948788643, -0.010192726738750935, -0.01004763413220644, 0.02744056098163128, 0.01989576779305935, -0.022688793018460274, -0.009947883896529675, 0.0557154044508934, 0.005608720239251852, 0.052196916192770004, -0.000032465086405863985, -0.04410802945494652, 0.04726378247141838, -0.054264482110738754, -0.016721876338124275, 0.024937720969319344, 0.01671280711889267, 0.007413304410874844, 0.044942308217287064, -0.07523030042648315, 0.0278577022254467, -0.008950375020503998, 0.04726378247141838, -0.0382680669426918, -0.004638416226953268, -0.010283409617841244, 0.008827953599393368, -0.02627982385456562, -0.016404487192630768, -0.00816597044467926, -0.006601694971323013, -0.022870156913995743, 0.011915696784853935, -0.0639856606721878, -0.000873953802511096, 0.012432587333023548, -0.012124266475439072, 0.023450525477528572, -0.028583163395524025, -0.010092975571751595, -0.029870856553316116, -0.07501266896724701, -0.06648849695920944, 0.029453715309500694, -0.007540259975939989, -0.0009499004809185863, 0.038086701184511185, 0.0156880933791399, 0.023903939872980118, 0.06271610409021378, -0.027803292497992516, 0.018988940864801407, 0.0012797585222870111, -0.046429503709077835, -0.04483348876237869, -0.006365919951349497, 0.011788740754127502, 0.05781923979520798, -0.011299055069684982, -0.03248251602053642, 0.01196103822439909, -0.01960558257997036, -0.07396074384450912, 0.0002225975040346384, -0.06725022941827774, -0.014255308546125889, -0.0014169160276651382, 0.022326061502099037, 0.026225414127111435, -0.027023421600461006, -0.030523771420121193, 0.00448425579816103, -0.08654749393463135, -0.026787646114826202, -0.029870856553316116, 0.026551872491836548, -0.06728650629520416, 0.009603289887309074, -0.06659732013940811, 0.01245072390884161, -0.007159393280744553, 0.007168461102992296, 0.05038326606154442, 0.027114104479551315, -0.03380648046731949, -0.08843369036912918, 0.003416467923671007, -0.007449577562510967, -0.023577481508255005, -0.03591031953692436, -0.08654749393463135, -0.02038545347750187, 0.048569612205028534, -0.0018397236708551645, -0.009793723002076149, -0.0041691334918141365, 0.05941525474190712, -0.03360697999596596, 0.000918161531444639, 0.014472946524620056, -0.01450921967625618, 0.027331743389368057, 0.005921575240790844, 0.04900489002466202, 0.000382850703317672, -0.031212959438562393, 0.019079623743891716, 0.05085481330752373, 0.09576085209846497, 0.03725242242217064, 0.010410364717245102, -0.0041079227812588215, -0.027422424405813217, -0.01726597175002098, -0.02078445628285408, -0.054083116352558136, 0.009304037317633629, -0.04051699489355087, -0.06409447640180588, -0.028057202696800232, -0.03487653657793999, 0.006139213684946299, 0.010120180435478687, 0.027585653588175774, 0.0063523175194859505, 0.07639104127883911, 0.05930643528699875, -0.03313542902469635, -0.008283857256174088, 0.028583163395524025, 0.01991390436887741, -0.05687614157795906, 0.024937720969319344, -0.03380648046731949, -0.05056463181972504, 0.009539811871945858, -0.020548682659864426, 0.023668164387345314, -0.0005554310628212988, 0.010319682769477367, 0.04276592656970024, -0.06267982721328735, -0.06173672899603844, 0.035438768565654755, -0.05676732212305069, 0.03884843736886978, 0.0031376187689602375, -0.08016344159841537, 0.02432107925415039, 0.026134731248021126, 0.039755262434482574, -0.03801415488123894, 0.027767019346356392, 0.04951271042227745, -0.06130145117640495, 0.0046928259544074535, 0.029580671340227127, -0.007853114977478981, -0.027585653588175774, -0.004760837648063898, 0.0043391636572778225, 0.012568611651659012, -0.02058495581150055, -0.022579973563551903, -0.005907972808927298, 0.010655208490788937, -0.02254370041191578, 0.08400838077068329, 0.057782966643571854, -0.036436278373003006, 0.005749278236180544, 0.06246219202876091, -0.019533036276698112, 0.05303119868040085, -0.023105932399630547, 0.04664714261889458, 0.008256652392446995, -0.058871157467365265, -0.044760942459106445, 0.005912506952881813, -0.04791669920086861, 0.010365024209022522, -0.0030106629710644484, 0.037687696516513824, 0.037016645073890686, 0.037796515971422195, -0.014681516215205193, -0.0018567267106845975, -0.0024461636785417795, 0.057891786098480225, 0.0023668163921684027, 0.016150575131177902, 0.05263219401240349, 0.04029935598373413, -0.016404487192630768, 0.004563603084534407, -0.029163531959056854, 0.04675596207380295, 0.04008172079920769, 0.08168690651655197, -0.02783956564962864, 0.0007725025643594563, -0.03373393416404724, -0.03500349074602127, -0.053684111684560776, 0.012704635038971901, -0.06434839218854904, 0.011008870787918568, -0.05085481330752373, 0.02156432718038559, 0.029254214838147163, 0.07367056608200073, 0.00886876042932272 ]
17,437
imodels.tree.hierarchical_shrinkage
__init__
null
def __init__( self, estimator_: BaseEstimator = DecisionTreeClassifier(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 = DecisionTreeClassifier(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.023124363273382187, -0.01591629348695278, -0.004162019584327936, -0.016144976019859314, -0.04676097631454468, 0.010931017808616161, -0.013254431076347828, 0.0061195408925414085, -0.04445585608482361, 0.011104816570878029, 0.013666059821844101, 0.0916924923658371, 0.014214897528290749, 0.03955290466547012, -0.006339075975120068, -0.04240686073899269, 0.04851725697517395, -0.0019632382318377495, 0.028246847912669182, 0.05448129400610924, -0.030808091163635254, 0.014608231373131275, -0.02288653329014778, 0.04193120449781418, -0.031393516808748245, 0.05920129641890526, 0.0017185481265187263, -0.014397842809557915, 0.014041098766028881, -0.000951890426222235, -0.08678954094648361, -0.03640623763203621, -0.07317836582660675, 0.0718245655298233, 0.03516220301389694, -0.026033202186226845, -0.01824885420501232, 0.08620411157608032, -0.07764224708080292, 0.03534514829516411, -0.010976755060255527, -0.052725013345479965, -0.0412725992500782, -0.06414083391427994, 0.0037663988769054413, 0.030387315899133682, 0.03552809730172157, 0.027313824743032455, -0.03146669641137123, -0.06048191711306572, -0.019703274592757225, -0.036644067615270615, 0.011644506826996803, 0.035784218460321426, -0.008328612893819809, 0.06531169265508652, 0.07837402820587158, -0.002362289000302553, 0.055835090577602386, 0.024093976244330406, -0.027679717168211937, -0.0096503971144557, 0.015065595507621765, -0.044309500604867935, -0.03746732324361801, -0.02852126769721508, -0.08327697962522507, -0.0017379861092194915, -0.035418327897787094, 0.03071661852300167, 0.030222663655877113, -0.02938111312687397, 0.0015584704233333468, 0.04035786911845207, 0.010565126314759254, 0.00260697933845222, -0.0412725992500782, -0.05316408351063728, -0.019758159294724464, 0.01608094573020935, 0.027277234941720963, 0.01399536244571209, -0.005031012464314699, -0.045114461332559586, -0.03258266672492027, -0.0863504707813263, 0.020142344757914543, -0.047053687274456024, 0.03430235758423805, 0.01029070746153593, -0.04185802489519119, 0.02433180622756481, 0.03552809730172157, 0.0007112022140063345, 0.048334307968616486, 0.04460221156477928, -0.0047748880460858345, 0.005406051874160767, -0.012019546702504158, -0.05078578367829323, -0.019044669345021248, 0.05056624859571457, -0.019556917250156403, 0.019959399476647377, -0.029307935386896133, -0.033918172121047974, -0.01523024681955576, 0.006284192204475403, -0.0015081603778526187, -0.05645710974931717, -0.0707634761929512, 0.03735755383968353, -0.03838205337524414, 0.05967695638537407, -0.03867476433515549, 0.0227950606495142, -0.007711170241236687, -0.028502972796559334, 0.0015916294651106, -0.06622642278671265, -0.007610549684613943, 0.03874794393777847, -0.04456562548875809, 0.012321406975388527, -0.00866706296801567, 0.007807216607034206, 0.04840748757123947, 0.054444704204797745, -0.03984561935067177, -0.0294908806681633, 0.010903576388955116, -0.005067601799964905, -0.0605916865170002, -0.021532732993364334, 0.027679717168211937, -0.019849631935358047, 0.0009358826791867614, 0.03838205337524414, -0.021587617695331573, -0.000557699182536453, 0.027313824743032455, -0.021569322794675827, 0.03313150629401207, -0.010546831414103508, 0.03776003420352936, 0.024862349033355713, -0.01774575375020504, 0.017096295952796936, -0.033479101955890656, -0.007981015369296074, -0.01677614077925682, 0.03152158111333847, 0.025831962004303932, -0.014992417767643929, 0.027862662449479103, 0.0016190713504329324, 0.0029477160423994064, -0.019392266869544983, 0.020563120022416115, 0.00043506824295036495, -0.004280934110283852, 0.023197541013360023, 0.03260096162557602, -0.01735241897404194, -0.014022803865373135, 0.021569322794675827, -0.06618983298540115, -0.06421401351690292, -0.04456562548875809, 0.01641024835407734, -0.017599396407604218, -0.07303200662136078, -0.043394770473241806, -0.011242026463150978, -0.01812993921339512, 0.07427603751420975, 0.05389586463570595, 0.042809344828128815, 0.028063902631402016, 0.06560440361499786, -0.007605976425111294, 0.00018023030133917928, -0.024697698652744293, -0.021971803158521652, 0.015623580664396286, -0.029582353308796883, 0.002278819913044572, 0.029253050684928894, 0.005671323277056217, 0.038052748888731, 0.0423702746629715, 0.006183571647852659, 0.015102185308933258, -0.013089779764413834, 0.03410111740231514, -0.03651600331068039, 0.035893987864255905, -0.03408282250165939, 0.00579023826867342, 0.07800813764333725, 0.015422340482473373, 0.046248726546764374, 0.04584624618291855, -0.007340704556554556, 0.016227303072810173, 0.05909153074026108, -0.027387002483010292, 0.034869492053985596, -0.016401100903749466, 0.01763598620891571, -0.013382493518292904, 0.01588885299861431, 0.021057074889540672, 0.06867789477109909, 0.012806213460862637, -0.06366517394781113, -0.023654906079173088, -0.006512874271720648, 0.031064216047525406, -0.0348329022526741, 0.06395789235830307, 0.015093037858605385, 0.024898938834667206, 0.01738900877535343, 0.015349161811172962, -0.020672887563705444, 0.04251663014292717, -0.07120254635810852, -0.011498150415718555, -0.027204057201743126, -0.04160190001130104, -0.08444783091545105, 0.03951631858944893, -0.014800324104726315, 0.022776765748858452, 0.0024903512094169855, 0.005392330698668957, -0.03368034213781357, -0.07947170734405518, -0.004752019885927439, -0.02718576230108738, 0.0008575589745305479, 0.002079866360872984, -0.020252112299203873, 0.014910091646015644, 0.02283165045082569, 0.0075968289747834206, 0.033533986657857895, 0.003784693544730544, -0.023508548736572266, 0.015577844344079494, -0.06333587318658829, -0.04965151846408844, 0.006823882460594177, 0.002970584202557802, -0.01147070899605751, 0.0046834154054522514, 0.0019140716176480055, 0.004916671197861433, -0.013098927214741707, -0.008781403303146362, -0.03218018636107445, -0.0294908806681633, 0.0959368348121643, -0.03772344812750816, -0.009586365893483162, 0.008625899441540241, -0.009238768368959427, -0.007262952625751495, -0.03507073223590851, 0.12828166782855988, 0.04160190001130104, -0.018258001655340195, 0.019008079543709755, -0.025978319346904755, -0.06245773285627365, -0.03743073344230652, -0.018569009378552437, -0.036863602697849274, 0.0000936168507905677, 0.02429521642625332, -0.062274787575006485, 0.011049932800233364, 0.03121057152748108, -0.0509321428835392, -0.02901522070169449, -0.002210215199738741, 0.008324039168655872, -0.01729753613471985, 0.008145666681230068, -0.06081122159957886, 0.023234130814671516, -0.01988621987402439, 0.03077150136232376, 0.06296998262405396, -0.05832315608859062, 0.008941481821238995, 0.03152158111333847, -0.024569636210799217, 0.0040019419975578785, 0.05890858173370361, -0.04171166941523552, -0.042114149779081345, -0.010153498500585556, 0.001955234445631504, -0.0014932960039004683, 0.051554158329963684, -0.012778772041201591, 0.017727458849549294, 0.06564099341630936, 0.029033515602350235, 0.05418857932090759, -0.004475314170122147, 0.006375664845108986, -0.03507073223590851, -0.09469280391931534, 0.019502034410834312, -0.05393245443701744, 0.04083352908492088, 0.03210700675845146, -0.02749677002429962, -0.012723888270556927, -0.06278703361749649, -0.02585025690495968, -0.062494322657585144, -0.016620635986328125, 0.04548035189509392, -0.0018248854903504252, -0.0396626740694046, 0.003960778936743736, -0.05693276599049568, -0.012586678378283978, 0.06121370196342468, -0.02052653208374977, -0.048700202256441116, 0.03936995938420296, 0.037284377962350845, 0.023417076095938683, -0.0259966142475605, -0.008195976726710796, 0.05645710974931717, 0.023508548736572266, -0.000435639958595857, 0.03227165713906288, -0.01020838227123022, -0.010473653674125671, 0.0268015768378973, -0.008616751991212368, 0.025502659380435944, 0.007230937015265226, -0.023856146261096, -0.008333186618983746, 0.006430548615753651, 0.03529026731848717, 0.06951944530010223, 0.014169161207973957, -0.028539562597870827, 0.0343206524848938, 0.004386128392070532, -0.01835862174630165, 0.00665008369833231, -0.05349338427186012, -0.029472585767507553, 0.042699575424194336, 0.033863287419080734, -0.06944626569747925, -0.005653028842061758, 0.01755366101861, 0.07866673916578293, -0.04818795248866081, 0.035089027136564255, -0.060335561633110046, -0.022264517843723297, -0.0005834259209223092, 0.03335104137659073, 0.04866361245512962, -0.06637277454137802, -0.0058679901994764805, 0.02005087211728096, 0.024953821673989296, 0.02499041147530079, -0.010720630176365376, 0.06454331427812576, -0.008305744268000126, -0.03882112354040146, -0.029948245733976364, 0.022776765748858452, 0.019867926836013794, 0.06618983298540115, -0.03936995938420296, 0.007176053244620562, -0.003187832422554493, -0.019867926836013794, 0.01882513426244259, -0.03320468217134476, -0.014132571406662464, 0.015138774178922176, -0.023929325863718987, -0.037503913044929504, -0.0032038402277976274, 0.01968497969210148, 0.0013606601860374212, -0.008891170844435692, -0.0038624454755336046, 0.023508548736572266, 0.004406709689646959, 0.013382493518292904, 0.03218018636107445, 0.016620635986328125, -0.009577218443155289, 0.02621614933013916, -0.027533359825611115, -0.004866361152380705, 0.011351794004440308, 0.005099617410451174, -0.0009501753374934196, 0.0686413049697876, 0.01571505330502987, 0.04434609040617943, -0.06878766417503357, 0.01605350337922573, 0.04196779057383537, -0.026453979313373566, 0.038418639451265335, 0.045224230736494064, 0.019264204427599907, -0.00934396218508482, -0.022282812744379044, 0.018916606903076172, -0.018587304279208183, -0.03521708771586418, 0.011077375151216984, -0.07475169748067856, -0.0047748880460858345, 0.0048709348775446415, 0.004470740910619497, -0.053749509155750275, 0.02632591687142849, -0.011918925680220127, -0.017206063494086266, -0.017260946333408356, -0.05565214529633522, 0.04544376581907272, -0.0300214234739542, 0.04156531020998955, 0.018459241837263107, 0.02418544888496399, 0.025502659380435944, -0.04643167182803154, -0.07778859883546829, 0.042589809745550156, -0.05137121304869652, -0.0300214234739542, 0.03351569175720215, -0.0025612427853047848, -0.030551966279745102, 0.027368707582354546, -0.003949344623833895, 0.040723759680986404, -0.002517793094739318, 0.03816251829266548, -0.0020341298077255487, 0.019666684791445732, -0.0001409255200996995, -0.028320027515292168, 0.03794298321008682, 0.0729222372174263, 0.01643769070506096, 0.01591629348695278, -0.028777392581105232, 0.030497083440423012, 0.025209946557879448, 0.015340014360845089, -0.047529347240924835, -0.03046049363911152, 0.033918172121047974, -0.00907869078218937, -0.061360057443380356, -0.004088840913027525, -0.009449156001210213, 0.017919551581144333, -0.012092724442481995, 0.08378922939300537, 0.031978946179151535, -0.04134577512741089, -0.0402115099132061, -0.052615243941545486, -0.02685645967721939, 0.007025123108178377, 0.022429168224334717, -0.05934765189886093, 0.017224358394742012, -0.012239081785082817, 0.05810362100601196, 0.03199724107980728, 0.03430235758423805, 0.04749275743961334, 0.02696622721850872, 0.030698323622345924, -0.009037528187036514, 0.011992104351520538, -0.001310350140556693, -0.023343898355960846, -0.0016019201138988137, 0.01957521215081215, -0.01760854385793209, -0.02616126462817192, 0.02288653329014778, -0.06073804199695587, 0.03576592728495598, 0.040613994002342224, -0.0024789171293377876, -0.007921557873487473, 0.030039718374609947, -0.0007306402549147606, -0.001127975876443088, -0.039479728788137436, 0.022612115368247032, 0.035089027136564255, 0.022868238389492035, 0.04474857077002525, -0.005913726519793272, 0.07947170734405518, -0.05034671351313591, 0.0396626740694046, 0.013309314846992493, 0.01815738156437874, 0.023782968521118164, 0.029253050684928894, 0.08100844919681549, 0.0012737609213218093, -0.044894926249980927, -0.024898938834667206, 0.0976199358701706, -0.018029319122433662, 0.011891484260559082, 0.026508862152695656, 0.004580508451908827, 0.054334934800863266, -0.038199104368686676, 0.011735980398952961, -0.029618943110108376, 0.01744389347732067, -0.0012074429541826248, -0.0313752219080925, -0.013547144830226898, 0.002988878870382905, 0.050529658794403076, 0.0036680654156953096, -0.006238455418497324, -0.0013423656346276402, -0.00769287534058094, -0.0696658045053482, -0.006897060666233301, 0.027478475123643875, -0.005049307364970446, 0.00008261151378974319, -0.001791726564988494, 0.038528408855199814, -0.002556669060140848, -0.013492261059582233, -0.005374036263674498, 0.05323725938796997, 0.0069245025515556335, 0.06359200179576874, 0.020453352481126785, -0.049944233149290085, 0.033643752336502075, -0.05484718456864357, -0.03882112354040146, 0.039333369582891464, -0.03126545622944832, -0.004441012162715197, 0.030369020998477936, -0.08159387856721878, 0.019922809675335884, -0.009504039771854877, 0.05759137123823166, -0.04332159087061882, -0.0009741869871504605, -0.00984248984605074, 0.01177256926894188, -0.01824885420501232, -0.022648703306913376, -0.011040785349905491, 0.016849318519234657, -0.03849181905388832, -0.0016419395105913281, -0.04639508202672005, -0.02707599475979805, 0.0007889542612247169, -0.0038670192006975412, -0.010034583508968353, -0.05528625473380089, -0.03314979746937752, -0.0010628014570102096, -0.08430147916078568, -0.053529974073171616, 0.04434609040617943, -0.012449469417333603, -0.010738925077021122, 0.04493151605129242, 0.0029911657329648733, 0.02305118553340435, 0.034119412302970886, -0.02299630083143711, 0.01374838501214981, 0.024203743785619736, 0.00017808641132432967, -0.0012120166793465614, -0.004852640442550182, 0.00013370774104259908, 0.025319714099168777, -0.0498710535466671, -0.03995538875460625, 0.007112022489309311, -0.02449645660817623, -0.06139664724469185, 0.012111019343137741, -0.07358084619045258, -0.021057074889540672, -0.010382180102169514, 0.02074606716632843, 0.02424033358693123, -0.045333996415138245, -0.025539249181747437, -0.003393646562471986, -0.11013343930244446, -0.02579537406563759, -0.02890545316040516, 0.028429795056581497, -0.046504851430654526, -0.001916358363814652, -0.08247201889753342, 0.036058638244867325, 0.0019072111463174224, 0.01230311207473278, 0.03984561935067177, 0.029783593490719795, -0.05140779912471771, -0.04727322235703468, 0.0286859180778265, -0.006457990501075983, -0.025539249181747437, -0.03666235879063606, -0.10976754873991013, -0.0013766679912805557, 0.06117711216211319, 0.02085583470761776, -0.005767369642853737, -0.00130348966922611, 0.05290795862674713, -0.035582978278398514, 0.017873816192150116, 0.028539562597870827, -0.001678528729826212, 0.022776765748858452, 0.04526081681251526, 0.051810283213853836, -0.009156443178653717, -0.038894299417734146, 0.011196290142834187, 0.057115714997053146, 0.08620411157608032, 0.039004068821668625, 0.011928073130548, -0.021514439955353737, -0.038784533739089966, -0.03174111619591713, -0.01608094573020935, -0.05459105968475342, 0.020654592663049698, -0.01396792009472847, -0.06417742371559143, 0.017114590853452682, -0.00260697933845222, -0.011498150415718555, 0.012568384408950806, 0.00666380487382412, 0.02530141919851303, 0.059274476021528244, 0.06018920615315437, -0.03437553718686104, -0.02230110578238964, 0.045224230736494064, -0.003684073220938444, -0.07983759790658951, 0.05115167796611786, -0.015532108023762703, 0.000028942615244886838, -0.014095982536673546, -0.036003753542900085, 0.047419581562280655, -0.007070859428495169, 0.00351942190900445, 0.04116282984614372, -0.08781404048204422, -0.04573647677898407, 0.03035072609782219, -0.03666235879063606, 0.03415600210428238, 0.00039676393498666584, -0.08283790946006775, 0.027222352102398872, 0.015376604162156582, 0.03560127317905426, -0.03172282129526138, 0.0036177553702145815, 0.041199419647455215, -0.08488690108060837, 0.026764987036585808, 0.03838205337524414, -0.02166079543530941, -0.04332159087061882, -0.010052877478301525, 0.02499041147530079, 0.007820937782526016, -0.012531794607639313, -0.0372660830616951, -0.010711482726037502, 0.012211639434099197, -0.017846373841166496, 0.07017805427312851, 0.03470483794808388, -0.02284994348883629, 0.020087461918592453, 0.031338635832071304, 0.0019689553882926702, 0.05049307271838188, -0.038089338690042496, 0.07442239671945572, 0.012678151950240135, -0.06893401592969894, -0.06640936434268951, 0.0015744782285764813, -0.03940654918551445, 0.015678465366363525, 0.0007043417426757514, 0.03210700675845146, 0.01863304153084755, 0.032564371824264526, -0.009119853377342224, -0.029783593490719795, -0.000695766182616353, 0.029582353308796883, 0.02980188839137554, 0.0004902378423139453, 0.01434295903891325, 0.06776316463947296, -0.015879705548286438, -0.021843742579221725, -0.034284062683582306, 0.04266298562288284, 0.03677212819457054, 0.030332431197166443, -0.02444157376885414, 0.0034782590810209513, -0.015788232907652855, -0.0318874716758728, -0.05620098486542702, -0.00022039265604689717, -0.04657802730798721, 0.02932623028755188, -0.05462764948606491, 0.04482174664735794, 0.02433180622756481, 0.08327697962522507, 0.0030872123315930367 ]
17,454
imodels.tree.hierarchical_shrinkage
fit
null
def fit(self, X, y, sample_weight=None, *args, **kwargs): # remove feature_names if it exists (note: only works as keyword-arg) # None returned if not passed feature_names = kwargs.pop("feature_names", None) X, y, feature_names = check_fit_arguments(self, X, y, feature_names) if feature_names is not None: self.feature_names = feature_names self.estimator_ = self.estimator_.fit( X, y, *args, sample_weight=sample_weight, **kwargs ) self._shrink() # compute complexity if hasattr(self.estimator_, "tree_"): self.complexity_ = compute_tree_complexity(self.estimator_.tree_) elif hasattr(self.estimator_, "estimators_"): self.complexity_ = 0 for i in range(len(self.estimator_.estimators_)): t = deepcopy(self.estimator_.estimators_[i]) if isinstance(t, np.ndarray): assert t.size == 1, "multiple trees stored under tree_?" t = t[0] self.complexity_ += compute_tree_complexity(t.tree_) return self
(self, X, y, sample_weight=None, *args, **kwargs)
[ 0.020509688183665276, -0.03236684948205948, 0.07400830090045929, -0.010933473706245422, -0.02614608220756054, -0.0185869038105011, -0.010622435249388218, 0.02663620375096798, 0.011272788047790527, 0.027220578864216805, 0.018238164484500885, 0.021056361496448517, -0.002919520018622279, 0.0045736790634691715, -0.03689104691147804, 0.024034790694713593, -0.039888326078653336, -0.023356160148978233, -0.04546816647052765, 0.05772119760513306, -0.05289538949728012, -0.049916960299015045, -0.0042343647219240665, 0.04181110858917236, -0.0005069102044217288, 0.025184690952301025, 0.0117157818749547, -0.019095877185463905, 0.014109835959970951, -0.03504366800189018, -0.017691491171717644, -0.043960101902484894, -0.06405507028102875, 0.01439259760081768, -0.018841391429305077, -0.03747542202472687, 0.007997458800673485, 0.031084995716810226, 0.03221604600548744, -0.04584518447518349, -0.030726829543709755, -0.03542068228125572, 0.012017395347356796, -0.005169836338609457, -0.022677531465888023, 0.03819175437092781, -0.028804047033190727, 0.10141739249229431, -0.024958480149507523, -0.07133148610591888, -0.004599599167704582, -0.06684499233961105, -0.009557363577187061, 0.011348191648721695, 0.015523646958172321, 0.020811300724744797, 0.06356494873762131, 0.06216999143362045, 0.09033311158418655, -0.006847559008747339, 0.035458385944366455, 0.011894864961504936, -0.01777631975710392, -0.0020629861392080784, -0.0729149580001831, -0.04150949791073799, -0.04034074768424034, 0.021433377638459206, -0.0110465781763196, 0.05259377509355545, 0.030406367033720016, -0.024147896096110344, 0.03247995674610138, 0.014430299401283264, -0.02886059880256653, 0.03468549996614456, -0.06439438462257385, 0.00978357344865799, -0.01346890814602375, 0.009792998433113098, -0.014468001201748848, 0.033007778227329254, -0.04584518447518349, -0.0888250470161438, -0.04490264505147934, -0.04731554910540581, 0.003065614029765129, 0.005033168010413647, 0.03692874684929848, -0.017314475029706955, -0.010433926247060299, 0.0441863127052784, 0.08015366643667221, 0.016503889113664627, 0.06982342153787613, -0.005499725695699453, -0.02350696735084057, 0.007050205022096634, 0.016899757087230682, 0.019793355837464333, -0.037060704082250595, -0.00023931699979584664, 0.02867209166288376, 0.09267061203718185, -0.02946382574737072, 0.022300515323877335, 0.021980050951242447, -0.012102223932743073, -0.03125465288758278, -0.006842846050858498, -0.031895581632852554, 0.0060039847157895565, 0.03455354645848274, 0.033931467682123184, -0.04588288441300392, -0.01257349457591772, -0.02750333957374096, 0.007083194330334663, -0.02011382021009922, -0.01709768921136856, -0.0008276686421595514, 0.07857020199298859, -0.020340031012892723, -0.031198101118206978, -0.01002863422036171, -0.03415767848491669, 0.0038455664180219173, -0.0011445980053395033, -0.02509043551981449, -0.06710890680551529, -0.006904111243784428, 0.01833241805434227, 0.004559541121125221, 0.04614679887890816, -0.00787021592259407, 0.0001565501297591254, -0.0068711224012076855, -0.02035888098180294, 0.008595972321927547, -0.018313568085432053, 0.06763672828674316, -0.016070321202278137, 0.06835305690765381, 0.004420516546815634, 0.05568531155586243, 0.03572229668498039, 0.03879497945308685, 0.003678265493363142, -0.03229144960641861, -0.02533549629151821, -0.023695476353168488, 0.0020818370394408703, 0.040378447622060776, -0.03511907160282135, 0.010358523577451706, 0.0046043116599321365, -0.044638730585575104, 0.003694759914651513, 0.001369040459394455, -0.007709983736276627, -0.00017230823868885636, -0.01349718403071165, 0.009868402034044266, 0.04177340865135193, 0.03396917134523392, 0.07585567981004715, 0.014053283259272575, 0.01421351544559002, -0.05647704377770424, 0.0033106745686382055, 0.024034790694713593, -0.03298892825841904, -0.017437005415558815, 0.015523646958172321, 0.008346199057996273, 0.025976425036787987, 0.02620263397693634, -0.006583647336810827, 0.017125966027379036, 0.03768278285861015, 0.04595828801393509, -0.00756388995796442, -0.035835400223731995, -0.03625011816620827, -0.013902476988732815, -0.019114727154374123, -0.013949603773653507, 0.01538226567208767, -0.04362078756093979, 0.016042044386267662, 0.003607574850320816, -0.003770163282752037, 0.0210940632969141, -0.007912630215287209, -0.010188866406679153, 0.008181254379451275, -0.024317553266882896, -0.025561707094311714, -0.019048750400543213, 0.06895628571510315, -0.006512956693768501, -0.052065953612327576, 0.07219862192869186, 0.01153669971972704, -0.0060039847157895565, 0.0421881265938282, -0.02098095789551735, 0.04607139527797699, -0.02761644497513771, -0.03364870697259903, -0.02307339943945408, -0.021263720467686653, -0.019397489726543427, 0.03913429379463196, 0.03894578665494919, 0.03832370787858963, 0.017069414258003235, -0.021263720467686653, -0.008864596486091614, -0.04859740287065506, 0.0492006279528141, 0.008907010778784752, -0.03549608588218689, 0.024713419377803802, 0.06235849857330322, -0.07099217176437378, 0.0748000368475914, -0.03001049906015396, 0.009557363577187061, -0.06164216995239258, 0.018191037699580193, -0.06194378063082695, 0.05406413972377777, -0.06118974834680557, -0.04101937636733055, -0.0340634249150753, 0.003956315107643604, -0.0062066311948001385, -0.003174006240442395, -0.003442630171775818, -0.016588717699050903, -0.019529445096850395, -0.007516762707382441, -0.037305764853954315, -0.02731483243405819, 0.027239428833127022, 0.03587310388684273, -0.016626419499516487, 0.06115204840898514, -0.03689104691147804, -0.015485945157706738, 0.03692874684929848, -0.07404600828886032, -0.03830485790967941, -0.04901212081313133, -0.032574210315942764, 0.0775899589061737, -0.0003348965256009251, -0.02976543828845024, -0.005094433203339577, -0.0060652499087154865, 0.03726806491613388, -0.019218407571315765, 0.09108714014291763, -0.07065285742282867, -0.003508608089759946, 0.049049824476242065, -0.030236708000302315, 0.009576214477419853, 0.026183784008026123, -0.07216092199087143, 0.049916960299015045, 0.03658943250775337, 0.029444973915815353, -0.021244870498776436, 0.02411019429564476, 0.02533549629151821, -0.02935072034597397, 0.040755465626716614, 0.019887611269950867, 0.012912808917462826, -0.03658943250775337, 0.033686406910419464, 0.02220626175403595, -0.00959035288542509, 0.01685263030230999, 0.006211343687027693, 0.02416674606502056, 0.008864596486091614, 0.009580926969647408, -0.008299071341753006, 0.027390236034989357, 0.024506060406565666, 0.02774840034544468, 0.02725828066468239, -0.022903742268681526, -0.005042593460530043, -0.001543410588055849, 0.03378066048026085, 0.005730648059397936, -0.059078458696603775, 0.042715948075056076, -0.007884353399276733, -0.023883983492851257, 0.059568580240011215, -0.004437010735273361, 0.055270593613386154, -0.0537625253200531, -0.03366755694150925, 0.03566574305295944, 0.06861697137355804, 0.07932423055171967, -0.010113462805747986, -0.04878591001033783, -0.02460031397640705, -0.04335687682032585, 0.04705163836479187, 0.020094970241189003, 0.006541233044117689, 0.02633458934724331, -0.0005808407440781593, -0.024223297834396362, 0.0014856798807159066, -0.052857689559459686, -0.006479967851191759, 0.04520425572991371, 0.016767801716923714, 0.036080460995435715, -0.04324377328157425, -0.058286722749471664, -0.005429035052657127, -0.015768706798553467, 0.0583244264125824, -0.004710347857326269, -0.03775818273425102, 0.02041543461382389, 0.026975518092513084, -0.01728619821369648, -0.02263982966542244, 0.05210365355014801, -0.004420516546815634, 0.020264627411961555, -0.031160399317741394, 0.019284384325146675, -0.010820368304848671, -0.03063257597386837, 0.06982342153787613, 0.005353631917387247, 0.06661878526210785, -0.01795540191233158, -0.015363414771854877, 0.018718861043453217, 0.043469980359077454, 0.022187409922480583, -0.013940178789198399, 0.0375131219625473, -0.0340634249150753, 0.03155626729130745, 0.0016482681967318058, -0.00925575103610754, -0.00977414846420288, -0.0396244153380394, -0.05775890126824379, 0.010490478947758675, -0.0035675170365720987, -0.01605146937072277, -0.0016376646235585213, 0.025561707094311714, 0.03641977533698082, -0.03702300414443016, 0.04750405624508858, -0.028577836230397224, -0.070351243019104, 0.06526152789592743, -0.005730648059397936, 0.0326119102537632, -0.022036604583263397, -0.005221676081418991, 0.036137014627456665, 0.009821275249123573, 0.016890330240130424, 0.02467571757733822, 0.03338479623198509, -0.04350768402218819, -0.028577836230397224, -0.002905382076278329, 0.012007969431579113, -0.035458385944366455, 0.03347904980182648, -0.04599599167704582, 0.008652524091303349, 0.015108929015696049, -0.022036604583263397, 0.004752762150019407, -0.05052018538117409, -0.0005428445874713361, 0.022620979696512222, 0.04003913328051567, -0.07596878707408905, 0.0146093824878335, -0.03313973546028137, -0.005113283637911081, -0.04901212081313133, 0.013299250975251198, -0.013817648403346539, 0.03291352465748787, -0.022112006321549416, 0.03566574305295944, 0.003741886932402849, 0.027220578864216805, -0.029972797259688377, 0.043394576758146286, 0.0021855165250599384, 0.027767252177000046, -0.03206523880362511, 0.003487400943413377, 0.02024577558040619, 0.040076833218336105, 0.0585506334900856, -0.007964469492435455, 0.004769256338477135, 0.013779946602880955, -0.017144817858934402, 0.01153669971972704, 0.03655173256993294, -0.016871480271220207, -0.03768278285861015, -0.08761858940124512, 0.06703349947929382, -0.015702730044722557, -0.06356494873762131, -0.0015787557931616902, -0.09123794734477997, 0.009137933142483234, -0.01740872859954834, -0.03474205359816551, -0.019152428954839706, 0.008223668672144413, 0.012224754318594933, -0.03353560343384743, -0.02774840034544468, -0.061415959149599075, 0.042527440935373306, -0.023902835324406624, -0.05753269046545029, -0.035590339452028275, 0.034968264400959015, 0.017116541042923927, -0.08792020380496979, -0.046599216759204865, 0.1030762642621994, -0.010207717306911945, 0.024072492495179176, 0.05357401818037033, -0.04373389482498169, -0.017248496413230896, 0.049049824476242065, -0.029501527547836304, 0.046297602355480194, 0.009463110007345676, -0.01612687297165394, -0.024506060406565666, 0.037004150450229645, -0.030557172372937202, -0.06401737034320831, 0.03883267939090729, 0.02017037384212017, -0.02288489043712616, 0.05888994783163071, 0.006319736130535603, 0.06194378063082695, 0.009698744863271713, -0.018963919952511787, -0.032762717455625534, -0.015702730044722557, 0.04633530601859093, 0.005231101531535387, -0.017795169726014137, 0.010999451391398907, -0.03685334697365761, 0.026805860921740532, -0.0049389139749109745, 0.09591294825077057, 0.021734990179538727, 0.01045277714729309, -0.032687313854694366, -0.021546483039855957, -0.031462009996175766, 0.06707120686769485, 0.03131120651960373, -0.027107473462820053, 0.044374819844961166, 0.059568580240011215, -0.021452229470014572, -0.03864417225122452, 0.0026344014331698418, 0.03106614388525486, 0.006239620037376881, -0.023846281692385674, 0.005193399731069803, 0.0019545939285308123, -0.023827431723475456, -0.034534696489572525, -0.032027535140514374, -0.01796482689678669, 0.022130858153104782, 0.0033978596329689026, 0.020698195323348045, -0.05549680069088936, 0.029690034687519073, -0.03802209720015526, -0.019161853939294815, 0.03566574305295944, 0.016475612297654152, 0.01257349457591772, 0.03658943250775337, 0.012290732003748417, 0.09613916277885437, -0.018605755642056465, 0.014006156474351883, 0.025128137320280075, 0.006522382143884897, 0.048936717212200165, -0.04313066601753235, 0.060435716062784195, 0.01722021959722042, 0.017012860625982285, 0.013120167888700962, 0.05029397830367088, 0.00628674728795886, 0.03427078202366829, -0.03362985700368881, -0.0032918236684054136, 0.03242340311408043, -0.020038416609168053, -0.05462966486811638, 0.029803140088915825, -0.049916960299015045, -0.024619165807962418, -0.000901893712580204, -0.022168559953570366, -0.03133005648851395, -0.024939630180597305, -0.009166209027171135, 0.024204447865486145, -0.008393325842916965, 0.028615538030862808, -0.01395902968943119, 0.008350911550223827, -0.016221126541495323, 0.00704549252986908, -0.015165481716394424, 0.0030538321007043123, 0.11046577990055084, 0.05628853663802147, -0.03860647231340408, -0.049426838755607605, 0.017851723358035088, -0.0077288346365094185, 0.016202276572585106, -0.023846281692385674, 0.022413620725274086, 0.03805979713797569, -0.03321513906121254, 0.05097260698676109, 0.005141559988260269, -0.038474515080451965, 0.01918070577085018, -0.06594015657901764, -0.024864226579666138, -0.005777775309979916, 0.04478953778743744, -0.02429870143532753, 0.039888326078653336, -0.0653369277715683, 0.06771212816238403, -0.028822897002100945, -0.035156771540641785, -0.0770244374871254, 0.0316128171980381, -0.02441180683672428, -0.03298892825841904, -0.010433926247060299, -0.023111101239919662, -0.00854884460568428, -0.011008876375854015, -0.024015938863158226, -0.010980600491166115, -0.06367805600166321, 0.020698195323348045, 0.0071868738159537315, -0.03317743539810181, 0.004224939271807671, -0.0256559606641531, 0.040755465626716614, 0.024374105036258698, -0.10156819969415665, -0.05217905715107918, 0.03376181051135063, -0.06993652880191803, -0.018313568085432053, 0.021621886640787125, 0.007469635922461748, -0.0016188138397410512, 0.017625512555241585, 0.04399780556559563, -0.011640379205346107, -0.01739930361509323, 0.015778133645653725, -0.0383991114795208, -0.0023575301747769117, -0.01913357898592949, 0.052933089435100555, -0.0010008604731410742, -0.0656762421131134, 0.016192851588129997, 0.02233821712434292, -0.024713419377803802, 0.039398204535245895, -0.030462918803095818, 0.02084900252521038, -0.04139639064669609, 0.010000358335673809, 0.02989739365875721, -0.04901212081313133, -0.03187673166394234, -0.032630763947963715, -0.079475037753582, 0.007592166308313608, 0.015966640785336494, -0.005089720245450735, -0.03658943250775337, 0.012243605218827724, -0.02005726844072342, 0.07864560186862946, -0.02171614021062851, 0.013516034930944443, -0.0063385870307683945, -0.02558055706322193, -0.05651474744081497, -0.06175527349114418, 0.028012312948703766, 0.027333682402968407, 0.002083015162497759, -0.026768159121274948, -0.017257921397686005, -0.023601220920681953, 0.03647632896900177, 0.027767252177000046, 0.012988212518393993, 0.012846831232309341, -0.049539946019649506, -0.036514028906822205, -0.019906461238861084, 0.1000601276755333, 0.039737518876791, 0.019585996866226196, 0.015240884386003017, 0.029501527547836304, -0.02392168529331684, 0.013082466088235378, 0.026598501950502396, 0.0909363329410553, 0.030557172372937202, -0.02946382574737072, 0.04984155669808388, -0.035156771540641785, -0.029237614944577217, 0.004585460759699345, -0.006117089651525021, -0.08007826656103134, 0.045920588076114655, -0.008751491084694862, 0.013214422389864922, -0.036627136170864105, -0.007144459057599306, -0.01451512798666954, -0.024091342464089394, -0.022545576095581055, 0.0010279585840180516, 0.056627850979566574, 0.054591961205005646, 0.009830700233578682, -0.008068148978054523, 0.05983249098062515, -0.01856805384159088, -0.05033167824149132, 0.013600863516330719, 0.0234315637499094, -0.02090555429458618, 0.01103715319186449, -0.038908082991838455, 0.023846281692385674, -0.04245203733444214, 0.0048163835890591145, 0.021433377638459206, -0.024392955005168915, -0.0723494291305542, 0.05334780737757683, -0.03387491777539253, 0.00402700575068593, 0.0375131219625473, -0.05078409984707832, -0.010009783320128918, 0.027446787804365158, 0.005315930116921663, -0.07404600828886032, 0.08022907376289368, 0.052254460752010345, -0.06220769137144089, -0.0075356136076152325, -0.01387420017272234, -0.06699579954147339, -0.011923140846192837, 0.044563330709934235, 0.014543404802680016, -0.009463110007345676, 0.005386620759963989, 0.045920588076114655, 0.00038997625233605504, 0.049916960299015045, -0.001773154828697443, -0.0012465101899579167, -0.009472534991800785, -0.015033525414764881, -0.005443172995001078, 0.05289538949728012, -0.004700922407209873, 0.03591080382466316, -0.06454519182443619, 0.05183974280953407, -0.002125429455190897, -0.011376467533409595, -0.0139684546738863, -0.010801517404615879, -0.02848358266055584, -0.025297794491052628, -0.005928581580519676, 0.0907101258635521, 0.04064235836267471, -0.022903742268681526, 0.04113247990608215, 0.013214422389864922, 0.022564426064491272, 0.04818268492817879, -0.005033168010413647, -0.022036604583263397, 0.0012406193418428302, 0.04139639064669609, -0.0291622132062912, -0.0352887287735939, -0.018257014453411102, 0.01943519152700901, 0.04946454241871834, 0.058965351432561874, -0.010999451391398907, -0.05930466577410698, -0.008789192885160446, 0.01802138052880764, -0.03966211527585983, -0.011894864961504936, -0.08792020380496979, 0.0279934611171484, -0.017983678728342056, -0.04365849122405052, 0.01606089435517788, 0.07216092199087143, 0.07743915170431137 ]
17,462
imodels.tree.hierarchical_shrinkage
HSTreeClassifierCV
null
class HSTreeClassifierCV(HSTreeClassifier): 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_ = DecisionTreeClassifier(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] 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) 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.03324224427342415, -0.02664395608007908, -0.023962197825312614, -0.008059748448431492, -0.021357610821723938, -0.029152076691389084, -0.010235060937702656, 0.010090361349284649, 0.017923414707183838, 0.005349049344658852, -0.006771925371140242, -0.01032188069075346, 0.027666497975587845, -0.007529184687882662, -0.020624468103051186, -0.00018223063671030104, 0.04259946197271347, -0.040129926055669785, 0.03347376361489296, 0.03364739939570427, -0.009926369413733482, -0.03866364061832428, -0.02326764166355133, 0.00019911221170332283, -0.04190490394830704, 0.005575744900852442, 0.03505580872297287, -0.010292940773069859, 0.027049114927649498, 0.011942512355744839, -0.10017047077417374, -0.0012239145580679178, -0.07979682087898254, 0.010804211720824242, 0.0030820942483842373, -0.04888905584812164, 0.017798008397221565, 0.03993699699640274, -0.02664395608007908, 0.019987791776657104, -0.03198818117380142, -0.016727235168218613, -0.05533299595117569, -0.07798325270414352, 0.00553233502432704, 0.05641341954469681, -0.013215865939855576, 0.10418346524238586, 0.0106402188539505, -0.09083254635334015, -0.011855692602694035, -0.05957750976085663, 0.011547001078724861, 0.02448311448097229, -0.042252182960510254, 0.059693269431591034, 0.08458153903484344, -0.02787872403860092, 0.08188048750162125, -0.03546096384525299, 0.011151489801704884, -0.01296505331993103, 0.04024568572640419, 0.0024164775386452675, -0.03916526585817337, -0.03208464756608009, -0.08280656486749649, -0.006964857690036297, -0.014383106492459774, 0.035441670566797256, -0.032817792147397995, -0.08543044328689575, 0.02108750492334366, 0.029017025604844093, 0.009521211497485638, 0.022476619109511375, -0.0246567539870739, -0.07435612380504608, 0.025679295882582664, 0.0021946055348962545, -0.0004958964418619871, 0.0051657636649906635, 0.020566588267683983, -0.07177083194255829, -0.020392948761582375, -0.05903729796409607, 0.056529175490140915, -0.021839940920472145, 0.04252228885889053, 0.02407795749604702, -0.041634801775217056, 0.033666692674160004, 0.036020468920469284, 0.005310462787747383, 0.03876010701060295, 0.042715221643447876, -0.026528198271989822, -0.019775565713644028, -0.03933890536427498, -0.05089555308222771, 0.002283836714923382, 0.07775173336267471, 0.02047012187540531, 0.08543044328689575, -0.051744453608989716, -0.032181113958358765, -0.03721664845943451, 0.014286640100181103, 0.004517028573900461, -0.03578894957900047, -0.07964247465133667, 0.025814346969127655, 0.003521015401929617, 0.03735170140862465, -0.015916919335722923, -0.06347474455833435, -0.042445115745067596, -0.0002542787988204509, -0.023749971762299538, -0.06798935681581497, -0.0019124419195577502, 0.027203461155295372, -0.028669746592640877, -0.008185154758393764, -0.035518843680620193, -0.0094295684248209, 0.029827341437339783, 0.05853567272424698, -0.0021319023799151182, -0.054368335753679276, -0.0038345304783433676, -0.02506191097199917, -0.04792439565062523, -0.0028843386098742485, 0.03312648460268974, -0.055988967418670654, -0.007312135770916939, 0.01892666332423687, 0.0038104138802736998, -0.0031809720676392317, 0.05112707242369652, -0.06528830528259277, 0.002751697553321719, -0.018482917919754982, 0.06150683015584946, 0.0024128600489348173, 0.00003609944906202145, 0.008662662468850613, -0.02484968677163124, 0.002604586770758033, -0.03181454539299011, 0.00809833500534296, 0.03339659050107002, -0.00934757199138403, 0.03250909969210625, -0.010071068070828915, -0.01449886616319418, -0.05502430349588394, 0.01043763943016529, -0.004958361387252808, -0.015637166798114777, 0.005609508138149977, 0.002836105413734913, -0.0017580960411578417, 0.016997339203953743, 0.04209783673286438, -0.031737372279167175, -0.028669746592640877, -0.04638093709945679, 0.029518648982048035, -0.03007815219461918, -0.046188004314899445, -0.08342394977807999, 0.03250909969210625, -0.03468923643231392, 0.04576355218887329, 0.040477205067873, 0.042985327541828156, 0.03358951956033707, 0.052554771304130554, -0.017701542004942894, -0.019351113587617874, -0.029692288488149643, -0.009477801620960236, -0.011614527553319931, 0.03794979304075241, 0.014209466986358166, 0.01697804592549801, -0.027087701484560966, 0.005720444023609161, -0.009395805187523365, -0.0356924831867218, 0.020084256306290627, 0.020720934495329857, 0.05583462119102478, -0.007239786442369223, 0.0013806720962747931, 0.018029527738690376, 0.01650536246597767, 0.07821477204561234, 0.007336252368986607, 0.013601730577647686, 0.0666002482175827, -0.013505264185369015, -0.011749579571187496, 0.030425431206822395, -0.018936309963464737, 0.037467461079359055, -0.017016632482409477, 0.033666692674160004, -0.04954502731561661, 0.03962830454111099, -0.017798008397221565, 0.058882951736450195, 0.059153057634830475, -0.05602755397558212, -0.028438227251172066, -0.02299753576517105, 0.0004069666611030698, -0.02637385204434395, 0.004401268903166056, 0.011817106045782566, -0.044567372649908066, 0.03474711626768112, -0.013640317134559155, -0.029846634715795517, 0.04946785420179367, -0.02027718909084797, 0.0431782603263855, -0.0246567539870739, -0.00532010942697525, -0.06216280162334442, 0.04846460372209549, -0.011730286292731762, -0.032046061009168625, 0.02407795749604702, -0.014093708246946335, 0.011537354439496994, -0.03264415264129639, 0.0024960623122751713, -0.03237404674291611, -0.018733730539679527, -0.018646910786628723, -0.009945662692189217, 0.03546096384525299, -0.006270301062613726, 0.038682933896780014, 0.03306860476732254, 0.030656950548291206, -0.004681020975112915, -0.00013166124699637294, -0.05830415338277817, -0.027743671089410782, -0.0025539419148117304, -0.02755073830485344, -0.05324932560324669, -0.02787872403860092, 0.023325521498918533, 0.023286934942007065, -0.030907761305570602, -0.011498767882585526, -0.0075436546467244625, 0.011547001078724861, 0.0940738096833229, -0.051165658980607986, -0.01764366216957569, 0.04865753650665283, -0.005619154777377844, 0.01271424163132906, -0.005397282540798187, 0.050162408500909805, 0.050393927842378616, -0.053056396543979645, 0.0459950715303421, -0.03686936944723129, -0.0005248362431302667, -0.06065792962908745, -0.0039165266789495945, -0.009424745105206966, 0.024328768253326416, 0.04375705495476723, -0.039416078478097916, -0.024907566606998444, 0.003612658241763711, 0.003805590560659766, -0.0005046386504545808, -0.021762767806649208, -0.04078589752316475, 0.00006168559775687754, 0.008870064280927181, -0.04923633486032486, 0.015473173931241035, 0.006960034370422363, -0.007977752946317196, 0.08442719280719757, -0.008435966446995735, -0.01513554248958826, 0.0046979025937616825, -0.0015434587839990854, 0.016746528446674347, 0.038335658609867096, 0.007963282987475395, -0.03536449745297432, -0.04572496563196182, 0.007384485565125942, -0.002443005796521902, 0.01835751347243786, 0.012627421878278255, 0.003106210846453905, 0.06054216995835304, 0.017605075612664223, 0.04094024375081062, 0.022302979603409767, -0.008489022962749004, -0.014894377440214157, -0.06262584030628204, 0.050200995057821274, -0.037293821573257446, 0.03532591089606285, 0.03876010701060295, -0.04479889199137688, 0.009405451826751232, -0.02317117527127266, -0.029923805966973305, -0.00724943308159709, -0.06150683015584946, 0.045377686619758606, -0.0007898167823441327, -0.01335091795772314, -0.010080714710056782, -0.032007474452257156, -0.03993699699640274, 0.06436222791671753, -0.013090459629893303, 0.000014611233382311184, 0.06293453276157379, 0.059153057634830475, 0.035383790731430054, -0.015675753355026245, -0.02384643815457821, 0.030656950548291206, 0.0754365473985672, -0.03196888789534569, 0.010080714710056782, -0.060001958161592484, -0.03445771709084511, 0.016273843124508858, 0.0431782603263855, -0.026721129193902016, 0.07404743134975433, -0.01562752015888691, -0.05309498310089111, 0.0412103496491909, 0.04788580909371376, 0.044297266751527786, 0.005021064076572657, 0.0037887089420109987, 0.0010725832544267178, 0.061815522611141205, -0.0624329075217247, 0.03970547765493393, -0.026682542636990547, -0.044104333966970444, 0.029576528817415237, 0.03414902463555336, -0.07489633560180664, -0.026258092373609543, 0.0021355198696255684, 0.06038782373070717, -0.06386060267686844, -0.00047871339484117925, -0.054677028208971024, -0.011305835098028183, -0.02101033180952072, 0.029480062425136566, 0.039184559136629105, -0.06810511648654938, 0.031911011785268784, 0.01660182885825634, -0.0061545418575406075, 0.056490588933229446, 0.010032481513917446, 0.025505656376481056, -0.03621340170502663, 0.005324932746589184, -0.06362909078598022, 0.03623269498348236, 0.0257564689964056, 0.1117464154958725, -0.04094024375081062, 0.015376707538962364, 0.0008386527770198882, -0.011112903244793415, -0.003086917567998171, -0.031911011785268784, 0.003031449392437935, 0.029345009475946426, 0.028631160035729408, -0.03754463419318199, -0.02293965592980385, -0.010563045740127563, -0.018482917919754982, -0.024463821202516556, 0.002947041532024741, 0.015347768552601337, 0.003535485127940774, 0.01086209062486887, 0.050393927842378616, 0.006313710939139128, 0.015453880652785301, -0.009366865269839764, 0.009275222197175026, 0.04981513321399689, 0.0038345304783433676, -0.03140938654541969, -0.02095245197415352, 0.050702620297670364, 0.061275314539670944, 0.009448861703276634, 0.003084505908191204, -0.005797617137432098, 0.018135640770196915, -0.008797715418040752, 0.03424549102783203, 0.03181454539299011, -0.019987791776657104, -0.0747034028172493, -0.02795589715242386, -0.003728417679667473, -0.029209956526756287, -0.05309498310089111, 0.011961805634200573, -0.08774562925100327, -0.00688768457621336, -0.0542139895260334, -0.011006790213286877, -0.05135859176516533, 0.04468313232064247, -0.015386354178190231, 0.016418542712926865, -0.019052069634199142, -0.020701641216874123, 0.0439114011824131, -0.004857071675360203, 0.04977654665708542, 0.02403937093913555, -0.0036150699015706778, 0.028380347415804863, -0.07709576189517975, -0.03966689109802246, 0.036522094160318375, -0.0035258387215435505, -0.012801061384379864, 0.056259073317050934, -0.021974993869662285, -0.011874985881149769, 0.029692288488149643, -0.011913572438061237, 0.0452619269490242, -0.0004220395057927817, 0.02398149110376835, 0.013852542266249657, 0.026277385652065277, 0.02940288931131363, -0.049892306327819824, 0.010688452050089836, 0.08041419833898544, 0.014084061607718468, 0.01892666332423687, -0.03750604763627052, 0.03926173225045204, -0.010871737264096737, -0.0076835304498672485, -0.04445161297917366, -0.04418150708079338, 0.058882951736450195, 0.002189782215282321, -0.05510147660970688, -0.019852738827466965, -0.005132000427693129, 0.05583462119102478, -0.02741568721830845, 0.05849708616733551, 0.007548477966338396, -0.009858842939138412, -0.03935819864273071, -0.021801354363560677, -0.03526803106069565, -0.00835397094488144, -0.014537451788783073, -0.06038782373070717, -0.019187122583389282, -0.02245732583105564, 0.06347474455833435, -0.006419823970645666, 0.001410817727446556, 0.01862761750817299, 0.01338950451463461, 0.01835751347243786, -0.04043861851096153, -0.009926369413733482, 0.03237404674291611, 0.008599959313869476, 0.0036753611639142036, 0.049892306327819824, -0.021647009998559952, 0.00017137818213086575, 0.030116738751530647, -0.048348844051361084, -0.005821733735501766, -0.0011256396537646651, -0.05027816817164421, 0.03445771709084511, 0.03669573366641998, 0.005426221992820501, -0.018270693719387054, -0.022302979603409767, 0.03239334002137184, 0.04996947571635246, 0.03125504031777382, 0.03108140081167221, -0.018646910786628723, 0.05340367183089256, -0.0494292676448822, 0.037293821573257446, 0.04746135696768761, -0.011604880914092064, 0.018974896520376205, 0.06139107421040535, 0.061815522611141205, 0.028920559212565422, -0.026393145322799683, -0.008045278489589691, 0.07246538996696472, -0.016476422548294067, 0.03951254487037659, 0.05193738639354706, -0.01384289562702179, 0.0055130417458713055, -0.044335853308439255, 0.008706072345376015, -0.019254647195339203, 0.00956462137401104, 0.0175086110830307, -0.021241851150989532, 0.04522334039211273, 0.016621122136712074, 0.008262327872216702, -0.05371236428618431, -0.026952648535370827, 0.01517412904649973, 0.018878430128097534, 0.0002704067446757108, -0.007789643481373787, 0.05031675472855568, 0.014720737934112549, -0.025312723591923714, 0.013196572661399841, 0.03663785383105278, -0.0023127763997763395, 0.0013215865474194288, 0.012887881137430668, 0.04518475383520126, -0.05402105674147606, 0.02805236354470253, 0.0023935670033097267, -0.04560920596122742, 0.049390681087970734, -0.05718514695763588, -0.013129046186804771, 0.024772513657808304, 0.016080910339951515, -0.003176148748025298, 0.005233289673924446, -0.08766845613718033, 0.04888905584812164, -0.014190173707902431, 0.014624271541833878, -0.05050968751311302, -0.01377536915242672, 0.034573476761579514, -0.025274137035012245, 0.019167829304933548, -0.04020709916949272, 0.0008627693168818951, -0.007972929626703262, -0.012347670271992683, 0.03754463419318199, -0.08519892394542694, 0.023364106193184853, 0.0011925630969926715, 0.04171197488903999, -0.00009978219895856455, -0.0528634637594223, 0.008271974511444569, -0.002720345975831151, -0.06976433843374252, -0.02670183591544628, 0.031737372279167175, -0.006863567978143692, 0.004514616914093494, 0.0033353178296238184, 0.021647009998559952, 0.03843212500214577, 0.03526803106069565, -0.02172418124973774, 0.02027718909084797, -0.0236727986484766, 0.026123039424419403, 0.005107883829623461, -0.01856009103357792, 0.013109752908349037, 0.0694170594215393, -0.048271674662828445, -0.036387041211128235, 0.043294019997119904, -0.032547686249017715, -0.049892306327819824, 0.0315251462161541, -0.03669573366641998, 0.006217245012521744, -0.014469926245510578, 0.005821733735501766, 0.013109752908349037, -0.040052756667137146, -0.03816201910376549, -0.020971745252609253, -0.06756490468978882, -0.034168317914009094, -0.0271069947630167, 0.039551131427288055, -0.05405964329838753, 0.031062107533216476, -0.05128141865134239, 0.03949325159192085, 0.0223222728818655, 0.016003737226128578, 0.02990451268851757, -0.0247146338224411, 0.0010092773009091616, -0.07582241296768188, -0.02290106937289238, -0.005488925147801638, -0.004507381934672594, -0.03829707205295563, -0.08134027570486069, 0.0015036665135994554, 0.03681149333715439, 0.048850469291210175, -0.02158913016319275, -0.004061225801706314, 0.05672210827469826, -0.05062544718384743, -0.043834228068590164, -0.012694948352873325, 0.006709222216159105, 0.035036515444517136, -0.014055121690034866, 0.018241753801703453, 0.004063637461513281, -0.03497863560914993, 0.002983216429129243, 0.07659414410591125, 0.02579505369067192, 0.020200015977025032, 0.03171807900071144, 0.04603365808725357, 0.019949205219745636, -0.023209761828184128, 0.018878430128097534, -0.08388698101043701, -0.01616773009300232, -0.05541016906499863, -0.02068234793841839, -0.02986592799425125, -0.03522944450378418, -0.007852346636354923, -0.006400530692189932, -0.010071068070828915, 0.010080714710056782, 0.09337925165891647, 0.09229883551597595, -0.036927249282598495, 0.012106504291296005, 0.052786290645599365, 0.009834726341068745, -0.03384033218026161, 0.023421986028552055, -0.02579505369067192, -0.058342739939689636, -0.020971745252609253, -0.013891128823161125, 0.052786290645599365, -0.018531151115894318, -0.004963184706866741, 0.018405746668577194, -0.040863070636987686, -0.03885657340288162, 0.020817400887608528, -0.04545485973358154, 0.0002933174546342343, -0.00651628989726305, -0.06146824359893799, 0.03858646750450134, 0.01589762605726719, 0.04360270872712135, -0.0576481856405735, 0.00621242169290781, 0.022245099768042564, -0.0775202140212059, 0.01416123379021883, 0.022650256752967834, -0.0014276993460953236, -0.04896622896194458, 0.01656324230134487, -0.005561274942010641, -0.004367506131529808, -0.05872860550880432, -0.003947878256440163, -0.0013215865474194288, 0.05934599041938782, -0.006964857690036297, 0.06895402073860168, 0.020161429420113564, -0.04634235054254532, 0.022052166983485222, 0.05243901163339615, -0.041171763092279434, 0.07964247465133667, -0.03166019916534424, 0.057339493185281754, 0.01966945268213749, -0.033898212015628815, -0.02538989670574665, 0.006048428826034069, -0.04229076951742172, 0.021106798201799393, -0.020991038531064987, 0.025852933526039124, 0.052516184747219086, 0.034129731357097626, -0.017923414707183838, -0.005344226025044918, 0.00727354921400547, 0.023749971762299538, 0.03858646750450134, 0.021839940920472145, 0.04742277041077614, 0.06297311931848526, -0.04290815442800522, 0.02303612232208252, -0.04499182477593422, 0.042715221643447876, 0.017865534871816635, 0.07412460446357727, 0.004051579162478447, -0.002785460790619254, -0.040052756667137146, -0.01939934678375721, -0.045107580721378326, 0.041634801775217056, -0.060233477503061295, -0.011961805634200573, 0.0036440095864236355, 0.040052756667137146, 0.04499182477593422, 0.052516184747219086, 0.025370603427290916 ]
17,464
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_ = DecisionTreeClassifier(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.0352938212454319, -0.015683069825172424, -0.015590869821608067, 0.00416739983484149, -0.043149184435606, -0.013350431807339191, 0.008869554847478867, -0.021058278158307076, -0.022164667025208473, 0.012769577093422413, -0.006052871700376272, 0.03935058042407036, 0.03964561969041824, 0.0012020459398627281, -0.015609310008585453, -0.02321573719382286, 0.04503004625439644, -0.018993016332387924, 0.04436621442437172, 0.05443435534834862, -0.014161783270537853, -0.009957504458725452, -0.02174055017530918, 0.03435339033603668, -0.015341931954026222, 0.04842297360301018, 0.035920772701501846, -0.007468128111213446, 0.020966077223420143, 0.0329519622027874, -0.10459067672491074, 0.0035473608877509832, -0.04019881412386894, 0.03704560175538063, 0.017766768112778664, -0.0347406268119812, -0.001461355946958065, 0.027844132855534554, -0.04049384966492653, 0.03064698539674282, -0.00858834758400917, -0.028157608583569527, -0.03616049140691757, -0.07283730059862137, 0.019970327615737915, 0.04038321226835251, -0.002337247598916292, 0.07062452286481857, -0.01551711093634367, -0.09087144583463669, -0.01956465095281601, -0.05738472566008568, 0.03949809819459915, 0.018347622826695442, -0.02469092234969139, 0.0926416665315628, 0.09396933764219284, -0.016263922676444054, 0.09050264954566956, -0.04019881412386894, 0.009436579421162605, -0.013442630879580975, 0.013848306611180305, -0.020836999639868736, -0.0226809810847044, -0.018882378935813904, -0.0832742378115654, -0.011165312491357327, -0.0427435077726841, 0.025926390662789345, -0.010538358241319656, -0.05764288455247879, -0.004082115832716227, 0.013147593475878239, 0.0008712816052138805, 0.012944755144417286, -0.031052660197019577, -0.08054514229297638, 0.012188722379505634, -0.008302530273795128, 0.0521109364926815, 0.02059728093445301, -0.007486567832529545, -0.0726528987288475, -0.0372299998998642, -0.0769309401512146, 0.019029896706342697, -0.036529287695884705, 0.04779601842164993, 0.017010735347867012, -0.0437023788690567, 0.02869236283004284, 0.034943465143442154, 0.01057523861527443, 0.04650523141026497, 0.04845985397696495, -0.014438381418585777, -0.0027913281228393316, -0.016743358224630356, -0.0376356765627861, -0.0014002739917486906, 0.06483441591262817, 0.007758555468171835, 0.050414472818374634, -0.03114485926926136, -0.04912368580698967, -0.029761873185634613, 0.007809264585375786, 0.003356047673150897, -0.04377613961696625, -0.07327985763549805, 0.023584533482789993, -0.04735346511006355, 0.051557742059230804, -0.04812793806195259, -0.0069149332121014595, -0.03435339033603668, -0.030278189107775688, -0.018753299489617348, -0.06922309100627899, -0.0005517540848813951, 0.02480156160891056, -0.02092919871211052, -0.022385943681001663, 0.001178419915959239, -0.011534108780324459, 0.02649802528321743, 0.07243162393569946, -0.004105165600776672, -0.036142051219940186, -0.016992297023534775, -0.05480315163731575, -0.06667839735746384, -0.012658937834203243, 0.03252784535288811, -0.04654211178421974, 0.03339451923966408, 0.016540519893169403, -0.028010090813040733, 0.0005223656189627945, 0.05402867868542671, -0.01057523861527443, 0.014567459933459759, -0.014134123921394348, 0.06653087586164474, 0.005619535688310862, 0.0036695245653390884, 0.03258316591382027, -0.022146226838231087, 0.015397251583635807, -0.03475906699895859, 0.025041278451681137, 0.0189561378210783, -0.020560402423143387, 0.02808384969830513, -0.007694015745073557, 0.0004321833257563412, -0.041821517050266266, 0.024764681234955788, 0.0018543546320870519, -0.01887315884232521, 0.02469092234969139, -0.010925594717264175, -0.017361093312501907, 0.019601531326770782, 0.0453619621694088, -0.060630135238170624, -0.027899451553821564, -0.05627833679318428, 0.03673212602734566, -0.045767638832330704, -0.0701819658279419, -0.0754188746213913, 0.0010412737028673291, -0.04845985397696495, 0.06527697294950485, 0.042854148894548416, 0.05613081902265549, 0.025373196229338646, 0.05922871083021164, -0.02310509793460369, -0.01586746796965599, -0.03599453344941139, -0.021869629621505737, -0.02153771184384823, 0.016162503510713577, -0.0168171189725399, 0.041932154446840286, -0.027069659903645515, 0.023418573662638664, 0.0231604166328907, -0.019361814484000206, 0.026903700083494186, -0.006181950680911541, 0.008519197814166546, -0.022883819416165352, -0.003233883762732148, 0.01797882653772831, 0.024082407355308533, 0.07198906689882278, 0.017130594700574875, 0.016651159152388573, 0.0685223788022995, -0.008528417907655239, -0.011303611099720001, 0.04882865026593208, -0.03173493593931198, 0.03258316591382027, -0.004211194347590208, 0.0123731205239892, -0.023639852181077003, 0.031845573335886, -0.009376649744808674, 0.06343299150466919, 0.04698466882109642, -0.034390270709991455, -0.009809985756874084, -0.03769099712371826, 0.02900584042072296, -0.008164231665432453, 0.041010163724422455, 0.025004399940371513, -0.020744800567626953, 0.03534913808107376, 0.014936256222426891, -0.017637690529227257, 0.04609955474734306, -0.024395884945988655, 0.024985959753394127, -0.025723552331328392, -0.03905554488301277, -0.09411685168743134, 0.06070389598608017, -0.008482318371534348, -0.005223079584538937, 0.0031762593425810337, -0.006430888082832098, 0.014678098261356354, -0.05365988239645958, 0.000950803339947015, -0.02802853100001812, 0.01614406518638134, -0.013599368743598461, -0.007684796117246151, 0.03634488955140114, 0.010916374623775482, 0.02140863426029682, 0.04344421997666359, 0.019933447241783142, -0.02721717767417431, 0.0027406185399740934, -0.0384654700756073, -0.05026695504784584, -0.0019753659144043922, -0.02852640487253666, -0.01884549856185913, 0.010446159169077873, -0.011534108780324459, 0.028120730072259903, -0.015332712791860104, 0.011008573696017265, 0.0030056911054998636, -0.008062812499701977, 0.07729973644018173, -0.0627322793006897, -0.009053952991962433, 0.03628956899046898, 0.015268173068761826, 0.02293913997709751, -0.009067783132195473, 0.053954921662807465, 0.038981784135103226, -0.02605546824634075, 0.0405307300388813, -0.038059793412685394, -0.012963195331394672, -0.054397474974393845, -0.015480230562388897, 0.007329829502850771, 0.021224236115813255, 0.05495066940784454, -0.025502273812890053, -0.024598723277449608, 0.002266945783048868, -0.012778797186911106, -0.033081039786338806, -0.016411442309617996, -0.01524051371961832, -0.03343139961361885, 0.031163299456238747, -0.06763727217912674, 0.006822734139859676, 0.013756107538938522, -0.01884549856185913, 0.06169964745640755, -0.02432212606072426, 0.008906434290111065, -0.0005059426184743643, -0.022219985723495483, 0.0031025002244859934, 0.05937622860074043, 0.006034431979060173, -0.06959188729524612, -0.03916618227958679, 0.00021018515690229833, 0.004752864129841328, 0.009708566591143608, -0.010400059632956982, -0.000023914144549053162, 0.06195780262351036, 0.05336484685540199, 0.060187581926584244, 0.005301448982208967, -0.006730535067617893, 0.005610316060483456, -0.0716940313577652, 0.04403429478406906, -0.04735346511006355, 0.03468530625104904, 0.029872512444853783, -0.012428440153598785, -0.00786458421498537, -0.029743432998657227, -0.04027257114648819, -0.039313700050115585, -0.03250940516591072, 0.038281071931123734, 0.006891883444041014, -0.021666791290044785, -0.017434852197766304, -0.0231604166328907, -0.01982280984520912, 0.07715221494436264, -0.016761798411607742, -0.010390839539468288, 0.04337046295404434, 0.03426118940114975, 0.024488084018230438, -0.017102934420108795, -0.001335734617896378, 0.05107830837368965, 0.05329108610749245, -0.009929844178259373, 0.006066701374948025, -0.05823295935988426, -0.040014415979385376, 0.027659732848405838, 0.033302318304777145, -0.006338689010590315, 0.03632644936442375, -0.026534903794527054, -0.03916618227958679, 0.030185990035533905, 0.0379122756421566, 0.05163150280714035, -0.000013289637536217924, -0.026073908433318138, 0.0003342217823956162, 0.04834921285510063, -0.05568826571106911, 0.04956624284386635, -0.061109572649002075, -0.04809105768799782, 0.026977460831403732, 0.04399741813540459, -0.07512383908033371, -0.03682432696223259, -0.020800119265913963, 0.0643918588757515, -0.044771887362003326, 0.021722109988331795, -0.05981878563761711, -0.012327020987868309, -0.010722756385803223, 0.039018664509058, 0.03746971860527992, -0.061552125960588455, 0.018993016332387924, 0.0024709361605346203, 0.011902905069291592, 0.018937697634100914, -0.0001441331405658275, 0.024820001795887947, -0.03201153129339218, -0.00836245995014906, -0.0427435077726841, 0.012474539689719677, 0.03037038818001747, 0.09050264954566956, -0.04222719371318817, 0.02513347752392292, -0.014005045406520367, -0.0036649147514253855, 0.0008868402219377458, -0.02732781693339348, -0.005513506941497326, 0.04451373219490051, 0.015526330098509789, -0.01876251958310604, -0.034021470695734024, -0.025760432705283165, 0.006117410957813263, -0.005979112349450588, -0.008357849903404713, 0.00945040863007307, 0.012419220060110092, -0.002786718076094985, 0.05421307682991028, 0.013783766888082027, 0.028507964685559273, 0.029485275968909264, -0.03356047719717026, 0.036695245653390884, -0.0266086645424366, -0.035810135304927826, 0.004785133991390467, 0.04927120730280876, 0.04812793806195259, 0.028010090813040733, -0.026922140270471573, 0.02399020828306675, 0.004803573712706566, -0.01650364138185978, 0.027899451553821564, 0.0164759811013937, -0.020560402423143387, -0.0563889779150486, -0.04377613961696625, 0.01010502316057682, -0.045546360313892365, -0.06254787743091583, 0.0007612188928760588, -0.09065016359090805, -0.0002521069545764476, -0.04834921285510063, -0.0018347622826695442, -0.05908118933439255, 0.0638386681675911, -0.001653821556828916, 0.006006772164255381, -0.009261400438845158, -0.06354362517595291, 0.038391709327697754, -0.020541962236166, 0.016014985740184784, 0.012622058391571045, 0.014336962252855301, 0.03195621073246002, -0.07685717940330505, -0.05469251424074173, 0.06280603259801865, -0.01477951742708683, -0.02961435541510582, 0.03842858970165253, 0.010750416666269302, -0.015332712791860104, 0.037395961582660675, -0.034021470695734024, 0.06564576923847198, -0.009588707238435745, 0.031052660197019577, 0.0043056984432041645, 0.026848381385207176, 0.007744725327938795, -0.06365426629781723, 0.03153209760785103, 0.041120804846286774, 0.02939307689666748, 0.044329334050416946, -0.025723552331328392, 0.02485688030719757, -0.0008032847545109689, 0.03000159189105034, -0.03835482895374298, -0.040456969290971756, 0.05602018162608147, 0.00787841435521841, -0.04809105768799782, -0.011626307852566242, 0.011736947111785412, 0.048976168036460876, -0.03780163452029228, 0.08622460812330246, 0.03780163452029228, -0.027899451553821564, -0.06070389598608017, -0.06542448699474335, -0.034076791256666183, -0.04104704409837723, 0.026977460831403732, -0.056794654577970505, 0.013922066427767277, 0.020671041682362556, 0.05458187311887741, 0.003874667687341571, 0.006804294418543577, 0.04414493590593338, 0.0186149999499321, 0.018329182639718056, -0.038391709327697754, 0.006205000448971987, 0.01839372329413891, -0.01967529021203518, 0.014281642623245716, 0.0427435077726841, -0.03394771367311478, -0.011192971840500832, -0.0012516028946265578, -0.049640003591775894, 0.001347259501926601, -0.0030448755715042353, -0.022441264241933823, -0.0014475260395556688, 0.05716345086693764, -0.013350431807339191, -0.028452645987272263, -0.032970402389764786, 0.015664629638195038, 0.03544133901596069, 0.0231604166328907, 0.05023007467389107, -0.018882378935813904, 0.06734222918748856, -0.05616769939661026, 0.048865530639886856, 0.02048664353787899, 0.00363264512270689, 0.012327020987868309, 0.04307542368769646, 0.06970252841711044, 0.01995188742876053, -0.03376331552863121, -0.011395810171961784, 0.0741649642586708, -0.020671041682362556, 0.050082556903362274, 0.042595990002155304, -0.009929844178259373, 0.01848592236638069, -0.034556228667497635, 0.018780959770083427, -0.004351797979325056, 0.01982280984520912, 0.010307860560715199, -0.007569547276943922, 0.019915008917450905, 0.0007191530894488096, 0.02043132297694683, -0.030351947993040085, -0.026202987879514694, -0.007652526255697012, 0.024137727916240692, -0.04005129262804985, 0.0037317590322345495, 0.03258316591382027, 0.011322051286697388, -0.009819205850362778, 0.02076324075460434, 0.03479594364762306, 0.003141684690490365, -0.0035727156791836023, 0.008482318371534348, 0.07626710832118988, -0.04093640670180321, 0.013700787909328938, 0.008625227026641369, -0.045214444398880005, 0.03420586884021759, -0.030812943354249, -0.031661175191402435, 0.033025722950696945, -0.027088100090622902, -0.0069886925630271435, 0.02115047723054886, -0.09824737161397934, 0.0416371189057827, 0.0070532322861254215, 0.02387957088649273, -0.05358612537384033, -0.012658937834203243, 0.0405307300388813, -0.023400135338306427, -0.011192971840500832, -0.04414493590593338, -0.017084496095776558, -0.0074496883898973465, -0.019915008917450905, 0.011358930729329586, -0.07943875342607498, 0.003586545353755355, 0.011552548967301846, 0.04525132477283478, -0.02775193192064762, -0.03741439804434776, -0.0035658006090670824, 0.002701434073969722, -0.06999756395816803, -0.03420586884021759, 0.023455454036593437, -0.033578917384147644, -0.01639300212264061, 0.03142145648598671, 0.016853997483849525, 0.03344983980059624, 0.029688114300370216, -0.012363901361823082, -0.003674134612083435, -0.007680186070501804, 0.0474272221326828, 0.0027129589579999447, -0.014124903827905655, -0.009192251600325108, 0.043186064809560776, -0.05480315163731575, -0.01973061077296734, 0.03453778848052025, -0.051705263555049896, -0.04562012106180191, 0.03486970439553261, -0.061552125960588455, 0.001993805868551135, -0.025612913072109222, 0.009874524548649788, 0.011995104141533375, -0.035865455865859985, -0.03964561969041824, -0.01469653844833374, -0.06981316953897476, -0.02087387815117836, -0.04746410250663757, 0.03770943731069565, -0.03343139961361885, 0.02808384969830513, -0.06933373212814331, 0.05874927341938019, 0.0395718589425087, 0.026959020644426346, 0.05048823356628418, -0.0005719226319342852, -0.03022286854684353, -0.03968249633908272, 0.023842690512537956, 0.014927036128938198, -0.0038861925713717937, -0.03420586884021759, -0.11130277067422867, -0.000037996120227035135, 0.04049384966492653, 0.05233221501111984, -0.01057523861527443, -0.003519701072946191, 0.07929123938083649, -0.06365426629781723, -0.02015472576022148, 0.0281944889575243, 0.01406958419829607, 0.02594483084976673, -0.0015789098106324673, 0.02802853100001812, -0.010040483437478542, -0.0405307300388813, 0.027272498235106468, 0.08386430889368057, 0.0276412945240736, 0.024469643831253052, 0.024709362536668777, 0.02290225960314274, 0.0025470005348324776, -0.02939307689666748, 0.01856890134513378, -0.0770784541964531, 0.004785133991390467, -0.04672650992870331, -0.011958224698901176, -0.005674855317920446, -0.004831233527511358, -0.01978592947125435, -0.03424274921417236, -0.018071025609970093, 0.02332637459039688, 0.05627833679318428, 0.05380740016698837, -0.03732220083475113, 0.0005301448982208967, 0.05797480046749115, -0.022201545536518097, -0.044329334050416946, 0.027899451553821564, -0.03383707255125046, -0.011912125162780285, -0.024985959753394127, -0.010197222232818604, 0.05148398503661156, -0.034556228667497635, -0.006057481747120619, 0.027788812294602394, -0.08128273487091064, -0.03258316591382027, 0.03490658476948738, -0.03245408833026886, 0.005361378192901611, 0.0047759138979017735, -0.05074639245867729, 0.04244847223162651, -0.001598502160049975, 0.0379122756421566, -0.05030383542180061, -0.0021666791290044785, 0.05255349352955818, -0.0980260968208313, 0.03820731118321419, 0.034076791256666183, -0.01046459935605526, -0.03389239311218262, 0.019324934110045433, -0.008966363966464996, 0.011847586371004581, -0.03278600424528122, 0.002505510812625289, -0.01497313566505909, 0.06870678067207336, -0.005610316060483456, 0.051557742059230804, -0.012981634587049484, -0.05823295935988426, 0.02354765310883522, 0.04049384966492653, -0.02293913997709751, 0.08674092590808868, -0.04694778844714165, 0.07405433058738708, -0.010731976479291916, -0.05093079060316086, -0.04348110035061836, 0.026350505650043488, -0.029485275968909264, 0.011239071376621723, -0.017988046631217003, 0.028618603944778442, 0.033523596823215485, 0.03726688027381897, -0.0038124332204461098, -0.014724197797477245, -0.004904992878437042, -0.009408919140696526, 0.04989815875887871, -0.010778076015412807, 0.022146226838231087, 0.08047138154506683, -0.04458748921751976, -0.0037548088002949953, -0.042485352605581284, 0.045214444398880005, 0.008316359482705593, 0.044403091073036194, -0.011331270448863506, -0.006596846505999565, -0.0032615435775369406, -0.018292304128408432, -0.03241720795631409, 0.02196182869374752, -0.030849823728203773, 0.011543328873813152, -0.013599368743598461, 0.05347548425197601, 0.01600576564669609, 0.06911245733499527, 0.02611078880727291 ]