I am doing research on applying a genetic algorithm to binary logistic regression. I have a few questions to be clarified. Can you please help me?
Can I use AIC or BIC as the fitness function in the GA? (I used them and results show that GA is more accurate than the traditional binary logistic model. However, I found that in most of the papers, they used AUC as the fitness function)
I tried GA using AUC as the fitness function according to this paper (http://atm.amegroups.com/article/view/18292/html) and it gives following error. Can you create a small reproducible example to overcome this problem?
Error in model.frame.default(formula = as.numeric(tey) ~ predict.glm(trm, : variable lengths differ (found for 'predict.glm(trm, newdata = ted, type = "response")')
In the galgo package, the cost function can be custom-defined. Can you run the program as described in the paper? For example, you can define AUC as your goal; and you use neural network for the prediction the following code can help:
you can adapt the model by modify this chunk: trm <- nnet::nnet(try ~ ., data = cbind(trd,try=try),trace=F, size = 5)