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: adds random_state to visualizer tests #60

Merged
merged 1 commit into from
Aug 29, 2017
Merged
Changes from all commits
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
9 changes: 5 additions & 4 deletions q2_sample_classifier/tests/test_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,18 @@ def test_invalids(self):
# test experimental functions
def test_maturity_index(self):
maturity_index(self.temp_dir.name, self.table_ecam_fp, self.md_ecam_fp,
category='month', group_by='delivery', n_jobs=1,
control='Vaginal', test_size=0.4)
category='month', group_by='delivery', random_state=123,
n_jobs=1, control='Vaginal', test_size=0.4)

def test_detect_outliers(self):
detect_outliers(self.table_chard_fp, self.md_chard_fp,
n_jobs=1, contamination=0.05)
random_state=123, n_jobs=1, contamination=0.05)

def test_predict_coordinates(self):
pred, coords = predict_coordinates(
self.table_chard_fp, self.md_chard_fp,
axis1_category='latitude', axis2_category='longitude', n_jobs=1)
axis1_category='latitude', axis2_category='longitude',
random_state=123, n_jobs=1)


md = pd.DataFrame([(1, 'a', 0.11), (1, 'a', 0.12), (1, 'a', 0.13),
Expand Down