cross validation in neural network

Hi,
How can I pass a argument to my function from crossval function.
Eg.
function y = Net(trainData, testData, hiddenLayers)
crossval(Net, myData)
I need to pass a value for argument hiddenLayers from crossVal function to my function Net. How can I do that?
Regards
Gaurav

回答 (1 件)

Jie
Jie 2013 年 10 月 8 日

0 投票

try to 'global' targated variables

質問済み:

2013 年 10 月 8 日

回答済み:

Jie
2013 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by