Envoyer par SMS: Automated stopping criterion for spectral measurements with active learning