Collapse All Expand All

C#

Clarion Library 6.1.1
ImplicitComponentInitializer..::..Encode<(Of <(<'T>)>)> Method
ImplicitComponentInitializer Class See Also Send Feedback

[This is preliminary documentation and is subject to change.]

Encodes the specified datasets into the target auto-encoder

Namespace: Clarion
Assembly: ClarionLibrary (in ClarionLibrary.dll) Version: 6.1.1.0 (6.1.1.0)

# Syntax

C#
    public static double Encode<T>(
    	T target,
    	IEnumerable<ActivationCollection> dataSets,
    	ImplicitComponentInitializer..::..EncodeTerminationConditions termination,
    	int numIterations,
    	bool randomTraversal,
    	bool testOnly
    )
    where T : ImplicitComponent, IAutoEncoder

#### Parameters

target
  Type: T
  The implicit component inside of which the datasets are to be encoded

dataSets
  Type: System.Collections.Generic..::..IEnumerable<(Of <(<'ActivationCollection>)>)>
  The set of all "activation patterns" that are to be encoded into the target auto-encoder

  Note
  For any nodes that have an associated ImplicitComponentInitializer..::..Range defined (using AddRange(IWorldObject, Double, Double, Double)), encoding will occur over that range irrespective of the activations that are specified by the datasets (for those nodes)

termination
  Type: Clarion..::..ImplicitComponentInitializer..::..EncodeTerminationConditions
  The condition in which the encoding operation is to be terminated

numIterations
  Type: System..::..Int32
  (Optional) If the FIXED termination condition is being used, this specifies the number of times over which the datasets should be traversed

randomTraversal
  Type: System..::..Boolean
  (Optional) Indicates whether the data sets should be traversed in a random order for each iteration

testOnly
  Type: System..::..Boolean
  (Optional) Specifies that the target is ONLY being tested by this call to check that it is able to successfully recall all of the data sets

# Type Parameters

T
  The type of IAutoEncoder, ImplicitComponent that is the target of the encoding operation

#### Return Value

The accuracy at which the target has encoding the specified data sets

# See Also

ImplicitComponentInitializer Class
Clarion Namespace