NeurApp 1.1
NeurApp - software for exploring approximation by artificial neural networks on functions of one or two variables.
|
Base class for neural network approximators. More...
Public Member Functions | |
NeuralApproximatorBaseExt () | |
new void | SaveTrainingDataJson_To_delete (string filePath) |
Saves network's training data to the specified JSON file. File is owerwritten if it exists. | |
new void | LoadTrainingDataJson_To_Delete (string filePath) |
Restores training data from the specified file in JSON format. | |
Static Public Member Functions | |
static new void | SaveJson (INeuralApproximator approximator, string filePath) |
Saves a neural network approximator to a file. If the neural netwoek is trained then internal state is also saved to a file. | |
static new void | SaveJson (INeuralApproximator approximator, string filePath, bool saveInternalState) |
Saves a neural network approximator to a file. | |
static new void | LoadJson (string filePath, ref INeuralApproximator approximatorRestored) |
Loads network from a file. |
Base class for neural network approximators.
IMPORTANT:
This type is defined because of the SaveJson and LoadJson methods, because the basic type NeuralApproximatorBase does not see the NeuralApproximatorNeuron type. With this extended class, saving and loading JSON files also works with this class.
$A Igor Mar11 Jan12;
IG::Neural::NeuralApproximatorBaseExt::NeuralApproximatorBaseExt | ( | ) | [inline] |
static new void IG::Neural::NeuralApproximatorBaseExt::SaveJson | ( | INeuralApproximator | approximator, |
string | filePath | ||
) | [inline, static] |
Saves a neural network approximator to a file. If the neural netwoek is trained then internal state is also saved to a file.
approximator | Neural network approximator to be saved. |
filePath | Path to the file where approximator is saved. |
Reimplemented from IG::Neural::NeuralApproximatorBase.
static new void IG::Neural::NeuralApproximatorBaseExt::SaveJson | ( | INeuralApproximator | approximator, |
string | filePath, | ||
bool | saveInternalState | ||
) | [inline, static] |
Saves a neural network approximator to a file.
approximator | Neural network approximator to be saved. |
filePath | Path to the file where approximator is saved. |
saveInternalState | Specifies whether internal state should be saved, too (only in the case that network is trained). |
Reimplemented from IG::Neural::NeuralApproximatorBase.
static new void IG::Neural::NeuralApproximatorBaseExt::LoadJson | ( | string | filePath, |
ref INeuralApproximator | approximatorRestored | ||
) | [inline, static] |
Loads network from a file.
filePath | Path to the file. |
approximatorRestored | Neural approximator that is produced by deserialization. |
Reimplemented from IG::Neural::NeuralApproximatorBase.
new void IG::Neural::NeuralApproximatorBaseExt::SaveTrainingDataJson_To_delete | ( | string | filePath | ) | [inline] |
Saves network's training data to the specified JSON file. File is owerwritten if it exists.
filePath | Path to the file where training data is saved. |
Reimplemented from IG::Neural::NeuralApproximatorBase.
new void IG::Neural::NeuralApproximatorBaseExt::LoadTrainingDataJson_To_Delete | ( | string | filePath | ) | [inline] |
Restores training data from the specified file in JSON format.
filePath | File from which training data is restored. |
Reimplemented from IG::Neural::NeuralApproximatorBase.