Skip to content
プロジェクト

farhanshn/perceptron-from-scratch

GitHubで見る

概要

Perceptron implemented from scratch in Python, compared with scikit-learn

学習・教育

この数値の測り方

計測したスター増加

24時間
0
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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

関連プロジェクトを探す

読み込み中…