Organize training and prediction code as a small package. The training function saves a model file, and the prediction function loads that file to predict new samples. What to do: complete train_and_save and load_and_predict. Note: use scikit-learn LogisticRegression. The save path is passed as an argument.
Save and reload a model while keeping the data handling path consistent before prediction.
Serving code needs more than a model file; it also needs the incoming data shape to match what the model expects.