Hi folks,
newbie here with the ANNs. I have the following question: I wrote a root script, where I use TMultiLayerPerceptron to create a NN, which I train with a set of data, I export the weights (via mlp->Export(“my_nn_weights”)) and I check within that first script via
mlp->Evaluate(0,params) that the output makes sense.
Now, in order to use that NN, in particular the mlp->Evaluate() in another root script, I try to define therein a new TMultiLayerPerceptron and load the previously saved weights.
I see that to get it working is not as simple as calling the default constructor and using load, e.g. something like:
TMultiLayerPerceptron *mlp = new TMultiLayerPerceptron();
mlp->LoadWeights(“my_nn_weights”);
However, defining again the same TMultiLayerPerceptron with the same input and ouput variables, nn structure and the tree does not work either.
The typical Higgs example and so on only use the mlp->Evaluate(0,par) within the main original root script…
Any advice or useful example?
Many thanks in advance,