How can I implement my own custom performance function
1 次查看(过去 30 天)
显示 更早的评论
Hi All,
I am using nn toolbox functions to create a neural network for classification purpose (2 output neuron). Instead of using standard performance function to be optimized, I want to use my own. Such that my performance function will be:
( fp/(fp+tn) ) + ( fn/(fn+tp) );
where
- tp: true positive
- fn: false negative
- and so on
of course output y of the network must be converted to 0 or 1. maybe like this:
yPred = ( y(:,1) > y(:,2) );
how can I do this with using newpr or newff?
any help appreciated Thanks
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!