tensortrade.env.rewards.abstract module

class tensortrade.env.rewards.abstract.AbstractRewardScheme(*args, **kwargs)[source]

Bases: SchemeMixin, Component, TimeIndexed

A component to compute the reward at each step of an episode.

registered_name = 'rewards'
reset() None[source]

Resets the reward scheme.

abstract reward() float[source]

Computes the reward for the current step of an episode.

Returns:

The computed reward.

Return type:

float