Questions tagged [nnet]

Software for feed-forward neural networks with a single hidden layer, and for multinomial log-linear models.

167 questions
31
votes
1 answer

Suppress convergence message in nnet multinom function in R

I am using knitr in R to produce a document of model outputs. I have suppressed messages and warnings in my code chunk. But I still get the convergence messages. I have looked for settings in the net package and in the multinom function. Does…
Mark Danese
  • 2,331
  • 1
  • 20
  • 25
22
votes
4 answers

I get error "Error in nnet.default(x, y, w, ...) : too many (77031) weights" while training neural networks

I am trying to train neural networks in R using package nnet. Following is the information about my training data. str(traindata) 'data.frame': 10327 obs. of 196 variables: $ stars : num 5 5 5 3.5 3.5 4.5 3.5 5 5 3.5…
Ayush Raj Singh
  • 863
  • 5
  • 16
  • 20
19
votes
1 answer

R: Tukey posthoc tests for nnet multinom multinomial fit to test for overall differences in multinomial distribution

I fitted a mutinomial model using nnet's multinom function using (in this case on data giving the diet preference of male and female and different size classes of alligators in different lakes)…
Tom Wenseleers
  • 7,535
  • 7
  • 63
  • 103
9
votes
1 answer

How to use size and decay in nnet

I am quite new to the neural network world so I ask for your understanding. I am generating some tests and thus I have a question about the parameters size and decay. I use the caret package and the method nnet. Example…
les
  • 93
  • 1
  • 1
  • 4
9
votes
1 answer

Using NNET for classification

I am new to neural networks and I have a question about classification with the nnet package. I have data which is a mixture of numeric and categoric variables. I wanted to make a win lose prediction by using nnet and a function call such as…
Kharoof
  • 597
  • 1
  • 6
  • 21
8
votes
1 answer

Specify Cross Validation Folds with caret

Hello and thanks in advance. I'm using caret to cross validate a neural-network from the nnet package. In the method parameter for the trainControl function I can specify my cross-validation type, but all of these choose the observations at random…
gtnbz2nyt
  • 1,465
  • 3
  • 17
  • 33
7
votes
0 answers

Getting "lazy load database corrupt" errors in R

I have had some problems with R recently. I was trying to install nnet which seemed not to be working. I followed the advice on this question and used remove.packages () and unloadNamespace() on 'car', 'effects' and 'sjPlot'. Problems trying to…
Ross M
  • 95
  • 1
  • 8
6
votes
2 answers

Caret Neural Network Error: "missing values in resampled performance measures"

I have seen other people with this error before, however, I have not found a satisfactory answer. I wonder if anyone can offer some insights into my problem? I have some car auction data which I am trying to model to predict the Hammer.Price. >…
Matthew Jackson
  • 199
  • 2
  • 12
5
votes
2 answers

How to get confidence intervals for predicted probability plot using {ggeffects} based on nnet::multinom() model?

I want to plot the predicted probabilities for a multinomial model in R, fitted with the nnet::multinom() function. I have numerical predictors on the log scale. Even though {ggeffects} should be compatible with multinom(), the plot does not display…
5
votes
1 answer

Understanding multinomial nnet

I am trying to understand the code behind nnet. I am currently getting different results when I split a multinomial factor in to the binary columns instead of using the formula method. library(nnet) set.seed(123) y <- class.ind(iris$Species) x <-…
cdeterman
  • 19,630
  • 7
  • 76
  • 100
5
votes
1 answer

R caret nnet stop criterion

I am using the caret package with the nnet method in a classification problem, and i would like to know what is the stop criterion used in nnet to stop the training to avoid over fitting. I have done some research and i found that in the RSNNS…
5
votes
1 answer

How to set specific contrasts in multinom() in nnet package?

I have a 3-class problem that needs classification. I want to use the multinomial logistic regression in nnet package. The Class outcome has 3 factors, P, Q, R. I want to treat Q as the base factor. So I tried to write it the contrasts like this: …
doctorate
  • 1,381
  • 1
  • 19
  • 43
4
votes
0 answers

caret package is not using all the registered cores, using 'nnet' method for training

I am using the train() function of caret package with method='nnet', and I have registered 6 cores using doMC. But it uses only one core. This is my code: library(caret) library(foreach) library(doMC) registerDoMC(cores = 6) .... some…
Abhishek
  • 3,337
  • 4
  • 32
  • 51
4
votes
1 answer

Binary output Neural Network in Python Theano

As part of a personal project I'm trying to modify the example code given in Theano documentation (Multilayer Perceptron) with my own data. Till now I managed to bring my own (text) data in the format required and I want to build a binary…
Stergios
  • 3,126
  • 6
  • 33
  • 55
4
votes
2 answers

Multinomial classification using neuralnet package

This question ought to be real simple. But the documentation isn't helping. I am using R. I must use the neuralnet package for a multinomial classification problem. All examples are for binomial or linear output. I could do some one-vs-all…
1
2 3
11 12