usplt.plot3D_training(data1)
plt.show()
savefig(fig, directory, classname + "_plot3D_training.png")
plt.close()

#plot 3D surface calibration
fig = plt.figure(1, figsize=(6, 4))
usplt.plot3D_surf(LinearRegression)
plt.show()
savefig(fig, directory, classname + "_plot3D_surf.png")
savefig(fig, directory, classname + "_plot3D_surf.eps")
plt.close()

#courbe de calibration pour ecal = 0
fig = plt.figure(figsize=(12, 4))
usplt.plotCalibrationCurve(LinearRegression)
plt.show()
savefig(fig, directory, classname + "_calibration.png")
plt.close()

#ecalib/true in function of etrue
fig = plt.figure(figsize=(12, 4))
usplt.plot_ecalib_over_etrue_functionof_etrue(LinearRegression, data2)
plt.show()
savefig(fig, directory, classname + "_ecalib_over_etrue.png")
plt.close()

#histogram of ecalib and etrue
fig = plt.figure(figsize=(12, 5))
usplt.hist_ecalib(LinearRegression, data2)
plt.show()
Example #2
0
fig = plt.figure(1, figsize=(5, 4))
usplt.plot3D_training(data1)
#plt.show()
savefig(fig, directory, classname + "_plot3D_training.png")
plt.close()

#plot 3D surface calibration
fig = plt.figure(1, figsize=(5, 4))
usplt.plot3D_surf(KNNGFD)
#plt.show()
savefig(fig, directory, classname + "_plot3D_surf.png")
plt.close()

#courbe de calibration pour ecal = 0
fig = plt.figure(figsize=(10, 4))
usplt.plotCalibrationCurve(KNNGFD)
#plt.show()
savefig(fig, directory, classname + "_calibration.png")
plt.close()

#ecalib/true in function of etrue
fig = plt.figure(figsize=(10, 4))
usplt.plot_ecalib_over_etrue_functionof_etrue(KNNGFD, data2)
#plt.show()
savefig(fig, directory, classname + "_ecalib_over_etrue.png")
plt.close()

#histogram of ecalib and etrue
fig = plt.figure(figsize=(10, 6))
usplt.hist_ecalib(KNNGFD, data2)
#plt.show()
usplt.plot3D_training(data1)
plt.show()
savefig(fig, directory, classname + "_plot3D_training.png")
plt.close()

#plot 3D surface calibration
fig = plt.figure(1, figsize=(6, 4))
usplt.plot3D_surf(CalibrationLego)
plt.show()
savefig(fig, directory, classname + "_plot3D_surf.png")
savefig(fig, directory, classname + "_plot3D_surf.eps")
plt.close()

#courbe de calibration pour ecal = 0
fig = plt.figure(figsize=(12, 4))
usplt.plotCalibrationCurve(CalibrationLego)
plt.show()
savefig(fig, directory, classname + "_calibration.png")
plt.close()

#ecalib/true in function of etrue
fig = plt.figure(figsize=(12, 4))
usplt.plot_ecalib_over_etrue_functionof_etrue(CalibrationLego, data2)
plt.show()
savefig(fig, directory, classname + "_ecalib_over_etrue.png")
plt.close()

#histogram of ecalib and etrue
fig = plt.figure(figsize=(12, 5))
usplt.hist_ecalib(CalibrationLego, data2)
plt.show()