Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ get_simple_xor
Function
get_simple_xor
supervised_class/perceptron.py:24–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
22
23
24
def
get_simple_xor():
25
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
26
Y = np.array([0, 1, 1, 0])
27
return
X, Y
28
29
30
class
Perceptron:
Callers
1
perceptron.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected