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

Explain how balance_classes is triggered #7940

Closed
exalate-issue-sync bot opened this issue May 11, 2023 · 1 comment
Closed

Explain how balance_classes is triggered #7940

exalate-issue-sync bot opened this issue May 11, 2023 · 1 comment
Assignees

Comments

@exalate-issue-sync
Copy link

Add into documentation how sampling is done for H2O3.

Suggestion to http://docs.h2o.ai/h2o/latest-stable/h2o-docs/data-science/algo-params/balance_classes.html:

With `balance_classes` enabled, it uses either `class_sampling_factors` or `max_after_balance_size` to control the sampling. 
* `class_sampling_factors` takes a list of numbers which would be the sampling rate for each class. A value of '1' would not change the sample rate for a class, but setting it to '0.5' would reduce its sampling by half and '2' would double its sample rate. 
* Alternatively, you can utilize `max_after_balance_size` which is the max relative size your training data could be grown. By default it is 5; this will oversample the data to rebalance the training data. The max it can grow to is 5x larger than your original data, hence, the value of 5. If you have many rows and prefer to under-sample the majority class, you can set max_after_balance_size to be < 1
@h2o-ops
Copy link
Collaborator

h2o-ops commented May 14, 2023

JIRA Issue Migration Info

Jira Issue: PUBDEV-7699
Assignee: hannah.tillman
Reporter: Neema Mashayekhi
State: Resolved
Fix Version: 3.30.1.1
Attachments: N/A
Development PRs: Available

Linked PRs from JIRA

#4815

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants