Hello,
Is it possible to provide line by line description/comment for the following function in ml/machine_learning/decision_trees.ipynb example:
Function Name: plot_regression_predictions(…)
Especially., i don’t understand following code:
- Parameter ylabel="$y$"
- plt.axis(axes)
- plt.xlabel("$x_1$", fontsize=18)
- if ylabel:
plt.ylabel(ylabel, fontsize=18, rotation=0) - plt.plot(X, y, “b.”)
plt.plot(x1, y_pred, “r.-”, linewidth=2, label=r"$\hat{y}$")
Thanks,
Rakesh