tempor.methods.time_to_event.plugin_ddh module¶
Dynamic DeepHit survival analysis model.
-
class tempor.methods.time_to_event.plugin_ddh.DynamicDeepHitTimeToEventAnalysisParams(n_iter: int =
1000, batch_size: int =100, lr: float =0.001, n_layers_hidden: int =1, n_units_hidden: int =40, split: int =100, rnn_mode: 'GRU' | 'LSTM' | 'RNN' | 'Transformer' ='GRU', alpha: float =0.34, beta: float =0.27, sigma: float =0.21, dropout: float =0.06, device: str ='cpu', val_size: float =0.1, patience: int =20, output_mode: 'MLP' | 'LSTM' | 'GRU' | 'RNN' | 'Transformer' | 'TCN' | 'InceptionTime' | 'InceptionTimePlus' | 'ResCNN' | 'XCM' ='MLP', random_state: int =0)[source]¶ Bases:
objectNumber of hidden layers in the network.
Number of units for each hidden layer.
-
rnn_mode : Literal[GRU] | Literal[LSTM] | Literal[RNN] | Literal[Transformer] =
'GRU'¶ Internal temporal architecture, one of
RnnMode.
-
alpha : float =
0.34¶ Weighting (0, 1) likelihood and rank loss (L2 in paper). 1 gives only likelihood, and 0 gives only rank loss.
- class tempor.methods.time_to_event.plugin_ddh.DynamicDeepHitTimeToEventAnalysis(**params: Any)[source]¶
Bases:
BaseTimeToEventAnalysis,DDHEmbeddingDynamic DeepHit survival analysis model.
Note
- Current implementation has the following limitations:
Only one output feature is supported (no competing risks).
Risk prediction for time points beyond the last event time in the dataset may throw errors.
- Parameters:¶
- **params : Any
Parameters and defaults as defined in
DynamicDeepHitTimeToEventAnalysisParams.
References
“Dynamic-DeepHit: A Deep Learning Approach for Dynamic Survival Analysis With Competing Risks Based on Longitudinal Data”, Changhee Lee, Jinsung Yoon, Mihaela van der Schaar.
-
category : ClassVar[plugin_typing.PluginCategory] =
'time_to_event'¶ Plugin category, such as
'prediction.one_off.classification'. Must be set by the plugin class using@register_plugin.
-
name : ClassVar[plugin_typing.PluginName] =
'dynamic_deephit'¶ Plugin name, such as
'my_nn_classifier'. Must be set by the plugin class using@register_plugin.
-
plugin_type : ClassVar[plugin_typing.PluginTypeArg] =
'method'¶ Plugin type, such as
'method'. May be optionally set by the plugin class using@register_plugin, else will set the default plugin type.
- ParamsDefinition¶