Пример #1
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()
savefig(fig, directory, classname + "_histograms_ecalib_etrue.png")
plt.close()

#ecalib/etrue in function of ecal,hcal
fig = plt.figure(figsize=(10, 5))
usplt.plot_ecalib_over_etrue_functionof_ecal_hcal(KNNGFD, data2)
#plt.show()
savefig(fig, directory,
        classname + "_ecalib_over_etrue_functionof_ecal_hcal.png")
plt.close()

#ecalib/etrue gaussian fit curve
fig = plt.figure(figsize=(10, 10))
usplt.plot_gaussianfitcurve_ecalib_over_etrue_functionof_ecal_hcal(
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()
savefig(fig, directory, classname + "_histograms_ecalib_etrue.png")
savefig(fig, directory, classname + "_histograms_ecalib_etrue.eps")
plt.close()

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

#ecalib/etrue gaussian fit curve
fig = plt.figure(figsize=(12, 10))
fig = plt.figure(figsize=(10, 4))
usplt.plotCalibrationCurve(KNNGC)
#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(KNNGC, 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(KNNGC, data2)
#plt.show()
savefig(fig, directory, classname + "_histograms_ecalib_etrue.png")
plt.close()

#ecalib/etrue in function of ecal,hcal
fig = plt.figure(figsize=(10, 5))
usplt.plot_ecalib_over_etrue_functionof_ecal_hcal(KNNGC, data2)
#plt.show()
savefig(fig, directory,
        classname + "_ecalib_over_etrue_functionof_ecal_hcal.png")
plt.close()

#ecalib/etrue gaussian fit curve
fig = plt.figure(figsize=(10, 12))
usplt.plot_gaussianfitcurve_ecalib_over_etrue_functionof_ecal_hcal(
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()
savefig(fig, directory, classname + "_histograms_ecalib_etrue.png")
savefig(fig, directory, classname + "_histograms_ecalib_etrue.eps")
plt.close()

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

#ecalib/etrue gaussian fit curve
fig = plt.figure(figsize=(12, 10))