Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VinF/deer
/ functions
Functions
287 in github.com/VinF/deer
⨍
Functions
287
◇
Types & classes
49
Function
cosine_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
Method
detach
(self, controllerIdx)
deer/agent.py:150
Method
discountFactor
Get the discount factor
deer/agent.py:112
Method
epsilon
Get the epsilon
deer/policies/LongerExplorationPolicy.py:54
Function
exp_dec_error
(y_true, y_pred)
deer/learning_algos/CRAR_keras.py:27
Method
getAllParams
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
Method
getAllParams
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
Method
get_maze_array
(self)
examples/maze/a_star_path_finding.py:169
Method
inTerminalState
(self)
examples/maze/maze_env.py:203
Method
inTerminalState
(self)
examples/toy_env/Toy_env.py:148
Method
inTerminalState
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
Method
inTerminalState
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
Method
inTerminalState
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
Method
inputDimensions
(self)
examples/ALE/ALE_env_gym.py:105
Method
inputDimensions
(self)
examples/test_CRAR/simple_maze_env.py:337
Method
inputDimensions
(self)
examples/gym/mountain_car_continuous_env.py:78
Method
inputDimensions
(self)
examples/gym/mountain_car_env.py:85
Method
learningRate
Get the learning rate
deer/agent.py:102
Function
loss_diff_s_s_
(y_true, y_pred)
deer/learning_algos/CRAR_keras.py:38
Function
mean_squared_error_p
Modified mean square error that clips
deer/learning_algos/CRAR_keras.py:21
Method
nActions
(self)
examples/ALE/ALE_env_gym.py:111
Method
nActions
(self)
examples/MG_two_storages/MG_two_storages_env.py:251
Method
nActions
(self)
examples/test_CRAR/simple_maze_env.py:346
Method
nActions
Provides the bounds on the action space Returns ------- bounds on the action space
examples/gym/mountain_car_continuous_env.py:81
Method
nActions
(self)
examples/gym/mountain_car_env.py:88
Method
observationType
(self, subject)
examples/ALE/ALE_env.py:89
Method
observationType
(self, subject)
examples/ALE/ALE_env_gym.py:108
Method
observationType
(self, subject)
examples/test_CRAR/simple_maze_env.py:343
Method
observationType
(self, subject)
examples/test_CRAR/catcher_env.py:326
Method
observationType
(self, subject)
examples/maze/maze_env.py:144
Method
observe
(self)
examples/ALE/ALE_env.py:95
Method
observe
(self)
examples/ALE/ALE_env_gym.py:116
Method
observe
(self)
examples/test_CRAR/simple_maze_env.py:349
Method
observe
(self)
examples/test_CRAR/catcher_env.py:332
Method
onActionChosen
(self, agent, action)
deer/experiment/base_controllers.py:216
Method
onActionTaken
(self, agent)
deer/experiment/base_controllers.py:406
Method
onActionTaken
(self, agent)
deer/experiment/base_controllers.py:476
Method
onEnd
(self, agent)
deer/experiment/base_controllers.py:570
Method
onEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:198
Method
onEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:389
Method
onEpisodeEnd
(self, agent, terminal_reached, reward)
deer/experiment/base_controllers.py:462
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:142
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:207
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:276
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:331
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:399
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:469
Method
onEpochEnd
(self, agent)
deer/experiment/base_controllers.py:534
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:134
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:192
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:265
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:325
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:383
Method
onStart
(self, agent)
deer/experiment/base_controllers.py:456
Method
overrideNextAction
Possibility to override the chosen action. This possibility should be used on the signal OnActionChosen.
deer/agent.py:117
Function
plot_op
(actions, consumption,production,rewards,battery_level, plot_name)
examples/MG_two_storages/plot_MG_operation.py:7
Method
qValues
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
Method
qValues
Get the q value for one pseudo-state
deer/base_classes/learning_algo.py:36
Method
reset
(self, mode)
examples/ALE/ALE_env.py:47
Method
reset
Returns: current observation (list of k elements)
examples/MG_two_storages/MG_two_storages_env.py:130
Method
reset
(self, mode)
examples/test_CRAR/simple_maze_env.py:45
Method
reset
(self, mode)
examples/test_CRAR/catcher_env.py:39
Method
reset
Resets the environment for a new episode. Parameters ----------- mode : int -1 is for the training phase, others
examples/toy_env/Toy_env.py:46
Method
setAllParams
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
Method
setAllParams
Set all parameters used by the learning algorithm Arguments --------- list_of_values : list of numpy arrays
deer/learning_algos/AC_net_keras.py:119
Method
setControllersActive
Activate controller
deer/agent.py:91
Method
setDiscountFactor
Set the discount factor
deer/agent.py:107
Method
setEpsilon
Set the epsilon
deer/policies/LongerExplorationPolicy.py:49
Method
setLearningRate
Set the learning rate for the gradient descent
deer/agent.py:97
Method
setLearningRate
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
Method
setNetwork
Set values into the network Parameters ----------- fname : string Name of the file where the values are
deer/agent.py:230
Method
summarizePerformance
(self, test_data_set, *args, **kwargs)
examples/ALE/ALE_env.py:80
Method
summarizePerformance
(self, test_data_set, learning_algo, *args, **kwargs)
examples/ALE/ALE_env_gym.py:99
Method
summarizePerformance
(self, test_data_set, *args, **kwargs)
examples/MG_two_storages/MG_two_storages_env.py:257
Method
summarizePerformance
Plot of the low-dimensional representation of the environment built by the model
examples/test_CRAR/simple_maze_env.py:102
Method
summarizePerformance
Plot of the low-dimensional representation of the environment built by the model
examples/test_CRAR/catcher_env.py:89
Method
summarizePerformance
(self, test_data_set, learning_algo, *args, **kwargs)
examples/maze/maze_env.py:131
Method
summarizePerformance
This function is called at every PERIOD_BTW_SUMMARY_PERFS. Parameters ----------- test_data_set
examples/toy_env/Toy_env.py:97
Method
terminals
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
Method
test_isupper
(self)
deer/tests/test_base.py:9
Method
test_split
(self)
deer/tests/test_base.py:13
Method
test_upper
(self)
deer/tests/test_base.py:6
Method
train
This function selects a random batch of data (with self._dataset.randomBatch) and performs a training iteration (with self._learning
deer/agent.py:177
Method
train
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
Method
train
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
Method
train
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
Method
transfer
(self, original, transfer, epochs=1)
deer/learning_algos/CRAR_keras.py:589
← previous
201–287 of 287, ranked by callers