Hi, I am getting below error in Perceptron Neuron Module
in MPNeuron Class
TypeError Traceback (most recent call last)
<ipython-input-102-f5d991a79c52> in <module>()
1 mp_neuron = MPNeuron()
----> 2 mp_neuron.fit(X_binarised_train, Y_train)
<ipython-input-101-330dfbb8e4a7> in fit(self, X, Y)
22 accuracy[b] = accuracy_score(Y_pred, Y)
23
---> 24 best_b = max(accuracy, key = accuracy.get)
25 self.b = best_b
26
TypeError: 'float' object is not callable