EducationalTestingService / EducationalTestingService/rsmtool

Capture incorrect input to correlations

Open
#365 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
71
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Currently in `correlation_helper` we let `pearsonr` return np.nan if the input has zero variance which leads to RunTime warnings.
We should check for these and return np.nan ourselves with a helpful message in a UserWarning.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.