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

regularization_factor() should be exclusive of 0 #381

Closed
hfrick opened this issue Feb 14, 2025 · 0 comments · Fixed by #382
Closed

regularization_factor() should be exclusive of 0 #381

hfrick opened this issue Feb 14, 2025 · 0 comments · Fixed by #382

Comments

@hfrick
Copy link
Member

hfrick commented Feb 14, 2025

# dials::regularization_factor() should be exclusive of 0
fails <- ranger::ranger(Species ~ ., data = iris, regularization.factor = 0)
#> [...]
#> Error in ranger::ranger(Species ~ ., data = iris, regularization.factor = 0): 
#> The regularization coefficients cannot be smaller than 0.

# keeping 1 as inclusive is okay
runs <- ranger::ranger(Species ~ ., data = iris, regularization.factor = 1)

Created on 2025-02-14 with reprex v2.1.1

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 a pull request may close this issue.

1 participant