Skip to main content

A tool for monitoring model checkpoints and sending notifications

Project description

model_monitor

监视模型训练时生成的权重文件,符合条件时发送QQ邮件通知。

使用场景

当你希望在模型训练过程中,当某个指标(例如验证集上的损失或准确率)低于/高于预设阈值时收到邮件通知。这有助于你及时了解模型的性能表现,以便进行必要的调整。

如何使用

安装依赖

pip install model_monitor

获取QQ授权码

为了给QQ邮箱发送邮件,你需要使用授权码而不是密码。你可以在QQ邮箱的设置中找到它。

https://service.mail.qq.com/detail/0/75

Alt text

示例代码

上述配置后,你就可以使用代码了。

测试代码在tests/test.py

效果如下:

Alt text

开发日志

2025-07-04 更新:

  • 最初版本发布。

2025-07-05 更新:

  • 代码重构。如果你需要重构前的代码,在tests/quicktest中查看。
  • 代码打包,上传PyPI。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_model_monitor-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_model_monitor-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file auto_model_monitor-0.1.0.tar.gz.

File metadata

  • Download URL: auto_model_monitor-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for auto_model_monitor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 120c31c39ff0af4c3fbc7b6323b87f59e010ca63434120294470b422b669e954
MD5 63f0d80af124e9375ecca7009dfb958d
BLAKE2b-256 7f8dfab5d55d8a1d1b8d622710cdbcf27e5f97b19e1ccde962b3855228be25cc

See more details on using hashes here.

File details

Details for the file auto_model_monitor-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_model_monitor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d821ad6fbdfdc5de615baf51b90b1599aae2b889bd1e09dfad66d2511f48511e
MD5 70595d83c858d70b1fbf405bfe96d7b9
BLAKE2b-256 701083feb8889115ef26102276343c5152b58b9f1eba93ea9f011825fe6e611b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page