Enum ActivationFunction
- java.lang.Object
-
- java.lang.Enum<ActivationFunction>
-
- org.neo4j.gds.embeddings.graphsage.ActivationFunction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ActivationFunction>
public enum ActivationFunction extends java.lang.Enum<ActivationFunction>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.function.Function<org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix>,org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix>>activationFunction()static ActivationFunctionof(java.lang.String activationFunction)static ActivationFunctionparse(java.lang.Object input)static java.lang.StringtoString(ActivationFunction af)static ActivationFunctionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ActivationFunction[]values()Returns an array containing the constants of this enum type, in the order they are declared.abstract doubleweightInitBound(int rows, int cols)
-
-
-
Enum Constant Detail
-
SIGMOID
public static final ActivationFunction SIGMOID
-
RELU
public static final ActivationFunction RELU
-
-
Method Detail
-
values
public static ActivationFunction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ActivationFunction c : ActivationFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActivationFunction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
activationFunction
public abstract java.util.function.Function<org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix>,org.neo4j.gds.ml.core.Variable<org.neo4j.gds.ml.core.tensor.Matrix>> activationFunction()
-
weightInitBound
public abstract double weightInitBound(int rows, int cols)
-
of
public static ActivationFunction of(java.lang.String activationFunction)
-
parse
public static ActivationFunction parse(java.lang.Object input)
-
toString
public static java.lang.String toString(ActivationFunction af)
-
-