Arcades

Class SweetHomeDataInferredSimulated

Class that generate inferred data.

Inherits from:

Info:
  • InitArgument

    __init argument.

    Todo:
    • Don't mix with dump.
    Fields:
    • boolean deterministic
      Is the simulation deterministic?
    • number no_action_ratio
      Ratio of no_action over action states
    • integer history_length
      Length of the history to simulate
    • integer max_tries
      Maximum numbers of tries before simulating the next state
    • environment.BaseEnvironment environment_model
      Environment to which is linked this object
  • __init ( args )

    Default constructor.

    Parameters:

Public Methods

keyboard_arrow_up
  • reset ()

    Reset data provider.

    Returns:
    • self
  • set_state ( command, location, activity )

    Update state to the given one.

    Parameters:
    • string command
      Inferred command
    • string location
      Inferred location
    • string activity
      Inferred activity
    Returns:
    • `self`
  • update ( action_index )

    Update provider according to the executed action.

    Overrides: DataSource:update

    Parameters:
    • integer action_index
      Index of the action executed
    Returns:
    • `self`

Private Methods

keyboard_arrow_up
  • _build_expected_action ( command, location, activity )

    Build the expected action from a given inferred state

    Parameters:
    • string command
      Inferred command
    • string location
      Inferred location
    • string activity
      Inferred activity
    Returns:
  • _get_random_sample ()

    Get a valid state sample.

    Returns:
    • string A valid inferred command
    • string A valid inferred location
    • string A valid inferred activity