Class LogisticRegressionMaster

  • All Implemented Interfaces:
    ml.shifu.guagua.master.MasterComputable<LogisticRegressionParams,​LogisticRegressionParams>

    public class LogisticRegressionMaster
    extends ml.shifu.guagua.master.AbstractMasterComputable<LogisticRegressionParams,​LogisticRegressionParams>
    LogisticRegressionMaster defines logic to update global logistic regression model.

    At first iteration, master builds a random model then send to all workers to start computing. This is to make all workers use the same model at the starting time.

    At other iterations, master works:

    • 1. Accumulate all gradients from workers.
    • 2. Update global models by using accumulated gradients.
    • 3. Send new global model to workers by returning model parameters.