|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.util.simple.EncogUtility
public final class EncogUtility
General utility class for Encog. Provides for some common Encog procedures.
| Method Summary | |
|---|---|
static void |
convertCSV2Binary(File csvFile,
File binFile,
int inputCount,
int outputCount,
boolean headers)
Convert a CSV file to a binary training file. |
static void |
evaluate(BasicNetwork network,
NeuralDataSet training)
Evaluate the network and display (to the console) the output for every value in the training set. |
static String |
formatNeuralData(NeuralData data)
Format neural data as a list of numbers. |
static BasicNetwork |
simpleFeedForward(int input,
int hidden1,
int hidden2,
int output,
boolean tanh)
Create a simple feedforward neural network. |
static void |
trainConsole(BasicNetwork network,
NeuralDataSet trainingSet,
int minutes)
Train the neural network, using SCG training, and output status to the console. |
static void |
trainConsole(Train train,
BasicNetwork network,
NeuralDataSet trainingSet,
int minutes)
Train the network, using the specified training algorithm, and send the output to the console. |
static void |
trainDialog(BasicNetwork network,
NeuralDataSet trainingSet)
Train using SCG and display progress to a dialog box. |
static void |
trainDialog(Train train,
BasicNetwork network,
NeuralDataSet trainingSet)
Train, using the specified training method, display progress to a dialog box. |
static void |
trainToError(BasicNetwork network,
NeuralDataSet trainingSet,
double error)
Train the network, to a specific error, send the output to the console. |
static void |
trainToError(Train train,
BasicNetwork network,
NeuralDataSet trainingSet,
double error)
Train to a specific error, using the specified training method, send the output to the console. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void convertCSV2Binary(File csvFile,
File binFile,
int inputCount,
int outputCount,
boolean headers)
csvFile - The CSV file.binFile - The binary file.inputCount - The number of input values.outputCount - The number of output values.headers - True, if there are headers on the3 CSV.
public static void evaluate(BasicNetwork network,
NeuralDataSet training)
network - The network to evaluate.training - The training set to evaluate.public static String formatNeuralData(NeuralData data)
data - The neural data to format.
public static BasicNetwork simpleFeedForward(int input,
int hidden1,
int hidden2,
int output,
boolean tanh)
input - The number of input neurons.hidden1 - The number of hidden layer 1 neurons.hidden2 - The number of hidden layer 2 neurons.output - The number of output neurons.tanh - True to use hyperbolic tangent activation function, false to
use the sigmoid activation function.
public static void trainConsole(BasicNetwork network,
NeuralDataSet trainingSet,
int minutes)
network - The network to train.trainingSet - The training set.minutes - The number of minutes to train for.
public static void trainConsole(Train train,
BasicNetwork network,
NeuralDataSet trainingSet,
int minutes)
train - The training method to use.network - The network to train.trainingSet - The training set.minutes - The number of minutes to train for.
public static void trainDialog(BasicNetwork network,
NeuralDataSet trainingSet)
network - The network to train.trainingSet - The training set to use.
public static void trainDialog(Train train,
BasicNetwork network,
NeuralDataSet trainingSet)
train - The training method to use.network - The network to train.trainingSet - The training set to use.
public static void trainToError(BasicNetwork network,
NeuralDataSet trainingSet,
double error)
network - The network to train.trainingSet - The training set to use.error - The error level to train to.
public static void trainToError(Train train,
BasicNetwork network,
NeuralDataSet trainingSet,
double error)
train - The training method.network - The network to train.trainingSet - The training set to use.error - The desired error level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||