Skip to content

Commit fe4b10e

Browse files
committed
add: Perceptron algorithm in machine_learning
1 parent 723908e commit fe4b10e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

machine_learning/perceptron.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(self, learning_rate: float = 0.01, epochs: int = 1000) -> None:
4141
self.epochs = epochs
4242
self.weights = np.zeros(1)
4343
self.bias = 0.0
44-
self.errors = []
44+
self.errors: list[int] = []
4545

4646
def fit(self, samples: np.ndarray, y: np.ndarray) -> "Perceptron":
4747
"""

0 commit comments

Comments
 (0)