search for: rawpredict

Displaying 1 result from an estimated 1 matches for "rawpredict".

Did you mean: napredict
2009 May 24
2
accuracy of a neural net
...t <- read.csv("file:///C:/dataForR/textsTweet1/cleanForPC.csv", na.strings=c(".", "NA", "", "?")) crs$nnet <- nnet(Value ~ ., data=crs$dataset[,c(1:22,922)], size=10, linout=TRUE, skip=TRUE, trace=FALSE, maxit=1000) targets=crs$dataset[,922] rawpredictions =predict(crs$nnet, crs$dataset[, c(1:22)], type="raw") roundedpredictions=round(rawpredictions[,1],digits = 0) trueAndPredicted=cbind(roundedpredictions, targets) howManyEqual=trueAndPredicted[,1]==trueAndPredicted[,2] sum(howManyEqual) samp <- c(sample(1:50,25), sample(51:100...