public class NeuralNetworkModel.DefaultLayer extends Object implements NeuralNetworkModel.Layer
Modifier and Type | Field and Description |
---|---|
protected NeuralNetworkModel.Activation |
activation |
protected String |
activationStr |
Constructor and Description |
---|
DefaultLayer() |
Modifier and Type | Method and Description |
---|---|
float[] |
calculateOutput(float[] inputVec) |
String |
describe() |
void |
setActivation(Object activationStr) |
void |
setBias(Object biasObj) |
void |
setMatrix(Object matrixObj) |
int |
validate(int inputDim) |
protected String activationStr
protected NeuralNetworkModel.Activation activation
public void setMatrix(Object matrixObj)
public void setBias(Object biasObj)
public void setActivation(Object activationStr)
public float[] calculateOutput(float[] inputVec)
calculateOutput
in interface NeuralNetworkModel.Layer
public int validate(int inputDim) throws ModelException
validate
in interface NeuralNetworkModel.Layer
ModelException
public String describe()
describe
in interface NeuralNetworkModel.Layer
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.