|
@@ -233,14 +233,6 @@ print(precision_y)
|
|
|
print(recall_x)
|
|
|
|
|
|
"""
|
|
|
-x = [0.2, 0.4, 0.6, 0.8, 1.0]
|
|
|
-y = [1.0, 0.75, 0.5, 0.25]
|
|
|
-#Y10 = [1, 0.6, 0.4, 0.3, 0.2]
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-Y40 = [1.0, 0.3, 0.2, 0.1, 0]
|
|
|
|
|
|
Yana = []
|
|
|
plt.plot(x, Y40)
|
|
@@ -256,21 +248,12 @@ plt.show()
|
|
|
print('#############################################Accuracy plot###########################################\n\n')
|
|
|
x_new = np.asarray([0.2, 0.4, 0.6, 0.8, 1.0])
|
|
|
|
|
|
-Y10 = [1.01, 0.81, 0.5, 0.4, 0.2]
|
|
|
-Y20 = [1.02, 0.80, 0.51, 0.41, 0.23]
|
|
|
-Y30 = [1.03, 0.82, 0.49, 0.41, 0.19]
|
|
|
-Y40 = [1.04, 0.79, 0.53, 0.43, 0.22]
|
|
|
-YANA_music = [0.71, 0.5, 0.4, 0.3, 0.2]
|
|
|
-YANA_TvEnt = [0.82, 0.6, 0.5, 0.3, 0.2]
|
|
|
-YANA_movie = [0.71, 0.5, 0.4, 0.2, 0.1]
|
|
|
-YANA_doctor = [0.72, 0.4, 0.3, 0.2, 0.1]
|
|
|
-
|
|
|
"""
|
|
|
fig = plt.figure()
|
|
|
ax = plt.subplot(111)
|
|
|
|
|
|
xnew = np.linspace(x_new.min(), x_new.max(), 300) #300 represents number of points to make between T.min and T.max
|
|
|
-spl = make_interp_spline(x_new, Y40, k=2)#BSpline object
|
|
|
+spl = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
#spl1 = make_interp_spline(x_new, YANA_doctor, k=3)#BSpline object
|
|
|
power_smooth = spl(xnew)
|
|
|
#power_smooth1 = spl1(xnew)
|
|
@@ -295,10 +278,10 @@ fig = plt.figure()
|
|
|
ax = plt.subplot(111)
|
|
|
|
|
|
xnew = np.linspace(x_new.min(), x_new.max(), 300) #300 represents number of points to make between T.min and T.max
|
|
|
-#spl = make_interp_spline(x_new, Y10, k=2)#BSpline object
|
|
|
-#spl1 = make_interp_spline(x_new, Y20, k=2)#BSpline object
|
|
|
-#spl2 = make_interp_spline(x_new, Y30, k=2)#BSpline object
|
|
|
-spl3 = make_interp_spline(x_new, Y40, k=2)#BSpline object
|
|
|
+#spl = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
+#spl1 = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
+#spl2 = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
+spl3 = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
#power_smooth = spl(xnew)
|
|
|
#power_smooth1 = spl1(xnew)#
|
|
|
#power_smooth2 = spl2(xnew)
|
|
@@ -382,7 +365,7 @@ print('#############################################comparision with yana#######
|
|
|
fig = plt.figure()
|
|
|
ax = plt.subplot(111)
|
|
|
xnew = np.linspace(x_new.min(), x_new.max(), 300) #300 represents number of points to make between T.min and T.max
|
|
|
-spl = make_interp_spline(x_new, Y40, k=2)#BSpline object
|
|
|
+spl = make_interp_spline(x_new, precision, k=2)#BSpline object
|
|
|
spl1 = make_interp_spline(x_new, YANA_TvEnt, k=2)#BSpline object
|
|
|
|
|
|
power_smooth = spl(xnew)
|