Skip to content

Commit

Permalink
see if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Dec 6, 2024
1 parent c47daf3 commit b64f962
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion sklearnex/basic_statistics/basic_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
from onedal.basic_statistics import BasicStatistics as onedal_BasicStatistics

from .._device_offload import dispatch
from .._utils import IntelEstimator, PatchingConditionsChain
from .._utils import PatchingConditionsChain
from ..base import IntelEstimator

if sklearn_check_version("1.6"):
from sklearn.utils.validation import validate_data
Expand Down
3 changes: 2 additions & 1 deletion sklearnex/basic_statistics/incremental_basic_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
)

from .._device_offload import dispatch
from .._utils import IntelEstimator, PatchingConditionsChain
from .._utils import PatchingConditionsChain
from ..base import IntelEstimator

if sklearn_check_version("1.2"):
from sklearn.utils._param_validation import Interval, StrOptions
Expand Down
3 changes: 2 additions & 1 deletion sklearnex/covariance/incremental_covariance.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
from sklearnex import config_context

from .._device_offload import dispatch, wrap_output_data
from .._utils import IntelEstimator, PatchingConditionsChain, register_hyperparameters
from .._utils import PatchingConditionsChain, register_hyperparameters
from ..base import IntelEstimator
from ..metrics import pairwise_distances
from ..utils._array_api import get_namespace

Expand Down
3 changes: 2 additions & 1 deletion sklearnex/linear_model/incremental_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
from onedal.common.hyperparameters import get_hyperparameters

from .._device_offload import dispatch, wrap_output_data
from .._utils import IntelEstimator, PatchingConditionsChain, register_hyperparameters
from .._utils import PatchingConditionsChain, register_hyperparameters
from ..base import IntelEstimator


@register_hyperparameters(
Expand Down
3 changes: 2 additions & 1 deletion sklearnex/linear_model/incremental_ridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

from .._device_offload import dispatch, wrap_output_data
from .._utils import PatchingConditionsChain
from ..base import IntelEstimator

if sklearn_check_version("1.6"):
from sklearn.utils.validation import validate_data
Expand All @@ -43,7 +44,7 @@
@control_n_jobs(
decorated_methods=["fit", "partial_fit", "predict", "score", "_onedal_finalize_fit"]
)
class IncrementalRidge(MultiOutputMixin, RegressorMixin, BaseEstimator):
class IncrementalRidge(IntelEstimator, MultiOutputMixin, RegressorMixin, BaseEstimator):
"""
Incremental estimator for Ridge Regression.
Allows to train Ridge Regression if data is splitted into batches.
Expand Down

0 comments on commit b64f962

Please sign in to comment.