Skip to content

Commit

Permalink
Merge pull request #20 from achamma723/multi_class
Browse files Browse the repository at this point in the history
[FIX]: Fix DNN multi_classification case
  • Loading branch information
achamma723 authored Jun 3, 2024
2 parents c8282c1 + cd00bfa commit e7bf244
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hidimstat/BBI.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ def compute_importance(self, X=None, y=None):
for ind_fold, estimator in enumerate(self.list_estimators):
if self.type == "DNN":
for y_col in range(y[ind_fold].shape[-1]):
_ = self.estimator.encode_outcome(
self.y_train[ind_fold], train=True
)[y_col]
y[ind_fold] = self.estimator.encode_outcome(
y[ind_fold], train=False
)[y_col]
Expand Down

0 comments on commit e7bf244

Please sign in to comment.