0
$\begingroup$

I used bart function from BayesTree library to build a model on my training data. It fits my training data very well. However, I'm unable to predict for the test set and check its performance.

predict(model, test) Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "bart"

Please suggest a solution.

$\endgroup$

1 Answer 1

0
$\begingroup$

Issue has been solved using bartMachine() {bartMachine} which has an associated predict function (predict.bartMachine)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.