tensortrade.env.generic.components.observer module

class tensortrade.env.generic.components.observer.Observer[source]

Bases: tensortrade.core.component.Component, tensortrade.core.base.TimeIndexed

A component to generate an observation at each step of an episode.


The observation space of the TradingEnv. (Space, read-only)

observe(env: TradingEnv) → numpy.array[source]

Gets the observation at the current step of an episode

Parameters:env ('TradingEnv') – The trading environment.
Returns:np.array – The current observation of the environment.
registered_name = 'observer'

Resets the observer.