Module

Utils/Evaluation

Methods

# static benchmarkSingleAgent(env, agent, iterations, randomSeed, maxIteration, resetEnvStats) → {object}

Benchmark a single agent

Parameters:
Name Type Description
env SingleAgentEnvironment

The environment to benchmark in

agent Agent

The agent to bechmark. The agent has to be initialized

iterations number

The number of iterations

randomSeed number

The random seed

maxIteration number

The maximum number of game iterations

resetEnvStats boolean

Whether to reset the stats of the environment

View Source core/src/Utils/Evaluation.ts, line 17

The bechmark result

object