Software for feed-forward neural networks with a single hidden layer, and for multinomial log-linear models.
Questions tagged [nnet]
167 questions
2
votes
0 answers
Is there a way to get the standard errors for a multinomial logistic regression model using ggpreeict
Is there a way to use ggpredict and get the standard errors (or confidence intervals) for predicted probabilities of a multinomial logistic regression model using multinom and ggpredict? Thank you.
var1<-sample(c('A', 'B', 'C'), size=1000,…

spindoctor
- 1,719
- 1
- 18
- 42
2
votes
1 answer
How to perform sensitivity analysis using Lek's profile in R?
I am trying to do sensitivity analysis using R. My data set has few continuous explanatory variables and a categorical response variable (7 categories).
I tried to run the below mentioned code.
model=train(factor(mode)~Time+Cost+Age+Income,
…

Gulnaz
- 21
- 2
2
votes
1 answer
How to prepare variables for nnet classification/predict in R?
In the classification I use the variable x as the value and y as the labels. As here in the example for randomForest:
iris_train_values <- iris[,c(1:4)]
iris_train_labels <- iris[,5]
model_RF <- randomForest(x = iris_train_values, y =…

Rick_H
- 77
- 6
2
votes
1 answer
could not find function "multinom" nnet error + stargazer problem
I am trying to run the following multinomial regression specified as follows and get the table as an html through stargazer:
ml1 <- multinom(as.factor(stabgroupsTH) ~ factor(pre_stab_group2) + factor(educ2) + agesup + black + male + mhd +…

skol
- 21
- 2
2
votes
0 answers
Why would R's nnet return different neural nets on Windows versus Linux?
Our research department has created a Shiny app that allows a user to get an event's probability based on selected criteria. It is based on a neural net created at the beginning of the script using the nnet library. I've set up a basic Shiny Server…

Craig Saboe
- 159
- 1
- 1
- 8
2
votes
1 answer
predictions from nnet::multinom
I'm probably just missing something silly here but I can't seem to manually replicate the predicted values from this model. I'm following this example
library('foreign')
library('nnet')
library('tidyverse')
ml <-…

svenhalvorson
- 1,090
- 8
- 21
2
votes
1 answer
Why does nnet give different output when I increase maxit and how to optimize the maxit value?
I am using the caret package with nnet method. I get different results when I change maxit parameter from 300 to 500. My understanding is, if maxit is increased, the model will undergo maximum of "n" iterations to find the local minima.
In my case,…

Yuva
- 21
- 2
2
votes
1 answer
In R, how can I compute the summary function in parallel?
I have a huge dataset. I computed the multinomial regression by multinom in nnet package.
mylogit<- multinom(to ~ RealAge, mydata)
It takes 10 minutes. But when I use summary function to compute the coefficient
it takes more than 1 day!!!
This is…

Somayeh Ghazalbash
- 65
- 5
2
votes
2 answers
Caret on R spills "unable to find variable "optimismBoot"" error message
I have been testing caret on R to test neural network features.
As I run the script below, it was working correctly, this has been starting outputting "unable to find variable "optimismBoot".
library(doParallel)
cl <-…

tensor5375
- 126
- 1
- 9
2
votes
1 answer
Summary function extremely slow with nnet's multinom compared to regression function
I'm using the multinom() function in the nnet package. My data has a little over a million rows and 4 independent variables. The multinom() function itself creates a model within ~15 minutes, and I can view coefficients.
I need to access them as an…

Nicholas Hassan
- 949
- 2
- 10
- 27
2
votes
3 answers
no applicable method for 'train' applied to an object of class "data.frame"
I'm following the book 'R deep learning essentials:by Dr.Joshua'
In ch2, 22page , there's a code following
set.seed(1234)
digits.m1 <- train(digits.X, digits.y,
method = "nnet",
tuneGrid = expand.grid(
.size = c(5),
…

raccoonjin
- 217
- 1
- 5
- 12
2
votes
1 answer
Broom::tidy error with dataframe of nnet::multinom models
I am generating multinom models using nnet, with a model fitted for each city in the dataset. When I attempt to use tidy with these models, I get the following error:
Error in probs[i, -1, drop = FALSE] : subscript out of bounds
However, if I…

nofunsally
- 2,051
- 6
- 35
- 53
2
votes
1 answer
Failed to train a nnet classification model with linout=T?
I am using the package caret to train a nnet classification model. The default sigmoid(logistic) transfer function works well. I was trying to use linear transfer function to do some comparisons. But I got an error.
The interesting thing I found…

Leon
- 21
- 1
- 2
2
votes
1 answer
How do I evaluate multiple models using the CARET package?
I want to use the CARET and nnet packages in order to predict survival/death for the Titanic data set. I would like to fit 20 neural networks each with 1 hidden node, 2 hidden nodes, ... 20 hidden nodes. Typically the CARET package will select the…

mmmmmmmmmm
- 435
- 1
- 3
- 9
2
votes
1 answer
Caret Error Using Train: "Something is wrong; all the RMSE metric values are missing"
I'm trying to train a neural network model using the Caret package in R and encountered an error message regarding missing RMSE metric values. Has anyone come across this error before?
Below is a sample of my code and the error message received:…

dts86
- 401
- 7
- 17