Collapse All Expand All

C#

Clarion Library 6.1.1
ReinforcementTrainableImplicitComponent..::..UpdateMatchStatistics Method
ReinforcementTrainableImplicitComponent Class See Also Send Feedback

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

Updates the match statistics for the reinforcement-trainable implicit component

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

# Syntax

C#
    public virtual void UpdateMatchStatistics(
    	double feedback,
    	SensoryInformation currentInput,
    	Guid chosenOutputChunkID,
    	double increment
    )

#### Parameters

feedback
  Type: System..::..Double
  The feedback that was received given the current input and the chosen output chunk

currentInput
  Type: Clarion.Framework..::..SensoryInformation
  The current sensory input

chosenOutputChunkID
  Type: System..::..Guid
  The world ID of the chosen output chunk

increment
  Type: System..::..Double
  (optional) The amount in which the match statistics are to be updated

#### Implements

ITracksMatchStatistics..::..UpdateMatchStatistics(Double, SensoryInformation, Guid, Double)

# Remarks

Users can specify their own, customized, method for updating the match statistics by either of the following methods:

1. By overriding the method in a subclass. This is the better option when implementing a new, fully-defined, custom reinforcement-trainable implicit component
2. By specifying a PositiveMatchDeterminer delegate during the initialization of a reinforcement-trainable implicit component. This option should be used when a user wishes to alter the positive match determining method of an already existing reinforcement-trainable implicit component

If a user defined PositiveMatchDeterminer delegate is specified, this method will use that delegate to determine if the positive match statistic should be updated.

Note
The positive match determiner delegate MUST return True if the positive match statistic should be updated or False if the negative match statistic should be updated. In addition, the positive match determiner may also specify the amount in which the match statistic should be incremented.

# See Also

ReinforcementTrainableImplicitComponent Class
Clarion.Framework.Templates Namespace