Questions tagged [nnet]

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

167 questions
0
votes
0 answers

Improving the accuracy of model in R

I have the following dataset . The outcome variable is State which is of 3 types.The variables and sample data are as follows: No. Var2 Var3 Var4 Var5 Var6 Var7 Var8 Var9 Var10 Var11 State 297 middle a NA …
shan
  • 553
  • 2
  • 9
  • 25
0
votes
0 answers

How to evaluate a multi-class classification model in R?

I am currently doing a project in college. Evaluating the KDD 99 set using Neural Network. I am using nnet in R library. However, the KDD 99 have 23 types of attack, my net is learning to classify it. How can I evaluate the accuracy of it? I mean a…
Michelle Tan
  • 385
  • 4
  • 10
0
votes
1 answer

How can I pass a weight decay argument to mlogit()?

How can I specify weight decay in a model fit by the mlogit? The multinom() function of nnet allows you to specify weight decay for the model that is being fit, and mlogit uses this function behind the scenes to fit its models so I imagine that it…
Johan Larsson
  • 3,496
  • 18
  • 34
0
votes
1 answer

How to change standardized predicted values of neural network into un standard values?

I used nnet package in R to train the neural network and make prediction. At first, because the output values were large, i used the formula (x-xmin)/(xmax-xmin) to standardize them in range of 0 to 1. After training the network, i predicted the…
gh b
  • 1
  • 1
0
votes
1 answer

R: caret and nnet Error with big data

i've a problem. I've a dataset a lot of features. When i try to perform my nnet with caret R give me back an error. If i try to perform a smaller part of the features, nnet converge. Here is my code: > dim(trainT) [1] 130 3413 > nnFit <-…
youngz
  • 179
  • 2
  • 16
0
votes
1 answer

NNet simple modeling

I'm trying to do simple neural network modelling, but the NNet result gives me poor result. It is simply ' output = 0.5 x input ' model that I want nnet model to learn, but the prediction shows all '1' as a result. What is wrong?…
Rbeginner
  • 3
  • 1
0
votes
1 answer

R caret nnet package

I have two R objects as below. matrix "datamatrix" - 200 rows and 494 columns: these are my x variables dataframe Y. Y$V1 is my Y variable. I have converted column V1 to a factor I am building a classification model. I want to build a neural network…
user2543622
  • 5,760
  • 25
  • 91
  • 159
0
votes
1 answer

What does R's class.ind() function do and when would I use it?

R documentation says that nnet::class.ind() generates a class indicator function from a given factor. Does it convert a factor to some binary classification? When and why do we use this function? Please give me some examples. Any help…
user4745212
  • 51
  • 1
  • 3
  • 11
0
votes
1 answer

Getting different predicted values of time series every time I re-train a neural network on R

I'm trying to fit some data with the package nnet on R. After I train the neural network, I want to predict some values, but if I re-train the net and predict again, I get significant different values. Here's a reproducible code to copy/paste and…
Makondo
  • 343
  • 4
  • 16
0
votes
1 answer

How can I see the weights and bias of a nnet trained with caret?

I need the weights and bias values for each node of a regression neural network trained with nnet in caret. Is possible to export this values to a csv?
Versage
  • 58
  • 9
0
votes
1 answer

R, Multinomial Regression: How to Find Conditional Probabilities?

In R, given a multinomial linear logit regression, I would need to obtain the conditional probability given some values of the predictors. For example, using the function multinom from the package nnet, imagine to have computed fit <-…
Pippo
  • 1,543
  • 3
  • 21
  • 40
0
votes
1 answer

R - nnet with a simple example of 2 classes with 2 variables

I am using nnet for the first time, played with the basic examples found on the web, but cannot make out its output with a dummy toy data set. That a simple discrimination of two classes (signal and background) using 2 variables normally…
Xavier Prudent
  • 1,570
  • 3
  • 25
  • 54
0
votes
1 answer

stock price prediction by using nnet

stock<-structure(list(week = c(1L, 2L, 5L, 2L, 3L, 4L, 3L, 2L, 1L, 5L, 1L, 3L, 2L, 4L, 3L, 4L, 2L, 3L, 1L, 4L, 3L), close_price = c(774000L, 852000L, 906000L, 870000L, 1049000L, 941000L, 876000L, 874000L, 909000L,…
user3027252
0
votes
2 answers

How use Rminer and nnet

I'm new programmer in R and i'm writing my thesis for training a neural network. First i use rminer for datamining and after nnet for training. Now i don't know which function use for divide data-set in training set and validation set, therefore…
Francesco
  • 69
  • 1
  • 5
0
votes
1 answer

How to perform linear/logistic regression on predictions of different models (say randomforest, gbm, svm etc)?

Basically it is done to improve the predictions by creating an ensemble. But how do we do that. Could somebody please explain using a sample code in R? I am just a learner. Any help would greatly be appreciated. Thank you.
user2409011
1 2 3
11
12