In the formula below, could one understand $y^{(i)}$ as $y_i$ ? If not, what is the fundamental difference ?
$$ j(\theta_0, \theta_1) = \frac{1}{2m}\sum_{i=1}^m(h_{\theta}(x^{(i)})-y^{(i)})^2 $$
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.
Sign up to join this communityYou are correct, the $i$ superscript simply denotes an index of a single observation/sample in the dataset. $y^{(i)}$ then refers to the output/label of a single sample and $h_\theta(x^{(i)})$ is the model's prediction for a specific input.