File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
python/interpret-core/interpret/glassbox/ebm Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1180,15 +1180,15 @@ def explain_global(self, name=None):
11801180 histogram_counts = getattr (self , 'histogram_counts_' , None )
11811181 if histogram_counts is not None :
11821182 histogram_counts = histogram_counts [feature_index0 ]
1183- if histogram_counts is not None :
1184- if len (bin_labels ) != model_graph .shape [0 ]:
1185- bin_labels .append ('DPOther' )
1186- histogram_counts = histogram_counts [1 :]
1187- else :
1188- histogram_counts = histogram_counts [1 :- 1 ]
11891183
11901184 if histogram_counts is None :
1191- histogram_counts = mod_weights [term_idx ]
1185+ histogram_counts = self .bin_weights_ [term_idx ]
1186+
1187+ if len (bin_labels ) != model_graph .shape [0 ]:
1188+ bin_labels .append ('DPOther' )
1189+ histogram_counts = histogram_counts [1 :]
1190+ else :
1191+ histogram_counts = histogram_counts [1 :- 1 ]
11921192
11931193 names = bin_labels
11941194 densities = list (histogram_counts )
You can’t perform that action at this time.
0 commit comments