예제 #1
0
 def objective(values):
     for (i, value) in enumerate(values):
         parents[i].value = value
     score = sum([obs.chisquare() for obs in obs_nodes])
     if score < 0:
         kabuki.debug_here()
     return score
예제 #2
0
파일: base.py 프로젝트: SemanticBeeng/hddm
 def objective(values):
     for (i, value) in enumerate(values):
         parents[i].value = value
     score = sum([obs.chisquare() for obs in obs_nodes])
     if score < 0:
         kabuki.debug_here()
     return score