def plot_accuracy(x, y, x_legend):
 x = np.array(x)
 y = np.array(y)
 plt.title(('Classification accuracy as a function of %s' % x_legend))
 plt.xlabel(('%s' % x_legend))
 plt.ylabel('Accuracy')
 plt.grid(True)
 plt.plot(x, y)

def plot_accuracy ( x , y , x_legend ) : x = np . array ( x ) y = np . array ( y ) plt . title ( ( 'Classification accuracy as a function of %s' % x_legend ) ) plt . xlabel ( ( '%s' % x_legend ) ) plt . ylabel ( 'Accuracy' ) plt . grid ( True ) plt . plot ( x , y )
plot accuracy as a function of x .