Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AssemblyAI-Community/Machine-Learning-From-Scratch
/ perceptron.py
File
perceptron.py
08 Perceptron/perceptron.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
numpy
as
np
2
3
4
def
unit_step_func(x):
Callers
nothing calls this directly
Calls
5
Perceptron
Class · 0.85
plot
Method · 0.80
accuracy
Function · 0.70
fit
Method · 0.45
predict
Method · 0.45
Tested by
no test coverage detected