Skip to content

Commit

Permalink
Fix delayed and Parallel imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jasperroebroek committed Jun 21, 2024
1 parent ce0727c commit cf0f6b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
environment: pypi
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [

dependencies = [
"numpy>=1.19.0",
"scikit-learn>=1.4",
"scikit-learn>=1.5",
"joblib",
"packaging"
]
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ wheel
numpy<2
Cython>=0.29.21
twine
scikit-learn>=1
scikit-learn>=1.5
joblib
packaging
pytest
4 changes: 1 addition & 3 deletions sklearn_quantile/ensemble/maximum.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ same parameters as the regular RandomForestRegressor
"""
import threading

from joblib import Parallel

import numpy as np
cimport numpy as cnp
from sklearn.tree import DecisionTreeRegressor
from sklearn.utils.parallel import delayed
from sklearn.utils.parallel import delayed, Parallel
from sklearn.utils.validation import check_is_fitted
from sklearn.ensemble._base import _partition_estimators
from sklearn.ensemble._forest import ForestRegressor
Expand Down
3 changes: 1 addition & 2 deletions sklearn_quantile/ensemble/quantile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ from abc import ABCMeta, abstractmethod

import numpy as np
import threading
from joblib import Parallel

from sklearn.ensemble._forest import ForestRegressor, _accumulate_prediction, _generate_sample_indices
from sklearn.ensemble._base import _partition_estimators
from sklearn.utils.fixes import delayed
from sklearn.utils.parallel import delayed, Parallel
from sklearn.tree import DecisionTreeRegressor, ExtraTreeRegressor
from sklearn.utils import check_array, check_X_y, check_random_state
from sklearn.utils.validation import check_is_fitted
Expand Down

0 comments on commit cf0f6b9

Please sign in to comment.