Hi,
I was trying out one of the example in Chapter2, under title: Implementing an adaptive linear neuron in Python (Link to notebook).
The problem is when I plot decision boundaries, whole area is shown red.
When I change output = self.activation(X) to output = self.predict(X)inside fit function, the problem seems to be gone.
Is there an issue with the code or the code is correct and I made some other mistake while implementing?
Hi, I was trying out one of the example in
Chapter2
, under title: Implementing an adaptive linear neuron in Python (Link to notebook). The problem is when I plot decision boundaries, whole area is shown red.When I change
output = self.activation(X)
tooutput = self.predict(X)
insidefit
function, the problem seems to be gone.Is there an issue with the code or the code is correct and I made some other mistake while implementing?
Thanks Sohaib