Yoctol / yoctol-nlu-py

Yoctol understood SDK for python.
http://yoctol-nlu-py.readthedocs.io/en/latest/
MIT License
10 stars 4 forks source link

Draft of intent recall and precision function #24

Open stegben opened 6 years ago

stegben commented 6 years ago
intent_prediction, _ = model.predict('飲料喝到飽')
thresholds = [k for k in range(0, 1, 0.1)]
recall, precision = function_name_to_be_decided(intent_answer, intent_prediction, thresholds)
GBLin5566 commented 6 years ago

could be something like

recall, precision = sdk.evaluation.evaluate(intent_answer, intent_prediction, thresholds)

and confustion matrix

sdk.evaluation.confustion_matrix(intent_answer, intent_prediction, thresholds)