-
run the code beside: Traceback (most recent call last): Process finished with exit code 1 I just run in the cpu, my computer is AMD Computer processor。 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @hellozhq, from tsai.all import *
import fastprogress
my_setup(fastprogress) in your notebook and post your results? from tsai.all import *
from sklearn.linear_model import RidgeClassifierCV
X, y, splits = get_UCR_data('HandMovementDirection', return_split=False)
tfms = [None, [Categorize()]]
batch_tfms = [TSStandardize(by_sample=True)]
dsets = TSDatasets(X, y, tfms=tfms, splits=splits)
dls = TSDataLoaders.from_dsets(dsets.train, dsets.valid, bs=64, drop_last=False, shuffle_train=False, batch_tfms=[TSStandardize(by_sample=True)])
model = create_model(ROCKET, dls=dls)
X_train, y_train = create_rocket_features(dls.train, model)
X_valid, y_valid = create_rocket_features(dls.valid, model)
ridge = RidgeClassifierCV(alphas=np.logspace(-8, 8, 17), normalize=True)
ridge.fit(X_train, y_train)
print(f'alpha: {ridge.alpha_:.2E} train: {ridge.score(X_train, y_train):.5f} valid: {ridge.score(X_valid, y_valid):.5f}') using this setup: os : Linux-5.4.144+-x86_64-with-Ubuntu-18.04-bionic
python : 3.7.12
tsai : 0.3.1
fastai : 2.5.3
fastcore : 1.3.29
fastprogress : 1.0.2
torch : 1.10.0+cu111
device : 1 cuda (['Tesla P100-PCIE-16GB'])
n_cpus : 2
RAM : 12.69 GB
GPU memory : [15.9] GB and it works well. pip install fastprogress or conda install -c fastai fastprogress |
Beta Was this translation helpful? Give feedback.
-
Have you solved the problem now? |
Beta Was this translation helpful? Give feedback.
-
I have solved this problem. I have reinstalled a new environment. The setup is as follows. It can run.
|
Beta Was this translation helpful? Give feedback.
I have solved this problem. I have reinstalled a new environment. The setup is as follows. It can run.
Maybe it's the problem of cpu and gpu