prevision_quantum_nn.applications.reinforcement_learning.qnn_q_learning¶
Deep Q Learning module
Module Contents¶
Classes¶
DeepQLearner. |
-
class
prevision_quantum_nn.applications.reinforcement_learning.qnn_q_learning.QNNQLearner(params, preprocessing_params=None, model_params=None, postprocessing_params=None)¶ Bases:
prevision_quantum_nn.applications.reinforcement_learning.base_learner.BaseLearnerDeepQLearner.
Base class for further implementations of Deep Q Learners
-
params¶ contains the parameters of the model
- Type
dictionary
-
input_size¶ he size of the state space
- Type
int
-
num_layers¶ the number of layers in the deep model
- Type
int
-
model¶ the model itself
- Type
tf.keras.model
-
optimizer_name¶ the name of the optimizer, can be adam for example
- Type
str
-
fit(self, x_train, y_train)¶ Fit the model.
- Parameters
x_train (numpy array) – contains the features of the observations
y_train (numpy array) – contains the targets of the observations
-
forward(self, state)¶
-