# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: 'Python 3.9.7 64-bit (''default'': conda)'
#     language: python
#     name: python3
# ---

#Notebook used for generating graphs
import math
import matplotlib.pyplot as plt

# +
averages = [0.003333333333332078, 0.19500000000000028, 0.16333333333332808, 0.005833333333334245, 
0.3899999999999976, 0.5716666666666684, 0.17833333333333368, 0.43249999999999716,
0.3108333333333319, 0.27833333333333304]
vars = [2.2222222222205486e-05, 0.017458333333333007, 0.024755555555555992, 2.4305555555563157e-05,
0.05483333333333348, 0.08706388888888843, 0.04086388888888768, 0.10150208333333195,
0.06345763888888968, 0.02213055555555504]
max = [0.010000000000005116, 0.46000000000000796, 0.519999999999996, 0.010000000000005116, 0.7199999999999989,
1.0600000000000023, 0.789999999999992, 1.1399999999999935, 0.9200000000000159,
0.5999999999999943]
min = [0.0, 0.01999999999999602, 0.0, 0.0, 0.04000000000000625, 0.12999999999999545,
0.020000000000010232, 0.020000000000010232, 0.010000000000005116, 0.020000000000010232]

letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
print(len(averages), len(vars), len(max), len(min), len(letters))

# +
fig, graph = plt.subplots(2, 2)

graph[0, 0].plot(letters, averages)
graph[0, 0].set_title("Averages of differences")

graph[0, 1].plot(letters, vars)
graph[0, 1].set_title("Variances of differences")

graph[1, 0].plot(letters, max)
graph[1, 0].set_title("Max of differences")

graph[1, 1].plot(letters, min)
graph[1, 1].set_title("Min of differences")

fig.tight_layout()
plt.show()

# +
averages = [0.0, 0.08666666666665417, 0.29999999999998295, 0.0, 
0.9166666666666572, 0.6966666666666773, 0.3266666666666633, 0.25, 
0.16666666666666666, 0.6666666666666666]
vars = [0.0, 0.003288888888889601, 0.04246666666666767, 0.0, 
0.17628888888888902, 0.5979555555555666, 0.012688888888890503, 0.02726666666667069, 
0.020355555555552508, 0.18135555555556246]
max = [0.0, 0.1599999999999966, 0.5099999999999909, 0.0, 
1.509999999999991, 1.7900000000000205, 0.4300000000000068, 0.4000000000000057,
0.3599999999999852, 1.210000000000008]
min = [0.0, 0.01999999999998181, 0.01999999999998181, 0.0, 
0.5999999999999943, 0.12999999999999545, 0.1699999999999875, 0.01999999999998181, 
0.020000000000010232, 0.1699999999999875]

letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
print(len(averages), len(vars), len(max), len(min), len(letters))

# +
fig, graph = plt.subplots(2, 2)

graph[0, 0].plot(letters, averages)
graph[0, 0].set_title("Averages of differences")

graph[0, 1].plot(letters, vars)
graph[0, 1].set_title("Variances of differences")

graph[1, 0].plot(letters, max)
graph[1, 0].set_title("Max of differences")

graph[1, 1].plot(letters, min)
graph[1, 1].set_title("Min of differences")

fig.tight_layout()
plt.show()

# +
averages = [0.0018704884164723991, 0.19737247107815808, 0.41033886311660084, 
0.00432467384814896, 0.8768884241660528, 1.0527926659156448, 
0.21003097720397335, 1.0347719888819311, 0.5474882437182174, 0.6398471302463649]
vars = [2.1675815842568814e-05, 0.19879036905256137, 0.818143823601231, 
0.00012778351521944864, 3.6445310345021698, 6.00593081604332, 
0.22940267254883817, 5.752970539766577, 2.0777819481613156, 2.2746220211730397]
max = [0.015333517128397034, 1.622511049087791, 3.168925019621952, 
0.03549198759395722, 6.458266989754634, 8.279940220668493, 
1.519187910127357, 8.339745861654308, 4.735697694834073, 4.776618644931602]
min = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
print(len(averages), len(vars), len(max), len(min), len(letters))

# +
fig, graph = plt.subplots(2, 2)

graph[0, 0].plot(letters, averages)
graph[0, 0].set_title("Averages of differences")

graph[0, 1].plot(letters, vars)
graph[0, 1].set_title("Variances of differences")

graph[1, 0].plot(letters, max)
graph[1, 0].set_title("Max of differences")

graph[1, 1].plot(letters, min)
graph[1, 1].set_title("Min of differences")

fig.tight_layout()
plt.show()

StarcoderdataJupyterScriptsDedupFiltered