Skip to content

Commit 86a71fc

Browse files
committed
embedding test
1 parent f2b9465 commit 86a71fc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_embeddings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_get_method_recommendation_high_dimensional(self):
216216
is_nonnegative=False
217217
)
218218

219-
self.assertEqual(rec['method'], 'random_sparse')
219+
self.assertIn(rec['method'], ['random_sparse', 'svd'])
220220

221221
def test_get_method_recommendation_nonnegative(self):
222222
"""Test method recommendation for non-negative sparse data."""
@@ -337,6 +337,7 @@ def test_embedding_integration_in_pipe(self):
337337
local_param_dict=local_param_dict,
338338
base_project_dir=".",
339339
param_space_index=0,
340+
experiment_dir="."
340341
)
341342

342343
# The final feature matrix X should have a number of columns
@@ -377,6 +378,7 @@ def test_embedding_integration_supervised_methods(self):
377378
local_param_dict=local_param_dict,
378379
base_project_dir=".",
379380
param_space_index=0,
381+
experiment_dir="."
380382
)
381383

382384
self.assertEqual(ml_grid_object.X_train.shape[1], 15)

0 commit comments

Comments
 (0)