docstr: Get the predictions from a model on data using the
  internal prediction functions.
  
  Parameters
  ----------
  model: Booster
      The model
  
  data: pd.DataFrame or np.array
      The data to get predictions for
  
  dtype: string or np.datatype
      Returns prediction as this datatype.
      Datatypes are kept track of internally, however
      you can overwrite the data type with this parameter.
  
  Returns
  -------
  np.ndarray of predictions
docstr_tok: ["Get","the","predictions","from","a","model","on","data","using","the","internal","prediction","functions",".","Parameters","--","--","--","--","--","model",":","Booster","The","model","data",":","pd.DataFrame","or","np.array","The","data","to","get","predictions","for","dtype",":","string","or","np.datatype","Returns","prediction","as","this","datatype",".","Datatypes","are","kept","track","of","internally",",","however","you","can","overwrite","the","data","type","with","this","parameter",".","Returns","--","--","--","-","np.ndarray","of","predictions"]
code: def model_predict(self, model, data, dtype=None):
      """
      Get the predictions from a model on data using the
      internal prediction functions.
  
      Parameters
      ----------
      model: Booster
          The model
  
      data: pd.DataFrame or np.array
          The data to get predictions for
  
      dtype: string or np.datatype
          Returns prediction as this datatype.
          Datatypes are kept track of internally, however
          you can overwrite the data type with this parameter.
  
      Returns
      -------
      np.ndarray of predictions
  
      """
      objective = model.params["objective"]
      if dtype is None:
          dtype = self.objective_pred_dtypes[objective]
      pred_func = self.objective_pred_funcs[objective]
      preds = pred_func(model=model, data=data).astype(dtype)
      return preds
  
file_path: miceforest/miceforest/MeanMatchScheme.py
imports: from .compat import pd_DataFrame
  import inspect
  from copy import deepcopy
  from typing import Callable, Union, Dict, Set
  from numpy import dtype
label_desc: Use image node_id 12 for calling the MeanMatchScheme obj's underlying member method code with example usage: obj.model_predict(model, data, dtype) and returns: preds