public class Linear extends BaseActivationFunction
Constructor and Description |
---|
Linear() |
Modifier and Type | Method and Description |
---|---|
INDArray |
apply(INDArray input)
Returns the result of applying this function to
input . |
INDArray |
applyDerivative(INDArray input)
Applies the derivative of this function
|
ElementWiseOpFactory |
transformFactory()
The class used for transformation
|
String |
type()
Name of the function
|
equals, toString
public ElementWiseOpFactory transformFactory()
public String type()
type
in interface ActivationFunction
type
in class BaseActivationFunction
public INDArray applyDerivative(INDArray input)
input
- the input to apply it topublic INDArray apply(INDArray input)
BaseActivationFunction
input
. This method is generally
expected, but not absolutely required, to have the following properties:
Objects.equal
(a, b)
implies that Objects.equal(function.apply(a),
function.apply(b))
.
apply
in interface com.google.common.base.Function<INDArray,INDArray>
apply
in class BaseActivationFunction
Copyright © 2014. All Rights Reserved.