EducationalTestingService / skll

SciKit-Learn Laboratory (SKLL) makes it easy to run machine learning experiments.
http://skll.readthedocs.org
Other
552 stars 67 forks source link

Add type hints in`skll.utils` module and in all other remaining files. #736

Closed desilinguist closed 1 year ago

desilinguist commented 1 year ago

This is the last series of type-hinting PRs and will close #561.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 98.71% and no project coverage change.

Comparison is base (9ab864e) 95.20% compared to head (b5e7f86) 95.21%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #736 +/- ## ======================================= Coverage 95.20% 95.21% ======================================= Files 29 29 Lines 3504 3531 +27 ======================================= + Hits 3336 3362 +26 - Misses 168 169 +1 ``` | [Impacted Files](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService) | Coverage Δ | | |---|---|---| | [skll/data/featureset.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC9kYXRhL2ZlYXR1cmVzZXQucHk=) | `91.57% <ø> (ø)` | | | [skll/metrics.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC9tZXRyaWNzLnB5) | `97.08% <96.15%> (-0.83%)` | :arrow_down: | | [skll/data/readers.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC9kYXRhL3JlYWRlcnMucHk=) | `90.42% <100.00%> (+0.06%)` | :arrow_up: | | [skll/data/writers.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC9kYXRhL3dyaXRlcnMucHk=) | `93.65% <100.00%> (ø)` | | | [...utils/commandline/compute\_eval\_from\_predictions.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9jb21wdXRlX2V2YWxfZnJvbV9wcmVkaWN0aW9ucy5weQ==) | `97.50% <100.00%> (+0.31%)` | :arrow_up: | | [skll/utils/commandline/filter\_features.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9maWx0ZXJfZmVhdHVyZXMucHk=) | `98.50% <100.00%> (+0.02%)` | :arrow_up: | | [skll/utils/commandline/generate\_predictions.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9nZW5lcmF0ZV9wcmVkaWN0aW9ucy5weQ==) | `98.68% <100.00%> (+0.01%)` | :arrow_up: | | [skll/utils/commandline/join\_features.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9qb2luX2ZlYXR1cmVzLnB5) | `98.18% <100.00%> (+0.03%)` | :arrow_up: | | [skll/utils/commandline/plot\_learning\_curves.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9wbG90X2xlYXJuaW5nX2N1cnZlcy5weQ==) | `96.42% <100.00%> (+0.13%)` | :arrow_up: | | [skll/utils/commandline/print\_model\_weights.py](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService#diff-c2tsbC91dGlscy9jb21tYW5kbGluZS9wcmludF9tb2RlbF93ZWlnaHRzLnB5) | `95.00% <100.00%> (+0.08%)` | :arrow_up: | | ... and [4 more](https://app.codecov.io/gh/EducationalTestingService/skll/pull/736?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=EducationalTestingService) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.