public enum NeuralNetworkType extends Enum<NeuralNetworkType>
| Enum Constant and Description |
|---|
CBOW
更快,对高频词的准确率更高
Faster, slightly better accuracy for frequent words
|
SKIP_GRAM
较慢,对低频词的准确率更高
|
| Modifier and Type | Method and Description |
|---|---|
abstract float |
getDefaultInitialLearningRate() |
static NeuralNetworkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NeuralNetworkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NeuralNetworkType CBOW
public static final NeuralNetworkType SKIP_GRAM
public static NeuralNetworkType[] values()
for (NeuralNetworkType c : NeuralNetworkType.values()) System.out.println(c);
public static NeuralNetworkType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract float getDefaultInitialLearningRate()
Copyright © 2014–2021 码农场. All rights reserved.