Created
April 1, 2021 21:42
-
-
Save bkaankuguoglu/f99ddffb3a05d20e1413496de3b4745a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_model(model, model_params): | |
models = { | |
"rnn": RNNModel, | |
"lstm": LSTMModel, | |
"gru": GRUModel, | |
} | |
return models.get(model.lower())(**model_params) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment