XOR PROBLEM CHAPTER 13 #234
FPaoloMigl
started this conversation in
General
Replies: 1 comment 3 replies
-
|
Hi @SBanditaDas, thank you for you response. In the XOR problem I used a NN with 2 hidden layers with dimension: 2 x 4 and 4 x 4 respectively and then the output layer: 4 x 1 as specified in the book. This is my process to create the XOR problem:
I attached the notebook file This is the output:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody, I am reading "Machine Learning with PyTorch" and I was trying the code about the XOR problem. However I noticed that if I try to run the code in the section "Making model building more flexible with nn.Module" it doesn't learn the pattern from the data to separate it correctly.
It works if before you run the neural network with two layers using Sequential class.
Here the output I get.
Do you also have the same problem?
Beta Was this translation helpful? Give feedback.
All reactions