<p>Serialization is not complete AFAIK: The following test fails (100% error):</p>
<pre><code> auto net = CreateVanillaNetwork();
RMSprop<decltype(net)> opt(net, 0.01, 0.88, 1e-8, 10 * input.n_slices, 0);
net.Train(input, Y, opt);
data::Save("LearntMachine.xml", "ConvNetwork", net, mlpack::data::xml );
size_t error = 0;
{
arma::mat prediction;
net.Predict(input, prediction);
...
}
}
auto net2 = CopyVanillaNetwork();
data::Load("LearntMachine.xml", "ConvNetwork", net2, mlpack::data::xml);
{
arma::mat prediction;
net2.Predict(input, prediction);
...
}
</code></pre>
<p>Note that <code>net</code> computes the values as expected. But <code>net2</code> fails with 100% error. This is partly because the weights have not been serialized. But adding <code>network</code> and <code>outputLayer</code> to CNN::Serialize did not help.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/513#issuecomment-192457197">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKeI3wRH84Ms4ccyX5ASRnKSqrSNks5pqJctgaJpZM4HQHGn.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/513#issuecomment-192457197"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>