Training set and target set and output in Matlab neural network

3 ビュー (過去 30 日間)
Roy Deep
Roy Deep 2013 年 9 月 14 日
コメント済み: Greg Heath 2013 年 11 月 5 日
let us say i have a data set
patients arrt1 attr2 attr3 disease
1 present not present heavily present yes
2 not present present heavily present yes
3. present present heavily present yes
4 not present present present no
So here disease attribute is the decision attribute.I am willing to detect such kind of disease for lets say 1000 patients. So my first question is what actually should the training set(dot mat format) contain and also what will be the target set(dot mat format). What will be the out put format.
please reply as early as possible.

採用された回答

Greg Heath
Greg Heath 2013 年 9 月 19 日
Since not-present, present and heavily-present are interpreted as having an increasing order, you can represent them as ordered integers. examples [-1 0 1 ], [0 1 2 ] or [ 1 2 3]. The obvious choice for disease is [ 0 1 ].
Hope this helps.
Thank you for formally accepting my answer
Greg
P.S. See the comp.ai.neural-nets FAQ

その他の回答 (2 件)

Roy Deep
Roy Deep 2013 年 11 月 3 日
編集済み: Roy Deep 2013 年 11 月 3 日
  1 件のコメント
Roy Deep
Roy Deep 2013 年 11 月 3 日
編集済み: Roy Deep 2013 年 11 月 4 日
will the "target" excel file order be 4X1 and "input" excel file 4X3. please also mention, whether for input data excel file 4X3 is the correct format ? and for the target excel data 4X1 is the correct format.Because I am using nntool, with back propagation neural network, I got error mentioning "input" and "target" data not matching. So, therefore I changed it to 3X4 for input data and 1X4 for target data, then it is working. But please reply to me, I am confused fully.I actually have to use Bck NN for large data set of 2000(rows)X20(atr) for input and as it is binary classification, so decision attribute i.e target data set is 2000X1. help me asp.

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


Greg Heath
Greg Heath 2013 年 11 月 3 日
patients arrt1 attr2 attr3 disease
1 present not present heavily present yes
2 not present present heavily present yes
3 present present heavily present yes
4 not present present present no
1 1 0 2 1
2 0 1 2 1
3 1 1 2 1
4 0 1 1 0
Your training data set should cover all I/O possibilities
Are there 3^3 = 27 input possibilities or 3*2^2 = 12 ?
Can the same input have different outputs? i.e., can two people have the same input attributes but one is diseased and the other is not?
For the above 4 patients, the MATLAB format is
x = [ 1 0 1 0 ; 0 1 1 1 ; 2 2 2 1]
x = [ 1 0 1 0
0 1 1 1
2 2 2 1 ]
t = [ 1 1 1 0 ]
I'm not familiar with excel. However, whatever convention you use there, it should convert to the form I have illustrated ( or one that is equivalent).
  2 件のコメント
Roy Deep
Roy Deep 2013 年 11 月 4 日
編集済み: Roy Deep 2013 年 11 月 4 日
Thank you for the answer, I think your answer is absolutely correct. Sir, after applying NNTOOL I got the above Training,Validation, Test and Overall graph for the value "R". First of all what will be the interpretaion of these graph. And,if you see the graph, the data values have gone far away fron the FIT line(which creates 45 degree). Can you tell how to scale them so that the data points should stay near by the "FIT line". For that scale what is the change in the matlab script I need to do.I want to bring those data points which are far away the the "Fit" line
Greg Heath
Greg Heath 2013 年 11 月 5 日
You are mixing Apples and Oranges. This is a classification or pattern recognition problem which is handled by PATTERNNET instead of FITNET or FEEDFORWARDNET which are typically used for regression and curvefitting. Instead of the regression or curvefitting plots that you have obtained, you want the classification confusion matrix and ROC curves that are PATTERNNET defaults.
My last post was a lengthy one regarding classification
Some of the info shouldl be useful to you.

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

カテゴリ

Help Center および File ExchangeClassification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by