How to apply a zero mean scaling in another set ?
3 ビュー (過去 30 日間)
古いコメントを表示
I did a zero mean scaling:
x_mean = mean(input);
x_out=input-x_mean;
Scaling the output by maximum:
x_max = max(abs(x_out)); %Saving maximum values of each transformation.
x_out=x_out/x_max; %applying the maximum scaled.
How can I apply the scaling in another datset (like a test set) ?
0 件のコメント
回答 (1 件)
David Young
2015 年 1 月 30 日
I'm not sure I understand the question, because the answer seems so simple, but assuming that input is a vector, so x_mean and x_max are scalars, do you just want
test_out = (test - x_mean) / x_max;
?
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!