Error weights, specified as a vector, matrix, or cell array.
Error weights can be defined by sample, output element, time step, or network
output:
ew = [1.0 0.5 0.7 0.2]; % Across 4 samples
ew = [0.1; 0.5; 1.0]; % Across 3 elements
ew = {0.1 0.2 0.3 0.5 1.0}; % Across 5 timesteps
ew = {1.0; 0.5}; % Across 2 outputs
The error weights can also be defined across any combination, such as across two
time-series (i.e., two samples) over four timesteps.
ew = {[0.5 0.4],[0.3 0.5],[1.0 1.0],[0.7 0.5]};
In the general case, error weights may have exactly the same dimensions as targets,
in which case each target value will have an associated error weight.
The default error weight treats all errors the same.