1
I would like to show X-axis only integer values of K: k in range(20)
import matplotlib.pyplot as plt
%matplotlib inline
X = [k for k in range(20)]
y = rmse_val
plt.plot(X,y,color='green' , marker='o', markersize=2, linestyle='--', linewidth=2)
However, the above graph looked like this:
What to change for X-axis display integer values from 1 to 19?