Questions tagged [bartmachine]

10 questions
4
votes
0 answers

Problem with java in r script on Google colab

Please excuse me if I ask the question in an incorrect format, it is my first time posting here: I am trying to run a model build a model primarily using the bartMachine package on r. I was able to run the script successfully when I had access to a…
Sean
  • 119
  • 6
3
votes
1 answer

Fitting bartMachine in Caret getting argument of length zero/Incorrect Number of dimensions

I am trying to model a good example of bartMachine usage in Caret, and I can't seem to model a bartMachine with Caret correctly, can anyone tell me, what is exactly the main error means? or is there a simple reproducible code for BART Modeling? Here…
Jovan
  • 763
  • 7
  • 26
1
vote
0 answers

Having problems with rJava on macOS

So I tried to install the package bartMachine in R-studio, which installs the dependency rJava... however, I'm having difficulties getting rJava to work on my macOS. This question has been asked multiple times but none of the solutions seem to work…
Electrino
  • 2,636
  • 3
  • 18
  • 40
1
vote
1 answer

Specify options for final model only with caret

Context I am using caret to fit and tune models. Typically, the best parameters are found using a resampling method such as cross-validation. Once the best parameters are chosen, a final model is fitted to the whole training data using the best set…
asachet
  • 6,620
  • 2
  • 30
  • 74
0
votes
0 answers

I am looking for solution to problematic response variable data structure in Bart Machine Modeling

so I have an excel dataset, which I have attached. And I am trying to train a Bart model, to assess predictors of covid-19 incidence. To do this I ran the following code, after making some transformations on the excel data variables. The model is…
0
votes
1 answer

Error when using predict on bartmachine object

I am writing the following script: #options(java.parameters = "-Xmx50000m") library(bartMachine) library(tidyverse) data <- data.frame(x=rnorm(100, 5, 2), z=rnorm(100, 1, 0.5), y=as.factor(rep(c("a", "b"),…
EML
  • 615
  • 4
  • 14
0
votes
0 answers

bartMachine serialize compatibility between CPUs

When using bartMachine, if I create the bart model on one machine with serialize = TRUE bart <- bartMachine(X, Y, k = 2, num_trees = 50, use_missing_data = TRUE, …
bmacwilliams
  • 165
  • 6
0
votes
0 answers

Something is wrong; all the ROC metric values are missing (bartMachine R)

when fitting a BART model via bartMachine package I get the title error. Here is the code and dput: #Response must be a factor train$occ <- as.factor(train$occ) levels(train$occ) <- c("C0", "C1") #Creating a…
hiperhiper
  • 331
  • 1
  • 9
0
votes
1 answer

Using bartCause package to predict uplift

I'm trying to use the bartCause package to build an uplift model in R. Unfortunately I have trouble to integrate the data frame in the right way - error message: $<-.data.frame`(`*tmp*`, "lift", value = c(0.159231848781688, : replacement has 160…
Marcel
  • 1
  • 1
0
votes
0 answers

bartMachine builds up memory usage when executed repeatedly

I have made the observation that bartMachine in R builds up memory usage when executed repeatedly. To illustrate: options(java.parameters = "-Xmx8g") library(bartMachine) data(iris) iris2 = iris[51:150,] iris2$Species =…
tomka
  • 2,516
  • 7
  • 31
  • 45