Trying to use the neuralnet package in calculating the continuous output and apply it to my testset to calculate error rate.
However, my predicted output seems to be the same.
m1 <- neuralnet(SalaryNormalized ~ factor1 + factor2 + factor3,
data=GC_train, hidden=2, err.fct="sse", linear.output=TRUE,stepmax=1e6)
GC_test1<-GC_test
GC_test1$SalaryNormalized<-NULL
res$net.result
my results show all of the same value, I understand that scaling might be required when using continuous variables on the neuralnet package. Does my predicted variable requires scaling too?
res <- neuralnet::compute(m1, GC_test1)
testset.error <- GC_test$SalaryNormalized - res
Additionally, i tried to calculate the error and got this error
Error in GC_test$SalaryNormalized - res :
non-numeric argument to binary operator