Perception logic gate

wondering why im getting an error here

data=[["0,0],[0,1], [1,1], [1,0"]]

labels= [0]  ,[0] , [1] ,  [0]

plt.scatter=([point[0]for point in data],
[point[1]for point in data],            c=labels)

plt.show()

classifier=perceptron(max_iter=40)
classifier.fit=(data,labels)
print(classifer.score(data,labels))
plt.show

File “script.py”, line 12
[point[1]for point in data], c=labels)
^
SyntaxError: invalid syntax

Can we see the rest of your code? It looks like there are multiple issues here but it’s hard to diagnose without context.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.