Skip to content

Commit

Permalink
switch the joblib backend for UpliftRandomForest to threading to opti…
Browse files Browse the repository at this point in the history
…mize memory usage (#468)
  • Loading branch information
jeongyoonlee authored Feb 5, 2022
1 parent 313b4c4 commit 1edea9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion causalml/inference/tree/uplift.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ class UpliftRandomForestClassifier:
self.n_class = len(self.classes_)

self.uplift_forest = (
Parallel(n_jobs=self.n_jobs)
Parallel(n_jobs=self.n_jobs, backend="threading")
(delayed(self.bootstrap)(X, treatment, y, tree) for tree in self.uplift_forest)
)

Expand Down

0 comments on commit 1edea9e

Please sign in to comment.