Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUN ERROE! #2

Closed
pmj828 opened this issue Apr 10, 2022 · 1 comment
Closed

RUN ERROE! #2

pmj828 opened this issue Apr 10, 2022 · 1 comment

Comments

@pmj828
Copy link

pmj828 commented Apr 10, 2022

Traceback (most recent call last):
File "/media/pmj/e/code/anomaly_code/RD4AD-main/main.py", line 121, in
train(i)
File "/media/pmj/e/code/anomaly_code/RD4AD-main/main.py", line 105, in train
auroc_px, auroc_sp, aupro_px = evaluation(encoder, bn, decoder, test_dataloader, device)
File "/media/pmj/e/code/anomaly_code/RD4AD-main/test.py", line 89, in evaluation
anomaly_map[np.newaxis,:,:]))
File "/media/pmj/e/code/anomaly_code/RD4AD-main/test.py", line 355, in compute_pro
df = pd.DataFrame([], columns=["pro", "fpr", "threshold"])
File "/home/pmj/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py", line 490, in init
mgr = init_dict({}, index, columns, dtype=dtype)
File "/home/pmj/anaconda3/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 239, in init_dict
val = construct_1d_arraylike_from_scalar(np.nan, len(index), nan_dtype)
File "/home/pmj/anaconda3/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1449, in construct_1d_arraylike_from_scalar
dtype = dtype.dtype
AttributeError: type object 'object' has no attribute 'dtype'

@pmj828
Copy link
Author

pmj828 commented Apr 10, 2022

pip install --upgrade pandas

@hq-deng hq-deng closed this as completed Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants