Skip to content

Commit

Permalink
Populate .generate_vimp_tasks skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzwanenburg committed Oct 28, 2024
1 parent 216d52e commit 88f87dd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion R/TaskMain.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ setMethod(
}


.generate_vimp_tasks <- function() {
.generate_vimp_tasks <- function(
file_paths,
project_id
) {

task_list <- list()

# Check if vimp should be computed separately or is computed during
# hyperparameter optimisation.
Expand All @@ -79,8 +84,19 @@ setMethod(
}
}

# Check if any vimp-related tasks are required.
if (len(task_list) == 0L) return(NULL)

# Add tasks related to data processing for vimp methods.
task_list <- c(
task_list,
.generate_vimp_data_preprocessing_tasks(
file_paths = file_paths,
project_id = project_id
)
)

return(task_list)
}


Expand Down

0 comments on commit 88f87dd

Please sign in to comment.