Mercurial > repos > goeckslab > image_learner
diff image_learner_cli.py @ 15:d17e3a1b8659 draft default tip
planemo upload for repository https://github.com/goeckslab/gleam.git commit bc50fef8acb44aca15d0a1746e6c0c967da5bb17
| author | goeckslab |
|---|---|
| date | Fri, 28 Nov 2025 15:45:49 +0000 |
| parents | bcfa2e234a80 |
| children |
line wrap: on
line diff
--- a/image_learner_cli.py Wed Nov 26 22:00:32 2025 +0000 +++ b/image_learner_cli.py Fri Nov 28 15:45:49 2025 +0000 @@ -142,6 +142,42 @@ "Overrides default 0.5." ), ) + parser.add_argument( + "--validation-metric", + type=str, + default="roc_auc", + choices=[ + "accuracy", + "loss", + "roc_auc", + "balanced_accuracy", + "precision", + "recall", + "f1", + "specificity", + "log_loss", + "pearson_r", + "mae", + "mse", + "rmse", + "mape", + "r2", + "explained_variance", + ], + help="Metric Ludwig uses to select the best model during training/validation.", + ) + parser.add_argument( + "--target-column", + type=str, + default=None, + help="Name of the target/label column in the metadata file (defaults to 'label').", + ) + parser.add_argument( + "--image-column", + type=str, + default=None, + help="Name of the image column in the metadata file (defaults to 'image_path').", + ) args = parser.parse_args()
