Skip to main content

torchpal
极度新手友好的 PyTorch 伙伴;加速机器学习探索之旅!

PyTorch 助手 Python 3.10+ MIT 许可证

📖 简介

TorchPal 是一个专为新手设计的 PyTorch 辅助工具包,拥有简单易用的 API。
能极大简化深度学习模型的开发、训练和评估流程中的样板代码,帮助您更专注快速地验证自己的想法。

🌟 特色功能

  • 自动化训练与评估: 为常见的回归和分类任务提供自动化管理器,无需手动编写训练循环、验证逻辑(内置 K 折交叉验证)
  • 实时可视化: 实时可视化训练与评估过程,直观展示模型性能;支持自定义指标进行绘制,
  • 探索性训练: 支持在小型数据子集上快速运行训练,帮助初步验证模型架构或超参数设置的合理性
  • 实用工具集: 提供丰富的实用工具,如提供模型保存/加载、脚本备份、图片展示等常用辅助功能

⚡ 快速开始

安装

pip install torchpal

基础使用(以回归任务为例)

点击查看完整示例代码

📚 模块概览

  • tp.train: 包含 RegressionAutoManager 和 ClassificationAutoManager,用于自动化训练和评估流程。
  • tp.utils: 提供实用工具
  • tp.data: 数据处理相关工具
  • tp.da: 简单的数据分析工具 (基于 Pandas)

提示:TorchPal 优化了类型提示,您可以在编码时利用 IDE 的提示与代码补全功能轻松查看各模块的内容、函数的可用参数及说明。

🤝 贡献

欢迎各种形式的贡献!

  1. 发现 Bug 或有功能建议? 请在 GitHub Issues 提出。
  2. 贡献代码:
    • Fork 本仓库。
    • 创建特性分支 (git checkout -b feature/YourAmazingFeature)。
    • 提交更改 (git commit -m 'Add some AmazingFeature')。
    • 推送到分支 (git push origin feature/YourAmazingFeature)。
    • 提交 Pull Request。

🙏 致谢

  • 感谢 PyTorch 团队。
  • 感谢所有开源贡献者。

TorchPal - 让 PyTorch 更简单,让想法更快落地!
用 ❤️ 制作

Metadata

Release files for torchpal 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torchpal 0.1.1
File Size Uploaded Provenance Actions
torchpal-0.1.1.tar.gz 16.7 kB With provenance Details for torchpal-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for torchpal 0.1.1
File Interpreter ABI Platform Actions
torchpal-0.1.1-py3-none-any.whl Python 3 none any Details for torchpal-0.1.1-py3-none-any.whl

Total release size: 35.2 kB

Release files / torchpal-0.1.1.tar.gz

Download URL torchpal-0.1.1.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
892bd7049ed67fe9768a59f1c9fc15f4870800c3641e23335aae92df557c79e2
BLAKE2b-256 checksum
How to use checksums
4932da30f9edebfbb6b77ad5fb09a77b030e7460c477640578c595ed34522158
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2025.

Transparency log

Release files / torchpal-0.1.1-py3-none-any.whl

Download URL torchpal-0.1.1-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
654e983da1a2c4fb824951e1f4e1c35a5f06febdd9907730022004a9d9322fa3
BLAKE2b-256 checksum
How to use checksums
e26062d3854ba3ad1a9dec1854b50f73819b316dea0028641baa20ff14239cd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2025.

Transparency log

Security for torchpal 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for torchpal-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 9, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page