Skip to content

Commit

Permalink
fix: test removing raise error test
Browse files Browse the repository at this point in the history
  • Loading branch information
yue.jiao committed Dec 18, 2024
1 parent 2f3e9fa commit 739a90c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sklearnex/manifold/tests/test_tsne.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ def test_basic_tsne_functionality():
with pytest.raises(ValueError):
TSNE(n_components=2).fit(X_invalid)

# Edge Case: Perplexity Larger Than n_samples
X_small = np.random.rand(5, 2) # 5 samples
with pytest.raises(ValueError) as excinfo:
TSNE(n_components=2, perplexity=10).fit(X_small)
assert "perplexity must be less than n_samples" in str(
excinfo.value
), "Large perplexity did not trigger expected ValueError."

# Edge Case: Sparse-Like High-Dimensional Data
np.random.seed(42)
X_sparse_like = np.random.rand(50, 10000) * (np.random.rand(50, 10000) > 0.99)
Expand Down

0 comments on commit 739a90c

Please sign in to comment.