public abstract class Op extends Object implements IOp, ITransform
| Modifier and Type | Field and Description |
|---|---|
static Op |
LINEAR |
static Op |
LOGISTIC |
static Op |
RECTIFIER |
static Op |
SOFTPLUS |
static Op |
STOCHASTIC_BINARY |
static Op |
STOCHASTIC_LOGISTIC |
static Op |
TANH |
| Constructor and Description |
|---|
Op() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
apply(double x)
Applies the operator to a single value, returning the result
|
double |
applyInverse(double y)
Applies the inverse of this Op.
|
void |
applyTo(ArrayVector v) |
void |
applyTo(AScalar s) |
void |
applyTo(AVector v) |
void |
applyTo(double[] data) |
void |
applyTo(double[] data,
int start,
int length) |
abstract double |
averageValue() |
Op |
compose(Op op) |
static Op |
compose(Op op1,
Op op2) |
void |
constrainValues(double[] src,
double[] dest,
int offset,
int length)
Creates a copy of the values of src in dest, constraining them to be within the valid
range of output values from this Op
|
double |
derivative(double x)
Returns the derivative of this Op for a given input value x
i.e.
|
double |
derivativeForOutput(double y)
Returns the derivative of this Op for a given output value y
i.e.
|
Op |
getInverse() |
ATransform |
getTransform(int dims)
Converts an operator into a corresponding transform that applies the operator to all elements of its input
|
boolean |
hasDerivative() |
boolean |
hasInverse() |
int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
boolean |
isBounded() |
boolean |
isStochastic()
Returns true if the operator is stochastic, i.e returns random values for at least some inputs
|
double |
maxValue() |
double |
minValue() |
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
boolean |
validateOutput(double[] output)
Validates whether all values in a double[] are within the possible output range for this Op
|
public static final Op STOCHASTIC_BINARY
public static final Op LINEAR
public static final Op LOGISTIC
public static final Op RECTIFIER
public static final Op STOCHASTIC_LOGISTIC
public static final Op TANH
public static final Op SOFTPLUS
public abstract double apply(double x)
IOppublic double applyInverse(double y)
y - public void applyTo(AScalar s)
public void applyTo(ArrayVector v)
public void applyTo(double[] data,
int start,
int length)
public void applyTo(double[] data)
public ATransform getTransform(int dims)
IOpgetTransform in interface IOppublic int inputDimensions()
ITransforminputDimensions in interface ITransformpublic int outputDimensions()
ITransformoutputDimensions in interface ITransformpublic void transform(AVector source, AVector dest)
ITransformtransform in interface ITransformpublic Op getInverse()
getInverse in interface IOppublic boolean hasDerivative()
public boolean hasInverse()
public double derivativeForOutput(double y)
y - public double derivative(double x)
y - public boolean isStochastic()
public double minValue()
public abstract double averageValue()
public double maxValue()
public boolean validateOutput(double[] output)
output - public void constrainValues(double[] src,
double[] dest,
int offset,
int length)
src - dest - offset - length - public boolean isBounded()
Copyright © 2013. All Rights Reserved.