mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update perceptron.py
This commit is contained in:
parent
35308bdfaf
commit
b9a5c221aa
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user