Skip to content

Commit

Permalink
�feat: expose both imputation and classification GRUD;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed May 28, 2024
1 parent 7e38d08 commit 283b42c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pypots/cli/tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from .base import BaseCommand
from .utils import load_package_from_path
from ..classification import BRITS as BRITS_classification
from ..classification import GRUD as GRUD_classification
from ..classification import Raindrop
from ..clustering import CRLI, VaDER
from ..data.saving.h5 import load_dict_from_h5
Expand Down Expand Up @@ -80,8 +81,9 @@
"pypots.imputation.GPVAE": GPVAE,
"pypots.imputation.BRITS": BRITS,
"pypots.imputation.MRNN": MRNN,
"pypots.imputation.GRUD": GRUD,
# classification models
"pypots.classification.GRUD": GRUD,
"pypots.classification.GRUD": GRUD_classification,
"pypots.classification.BRITS": BRITS_classification,
"pypots.classification.Raindrop": Raindrop,
# clustering models
Expand Down Expand Up @@ -248,7 +250,7 @@ def run(self):
)
raise RuntimeError(
f"Hyperparameters do not match. Mismatched hyperparameters "
f"(in the tuning configuration but not in the given model's arguments): {list(mismatched)}"
f"(in the tuning configuration but not in {model_class.__name__}'s arguments): {list(mismatched)}"
)

# initializing optimizer and model
Expand Down

0 comments on commit 283b42c

Please sign in to comment.