def test_detect_outliers_with_subsets(self): detect_outliers(self.table_chard_fp, self.md_chard_fp, random_state=123, n_jobs=1, contamination=0.05, subset_column='Vineyard', subset_value=1)
def test_detect_outliers_raise_error_on_missing_subset_data(self): with self.assertRaisesRegex(ValueError, "must both be provided"): detect_outliers(self.table_chard_fp, self.md_chard_fp, random_state=123, n_jobs=1, contamination=0.05, subset_column='Vineyard', subset_value=None) with self.assertRaisesRegex(ValueError, "must both be provided"): detect_outliers(self.table_chard_fp, self.md_chard_fp, random_state=123, n_jobs=1, contamination=0.05, subset_column=None, subset_value=1)
def test_detect_outliers(self): detect_outliers(self.table_chard_fp, self.md_chard_fp, n_jobs=1, contamination=0.05)