Skip to content

Commit

Permalink
fixed vls tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Xu authored and Alex Xu committed Feb 12, 2020
1 parent 1fa145c commit 97fc98a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion skrebate/vlsrelief.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class VLSRelief(BaseEstimator, TransformerMixin):
"""

def __init__(self, core_algorithm, n_features_to_select=2, n_neighbors=100, num_feature_subset=30, size_feature_subset=10, discrete_threshold=10, verbose=False, n_jobs=1):
def __init__(self, core_algorithm, n_features_to_select=2, n_neighbors=100, num_feature_subset=20, size_feature_subset=10, discrete_threshold=10, verbose=False, n_jobs=1):
"""Sets up VLSRelief to perform feature selection.
Parameters
Expand Down
4 changes: 2 additions & 2 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ def test_vlsrelief_init():
assert clf.discrete_threshold == 20
assert clf.verbose == True
assert clf.n_jobs == 3
assert clf.num_feature_subset == 40
assert clf.size_feature_subset == 5
assert clf.num_feature_subset == 20
assert clf.size_feature_subset == 10


# Basic Parallelization Tests and Core binary data and discrete feature data testing (Focus on ReliefF only for efficiency)------------------------------------------------------------
Expand Down

0 comments on commit 97fc98a

Please sign in to comment.