class_docstr: XLearn is the core interface used by python API.
class_docstr_tok: ["XLearn","is","the","core","interface","used","by","python","API","."]
docstr: Set file path of validation data.
  
  Parameters
  ----------
  val_path : str
     the path of validation data.
docstr_tok: ["Set","file","path","of","validation","data",".","Parameters","--","--","--","--","--","val_path",":","str","the","path","of","validation","data","."]
code: def setValidate(self, val_path):
      """Set file path of validation data.
  
      Parameters
      ----------
      val_path : str
         the path of validation data.
      """
      if isinstance(val_path, str):
          _check_call(
              _LIB.XLearnSetValidate(
                  ctypes.byref(self.handle), c_str(val_path)
              )
          )
      elif isinstance(val_path, DMatrix):
          key = "validate"
          _check_call(
              _LIB.XLearnSetDMatrix(
                  ctypes.byref(self.handle),
                  c_str(key),
                  ctypes.byref(val_path.handle),
              )
          )
      else:
          raise Exception(
              "Invalid validation.Can be test file path or xLearn DMatrix",
              type(val_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 8 for calling the XLearn obj's underlying member method code with example usage: obj.setValidate(val_path) without return types