updating kde labels in plots
This commit is contained in:
parent
517686eea1
commit
1a1bccdd23
|
@ -89,6 +89,7 @@ for class_name in CLASS_NAMES:
|
||||||
stds = np.asarray(stds)
|
stds = np.asarray(stds)
|
||||||
|
|
||||||
method_name = method_name.replace('NaiveQuery', 'Naive@$k$')
|
method_name = method_name.replace('NaiveQuery', 'Naive@$k$')
|
||||||
|
method_name = method_name.replace('KDEy-ML', 'KDEy')
|
||||||
marker = next(markers)
|
marker = next(markers)
|
||||||
line = ax.plot(Ks, means, 'o-', label=method_name, color=None, linewidth=3, markersize=10, marker=marker)
|
line = ax.plot(Ks, means, 'o-', label=method_name, color=None, linewidth=3, markersize=10, marker=marker)
|
||||||
color = line[-1].get_color()
|
color = line[-1].get_color()
|
||||||
|
|
|
@ -54,6 +54,7 @@ for class_name in CLASS_NAMES:
|
||||||
|
|
||||||
style = 'o-' if method_name != 'CC' else '--'
|
style = 'o-' if method_name != 'CC' else '--'
|
||||||
method_name = method_name.replace('NaiveQuery', 'Naive@$k$')
|
method_name = method_name.replace('NaiveQuery', 'Naive@$k$')
|
||||||
|
method_name = method_name.replace('KDEy-ML', 'KDEy')
|
||||||
marker=next(markers)
|
marker=next(markers)
|
||||||
line = ax.plot(X_DATA_SIZES, means, style, label=method_name, color=None, linewidth=3, markersize=10, marker=marker)
|
line = ax.plot(X_DATA_SIZES, means, style, label=method_name, color=None, linewidth=3, markersize=10, marker=marker)
|
||||||
color = line[-1].get_color()
|
color = line[-1].get_color()
|
||||||
|
|
Loading…
Reference in New Issue