New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Length of weights #58
Comments
I have received the same error message for the The error message occurs if both test data and weights are included as input, and there is no option for test data weights. Also, I assume outputs such as $train and $test are not weighted? Perhaps this is not an issue if weights are not included in the dbarts function, and then before each time I run sampler1$run(), I set the weights
The test weights are presumably unnecessary because they have no impact on the fitted model or test predictions? Here is a reproducible example.
This produces the message
However, if the test data has the same length as the training data the following error occurs:
Here is a reproducible example of the second error message:
|
I'm opening this issue to get more clarity about #57.
Whenever both
test
andweights
are specified in bart2 I get the following error:Error in model.frame.default(formula = as.formula("price ~ ."), data = train_data, : variable lengths differ (found for '(weights)')
However, I am unclear as to what length the weights vector should be. All three attempts below generate the same error.
The only time it works is when train_data == test_data. I'm likely just misunderstanding something basic but I'm not clear where I'm going wrong.
The text was updated successfully, but these errors were encountered: