Skip to content

Commit

Permalink
float to int (sb-ai-lab#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
D1MK4real authored Aug 10, 2023
1 parent 578292e commit dee7022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightautoml/ml_algo/dl_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def _init_params_on_input(self, train_valid_iterator) -> dict:
target = train_valid_iterator.train.target

if params["n_out"] is None:
new_params["n_out"] = 1 if task_name != "multiclass" else np.max(target) + 1
new_params["n_out"] = 1 if task_name != "multiclass" else (np.max(target) + 1).astype(int)
new_params["n_out"] = target.shape[1] if task_name in ["multi:reg", "multilabel"] else new_params["n_out"]

cat_dims = []
Expand Down

0 comments on commit dee7022

Please sign in to comment.