class_docstr: .. note:: `bigdl.dllib.keras` is deprecated in 0.11.
  This will be removed in future releases.
class_docstr_tok: ["..","note",":",":","`","bigdl.dllib.keras","`","is","deprecated","in","0.11",".","This","will","be","removed","in","future","releases","."]
docstr: Evaluate a model on a given dataset in distributed mode.
  
  # Arguments
  x: Input data. A Numpy array or RDD of Sample.
  y: Labels. A Numpy array. Default is None if x is already RDD of Sample.
  batch_size: Number of samples per gradient update.
docstr_tok: ["Evaluate","a","model","on","a","given","dataset","in","distributed","mode",".","#","Arguments","x",":","Input","data",".","A","Numpy","array","or","RDD","of","Sample",".","y",":","Labels",".","A","Numpy","array",".","Default","is","None","if","x","is","already","RDD","of","Sample",".","batch_size",":","Number","of","samples","per","gradient","update","."]
code: def evaluate(self, x, y=None, batch_size=32):
      """
      Evaluate a model on a given dataset in distributed mode.
  
      # Arguments
      x: Input data. A Numpy array or RDD of Sample.
      y: Labels. A Numpy array. Default is None if x is already RDD of Sample.
      batch_size: Number of samples per gradient update.
      """
      if isinstance(x, np.ndarray) and isinstance(y, np.ndarray):
          evaluation_data = to_sample_rdd(x, y)
      elif isinstance(x, RDD) and not y:
          evaluation_data = x
      else:
          invalidInputError(
              False, "Unsupported evaluation data type: %s" % type(x)
          )
      return callBigDlFunc(
          self.bigdl_type,
          "evaluate",
          self.value,
          evaluation_data,
          batch_size,
      )
  
imports: from bigdl.dllib.nn.keras.layers.layer import KerasLayer
  from bigdl.dllib.optim.optimizer import *
  from bigdl.dllib.nn.criterion import *
  from bigdl.dllib.utils.log4Error import *
  import multiprocessing
  import warnings
  from bigdl.dllib.nn.layer import SharedStaticUtils, Container
label_desc: Use image node_id 6 for calling the KerasModel obj's underlying member method code with example usage: obj.evaluate(x, y, batch_size) and returns: callBigDlFunc