We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb9a23 commit ea7c5c3Copy full SHA for ea7c5c3
sklearn/dummy.py
@@ -272,7 +272,7 @@ def predict_proba(self, X):
272
P = []
273
for k in range(self.n_outputs_):
274
if self.strategy == "most_frequent":
275
- ind = np.ones(n_samples, dtype=int) * class_prior_[k].argmax()
+ ind = class_prior_[k].argmax()
276
out = np.zeros((n_samples, n_classes_[k]), dtype=np.float64)
277
out[:, ind] = 1.0
278
elif self.strategy == "prior":
0 commit comments