Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
xehivs committed Apr 27, 2020
1 parent 0e4a9d7 commit ea82b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strlearn/ensembles/DWM.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def predict(self, X):
if X.shape[1] != self.X_.shape[1]:
raise ValueError("number of features does not match")

esm = np.nan_to_num(self.ensemble_support_matrix(X), nan=1./len(self.classes_))
esm = np.nan_to_num(self.ensemble_support_matrix(X))
if self.weighted_support:
esm = esm * self.weights_[:, np.newaxis, np.newaxis]

Expand Down

0 comments on commit ea82b01

Please sign in to comment.