public class Neural_Network extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Neural_Network.ACTIVATIONFUNCTION |
| Modifier and Type | Field and Description |
|---|---|
double |
en |
Neuron[][] |
griglia |
double |
maxfactor |
double |
minfactor |
float |
status |
| Constructor and Description |
|---|
Neural_Network(int N,
int M,
int attifun) |
Neural_Network(int N,
int M,
int[] t,
int attifun) |
Neural_Network(int N,
int M,
int[] t,
Neural_Network.ACTIVATIONFUNCTION attifun) |
Neural_Network(int N,
int M,
int attifun,
float[] V) |
Neural_Network(int N,
int M,
Neural_Network.ACTIVATIONFUNCTION attifun) |
Neural_Network(int N,
int M,
Neural_Network.ACTIVATIONFUNCTION attifun,
float[] V) |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateNNName(String referenceEntity,
String username,
String neuralNetName) |
double[] |
getClassification(double[] out) |
double |
getCorrectValueForOutput(double output) |
double |
getCorrectValueFromOutput(double prob) |
double[] |
getNegativeCase() |
int |
getNumberOfInputs() |
int |
getNumberOfOutputs() |
double[] |
getPositiveCase() |
static Neural_Network |
loadNN(String nomeFile) |
static void |
main(String[] args) |
static double[] |
preprocessObjects(double[] vector) |
static double[] |
preprocessObjects(Object[] vector) |
double[] |
propagate(double[] input) |
void |
setAcceptanceThreshold(double treshold) |
void |
setCycles(double cycs) |
void |
setThreshold(double soglia) |
static int[] |
setupInnerLayers(int... numberOfNeurons) |
void |
train(double[][] inputvet,
double[][] correctoutputvet) |
void |
writeout(double numero,
double soglia) |
public Neuron[][] griglia
public double maxfactor
public double minfactor
public float status
public double en
public Neural_Network(int N,
int M,
Neural_Network.ACTIVATIONFUNCTION attifun)
public Neural_Network(int N,
int M,
Neural_Network.ACTIVATIONFUNCTION attifun,
float[] V)
public Neural_Network(int N,
int M,
int[] t,
Neural_Network.ACTIVATIONFUNCTION attifun)
public Neural_Network(int N,
int M,
int attifun)
public Neural_Network(int N,
int M,
int attifun,
float[] V)
public Neural_Network(int N,
int M,
int[] t,
int attifun)
public void setThreshold(double soglia)
public double getCorrectValueFromOutput(double prob)
public double getCorrectValueForOutput(double output)
public void setAcceptanceThreshold(double treshold)
public void setCycles(double cycs)
public static double[] preprocessObjects(Object[] vector)
public static double[] preprocessObjects(double[] vector)
public int getNumberOfOutputs()
public int getNumberOfInputs()
public double[] getPositiveCase()
public double[] getNegativeCase()
public static int[] setupInnerLayers(int... numberOfNeurons)
public double[] propagate(double[] input)
public void train(double[][] inputvet,
double[][] correctoutputvet)
public void writeout(double numero,
double soglia)
public double[] getClassification(double[] out)
public static Neural_Network loadNN(String nomeFile)
public static String generateNNName(String referenceEntity, String username, String neuralNetName)
public static void main(String[] args)
Copyright © 2022. All Rights Reserved.