MCPcopy Create free account
hub / github.com/MarcCoru/locationencoder / plot_comp

Function plot_comp

experiments/exp_computation.py:147–161  ·  view source on GitHub ↗
(df, ydim="test_duration")

Source from the content-addressed store, hash-verified

145 plt.show()
146
147def plot_comp(df, ydim="test_duration"):
148 import matplotlib.pyplot as plt
149 fig, ax = plt.subplots()
150
151 pes = df.pe.unique()
152 for pe in pes:
153 df_pe = df.loc[df.pe == pe]
154
155 df_ = df_pe.set_index("poly")[ydim].sort_index()
156 ax.plot(df_.index, df_.values, "o-")
157
158 ax.legend(pes)
159 ax.set_xlabel("legendre polynomials")
160 ax.set_ylabel(ydim)
161 plt.show()
162
163def main():
164 results_dir = 'results/train/exp_computation'

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected