Accurate nuclear quantum statistics on machine-learned classical effective potentials