Hi Baki, This should be a different issue. It looks like there is no problem in the R terminal. Does the crash happen every time when you run the code in RStudio? If so, this should be a bug in RStudio and you need to consult RStudio's mailing list as R and RStudio are maintained by different teams.
Best, Jiefei On Mon, Mar 22, 2021 at 12:57 AM Baki UNAL <bakiu...@yahoo.com> wrote: > Hi Jiefei > > I run the code below in RGui > > > nn2 <- nnet(TQ~.,data = train, size=c(15,15), linout=T, MaxNWts =4000, > maxit=2000) > > But I got the following output: > > # weights: 435 > initial value 55650.887782 > final value 55650.887782 > converged > > Program early converged. Program didn't any calculations. > > Best, > Baki > > On Sunday, March 21, 2021, 07:35:31 PM GMT+3, Jiefei Wang < > szwj...@gmail.com> wrote: > > > Hi Baki, > > Perhaps out of memory? Would you be able to run your code through the R > terminal? It probably can give us more information to debug the issue. > > Best, > Jiefei > > On Mon, Mar 22, 2021 at 12:23 AM Baki UNAL via R-help < > r-help@r-project.org> wrote: > > Hi, > I tried to train a neural network with following code: > nn2 <- nnet(TQ~.,data = train, size=c(15,15), linout=T, MaxNWts =4000, > maxit=2000) > > When I executed the code R studio crashed with following error: > "R Session Aborted > R encountered a fatal error. > The session was terminated. > Start new session" > When I set the hidden layer as c(15) as below the code works fine. > nn2 <- nnet(TQ~.,data = train, size=c(15), linout=T, MaxNWts =4000, > maxit=2000) > > What could be the problem? > > Best regards. > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.