Projection-based model reduction: Formulations for physics-based machine learning