A single fit function
single.fit(training.data, testing.data, dep, indep, classifier = "lr", classifier.params = list(rf.ntree = 100, rf.mtry = NULL, c5.0.trials = 40, c5.0.rules = TRUE, c5.0.winnow = FALSE, nb.fL = 0, nb.adjust = 1, svm.gamma = NULL, svm.cost = 1), params.tuning = F, prob.threshold = 0.5)
training.data | a dataframe for training data |
---|---|
testing.data | a dataframe for testing data |
dep | a character for dependent variable |
indep | a vector of characters for independent variables |
classifier | a character for classifier techniques, i.e., lr, rf, c5.0, nb, and svm |
classifier.params | a list of parameters for an input classifier technique |
params.tuning | a boolean indicates whether to perform parameters tuning |
prob.threshold | a numeric for probability threshold (default: 0.5) |