当前位置: 首页 > news >正文

机器学习 - metric评估方法

有一些方法来评估classification model。

Metric name / Evaluation methodDefinitionCode
AccuracyOut of 100 predictions, how many does your model get correct? E.g. 95% accuracy means it gets 95/100 predictions correct.torchmetrics.Accuracy() or sklearn.metrics.accuracy_score()
PrecisionProportion of true positive over total number of samples. Higher precision leads to less false positives (model predicts 1 when it should’ve been 0).torchmetrics.Precision() or sklearn.metrics.precision_score()
RecallProportion of true positives over total number of true positives and false negatives (model predicts 0 when it should’ve been 1). Higher recall leads to less false negatives.torchmetrics.Recall() or sklearn.metrics.recall_score()
F1-scoreCombines precision and recall into one metric, 1 is best, 0 is worsttorchmetrics.F1Score() or sklearn.metrics.f1_score()
Confusion matrixCompares the predicted values with the true values in a tabular way, if 100% correct, all values in the matrix will be top left to bottom right (diagnoal line).torchmetrics.ConfusionMatrix or sklearn.metrics.plot_confusion_matrix()
Classification reportCollection of some of the main classification metrics such as precision, recall and f1-score.sklearn.metrics.classification_report()

点个赞呗~

http://www.lryc.cn/news/332379.html

相关文章:

  • 书生·浦语大模型趣味Demo作业( 第二节课)第二期
  • VScode使用持续更新中。。。
  • YUM仓库和编译安装
  • IPv4子网判断
  • CSS 实现航班起飞、飞行和降落动画
  • 设计模式——建造者模式03
  • 【机器学习】《机器学习算法竞赛实战》思考练习(更新中……)
  • 机场数据治理系列介绍(5)民用机场智慧能源系统评价体系设计
  • [LeetCode][LCR190]加密运算——全加器的实现
  • Linux: linux常见操作指令
  • 【BPNN】BP神经网络代码
  • 基于mqtt的物联网控制移动应用程序开发
  • MPLS-基础、LSR、LSP、标签、体系结构
  • 【RV1126】Ubuntu22.04下sdk编译问题汇集
  • 51单片机使用uart串口和助手简单调试
  • Python网络爬虫(五):b站弹幕
  • Docker环境安装Postgresql数据库Posrgresql 15.6
  • 当代软件专业大学生与青年在新质生产力背景下的发展探究
  • MATLAB——知识点备忘
  • C++入门(以c为基础)——学习笔记2
  • 设计模式-单例模式(懒汉式)
  • 算法| ss 回溯
  • 基于R语言绘制-散点小提琴图
  • Arduino开发 esp32cam+opencv人脸识别距离+语音提醒
  • LeNet卷积神经网络
  • Python常用算法思想--回溯算法思想详解【附源码】
  • Day5-Hive的结构和优化、数据文件存储格式
  • 01 计算机网络发展与分类
  • ubuntu安装sublime3并设置中文
  • python调用阿里云短信配置