Skip to content
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

Develop #61

Merged
merged 7 commits into from
Jul 26, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixed soup bagging docs
  • Loading branch information
plutasnyy committed Jul 25, 2020
commit 80f26f4363184943e94fa12f24965e6371b17bc0
13 changes: 8 additions & 5 deletions multi_imbalance/ensemble/soup_bagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ def predict(self, X, strategy: str = 'average', maj_int_min: dict = None):
:param X:
{array-like, sparse matrix} of shape = [n_samples, n_features]. The training input samples.
:param strategy:
WHERE
-'average' - takes max from average values in prediction
-'optimistic' - takes always best value of probability
-'pessimistic' - takes always the worst value of probability
-'mixed' - for minority classes takes optimistic strategy, and pessimistic for others. It requires maj_int_min
* 'average' :
takes max from average values in prediction
* 'optimistic' :
takes always best value of probability
* 'pessimistic' :
takes always the worst value of probability
* 'mixed' :
for minority classes takes optimistic strategy, and pessimistic for others. It requires maj_int_min
:param maj_int_min:
dict. It keeps indices of minority classes under 'min' key.
:return:
Expand Down