def pearson(y_true, y_pred):
    ret_score = pearsonr(y_true, y_pred)[0]
    return ret_score if not np.isnan(ret_score) else 0.0
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open EducationalTestingService/skll/skll/metrics.py/pearson--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/vfs/encoded_stream_file_system.py/EncodedStreamFileSystemTest.setUp