You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is the example from ?neuralnet
library(neuralnet)
nn <- neuralnet(Species == "setosa" ~ Petal.Length + Petal.Width, iris, linear.output = FALSE)
# The default error function is half of SSE, as seen here:
nn$err.fct
# function (x, y)
# {
# 1/2 * (y - x)^2
# }
# Now, let's specify this error function. We will use the exact same error function as the default:
my.err.fct = function (x, y)
{
1/2 * (y - x)^2
}
nn <- neuralnet(Species == "setosa" ~ Petal.Length + Petal.Width, iris, linear.output = FALSE,
err.fct = my.err.fct)
# error!
The text was updated successfully, but these errors were encountered:
Hello, I have encountered a similar problem, according to your answer to update the version, still unable to successfully build the neural network I need. Do you have related guidance documents to let me learn the details? Thanks very much.
The text was updated successfully, but these errors were encountered: