ml.shifu.guagua.example.lr
类 LogisticRegressionParams

java.lang.Object
  继承者 ml.shifu.guagua.io.HaltBytable
      继承者 ml.shifu.guagua.example.lr.LogisticRegressionParams
所有已实现的接口:
ml.shifu.guagua.io.Bytable

public class LogisticRegressionParams
extends ml.shifu.guagua.io.HaltBytable

A model class to store logistic 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.


构造方法摘要
LogisticRegressionParams()
           
LogisticRegressionParams(double[] parameters)
           
LogisticRegressionParams(double[] parameters, double error)
           
 
方法摘要
 void doReadFields(DataInput in)
           
 void doWrite(DataOutput out)
           
 double getError()
           
 double[] getParameters()
           
 void setError(double error)
           
 void setParameters(double[] parameters)
           
 
从类 ml.shifu.guagua.io.HaltBytable 继承的方法
isHalt, readFields, setHalt, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

LogisticRegressionParams

public LogisticRegressionParams()

LogisticRegressionParams

public LogisticRegressionParams(double[] parameters)

LogisticRegressionParams

public LogisticRegressionParams(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.