Class CoxRegressionDiscrete
Object
CoxRegressionDiscrete
- All Implemented Interfaces:
Computation<List<DRes<SFixed>>,ProtocolBuilderNumeric>
public class CoxRegressionDiscrete extends Object
Estimate the coefficients of a Cox model on the given data using gradient descent.
-
Constructor Summary
Constructors Constructor Description CoxRegressionDiscrete(List<SurvivalInfoDiscrete> data, int iterations, double alpha, double[] beta)Estimate the coefficients of a Cox model on the given data using gradient descent. -
Method Summary
Modifier and Type Method Description DRes<List<DRes<SFixed>>>buildComputation(ProtocolBuilderNumeric builder)
-
Constructor Details
-
CoxRegressionDiscrete
public CoxRegressionDiscrete(List<SurvivalInfoDiscrete> data, int iterations, double alpha, double[] beta)Estimate the coefficients of a Cox model on the given data using gradient descent.- Parameters:
data- The data.iterations- The number of iterations.alpha- The learning rate.beta- The initial guess.
-
-
Method Details
-
buildComputation
- Specified by:
buildComputationin interfaceComputation<List<DRes<SFixed>>,ProtocolBuilderNumeric>
-