Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
CSR for variable length data in embedding training (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Nov 2, 2018
1 parent 8b7d53e commit 205acce
Show file tree
Hide file tree
Showing 21 changed files with 2,168 additions and 2,112 deletions.
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import pytest


# * Random seed setup
def pytest_configure():
"""Pytest configuration hook to help reproduce test segfaults
Expand Down Expand Up @@ -180,3 +181,9 @@ def test_not_ok_with_random_data():
logging.info(seed_message)

np.random.set_state(post_test_state)


# * Shared test fixtures
@pytest.fixture(params=[True, False])
def hybridize(request):
return request.param
2 changes: 1 addition & 1 deletion docs/api/model.train.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Word Embeddings
:nosignatures:

EmbeddingModel
SimpleEmbeddingModel
CSREmbeddingModel
FasttextEmbeddingModel


Expand Down
Loading

0 comments on commit 205acce

Please sign in to comment.