<p>I find out a way to make it possible, I could define the type of arma::Mat in DatasetMapper, this could solve the problem</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/681#issuecomment-230680011">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFPuIRwuCKD7JQyltK0utXcghp2wkks5qS0jCgaJpZM4Iu08I">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFE8NCqoE2pt4NTY3-JtMBoOZOoJdks5qS0jCgaJpZM4Iu08I.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/pull/681#issuecomment-230680011"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>