ehrapy.ml.LSTM#
- class ehrapy.ml.LSTM(*, trainer=Trainer(max_epochs=100, batch_size=128, learning_rate=0.001, weight_decay=0.0001, patience=10, class_weight=None, device='auto'), hidden_size=64, num_layers=1, dropout=0.1)[source]#
Long short-term memory network on the time series of the variables, whether they were observed and the time since their last observation.
Examples
>>> import ehrapy as ep >>> model = ep.ml.LSTM(hidden_size=32)
Attributes table#
Probability of dropping a unit while training. |
|
Number of hidden units. |
|
Number of stacked recurrent layers. |
|
Whether the model reads the time series of variables instead of their summaries. |
|
How the model is trained. |
Methods table#
Attributes#
Number of hidden units.