Я рассчитывал на поворот ... это могло бы сработать ...!
Окружить блок нейронная сеть командами раковина … как следует….
fileName <- file(paste0('neuralnet.log'), "w")
a <- seq(1:1000)
b <- a*2
tds <- cbind(a, b)
colnames(tds) <- c('a', 'b')
sink(summary(fileName)$description, append = TRUE) # Direct all output to file
net.sqrt <- neuralnet(b ~ a, tds, hidden=1, threshold=1, stepmax=1e5, rep = 3, startweights = NULL,
learningrate.limit = NULL,
learningrate.factor = list(minus = 0.5, plus = 1.2),
learningrate=NULL, lifesign = "full",
lifesign.step = 1000,
algorithm = c("rprop+"),
err.fct = "sse", act.fct = "logistic",
linear.output = TRUE, exclude = NULL,
constant.weights = NULL, likelihood = FALSE)
sink() # Turn off buffing to file
close(fileName)
если у вас есть лучшее решение ... ценим ваше мнение ...