ml.shifu.guagua.example.lr
类 LogisticRegressionMaster
java.lang.Object
ml.shifu.guagua.example.lr.LogisticRegressionMaster
- 所有已实现的接口:
- ml.shifu.guagua.master.MasterComputable<LogisticRegressionParams,LogisticRegressionParams>
public class LogisticRegressionMaster
- extends Object
- implements ml.shifu.guagua.master.MasterComputable<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.
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogisticRegressionMaster
public LogisticRegressionMaster()
compute
public LogisticRegressionParams compute(ml.shifu.guagua.master.MasterContext<LogisticRegressionParams,LogisticRegressionParams> context)
- 指定者:
- 接口
ml.shifu.guagua.master.MasterComputable<LogisticRegressionParams,LogisticRegressionParams> 中的 compute
Copyright © 2015. All Rights Reserved.