Machine learning narrows down the enormous search space for functional materials