Violin Plot

Another feature of the library is the ability to generate violin plots of the results of the experiments. The following code snippet demonstrates how to generate a violin plot of the results of the experiments:

from SAES.plots.violin import Violin

# Load the data and metrics from the CSV files
data = "swarmIntelligence.csv"
metrics = "multiobjectiveMetrics.csv"

# Show the boxplot instead of saving it on disk
violin = Violin(experimentData, metrics, "HV")
violin.show_instance("ZDT1")

The above code snippet generates a violin plot for the experimental results of the selected problem “ZDT1” and the selected metric “HV.” The plot is not saved in disk and it is just displayed because we are using the show() function. The boxplot should look something similar to this:

NHV boxplot