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

problem of mdl.lab3.plot_accuracy_vs_risk #128

Open
Spartanzhao opened this issue May 11, 2023 · 0 comments
Open

problem of mdl.lab3.plot_accuracy_vs_risk #128

Spartanzhao opened this issue May 11, 2023 · 0 comments

Comments

@Spartanzhao
Copy link

When I running _ = mdl.lab3.plot_accuracy_vs_risk(bias_images, sorted_bias, sorted_bias_preds, "Bias vs. Accuracy")
I got these error

AttributeError Traceback (most recent call last)
Cell In[81], line 12
10 plt.xlabel("Density (Representation)")
11 plt.ylabel("Accuracy")
---> 12 _ = mdl.lab3.plot_accuracy_vs_risk(bias_images, sorted_bias, sorted_bias_preds, "Bias vs. Accuracy")

AttributeError: module 'mitdeeplearning.lab3' has no attribute 'plot_accuracy_vs_risk'

When I run:
from mitdeeplearning import lab3
dir(lab3)

I got this:

['DatasetLoader',
'IM_SHAPE',
'builtins',
'cached',
'doc',
'file',
'loader',
'name',
'package',
'spec',
'cv2',
'get_test_faces',
'glob',
'h5py',
'np',
'os',
'plot_image_prediction',
'plot_k',
'plot_percentile',
'plot_value_prediction',
'plt',
'sys',
'tf',
'time']
There is no such function called plot_accuracy_vs_risk, Could you solve this issue? I am using MAC M1, python 3.10

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