R - Logit
Logit - Generalized linear models; binomial
- Logit; 10 fold cross validation repeated 5 times.
set.seed(1000) # Needed for cross validation seeding.
start_time <- Sys.time() # Start timer
# Create model, 10X fold CV repeated 5X
tcontrol <- trainControl(method = "repeatedcv",
number = 10,
repeats = 5)
model_obj.1 <- train(Class ~ .,
data = training_set.1,
trControl = tcontrol,
method = "glm",
family = "binomial")
Sys.time() - start_time # End & Display time
Logit Summary
summary(model_obj.1)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.