public class LinearRegressionMaster extends Object implements ml.shifu.guagua.master.MasterComputable<LinearRegressionParams,LinearRegressionParams>
LinearRegressionMaster defines logic to update global linear 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:
| Constructor and Description |
|---|
LinearRegressionMaster() |
| Modifier and Type | Method and Description |
|---|---|
LinearRegressionParams |
compute(ml.shifu.guagua.master.MasterContext<LinearRegressionParams,LinearRegressionParams> context) |
public LinearRegressionParams compute(ml.shifu.guagua.master.MasterContext<LinearRegressionParams,LinearRegressionParams> context)
compute in interface ml.shifu.guagua.master.MasterComputable<LinearRegressionParams,LinearRegressionParams>Copyright © 2015. All Rights Reserved.