class_docstr: Cost model to predict the speed of a config
docstr: Predict the speed of configs
  
  Parameters
  ----------
  xs: Array of int
      The indexes of configs to predict
  output_margin: bool, optional
      Whether output the untransformed margin.
      When a model is used as base model, it should output untransformed margin
  
  Returns
  -------
  preds: Array of float
      The prediction
docstr_tok: ["Predict","the","speed","of","configs","Parameters","--","--","--","--","--","xs",":","Array","of","int","The","indexes","of","configs","to","predict","output_margin",":","bool",",","optional","Whether","output","the","untransformed","margin",".","When","a","model","is","used","as","base","model",",","it","should","output","untransformed","margin","Returns","--","--","--","-","preds",":","Array","of","float","The","prediction"]
code: def predict(self, xs, output_margin=False):
      """Predict the speed of configs
  
      Parameters
      ----------
      xs: Array of int
          The indexes of configs to predict
      output_margin: bool, optional
          Whether output the untransformed margin.
          When a model is used as base model, it should output untransformed margin
  
      Returns
      -------
      preds: Array of float
          The prediction
      """
      raise NotImplementedError()
  
imports: import gc
  import numpy
  from .tuner import Tuner
  from ..env import GLOBAL_SCOPE
label_desc: Use image node_id 4 for calling the CostModel obj's underlying member method code with example usage: obj.predict(xs, output_margin) without return types