Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ multilayer_perceptron_classifier.py
File
multilayer_perceptron_classifier.py
machine_learning/multilayer_perceptron_classifier.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
sklearn.neural_network
import
MLPClassifier
2
3
X = [[0.0, 0.0], [1.0, 1.0], [1.0, 0.0], [0.0, 1.0]]
4
y = [0, 1, 0, 0]
Callers
nothing calls this directly
Calls
2
fit
Method · 0.45
predict
Method · 0.45
Tested by
no test coverage detected