evaluate_fitness.RdEvaluate the fitness of an individual
evaluate_fitness(
ind,
data,
target_col,
task = "classification",
cv_folds = 3,
evaluation_strategy = "cv",
split_ids = NULL,
shared_splits = NULL,
evaluator = "lightgbm",
fold_ids = NULL,
shared_folds = NULL,
shared_full = NULL,
state_cache = NULL,
threads = 8
)An evo_individual object.
A data.frame or data.table containing the dataset.
Name of the target column.
"classification" or "regression".
Number of cross-validation folds.
Character string, either "cv" (cross-validation) or "split" (train/validation split).
Optional vector of pre-defined split assignments (e.g. "train", "val", "holdout").
Optional list of shared data.table splits for in-place caching.
The ML model to use ("lightgbm" or "xgboost").
Optional vector of pre-defined fold assignments.
Optional list of shared data.table CV folds for in-place caching.
Optional data.table of the full dataset for in-place caching.
Optional environment to cache full-dataset fitted states of stateful transformers.
Number of threads to use for parallel execution (default 8)