We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723908e commit fe4b10eCopy full SHA for fe4b10e
1 file changed
machine_learning/perceptron.py
@@ -41,7 +41,7 @@ def __init__(self, learning_rate: float = 0.01, epochs: int = 1000) -> None:
41
self.epochs = epochs
42
self.weights = np.zeros(1)
43
self.bias = 0.0
44
- self.errors = []
+ self.errors: list[int] = []
45
46
def fit(self, samples: np.ndarray, y: np.ndarray) -> "Perceptron":
47
"""
0 commit comments