mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-02-04 11:27:12 +08:00
Fixed typo in training method
This commit is contained in:
@@ -25,7 +25,7 @@ class Perceptron:
|
||||
self.col_sample = len(sample[0])
|
||||
self.weight = []
|
||||
|
||||
def trannig(self):
|
||||
def trainnig(self):
|
||||
for sample in self.sample:
|
||||
sample.insert(0, self.bias)
|
||||
|
||||
@@ -121,4 +121,4 @@ while True:
|
||||
sample = []
|
||||
for i in range(3):
|
||||
sample.insert(i, float(input('value: ')))
|
||||
network.sort(sample)
|
||||
network.sort(sample)
|
||||
|
||||
Reference in New Issue
Block a user