IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Static Public Member Functions | |||||||||||||||
static void | ReadAnalysisRequest (string filePath, ref IVector parameters, ref bool reqcalcobj, ref bool reqcalcconstr, ref bool reqcalcgradobj, ref bool reqcalcgradconstr, ref string cd) | ||||||||||||||
Read the analysis data from data file Format: { { p1, p2, … }, { reqcalcobj, reqcalcconstr, reqcalcgradobj, reqcalcgradconstr }, cd } More... | |||||||||||||||
static void | GetAnalysisRequest (string requestString, ref IVector parameters, ref bool reqcalcobj, ref bool reqcalcconstr, ref bool reqcalcgradobj, ref bool reqcalcgradconstr, ref string cd) | ||||||||||||||
Read the analysis request data from data file Format: { { p1, p2, … }, { reqcalcobj, reqcalcconstr, reqcalcgradobj, reqcalcgradconstr }, cd } More... | |||||||||||||||
static void | ReadAnalysisResult (string filePath, ref IVector parameters, ref bool calcobj, ref bool calcconstr, ref bool calcgradobj, ref bool calcgradconstr, ref double obj, ref IVector constr, ref IVector dobjdp, ref IVector[] dconstr, ref int errorcode, ref bool reqcalcobj, ref bool reqcalcconstr, ref bool reqcalcgradobj, ref bool reqcalcgradconstr) | ||||||||||||||
Read the analysis result data from data file Format: More... | |||||||||||||||
static void | GetAnalysisResult (string requestString, ref IVector parameters, ref bool calcobj, ref bool calcconstr, ref bool calcgradobj, ref bool calcgradconstr, ref double obj, ref IVector constr, ref IVector dobjdp, ref IVector[] dconstr, ref int errorcode, ref bool reqcalcobj, ref bool reqcalcconstr, ref bool reqcalcgradobj, ref bool reqcalcgradconstr) | ||||||||||||||
Read the analysis result data from data file Format: More... | |||||||||||||||
static void | LoadTrainingDataCSVinOneLine (string filePath, int inputLenght, int outputLenght, bool namesSpecified, bool descriptionSpecified, bool titleSpecified, ref SampledDataSet trainingData, ref InputOutputDataDefiniton definitionData) | ||||||||||||||
Loads training data and Definition data from single CSV file.
$A Tako78 Mar11; June27; More... | |||||||||||||||
static void | LoadTrainingDataCSV (string filePath, int inputLenght, int outputLenght, bool namesSpecified, bool titleSpecified, bool descriptionSpecified, ref SampledDataSet trainingData, ref InputOutputDataDefiniton definitionData) | ||||||||||||||
Loads training data and Definition data from single CSV file.
$A Tako78 Apr11, June24; More... | |||||||||||||||
static void | LoadDefinitionDataCSV (string filePath, int inputLenght, int outputLenght, ref InputOutputDataDefiniton definitionData) | ||||||||||||||
Loads definition data from CSV file. More... | |||||||||||||||
static void | SaveTrainingDataCSVinOneLine (string filePath, SampledDataSet trainingData, bool namesSpecified, bool titleSpecified, bool descriptionSpecified, InputOutputDataDefiniton definitionData) | ||||||||||||||
Saves training data and Definition data to single CSV file. More... | |||||||||||||||
static void | SaveTrainingDataCSV (string filePath, SampledDataSet trainingData, bool namesSpecified, bool titlesSpecified, bool descriptionSpecified, InputOutputDataDefiniton definitionData) | ||||||||||||||
Saves training data and Definition data to single CSV file. More... | |||||||||||||||
static void | SaveDefinitionDataCSV (string filePath, InputOutputDataDefiniton definitionData) | ||||||||||||||
Saves definition data to CSV file. More... | |||||||||||||||
static void | SampledDataCombineOutputs (ref SampledDataSet result, params SampledDataSet[] individualSets) | ||||||||||||||
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files, output parameter are different. More... | |||||||||||||||
static void | LoadTrainingDataCombinedOutputsJSON (ref SampledDataSet trainingData, string directoryPath, params string[] fileNames) | ||||||||||||||
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files, output parameter are different. More... | |||||||||||||||
static void | LoadTrainingDataCombinedOutputsJSON (ref SampledDataSet trainingData, params string[] fileNames) | ||||||||||||||
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files but output parameter should be different. More... | |||||||||||||||
static void | SaveTrainingDataJson (string filePath, SampledDataSet trainingData) | ||||||||||||||
Saves network's training data to the specified JSON file. File is owerwritten if it exists. More... | |||||||||||||||
static void | SaveDefinitionDataJson (string filePath, InputOutputDataDefiniton trainingData) | ||||||||||||||
Saves network's definition data to the specified JSON file. File is owerwritten if it exists. More... | |||||||||||||||
static void | LoadSampledDataJson (string filePath, ref SampledDataSet trainingData) | ||||||||||||||
Restores training data from the specified file in JSON format. More... | |||||||||||||||
static void | LoadDefinitionDataJson (string filePath, ref InputOutputDataDefiniton definitionData) | ||||||||||||||
Restores definition data from the specified file in JSON format. More... | |||||||||||||||
static double | getStandardDeviation (List< double > doubleList) | ||||||||||||||
Returns the standard deviation. More... | |||||||||||||||
static void | SmoothingTrainingData (SampledDataSet trainingData, ref SampledDataSet smoothTrainingData, double numStandardDeviation, bool uniqueInput, bool uniqueOutput, bool zeroData) | ||||||||||||||
Check the training data set and delete unconsistant datas. More... | |||||||||||||||
static INeuralApproximator | ExampleCasting (int inputLength, int outputLength, ref SampledDataSet trainingData) | ||||||||||||||
static INeuralApproximator | ExampleStore (int inputLength, int outputLength, ref SampledDataSet trainingData) | ||||||||||||||
static INeuralApproximator | TrainNetwork (ref INeuralApproximator neuralApp) | ||||||||||||||
static void | StoreNetwork (string directoryPath, string fileName, string internalStateFileName, INeuralApproximator neuralApp, bool saveRestored) | ||||||||||||||
static INeuralApproximator | ExampleQuadratic (int inputLength, int outputLength) | ||||||||||||||
static void | neuronsDataRange (SampledDataSet trainingData, ref List< double[]> inputColumnSet, double inputlowerBound, double inputupperBound, ref List< double[]> outputColumnSet, double outputlowerBound, double outputupperBound) | ||||||||||||||
static void | CopyTrainingData (SampledDataSet trainingData, ref SampledDataSet newtrainingData) | ||||||||||||||
Copy training data set to new training data set. More... | |||||||||||||||
Static Private Member Functions | |
static void | TestArray0Elements () |
Creates an array with 0 elements. More... | |
|
inlinestatic |
Read the analysis data from data file Format: { { p1, p2, … }, { reqcalcobj, reqcalcconstr, reqcalcgradobj, reqcalcgradconstr }, cd }
inputFilePath | Path to the file where training data are saved. |
parameters | Input and output parameters: { p1, p2, … }. |
reqcalcobj | Flag: reqcalcobj. |
reqcalcconstr | Flag: reqcalcconstr. |
reqcalcgradobj | Flag: reqcalcgradobj. |
reqcalcgradconstr | Flag: reqcalcgradconstr. |
cd | String: cd. |
$A Tako78 Mar11;
|
inlinestatic |
Read the analysis request data from data file Format: { { p1, p2, … }, { reqcalcobj, reqcalcconstr, reqcalcgradobj, reqcalcgradconstr }, cd }
requestString | String with request analysis data. |
parameters | Input and output parameters: { p1, p2, … }. |
reqcalcobj | Flag: reqcalcobj. |
reqcalcconstr | Flag: reqcalcconstr. |
reqcalcgradobj | Flag: reqcalcgradobj. |
reqcalcgradconstr | Flag: reqcalcgradconstr. |
cd | String: cd. |
$A Tako78 Mar11;
References IG.Lib.UtilStr.ToBoolean().
|
inlinestatic |
Read the analysis result data from data file Format:
inputFilePath | Path to the file where training data are saved. |
parameters | Input and output parameters: { p1, p2, … }. |
calcobj | Flag for the objective function. |
calcconstr | Flag for constraint functions. |
calcgradobj | Gradient of the objective function. |
calcgradconstr | Gradients of constraint functions. |
obj | Value of the objective functions. |
constr | Values of the constraint functions. |
dobjdp | Derivatives of the objective function. |
dconstr | Derivatives of individual constraint functions. |
errorcode | Integer error code of analysis. |
reqcalcobj | Flag for calculation of the various values. |
reqcalcconstr | Flag for calculation of the various values. |
reqcalcgradobj | Flag for calculation of the various values. |
reqcalcgradconstr | Flag for calculation of the various values. |
$A Tako78 Apr7;
|
inlinestatic |
Read the analysis result data from data file Format:
resultString | String with result analysis data. |
parameters | Input and output parameters: { p1, p2, … }. |
calcobj | Flag for the objective function. |
calcconstr | Flag for constraint functions. |
calcgradobj | Gradient of the objective function. |
calcgradconstr | Gradients of constraint functions. |
obj | Value of the objective functions. |
constr | Values of the constraint functions. |
dobjdp | Derivatives of the objective function. |
dconstr | Derivatives of individual constraint functions. |
errorcode | Integer error code of analysis. |
reqcalcobj | Flag for calculation of the various values. |
reqcalcconstr | Flag for calculation of the various values. |
reqcalcgradobj | Flag for calculation of the various values. |
reqcalcgradconstr | Flag for calculation of the various values. |
$A Tako78 Apr7;
References IG.Lib.UtilStr.ToBoolean().
|
inlinestatic |
Loads training data and Definition data from single CSV file.
inputFilePath | Path to the file where training data are saved. |
inputLenght | Lenght of input parameters. |
outputLenght | Lenght of output parameters. |
namesSpecified | Flag if names are specified in the file. |
descriptionSpecified | Flag if definitions (descriptions, defaultValue, boundDefiner, minValue, maxValue) are specified in the file. |
trainingData | Training data set. |
definitionData | Definition data set. |
$A Tako78 Mar11; June27;
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputOutputElementDefinition.MaximalValue, and IG.Num.InputOutputElementDefinition.MinimalValue.
|
inlinestatic |
Loads training data and Definition data from single CSV file.
inputFilePath | Path to the file where training data are saved. |
inputLenght | Lenght of input parameters. |
outputLenght | Lenght of output parameters. |
namesSpecified | Flag if names are specified in the file. |
descriptionSpecified | Flag if descriptions are specified in the file. |
trainingData | Training data set. |
definitionData | Definition data set. |
$A Tako78 Apr11, June24;
|
inlinestatic |
Loads definition data from CSV file.
inputFilePath | Path to the file where definition data are saved. |
inputLenght | Lenght of input parameters. |
outputLenght | Lenght of output parameters. |
definitionData | Definition data set. |
$A Tako78 Mar11; June24;
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputOutputElementDefinition.MaximalValue, and IG.Num.InputOutputElementDefinition.MinimalValue.
|
inlinestatic |
Saves training data and Definition data to single CSV file.
inputFilePath | Path to the file where training data will be saved. |
trainingData | Training data set. |
namesSpecified | Flag if names will be written in the file. |
descriptionSpecified | Flag if descriptions (descriptions, defaultValue, boundDefiner, minValue, maxValue) will be written in the file. |
definitionData | Definition data set. |
$A Tako78 Mar11; June27;
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputOutputElementDefinition.Description, IG.Num.InputOutputDataDefiniton.GetInputElement(), IG.Num.SampledDataSet.GetInputParameters(), IG.Num.InputOutputDataDefiniton.GetOutputElement(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataSet.Length, IG.Num.InputOutputElementDefinition.MaximalValue, IG.Num.InputOutputElementDefinition.MinimalValue, IG.Num.InputOutputElementDefinition.Name, IG.Num.SampledDataSet.OutputLength, and IG.Num.InputOutputElementDefinition.Title.
|
inlinestatic |
Saves training data and Definition data to single CSV file.
inputFilePath | Path to the file where training data will be saved. |
trainingData | Training data set. |
namesSpecified | Flag if names will be written in the file. |
descriptionSpecified | Flag if descriptions will be written in the file. |
definitionData | Definition data set. |
$A Tako78 Mar11; June27;
References IG.Num.InputOutputElementDefinition.Description, IG.Num.InputOutputDataDefiniton.GetInputElement(), IG.Num.SampledDataSet.GetInputParameters(), IG.Num.InputOutputDataDefiniton.GetOutputElement(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataSet.Length, IG.Num.InputOutputElementDefinition.Name, IG.Num.SampledDataSet.OutputLength, and IG.Num.InputOutputElementDefinition.Title.
|
inlinestatic |
Saves definition data to CSV file.
inputFilePath | Path to the file where definition data will be saved. |
definitionData | Definition data set. |
$A Tako78 Mar11; June27;
References IG.Num.InputOutputElementDefinition.BoundsDefined, IG.Num.InputElementDefinition.DefaultValue, IG.Num.InputOutputElementDefinition.Description, IG.Num.InputOutputDataDefiniton.GetInputElement(), IG.Num.InputOutputDataDefiniton.InputLength, IG.Num.InputOutputElementDefinition.MaximalValue, IG.Num.InputOutputElementDefinition.MinimalValue, IG.Num.InputOutputElementDefinition.Name, IG.Num.InputOutputDataDefiniton.OutputLength, and IG.Num.InputOutputElementDefinition.Title.
|
inlinestatic |
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files, output parameter are different.
result | Training data set with combined outputs. |
individualSets | Different training data sets with the same inputs and different outputs. |
$A Tako78 Mar11;
References IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataSet.Length, and IG.Num.SampledDataSet.OutputLength.
Referenced by IG.Neural.NeuralTadej.LoadTrainingDataCombinedOutputsJSON().
|
inlinestatic |
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files, output parameter are different.
trainingData | Training data set. |
directoryPath | Path to the file where training data are saved. |
fileNames | Name of the files where training data are saved. |
$A Tako78 Mar11;
|
inlinestatic |
Loads training data and Definition data from multible CSV files. Training data consist of one output and multiple input parameters. Input parameters are the same in all files but output parameter should be different.
fileNames | Path to the file where training data are saved. |
trainingData | Training data set. |
$A Tako78 Mar11;
References IG.Neural.NeuralTadej.LoadSampledDataJson(), and IG.Neural.NeuralTadej.SampledDataCombineOutputs().
|
inlinestatic |
Saves network's training data to the specified JSON file. File is owerwritten if it exists.
inputFilePath | Path to the file where training data is saved. |
$A Tako78 Mar11;
|
inlinestatic |
Saves network's definition data to the specified JSON file. File is owerwritten if it exists.
inputFilePath | Path to the file where definition data is saved. |
$A Tako78 Maj31;
|
inlinestatic |
Restores training data from the specified file in JSON format.
inputFilePath | File from which training data is restored. |
$A Tako78 Mar11;
Referenced by IG.Neural.NeuralTadej.LoadTrainingDataCombinedOutputsJSON().
|
inlinestatic |
Restores definition data from the specified file in JSON format.
inputFilePath | File from which definition data is restored. |
$A Tako78 Nov11;
|
inlinestatic |
Returns the standard deviation.
trainingData | List of dataset. |
$A Tako78 Apr11;
|
inlinestatic |
Check the training data set and delete unconsistant datas.
trainingData | Training data set. |
smoothTrainingData | New training data set after. |
numStandardDeviation | Number of standard deviation. |
$A Tako78 Apr11;
References IG.Num.SampledDataSet.GetElementList(), IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataElement.InputParameters, IG.Num.SampledDataSet.Length, IG.Num.SampledDataSet.OutputLength, and IG.Num.SampledDataElement.OutputValues.
|
inlinestatic |
inputLength | |
outputLength | |
trainingData |
$A Tako78 Mar11;
References IG.Num.IVectorApproximator.CalculateOutput(), IG.Lib.SortedUniqueItemList< Type >.Contains(), IG.Lib.IndexList.CreateRandom(), IG.Num.INeuralApproximator.EpochsInBundle, IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.INeuralApproximator.InputBoundsSafetyFactor, IG.Num.IVectorApproximator.InputLength, IG.Num.INeuralApproximator.InputNeuronsRange, IG.Num.INeuralApproximator.LearningRate, IG.Num.INeuralApproximator.MaxEpochs, IG.Num.INeuralApproximator.Momentum, IG.Num.INeuralApproximator.MultipleNetworks, IG.Num.INeuralApproximator.OutputBoundsSafetyFactor, IG.Num.IVectorApproximator.OutputLength, IG.Num.INeuralApproximator.OutputLevel, IG.Num.INeuralApproximator.OutputNeuronsRange, IG.Num.IBoundingBox.Reset(), IG.Num.INeuralApproximator.SetHiddenLayers(), IG.Num.INeuralApproximator.SigmoidAlphaValue, IG.Num.VectorBase.Subtract(), IG.Num.INeuralApproximator.ToleranceRms, IG.Num.IVector.ToString(), IG.Num.INeuralApproximator.TrainingData, IG.Num.INeuralApproximator.TrainNetwork(), IG.Num.IBoundingBox.UpdateAll(), and IG.Num.INeuralApproximator.VerificationIndices.
|
inlinestatic |
inputLength | |
outputLength | |
trainingData |
$A Tako78 Mar11;
References IG.Num.NeuralApproximatorBase.CalculateOutput(), IG.Lib.SortedUniqueItemList< Type >.Contains(), IG.Lib.IndexList.CreateRandom(), IG.Num.NeuralApproximatorBase.EpochsInBundle, IG.Num.NeuralApproximatorBase.GetErrorsTrainingMeanAbs(), IG.Num.NeuralApproximatorBase.GetErrorsVerificationMeanAbs(), IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputRange(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.NeuralApproximatorBase.InputBoundsSafetyFactor, IG.Num.NeuralApproximatorBase.InputLength, IG.Num.NeuralApproximatorBase.InputNeuronsRange, IG.Num.NeuralApproximatorBase.LearningRate, IG.Num.NeuralApproximatorBase.MaxEpochs, IG.Num.NeuralApproximatorBase.Momentum, IG.Num.NeuralApproximatorBase.MultipleNetworks, IG.Num.NeuralApproximatorBase.NumHiddenLayers, IG.Num.NeuralApproximatorBase.NumTrainingPoints, IG.Num.NeuralApproximatorBase.OutputBoundsSafetyFactor, IG.Num.NeuralApproximatorBase.OutputLength, IG.Num.NeuralApproximatorBase.OutputLevel, IG.Num.NeuralApproximatorBase.OutputNeuronsRange, IG.Num.IBoundingBox.Reset(), IG.Num.NeuralApproximatorBase.SetHiddenLayers(), IG.Num.NeuralApproximatorBase.SigmoidAlphaValue, IG.Num.VectorBase.Subtract(), IG.Num.NeuralApproximatorBase.ToleranceRms, IG.Num.IVector.ToString(), IG.Num.NeuralApproximatorBase.ToString(), IG.Num.NeuralApproximatorBase.TrainingData, IG.Num.NeuralApproximatorBase.TrainNetwork(), IG.Num.IBoundingBox.UpdateAll(), and IG.Num.NeuralApproximatorBase.VerificationIndices.
|
inlinestatic |
|
inlinestatic |
References IG.Num.INeuralApproximator.GetErrorsTrainingRms(), IG.Num.INeuralApproximator.GetErrorsVerificationRms(), IG.Num.IVectorApproximator.InputLength, IG.Num.INeuralApproximator.NetworkStateFilePath, IG.Num.IVectorApproximator.OutputLength, IG.Num.INeuralApproximator.SaveNetwork(), IG.Num.INeuralApproximator.TrainNetwork(), and IG.Neural.NeuralTadej.TrainNetwork().
|
inlinestatic |
inputLength | |
outputLength |
$A Tako78 Mar11;
References IG.Num.IVectorApproximator.CalculateOutput(), IG.Lib.SortedUniqueItemList< Type >.Contains(), IG.Num.SampledDataSet.CreateExampleQuadratic(), IG.Lib.IndexList.CreateRandom(), IG.Num.INeuralApproximator.EpochsInBundle, IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.INeuralApproximator.InputBoundsSafetyFactor, IG.Num.IVectorApproximator.InputLength, IG.Num.INeuralApproximator.InputNeuronsRange, IG.Num.INeuralApproximator.LearningRate, IG.Num.INeuralApproximator.MaxEpochs, IG.Num.INeuralApproximator.Momentum, IG.Num.INeuralApproximator.MultipleNetworks, IG.Num.INeuralApproximator.OutputBoundsSafetyFactor, IG.Num.IVectorApproximator.OutputLength, IG.Num.INeuralApproximator.OutputLevel, IG.Num.INeuralApproximator.OutputNeuronsRange, IG.Num.IBoundingBox.Reset(), IG.Num.INeuralApproximator.SetHiddenLayers(), IG.Num.INeuralApproximator.SigmoidAlphaValue, IG.Num.VectorBase.Subtract(), IG.Num.INeuralApproximator.ToleranceRms, IG.Num.IVector.ToString(), IG.Num.INeuralApproximator.TrainingData, IG.Num.INeuralApproximator.TrainNetwork(), IG.Num.IBoundingBox.UpdateAll(), and IG.Num.INeuralApproximator.VerificationIndices.
|
inlinestatic |
trainingData | Training Data. |
inputColumnSet | List of input Parameters. |
inputlowerBound | Lower coordinate input neurons range. |
inputupperBound | Upper coordinate input neurons range. |
outputColumnSet | List of output Parameters. |
outputlowerBound | Lower coordinate output neurons range. |
outputupperBound | Upper coordinate output neurons range. |
$A Tako78 June20;
References IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataSet.Length, and IG.Num.SampledDataSet.OutputLength.
|
inlinestatic |
Copy training data set to new training data set.
///
trainingData | Training data set. |
newtrainingData | New training data set. |
References IG.Num.SampledDataSet.GetInputParameters(), IG.Num.SampledDataSet.GetOutputValues(), IG.Num.SampledDataSet.InputLength, IG.Num.SampledDataSet.Length, and IG.Num.SampledDataSet.OutputLength.
|
inlinestaticprivate |
Creates an array with 0 elements.
$A Tako78 Mar11;