nikunj patel
2010-May-17 09:56 UTC
[R] How to Use NeuralNet method for classification problem?
Dear R Users, I want to use the NeuralNet package to build a classification model. Response variable in my data is either "NS" or "S" (Dichotomous). I am not able to find a way to specify response variable as categorical in NeuralNet. I have changed the "NS" and "S" to 1 and 0 and supplied to Nueralnet. It is producing the result. However, the predicted response is a continuous variable between 0 and 1 (For example 0.922654 or 0.00123). Is this prediction value a probability of that record to fall into class 1? Can I use a cut off of 0.5 to allocate the particular record as class 1 or 0 as I do in logistic regression model? I would like to know if there is a way to specify the response as categorical variable and directly obtain the output as "NS" or "S". I appreciate any help in this regard. -- Nikunj [[alternative HTML version deleted]]