Porosity prediction: Supervised-learning of thermal history for direct laser deposition