MTMPLTool
一个基于 PyTorch Lightning 的机器学习模型训练和评估工具包。
简介
MTMPLTool 提供了一系列用于 PyTorch Lightning 机器学习项目的实用工具,包括:
- 自定义模型评估指标
- 基于 R2C(回归到分类)转换的专用损失函数
- 数据转换工具
- 学习率调度器
功能特性
评估指标
ExpectedLevelofError:使用绝对误差和相对误差阈值评估预测结果- 与 PyTorch Lightning 兼容的自定义指标
损失函数
BaseR2CLoss:R2C 转换损失函数的基类RegressionR2CLoss:带 R2C 转换的回归损失函数ClassificationR2CLoss:支持可选类别权重的交叉熵损失函数AttentionPoolingR2CLoss:带温度缩放的注意力池化损失函数
数据转换
ScalarToOnehot:将连续标量值转换为独热编码Random_0_or_1:用于随机值替换的数据增强工具
学习率调度器
LinearLRWarmupAndCosineAnnealingWarmRestarts:结合线性预热和余弦退火重启的学习率调度器
安装
pip install mtmpltool
环境要求
- Python >= 3.8
- PyTorch
- PyTorch Lightning
- pytorch-forecasting
开源协议
MIT 协议 - 详见 LICENSE 文件
Metadata
Release files for mtmpltool 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mtmpltool-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for mtmpltool-0.0.6-py3-none-any.whl |
Release files / mtmpltool-0.0.6-py3-none-any.whl
| Download URL | mtmpltool-0.0.6-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7d619243b320c19dbe8eaf2e14a77d3a47f8cad12f584071d6a97fe029a35b7
|
|
BLAKE2b-256 checksum How to use checksums |
53bb5d93ee1e37411a374976b01fdaa6cec415f1ddeb09277ee469e729e5935d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mtmpltool 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.