Skip to content

About

A demo for worktree using

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Python Training Experiment

这是一个只使用 Python 标准库的最小线性回归实验。脚本生成满足 y = 2x + 1 的样本,并通过梯度下降学习参数 w 和 b。

运行

需要 Python 3.9 或更高版本。在项目根目录执行:

python src/train.py --config configs/base.json

训练配置位于 configs/base.json。运行完成后,结果会写入 outputs/result.json,其中包含:

  • final_w
  • final_b
  • final_loss
  • num_steps
  • lr

About

A demo for worktree using

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages