Skip to content

fix bug in embarcadero::partial()#40

Open
jmenblaz wants to merge 1 commit into
cjcarlson:masterfrom
jmenblaz:fix_partial_function
Open

fix bug in embarcadero::partial()#40
jmenblaz wants to merge 1 commit into
cjcarlson:masterfrom
jmenblaz:fix_partial_function

Conversation

@jmenblaz
Copy link
Copy Markdown

Current version of the function partial doesn't work with Random Intercept BART models. Checking the code of the function the step pd <- pdbart(model, xind = x.vars, levs = lev, pl=FALSE) use the model object (bart, rbart...) itself. However, using rbart as an input of the step return error: x.train must be a matrix, data.frame, formula, fitted bart model, or dbartsSampler.

Changing the input object, fitobj (created previously) for model object works properly for both, bart and rbart models.

I will check the same for other function (spartials(), etc) and make the PR then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant