Solved by sh0416 in post #2 
              
              
                In this case, I recommend you use the scikit-learn package for computing some evaluation metric. 
It would be great unless you have to accelerate the evaluation process due to the large data.