You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, when I run deepsad.py, there's an error that BaseADDataset cannot import, but two weeks ago it can be imported. May the problem is that package's version is outdated?
Thank you for providing help!
The text was updated successfully, but these errors were encountered:
I sincerely apologize for my late reply. We have released the latest version of ADBench. See the following codes for install or upgrade ADBench package.
pipinstalladbenchpipinstall--upgradeadbench
The following is an example to run DeepSAD on the cardio dataset (The dataset needs to be downloaded first, see the guidance for downloading datasets)
fromadbench.datasets.data_generatorimportDataGenerator# load cardio dataset w.r.t. the ratio of labeled anomalies=0.05data_generator=DataGenerator(seed=42, dataset='6_cardio')
data=data_generator.generator(la=0.05)
# load DeepSADfromadbench.baseline.DeepSAD.src.runimportDeepSADmodel=DeepSAD(seed=42)
model.fit(X_train=data['X_train'], y_train=data['y_train'])
score_test=model.predict_score(X=data['X_test'])
print(score_test)
Hello, when I run deepsad.py, there's an error that BaseADDataset cannot import, but two weeks ago it can be imported. May the problem is that package's version is outdated?
Thank you for providing help!
The text was updated successfully, but these errors were encountered: