Skip to content

AgentLogger Refactoring #13

@Retr0-code

Description

@Retr0-code

The Idea

Create enumeration of flags representing fields that would be in logs.

Example

typedef enum
{
  Reward = 1,
  LastAction = 2,
  Epsilon = 4,
  RewardDiscount = 8
  // ...
} LogFields;

void SetLoggingFields(uint32_t logFlags)
{
  //...
}

void IAgentLogger::operator(...)
{
  //...
  while (...)
  {
     // Checking for flags and then output if set
  }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions