Here is my code:
clf = xgb.XGBClassifier(
tree_method = 'gpu_hist',
gpu_id = 0,
n_gpus = 4,
random_state = 55,
n_jobs = -1
)
clf.set_params(**params)
clf.fit(X_train, y_train, **fit_params)
I've read the answers on this question and this git issue but neither worked.
I tried to delete the booster in this way:
clf._Booster.__del__()
gc.collect()
It deletes the booster but doesn't completely free up GPU memory.
I guess it's Dmatrix that is still there but I am not sure.
How can I free the whole memory?