项目
在 GitHub 查看
farhanshn/perceptron-from-scratch
关于
Perceptron implemented from scratch in Python, compared with scikit-learn
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Perceptron from Scratch
Learning project: implementing the perceptron algorithm in pure Python, then comparing it with scikit-learn's implementation.
How it works
For each sample: z = w1x1 + w2x2 + b, predict 1 if z >= 0, else 0.
Update rule: w += learning_rate * (y - prediction) * x
Contents
final_perceptron.ipynb: training from scratch, decision boundary plot, and comparison with scikit-learn
Run
pip install numpy matplotlib scikit-learn jupyter jupyter notebook
探索相关项目
加载中…