Training data is the set of examples a model learns from, and its quality sets the ceiling on how good the finished model can possibly be.
Training data is the collection of examples a model learns from. Everything the model knows comes from it, and nothing else.
This makes it the ceiling on quality. A model trained on biased data is biased. Trained on wrong labels, it learns the wrong thing confidently. No amount of clever architecture fixes bad data.
Think of it like this. Think of a chef who has only ever eaten at one restaurant. They can cook brilliantly in that style and nothing else, and they have no way of knowing what they never tasted.
Training uses labelled examples to set the model's parameters. Inference holds them fixed and applies them to new data.
StandardScaler transforms every value using the same formula: subtract the mean, divide by the standard deviation.
Testing a model on the same data it learned from is like grading your own exam — you will always get 100%, but you have learned nothing.
Train the model on 80% of data, test on 20%, and compare R² scores — if both are similar, your model generalises well.