Description Usage Arguments Examples
This function is a helper function to do create a LightGBM dataset for LauraeML during a training iteration of the optimizer.
| 1 | LauraeML_utils.lgb_data(data, fold, label, is_train)
 | 
| data | Type: data.table. The data features. Comes from  | 
| fold | Type: vector (numeric). The observation rows to keep/remove. Comes from  | 
| label | Type: vector (numeric). The labels. Comes from  | 
| is_train | Type: logical. Whether the fold refers to testing data ( | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run: 
for (i in 1:5) {
  # First we create the training data
  temp_train <- LauraeML_utils.lgb_data(data = mini_data,
                                        fold = folds[[i]],
                                        label = label,
                                        is_train = TRUE)
  # Second we create the testing data
  temp_test <- LauraeML_utils.lgb_data(data = mini_data,
                                       fold = folds[[i]],
                                       label = label,
                                       is_train = FALSE)
}
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.