Matlab - Neural network training

前端 未结 4 708
有刺的猬
有刺的猬 2021-02-06 14:06

I\'m working on creating a 2 layer neural network with back-propagation. The NN is supposed to get its data from a 20001x17 vector that holds following information in each row:<

4条回答
  •  深忆病人
    2021-02-06 14:23

    This is normal. Your output layer is using a log-sigmoid transfer function, and that will always give you some intermediate output between 0 and 1.

    What you would usually do would be to look for the output with the largest value -- in other words, the most likely character.

    This would mean that, for every column in y2, you're looking for the index of the row that contains the largest value in that row. You can compute this as follows:

    [dummy, I]=max(y2);
    

    I is then a vector containing the indexes of the largest value in each row.

提交回复
热议问题