How to get neural network parameter after training?

前端 未结 2 1291
被撕碎了的回忆
被撕碎了的回忆 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条回答
  •  -上瘾入骨i
    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)
    

提交回复
热议问题