set.seed(1234)
Var1 <- runif(50, 0, 100)
sqrt.data <- data.frame(Var1, Sqrt=sqrt(Var1))
model <- elmtrain.formula(Sqrt~Var1, data=sqrt.data, nhid=10, actfun="sig")
print(model)
## The function is currently defined as
function (x, ...)
{
cat("Call:\n")
cat(paste(x$call, "\n"))
cat("Number of hidden neurons:\n")
cat(paste(x$nhid, "\n"))
cat("Activation function:\n")
cat(paste(x$actfun, "\n"))
cat("Input arc weights:\n")
cat(paste(head(x$inpweight), "...\n"))
cat("Bias of hidden neurons:\n")
cat(paste(head(x$biashid), "...\n"))
cat("Output arc weights:\n")
cat(paste(head(x$outweight), "...\n"))
cat("Predictions on training set:\n")
cat(paste(head(fitted(x)), "...\n"))
}
Run the code above in your browser using DataLab