IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
A 2D neural network approximation demo control. More...
Public Member Functions | |
NeuralTrainingControl () | |
void | SetNeuralModel (INeuralModel model) |
Sets the ANN-based model used by the current form. More... | |
void | GenerateDefaultPoints2D () |
Generates the set of default points according to settings. More... | |
void | RemoveApprovimationActors () |
void | Bounds2D () |
void | ResetAll2D () |
Reset all to default. More... | |
void | PrepareDefaultPlots () |
Prepare default plots of. More... | |
Static Public Member Functions | |
static ColorScale | CreateGreenRedYellow (double minValue, double maxValue) |
Public Attributes | |
System.ComponentModel.BackgroundWorker | backgroundWorker2D |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Clean up any resources being used. More... | |
Protected Attributes | |
INeuralModelContainer | _neuralModelContainerControl |
INeuralApproximator | _neuralApproximator |
Properties | |
INeuralModel | NeuralModel [get, protected set] |
Neural network - based model. More... | |
INeuralApproximator | TrainedNetwork [get] |
Traint artificial neural network. More... | |
InputOutputDataDefiniton | NeuralDataDefinition [get] |
Neural data definition. More... | |
INeuralApproximator | network2D [get] |
Traint artificial neural network. More... | |
virtual INeuralApproximator | NeuralApproximator [get, set] |
Neural approximator. More... | |
BoundingBox3d | ScaledBounds [get] |
![]() | |
INeuralModel | NeuralModel [get] |
Artificial neural network - based model. More... | |
Private Member Functions | |
void | LoadForm (object sender, EventArgs e) |
void | InitializeApproximator2D () |
Clean and initialize the approximator. More... | |
void | InitializeTrainingData2D () |
Clean and initialize the training data set. More... | |
void | InitializeVerificationData2D () |
Clean and initialize the verification data set. More... | |
void | InitializeDefaultData2D () |
Clean and initialize the default data set. More... | |
void | WriteErrors2D () |
Write training and verification errors in text box. More... | |
void | ClearErrorGraph2D () |
Clear Graph with error convergence for 2 dimension. More... | |
void | btReset2D_Click (object sender, EventArgs e) |
Reset button. More... | |
void | btStart2D_Click (object sender, EventArgs e) |
Start training button. More... | |
void | btStop2D_Click (object sender, EventArgs e) |
Stop training button. More... | |
void | TrainNetworkThread2D () |
void | btnGenerateOptData2D_Click (object sender, EventArgs e) |
Generate training data button. More... | |
void | btnShowDefault_Click (object sender, EventArgs e) |
Show default graph button. More... | |
void | rbMaxTrainError2D_CheckedChanged (object sender, EventArgs e) |
Enable Maximum training error convergence to be written on graph. More... | |
void | rbRmsTrainError2D_CheckedChanged (object sender, EventArgs e) |
Enable Rms training error convergence to be written on graph. More... | |
void | rbMaxVerError2D_CheckedChanged (object sender, EventArgs e) |
Enable Maximum verification error convergence to be written on graph. More... | |
void | rbRmsVerError2D_CheckedChanged (object sender, EventArgs e) |
Enable Rms verification error convergence to be written on graph. More... | |
void | numMaxEpoch2D_ValueChanged (object sender, EventArgs e) |
Maximum number of epochs. More... | |
void | numEpochBundle2D_ValueChanged (object sender, EventArgs e) |
Number of epochs in bundle. More... | |
void | numRMS2D_ValueChanged (object sender, EventArgs e) |
Rms error limit. More... | |
void | numLearningRate2D_ValueChanged (object sender, EventArgs e) |
Learning rate. More... | |
void | numMomentum2D_ValueChanged (object sender, EventArgs e) |
Momentum. More... | |
void | numHiddenNeuron2D_ValueChanged (object sender, EventArgs e) |
Number of neurons in first hidden layer. More... | |
void | numHiddenNeuronL22D_ValueChanged (object sender, EventArgs e) |
Number of neurons in second hidden layer. More... | |
void | numInputSafety2D_ValueChanged (object sender, EventArgs e) |
Input safety factor. More... | |
void | numOutputSafety2D_ValueChanged (object sender, EventArgs e) |
Output safety factor. More... | |
void | backgroundWorker2D_DoWork (object sender, DoWorkEventArgs e) |
void | backgroundWorker2D_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e) |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
Private Attributes | |
INeuralModel | _neuralModel |
GraphPane | pane2DError |
Error graph. More... | |
SampledDataSet | trainingData2D = null |
Training data set. More... | |
SampledDataSet | verificationData2D = null |
Verification data set. More... | |
SampledDataSet | defaultFunctionData2D = null |
Default data set. More... | |
int | hiddenNeuronL12D = 5 |
int | hiddenNeuronL22D = 0 |
int | maxEpoch2D = 5000 |
int | epochInBundle2D = 500 |
double | rmsError2D = 0.001 |
double | learningRate2D = 0.3 |
double | momentum2D = 0.6 |
int | samplesX2D = 5 |
int | samplesY2D = 5 |
double | lowHorizontalLimit2D = -1.0 |
double | highHorizontalLimit2D = 1.0 |
double | lowVerticalLimit2D = -1.0 |
double | highVerticalLimit2D = 1.0 |
double | lowVerificationHorizontalLimit2D = -5.0 |
double | highVerificationHorizontalLimit2D = 5.0 |
double | inputSafetyFactor2D = 1.3 |
double | outputSafetyFactor2D = 1.3 |
string | equation2D = "x*x + y*y" |
string[] | variableNames2D = { "x", "y" } |
bool | maxTrainErrorEnabled2D = true |
bool | rmsTrainErrorEnabled2D = false |
bool | maxVerErrorEnabled2D = false |
bool | rmsVerErrorEnabled2D = false |
bool | defaultSurfaceonGraph = false |
bool | defaultGreedonGraph = true |
bool | trainingPointsonGraph = true |
bool | approximationSurfaceonGraph = true |
bool | approximationGreedonGraph = false |
bool | contureDefaultonGraph = false |
bool | contureApproximationonGraph = false |
bool | stopTraining2D = false |
bool | stopTraining1D = false |
double | opacityDefaultGraph2D = 0.5 |
double | opacityApproxGraph2D = 0.7 |
double | opacityContourGraph2D = 1.0 |
int | numAllXPoints2D = 100 |
int | numAllYPoints2D = 100 |
LineItem | errorConvergenceFunction2D |
Func2dFromScalarFunction | iFunctionDefault2D |
Scalar function that is approximated. More... | |
IScalarFunction | scalarFunctionDefault2D |
Scalar function that is approximated. More... | |
StructuredMesh2d3d | Default2DMesh |
Maeh of default points used for plotting. More... | |
VtkSurfacePlot | plotDefault2D |
Plot from default points. More... | |
VtkContourPlot | plotApproximationConture2D |
Conture Plot from approximated points. More... | |
VtkSurfacePlot | plotTrainingPoints2D |
Plot from training points. More... | |
Func2dFromApproximator | iFunctionApproximator2D |
Scalar function that is approximated. More... | |
ExampleValueFunctionDiff3D | iFunctionDifference2D |
Scalar function that is a difference default and approximated function. More... | |
VtkSurfacePlot | plotApproximation2D |
Plot from approximated points. More... | |
VtkContourPlot | plotDefaultConture2D |
Conture Plot from default points. More... | |
BoundingBox2d | paramBounds2D |
Bounding box for function limits. </summary More... | |
BoundingBox3d | _scaledBounds |
System.ComponentModel.IContainer | components = null |
Required designer variable. More... | |
System.Windows.Forms.TextBox | tbEquationError2D |
System.Windows.Forms.RadioButton | rbRmsTrainError2D |
System.Windows.Forms.RadioButton | rbMaxTrainError2D |
System.Windows.Forms.RadioButton | rbRmsVerError2D |
System.Windows.Forms.RadioButton | rbMaxVerError2D |
System.Windows.Forms.TextBox | tbRmsTrainError2D |
System.Windows.Forms.Label | label26 |
System.Windows.Forms.Label | label27 |
System.Windows.Forms.TextBox | tbMaxTrainError2D |
System.Windows.Forms.TextBox | tbRmsVerError2D |
System.Windows.Forms.TextBox | tbMaxVerError2D |
System.Windows.Forms.Label | label28 |
System.Windows.Forms.Label | label29 |
ZedGraph.ZedGraphControl | errorConvergence2D |
System.Windows.Forms.NumericUpDown | numHiddenNeuronL22D |
System.Windows.Forms.NumericUpDown | numHiddenNeuron2D |
System.Windows.Forms.Button | btLoadANN2D |
System.Windows.Forms.Button | btSaveANN2D |
System.Windows.Forms.Button | btReset2D |
System.Windows.Forms.Button | btStart2D |
System.Windows.Forms.NumericUpDown | numOutputSafety2D |
System.Windows.Forms.Label | label17 |
System.Windows.Forms.NumericUpDown | numInputSafety2D |
System.Windows.Forms.Label | label18 |
System.Windows.Forms.Label | label20 |
System.Windows.Forms.NumericUpDown | numMomentum2D |
System.Windows.Forms.NumericUpDown | numLearningRate2D |
System.Windows.Forms.NumericUpDown | numRMS2D |
System.Windows.Forms.NumericUpDown | numEpochBundle2D |
System.Windows.Forms.NumericUpDown | numMaxEpoch2D |
System.Windows.Forms.Label | label21 |
System.Windows.Forms.Label | label22 |
System.Windows.Forms.Label | label23 |
System.Windows.Forms.Label | label24 |
System.Windows.Forms.Label | label25 |
System.Windows.Forms.Button | btLoad2D |
System.Windows.Forms.GroupBox | groupBox1 |
System.Windows.Forms.GroupBox | groupBox2 |
System.Windows.Forms.GroupBox | groupBox4 |
System.Windows.Forms.Button | btStop2D |
A 2D neural network approximation demo control.
$A Tadej xx; Igor Feb13;
|
inline |
|
inline |
Sets the ANN-based model used by the current form.
model | ANN based model that is set. |
Because of this dedicated method, the setter of the NeuralModel property can be non-public.
Implements IG.Neural.INeuralModelContainer.
|
inlineprivate |
|
inlinestatic |
|
inlineprivate |
Clean and initialize the approximator.
|
inlineprivate |
Clean and initialize the training data set.
|
inlineprivate |
Clean and initialize the verification data set.
|
inlineprivate |
Clean and initialize the default data set.
|
inlineprivate |
Write training and verification errors in text box.
|
inlineprivate |
Clear Graph with error convergence for 2 dimension.
|
inline |
Generates the set of default points according to settings.
References IG.Num.StructuredMeshGeometry2d< TCoord >.Coordinates, IG.Num.Func2dFromScalarScript.CreateScalarFunction(), IG.Num.StructuredMesh2d3d.GenerateCoordinates(), and IG.Num.IScalarFunctionUntransformed.Value().
|
inline |
|
inline |
|
inline |
Reset all to default.
|
inlineprivate |
Reset button.
|
inlineprivate |
Start training button.
References IG.Num.SampledDataSet.AddElement(), IG.Num.Field< TElement >.GetValue(), IG.Num.SampledDataSet.InputLength, IG.Gr3d.VtkSurfacePlot.Mesh, and IG.Num.SampledDataSet.OutputLength.
|
inlineprivate |
Stop training button.
|
inlineprivate |
|
inlineprivate |
Generate training data button.
|
inlineprivate |
Show default graph button.
|
inline |
Prepare default plots of.
|
inlineprivate |
Enable Maximum training error convergence to be written on graph.
|
inlineprivate |
Enable Rms training error convergence to be written on graph.
|
inlineprivate |
Enable Maximum verification error convergence to be written on graph.
|
inlineprivate |
Enable Rms verification error convergence to be written on graph.
|
inlineprivate |
Maximum number of epochs.
|
inlineprivate |
Number of epochs in bundle.
|
inlineprivate |
Rms error limit.
|
inlineprivate |
Learning rate.
|
inlineprivate |
Momentum.
|
inlineprivate |
Number of neurons in first hidden layer.
|
inlineprivate |
Number of neurons in second hidden layer.
|
inlineprivate |
Input safety factor.
|
inlineprivate |
Output safety factor.
|
inlineprivate |
References IG.Lib.StopWatch1.Start(), and IG.Lib.StopWatch1.Stop().
|
inlineprivate |
|
inlineprotected |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
protected |
|
private |
|
private |
Error graph.
|
protected |
|
private |
Training data set.
|
private |
Verification data set.
|
private |
Default data set.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Scalar function that is approximated.
|
private |
Scalar function that is approximated.
|
private |
Maeh of default points used for plotting.
|
private |
Plot from default points.
|
private |
Conture Plot from approximated points.
|
private |
Plot from training points.
|
private |
Scalar function that is approximated.
|
private |
Scalar function that is a difference default and approximated function.
|
private |
Plot from approximated points.
|
private |
Conture Plot from default points.
|
private |
Bounding box for function limits. </summary
|
private |
|
private |
Required designer variable.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
System.ComponentModel.BackgroundWorker IG.Neural.Forms.NeuralTrainingControl.backgroundWorker2D |
|
getprotected set |
Neural network - based model.
Contains data definition and trained neural network approximator.
|
get |
Traint artificial neural network.
|
get |
Neural data definition.
|
get |
Traint artificial neural network.
|
getset |
Neural approximator.
|
getprotected |