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 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

      public DRes<List<DRes<SFixed>>> buildComputation​(ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface Computation<List<DRes<SFixed>>,​ProtocolBuilderNumeric>