How to lower MSE in a function approximation problem?
1 回表示 (過去 30 日間)
古いコメントを表示
I've got 2 matrices (X and Y). The matrix X: contains 10000 rows what means a 9 dimensional input. The matrix Y: This contains the output. So we'we got 10000 sample points.
(For example: for [10000, 9, 7842.2, 2588.8, 0.3301, 69.627, 1.0575e+06, 106.75, 4264.4, 74, 34.915] this input the output is 13.895)
This is my code so far:
%This is how I create a net
load('Givenmatrices.mat');
tx = x';
ty = y';
net = newff(tx,ty,100);
net = train(net,tx,ty);
save('net', 'net');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%And I've got this funcion:
function y = funcApprox(x)
load net
tx = x';
y = sim(net,tx);
return
How can I get a resut with less MSE if I test it at random points? With this I get around 24.
2 件のコメント
John D'Errico
2016 年 3 月 17 日
編集済み: John D'Errico
2016 年 3 月 17 日
Please attach your code. Sending us to another site is not advised, and there is no reason to do so since attaching the code is so trivial.
Regardless, lowering the error may require that you choose a more intelligent model. For that, we cannot even know, since we do not see your data, nor know anything about the data, and what process generated it.
So if you wish a reasonable help, we would need to be given the data, as well as your code for modeling it, as well as any other information about the process that generated it.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!