<p><a href="https://github.com/keonkim" class="user-mention">@keonkim</a> I think the behavior is correct, let us use non-tranpose case to discuss the behavior</p>
<p>codes : </p>
<pre><code>try{
arma::mat data;
data::DatasetInfo info;
bool const fatal = true;
bool const transpose = false;
data::Load("simple00.csv", data, info, fatal, transpose);
std::cout << data << endl;
std::cout<<"dimensions == "<<info.Dimensionality()<<std::endl;
Log::Info << "dataset info: " << endl;
for (size_t i = 0; i < data.n_rows; ++i)
{
std::cout << info.NumMappings(i) << " mappings in dimension "
<< i << "." << endl;
}
}catch(std::exception const &ex){
std::cerr<<ex.what()<<std::endl;
}
</code></pre>
<p>Before we transpose, mlpack treat every columns as an example, every row as a dimension<br>
every dimension represent one type of feature(height, weight, color, etc).</p>
<p>After we know how mlpack treat the data, everything are simple</p>
<p>input data</p>
<p>a, b, c<br>
b, 102, 1002<br>
c, 103, 1003<br>
d, 104, 1004</p>
<p>What would you expect?Since every row represent to a feature, we know that a,b,c at row 0 should map to different numeric value.Because Every row represent to different features, we know that a,b,c,d at column 0 should map to one numeric value. What are the output?</p>
<p>output : </p>
<p>0.000000e+00 1.0000e+00 2.0000e+00<br>
0.000000e+00 1.0200e+02 1.0020e+03<br>
0.000000e+00 1.0300e+02 1.0030e+03<br>
0.000000e+00 1.0400e+02 1.0040e+03</p>
<p>As expected, right?<br>
3 mappings in dimension 0.<br>
1 mappings in dimension 1.<br>
1 mappings in dimension 2.<br>
1 mappings in dimension 3.</p>
<p>So, why it looks like that?</p>
<p>a, b, c<br>
b, 102, 1002<br>
c, 103, 1003<br>
d, 104, 1004</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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/issues/658#issuecomment-222506395">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFBU_Z-Dncw6VyjG056upzuWNhS13ks5qGvbagaJpZM4IpXCN">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKlepYjLZ1HI8lMQ5Sz4pXhY-LbBks5qGvbagaJpZM4IpXCN.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/658#issuecomment-222506395"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>