-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
neural network hidden layers #11
Comments
Hi Matthias, I'm glad you're finding the book helpful! I think the confusion is between the number of hidden layers and the number Consider the diagram below. It has two hidden layers, but each hidden layer |
Hi, Oh I see, so it's the number of nodes in the one hidden layer.
Kind regards, |
Exactly, number of nodes in the one hidden layer.
|
Hi,
I read your eBook on Machine Learning which very well explains everything about linear regression, neural networks etc. It's really helpful.
I however had a question on the neural network implementation in Python (https://dafriedman97.github.io/mlbook/content/c7/construction.html).
For simplicity, the model has only 1 layer between input and output as stated in the beginning of the text.
What about the following line in the code then? -> ffnn.fit(X_boston_train, y_boston_train, n_hidden = 8)
n_hidden is set at 8. Can you exaggerate on this? What does n_hidden mean exactly and why is it set at 8 in this example?
Kind regards,
Matthias
The text was updated successfully, but these errors were encountered: