XOR Model is very bad - what am I doing wrong?

Hi Dr. Noob!

You have a “hidden layer” with two “neurons.” I believe that this
does not have enough structure to capture XOR (and the quadratic
term embedded in it). Try adding a third hidden neuron:

		self.fc1 = nn.Linear (2, 3)
		self.fc2 = nn.Linear (3 ,1)

Please see this related post for some additional explanation:

Best.

K. Frank

1 Like