Skip to main content

byzh-ai

更方便的深度学习。

pip install byzh-ai → 导入名 byzh_ai

模块一览

所有子包以 B 开头,类以 B_ 开头,函数以 b_ 开头。

模块 说明
Bdata 主流数据集一键下载/缓存/标准化(MNIST、CIFAR、FashionMNIST、Tiny ImageNet 等),支持 TensorDataset / DataLoader 构建与分层采样
Bdemo MNIST 完整训练演示、训练器功能测试(单卡/多卡)、分类评估测试
Bearly_stop 多种早停策略(精度停滞、精度增量不足、损失停滞、过拟合检测)及模型参数自动回滚重载
Blr_schedulers 自定义学习率调度器:Warmup 线性升温、阶梯衰减、Warmup + 衰减组合
Bmodel 即用型深度学习模型:SimpleCNN、LeNet-5、ResNet-18、RNN、LSTM、Transformer、脉冲神经网络(Spike RNN/LSTM/ResNet-18)等
Btrainer 通用训练器,封装训练/验证/测试循环,集成早停/重载、学习率调度、checkpoint、多 GPU(DataParallel / DDP)、SNN 支持、日志记录、损失/精度绘图
Butils 深度学习工具:自动设备选择(NPU/GPU/CPU)、GPU 监控与空闲检测、模型参数量/FLOPs 统计、随机种子统一设置、数据集均值/标准差计算、超参数网格搜索、递增运行目录管理
Bvisual 训练损失/精度曲线绘制、混淆矩阵热力图绘制

依赖

  • byzh-core>=0.0.10.0 — 进度条、日志写入器、彩色终端输出、文件/目录操作等基础工具
  • torch、torchvision — 深度学习框架
  • numpy、pandas、matplotlib、seaborn — 数据处理与可视化
  • scikit-learn — 数据划分、指标计算
  • thop — FLOPs 计算(需自行安装)
  • spikingjelly — 脉冲神经网络(可选)
  • PyYAML — YAML 配置解析
  • Pillow — 图像处理

License

MIT

Metadata

Release files for byzh-ai 0.0.10.18

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

Source distribution (sdist)

Source distribution for byzh-ai 0.0.10.18
File Size Uploaded Provenance
byzh_ai-0.0.10.18.tar.gz 134.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for byzh-ai 0.0.10.18
File Interpreter ABI Platform
byzh_ai-0.0.10.18-py3-none-any.whl Python 3 none any Details

Total release size: 368.1 kB

Release files / byzh_ai-0.0.10.18.tar.gz

Download URL byzh_ai-0.0.10.18.tar.gz
Size 134.4 kB
Tags Source
SHA-256 checksum
How to use checksums
97fe492350acb546ffbf629fba1ea0b4b9ec6a5cc3500b01ce0d4afe912bcec7
BLAKE2b-256 checksum
How to use checksums
70b406e3bb362003c7a9e99cf1043298bc1ab7e56eb07cc2e63c4ca3131a1eeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Release files / byzh_ai-0.0.10.18-py3-none-any.whl

Download URL byzh_ai-0.0.10.18-py3-none-any.whl
Size 233.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75fdaca5af3c64a62742d0170f1fb8229820401f444befaa30456fb4d5c898f4
BLAKE2b-256 checksum
How to use checksums
930c63fa3ef80b4b27564140eea928aaf8f9ff36d9d8650e19f80483195b1924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.5

Security for byzh-ai 0.0.10.18

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.

Release history Release notifications | RSS feed

This release

0.0.10.18 This release

2 release files No 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