neural net toolbox: divideFcn = ''

조회 수: 13 (최근 30일)
Fabio Muratore
Fabio Muratore 2015년 12월 8일
댓글: bear96 2020년 1월 1일
Hello,
I read a lot of Q&A about neural nets on MATALB Answers lately. Someone (sadly I wasn't able to find the post again) mentioned to set the dividing funcion of the input data to ''. i.e.
NN = narxnet(0:5, 1:5, [10 10]); % creation of a narxnet
NN.divideFcn = ''; % usually I use 'divideblock' here
I get different results for NN.divideFcn = '' or NN.divideFcn = 'divideblock'.
My question is: How does this divideFcn behave. Or does this line of code lead to some default value for the divideFcn?
Thank you in advance for your answers.

채택된 답변

Greg Heath
Greg Heath 2015년 12월 9일
In general you can specify
1. The type of data division
2. The trn/val/test ratios
If you don't specify anything, you will get the default of random data division with trn/val/test ratios 0.7/0.15/0.15.
If you specify ' ' or 'dividetrain', you will get no division i.e., 100/0/0.
If you only specify 'divideblock' the data will be divided into 3 solid blocks of trn/val/test with the default 0.7/0.15/0.15 ratios. However, you can also specify another set of block ratios. This is the datadivision I typically recommend for timeseries prediction.
The disappointing part of this thread is that you should have figured this out by
1. Reading the help and doc documentations for the
different datadivision options.
2. Demonstrating the options on a small data example.
For example,
input = 1:10; target = input.^2;
Hope this helps.
Thank you for formally accepting my answer
  댓글 수: 4
Greg Heath
Greg Heath 2015년 12월 10일
편집: Greg Heath 2016년 1월 4일
If you look at the figures in the help and doc documentation, you will see that
timedelaynet is trained with targets and external inputs; and
deployed with external inputs that generate outputs.
narnet is trained in the open-loop (OL) configuration with
targets replacing external inputs. It is deployed in the
closed-loop (CL) configuration with output feedback replacing
the open-loop target inputs.
narxnet is trained in the OL configuration with both external
inputs and target inputs. It is deployed with external inputs
and output feedback replacing OL target inputs.
Hope this helps.
Greg
bear96
bear96 2020년 1월 1일
Hello, I was wondering if there is any way to obtain the testing/validation/training samples that have been specified by 'dividerand'?

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

추가 답변 (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