Machine learning approach for quantum non-Markovian noise classification