public class Config extends Object
| Modifier and Type | Field and Description |
|---|---|
protected float |
alpha |
protected boolean |
cbow |
protected boolean |
hs |
protected int |
iter |
protected int |
layer1Size |
protected int |
minCount |
protected int |
negative |
protected int |
numThreads |
protected String |
outputFile |
protected float |
sample |
protected int |
window |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
float |
getAlpha() |
TrainingCallback |
getCallback() |
String |
getInputFile() |
int |
getIter() |
int |
getLayer1Size() |
int |
getMinCount() |
int |
getNegative() |
int |
getNumThreads() |
String |
getOutputFile() |
float |
getSample() |
int |
getWindow() |
Config |
setAlpha(float alpha) |
void |
setCallback(TrainingCallback callback) |
Config |
setInputFile(String inputFile) |
Config |
setIter(int iter) |
Config |
setLayer1Size(int layer1Size) |
Config |
setMinCount(int minCount) |
Config |
setNegative(int negative) |
Config |
setNumThreads(int numThreads) |
Config |
setOutputFile(String outputFile) |
Config |
setSample(float sample) |
Config |
setUseContinuousBagOfWords(boolean cbow) |
Config |
setUseHierarchicalSoftmax(boolean hs) |
Config |
setWindow(int window) |
boolean |
useContinuousBagOfWords() |
boolean |
useHierarchicalSoftmax() |
protected String outputFile
protected int iter
protected int window
protected int minCount
protected int negative
protected int layer1Size
protected int numThreads
protected boolean hs
protected boolean cbow
protected float sample
protected float alpha
public String getOutputFile()
public Config setIter(int iter)
public int getIter()
public Config setWindow(int window)
public int getWindow()
public Config setMinCount(int minCount)
public int getMinCount()
public Config setNegative(int negative)
public int getNegative()
public Config setLayer1Size(int layer1Size)
public int getLayer1Size()
public Config setNumThreads(int numThreads)
public int getNumThreads()
public Config setUseHierarchicalSoftmax(boolean hs)
public boolean useHierarchicalSoftmax()
public Config setUseContinuousBagOfWords(boolean cbow)
public boolean useContinuousBagOfWords()
public Config setSample(float sample)
public float getSample()
public Config setAlpha(float alpha)
public float getAlpha()
public String getInputFile()
public TrainingCallback getCallback()
public void setCallback(TrainingCallback callback)
Copyright © 2014–2021 码农场. All rights reserved.