mbernico / snape

Snape is a convenient artificial dataset generator that wraps sklearn's make_classification and make_regression and then adds in 'realism' features such as complex formating, varying scales, categorical variables, and missing values.
Apache License 2.0
165 stars 21 forks source link

unit tests should exist #2

Closed mbernico closed 7 years ago

mbernico commented 7 years ago

Unit Testing should exist

mbernico commented 7 years ago

Created unit tests for make_dataset.py. Didn't build coverage around file i/o yet.

mbernico commented 7 years ago

Unit tests exist now. They could be better, but they're good enough

mbernico commented 7 years ago

nosetests --with-coverage --cover-package=snape

Name                    Stmts   Miss  Cover
--------------------------------------------
snape.py                     0      0   100%
snape/make_dataset.py       94     36    62%
snape/score_dataset.py      73     28    62%
--------------------------------------------
TOTAL                      167     64    62%