原文档:https://github.com/torchnet/torchnet
import torchnet
tnt.Meter
Meters provide a standardized way to measure a range of different measures, which makes it easy to measure a wide range of properties of your models.

有三个基础的方法:

add() which adds an observation to the meter.
value() which returns the value of the meter, taking into account all observations.
reset() which removes all previously added observations, resetting the meter.
tnt.AverageValueMeter(self)
The tnt.AverageValueMeter measures and returns the average value and the standard deviation of any collection of numbers that are added to it. It is useful, for instance, to measure the average loss over a collection of examples.

tnt.AUCMeter(self)
The tnt.AUCMeter measures the area under the receiver-operating characteristic (ROC) curve for binary classification problems. The area under the curve (AUC) can be interpreted as the probability that, given a randomly selected positive example and a randomly selected negative example, the positive example is assigned a higher score by the classification model than the negative example.

tnt.ConfusionMeter(self, k[, normalized])
The tnt.ConfusionMeter constructs a confusion matrix for a multi-class classification problems.

torchnet tnt.Meter相关推荐

  1. torchnet.meter使用教程

    文章目录 前言 1. torchnet简介 2. Classification Meters 2.1 APMeter 2.2 mAPMeter 2.3 ClassErrorMeter 2.4 Conf ...

  2. torchnet package (2)

    torchnet package (2) torchnet torch7 Dataset Iterators 尽管是用for loop语句很容易处理Dataset,但有时希望以on-the-fly m ...

  3. python程序写诗_pytorch下使用LSTM神经网络写诗实例

    在pytorch下,以数万首唐诗为素材,训练双层LSTM神经网络,使其能够以唐诗的方式写诗. 代码结构分为四部分,分别为 1.model.py,定义了双层LSTM模型 2.data.py,定义了从网上 ...

  4. pytorch入门与实践学习笔记:chapter9 pytorch 实现CharRNN

    使用RNN写汉语诗 数据库: GitHub上手机的50k左右的唐诗原文 唐诗数据库,保存格式是.json和sqlite数据库 需要做的改动是: 将繁体转换成简体: 将所有的数据进行截断和补齐,以易于处 ...

  5. 关于image-patchs论文中的指标FPR95的一些理解

    TPR.FPR.precision.recall.accuracy.ROC.AUC https://www.cnblogs.com/sunupo/p/12827639.html 准确率(Accurac ...

  6. 【PyTorch】3 AI诗人RNN实战(LSTM)——完成诗歌剩余部分、生成藏头诗

    用RNN写诗 1. 背景 2. 数据描述 3. 数据使用 4. LSTM函数 5. Model 6. Train 7. Test 8. 全部代码 小结 1. 背景 书上的内容可见此,一些关于此的博客1 ...

  7. 深度学习框架PyTorch入门与实践:第八章 AI艺术家:神经网络风格迁移

    本章我们将介绍一个酷炫的深度学习应用--风格迁移(Style Transfer).近年来,由深度学习引领的人工智能技术浪潮越来越广泛地应用到社会各个领域.这其中,手机应用Prisma,尝试为用户的照片 ...

  8. Kaggle数据集猫狗分类(Pytorch+ResNet34预训练)99%以上正确率

    关于训练集的介绍和数据划分可以参照上一个博客: https://blog.csdn.net/qq_41685265/article/details/104895273 数据加载 class DogCa ...

  9. (学生快速上手向)python图片分类识别器

    本文着重讲不学无术的大学生如何快速上手跑出结果.本项目基于resnet34识别四类示意图,由cat vs dog项目改写而来.文末会说明如何快速把它改成你想要的项目(图片二分类等). 项目代码.数据集 ...

最新文章

  1. Git workflow
  2. HiveQL之Database相关操作
  3. Java.math.BigDecimal
  4. C++的深拷贝与浅拷贝
  5. 单片机小白学步系列(六) 单片机最小系统——麻雀虽小,五脏俱全
  6. 辍学程序员改变世界,这位长得像马云的90后要击败Facebook的扎克伯格了…
  7. 32 - III. 从上到下打印二叉树 III
  8. c语言设置一个选择数字的程序,C语言编一个数字益智小游戏
  9. DeepMind开源了强化学习库“松露”,团队自身也严重依赖它
  10. Python数据结构与算法(二)栈和队列
  11. spring的配置及依赖注入(详细)
  12. 手持式频谱分析仪帮助实施毫米波无线信道调查
  13. pspice计算机仿真实验,基于OrCAD_PSpice二阶动态电路的计算机仿真分析
  14. Paranoid String
  15. 找出连续最长数字串python_在Python中查找最长的连续字母和数字子字符串
  16. 【GPLT】【2022天梯赛真题题解】
  17. Https证书的安装
  18. DT内核圆柱模板行业站点主动tags三项主动推送插件
  19. EndNote20 【无法编辑Range】解决办法
  20. Java下载安装及配置

热门文章

  1. Maxcompute Spark作业管控利器—Cupid Console
  2. 自定义函数C语言编写x的n次方,c语言求x的n次方的函数是什么
  3. A星 A* 寻路 格子 理解
  4. 移动端九宫格转盘抽奖vue组件
  5. 热电偶基础知识介绍-04
  6. /proc文件系统的特点和/proc文件的说明
  7. Android 超级简单的打包apk
  8. 【考研每日一题29】吃糖果(C++)
  9. 第21天 保护操作系统
  10. Texas Instruments 处理器资料导航(TI AM64x)