MCPcopy Create free account

hub / github.com/VinF/deer / functions

Functions287 in github.com/VinF/deer

Functioncosine_proximity2
This loss is similar to the native cosine_proximity loss from Keras but it differs by the fact that only the two first components of the two vect
deer/learning_algos/CRAR_keras.py:30
Methoddetach
(self, controllerIdx)
deer/agent.py:150
MethoddiscountFactor
Get the discount factor
deer/agent.py:112
Methodepsilon
Get the epsilon
deer/policies/LongerExplorationPolicy.py:54
Functionexp_dec_error
(y_true, y_pred)
deer/learning_algos/CRAR_keras.py:27
MethodgetAllParams
Get all parameters used by the learning algorithm Returns ------- Values of the parameters: list of numpy arrays
deer/learning_algos/q_net_keras.py:71
MethodgetAllParams
Get all parameters used by the learning algorithm Returns ------- Values of the parameters: list of numpy arrays
deer/learning_algos/AC_net_keras.py:104
Methodget_maze_array
(self)
examples/maze/a_star_path_finding.py:169
MethodinTerminalState
(self)
examples/maze/maze_env.py:203
MethodinTerminalState
(self)
examples/toy_env/Toy_env.py:148
MethodinTerminalState
This returns whether the environment reached a terminal state after the last transition (i.e. whether the last transition that occurred was
examples/gym/mountain_car_continuous_env.py:68
MethodinTerminalState
Tell whether the environment reached a terminal state after the last transition (i.e. the last transition that occured was terminal).
examples/gym/pendulum_env.py:45
MethodinTerminalState
Tell whether the environment reached a terminal state after the last transition (i.e. the last transition that occured was terminal).
examples/gym/mountain_car_env.py:79
MethodinputDimensions
(self)
examples/ALE/ALE_env_gym.py:105
MethodinputDimensions
(self)
examples/test_CRAR/simple_maze_env.py:337
MethodinputDimensions
(self)
examples/gym/mountain_car_continuous_env.py:78
MethodinputDimensions
(self)
examples/gym/mountain_car_env.py:85
MethodlearningRate
Get the learning rate
deer/agent.py:102
Functionloss_diff_s_s_
(y_true, y_pred)
deer/learning_algos/CRAR_keras.py:38
Functionmean_squared_error_p
Modified mean square error that clips
deer/learning_algos/CRAR_keras.py:21
MethodnActions
(self)
examples/ALE/ALE_env_gym.py:111
MethodnActions
(self)
examples/MG_two_storages/MG_two_storages_env.py:251
MethodnActions
(self)
examples/test_CRAR/simple_maze_env.py:346
MethodnActions
Provides the bounds on the action space Returns ------- bounds on the action space
examples/gym/mountain_car_continuous_env.py:81
MethodnActions
(self)
examples/gym/mountain_car_env.py:88
MethodobservationType
(self, subject)
examples/ALE/ALE_env.py:89
MethodobservationType
(self, subject)
examples/ALE/ALE_env_gym.py:108
MethodobservationType
(self, subject)
examples/test_CRAR/simple_maze_env.py:343
MethodobservationType
(self, subject)
examples/test_CRAR/catcher_env.py:326
MethodobservationType
(self, subject)
examples/maze/maze_env.py:144
Methodobserve
(self)
examples/ALE/ALE_env.py:95
Methodobserve
(self)
examples/ALE/ALE_env_gym.py:116
Methodobserve
(self)
examples/test_CRAR/simple_maze_env.py:349
Methodobserve
(self)
examples/test_CRAR/catcher_env.py:332
MethodonActionChosen
(self, agent, action)
deer/experiment/base_controllers.py:216
MethodonActionTaken
(self, agent)
deer/experiment/base_controllers.py:406
MethodonActionTaken
(self, agent)
deer/experiment/base_controllers.py:476
MethodonEnd
(self, agent)
deer/experiment/base_controllers.py:570
MethodonEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:198
MethodonEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:389
MethodonEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:462
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:142
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:207
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:276
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:331
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:399
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:469
MethodonEpochEnd
(self, agent)
deer/experiment/base_controllers.py:534
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:134
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:192
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:265
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:325
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:383
MethodonStart
(self, agent)
deer/experiment/base_controllers.py:456
MethodoverrideNextAction
Possibility to override the chosen action. This possibility should be used on the signal OnActionChosen.
deer/agent.py:117
Functionplot_op
(actions, consumption,production,rewards,battery_level, plot_name)
examples/MG_two_storages/plot_MG_operation.py:7
MethodqValues
Get the q values for one pseudo-state (without planning) Arguments --------- state_val : array of objects (or list of object
deer/learning_algos/CRAR_keras.py:337
MethodqValues
Get the q value for one pseudo-state
deer/base_classes/learning_algo.py:36
Methodreset
(self, mode)
examples/ALE/ALE_env.py:47
Methodreset
Returns: current observation (list of k elements)
examples/MG_two_storages/MG_two_storages_env.py:130
Methodreset
(self, mode)
examples/test_CRAR/simple_maze_env.py:45
Methodreset
(self, mode)
examples/test_CRAR/catcher_env.py:39
Methodreset
Resets the environment for a new episode. Parameters ----------- mode : int -1 is for the training phase, others
examples/toy_env/Toy_env.py:46
MethodsetAllParams
Set all parameters used by the learning algorithm Arguments --------- list_of_values : list of numpy arrays lis
deer/learning_algos/q_net_keras.py:83
MethodsetAllParams
Set all parameters used by the learning algorithm Arguments --------- list_of_values : list of numpy arrays
deer/learning_algos/AC_net_keras.py:119
MethodsetControllersActive
Activate controller
deer/agent.py:91
MethodsetDiscountFactor
Set the discount factor
deer/agent.py:107
MethodsetEpsilon
Set the epsilon
deer/policies/LongerExplorationPolicy.py:49
MethodsetLearningRate
Set the learning rate for the gradient descent
deer/agent.py:97
MethodsetLearningRate
Setting the learning rate NB: The learning rate has usually to be set in the optimizer, hence this function should be overridden. Oth
deer/base_classes/learning_algo.py:41
MethodsetNetwork
Set values into the network Parameters ----------- fname : string Name of the file where the values are
deer/agent.py:230
MethodsummarizePerformance
(self, test_data_set, *args, **kwargs)
examples/ALE/ALE_env.py:80
MethodsummarizePerformance
(self, test_data_set, learning_algo, *args, **kwargs)
examples/ALE/ALE_env_gym.py:99
MethodsummarizePerformance
(self, test_data_set, *args, **kwargs)
examples/MG_two_storages/MG_two_storages_env.py:257
MethodsummarizePerformance
Plot of the low-dimensional representation of the environment built by the model
examples/test_CRAR/simple_maze_env.py:102
MethodsummarizePerformance
Plot of the low-dimensional representation of the environment built by the model
examples/test_CRAR/catcher_env.py:89
MethodsummarizePerformance
(self, test_data_set, learning_algo, *args, **kwargs)
examples/maze/maze_env.py:131
MethodsummarizePerformance
This function is called at every PERIOD_BTW_SUMMARY_PERFS. Parameters ----------- test_data_set
examples/toy_env/Toy_env.py:97
Methodterminals
Get all terminals currently in the replay memory, ordered by time where they were observed. terminals[i] is True if actions()[i] lead
deer/agent.py:501
Methodtest_isupper
(self)
deer/tests/test_base.py:9
Methodtest_split
(self)
deer/tests/test_base.py:13
Methodtest_upper
(self)
deer/tests/test_base.py:6
Methodtrain
This function selects a random batch of data (with self._dataset.randomBatch) and performs a training iteration (with self._learning
deer/agent.py:177
Methodtrain
Train the Q-network from one batch of data. Parameters ----------- states_val : numpy array of objects E
deer/learning_algos/q_net_keras.py:94
Methodtrain
Train the actor-critic algorithm from one batch of data. Parameters ----------- states_val : numpy array of obj
deer/learning_algos/AC_net_keras.py:132
Methodtrain
This method performs the training step (e.g. using Bellman iteration in a deep Q-network) for one batch of tuples.
deer/base_classes/learning_algo.py:25
Methodtransfer
(self, original, transfer, epochs=1)
deer/learning_algos/CRAR_keras.py:589
← previous201–287 of 287, ranked by callers