Created
July 4, 2017 09:02
-
-
Save Baquetron/4e4220b5b9a7dfcab73b996f26b69e4c to your computer and use it in GitHub Desktop.
Model_factory CLA error
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
modelClass = None | |
if modelConfig['model'] == "HTMPrediction": | |
modelClass = HTMPredictionModel | |
elif modelConfig['model'] == "TwoGram": | |
modelClass = TwoGramModel | |
elif modelConfig['model'] == "PreviousValue": | |
modelClass = PreviousValueModel | |
else: | |
raise Exception("ModelFactory received unsupported Model type: %s" % \ | |
modelConfig['model']) | |
return modelClass(**modelConfig['modelParams']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment