Skip to content

Commit

Permalink
remove catboost GPU special case
Browse files Browse the repository at this point in the history
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
  • Loading branch information
Yard1 committed Mar 18, 2023
1 parent 09d2f40 commit ef12067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions pycaret/containers/models/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,9 +1424,7 @@ def __init__(self, experiment):
# suppress output
logging.getLogger("catboost").setLevel(logging.ERROR)

use_gpu = experiment.gpu_param == "force" or (
experiment.gpu_param and len(experiment.X_train) >= 50000
)
use_gpu = experiment.gpu_param

args = {
"random_state": experiment.seed,
Expand Down
4 changes: 1 addition & 3 deletions pycaret/containers/models/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -1802,9 +1802,7 @@ def __init__(self, experiment):
# suppress output
logging.getLogger("catboost").setLevel(logging.ERROR)

use_gpu = experiment.gpu_param == "force" or (
experiment.gpu_param and len(experiment.X_train) >= 50000
)
use_gpu = experiment.gpu_param

args = {
"random_state": experiment.seed,
Expand Down
4 changes: 1 addition & 3 deletions pycaret/containers/models/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2448,9 +2448,7 @@ def __init__(self, experiment) -> None:
# suppress output
logging.getLogger("catboost").setLevel(logging.ERROR)

self.use_gpu = experiment.gpu_param == "force" or (
experiment.gpu_param and len(experiment.y_train) >= 50000
)
self.use_gpu = experiment.gpu_param

super().__init__(experiment=experiment)

Expand Down

0 comments on commit ef12067

Please sign in to comment.