Class CoxGradientDiscrete
Object
CoxGradientDiscrete
- All Implemented Interfaces:
Computation<List<DRes<SFixed>>,ProtocolBuilderNumeric>
public class CoxGradientDiscrete extends Object implements Computation<List<DRes<SFixed>>,ProtocolBuilderNumeric>
-
Constructor Summary
Constructors Constructor Description CoxGradientDiscrete(List<SurvivalInfoDiscrete> data, List<DRes<SFixed>> beta)
Compute the gradient of the score function for a Cox model on the given data with coefficients beta and learning rate alpha. -
Method Summary
Modifier and Type Method Description DRes<List<DRes<SFixed>>>
buildComputation(ProtocolBuilderNumeric builder)
-
Constructor Details
-
CoxGradientDiscrete
Compute the gradient of the score function for a Cox model on the given data with coefficients beta and learning rate alpha. The data is assumed to be sorted on the time parameter.- Parameters:
data
-beta
-
-
-
Method Details
-
buildComputation
- Specified by:
buildComputation
in interfaceComputation<List<DRes<SFixed>>,ProtocolBuilderNumeric>
-