Pythonã®é ããã«ã³ãã¢ãã«ã©ã¤ãã©ãªãGHMMã®ä½¿ãããã軽ãç´¹ä»ã ã³ã¼ããè¦ã¦é ããã°ãªã«ããã£ã¦ãããåããã¨æãã¾ãã from ghmm import * # åæé·ç§»ç¢ºçè¡å A = [[0.6, 0.4, 0], [0, 0.6, 0.4], [0.0, 0.0, 1.0]] # åæåºå確çè¡å B = [[0.25, 0.25, 0.25, 0.25], [0.25, 0.25, 0.25, 0.25], [0.25, 0.25, 0.25, 0.25]] # åæç¶æ 確ç(left-to-rightã¢ãã«) pi = [1.0, 0, 0] # ã¨ãå¾ããã¹ã¦ã®è¨å·ãå®ç¾© sigma = IntegerRange(0, 4) #sigma = Alphabet('a','c','d','b') #æåã®å ´å # é ããã«ã³ãã¢ãã«ã®çæ hmm = HMMFrom
{{#tags}}- {{label}}
{{/tags}}