Skip to content

Commit

Permalink
Fix for intercept on regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
interpret-ml committed Apr 2, 2020
1 parent 71f572b commit 38254e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/interpret-core/interpret/glassbox/ebm/ebm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,8 @@ def explain_local(self, X, y=None, name=None):

n_rows = instances.shape[1]
data_dicts = []
intercept = self.intercept_
if self.n_classes_ <= 2:
intercept = self.intercept_
if isinstance(self.intercept_, np.ndarray) or isinstance(self.intercept_, list):
intercept = intercept[0]

Expand Down

0 comments on commit 38254e7

Please sign in to comment.