Neural Network how to change output threshold?

Hi, I created and trained a neural network using Matlab Toolbox to analise if a movie (given its features as input) is violent or not. The output is two classes that represent violent or not violent.
Exemple of a movie output using the network: Class 1 - 0,68; Class 2 - 0,32. Since all my movies on the trained group only had classes like: Class 1 - 1; Class 2 - 0; or Class 1 - 0 ;Class 2 - 1; I would like to know what is the default threshold that says that the output is considered 1 or 0 - I didn't change any setting on that - and how to change the threshold.
Thanks in advance.

1 件のコメント

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2016 年 1 月 13 日
after simulation(using sim command), you might be getting a value. you can fix that value as threshold and can work on

サインインしてコメントする。

 採用された回答

Greg Heath
Greg Heath 2016 年 1 月 13 日

0 投票

Target of a c-class classifier should have columns from the unit matrix eye(c)
trueindices = [ 5 3 1 2 4 ]
target = ind2vec(trueindices)
output = target + 0.15*randn(5)
predindices = vec2ind(output)
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2016 年 1 月 12 日

回答済み:

2016 年 1 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by