Skip to content

C5.0_train is a wrapper for the C5.0() function in the C50 package that fits tree-based models where all of the model arguments are in the main function.


C5.0_train(x, y, weights = NULL, trials = 15, minCases = 2, sample = 0, ...)



A data frame or matrix of predictors.


A factor vector with 2 or more levels


An optional numeric vector of case weights. Note that the data used for the case weights will not be used as a splitting variable in the model (see for Quinlan's notes on case weights).


An integer specifying the number of boosting iterations. A value of one indicates that a single model is used.


An integer for the smallest number of samples that must be put in at least two of the splits.


A value between (0, .999) that specifies the random proportion of the data should be used to train the model. By default, all the samples are used for model training. Samples not used for training are used to evaluate the accuracy of the model in the printed output. A value of zero means that all the training data are used.


Other arguments to pass.


A fitted C5.0 model.