Skip to content

Commit bebfd03

Browse files
committed
remove memory efficiency test
1 parent 8ca0c54 commit bebfd03

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tests/test_sefr.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -457,28 +457,6 @@ def test_breast_cancer_dataset():
457457
assert score > 0.5 # Should be better than random guessing
458458

459459

460-
def test_memory_efficiency():
461-
"""Test that SEFR doesn't consume excessive memory."""
462-
# This is a basic test - in practice you might want more sophisticated memory profiling
463-
X, y = make_classification(
464-
n_samples=1000,
465-
n_features=20,
466-
n_redundant=0,
467-
random_state=42,
468-
n_clusters_per_class=1,
469-
)
470-
471-
sefr = SEFR()
472-
sefr.fit(X, y)
473-
474-
# Check that the model doesn't store the training data
475-
assert not hasattr(sefr, "X_")
476-
assert not hasattr(sefr, "y_")
477-
478-
# Check that coefficients are reasonably sized
479-
assert sefr.coef_.nbytes < 1000 # Should be small for 20 features
480-
481-
482460
def test_different_class_labels():
483461
"""Test with different types of class labels."""
484462
X = np.array([[1, 2], [3, 4], [5, 6], [7, 8]])

0 commit comments

Comments
 (0)