View source: R/train_model_indels.R
prepare_training_data_indels | R Documentation |
This function processes training data by selecting specific features and the observed values (obs) for genomic data, including nucleotide bases and indels (insertions 'I' and deletions 'D'). It then prepares this data for use in machine learning models, particularly those that require categorical data to be converted into a one-hot encoded format.
prepare_training_data_indels(training_data, model_features)
training_data |
A data frame containing the training data. |
model_features |
A vector of selected feature names to be used in the model. |
A list with two elements: features
containing the selected features
of the training data, and labels
containing the one-hot encoded labels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.