Skip to content

NevarokML: Continuous Space

The NevarokML plugin provides a Continuous space implementation, representing a single-dimensional Box space in Stable Baselines3.


Continuous Space Overview

The Continuous space in NevarokML corresponds to the Box space in Stable Baselines3. It represents a single-dimensional box in R. The interval can have the form of [a, b] allowing for a wide range of continuous values.

  • owner: The owner object of the space (usually the object creating the space).
  • size (Number of Elements): The size of the continuous array.
  • min: An array of minimum values specifying the lower bounds for each element.
  • max: An array of maximum values specifying the upper bounds for each element.

API

Here is the API for the Continuous space in NevarokML, along with the corresponding default parameter settings:

#include "Spaces/NevarokMLSpace.h"

UFUNCTION(BlueprintPure, Category = "NevarokML|Space")
static UNevarokMLSpace* Continuous(UObject* owner, int size, const TArray<float>& min, const TArray<float>& max)

To create a Continuous space, call the Continuous factory function and provide the required parameters. The function will return an instance of the UNevarokMLSpace class, representing the Continuous space.