Physics Guided Machine Learning Algorithm For Max-Doas Retrieval