SELAB3 Python Code
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rl.logger.Logger Class Reference

This class provides logging functionality to the reinforcement part of the code. More...

Public Member Functions

def __init__ (self)
 
def log_episode (self, int episode, np.ndarray final_state, np.ndarray goal, int time_steps, int total_finished, List[bool] episodes_finished, float reward, float eps)
 Log 1 episode. More...
 

Detailed Description

This class provides logging functionality to the reinforcement part of the code.

Member Function Documentation

◆ log_episode()

def rl.logger.Logger.log_episode (   self,
int  episode,
np.ndarray  final_state,
np.ndarray  goal,
int  time_steps,
int  total_finished,
List[bool]  episodes_finished,
float  reward,
float  eps 
)

Log 1 episode.

Parameters
episodeEpisode number
final_stateState at the end of the episode
goalGoal this episode
time_stepsAmount of steps taken in the episode
total_finishedTotal amount of times during the reinforcement run the arm reached the goal.
episodes_finishedboolean array with length 50. It describes the last 50 episodes. True = the episode finished, False = the episode did not finish.
rewardThe reward of the last step in the episode
epsEpsilon parameter of the DQN at this moment.

The documentation for this class was generated from the following file: