ImportError: cannot import name 'confusion_matrix'
Closed this issue · 1 comments
Describe the bug
When I tried to run 'max_storage_temp_tutorial.ipynb' in my own jupyter-notebook, an ImportError occurred in the In Phase 3: Probabilistic Relation Classification Loading Gold Data
from hardware_utils import load_hardware_labels. And it is cannot import name 'confusion_matrix'
After reading the source code, it should be:
from fonduer.learning.utils import confusion_matrix
Error Logs/Screenshots
Here is the Screenshots
https://raw.githubusercontent.com/NeuZcp/issuePic/master/fonduerIssue.png
Environment (please complete the following information):
-
OS: Ubuntu 16.04.6 LTS
-
PostgreSQL Version: 11.3
-
Fonduer Version: 0.6.2
Additional context
Add any other context about the problem here.
Thanks for reporting this. We made some breaking changes in preparation for the next version of fonduer (see https://github.com/HazyResearch/fonduer/blob/master/CHANGELOG.rst). We will be releasing that soon, and will update the version in the tutorial accordingly.