Skip to content

Instantly share code, notes, and snippets.

@mbednarski
Created June 10, 2017 12:37
Show Gist options
  • Save mbednarski/2a93ec3661fc9709a1d6bc9c5eed9ca8 to your computer and use it in GitHub Desktop.
Save mbednarski/2a93ec3661fc9709a1d6bc9c5eed9ca8 to your computer and use it in GitHub Desktop.
from src.data import read_raw_data, preprocess_data, get_featues, get_label
def test_raw_shape():
dframe = read_raw_data()
assert dframe.shape == (150, 5)
def test_get_features_shape():
dframe = read_raw_data()
processed = preprocess_data(dframe)
features = get_featues(processed)
label = get_label(processed)
assert features.shape == (150, 4)
assert label.shape == (150,)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment