C# Class xpidea.neuro.net.NeuroObject

Is the abstract base class for all neural network classes.
Mostrar archivo Open project: AlexCherkasov/Neuro.NET

Public Methods

Method Description
Epoch ( int epoch ) : void

Method used on epoch training of neural network. Must be executed every time after each itteration through the pattern set. This method calculates average delta.

Load ( BinaryReader binaryReader ) : void

Restores object data from a binary stream.

LoadFromFile ( string fileName ) : void

Loads object data from a file.

Random ( double min, double max ) : double

Returns random value between min and max (inclusive).

RoundToNextInt ( double value ) : int

Rounds given value to a nearest integer. For example: RoundToNextInt(0.2) is 1 RoundToNextInt(-0.9) is -1 RoundToNextInt(-9) is -9

Save ( BinaryWriter binaryWriter ) : void

Stores the object in a binary stream.

SaveToFile ( string fileName ) : void

Saves object to a file in a binary format.

Private Methods

Method Description
NeuroObject ( ) : System

Constructor.

Method Details

Epoch() public method

Method used on epoch training of neural network. Must be executed every time after each itteration through the pattern set. This method calculates average delta.
public Epoch ( int epoch ) : void
epoch int Number of patterns that was presentend during this learning cycle.
return void

Load() public method

Restores object data from a binary stream.
public Load ( BinaryReader binaryReader ) : void
binaryReader System.IO.BinaryReader Binary stream reader.
return void

LoadFromFile() public method

Loads object data from a file.
public LoadFromFile ( string fileName ) : void
fileName string File name.
return void

Random() public static method

Returns random value between min and max (inclusive).
public static Random ( double min, double max ) : double
min double First value.
max double Second value.
return double

RoundToNextInt() public static method

Rounds given value to a nearest integer. For example: RoundToNextInt(0.2) is 1 RoundToNextInt(-0.9) is -1 RoundToNextInt(-9) is -9
public static RoundToNextInt ( double value ) : int
value double is a value to be rounded.
return int

Save() public method

Stores the object in a binary stream.
public Save ( BinaryWriter binaryWriter ) : void
binaryWriter System.IO.BinaryWriter Binary stream writer.
return void

SaveToFile() public method

Saves object to a file in a binary format.
public SaveToFile ( string fileName ) : void
fileName string File name.
return void