<p>There is something really weird. The GMM version trains almost instantly while the HMM takes days...</p>

<p>Here is the HMM version: </p>

<div class="highlight highlight-source-c++"><pre>    <span class="pl-k">auto</span> hmm = std::make_unique&lt;HMM&lt;GMM&gt;&gt;(<span class="pl-c1">1</span>, GMM(<span class="pl-c1">64</span>, <span class="pl-c1">9</span>))
    std::vector&lt;arma::mat&gt; images;
    <span class="pl-c">//Fill images</span>
    hmm-&gt;<span class="pl-en">Train</span>(images);</pre></div>

<p>Here is the GMM version: </p>

<div class="highlight highlight-source-c++"><pre>    <span class="pl-k">auto</span> gmm = std::make_unique&lt;GMM&gt;(<span class="pl-c1">64</span>, <span class="pl-c1">9</span>);
    std::vector&lt;arma::mat&gt; images;
    <span class="pl-c">//Fill images</span>
    gmm-&gt;<span class="pl-en">Train</span>(images[<span class="pl-c1">0</span>]);
    <span class="pl-k">for</span>(std::<span class="pl-c1">size_t</span> i = <span class="pl-c1">1</span>; i &lt; images.size(); ++i){
        gmm-&gt;<span class="pl-c1">Train</span>(images[i], <span class="pl-c1">1</span>, <span class="pl-c1">true</span>);
    }</pre></div>

<p>Either there is something wrong with this code and I don't use GMM/HMM correctly or there is something definitely wrong in the library. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/550#issuecomment-193754632">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLGtj3tQe9Ksbm2hfakRb4FO6t_1ks5prWVrgaJpZM4HpaV-.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/550#issuecomment-193754632"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>