Best way to generate fitness landscape when using higher dimensional data

I'm using a GA to find the best set of parameters to maximize a fitness function. I want to draw a fitness landscape to visualize the effectiveness of the algorithm. The fitness function, calculated using a DNN, has 8 input variables. The landscape I want to plot is 3 dimensional (x,y,fitness). What data should I assign to the x and y axes? Or should I avoid such a plot entirely? Which other types of plots would be better?

• Can you clarify what you mean by "The landscape I want to plot is 3 dimensional"? Why is it 3d? How can we know what you should assign to x and y, if we don't actually know what these axes are supposed to represent in your context? Are your individuals 2d points? If yes, then having a 3d fitness landscape may make sense.
– nbro
Jul 18, 2023 at 10:26
• @nbro the individuals have 8 dimensions. Thats why I wasn't sure how to plot them on 2 axis. Thank you, Jul 18, 2023 at 21:52

I understood your question as being "I have a fitness function based on 8 parameters" how can I display that graphically.

Visualising a multi-dimensional landscape is a hard problem. If you convert it to some kind of 3d plot you are inevitably losing information. It would help to consider what you are actually trying to achieve by doing so. Do you have a practical use for the plot or is it just a bright shiny.

If you want to show something specific such as how one algorithm is better than another, you may be better off trying to visualise something else entirely. Commonly you can look at the average fitness over time instead.

A better algorithm is typically one that increases fitness more quickly and/or with fewer resources.

So you could plot fitness by time by population with different coloured lines for each algorithm variation say.

That said if you really want to visualise the fitness landscape:

You could also try:

Dimensionality Reduction

You could try [dimensionality reduction](Dimensionality reduction) to reduce the number of parameters down to something you can plot.

Identify dimensions with the most interesting properties

Look at which dimensions have the most intersting changes over time

Plot individual dimensions

Create multiple plots for different interesting pairs fo dimensions

Innovate ways to plot other dimensions

Why stick with 3D? Consider using:

• colour
• size
• texture