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

AttributeError: 'DAN' object has no attribute 'compute_metrics' #2

Closed
yongkangchen opened this issue May 1, 2024 · 0 comments
Closed

Comments

@yongkangchen
Copy link

yongkangchen commented May 1, 2024

@YLi2021 I encountered an error while executing main-Saratoga.ipynb. I reviewed the source code in this project and indeed couldn't find a method named "compute_metrics" in DAN.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[7], line 4
      2 from models.DAN_M import *
      3 model = DAN(opt,ds)
----> 4 metrics = model.compute_metrics(Inference_dir)
      5 print("RMSE: ", np.array(metrics[0][0]))
      6 print("MAPE: ", np.array(metrics[1][0]))

AttributeError: 'DAN' object has no attribute 'compute_metrics'
Screenshot 2024-04-30 at 8 47 24 PM
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

1 participant