updated iterative_fitter_monitor.py

This commit is contained in:
titusquah
2020-07-14 21:58:46 -06:00
parent dedf9d7acb
commit f933a8bd81
3 changed files with 37 additions and 9 deletions

View File

@@ -2,7 +2,6 @@ from scipy.optimize import curve_fit
import llepe
import pandas as pd
import numpy as np
import json
def linear(x, a, b):

View File

@@ -13,6 +13,25 @@ while go == 'y':
if parameter in col:
info_cols[parameter].append(col)
for parameter in parameters:
mini_df = df[info_cols[parameter]]
fig, ax = plt.subplots()
ax.title
ax.set_title(parameter)
for col in info_cols[parameter]:
ax.plot(df['iters'].values,
df[col].values,
label=col,
linestyle='-',
marker='o')
ax.set_xlabel('iteration')
ax.set_ylabel('Value')
plt.legend()
plt.show()
fig, ax = plt.subplots()
ax.set_title('best_obj_value')
ax.plot(df['iters'].values,
df['best_obj'].values,
linestyle='-',
marker='o')
ax.set_xlabel('iteration')
ax.set_ylabel('Value')
plt.show()