Skip to content
Snippets Groups Projects
Commit 077e963d authored by Lucas Miranda's avatar Lucas Miranda
Browse files

Updated train_model.py to be compatible with phenotype classification

parent d207cd1d
No related branches found
No related tags found
No related merge requests found
Pipeline #86791 failed
...@@ -141,6 +141,9 @@ def tune_search( ...@@ -141,6 +141,9 @@ def tune_search(
X_train, y_train, X_val, y_val = data X_train, y_train, X_val, y_val = data
if hypermodel == "S2SAE": # pragma: no cover if hypermodel == "S2SAE": # pragma: no cover
assert (
predictor == 0.0 and pheno_class == 0.0
), "Prediction branches are only available for variational models. See documentation for more details"
hypermodel = deepof.hypermodels.SEQ_2_SEQ_AE(input_shape=X_train.shape) hypermodel = deepof.hypermodels.SEQ_2_SEQ_AE(input_shape=X_train.shape)
elif hypermodel == "S2SGMVAE": elif hypermodel == "S2SGMVAE":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment