From b17a82023c75abf0d34344e93ddb974f48c180b8 Mon Sep 17 00:00:00 2001 From: Lars Buitinck <L.J.Buitinck@uva.nl> Date: Mon, 30 Apr 2012 17:10:55 +0200 Subject: [PATCH] ENH export f_oneway from feature_selection module + import in test as a user would --- sklearn/feature_selection/__init__.py | 1 + sklearn/feature_selection/tests/test_feature_select.py | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sklearn/feature_selection/__init__.py b/sklearn/feature_selection/__init__.py index e90750c838..446c5527a4 100644 --- a/sklearn/feature_selection/__init__.py +++ b/sklearn/feature_selection/__init__.py @@ -6,6 +6,7 @@ recursive feature elimination algorithm. from .univariate_selection import chi2 from .univariate_selection import f_classif +from .univariate_selection import f_oneway from .univariate_selection import f_regression from .univariate_selection import SelectPercentile from .univariate_selection import SelectKBest diff --git a/sklearn/feature_selection/tests/test_feature_select.py b/sklearn/feature_selection/tests/test_feature_select.py index 684548f849..dd2a824650 100644 --- a/sklearn/feature_selection/tests/test_feature_select.py +++ b/sklearn/feature_selection/tests/test_feature_select.py @@ -2,11 +2,10 @@ Todo: cross-check the F-value with stats model """ -from sklearn.feature_selection.univariate_selection import (f_classif, - f_regression, f_oneway, - SelectPercentile, SelectKBest, - SelectFpr, SelectFdr, SelectFwe, - GenericUnivariateSelect) +from sklearn.feature_selection import (f_classif, f_oneway, f_regression, + SelectPercentile, SelectKBest, + SelectFpr, SelectFdr, SelectFwe, + GenericUnivariateSelect) from nose.tools import assert_true import numpy as np from numpy.testing import assert_array_equal, assert_array_almost_equal -- GitLab