library(MLFS)
data(data_tree_heights)
data(data_v3)
# A) Example with linear model
Crown_h_predictions <- crownHeight_prediction(df_fit = data_tree_heights,
df_predict = data_v3,
crownHeight_model = "lm",
site_vars = c(),
species_n_threshold = 100,
k = 10, blocked_cv = TRUE,
eval_model_crownHeight = TRUE)
predicted_df <- Crown_h_predictions$predicted_crownHeight # df with imputed heights
evaluation_df <- Crown_h_predictions$eval_crownHeight # df with evaluation results
# B) Example with non-linear BRNN model
Crown_h_predictions <- crownHeight_prediction(df_fit = data_tree_heights,
df_predict = data_v3,
crownHeight_model = "brnn",
BRNN_neurons = 3,
site_vars = c(),
species_n_threshold = 100,
k = 10, blocked_cv = TRUE,
eval_model_crownHeight = TRUE)
Run the code above in your browser using DataLab