Arcades

Module setup

General configuration setup

Info:

Public Methods

keyboard_arrow_up
  • setup ( opt )

    Initialize configuration.

    Parameters:
    • table opt
      Parsed command line arguments
    Returns:

Private Methods

keyboard_arrow_up
  • _agent_setup ( args, environments )

    Setup an agent.

    Parameters:
    • table args
      Agent arguments
    • table environments
      Environments in which agent will act
    Returns:
  • _environment_setup ( args )

    Setup training and testing environments.

    Parameters:
    • table args
      Environments arguments
    Returns:
    • table test and train environments
  • _experiment_setup ( args, agent, environments )

    Setup an experiment.

    Parameters:
    • table args
      Experiment arguments
    • agent.BaseAgent agent
      Agent used for experiment
    • table environments
      Environments used for experiment
    Returns:
  • _get_class ( class_path, base )

    Find a class in a given hierarchy.

    Parameters:
    • string class_path
      A fully qualified class name
    • table base
      Hierarchy to search through
    Returns: Or
    • nil
    • string nil The error message
  • _torchSetup ( [opt={}] )

    Initialize Torch dependant configuration.

    The passed parameter opt is updated to reflect the actual values that Torch returned after trying to configure it.

    Parameters:
    • opt
      • string tensor_type
        Torch default tensor type
      • number threads
        Number of threads torch can use
      • number gpu
        GPU ID to use (-1 for CPU only, 0 for using GPU_ID environment variable)
      • number seed
        Random number generator seed