MCPcopy Create free account

hub / github.com/VinF/deer / functions

Functions287 in github.com/VinF/deer

↓ 1 callersMethodgradients
Returns the gradients on the Q-network for the different actions (used for policy update)
deer/learning_algos/AC_net_keras.py:211
↓ 1 callersMethodhasChildren
(self)
deer/helper/tree.py:32
↓ 1 callersMethodinTerminalState
Tells whether the environment reached a terminal state after the last transition (i.e. the last transition that occured was terminal).
deer/base_classes/environment.py:78
↓ 1 callersMethodinTerminalState
(self)
examples/ALE/ALE_env.py:98
↓ 1 callersMethodinTerminalState
(self)
examples/test_CRAR/simple_maze_env.py:397
↓ 1 callersMethodinTerminalState
(self)
examples/test_CRAR/catcher_env.py:365
↓ 1 callersMethodinit_grid
Prepare grid cells, walls. @param width grid's width. @param height grid's height. @param walls list of wall x,y tuples.
examples/maze/a_star_path_finding.py:64
↓ 1 callersMethodis_valid_map
(self,pos_agent,pos_walls,pos_rewards)
examples/maze/maze_env.py:72
↓ 1 callersMethodlearningRate
Getting the learning rate
deer/base_classes/learning_algo.py:66
↓ 1 callersFunctionmain
()
examples/MG_two_storages/MG_two_storages_env.py:286
↓ 1 callersFunctionmain
()
examples/toy_env/Toy_env.py:157
↓ 1 callersFunctionmain
()
examples/gym/mountain_car_continuous_env.py:93
↓ 1 callersFunctionmain
()
examples/gym/pendulum_env.py:60
↓ 1 callersFunctionmain
()
examples/gym/mountain_car_env.py:94
↓ 1 callersMethodobservationType
Gets the most inner type (np.uint8, np.float32, ...) of [subject]. Parameters ----------- subject : int The subje
deer/base_classes/environment.py:119
↓ 1 callersMethodobserve
Gets a list of punctual observations composing this environment. This returns a list where element i is a punctual observation. Note
deer/base_classes/environment.py:94
↓ 1 callersMethodobserve
(self)
examples/MG_two_storages/MG_two_storages_env.py:254
↓ 1 callersMethodobserve
(self)
examples/toy_env/Toy_env.py:151
↓ 1 callersMethodobserve
(self)
examples/gym/pendulum_env.py:57
↓ 1 callersMethodobserve
(self)
examples/gym/mountain_car_env.py:91
↓ 1 callersMethodonActionChosen
Called whenever the agent has chosen an action. This occurs after the agent state was updated with the new observation it made, but before it
deer/experiment/base_controllers.py:84
↓ 1 callersMethodonActionTaken
Called whenever the agent has taken an action on its environment. This occurs after the agent applied this action on the environment and befo
deer/experiment/base_controllers.py:93
↓ 1 callersMethodonEpisodeEnd
Called whenever the agent ends an episode, just after this episode ended and before any onEpochEnd() signal could be sent. Parameters
deer/experiment/base_controllers.py:54
↓ 1 callersMethodprintTree
(self)
deer/helper/tree.py:226
↓ 1 callersMethodqValues
Get the q values for one belief state Arguments --------- state_val : one belief state Returns -------
deer/learning_algos/q_net_keras.py:158
↓ 1 callersMethodqValues_planning
Get the average Q-values up to planning depth d for one pseudo-state. Arguments --------- state_val : array of objec
deer/learning_algos/CRAR_keras.py:354
↓ 1 callersMethodqValues_planning_abstr
Get the q values for pseudo-state(s) with a planning depth d. This function is called recursively by decreasing the depth d at every step.
deer/learning_algos/CRAR_keras.py:424
↓ 1 callersMethodrandomBatch
Returns a batch of states, actions, rewards, terminal status, and next_states for a number batch_size of randomly chosen transitions. Note tha
deer/agent.py:526
↓ 1 callersMethodrandomBatch_nstep
Return corresponding states, actions, rewards, terminal status, and next_states for a number batch_size of randomly chosen transitions. Note t
deer/agent.py:628
↓ 1 callersMethodreset
Resets the environment and put it in mode [mode]. This function is called when beginning every new episode. The [mode] can be used t
deer/base_classes/environment.py:24
↓ 1 callersMethodreset
(self, mode)
examples/ALE/ALE_env_gym.py:50
↓ 1 callersMethodreset
Reset environment for a new episode. Parameters ----------- Mode : int -1 corresponds to training and 0 to test
examples/gym/mountain_car_continuous_env.py:52
↓ 1 callersMethodreset
Reset environment for a new episode. Arguments: Mode : int -1 corresponds to training and 0 to test
examples/gym/pendulum_env.py:31
↓ 1 callersMethodreset
Reset environment for a new episode. Arguments: Mode : int -1 corresponds to training and 0 to test
examples/gym/mountain_car_env.py:57
↓ 1 callersMethodresumeTrainingMode
(self)
deer/agent.py:168
↓ 1 callersMethodrewards
Get all rewards currently in the replay memory, ordered by time where they were received.
deer/agent.py:496
↓ 1 callersMethodsampleUniformActionSequence
(self)
deer/policies/LongerExplorationPolicy.py:59
↓ 1 callersMethodsetActive
Activate or deactivate this controller. A controller should not react to any signal it receives as long as it is deactivated. For ins
deer/experiment/base_controllers.py:31
↓ 1 callersMethodsetAllParams
Set all parameters used by the learning algorithm Arguments --------- list_of_values : list of numpy arrays lis
deer/learning_algos/CRAR_keras.py:169
↓ 1 callersFunctionsetup
(app)
docs/conf.py:155
↓ 1 callersMethodsolve
Solve maze, find path to ending cell. @returns path or None if not found.
examples/maze/a_star_path_finding.py:140
↓ 1 callersMethodstartMode
(self, mode, epochLength)
deer/agent.py:156
↓ 1 callersMethodsummarizePerformance
Optional hook that can be used to show a summary of the performance of the agent on the environment in the current mode. Parameters
deer/base_classes/environment.py:105
↓ 1 callersMethodsummarizeTestPerformance
(self)
deer/agent.py:171
↓ 1 callersMethodtrain
Train CRAR from one batch of data. Parameters ----------- states_val : numpy array of objects Each objec
deer/learning_algos/CRAR_keras.py:180
↓ 1 callersMethodupdatePriorities
deer/agent.py:520
Method__getitem__
(self, i)
deer/agent.py:849
Method__init__
(self, environment, learning_algo, replay_memory_size=1000000, replay_start_size=None, batch_size=32, random_s
deer/agent.py:51
Method__init__
(self, value)
deer/agent.py:431
Method__init__
Initializer. Parameters ----------- inputDims : list of tuples Each tuple relates to one of the observations where
deer/agent.py:446
Method__init__
(self, size, elemShape=(), extension=0.1, dtype="float32")
deer/agent.py:822
Method__init__
(self, value)
deer/agent.py:881
Method__init__
(self, learning_algo, n_actions, random_state, epsilon)
deer/policies/EpsilonGreedyPolicy.py:13
Method__init__
(self, learning_algo, n_actions, random_state, epsilon, length=10)
deer/policies/LongerExplorationPolicy.py:22
Method__init__
The information contained in each node is: - Children and parent - Position: indice of the transition in the replay memory, i.e.
deer/helper/tree.py:15
Method__init__
The tree does not implement any insert-related method because the idea is to initialize the tree to have the same number of leaves
deer/helper/tree.py:38
Method__init__
Initializer.
deer/experiment/base_controllers.py:123
Method__init__
Initializer.
deer/experiment/base_controllers.py:171
Method__init__
Initializer.
deer/experiment/base_controllers.py:253
Method__init__
Initializer.
deer/experiment/base_controllers.py:311
Method__init__
Initializer.
deer/experiment/base_controllers.py:367
Method__init__
Initializer.
deer/experiment/base_controllers.py:438
Method__init__
(self, validationID=0, testID=None, unique_fname="nnet")
deer/experiment/base_controllers.py:522
Method__init__
Initialize the environment
deer/learning_algos/CRAR_keras.py:72
Method__init__
Initialize environment
deer/learning_algos/q_net_keras.py:44
Method__init__
(self, batch_size, input_dimensions, n_actions, random_state, **kwargs)
deer/learning_algos/NN_CRAR_keras.py:28
Method__init__
Initialize environment
deer/learning_algos/AC_net_keras.py:51
Method__init__
(self, batch_size, input_dimensions, n_actions, random_state, action_as_input=False)
deer/learning_algos/NN_keras_LSTM.py:26
Method__init__
(self, batch_size, input_dimensions, n_actions, random_state, action_as_input=False)
deer/learning_algos/NN_keras.py:25
Method__init__
(self, learning_algo, n_actions,random_state)
deer/base_classes/policy.py:20
Method__init__
(self, environment, batch_size)
deer/base_classes/learning_algo.py:17
Method__init__
(self, rng, rom="ale/breakout.bin", frame_skip=4, ale_options=[{"key": "random_seed", "value
examples/ALE/ALE_env.py:17
Method__init__
Initialize environment. Arguments: rng - the numpy random number generator
examples/ALE/ALE_env_gym.py:22
Method__init__
Initialize environment Arguments: rng - the numpy random number generator
examples/MG_two_storages/MG_two_storages_env.py:23
Method__init__
(self, rng, **kwargs)
examples/test_CRAR/simple_maze_env.py:23
Method__init__
(self, rng, **kwargs)
examples/test_CRAR/catcher_env.py:19
Method__init__
Initialize new cell. @param reachable is cell reachable? not a wall? @param x cell x coordinate @param y cell y coordinate
examples/maze/a_star_path_finding.py:9
Method__init__
(self)
examples/maze/a_star_path_finding.py:53
Method__init__
(self, rng, **kwargs)
examples/maze/maze_env.py:20
Method__init__
Initialize environment. Parameters ----------- rng : the numpy random number generator
examples/toy_env/Toy_env.py:22
Method__init__
Initialize environment. Parameters ----------- rng : numpy random number generator
examples/gym/mountain_car_continuous_env.py:13
Method__init__
Initialize environment. Arguments: rng - the numpy random number generator
examples/gym/pendulum_env.py:8
Method__init__
Initialize environment. Arguments: rng - the numpy random number generator
examples/gym/mountain_car_env.py:9
Method__lt__
(self, other)
examples/maze/a_star_path_finding.py:28
Method__str__
(self)
deer/agent.py:433
Method__str__
(self)
deer/agent.py:883
Method_buildDQN
Build a network consistent with each type of inputs
deer/learning_algos/NN_keras_LSTM.py:33
Methodact
(self, action)
examples/ALE/ALE_env_gym.py:76
Methodact
Perform one time step on the environment
examples/MG_two_storages/MG_two_storages_env.py:181
Methodact
Applies the agent action [action] on the environment. Parameters ----------- action : int The action selected by
examples/test_CRAR/simple_maze_env.py:72
Methodact
Applies the agent action [action] on the environment. Parameters ----------- action : int The action selected by
examples/test_CRAR/catcher_env.py:62
Methodact
(self, action)
examples/maze/maze_env.py:104
Methodact
Performs one time-step within the environment and updates the current observation self._last_ponctual_observation Parameters -------
examples/toy_env/Toy_env.py:71
Methodact
Simulate one time step in the environment.
examples/gym/pendulum_env.py:21
Methodact
Simulate one time step in the environment.
examples/gym/mountain_car_env.py:30
Methodaction
(self, state, mode=None, *args, **kwargs)
deer/policies/EpsilonGreedyPolicy.py:17
Methodaction
(self, state, mode=None, *args, **kwargs)
deer/policies/LongerExplorationPolicy.py:29
MethodchooseBestAction
Get the best action for a pseudo-state Arguments --------- state : list of numpy arrays One pseudo-state. The n
deer/learning_algos/CRAR_keras.py:493
MethodchooseBestAction
Get the best action for a pseudo-state Arguments --------- state : one pseudo-state Returns -------
deer/learning_algos/q_net_keras.py:173
MethodchooseBestAction
Get the best action for a pseudo-state Arguments --------- state : one pseudo-state Returns -------
deer/learning_algos/AC_net_keras.py:232
← previousnext →101–200 of 287, ranked by callers