EnvironmentDataLoader<T>
Models & Types · AiDotNet.Data.Loaders.RL
Data loader for reinforcement learning that wraps an environment for experience collection.
Inheritance: DataLoaderBase<T> → RLDataLoaderBase<T> → EnvironmentDataLoader<T>
For Beginners
This is the main way to set up RL training:
What it does:
- Wraps your RL environment
- Creates a replay buffer for storing experiences
- Manages episode running during training
- Provides experience batches for learning
How It Works
EnvironmentDataLoader provides a clean facade for RL training by wrapping an environment and managing experience collection. Use this with AiModelBuilder for unified training.
Constructors
| Constructor | Summary |
|---|---|
EnvironmentDataLoader(IEnvironment<T> environment, IReplayBuffer<T, Vector<T>, Vector<T>> replayBuffer, int episodes, int maxStepsPerEpisode, int minExperiencesBeforeTraining, bool verbose, int? seed) |
Initializes a new EnvironmentDataLoader with a custom replay buffer. |
EnvironmentDataLoader(IEnvironment<T> environment, int episodes, int maxStepsPerEpisode, int replayBufferCapacity, int minExperiencesBeforeTraining, bool verbose, int? seed) |
Initializes a new EnvironmentDataLoader with a custom replay buffer. |
Properties
| Property | Summary |
|---|---|
string Name { get; } |