Esempio n. 1
0
 def compute_estimated_ys(self, random=False):
     prob = []
     prob.append(None)
     for index in range(1, len(self.y_prob_list)):
         prob.append(self.y_prob_list[index].getV())
     maxindex = utils.get_max_index(prob, random)
     return maxindex
Esempio n. 2
0
 def compute_estimated_y(self, m, random=False):
     prob = []
     prob.append(None)
     for k in range(1, self.K + 1):
         prob.append(self.y_prob_list[m][k].getV())
     maxindex = utils.get_max_index(prob, random)
     return maxindex