Bin data for 2 state model HMM

조회 수: 2 (최근 30일)
Itamar Benisti
Itamar Benisti 2021년 6월 16일
답변: Vimal Rathod 2021년 6월 22일
Hi all,
I am working with the function from HMM peckege [ESTTR,ESTEMIT] = hmmtrain(seq,TRGUESS,EMITGUESS).
Because it is bin data the sequence is not 1 or 2, it is a collection of the data every 10 seconds so the numbers can be between ~0-45.
when I am running the code I got this error message : "Error using hmmdecode (line 113) SEQ must be a vector of integers between 1 and 2"
it possible to run the estimation HMM code with bin data?
Thanks,
Itamar

답변 (1개)

Vimal Rathod
Vimal Rathod 2021년 6월 22일
Hello,
It isn't possible to run with your bin data as the HMM sequence must be 1 and 2 in case of two state model as this is how it was defined. One way to make your bins come to 1 and 2 is to define which all numbers fall in 1 state and which all fall in state 2. That way you could come up with a sequence of 1 and 2 which you could pass.

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by