Inferring the neutron star equation of state using Machine Learning methods