I am currently discretizing my training set in R with discretize from the bnlearn package.library(bnlearn) discretize(train, method = quantile, breaks = 2)The lower bound of one interval and the upper bound of the other interval are the minimum and the maximum of the respective column.Executing the same command on the test setdiscretize(test, method = quantile, breaks = 2)will result in a different discretization, as the minimum and the maximum will likely be different on the test set. Is it possible in R (with another library or command) to transfer a discretization from a training set to a test set?Apparantly this is easy to do in Weka and Orange, however, I would prefer to do this in R (not using RWeka).
Using Discretization from Training Set on Test Set in R
machine learning;r;categorical data