MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.trainers.common.MemoryItem Class Reference

The MemoryItem stores the information about a given cycle. More...

Public Member Functions

 MemoryItem (StateBase currentState, SimpleDatum currentData, int nAction, StateBase nextState, SimpleDatum nextData, double dfReward, bool bTerminated, int nIteration, int nEpisode)
 The constructor. More...
 
override string ToString ()
 Returns a string representation of the state transition. More...
 

Properties

bool IsTerminated [get]
 Returns the termination status of the next state. More...
 
double Reward [getset]
 Returns the reward of the state transition. More...
 
StateBase CurrentState [get]
 Returns the current state. More...
 
StateBase NextState [get]
 Returns the next state. More...
 
SimpleDatum CurrentData [get]
 Returns the data associated with the current state. More...
 
SimpleDatum NextData [get]
 Returns the data associated with the next state. More...
 
int Action [get]
 Returns the action. More...
 
int Iteration [get]
 Returns the iteration of the state transition. More...
 
int Episode [get]
 Returns the episode of the state transition. More...
 

Detailed Description

The MemoryItem stores the information about a given cycle.

Definition at line 293 of file MemoryCollection.cs.

Constructor & Destructor Documentation

◆ MemoryItem()

MyCaffe.trainers.common.MemoryItem.MemoryItem ( StateBase  currentState,
SimpleDatum  currentData,
int  nAction,
StateBase  nextState,
SimpleDatum  nextData,
double  dfReward,
bool  bTerminated,
int  nIteration,
int  nEpisode 
)

The constructor.

Parameters
currentStateSpecifies the current state.
currentDataSpecifies the current data.
nActionSpecifies the action.
nextStateSpecifies the next state.
nextDataSpecifies the next data.
dfRewardSpecifies the reward.
bTerminatedSpecifies whether or not this is a termination state or not.
nIterationSpecifies the iteration.
nEpisodeSpecifies the episode.

Definition at line 317 of file MemoryCollection.cs.

Member Function Documentation

◆ ToString()

override string MyCaffe.trainers.common.MemoryItem.ToString ( )

Returns a string representation of the state transition.

Returns

Definition at line 407 of file MemoryCollection.cs.

Property Documentation

◆ Action

int MyCaffe.trainers.common.MemoryItem.Action
get

Returns the action.

Definition at line 382 of file MemoryCollection.cs.

◆ CurrentData

SimpleDatum MyCaffe.trainers.common.MemoryItem.CurrentData
get

Returns the data associated with the current state.

Definition at line 366 of file MemoryCollection.cs.

◆ CurrentState

StateBase MyCaffe.trainers.common.MemoryItem.CurrentState
get

Returns the current state.

Definition at line 350 of file MemoryCollection.cs.

◆ Episode

int MyCaffe.trainers.common.MemoryItem.Episode
get

Returns the episode of the state transition.

Definition at line 398 of file MemoryCollection.cs.

◆ IsTerminated

bool MyCaffe.trainers.common.MemoryItem.IsTerminated
get

Returns the termination status of the next state.

Definition at line 333 of file MemoryCollection.cs.

◆ Iteration

int MyCaffe.trainers.common.MemoryItem.Iteration
get

Returns the iteration of the state transition.

Definition at line 390 of file MemoryCollection.cs.

◆ NextData

SimpleDatum MyCaffe.trainers.common.MemoryItem.NextData
get

Returns the data associated with the next state.

Definition at line 374 of file MemoryCollection.cs.

◆ NextState

StateBase MyCaffe.trainers.common.MemoryItem.NextState
get

Returns the next state.

Definition at line 358 of file MemoryCollection.cs.

◆ Reward

double MyCaffe.trainers.common.MemoryItem.Reward
getset

Returns the reward of the state transition.

Definition at line 341 of file MemoryCollection.cs.


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