Mercurial > repos > goeckslab > image_learner
comparison image_learner.xml @ 21:d5c582cf74bc draft default tip
planemo upload for repository https://github.com/goeckslab/gleam.git commit eed8c1e1d99a8a0c8f3a6bfdd8af48a5bfa19444
| author | goeckslab |
|---|---|
| date | Tue, 20 Jan 2026 01:25:35 +0000 |
| parents | 64872c48a21f |
| children |
comparison
equal
deleted
inserted
replaced
| 20:64872c48a21f | 21:d5c582cf74bc |
|---|---|
| 26 #import re | 26 #import re |
| 27 #if $input_csv | 27 #if $input_csv |
| 28 #set $sanitized_input_csv = re.sub('[^\w\-_\.]', '_', $input_csv.element_identifier.strip()) | 28 #set $sanitized_input_csv = re.sub('[^\w\-_\.]', '_', $input_csv.element_identifier.strip()) |
| 29 ln -sf '$input_csv' "./${sanitized_input_csv}"; | 29 ln -sf '$input_csv' "./${sanitized_input_csv}"; |
| 30 #end if | 30 #end if |
| 31 #set $TORCH_HOME = "./torch_cache"; | |
| 32 mkdir -p "$TORCH_HOME"; | |
| 31 | 33 |
| 32 #set $selected_validation_metric = "" | 34 #set $selected_validation_metric = "" |
| 33 #if $task_selection.task == "binary" | 35 #if $task_selection.task == "binary" |
| 34 #set $selected_validation_metric = $task_selection.validation_metric_binary | 36 #set $selected_validation_metric = $task_selection.validation_metric_binary |
| 35 #elif $task_selection.task == "classification" | 37 #elif $task_selection.task == "classification" |
| 87 #if $sample_id_column | 89 #if $sample_id_column |
| 88 --sample-id-column "$sample_id_column" | 90 --sample-id-column "$sample_id_column" |
| 89 #end if | 91 #end if |
| 90 --image-resize "$image_resize" | 92 --image-resize "$image_resize" |
| 91 --random-seed "$random_seed" | 93 --random-seed "$random_seed" |
| 94 --torch-home "$TORCH_HOME" | |
| 92 --output-dir "." && | 95 --output-dir "." && |
| 93 | 96 |
| 94 mkdir -p '$output_model.extra_files_path' && | 97 mkdir -p '$output_model.extra_files_path' && |
| 95 cp -r experiment_run/model/*.json experiment_run/model/model_weights '$output_model.extra_files_path' && | 98 cp -r experiment_run/model/*.json experiment_run/model/model_weights '$output_model.extra_files_path' && |
| 96 | 99 |
