public class GloveParam
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GloveParam.Builder |
Constructor and Description |
---|
GloveParam(int vectorLength,
boolean useAdaGrad,
double lr,
org.nd4j.linalg.api.rng.Random gen,
double negative,
double xMax,
double maxCount,
org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> coOccurrenceCounts) |
Modifier and Type | Method and Description |
---|---|
org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> |
getCoOccurrenceCounts() |
org.nd4j.linalg.api.rng.Random |
getGen() |
double |
getLr() |
double |
getMaxCount() |
double |
getNegative() |
int |
getVectorLength() |
double |
getxMax() |
boolean |
isUseAdaGrad() |
void |
setCoOccurrenceCounts(org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> coOccurrenceCounts) |
void |
setGen(org.nd4j.linalg.api.rng.Random gen) |
void |
setLr(double lr) |
void |
setMaxCount(double maxCount) |
void |
setNegative(double negative) |
void |
setUseAdaGrad(boolean useAdaGrad) |
void |
setVectorLength(int vectorLength) |
void |
setxMax(double xMax) |
public GloveParam(int vectorLength, boolean useAdaGrad, double lr, org.nd4j.linalg.api.rng.Random gen, double negative, double xMax, double maxCount, org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> coOccurrenceCounts)
public int getVectorLength()
public void setVectorLength(int vectorLength)
public boolean isUseAdaGrad()
public void setUseAdaGrad(boolean useAdaGrad)
public double getLr()
public void setLr(double lr)
public org.nd4j.linalg.api.rng.Random getGen()
public void setGen(org.nd4j.linalg.api.rng.Random gen)
public double getNegative()
public void setNegative(double negative)
public double getxMax()
public void setxMax(double xMax)
public double getMaxCount()
public void setMaxCount(double maxCount)
public org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> getCoOccurrenceCounts()
public void setCoOccurrenceCounts(org.apache.spark.broadcast.Broadcast<CounterMap<java.lang.String,java.lang.String>> coOccurrenceCounts)