Machine learning the real discriminant locus