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: priori distribution
  
  Parameters
  ----------
  samples : list
      a collection of sample, it's a (NUM_OF_INSTANCE * NUM_OF_FUNCTIONS) matrix,
      representing{{w11, w12, ..., w1k}, {w21, w22, ... w2k}, ...{wk1, wk2,..., wkk}}
  
  Returns
  -------
  float
      priori distribution
docstr_tok: ["priori","distribution","Parameters","--","--","--","--","--","samples",":","list","a","collection","of","sample",",","it","'s","a","(","NUM_OF_INSTANCE","*","NUM_OF_FUNCTIONS",")","matrix",",","representing","{","{","w11",",","w12",",","...",",","w1k","}",",","{","w21",",","w22",",","...","w2k","}",",","...","{","wk1",",","wk2",",","...",",","wkk","}","}","Returns","--","--","--","-","float","priori","distribution"]
code: def prior(self, samples):
      """priori distribution
  
      Parameters
      ----------
      samples : list
          a collection of sample, it's a (NUM_OF_INSTANCE * NUM_OF_FUNCTIONS) matrix,
          representing{{w11, w12, ..., w1k}, {w21, w22, ... w2k}, ...{wk1, wk2,..., wkk}}
  
      Returns
      -------
      float
          priori distribution
      """
      ret = np.ones(NUM_OF_INSTANCE)
      for i in range(NUM_OF_INSTANCE):
          for j in range(self.effective_model_num):
              if not samples[i][j] > 0:
                  ret[i] = 0
          if self.f_comb(1, samples[i]) >= self.f_comb(
              self.target_pos, samples[i]
          ):
              ret[i] = 0
      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 10 for calling the CurveModel obj's underlying member method code with example usage: obj.prior(samples) and returns: ret