Software for feed-forward neural networks with a single hidden layer, and for multinomial log-linear models.
Questions tagged [nnet]
167 questions
1
vote
0 answers
Remove stargazer column from table
I want to make a table of a multinomial logit model with {stargazer}.
library(dplyr)
library(nnet)
# create sample data
data <- tibble(
choice = rep(c("strawberry", "mango", "orange"), 100),
likes_kiwi = rbinom(300, size = 1, prob = 0.3),
…

Balthasar
- 197
- 2
- 14
1
vote
0 answers
vif(): "Warning message: No intercept: vifs may not be sensible." Trying to check multicollinearity with multinomial logistic regression
I am trying to create a multinomial logistic regression model using nnet::multinom(). I have 2 independent variables (numeric from 0 to 10) and a dependent variable (factor with 4 levels 1,2,3,4).
The problem is that when checking for…

Mari
- 53
- 7
1
vote
1 answer
(Why) are standard errors from nnet::multinom scale dependent?
I have noticed that when I increase the scale of a predictor in a multinom() model (function is from nnet R package) the standard errors of other predictors and the intercept approach 0. Can someone tell my why that is? Feel like I'm overlooking…

jhfodr76
- 95
- 1
- 7
1
vote
1 answer
Cross-validating multiple Neural Networks with varying size of the single hidden layer in R
I have to use a cross-validation to find out how many neurons the single hidden layer of my model should include (using the nnet package). I must write a function in R that takes the data, model, and a parameter n as inputs, and computes the model…

Marc-Marijn
- 151
- 9
1
vote
1 answer
How can I add a title to multiclass.roc plots in pROC?
I have a multinomial model constructed with nnet:multinom of 5 classes for 26 variables:
mirna_multinom_0 = multinom(formula_0, data= clase_training, maxit=10000 )
And then I create my ROCS with:
multiclass.roc(clase_training$clase,…

Galpaccru
- 57
- 12
1
vote
0 answers
Interpreting variable importance for multinomial logistic regression - `nnet::multinom()` and `caret::varImp()`
I am trying to calculate and interpret the variable importance of a multinomial logistic regression I built using the multinom() function from the {nnet} R package. I want to measure the variable importance of each predictor variable contributing to…

cyun
- 95
- 1
- 2
- 7
1
vote
1 answer
Reverse engineer multinomial logistic regression data
I am working on a multinomial logistic regression problem (i.e., where I want to classify some unordered, independent levels of a nominal outcome variable). My issue is that I know the levels of the outcome variable (in this example,…

kstew
- 1,104
- 6
- 21
1
vote
0 answers
Is the function nnet adapted for neural network with a text?
I am trying to make a neural network model to predict sentiment about a text.
I have a data frame BDD with 3 columns:
1) there are adjectives. The name of the column is "ADJ"
2) there are nouns. The name of the column is "NOUN"
3) It's 1 if…

MAHE
- 11
- 1
1
vote
2 answers
Multinomial stepwise forward selection
For my research I want to do multinomial logistic stepwise forward selection (despite its drawbacks). To do this I run the following example…

Luuk van Gasteren
- 111
- 1
- 9
1
vote
1 answer
How to compare different models using caret, tuning different parameters?
I'm trying to implement some functions to compare five different machine learning models to predict some values in a regression problem.
My intention is working on a suit of functions that could train the different codes and organize them in a suit…

Rafael-Pedrollo-de-Paes
- 35
- 1
- 8
1
vote
1 answer
Is an Averaged neural network (avNNet) the average from all iterations?
I have fitted an Averaged neural network in R with Caret. See code below. Does the term Averaged mean that the average is based on the outcomes of 1000 neural networks? (since there are 1000 iterations in this…

Marcel
- 115
- 2
- 15
1
vote
3 answers
Caret: There were missing values in resampled performance measures
I am running caret's neural network on the Bike Sharing dataset and I get the following error message:
In nominalTrainWorkflow(x = x, y = y, wts = weights, info = trainInfo,
: There were missing values in resampled performance measures.
I am…

Sunday
- 89
- 2
- 2
- 5
1
vote
0 answers
Using svm and nnet for satellite image classification
I'm trying to run a satellite image classification using Support Vector Machine (svmPoly) and Neural Network (nnet). When running the cross-validation, I get the desired outputs (i.e. a 6x6 confusion matrix) from both methods. When I run the…

Leon D
- 21
- 4
1
vote
0 answers
the package tsDyn NNET function
I am a new beginner in R, recently, I use the NNET function in the package of tsDyn, when I load two packages tidyquant and tsDyn simultaneously, there is a mistake when I just run the the code of examples in the package tsDyn. I don't how to solve…

Quinn
- 21
- 2
1
vote
0 answers
R_function Predict()_using a test sample_Error object 'Pred' not found
I implemented a neural network algorithm with a training sample. Now I want to calculate the prediction of the model on a test sample.
My R code is the following:
rn=nnet(resignation~., data=T5_training[,-1], entropy=TRUE,
size=5, decay=2,…

user9419032
- 13
- 3