Data Science, Regularization, Machine Learning, Editors Pick, Hands On Tutorials.
plt.subplots(figsize=(12, 7)) # removing to and right border ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) # adding major gridlines ax.grid(color='grey', linestyle='-', linewidth=0.25, alpha=0.5) # axis labels ax.set_xlabel(r'$\lambda$') ax.set_ylabel('RMSE')