Package ann4j
Class parameter
java.lang.Object
ann4j.parameter
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisplay()Ends the display of the current page.static intstatic doubleThis function returns the bias learning ratestatic doubleGet the value of epsillion for relevance propagationstatic int[]static doublestatic ModelEvaluator> The function `getModelEvaluator()` returns a new instance of the class `ModelEvaluator`static InputFileReaderThis function returns the testingFileReader objectstatic InputFileReaderThis function returns the trainingFileReader objectstatic doublerectify(double numToBeRectified) static voidsetBatchsize(int batchsize) static voidsetBiasLearningRate(double biasLearningRate) This function sets the learning rate for the biasstatic voidsetEpsillion(double epsillion) This function sets the epsillion value to the value passed instatic voidsetLayerArray(int... LayerArray) static voidsetLearningRate(double learningRate) This function sets the learning rate of the neural networkstatic voidsetNeuronNumberToBeTestedinRelavancePropagation(double NeuronNumberToBeTestedinRelavancePropagation) static voidsetOutputFile(String string, boolean printInConsoleEnabled) It sets the output file and enables/disables printing in console.static voidsetRectificationFunction(String rectificationFunction) This function sets the rectification function to be used in the networkstatic voidsetTestingFileReader(InputFileReader inputFileReader) static voidsetTestingFileReader(String fileName, String type) It sets the testing file reader to the required file reader.static voidsetTrainingFileReader(InputFileReader inputFileReader) static voidsetTrainingFileReader(String fileName, String type)
-
Field Details
-
numberOfOutputNeurons
public static int numberOfOutputNeurons -
numberOfInputNeurons
public static int numberOfInputNeurons
-
-
Constructor Details
-
parameter
public parameter()
-
-
Method Details
-
getBiasLearningRate
public static double getBiasLearningRate()This function returns the bias learning rate- Returns:
- The bias learning rate.
-
getEpsillion
public static double getEpsillion()Get the value of epsillion for relevance propagation- Returns:
- The value of the epsillion variable.
-
setEpsillion
public static void setEpsillion(double epsillion) This function sets the epsillion value to the value passed in- Parameters:
epsillion- The value of the epsillion variable to be set.
-
setBiasLearningRate
public static void setBiasLearningRate(double biasLearningRate) This function sets the learning rate for the bias- Parameters:
biasLearningRate- The learning rate for the bias.
-
setRectificationFunction
This function sets the rectification function to be used in the network- Parameters:
rectificationFunction- The rectification function to use.
-
getTrainingFileReader
This function returns the trainingFileReader object- Returns:
- The trainingFileReader object.
-
getTestingFileReader
This function returns the testingFileReader object- Returns:
- The InputFileReader object (testing file reader) that was created in the static block.
-
setTestingFileReader
It sets the testing file reader to the required file reader. This needs to be overridden for adding custom file reader types.- Parameters:
fileName- The name of the file to be readtype- The type of file you are reading. Currently, only "mnist" is supported.
-
setLearningRate
public static void setLearningRate(double learningRate) This function sets the learning rate of the neural network- Parameters:
learningRate- The learning rate of the neural network.
-
setTrainingFileReader
-
setTestingFileReader
-
setTrainingFileReader
-
setNeuronNumberToBeTestedinRelavancePropagation
public static void setNeuronNumberToBeTestedinRelavancePropagation(double NeuronNumberToBeTestedinRelavancePropagation) -
rectify
public static double rectify(double numToBeRectified) -
setLayerArray
public static void setLayerArray(int... LayerArray) -
getLearningRate
public static double getLearningRate() -
getLayerArray
public static int[] getLayerArray() -
getBatchsize
public static int getBatchsize() -
setBatchsize
public static void setBatchsize(int batchsize) -
getModelEvaluator
> The function `getModelEvaluator()` returns a new instance of the class `ModelEvaluator`- Returns:
- A new instance of the ModelEvaluator class.
-
setOutputFile
It sets the output file and enables/disables printing in console.- Parameters:
string- The name of the file to write to.printInConsoleEnabled- If true, the output will be printed in the console.
-
display
public static void display()Ends the display of the current page.
-