specless.automaton.pdfa.check_predict_method
- specless.automaton.pdfa.check_predict_method(prediction_function: Callable)[source]
decorator to check an enumerated typestring for prediction method. pred_method: The pred_method string to check. one of: {‘sample’, ‘max_prob’}
- Parameters:
prediction_function (function handle to check. Must have keyword argument: 'pred_method') – the function to decorate
- Raises:
ValueError – raises if: - pred_method is not a keyword argument - pred_method is not one of allowed methods