-------------------
Added
^^^^^
* `senwu`_: Add ``SparseLSTM`` support reducing the memory used by the LSTM
for large applications.
(`175 <https://github.com/HazyResearch/fonduer/pull/175>`_)
.. note::
With the SparseLSTM discriminative model, we save memory for the origin
LSTM model while sacrificing runtime. In Fonduer v0.3.5, SparseLSTM is as
follows:
.. code:: python
from fonduer.learning import SparseLSTM
disc_model = SparseLSTM()
disc_model.train(
(train_cands, train_feature), train_marginals, n_epochs=5, lr=0.001
)
Fixed
^^^^^
* `senwu`_: Fix issue with ``get_last_documents`` returning the incorrect
number of docs and update the tests.
(`176 <https://github.com/HazyResearch/fonduer/pull/176>`_)
* `senwu`_: Use the latest MeTaL syntax and fix flake8 issues.
(`173 <https://github.com/HazyResearch/fonduer/pull/173>`_)