Morphology of three-body quantum states from machine learning