How to set manually training and test data for training a neural network

17 ビュー (過去 30 日間)
Eduardo
Eduardo 2012 年 6 月 4 日
回答済み: Greg Heath 2014 年 6 月 12 日
Hello All,
I am making some experiments with mathlab neural network toolbox. Usually to train a neural network i give some training and test data and the net object takes care of dividing the data. However what i need to do is divide the data by myself and set the training and test data explicitly in the net object.
If it is needed some aditional explanation please tell me. Any help would be appreciated.
Thanks.
  2 件のコメント
Geoff
Geoff 2012 年 6 月 4 日
From memory, if you look at the help for 'net', it tells you how to do this. You can specify which ranges are used for training, validation and testing. I don't have the neural network toolbox anymore, so I can't be more useful than that.
Eduardo
Eduardo 2012 年 6 月 5 日
Geoff thanks for your answer,
In the help I get the following:
" NET.inputs{i}.range
This property defines the minimum and maximum values of the input data
used to configure the input, or zero if the input is unconfigured.
"
However what I need is to set directly the test and training data. Again thanks for your suggestion.

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

採用された回答

Geoff
Geoff 2012 年 6 月 5 日
編集済み: John Kelly 2014 年 6 月 12 日
  2 件のコメント
Geoff
Geoff 2012 年 6 月 5 日
Incidentally, I found that page by googling "matlab neural net data division".
MatLab Answers is great, but often Google is better ;-)
Eduardo
Eduardo 2012 年 6 月 5 日
Thanks!, I think you point me out in the right way. This is helpful because I need to add external data to the training set and see if it helps in decreasing error (at least a little bit) in the test set.

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

その他の回答 (1 件)

Greg Heath
Greg Heath 2014 年 6 月 12 日
It is probably easier to use 'divideblock'
Hope this helps.
Greg

カテゴリ

Help Center および File ExchangeSequence 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