SELAB3 Python Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
rl.dqn.RobotNetwork Class Reference

The RobotNetwork class. More...

Inheritance diagram for rl.dqn.RobotNetwork:

Public Member Functions

def __init__ (self, int hidden_nodes, int number_of_actions, int state_size)
 The RobotNetwork class initializer. More...
 
def forward (self, network_input)
 Internal function of the network, used for processing the input of the network. More...
 

Public Attributes

 linear1
 
 linear2
 
 linear3
 

Detailed Description

The RobotNetwork class.

Defines the class that will represent the network that is used for deep Q-learning.

Constructor & Destructor Documentation

◆ __init__()

def rl.dqn.RobotNetwork.__init__ (   self,
int  hidden_nodes,
int  number_of_actions,
int  state_size 
)

The RobotNetwork class initializer.

Parameters
hidden_nodesThe number of hidden nodes for the hidden layers.
number_of_actionsThe number of possible actions, important for nodes needed as output.
state_sizeThe number of variables in a state, important for the nodes needed as input.
Returns
An instance of the RobotNetwork class.

Member Function Documentation

◆ forward()

def rl.dqn.RobotNetwork.forward (   self,
  network_input 
)

Internal function of the network, used for processing the input of the network.

Parameters
network_inputThe network input.

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