IGLib  1.7.2
The IGLib base library for development of numerical, technical and business applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Neural.DataMapperSimple Class Reference

More...

+ Inheritance diagram for IG.Neural.DataMapperSimple:
+ Collaboration diagram for IG.Neural.DataMapperSimple:

Public Member Functions

 DataMapperSimple (MappingDefinition definition, InputOutputDataDefiniton dataDefinition)
 
 DataMapperSimple (string mappingDefinitionFilePath, string dataDefinitionPath)
 
override void MapInput (IVector reducedInput, ref IVector originalInput)
 Transfer elements from reducedInput vector to original output vector using mapping data for reference. Elements that are not defined in reducedInput vector are copied from definitiondata. More...
 
override void MapOutput (IVector originalOutput, ref IVector reducedOutput)
 Transfer elements from originalOutput vector to original output vector using mapping data for reference. Only defined elements are copied in reducedOutput vector. More...
 
- Public Member Functions inherited from IG.Neural.DataMapperIdentity
 DataMapperIdentity ()
 

Protected Member Functions

 DataMapperSimple ()
 

Properties

MappingDefinition MappingDefinition [get, protected set]
 
InputOutputDataDefiniton DataDefinition [get, protected set]
 

Private Attributes

MappingDefinition _mappingDefinition
 
InputOutputDataDefiniton _dataDefinition
 

Detailed Description

Constructor & Destructor Documentation

IG.Neural.DataMapperSimple.DataMapperSimple ( )
inlineprotected
IG.Neural.DataMapperSimple.DataMapperSimple ( MappingDefinition  definition,
InputOutputDataDefiniton  dataDefinition 
)
inline

Parameters
definitionData that defines how input and output mappings are performed. If null then identity mapping is performed.
dataDefinitionDefinition data.

$A Igor Jul 19; tako78 Jul 19

IG.Neural.DataMapperSimple.DataMapperSimple ( string  mappingDefinitionFilePath,
string  dataDefinitionPath 
)
inline

Parameters
mappingDefinitionFilePathJSON file containing data that defines how input and output mappings are performed. If null then identity mapping is performed.
dataDefinitionPathJSON file containing data definitions.
Exceptions
NotImplementedExceptionWhen file path is not specified or file does not exist.

$A Igor Jul 19; tako78 Jul 19

References IG.Neural.MappingDefinition.LoadJson(), and IG.Num.InputOutputDataDefiniton.LoadJson().

Member Function Documentation

override void IG.Neural.DataMapperSimple.MapInput ( IVector  reducedInput,
ref IVector  originalInput 
)
inline

Transfer elements from reducedInput vector to original output vector using mapping data for reference. Elements that are not defined in reducedInput vector are copied from definitiondata.

Parameters
reducedInputReduced elements.
originalInputOriginal elements for neural network testing.

$A Igor Jul 19; tako78 Jul 19

Implements IG.Neural.IDataMapper.

References IG.Neural.MappingDefinition.CheckInputNameConsistency, IG.Neural.MappingDefinition.CheckInputUniqueness, IG.Num.InputElementDefinition.DefaultValue, IG.Neural.MappingDefinition.GetMapInputElement(), IG.Neural.MappingDefinition.MappedInputLength, and IG.Neural.MappingDefinitionElement.OriginalElementIndex.

override void IG.Neural.DataMapperSimple.MapOutput ( IVector  originalOutput,
ref IVector  reducedOutput 
)
inline

Transfer elements from originalOutput vector to original output vector using mapping data for reference. Only defined elements are copied in reducedOutput vector.

Parameters
originalOutputOriginal elements from neural network.
reducedOutputReduced elements.

$A Igor Jul 19; tako78 Jul 19

Implements IG.Neural.IDataMapper.

References IG.Neural.MappingDefinition.CheckOutputNameConsistency, IG.Neural.MappingDefinition.CheckOutputUniqueness, IG.Neural.MappingDefinition.GetMapOutputElement(), IG.Neural.MappingDefinition.MappedOutputLength, and IG.Neural.MappingDefinitionElement.OriginalElementIndex.

Member Data Documentation

MappingDefinition IG.Neural.DataMapperSimple._mappingDefinition
private
InputOutputDataDefiniton IG.Neural.DataMapperSimple._dataDefinition
private

Property Documentation

MappingDefinition IG.Neural.DataMapperSimple.MappingDefinition
getprotected set

InputOutputDataDefiniton IG.Neural.DataMapperSimple.DataDefinition
getprotected set


The documentation for this class was generated from the following file: