Update perceptron.py

This commit is contained in:
Harshil 2018-10-10 20:05:59 +02:00 committed by GitHub
parent 35308bdfaf
commit b9a5c221aa
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.col_sample = len(sample[0])
self.weight = [] self.weight = []
def trainnig(self): def training(self):
for sample in self.sample: for sample in self.sample:
sample.insert(0, self.bias) sample.insert(0, self.bias)