how to divide data into data testing and training

조회 수: 2 (최근 30일)
ciptya almira
ciptya almira 2017년 7월 7일
답변: Greg Heath 2017년 7월 8일
hai everyone i want to ask about my problem i want to predicting exchange rate using anfis and i confuse how to divide data into data testing and training ?
  댓글 수: 2
KSSV
KSSV 2017년 7월 7일
Actually 70% goes to training and 30% is for testing isn't it?
José-Luis
José-Luis 2017년 7월 7일
편집: José-Luis 2017년 7월 7일
Depends on your objective:
  • If you're a cynic only interested in results: train with as much as possible and test with the rest
  • If you're a highly-principled masochist interested in the robustness of your model: use as little as possible for training and test with the rest.
Disclaimer: Jokes happen

댓글을 달려면 로그인하십시오.

채택된 답변

Greg Heath
Greg Heath 2017년 7월 8일
The NN Toolbox default is
15% Testing
85% Design
--- 70% Training
--- 15% Validation
The validation subset is a non-training design subset used during training to make sure that the currently trained net generalizes well to non-training data.
The current default setting of 6 insures that training will stop if the non-training validation subset error increases continually for 6 epochs.
Sample code from the documentation obtained via the commands help and doc uses all defaults. For regression/function-fitting/curve-fitting the default function is FITNET. The sample code using as many defaults as possible is obtained via the commands
help fitnet
and
doc fitnet
Alternative code by me is obtained from
Hope this helps
Thank you for formally accepting my answer
Greg

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by