Dividing the data into training,testing,validation
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
I have a dataset of 75x6,in which i want to divide the data into training ,testing and validation and use rbf neural network to classify them,please tell how to divide and classify using rbfneural network
i used newrbe for training and testing before ,but how to include validation data in it
for reference
please help
採用された回答
Greg Heath
2012 年 9 月 7 日
編集済み: Greg Heath
2016 年 6 月 15 日
>> lookfor divide
...
divideblock - Partition indices into three sets using blocks of indices.
divideind - Partition indices into three sets using specified indices.
divideint - Partition indices into three sets using interleaved indices.
dividerand - Partition indices into three sets using random indices.
dividetrain - Partition indices into training set only.
dividevec - Divide problem vectors into training, validation and test vectors.
>> help divideblock, doc divideblock ...
To use a function like newrbe with divided data:
1. Use the training design data to create several (10?) nets with different spread values.
2. Use the validation training set to choose the best net.
3. Return to 1 if you want to refine your search for an optimal spread value
4. Use the nondesign test set to predict performance on unseen nondesign data.
5. If the result is unsatifactory
a. In order to reduce the bias of future test set predictions,
obtain a new division of the data (perhaps with differet percentages).
b. Return to step 1
Hope this helps
Thank you for accepting my answer.
Greg
10 件のコメント
FIR
2012 年 9 月 8 日
編集済み: Image Analyst
2012 年 9 月 8 日
Greg can u please help me with small set of coding. Can you please tell how to calculate training and validation accuracy and testing accuracy
Greg Heath
2012 年 9 月 10 日
y = sim(net,x);
e = t-y;
MSE = mse(e)
NMSE = MSE/mean(var(t')) % approx
FIR
2012 年 9 月 10 日
Sorry Greg for frustating you ,i tried but not getting the expected result how to perform ,I have 75x6 data,i want to perform rbf by dividing into training,validation and testing randomly,can u suggest extra code for this please
Greg Heath
2012 年 9 月 11 日
Why didn't you post your code and the unexpected results?
FIR
2012 年 9 月 11 日
for svm we have
svmStruct = svmtrain(xdata,group,'showplot',true);
for plotting graph
is there any function in rbf like this to plot graph
Greg Heath
2012 年 9 月 11 日
編集済み: Greg Heath
2012 年 9 月 11 日
I cannot help you if you
1. ignore my advice
2. take my advice, it doesn't work and you do not post the code and error messages
3. do not answer my questions.
Now, IN ADDITION to my previous questions:
Are you trying to use
newrbe (created but not trained ) or
newrb (simultaneously created and trained )
Neither uses validation and/or test sets.
As stated in my outline, they are used separately, after the creation command, using sim(net,xval) and sim(net,xtst)
To answer your last question you can see all of the net properties just
by entering the command (no semicolon)
net
Then look for plotFcn.
If a net doesn't exist your question can still be answered via
net = newrbe
net.plotFcn
Similarly for newrb.
FIR
2012 年 9 月 12 日
my code is
x=datats(:,1:2);
y=datats(:,3:4);
z=datats(:,5:6);
net = newrb(x,groups)
y = sim(net,x);
Error using ==> newrb at 86
Inputs and Targets have different numbers of columns.
Error in ==> examplerb at 32
net = newrb(x,groups)
FIR
2012 年 9 月 12 日
I tried as per your code
net = newrb(x1,groups)
y = sim(net,xtst);
plotFcn
Undefined function or variable 'plotFcn'.
Greg Heath
2012 年 9 月 13 日
Reread my instructions
Do not enter the command plotFcn.
Either
Enter the command net without the ending semicolon. Then look for plotFcn.
or
Enter the command
net.plotFcn
In fact, do both so that you will understand
FIR
2012 年 9 月 14 日
Thanks i understood now
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Deep Learning Toolbox についてさらに検索
タグ
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
