title: Pomegranate HMM labels: The truth value of an array with more than one element is ambiguous.
body: <p>I'm using the <a href="http://pomegranate.readthedocs.io/en/latest/HiddenMarkovModel.html" rel="nofollow noreferrer">Pomegranate library</a>  for an HMM implementation. I'm following what the docs say for using the <code>from_samples</code> function which says that one of the parameters <code>labels</code> should be: </p>
  
  <p><code>An array of state labels for each sequence. This is only used in ‘labeled’ training. If used this must be comprised of n lists where n is the number of sequences to train on, and each of those lists must have one label per observation. Default is None.</code></p>
  
  <p>My code is:</p>
  
  <pre><code>model = HiddenMarkovModel('Gestures').from_samples(
          NormalDistribution, 3, training, labels=[0, 1, 2], algorithm='labeled')
  </code></pre>
  
  <p>I get the error: </p>
  
  <pre><code>ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
  </code></pre>
  
  <p>which doesn't make sense since I'm inputing an array, but I guess it thinks I'm supposed to input a boolean?</p>