Package org.apache.solr.ltr.model
Class NeuralNetworkModel.DefaultLayer
- java.lang.Object
- 
- org.apache.solr.ltr.model.NeuralNetworkModel.DefaultLayer
 
- 
- All Implemented Interfaces:
- NeuralNetworkModel.Layer
 - Enclosing class:
- NeuralNetworkModel
 
 public class NeuralNetworkModel.DefaultLayer extends Object implements NeuralNetworkModel.Layer 
- 
- 
Field SummaryFields Modifier and Type Field Description protected NeuralNetworkModel.Activationactivationprotected StringactivationStr
 - 
Constructor SummaryConstructors Constructor Description DefaultLayer()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description float[]calculateOutput(float[] inputVec)Stringdescribe()voidsetActivation(Object activationStr)voidsetBias(Object biasObj)voidsetMatrix(Object matrixObj)intvalidate(int inputDim)
 
- 
- 
- 
Field Detail- 
activationStrprotected String activationStr 
 - 
activationprotected NeuralNetworkModel.Activation activation 
 
- 
 - 
Method Detail- 
setMatrixpublic void setMatrix(Object matrixObj) 
 - 
setBiaspublic void setBias(Object biasObj) 
 - 
setActivationpublic void setActivation(Object activationStr) 
 - 
calculateOutputpublic float[] calculateOutput(float[] inputVec) - Specified by:
- calculateOutputin interface- NeuralNetworkModel.Layer
 
 - 
validatepublic int validate(int inputDim) throws ModelException- Specified by:
- validatein interface- NeuralNetworkModel.Layer
- Throws:
- ModelException
 
 - 
describepublic String describe() - Specified by:
- describein interface- NeuralNetworkModel.Layer
 
 
- 
 
-