public enum KernelType extends Enum<KernelType>
Enum Constant and Description |
---|
Linear
Linear: u'*v
|
Polynomial
Polynomial: (gamma*u'*v + coef0)^degree
|
RadialBasis
radial basis function: exp(-gamma*|u-v|^2)
|
Sigmoid
sigmoid: tanh(gamma*u'*v + coef0)
|
Modifier and Type | Method and Description |
---|---|
static KernelType |
getByName(String name) |
String |
toString() |
static KernelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KernelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KernelType Linear
public static final KernelType Polynomial
public static final KernelType RadialBasis
public static final KernelType Sigmoid
public static KernelType[] values()
for (KernelType c : KernelType.values()) System.out.println(c);
public static KernelType 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 String toString()
toString
in class Enum<KernelType>
public static KernelType getByName(String name)
Copyright © 2013–2019 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.