When I type in the following code from the project, i get an output for the decision_function() of [-2, 2, 0]. This would mean the boundary line runs through 2 of my points and is also inconsistent with the code walkthrough. What did I type incorrectly?
from sklearn.linear_model import Perceptron
import matplotlib.pyplot as plt
import numpy as np
from itertools import product
Just working through the project where it’s supposed to help visualize where the decision boundary line would be. Only problem is that the way I’ve coded it, the decision boundary runs through 2 of the 3 “negative” decision points