Skip to content

Commit

Permalink
Update test_ebm.py
Browse files Browse the repository at this point in the history
Co-Authored-By: S Jenkins <[email protected]>
Co-Authored-By: Harsha-Nori <[email protected]>
  • Loading branch information
3 people committed Jan 13, 2021
1 parent 3eb19f3 commit edb7418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/interpret-core/interpret/glassbox/ebm/test/test_ebm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def test_unknown_multiclass_category():
X_train['cat_feature'] = [np.random.choice(['a', 'b', 'c']) for x in range(X_train.shape[0])]
X_test['cat_feature'] = ['d' for x in range(X_test.shape[0])] # Unknown category in test set

X_train['cat_feature'][1] = np.nan
X_test['cat_feature'][1] = np.nan
# X_train['cat_feature'][1] = np.nan
# X_test['cat_feature'][1] = np.nan

clf = ExplainableBoostingClassifier()
clf.fit(X_train, y_train)
Expand Down

0 comments on commit edb7418

Please sign in to comment.