def run(self): self.estimate_params() valid_acc = 0 valid_x, valid_y = self.dataset.valid_dis_sequences() pred = self.viterbi(valid_x) valid_acc = pred_accuracy(pred, valid_y) return valid_acc
def run(self): self.estimate_params() valid_acc = 0 valid_x, valid_y = self.dataset.valid_vec_sequences(self.vec_type) pred = self.viterbi(valid_x) pred = self.dataset.act_rmap(pred) valid_acc = pred_accuracy(pred, valid_y) return valid_acc