Merge pull request #436 from rafaelleru/master

Fixed typo in training method
This commit is contained in:
Harshil 2018-10-10 20:06:15 +02:00 committed by GitHub
commit 27ea8b89ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ class Perceptron:
self.col_sample = len(sample[0])
self.weight = []
def trannig(self):
def training(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)