ml.shifu.guagua.example.lnr
类 LinearRegressionParams
java.lang.Object
ml.shifu.guagua.io.HaltBytable
ml.shifu.guagua.example.lnr.LinearRegressionParams
- 所有已实现的接口:
- ml.shifu.guagua.io.Bytable
public class LinearRegressionParams
- extends ml.shifu.guagua.io.HaltBytable
A model class to store linear regression weight on first iteration by using parameters, while in other
iterations parameters is used to store gradients.
To make all workers started at the same model, master will compute a consistent model weights at the first iteration
and then send to all the workers. Workers will start computing from the second iteration.
Workers are responsible to compute local accumulated gradients and send to master while master accumulates all
gradients together to build a global model.
| 从类 ml.shifu.guagua.io.HaltBytable 继承的方法 |
isHalt, readFields, setHalt, write |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinearRegressionParams
public LinearRegressionParams()
LinearRegressionParams
public LinearRegressionParams(double[] parameters)
LinearRegressionParams
public LinearRegressionParams(double[] parameters,
double error)
getParameters
public double[] getParameters()
setParameters
public void setParameters(double[] parameters)
getError
public double getError()
setError
public void setError(double error)
doWrite
public void doWrite(DataOutput out)
throws IOException
- 指定者:
- 类
ml.shifu.guagua.io.HaltBytable 中的 doWrite
- 抛出:
IOException
doReadFields
public void doReadFields(DataInput in)
throws IOException
- 指定者:
- 类
ml.shifu.guagua.io.HaltBytable 中的 doReadFields
- 抛出:
IOException
Copyright © 2015. All Rights Reserved.