SELAB3 Python Code
Loading...
Searching...
No Matches
Classes | Functions
deep_q_learning.py File Reference

Contains the DeepQLearner class and some functions to use this class separately or in coevolution. More...

Classes

class  rl.deep_q_learning.DeepQLearner
 The Deep Q learner class. More...
 

Functions

List[Arm] rl.deep_q_learning.train_arms (List[Arm] arms)
 Run a reinforcement learning training cycle on each given arm and save its success rate. More...
 
def rl.deep_q_learning.run_reinforcement_learning (network_path="")
 Run reinforcement learning: train a network with a certain config and save it in the end. More...
 

Detailed Description

Contains the DeepQLearner class and some functions to use this class separately or in coevolution.

Function Documentation

◆ run_reinforcement_learning()

def rl.deep_q_learning.run_reinforcement_learning (   network_path = "")

Run reinforcement learning: train a network with a certain config and save it in the end.

Parameters
network_pathThe path to a network that is passed when the training has been done, and we want to test.

◆ train_arms()

List[Arm] rl.deep_q_learning.train_arms ( List[Arm]  arms)

Run a reinforcement learning training cycle on each given arm and save its success rate.

Parameters
armsThe list of arms.
Returns
The arms with their reinforcement learning model and success rate added.