rl_equation_solver.utilities.utilities.Experience

class Experience(state, action, next_state, reward)

Bases: tuple

Create new instance of Experience(state, action, next_state, reward)

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

action

Alias for field number 1

next_state

Alias for field number 2

reward

Alias for field number 3

state

Alias for field number 0

__add__(value, /)

Return self+value.

__mul__(value, /)

Return self*value.

action

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

next_state

Alias for field number 2

reward

Alias for field number 3

state

Alias for field number 0