-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
972 changed files
with
97,289 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import matplotlib.pyplot as plt | ||
import pandas | ||
import seaborn as sns | ||
import scipy.spatial as sp, scipy.cluster.hierarchy as hc | ||
from sklearn.metrics.pairwise import pairwise_distances | ||
|
||
plt.style.use("bmh") | ||
|
||
|
||
def main(): | ||
columns = [ | ||
"io.archspec.cpu.target", | ||
"org.supercontainers.os.vendor", | ||
"org.supercontainers.os.version", | ||
"org.supercontainers.hardware.gpu.available", | ||
"mpi.implementation", | ||
] | ||
df = pandas.DataFrame(columns=columns) | ||
|
||
# Add each row manually | ||
rows = ["platform", "os", "os-version", "descriptive"] | ||
df.loc["platform", :] = [1, 0, 0, 0, 0] | ||
df.loc["os", :] = [1, 1, 0, 0, 0] | ||
df.loc["os-version", :] = [1, 1, 1, 0, 0] | ||
df.loc["descriptive", :] = [1, 1, 1, 1, 0] | ||
|
||
dist = pandas.DataFrame(pairwise_distances(df, metric="cosine")) | ||
# Needs rto be absolute 0 | ||
for i in range(dist.shape[0]): | ||
dist.loc[i, i] = 0 | ||
|
||
linkage = hc.linkage(sp.distance.squareform(dist), method="average") | ||
dist.columns = rows | ||
dist.index = rows | ||
fig = sns.clustermap(dist, row_linkage=linkage, col_linkage=linkage, cmap="mako") | ||
# plt.title("Compatibility Gradient (Cosine Distance)") | ||
plt.setp(fig.ax_heatmap.yaxis.get_majorticklabels(), rotation=0) | ||
fig.savefig("compatibility-matrix.png") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
Binary file added
BIN
+39.8 KB
...erator/img/amd64/lammps-decriptive-basic_lammps-descriptive-basic-wall-time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47 KB
...iment/flux-operator/img/amd64/lammps-reasons-failure_lammps-reasons-failure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43 KB
experiment/flux-operator/img/amd64/lammps-success-runs_lammps-success-runs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.