I was trying the rulefit implemenatation in caret using the pre() function for a classification task. I used the below command to train the model
fit = pre(output~.,data=train)
I presume that the fit object created is a model, which has 'rules and original features' as its predictors and can be used in predicting on test data.
I am not clear on how to use this model to predict the output on the test data.
I tried the predict command predict(fit,test_data) to predict on test_data, the result that get is numeric vector, which has values ranging from .9 to 1.9
It would be helpful if someone can guide me on this.I would like if the fit object created is a model, and if yes how to use that to predict on testdata
Regards, JJ