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

dont pass sample_fraction_ at predict #62

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Conversation

crflynn
Copy link
Owner

@crflynn crflynn commented Jan 18, 2021

Closes #61

When predicting we pass the validated sample_fraction_ to ranger. Ranger, on creating the Forest object, performs a validation check against sample_fraction. We pass a valid sample fraction value (not the one specified by the user) on predict which ensures this check never fails on predict calls, since it is only ever used in fitting.

@dalekube
Copy link

Looks to be an effective solution. Thanks!

@crflynn crflynn merged commit d90612d into master Jan 18, 2021
@crflynn crflynn deleted the sample-fraction-fix branch January 18, 2021 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'sample_fraction' runtime error with one prediction
2 participants