Revision

Back to ML System Design


Introduction


Framing



For example (from CS329 lecture 2), predicting the next app a user will use is complex in multiclass framework as each time an app is added or removed the model must be retrained. In multilabel framework it is much easier just by taking the app with max probability: in this framework the number of apps does not impact the model.


Objectives

ML objectives:


Business objectives:


Business objectives can be:


Also sometimes a model should optimise different objectives. In this case 2 options are possible:

It is better to make on model per objective and then to weight their decision for the final decision instead of a model that optimises a weighted loss. Using one model per objective, if the weights of each objective changes it is easy to update the prediction without retraining the model:

\[loss_{total} = \sum_{i=1}^N \alpha_i loss_{obj_i}\]


Constraints

Time & Budget:


Tradeoff Time & Budget:


Privacy:


Technical constrains:


Resources

See: