changed the score function from precision_score to accuracy_score since the defult parameter of the later is more complex.
Backward compatibility: Support older skl version for accuracy score