def METHOD_NAME(self, request):
    deep_model = request['deep_model']
    options = request.get('options', {})
    if deep_model == 'DeepModelPredicate':
        return self._model.predict_predicate(options=options)
    elif deep_model == 'DeepModelWeight':
        return self._model.predict_weight(options=options)
    else:
        raise ValueError("Unknown deep model type in predict: '%s'." % (deep_model,))