tensortrade.env.generic.components.observer module¶
-
class
tensortrade.env.generic.components.observer.Observer(*args, **kwargs)[source]¶ Bases:
tensortrade.core.component.Component,tensortrade.core.base.TimeIndexedA component to generate an observation at each step of an episode.
-
abstract property
observation_space¶ The observation space of the TradingEnv. (Space, read-only)
-
abstract
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'¶
-
abstract property