-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGMCA_plot_main.py
More file actions
45 lines (33 loc) · 1.41 KB
/
GMCA_plot_main.py
File metadata and controls
45 lines (33 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 7 15:32:40 2025
@author: Victoria Johnson
"""
import numpy as np
import pandas as pd
from GMCA_plotting_functions import plot_scatter_exploded, plot_boxplot_funding, plot_3d_scatter, plot_boxplot_percentages, plot_key_parcoord, violin_plot, get_max_min
from plot_hypervolume_progress import get_median_hypervolume
def plot_results_fcn(F, X, u_transformed):
# Plotting funding for each of the subsystems
plot_boxplot_funding(X)
# Plotting objective space for nondominated solutions
plot_3d_scatter(F)
# Boxplot for post-optimisation PLW and SQ % points
plot_boxplot_percentages(u_transformed)
# Plot exploded scatter plot for objective-space solutions
plot_scatter_exploded(F)
# Plot parallel coordinate plot for key solutions
plot_key_parcoord(F, X)
# Plot violin plot for funding
violin_plot(X)
if __name__ == "__main__":
rep_no = get_median_hypervolume()
F = np.array(pd.read_csv(f'Results/rep{str(rep_no)}_F.csv'))
X = np.array(pd.read_csv(f'Results/rep{str(rep_no)}_X.csv'))
PLW = np.array(pd.read_csv(f'Results/rep{str(rep_no)}_PLW.csv'))
SAQ = np.array(pd.read_csv(f'Results/rep{str(rep_no)}_SAQ.csv'))
u_transformed = np.zeros((X.shape[0], 20))
u_transformed[:, 0:20:2] = PLW
u_transformed[:, 1:20:2] = SAQ
plot_results_fcn(F, X, u_transformed)
get_max_min()