ForestDataset | R Documentation |
A dataset consists of three matrices / vectors: covariates, bases, and variance weights. Both the basis vector and variance weights are optional.
data_ptr
External pointer to a C++ ForestDataset class
new()
Create a new ForestDataset object.
ForestDataset$new(covariates, basis = NULL, variance_weights = NULL)
covariates
Matrix of covariates
basis
(Optional) Matrix of bases used to define a leaf regression
variance_weights
(Optional) Vector of observation-specific variance weights
A new ForestDataset
object.
update_basis()
Update basis matrix in a dataset
ForestDataset$update_basis(basis)
basis
Updated matrix of bases used to define a leaf regression
num_observations()
Return number of observations in a ForestDataset
object
ForestDataset$num_observations()
Observation count
num_covariates()
Return number of covariates in a ForestDataset
object
ForestDataset$num_covariates()
Covariate count
num_basis()
Return number of bases in a ForestDataset
object
ForestDataset$num_basis()
Basis count
has_basis()
Whether or not a dataset has a basis matrix
ForestDataset$has_basis()
True if basis matrix is loaded, false otherwise
has_variance_weights()
Whether or not a dataset has variance weights
ForestDataset$has_variance_weights()
True if variance weights are loaded, false otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.