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: returns the value of sigma square, given the weight's sample
  
  Parameters
  ----------
  sample : list
      sample is a (1 * NUM_OF_FUNCTIONS) matrix, representing{w1, w2, ... wk}
  
  Returns
  -------
  float
      the value of sigma square, given the weight's sample
docstr_tok: ["returns","the","value","of","sigma","square",",","given","the","weight","'s","sample","Parameters","--","--","--","--","--","sample",":","list","sample","is","a","(","1","*","NUM_OF_FUNCTIONS",")","matrix",",","representing","{","w1",",","w2",",","...","wk","}","Returns","--","--","--","-","float","the","value","of","sigma","square",",","given","the","weight","'s","sample"]
code: def sigma_sq(self, sample):
      """returns the value of sigma square, given the weight's sample
  
      Parameters
      ----------
      sample : list
          sample is a (1 * NUM_OF_FUNCTIONS) matrix, representing{w1, w2, ... wk}
  
      Returns
      -------
      float
          the value of sigma square, given the weight's sample
      """
      ret = 0
      for i in range(1, self.point_num + 1):
          temp = self.trial_history[i - 1] - self.f_comb(i, sample)
          ret += temp * temp
      return 1.0 * ret / self.point_num
  
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 7 for calling the CurveModel obj's underlying member method code with example usage: obj.sigma_sq(sample) and returns: unknown