View source: R/predict_trait_MET_cv.R
predict_trait_MET_cv | R Documentation |
Implement trait prediction based on SNP and environmental data with selection of prediction methods among Machine Learning approaches. This function should be used to assess the predictive ability according to a cross-validation scheme determined by the user.
predict_trait_MET_cv(
METData,
trait,
prediction_method,
lat_lon_included = F,
year_included = F,
location_included = T,
cv_type = "cv0",
cv0_type = "leave-one-environment-out",
nb_folds_cv1 = 5,
repeats_cv1 = 50,
nb_folds_cv2 = 5,
repeats_cv2 = 50,
nb_folds_cv00 = 5,
include_env_predictors = T,
list_env_predictors = NULL,
use_selected_markers = F,
list_selected_markers_manual = NULL,
seed = NULL,
save_splits = F,
save_processing = F,
path_folder,
save_model = F,
...
)
METData |
|
trait |
|
prediction_method |
|
lat_lon_included |
|
year_included |
|
location_included |
|
cv_type |
A |
cv0_type |
A |
nb_folds_cv1 |
A |
repeats_cv1 |
A |
nb_folds_cv2 |
A |
repeats_cv2 |
A |
include_env_predictors |
A |
list_env_predictors |
A |
use_selected_markers |
A |
seed |
|
save_splits |
A |
save_processing |
a |
path_folder |
a |
save_model |
a |
... |
Arguments passed to the |
A list
object of class met_cv
with the following items:
list
of res_fitted_split
elements.
The length of this list corresponds to the number of training/test set
partitions.
integer
Seed used to generate the
cross-validation splits.
integer
Seed used to generate the
cross-validation splits.
Cathy C. Westhues cathy.jubin@hotmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.