Dipòsit Digital de la Universitat de Barcelona : Estimating spectroscopic ages of red-giant stars using #MachineLearning