Machine learning the dimension of a Fano variety