parameters: (self, features, targets, mode)
return_statement: return self._model_fn(features, targets)
docstring: Calls model function with support of 2, 3 or 4 arguments.
docstring_summary: Calls model function with support of 2, 3 or 4 arguments.
docstring_tokens: Calls model function with support of 2 3 or 4 arguments .
function: def _call_model_fn(self, features, targets, mode):
      """Calls model function with support of 2, 3 or 4 arguments."""
      features, targets = self._feature_engineering_fn(features, targets)
      model_fn_args = _get_arguments(self._model_fn)
      if 'mode' in model_fn_args:
        if 'params' in model_fn_args:
          return self._model_fn(features, targets, mode=mode, params=self.params)
        else:
          return self._model_fn(features, targets, mode=mode)
      return self._model_fn(features, targets)
function_tokens: def _call_model_fn ( self , features , targets , mode ) : features , targets = self . _feature_engineering_fn ( features , targets ) model_fn_args = _get_arguments ( self . _model_fn ) if 'mode' in model_fn_args : if 'params' in model_fn_args : return self . _model_fn ( features , targets , mode = mode , params = self . params ) else : return self . _model_fn ( features , targets , mode = mode ) return self . _model_fn ( features , targets )