8000 fix: wrong placeholder in format string · jwchennlp/scikit-learn@4e4a8a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e4a8a9

Browse files
committed
fix: wrong placeholder in format string
1 parent 9a3c22a commit 4e4a8a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/tree/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def fit(self, X, y, sample_mask=None, X_argsorted=None, check_input=True,
213213
raise ValueError("max_leaf_nodes must be integral number but was "
214214
"%r" % max_leaf_nodes)
215215
if -1 < max_leaf_nodes < 2:
216-
raise ValueError(("max_leaf_nodes %r must be either smaller than 0 or "
216+
raise ValueError(("max_leaf_nodes {0} must be either smaller than 0 or "
217217
"larger than 1").format(max_leaf_nodes))
218218

219219
if sample_weight is not None:

0 commit comments

Comments
 (0)
0