You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defpost(modelInfo):
"""Create a new transcription model"""current_corpus=DBcorpus.query.get_or_404(modelInfo['corpusID'])
min_epochs=modelInfo.get('minimumEpochs', 0)
max_epochs=modelInfo.get('maximumEpochs', None)
ifmax_epochsandmin_epochs>max_epochs:
return"minimum number of epochs must be smaller than maximum", 400early_stopping_steps=modelInfo.get('earlyStoppingSteps', None)
num_layers=modelInfo.get('numberLayers', 3)
hidden_size=modelInfo.get('hiddenSize', 250)
beam_width=modelInfo.get('beamWidth', 100)
decoding_merge_repeated=modelInfo.get('decodingMergeRepeated', True)
As you can see default parameters are provided here if the request doesn't contain them. These currently match up with what occurs in Persephone but they could get out of sync easily.
The text was updated successfully, but these errors were encountered:
I can see a case for loading these from a config file too, the hardcoded nature that exists here is merely a interim hack to keep other work unblocked.
Consider this situation:
As you can see default parameters are provided here if the request doesn't contain them. These currently match up with what occurs in Persephone but they could get out of sync easily.
The text was updated successfully, but these errors were encountered: