Ejemplo n.º 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
Ejemplo n.º 2
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