2

The hmmlearn tutorial demonstrates how a Hidden Markov Model can be fitted to a dataset:

model = hmm.GaussianHMM(n_components=3, covariance_type="full", n_iter=100)
model.fit(X)  

Is there a built-in way to do cross validation, Or do I have to do it by hand?

smci
  • 32,567
  • 20
  • 113
  • 146
Oblomov
  • 8,953
  • 22
  • 60
  • 106
  • interesting, I assumed I could plug that model into sklearn's cross_val_score but apparently not – Max Power Jun 21 '17 at 06:12
  • I was hoping too, that the hmmlearn model would integrate into the sklearn environment like that... – Oblomov Jun 21 '17 at 09:17
  • You mean 'built-in' in `hmmlearn` package, not `sklearn`? Or are you asking why `sklearn`'s cross-validation methods don't work with hmmlearn? (what happens if you try them? show your code and/or errors please. cc: @MaxPower) OP please clarify your question, it's too broad/unclear. – smci Aug 13 '19 at 05:54

0 Answers0