Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TST] Add test docstrings to ml, biology, chemistry modules #649

Merged
merged 6 commits into from
Apr 1, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add test docstrings to ml
  • Loading branch information
hectormz committed Mar 31, 2020
commit 0b26e3021adafbad888d5ad37b21ddea1f81f042
3 changes: 3 additions & 0 deletions tests/ml/test_get_features_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@pytest.mark.ml
@given(df=df_strategy())
def test_get_features_targets(df):
"""Tests one column returned as target and rest as features."""
X, y = df.clean_names().get_features_targets(
target_column_names="bell_chart"
)
Expand All @@ -18,6 +19,7 @@ def test_get_features_targets(df):
@pytest.mark.ml
@given(df=df_strategy())
def test_get_features_targets_multi_features(df):
"""Tests one column returned as target and two as features."""
X, y = df.clean_names().get_features_targets(
feature_column_names=["animals@#$%^", "cities"],
target_column_names="bell_chart",
Expand All @@ -29,6 +31,7 @@ def test_get_features_targets_multi_features(df):
@pytest.mark.ml
@given(df=df_strategy())
def test_get_features_target_multi_columns(df):
"""Tests two columns returned as target and rest as features."""
X, y = df.clean_names().get_features_targets(
target_column_names=["a", "bell_chart"]
)
Expand Down