Skip to content

Commit

Permalink
use gpu for xgboost
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Dec 8, 2023
1 parent 2c014b8 commit 01692c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def train(
objective='binary:logistic', # For binary classification
n_jobs=-1,
random_state=42,
tree_method='gpu_hist', # Use GPU optimized histogram algorithm
)

# clfs = [('Naive Bayes',nb_model),('Logistic Regression',lr_model),('Random Forest',rf_model)]
Expand Down

0 comments on commit 01692c6

Please sign in to comment.