Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

ModuleNotFoundError: No module named 'zenml.integrations.sklearn.helpers' #16

Closed
Coder-Vishali opened this issue Aug 23, 2022 · 6 comments

Comments

@Coder-Vishali
Copy link

I am facing the issue while importing the below code:
from zenml.integrations.sklearn.helpers.digits import get_digits

Error:
ModuleNotFoundError: No module named 'zenml.integrations.sklearn.helpers'

@dnth
Copy link
Contributor

dnth commented Aug 23, 2022

Hi @Coder-Vishali which version of zenml are you running on?

@fa9r
Copy link
Contributor

fa9r commented Aug 23, 2022

@Coder-Vishali thanks for opening the issue. I removed this function from ZenML core during the last release, but apparently forgot to adjust ZenBytes accordingly. I'll make sure to fix this later today.

To temporarily fix this, you can either downgrade zenml to the previous version, or you can replace the get_digits() call with the following code:

from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split

digits = load_digits()
data = digits.images.reshape((len(digits.images), -1))
X_train, X_test, y_train, y_test = train_test_split(
    data, digits.target, test_size=0.2, shuffle=False
)

@fa9r
Copy link
Contributor

fa9r commented Aug 23, 2022

@Coder-Vishali I just updated ZenBytes, all lessons should now work correctly with the latest zenml version 0.13.0.

Please let me know if that fixed the issue for you.

Best,
Felix

@Coder-Vishali
Copy link
Author

Hi @Coder-Vishali which version of zenml are you running on?

I am using 0.13.0 version of zenml

@Coder-Vishali
Copy link
Author

@Coder-Vishali thanks for opening the issue. I removed this function from ZenML core during the last release, but apparently forgot to adjust ZenBytes accordingly. I'll make sure to fix this later today.

To temporarily fix this, you can either downgrade zenml to the previous version, or you can replace the get_digits() call with the following code:

from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split

digits = load_digits()
data = digits.images.reshape((len(digits.images), -1))
X_train, X_test, y_train, y_test = train_test_split(
    data, digits.target, test_size=0.2, shuffle=False
)

Hey Thanks for the quick reply. It is working fine now!

@Coder-Vishali
Copy link
Author

@Coder-Vishali I just updated ZenBytes, all lessons should now work correctly with the latest zenml version 0.13.0.

Please let me know if that fixed the issue for you.

Best, Felix

Issue is fixed now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants