-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow parallel prediction for UpliftRandomForestClassifier (#477)
* predict trees in parallel if self.n_jobs != 1 * test predictions coincide for single and parallel computation for UpliftRandomForestClassifier * mention that `n_jobs` is also used for predictions of UpliftRandomForestClassifier * Add optional `joblib_prefer` argument to constructor of UpliftRandomForestClassifier. It is passed as `prefer` to joblib.Parallel in the `fit` and `predict` methods. * add parameter `joblib_prefer` to `test_UpliftRandomForestClassifier`
- Loading branch information
Showing
2 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters