class_docstr: Build a Curve Model to predict the performance
  
  Algorithm: https://github.com/Microsoft/nni/blob/master/src/sdk/pynni/nni/curvefitting_assessor/README.md
  
  Parameters
  ----------
  target_pos : int
      The point we need to predict
class_docstr_tok: ["Build","a","Curve","Model","to","predict","the","performance","Algorithm",":","https",":","\/\/github.com\/Microsoft\/nni\/blob\/master\/src\/sdk\/pynni\/nni\/curvefitting_assessor\/README.md","Parameters","--","--","--","--","--","target_pos",":","int","The","point","we","need","to","predict"]
docstr: return the value of the f_comb when epoch = pos
  
  Parameters
  ----------
  pos : int
      the epoch number of the position you want to predict
  sample : list
      sample is a (1 * NUM_OF_FUNCTIONS) matrix, representing{w1, w2, ... wk}
  
  Returns
  -------
  int
      The expected matrix at pos with all the active function's prediction
docstr_tok: ["return","the","value","of","the","f_comb","when","epoch","=","pos","Parameters","--","--","--","--","--","pos",":","int","the","epoch","number","of","the","position","you","want","to","predict","sample",":","list","sample","is","a","(","1","*","NUM_OF_FUNCTIONS",")","matrix",",","representing","{","w1",",","w2",",","...","wk","}","Returns","--","--","--","-","int","The","expected","matrix","at","pos","with","all","the","active","function","'s","prediction"]
code: def f_comb(self, pos, sample):
      """return the value of the f_comb when epoch = pos
  
      Parameters
      ----------
      pos : int
          the epoch number of the position you want to predict
      sample : list
          sample is a (1 * NUM_OF_FUNCTIONS) matrix, representing{w1, w2, ... wk}
  
      Returns
      -------
      int
          The expected matrix at pos with all the active function's prediction
      """
      ret = 0
      for i in range(self.effective_model_num):
          model = self.effective_model[i]
          y = self.predict_y(model, pos)
          ret += sample[i] * y
      return ret
  
file_path: nni/nni/algorithms/hpo/curvefitting_assessor/model_factory.py
imports: import logging
  import numpy
  from scipy import optimize
  from .curvefunctions import *
label_desc: Use image node_id 5 for calling the CurveModel obj's underlying member method code with example usage: obj.f_comb(pos, sample) and returns: ret