mypractical 0.1.0
“College practical programs, importable and exportable as standalone .py files”
Module built on the numeric Python stackImports the NumPy array library
SHA-256df0f34ab72897b2ad43716e6cf8645ad42a891f378e2791a0c4f3cf38597fd2a
MaleculeH₂(Db₂F)
Evidence
⋯8 lines
9
10_CODE = '''\
11import numpy as np
12
13class Perceptron:
14 def __init__(self, input_size, learning_rate=1):
15 self.weights = np.zeros(input_size)
16 self.bias = 0
17 self.learning_rate = learning_rate
⋯26 lines
44 break
45
46inputs = np.array([[1, 1], [1, -1], [-1, 1], [-1, -1]])
47targets = np.array([1, -1, -1, -1])
48perceptron = Perceptron(input_size=2)
No evidence locations were recorded for this file. Raw result