class_docstr: XLearn is the core interface used by python API.
class_docstr_tok: ["XLearn","is","the","core","interface","used","by","python","API","."]
docstr: Check hyper-parameters, train model, and dump model.
  
  Parameters
  ----------
  param : dict
    hyper-parameter used by xlearn.
  model_path : str
    path of model checkpoint.
docstr_tok: ["Check","hyper-parameters",",","train","model",",","and","dump","model",".","Parameters","--","--","--","--","--","param",":","dict","hyper-parameter","used","by","xlearn",".","model_path",":","str","path","of","model","checkpoint","."]
code: def fit(self, param, model_path):
      """Check hyper-parameters, train model, and dump model.
  
      Parameters
      ----------
      param : dict
        hyper-parameter used by xlearn.
      model_path : str
        path of model checkpoint.
      """
      self._set_Param(param)
      _check_call(
          _LIB.XLearnFit(ctypes.byref(self.handle), c_str(model_path))
      )
  
imports: import sys
  import os
  import ctypes
  from numpy import ndarray
  from .base import Series, DataFrame
  import numpy
  from .base import _LIB, XLearnHandle
  from .base import _check_call, c_str
  from .data import DMatrix
label_desc: Use image node_id 18 for calling the XLearn obj's underlying member method code with example usage: obj.fit(param, model_path) without return types