trainAutoencoder function input format

How do I format an input (X) to the trainAutoencoder function. I tried making a 2D matrice as told on its documentation but get the following error: "Undefined function 'trainAutoencoder' for input arguments of type 'double'. " traindata is my X input which is a 3 X 5 double as shown in the Workspace
%Make Training data traindata = [5,5,5,1,5; 5,5,5,1,5; 5,5,5,1,5];
rng('default') hiddenSize1 = 3; autoenc1 = trainAutoencoder(traindata ,hiddenSize1, ... 'MaxEpochs',400, ... 'L2WeightRegularization',0.004, ... 'SparsityRegularization',4, ... 'SparsityProportion',0.15, ... 'ScaleData', false);

回答 (1 件)

nagwa megahed
nagwa megahed 2016 年 7 月 15 日

0 投票

trainAutoencoder is a function built in matlab2015b that use neural network toolbox version 9.0, so it is not defined on matlab2015a or other previous versions. try to upgrade your toolbox and you will find the function.

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2015 年 11 月 3 日

回答済み:

2016 年 7 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by