Comments (3)
Thanks! Fixed in 6fc1a76.
from stan4bart.
Hi,
I was able to figure out what was wrong. As soon as I am able to fully test, I can provide you with the code snippet.
Best
Louis
from stan4bart.
Hey,
when you run the stan4bart
-model with chains = 1
, then the indiv.bart
object in the predict.stan4bartFit
does not fit to the
dimnames(indiv.bart) <- list(observation = NULL, sample = NULL, chain = NULL)
. Therefore I included before that:
if(length(dim(indiv.bart)) == 2){
dim(indiv.bart) <- c(dim(indiv.bart),1)
}
After including that, the prediction function is working properly, independent from the size of chains
in the stan4bart
call.
Best
Louis
from stan4bart.
Related Issues (12)
- Multilevel Bayesian Causal Forest
- Timeline for binary model? HOT 2
- Returning Trees HOT 3
- Setting Custom Prior HOT 2
- Var list changing size HOT 2
- extract(model, type = "varcount") not working HOT 1
- configure does not pick compiler from R settings HOT 3
- Additional families HOT 1
- Saving Model to a *.RData object HOT 1
- Feature Request: predict specific chains/iterations
- Predict function not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stan4bart.