Skip to content

Commit

Permalink
fix cuml attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdboom committed Feb 1, 2024
1 parent 4cb4637 commit 7cef876
Show file tree
Hide file tree
Showing 4 changed files with 10,181 additions and 2 deletions.
6 changes: 4 additions & 2 deletions atom/basetransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,11 @@ def _get_est_class(self, name: str, module: str) -> type[Estimator]:
"""
try:
return getattr(import_module(f"{self.engine.estimator}.{module}"), name)
mod = import_module(f"{self.engine.estimator}.{module}")
except (ModuleNotFoundError, AttributeError):
return getattr(import_module(f"sklearn.{module}"), name)
mod = import_module(f"sklearn.{module}")

return self._inherit(getattr(mod, name))

@staticmethod
@overload
Expand Down
5,088 changes: 5,088 additions & 0 deletions docs_sources/examples/univariate_forecast.ipynb

Large diffs are not rendered by default.

5,088 changes: 5,088 additions & 0 deletions examples/univariate_forecast.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ nav:
- Regression: examples/regression.ipynb
- Successive halving: examples/successive_halving.ipynb
- Train sizing: examples/train_sizing.ipynb
- Univariate forecast: examples/univariate_forecast.ipynb
- Utilities: examples/utilities.ipynb
- Changelog:
- v6.x.x: changelog/v6.x.x.md
Expand Down

0 comments on commit 7cef876

Please sign in to comment.