This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A "native" IPython R kernel in 15 lines of code. | |
This isn't a real native R kernel, just a quick and dirty hack to get the | |
basics running in a few lines of code. | |
Put this into your startup directory for a profile named 'rkernel' or somesuch, | |
and upon startup, the kernel will imitate an R one by simply prepending `%%R` | |
to every cell. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#BART (Bayesian Additive Regression Tree) Models | |
library(BayesTree) | |
trainingdata <- read.csv("Kaggle_training.csv") | |
testdata <- read.csv("sorted_test.csv") | |
soil_properties <- c("Ca", "P", "pH", "SOC", "Sand") | |
# CO2_bands <- 2656:2670 | |
names(trainingdata)[2656:2670] |