<blockquote>
<p>If the serialization hasn't completed yet, what does the data stored in the test XML file represent</p>
</blockquote>

<p>It is the parameters of ann, but I think it still lack the weights of another layers.</p>

<blockquote>
<p>And once the serialization is finished, what details will be stored in the XML file? </p>
</blockquote>

<p>It should store the parameters of the cnn,ffn,rnn and other layer weights(I may wrong on this one since I haven't tested it yet)</p>

<blockquote>
<p>If not, I'm still not a 100% sure how to specify the type of network to load when the type is decided just before saving it.</p>
</blockquote>

<p>You need to remember what kind of network you build,  Following part are the "type" of network of yours</p>

<p>/```<br>
/ input layer<br>
    ann::LinearLayer&lt;&gt; inputLayer(trainData.n_rows, hiddenLayerSize);<br>
    ann::BiasLayer&lt;&gt; inputBiasLayer(hiddenLayerSize);<br>
    ann::BaseLayer inputBaseLayer;</p>

<pre><code>// hidden layer
ann::LinearLayer&lt;&gt; hiddenLayer1(hiddenLayerSize, trainLabels.n_rows);
ann::BiasLayer&lt;&gt; hiddenBiasLayer1(trainLabels.n_rows);
ann::BaseLayer&lt;PerformanceFunction&gt; outputLayer;

// output layer
OutputLayerType classOutputLayer;

auto modules = std::tie(inputLayer, inputBiasLayer, inputBaseLayer, hiddenLayer1, hiddenBiasLayer1, outputLayer);
ann::FFN&lt;decltype(modules), decltype(classOutputLayer), ann::RandomInitialization, PerformanceFunctionType&gt; net(modules, classOutputLayer);
</code></pre>

<pre><code>
After you train the net, you can save the parameters and load it with same type(the FFN build by your codes), it has to be the original network you use to train the network, part of the parameters could be different(it depends). Unless the parameters about the features of the input data should be the same.

ps : please correct me if anything wrong.
</code></pre>

<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/531#issuecomment-190746299">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFODrA4kSpWtZcqNAakWvP8CL_fUtks5ppE-wgaJpZM4HmbCC.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/531#issuecomment-190746299"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>