torch-metrics:pytorch中模型评估的指标

上传者: 42151772 | 上传时间: 2023-11-29 15:53:03 | 文件大小: 17KB | 文件类型: ZIP
火炬指标 PyTorch的模型评估指标 火炬指标作为自定义库,以提供Pytorch共同ML评价指标,类似于tf.keras.metrics 。 如,Pytorch没有用于模型评估指标的内置库torch.metrics 。 这类似于的指标库。 用法 pip install --upgrade torch-metrics from torch_metrics import Accuracy ## define metric ## metric = Accuracy ( from_logits = False ) y_pred = torch . tensor ([ 1 , 2 , 3 , 4 ]) y_true = torch . tensor ([ 0 , 2 , 3 , 4 ]) print ( metric ( y_pred , y_true )) ## define metri

文件下载

资源详情

[{"title":"( 32 个子文件 17KB ) torch-metrics:pytorch中模型评估的指标","children":[{"title":"torch-metrics-main","children":[{"title":".gitignore <span style='color:#111;'> 97B </span>","children":null,"spread":false},{"title":"torch_metrics","children":[{"title":"regression","children":[{"title":"msle.py <span style='color:#111;'> 776B </span>","children":null,"spread":false},{"title":"huber.py <span style='color:#111;'> 983B </span>","children":null,"spread":false},{"title":"meaniou.py <span style='color:#111;'> 897B </span>","children":null,"spread":false},{"title":"mse.py <span style='color:#111;'> 243B </span>","children":null,"spread":false},{"title":"logcosh.py <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 465B </span>","children":null,"spread":false},{"title":"rsquared.py <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"mae.py <span style='color:#111;'> 248B </span>","children":null,"spread":false},{"title":"rmse.py <span style='color:#111;'> 327B </span>","children":null,"spread":false}],"spread":true},{"title":"utils.py <span style='color:#111;'> 526B </span>","children":null,"spread":false},{"title":"classification","children":[{"title":"f1.py <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"dice.py <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"kldivergence.py <span style='color:#111;'> 1009B </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"squarehinge.py <span style='color:#111;'> 580B </span>","children":null,"spread":false},{"title":"pr.py <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"accuracy.py <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"hinge.py <span style='color:#111;'> 540B </span>","children":null,"spread":false}],"spread":true},{"title":"__init__.py <span style='color:#111;'> 53B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"stale.yml <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"workflows","children":[{"title":"python-package.yml <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"dependabot.yml <span style='color:#111;'> 125B </span>","children":null,"spread":false}],"spread":true},{"title":".pre-commit-config.yaml <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"test_classification_metrics.py <span style='color:#111;'> 912B </span>","children":null,"spread":false},{"title":"test_regression_metrics.py <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"input_data.py <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 106B </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 292B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明