tirank.Model.RiskscorePredictor
- class tirank.Model.RiskscorePredictor(*args: Any, **kwargs: Any)[source]
Bases:
ModulePrediction head for ‘Cox’ survival analysis.
Predicts a single risk score, applying a sigmoid activation to constrain the output between 0 and 1.
- Parameters:
n_features (int) – Input embedding dimension (from encoder).
nhid (int) – Hidden dimension of the predictor MLP.
nhout (int, optional) – Output dimension. Defaults to 1.
dropout (float, optional) – Dropout value. Defaults to 0.5.