cannot import name 'calculate_f1_np' from 'paddlehub.finetune.evaluate'
Created by: yisampi
python
Python 3.7.3 (default, Mar 27 2019, 22:11:17) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.
import paddlehub as hub Traceback (most recent call last): File "", line 1, in File "/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddlehub/init.py", line 48, in from .finetune.task import ClassifierTask File "/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddlehub/finetune/task/init.py", line 17, in from .classifier_task import ClassifierTask, ImageClassifierTask, TextClassifierTask, MultiLabelClassifierTask File "/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddlehub/finetune/task/classifier_task.py", line 25, in from paddlehub.finetune.evaluate import calculate_f1_np, matthews_corrcoef ImportError: cannot import name 'calculate_f1_np' from 'paddlehub.finetune.evaluate' (/optanaconda3/envs/paddlepaddle/lib/python3.7/site-packages/paddlehub/finetune/evaluate.py)