Skip to content

Commit

Permalink
fix test 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
v1docq committed Oct 24, 2024
1 parent dad8f92 commit 5bef95f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,25 @@ def test_reduce_feature_space():
features = get_features()
cls = FeatureSpaceReducer()
result = cls.reduce_feature_space(features=features)
assert isinstance(result, np.array)
assert result is not None


def test_reduce_feature_space_stable():
features = get_features(add_stable=True)
cls = FeatureSpaceReducer()
result = cls.reduce_feature_space(features=features)
assert isinstance(result, np.array)
assert result is not None


def test__drop_correlated_features():
features = get_features(add_stable=True)
cls = FeatureSpaceReducer()
result = cls._drop_correlated_features(corr_threshold=0.99, features=features)
assert isinstance(result, np.array)
assert result is None


def test__drop_stable_features():
features = get_features(add_stable=True)
cls = FeatureSpaceReducer()
result = cls._drop_stable_features(var_threshold=0.99, features=features)
assert isinstance(result, np.array)
result = cls._drop_constant_features(var_threshold=0.99, features=features)
assert result is not None

0 comments on commit 5bef95f

Please sign in to comment.