class_docstr: Examples from Wikipedia:
  
  - http://en.wikipedia.org/wiki/Hidden_Markov_model
  - http://en.wikipedia.org/wiki/Viterbi_algorithm
class_docstr_tok: ["Examples","from","Wikipedia",":","-","http",":","\/\/en.wikipedia.org\/wiki\/Hidden_Markov_model","-","http",":","\/\/en.wikipedia.org\/wiki\/Viterbi_algorithm"]
code: def new_hmm(self, impl):
      n_components = 2  # ['Rainy', 'Sunny']
      n_features = 3  # ['walk', 'shop', 'clean']
      h = hmm.CategoricalHMM(n_components, implementation=impl)
      h.n_features = n_features
      h.startprob_ = np.array([0.6, 0.4])
      h.transmat_ = np.array([[0.7, 0.3], [0.4, 0.6]])
      h.emissionprob_ = np.array([[0.1, 0.4, 0.5], [0.6, 0.3, 0.1]])
      return h
  
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  from hmmlearn import hmm
  from .None import assert_log_likelihood_increasing, normalized
label_desc: Use image node_id 1 for calling the TestCategoricalAgainstWikipedia obj's underlying member method code with example usage: obj.new_hmm(impl) and returns: h