8000 DOC: document negative weight treatment in the case of classification by ndawe · Pull Request #8 · glouppe/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC: document negative weight treatment in the case of classification #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sklearn/tree/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ def fit(self, X, y,

sample_weight : array-like, shape = [n_samples] or None
Sample weights. If None, then samples are equally weighted.
Splits that would yield nodes with net zero or negative weight are
ignored while searching for a split in each node.
Splits that would create child nodes with net zero or negative
weight are ignored while searching for a split in each node. In the
case of classification, splits are also ignored that would result
in any single class carrying a negative weight in either child node.

check_input: boolean, (default=True)
Allow to bypass several input checking.
Expand Down
0