Skip to content

Commit

Permalink
Reference correct variable
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Nov 9, 2015
1 parent 7af49df commit 6f6ec7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/ensemble/bagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _fit(self, X, y, max_samples, max_depth=None, sample_weight=None):

# if max_samples is float:
if not isinstance(max_samples, (numbers.Integral, np.integer)):
max_samples = int(self.max_samples * X.shape[0])
max_samples = int(max_samples * X.shape[0])

if not (0 < max_samples <= X.shape[0]):
raise ValueError("max_samples must be in (0, n_samples]")
Expand Down

0 comments on commit 6f6ec7f

Please sign in to comment.