MCPcopy Create free account

hub / github.com/TJU-DRL-LAB/AI-Optimizer / functions

Functions3,230 in github.com/TJU-DRL-LAB/AI-Optimizer

↓ 6 callersFunction_convert_to_torch
(array: np.ndarray, device: str)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/torch_utility.py:156
↓ 6 callersFunction_make_taus
(h: torch.Tensor, n_quantiles: int)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/qr_q_function.py:15
↓ 6 callersFunction_make_taus
( h: torch.Tensor, proposal: nn.Linear, )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/fqf_q_function.py:16
↓ 6 callersMethodappend
Stack new image. Args: image (numpy.ndarray): image observation.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/preprocessing/stack.py:40
↓ 6 callersFunctioncompute_quantile_loss
( quantiles: torch.Tensor, rewards: torch.Tensor, target: torch.Tensor, terminals: torch.Tenso
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/utility.py:46
↓ 6 callersMethodcreate_with_action
Returns PyTorch's state-action enocder module. Args: observation_shape: observation shape. action_size: action size.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/encoders.py:44
↓ 6 callersMethoddist
(self, x: torch.Tensor)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:272
↓ 6 callersMethodfeatures_from_state
Extract features for the decoder network from a prior or posterior.
modelbased-rl/PlaNet/planet/models/ssm.py:71
↓ 6 callersMethodget_type
Returns a scaler type. Returns: scaler type.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/preprocessing/scalers.py:59
↓ 6 callersMethodlog_prob
(self, events)
modelbased-rl/Dreamer/Vanilla_Dreamer/tools.py:268
↓ 6 callersMethodminimize
(self, loss)
modelbased-rl/PlaNet/planet/tools/custom_optimizer.py:60
↓ 6 callersMethodmode
(self)
modelbased-rl/Dreamer/Vanilla_Dreamer/tools.py:239
↓ 6 callersFunctionpick_quantile_value_by_action
( values: torch.Tensor, action: torch.Tensor, keepdim: bool = False )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/utility.py:17
↓ 6 callersMethodreset
(self)
modelbased-rl/Dreamer/ED2-Dreamer/wrappers.py:102
↓ 6 callersMethodreset
(self)
modelbased-rl/Dreamer/Vanilla_Dreamer/wrappers.py:100
↓ 6 callersFunctionsafe_print
(*args, **kwargs)
modelbased-rl/PlaNet/planet/scripts/fetch_events.py:40
↓ 6 callersMethodstamp
(self)
modelbased-rl/BMPO/utils/logging.py:129
↓ 6 callersFunctionto_tensor
(ndarray, volatile=False, requires_grad=False, dtype=FLOAT)
multiagent-rl/easy-marl/algorithms/DQN_based/CommNet.py:17
↓ 5 callersMethod_compute_quantiles
( self, h: torch.Tensor, taus: torch.Tensor )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/fqf_q_function.py:65
↓ 5 callersMethod_compute_quantiles
( self, h: torch.Tensor, taus: torch.Tensor )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/fqf_q_function.py:193
↓ 5 callersMethod_is_every_steps
Determine whether a periodic event should happen at this step. Args: phase_step: The incrementing step. batch: The number of steps pr
modelbased-rl/PlaNet/planet/training/trainer.py:220
↓ 5 callersMethodadd_onetime
(self, geom)
multiagent-rl/easy-marl/envs/continuous_mpe/multiagent/rendering.py:83
↓ 5 callersMethodbest_action
(self, x: torch.Tensor)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:42
↓ 5 callersMethodclear
Return the mean estimate and reset the streaming statistics.
modelbased-rl/PlaNet/planet/tools/streaming_mean.py:72
↓ 5 callersMethodclose
Send a close message to the external process and join it.
modelbased-rl/PlaNet/planet/control/wrappers.py:640
↓ 5 callersMethodcompute_target
( self, x: torch.Tensor, action: Optional[torch.Tensor] = None, reduction: str
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/ensemble_q_function.py:248
↓ 5 callersMethodcount
The number of submitted samples.
modelbased-rl/PlaNet/planet/tools/streaming_mean.py:52
↓ 5 callersFunctioncount_steps
(datadir, config)
modelbased-rl/Dreamer/ED2-Dreamer/dreamer.py:379
↓ 5 callersFunctioncount_steps
(datadir, config)
modelbased-rl/Dreamer/Vanilla_Dreamer/dreamer.py:339
↓ 5 callersFunctioncreate_discrete_q_function
( observation_shape: Sequence[int], action_size: int, encoder_factory: EncoderFactory, q_func_
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/builders.py:26
↓ 5 callersFunctiondraw_circle
(image, pos, cell_size=50, fill='black', radius=0.3)
multiagent-rl/easy-marl/envs/discrete_magym/envs/utils/draw.py:97
↓ 5 callersFunctionfind_source_files
(directory)
modelbased-rl/PlaNet/planet/scripts/sync.py:23
↓ 5 callersMethodget_action_size
Returns dimension of action-space. Returns: int: dimension of action-space.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/dataset.py:112
↓ 5 callersFunctionget_cell_sizes
Handle multiple type options of `cell_size`. In order to keep the old API of following functions, as well as add support for non-square grids
multiagent-rl/easy-marl/envs/discrete_magym/envs/utils/draw.py:6
↓ 5 callersMethodget_feat
(self, state)
modelbased-rl/Dreamer/ED2-Dreamer/models.py:51
↓ 5 callersMethodget_feat
(self, state)
modelbased-rl/Dreamer/Vanilla_Dreamer/models.py:51
↓ 5 callersMethodget_input_dim
Returns the dimension of the input. Returns: The dimension of the input
modelbased-rl/MBPO/ED2-MBPO/mbpo/models/fc.py:167
↓ 5 callersMethodget_input_dim
Returns the dimension of the input. Returns: The dimension of the input
modelbased-rl/BMPO/models/fc.py:167
↓ 5 callersFunctioninit_help_string
(help_string)
modelbased-rl/MBPO/ED2-MBPO/examples/utils.py:92
↓ 5 callersMethodinitial_inference
(self, obs)
modelbased-rl/MuZero/core/model.py:32
↓ 5 callersMethodload_model
(self, fname: str)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/base.py:65
↓ 5 callersFunctionmlp
( input_size, layer_sizes, output_size, output_activation=torch.nn.Identity, activation=to
modelbased-rl/SampledMuZero/models.py:185
↓ 5 callersMethodobs
(self, i)
modelbased-rl/MuZero/config/classic_control/env_wrapper.py:43
↓ 5 callersFunctionregister_reward_scaler
Registers reward scaler class. Args: cls: scaler class inheriting ``RewardScaler``.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/preprocessing/reward_scalers.py:493
↓ 5 callersMethodrender
(self)
multiagent-rl/easy-marl/envs/continuous_mpe/multiagent/rendering.py:157
↓ 5 callersMethodreverse_transform
Returns reversely transformed observations. Args: x: observation. Returns: reversely transformed observation
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/preprocessing/scalers.py:47
↓ 5 callersMethodsample
(self, batch_size)
offline-rl-algorithms/E2O/PEX-main/pex/utils/util.py:53
↓ 5 callersMethodsave
(self, filename)
offline-rl-algorithms/ISPI/ISPI_S.py:166
↓ 5 callersMethodset_weights
(self, weights)
modelbased-rl/SampledMuZero/models.py:56
↓ 5 callersFunctionsquash_action
( dist: torch.distributions.Distribution, raw_action: torch.Tensor )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:13
↓ 5 callersMethodstddev
(self)
offline-rl-algorithms/E2O/PEX-main/pex/networks/policy.py:107
↓ 5 callersMethodto_play
(self)
modelbased-rl/MuZero/core/game.py:159
↓ 5 callersMethodupdate
(self, mapping)
modelbased-rl/PlaNet/planet/tools/attr_dict.py:113
↓ 5 callersMethodvalue
(self)
modelbased-rl/SampledMuZero/self_play.py:442
↓ 5 callersMethodvalue
(self)
modelbased-rl/MuZero/core/mcts.py:39
↓ 4 callersMethod__init__
(self, share_encoder: bool)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/q_functions.py:26
↓ 4 callersFunction_add_attrs
(geom, attrs)
multiagent-rl/easy-marl/envs/continuous_mpe/multiagent/rendering.py:147
↓ 4 callersMethod_clear
(self)
modelbased-rl/MBPO/ED2-MBPO/mbpo/utils/logging.py:81
↓ 4 callersMethod_clear
(self)
modelbased-rl/BMPO/utils/logging.py:80
↓ 4 callersMethod_compute_logstd
(self, h: torch.Tensor)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:157
↓ 4 callersMethod_compute_policy_is_values
( self, policy_obs: torch.Tensor, value_obs: torch.Tensor )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/algos/torch/cql_impl.py:143
↓ 4 callersMethod_conv_encode
(self, x: torch.Tensor)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/encoders.py:139
↓ 4 callersFunction_create_activation
(activation_type: str)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/encoders.py:18
↓ 4 callersFunction_gather_quantiles_by_indices
( y: torch.Tensor, indices: torch.Tensor )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/ensemble_q_function.py:32
↓ 4 callersMethod_is_cell_vacant
(self, pos)
multiagent-rl/easy-marl/envs/discrete_magym/envs/predator_prey/predator_prey.py:155
↓ 4 callersMethod_parse_dtype
Get a tensor dtype from a OpenAI Gym space. Args: space: Gym space. Raises: NotImplementedError: For spaces other than Box and D
modelbased-rl/PlaNet/planet/control/in_graph_batch_env.py:168
↓ 4 callersFunction_reduce_quantile_ensemble
( y: torch.Tensor, reduction: str = "min", dim: int = 0, lam: float = 0.75 )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/ensemble_q_function.py:52
↓ 4 callersMethod_store_ping
Signal activity by writing the current timestamp to the PING file. Args: overwrite: Write even if the PING file lists another worker.
modelbased-rl/PlaNet/planet/training/running.py:305
↓ 4 callersMethodactions
(self)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/torch_utility.py:210
↓ 4 callersMethodadd
Adds a new layer to the network. Arguments: layer: (layer) The new layer to be added to the network. If this i
modelbased-rl/MBPO/ED2-MBPO/mbpo/models/bnn.py:132
↓ 4 callersMethodadd_geom
(self, geom)
multiagent-rl/easy-marl/envs/continuous_mpe/multiagent/rendering.py:80
↓ 4 callersMethodclear
Clear stacked observation by filling 0.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/preprocessing/stack.py:61
↓ 4 callersMethodclose
(self)
modelbased-rl/Dreamer/ED2-Dreamer/wrappers.py:99
↓ 4 callersMethodclose
(self)
modelbased-rl/Dreamer/Vanilla_Dreamer/wrappers.py:97
↓ 4 callersMethodclose
(self, *args, **kwargs)
modelbased-rl/MuZero/core/game.py:81
↓ 4 callersFunctioncompute_iqn_feature
( h: torch.Tensor, taus: torch.Tensor, embed: nn.Linear, embed_size: int, )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/q_functions/iqn_q_function.py:33
↓ 4 callersFunctioncreate_conditional_vae
( observation_shape: Sequence[int], action_size: int, latent_size: int, beta: float, encod
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/builders.py:118
↓ 4 callersMethodcreate_impl
Instantiate implementation objects with the dataset shapes. This method will be used internally when `fit` method is called. Args:
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/base.py:681
↓ 4 callersMethodcreate_prediction_tensors
See predict() above for documentation.
modelbased-rl/BMPO/models/bnn.py:479
↓ 4 callersMethoddist_from_state
Extract the latent distribution from a prior or posterior state.
modelbased-rl/PlaNet/planet/models/ssm.py:62
↓ 4 callersFunctionepsilon_greedy_sample
Generate greedy sample that maximizes the probability. Borrowed from https://github.com/HorizonRobotics/alf/blob/0f8d0ec5d60ef6f30307c6a66ba38
offline-rl-algorithms/E2O/PEX-main/pex/utils/util.py:207
↓ 4 callersFunctionevaluate_on_environment
Returns scorer function of evaluation on environment. This function returns scorer function, which is suitable to the standard scikit-learn s
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/metrics/scorer.py:408
↓ 4 callersMethodfrom_json
Returns algorithm configured with json file. The Json file should be the one saved during fitting. .. code-block:: python
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/base.py:189
↓ 4 callersFunctiongenerate_experiment
(trainable_class, variant_spec, command_line_args)
modelbased-rl/MBPO/ED2-MBPO/examples/instrument.py:74
↓ 4 callersMethodget_agent_obs
When input to a model, each agent is represented by a set of one-hot binary vectors {i, t, l, h, c} encoding its team ID, unique ID,
multiagent-rl/easy-marl/envs/discrete_magym/envs/combat/combat.py:108
↓ 4 callersMethodget_dist
(self, state)
modelbased-rl/Dreamer/ED2-Dreamer/models.py:54
↓ 4 callersMethodget_dist
(self, state)
modelbased-rl/Dreamer/Vanilla_Dreamer/models.py:54
↓ 4 callersMethodget_id
Returns GPU id. Returns: GPU id.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/gpu.py:45
↓ 4 callersMethodget_stacked_observations
Generate a new observation with the observation at the index position and num_stacked_observations past observations and actions stac
modelbased-rl/SampledMuZero/self_play.py:509
↓ 4 callersMethodinverse_value_transform
(self, value_logits)
modelbased-rl/MuZero/core/config.py:123
↓ 4 callersFunctionlast_flag
(iterator: Iterator[T])
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/itertools.py:6
↓ 4 callersFunctionmlp
(dims, activation=nn.ReLU, output_activation=None, squeeze_output=False)
offline-rl-algorithms/E2O/PEX-main/pex/utils/util.py:89
↓ 4 callersMethodpredict
(self, x: Union[np.ndarray, List[Any]])
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/ope/fqe.py:89
↓ 4 callersFunctionregister_encoder_factory
Registers encoder factory class. Args: cls: encoder factory class inheriting ``EncoderFactory``.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/encoders.py:410
↓ 4 callersFunctionregister_q_func_factory
Registers Q function factory class. Args: cls: Q function factory class inheriting ``QFunctionFactory``.
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/q_functions.py:327
↓ 4 callersMethodrender
Display the game observation.
modelbased-rl/SampledMuZero/games/atari.py:193
↓ 4 callersMethodsample
samples action for each agent from uniform distribution
multiagent-rl/easy-marl/envs/discrete_magym/envs/utils/action_space.py:12
↓ 4 callersMethodsample
(self, x: torch.Tensor)
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:23
↓ 4 callersMethodsample
(self, batch_size)
offline-rl-algorithms/ISPI/utils.py:29
↓ 4 callersMethodsample_n_with_log_prob
( self, x: torch.Tensor, n: int )
offline-rl-algorithms/E2O/d3rlpy_new/d3rlpy/models/torch/policies.py:36
← previousnext →101–200 of 3,230, ranked by callers