简体   繁体   English

如何找到我的 word2vec model 的准确度、精确度、召回率和 f1 分数?

[英]How to find accuracy, precision, recall, f1 score for my word2vec model?

I am working on a project to find similarity among products.我正在开展一个项目来寻找产品之间的相似性。 The model splits the excel data sheet into 90% training / 10% validation. model 将 excel 数据表拆分为 90% 训练/10% 验证。 When I check manually for validation the model works pretty well.当我手动检查验证时,model 工作得很好。 But I am having trouble with the evaluation process.但是我在评估过程中遇到了麻烦。 How should I find accuracy, precision, recall and F1 score to understand how well my model works?我应该如何找到准确度、精确度、召回率和 F1 分数来了解我的 model 的效果如何?

I am very new to machine learning, still learning, please give me some clues where to start.我是机器学习的新手,还在学习,请给我一些从哪里开始的线索。

Word2vec is an algorithm that's considered 'unsupervised' – it's not trained using specified 'correct' answers, but rather learns from the patterns in any data. Word2vec 是一种被认为是“无监督”的算法——它不是使用指定的“正确”答案进行训练,而是从任何数据中的模式中学习。 As a result, there's no native-to-word2vec idea of 'accuracy', 'precision', etcetera – those concepts only have meaning in relation to a set of desired answers.因此,没有 word2vec 原生的“准确性”、“精确度”等概念——这些概念仅在与一组所需答案相关时才有意义。

So to calculate those values, you have to use those word-vectors in some other downstream task, and devise your own evaluation for that downstream task.因此,要计算这些值,您必须在其他下游任务中使用这些词向量,并且 devise 您自己对该下游任务的评估。 Then you can calculate accuracy & other values for that whole system (including the word2vec step).然后您可以计算整个系统的准确性和其他值(包括 word2vec 步骤)。 This may include applying your judgement, or that of other reviewers, about what the result "should" be in certain cases.这可能包括应用您或其他审阅者的判断,判断在某些情况下“应该”的结果是什么。

Without any examples of your data, it's not yet clear what your Word2Vec model is doing, and how products are represented in it.没有任何数据示例,尚不清楚您的 Word2Vec model 在做什么,以及产品在其中的表示方式。 (What's the individual items in the customers_train list you've created? Where do product names/identifiers come in? What kinds of similarity-questions or end-user operations do you need to be performing?) (您创建的customers_train列表中的各个项目是什么?产品名称/标识符从何而来?您需要执行哪些相似性问题或最终用户操作?)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在迁移学习 vgg16 模型中获得准确率、召回率、f1 分数? - How to get precision, recall, f1 score in transfer learning vgg16 model? 如何在训练 SSD 后预测 Precision、Recall 和 F1 分数 - How to predict Precision, Recall and F1 score after training SSD Tensorflow:计算精度、召回率、F1 分数 - Tensorflow: Compute Precision, Recall, F1 Score 精度,召回率,F1得分与sklearn相等 - Precision, recall, F1 score equal with sklearn 自定义 Keras 指标函数(召回率、精度、F1 分数)无法加载 H5 model - Custom Keras metric functions (Recall, Precision, F1 Score) isn't enabling the Loading of H5 model Tensorflow Precision / Recall / F1 分数和混淆矩阵 - Tensorflow Precision / Recall / F1 score and Confusion matrix 在Keras获得每班的精确度,召回率和F1分数 - Getting precision, recall and F1 score per class in Keras 使用 precision_recall_curve 计算最大 f1 分数? - compute maximum f1 score using precision_recall_curve? 使用自制分离器获得精确度、召回率、F1 分数 - Get Precision, Recall, F1 Score with self-made splitter 在tfhub重新训练脚本中计算F1得分,精度,召回率 - Calculating F1 score, precision, recall in tfhub retraining script
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM