From 35308bdfaf8b3611ef3a7b597be411a3e7f1f3c2 Mon Sep 17 00:00:00 2001 From: Rafa leyva Date: Sun, 7 Oct 2018 17:02:03 +0200 Subject: [PATCH 1/2] Fixed typo in training method --- Neural_Network/perceptron.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Neural_Network/perceptron.py b/Neural_Network/perceptron.py index 8ac3e8fc6..7856ebb9d 100644 --- a/Neural_Network/perceptron.py +++ b/Neural_Network/perceptron.py @@ -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) \ No newline at end of file + network.sort(sample) From b9a5c221aa9bb5e630a60475b72a02e54ab28b27 Mon Sep 17 00:00:00 2001 From: Harshil Date: Wed, 10 Oct 2018 20:05:59 +0200 Subject: [PATCH 2/2] Update perceptron.py --- Neural_Network/perceptron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Neural_Network/perceptron.py b/Neural_Network/perceptron.py index 7856ebb9d..44c98e29c 100644 --- a/Neural_Network/perceptron.py +++ b/Neural_Network/perceptron.py @@ -25,7 +25,7 @@ class Perceptron: self.col_sample = len(sample[0]) self.weight = [] - def trainnig(self): + def training(self): for sample in self.sample: sample.insert(0, self.bias)