Function approximation with deep learning.

Hello everyone.
My question is how to use deep Neural Networks to approximate a function using built-in MATLAB functions?
I am trying to approximate a function with 200 input samples and 150 output samples, so it is a weird complex function.
I've decided to construct a NN with 200 inputs and 150 outputs and 3 hidden layers of 90 neurans.
My code:
load D;
%--------------------------------------------------------------------------
D.selection = [1 20000; 2 15000; 3 15000; 4 15000; 5 15000; 6 15000; 7 15000; 8 15000];
[D] = create_dataset(D);
%--------------------------------------------------------------------------
net = newff(D.dataset', D.target' , [90 90 90]);
net.trainparam.epochs = 10000;
net = train(net, D.dataset', D.target');
%--------------------------------------------------------------------------
save('net.mat' , 'net');
Where D.selection is types of data the function could get (i.e. from type 1 take 20000 sample, from type 2 take 15000 sample...)
My problem is with this relatively large dataset and this NN with [90 90 90] neurans training is impossible (my PC went out cold).
I've done it with PYTHON with Tensorflow and it worked really well but for some reasons i want to test it in MATLAB as well (without importing tensorflow or anything else just with matlab).
Could you please help me with this (how to make my code works)?
Best regards.

1 个评论

Any comments will be greatlly appreciated. I really have no idea how to implement this?

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

提问:

2019-6-23

评论:

2019-6-25

Community Treasure Hunt

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

Start Hunting!

Translated by