Class LogisticRegressionWorker

  • All Implemented Interfaces:
    ml.shifu.guagua.worker.WorkerComputable<LogisticRegressionParams,​LogisticRegressionParams>

    public class LogisticRegressionWorker
    extends ml.shifu.guagua.worker.AbstractWorkerComputable<LogisticRegressionParams,​LogisticRegressionParams,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,​ml.shifu.guagua.hadoop.io.GuaguaWritableAdapter<org.apache.hadoop.io.Text>>
    LogisticRegressionWorker defines logic to accumulate local logistic regression gradients.

    At first iteration, wait for master to use the consistent initiated model.

    At other iterations, workers include:

    • 1. Update local model by using global model from last step..
    • 2. Accumulate gradients by using local worker input data.
    • 3. Send new local gradients to master by returning parameters.
    • Constructor Detail

      • LogisticRegressionWorker

        public LogisticRegressionWorker()