NRN Agents Docs
  • Overview
    • Introduction
    • Installation & Setup
  • Admin
    • Overview
    • Model Architectures
    • Register
    • Unregister
  • Getting Started
    • Basic Integration
    • State Space
    • Action Space
    • Data Collection
    • Model Initialization
    • Inference
Powered by GitBook
On this page
Export as PDF
  1. Getting Started

Data Collection

PreviousAction SpaceNextModel Initialization

Last updated 5 months ago

Below we show a visual of the flow when a human gamer is playing the game and we are collecting data to be used in training at a later time.

Once we obtain the state and action pair, which can be seen in the , we simply call the collect method as follows:

agent.collect({ state, action });
Agent.Model.Collect({ state, action });

By default we collect data every 10 frames, but the optimal frequency will change depending on the game genre and frame rate of the game. In order to change the data collection interval, we can use the following line of code:

agent.setCollectionInterval(15); // Collect every 15 frames
Agent.Model.SetCollectionInterval(15); // Collect every 15 frames

basic integration