ML project phases and hyperparameters

The lifecycle

Business problem, ML problem framing, data collection and preparation, feature engineering, model training and tuning, evaluation, testing and deployment, monitoring and debugging, retrain with new data. Loop until business goals are met, then keep looping anyway: requirements and data drift.

Hyperparameters

Settings external to the data, fixed before training: they define the model structure and learning process.

Tuning is searching for the best values: grid search, random search, or SageMaker Automatic Model Tuning.

When not to use ML

For deterministic problems where the answer can simply be computed (the probability of drawing a blue card from a known deck), write normal code.

ML or an LLM gives you an approximation of something you could have had exactly.