Description
When installing seglearn both via pip install seglearn and by cloning github repo as described I encounter an error trying to load the package in a clean python environment.
steps to reproduce
create clean environment
$ conda activate test
$ pip install seglearn matplotlib tensorflow
try to activate seglearn in python
import matplotlib.pyplot as plt
from tensorflow.python.keras.layers import Dense, LSTM, Conv1D
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import train_test_split
from seglearn.datasets import load_watch
from seglearn.pipe import Pype
from seglearn.transform import Segment```
error output
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
~/OneDrive/for JingJin/seglearn.py in
5 from tensorflow.python.keras.wrappers.scikit_learn import KerasClassifier
6 from sklearn.model_selection import train_test_split
----> 7 from seglearn.datasets import load_watch
8 from seglearn.pipe import Pype
9 from seglearn.transform import Segment
~/OneDrive/for JingJin/seglearn.py in
6 from sklearn.model_selection import train_test_split
7
----> 8 from seglearn.datasets import load_watch
9 from seglearn.pipe import Pype
10 from seglearn.transform import Segment
ModuleNotFoundError: No module named 'seglearn.datasets'; 'seglearn' is not a package
Description When installing seglearn both via
pip install seglearn
and by cloning github repo as described I encounter an error trying to load the package in a clean python environment.steps to reproduce
from seglearn.datasets import load_watch from seglearn.pipe import Pype from seglearn.transform import Segment```
~/OneDrive/for JingJin/seglearn.py in
6 from sklearn.model_selection import train_test_split
7
----> 8 from seglearn.datasets import load_watch
9 from seglearn.pipe import Pype
10 from seglearn.transform import Segment
ModuleNotFoundError: No module named 'seglearn.datasets'; 'seglearn' is not a package