Filter löschen
Filter löschen

How to apply a zero mean scaling in another set ?

4 Ansichten (letzte 30 Tage)
Andre
Andre am 30 Jan. 2015
Beantwortet: David Young am 30 Jan. 2015
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) ?

Antworten (1)

David Young
David Young am 30 Jan. 2015
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;
?

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by