How to get neural network parameter after training?

前端 未结 2 1292
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 01:56

I am using matlab\'s neural network for classification. I want to know how can I store network parameters such as: epoches, time, mse, etc. In a matrix afte

相关标签:
2条回答
  • 2021-01-15 02:16

    You can store the network parameters in a cell array. Please find more details in the following link: http://www.mathworks.ch/ch/help/matlab/cell-arrays.html

    0 讨论(0)
  • 2021-01-15 02:35

    When calling train, the second returned argument is the training record, this contains the epoches, time and other info about the training. e.g.

    [net,tr] = train(net,data,target);
    tr.epoch
    tr.time
    

    For the mse, given test data data, target data target and neural network net:

    %run inputs through network 
    result = net(data);
    %get the error
    error = result - target;
    %calculate mse
    mse(error)
    
    0 讨论(0)
提交回复
热议问题