Skip to content
Projetos

farhanshn/perceptron-from-scratch

Ver no GitHub

Sobre

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

Aprendizado e educação

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
Coletando histórico
em 15 dias
Coletando histórico
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

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

Explore projetos relacionados

Carregando…