Skip to content

Commit

Permalink
Add _predict_model_on_cpu for RandomForestClassifier (rapidsai#5148)
Browse files Browse the repository at this point in the history
Closes rapidsai#5008

Authors:
  - Micka (https://github.com/lowener)
  - Dante Gama Dessavre (https://github.com/dantegd)

Approvers:
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#5148
  • Loading branch information
lowener committed Feb 5, 2023
1 parent a1c22e4 commit fac0e24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/cuml/dask/ensemble/randomforestclassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ def _construct_rf(
**kwargs
)

@staticmethod
def _predict_model_on_cpu(model, X, convert_dtype):
return model._predict_model_on_cpu(X, convert_dtype=convert_dtype)

def get_summary_text(self):
"""
Obtain the text summary of the random forest model
Expand Down

0 comments on commit fac0e24

Please sign in to comment.