Skip to content

Commit

Permalink
r.learn.ml2: change max_features=auto to sqrt
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm committed Sep 20, 2023
1 parent e76c325 commit aa88936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raster/r.learn.ml2/r.learn.train/r.learn.train.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def process_param_grid(hyperparams):
if hyperparams["max_depth"] == 0:
hyperparams["max_depth"] = None
if hyperparams["max_features"] == 0:
hyperparams["max_features"] = "auto"
hyperparams["max_features"] = "sqrt"
param_grid = {k: v for k, v in param_grid.items() if v is not None}

return hyperparams, param_grid
Expand Down

0 comments on commit aa88936

Please sign in to comment.