public class LogisticRegressionGradient extends Object implements Serializable
Constructor and Description |
---|
LogisticRegressionGradient(org.jblas.DoubleMatrix wGradient,
org.jblas.DoubleMatrix bGradient) |
Modifier and Type | Method and Description |
---|---|
void |
add(LogisticRegressionGradient gradient)
Sums this gradient with the given one
|
void |
div(int num)
Divies the gradient by the given number (used in averaging)
|
boolean |
equals(Object obj) |
org.jblas.DoubleMatrix |
getbGradient() |
org.jblas.DoubleMatrix |
getwGradient() |
int |
hashCode() |
void |
setbGradient(org.jblas.DoubleMatrix bGradient) |
void |
setwGradient(org.jblas.DoubleMatrix wGradient) |
public LogisticRegressionGradient(org.jblas.DoubleMatrix wGradient, org.jblas.DoubleMatrix bGradient)
public void div(int num)
num
- the number to divide bypublic void add(LogisticRegressionGradient gradient)
gradient
- the gradient to addpublic org.jblas.DoubleMatrix getwGradient()
public void setwGradient(org.jblas.DoubleMatrix wGradient)
public org.jblas.DoubleMatrix getbGradient()
public void setbGradient(org.jblas.DoubleMatrix bGradient)
Copyright © 2014. All Rights Reserved.