Inference is running a trained model on new data to get a prediction, without changing the model at all.
Training uses labelled examples to set the model's parameters. Inference holds them fixed and applies them to new data.
A decision tree asks a series of yes/no questions about your data and follows the answers to a prediction.
Learn how giants like YouTube use smart prediction to cache content before anyone asks for it.
Before we explore where to cache, let's understand when caching can be dangerous and why some data should never be cached.
The simplest distribution method. Requests cycle through servers in order: Server 1, Server 2, Server 3, back to Server 1. Fair and predictable.
Inference is using a trained model to make a prediction on new data. The model does not change during inference. It only applies what it already learned.
Training and inference are two different jobs with different economics. Training happens rarely and costs a lot. Inference happens on every request forever, which is where the real bill accumulates.
Think of it like this. Think of the difference between studying for a licence and driving a car. The studying was expensive and finished. The driving happens every day and is what the licence was for.