DEV Community

Discussion on: Dann.js - Teaching a Neural Network how to predict San Francisco house prices

Collapse
tobiadiks profile image
tobiadiks

Thank you for this breakdown.
I'll like to ask what this line does.

nn.outputActivation('sigmoid')

Collapse
matiasvlevi profile image
Matias Vazquez-Levi

It sets the activation function of the output to sigmoid. By default, activation functions are set to sigmoid thus this doesn't change anything other than confirming we have an output activation set to sigmoid.

Collapse
tobiadiks profile image
tobiadiks

Thank you.