python维特比算法
# -*- coding: utf-8 -*-from collections import defaultdictstates = ("Rainy", "Sunny")observations = ("Walk", "Shop", "Walk", "Shop", "Clean", "Walk", "Shop", "Walk")start_probability = {"Rainy": 0.6, "Sunny": 0.4}transition_probability = {
原创
2020-08-09 11:56:48 ·
241 阅读 ·
0 评论