Skip to content

Commit 27ea8b8

Browse files
authored
Merge pull request TheAlgorithms#436 from rafaelleru/master
Fixed typo in training method
2 parents 7da2265 + b9a5c22 commit 27ea8b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Neural_Network/perceptron.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, sample, exit, learn_rate=0.01, epoch_number=1000, bias=-1):
2525
self.col_sample = len(sample[0])
2626
self.weight = []
2727

28-
def trannig(self):
28+
def training(self):
2929
for sample in self.sample:
3030
sample.insert(0, self.bias)
3131

@@ -121,4 +121,4 @@ def sign(self, u):
121121
sample = []
122122
for i in range(3):
123123
sample.insert(i, float(input('value: ')))
124-
network.sort(sample)
124+
network.sort(sample)

0 commit comments

Comments
 (0)