Skip to content
Advertisement

Normalize two arrays with second array the base for normalizing first array

In order to find the quality indicators like Generational Distance, Inverted Generational Distance, Epsilon Indicator, and HyperVolume for a Pareto front I want to normalize the values of approximation front obtained on solving the algorithm based on reference front which I assume encloses the approximation front.

JavaScript

I have used the code below for normalization. However, it is for one array at a time

JavaScript

Here, approximation front and reference front are normalized separately. Can we normalize the approximate front between 0 to 1 based on max and min values of reference front.

Advertisement

Answer

After applying fit_transform, you can simply use transform. This will use the ‘fit’ from the fit_transform call. In your case

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement