MCPcopy Create free account

hub / github.com/Ericonaldo/ILSwiss / functions

Functions830 in github.com/Ericonaldo/ILSwiss

↓ 88 callersMethodupdate
(self, v)
rlkit/data_management/normalizer.py:27
↓ 52 callersFunctioncreate_stats_ordered_dict
( name, data, stat_prefix=None, always_show_all_stats=False, exclude_max_min=False, )
rlkit/core/eval_util.py:91
↓ 42 callersMethodstep
( self, obs: np.ndarray, act: np.ndarray, deterministic: bool = False )
rlkit/torch/algorithms/mbpo/fake_env.py:29
↓ 39 callersMethodlog
(self, L, step, log_freq)
rlkit/torch/common/encoders.py:128
↓ 38 callersMethodseed
(self, seed)
rlkit/envs/wrappers.py:42
↓ 31 callersMethodto
(self, device)
rlkit/torch/common/networks.py:284
↓ 26 callersMethodcopy
(self)
rlkit/torch/core.py:32
↓ 22 callersFunctionget_envs
env_specs: env_name: 'halfcheetah' env_kwargs: {} # kwargs to pass to the env constructor call
rlkit/envs/__init__.py:72
↓ 18 callersMethodsave_init_params
Should call this FIRST THING in the __init__ method if you ever want to serialize or clone this network. Usage: ```
rlkit/torch/core.py:37
↓ 18 callersFunctionset_seed
Set the seed for all the possible random number generators. :param seed: :return: None
rlkit/launchers/launcher_util.py:330
↓ 17 callersMethodclose
Close all of the environments. This function will be called only once (if not, it will be called during garbage collected). This way,
rlkit/envs/vecenvs.py:289
↓ 17 callersMethoddump
(self)
rlkit/launchers/launcher_util.py:510
↓ 17 callersFunctionget_env
env_specs: env_name: 'halfcheetah' env_kwargs: {} # kwargs to pass to the env constructor call
rlkit/envs/__init__.py:44
↓ 17 callersFunctionsetup_logger
Set up logger to have some reasonable default settings. Will save log output to based_log_dir/exp_prefix/exp_name. exp_name wi
rlkit/launchers/launcher_util.py:209
↓ 15 callersMethodsample
(self)
rlkit/torch/common/distributions.py:23
↓ 15 callersMethodtrain
(self, start_epoch=0)
rlkit/core/base_algorithm.py:145
↓ 13 callersMethod__init__
(self, hidden_sizes, obs_dim, action_dim, init_w=1e-3, **kwargs)
rlkit/torch/common/policies.py:107
↓ 12 callersMethod_get_batch_using_indices
( self, indices, keys=None, multi_step=False, step_num=1 )
rlkit/data_management/simple_replay_buffer.py:255
↓ 12 callersMethodquick_init
(self, locals_)
rlkit/core/serializable.py:16
↓ 12 callersMethodreset
(self)
rlkit/policies/base.py:18
↓ 12 callersMethodstep
(self, action)
rlkit/envs/wrappers.py:24
↓ 10 callersMethodget_batch
(self, batch_size, from_expert, keys=None)
rlkit/torch/algorithms/adv_irl/adv_irl.py:106
↓ 10 callersFunctionrecord_tabular
(key, val)
rlkit/core/logger.py:226
↓ 9 callersMethod_start_new_rollout
(self, env_ind_local)
rlkit/core/base_algorithm.py:393
↓ 9 callersMethodclose
(self)
rlkit/envs/worker/base.py:62
↓ 9 callersFunctionnow
()
rlkit/data_management/data_augmentation.py:317
↓ 8 callersMethodeval_np
Eval this module with a numpy interface Same as a call to __call__ except all Variable input/outputs are replaced with numpy
rlkit/torch/core.py:74
↓ 8 callersMethodget
(self)
rlkit/envs/worker/subproc.py:43
↓ 8 callersFunctionnp_to_pytorch_batch
(np_batch)
rlkit/torch/core.py:138
↓ 8 callersMethodrandom_batch
Return a batch of size `batch_size`. :param batch_size: :return:
rlkit/data_management/replay_buffer.py:77
↓ 8 callersFunctionsecs
(t)
rlkit/data_management/data_augmentation.py:320
↓ 7 callersMethod__init__
(self, wrapped_env)
rlkit/envs/wrappers.py:13
↓ 7 callersMethod_handle_vec_step
Implement anything that needs to happen after every step under vec envs :return:
rlkit/core/base_algorithm.py:425
↓ 7 callersMethod_np_randint
(self, *args, **kwargs)
rlkit/data_management/simple_replay_buffer.py:70
↓ 7 callersMethodget_actions
(self, obs_np, deterministic=False)
rlkit/torch/common/policies.py:126
↓ 7 callersMethodrender
(self, *args, **kwargs)
rlkit/envs/wrappers.py:27
↓ 6 callersMethod_handle_vec_rollout_ending
Implement anything that needs to happen after every vec env rollout.
rlkit/core/base_algorithm.py:508
↓ 6 callersMethodadd_path
Add a path to the replay buffer. This default implementation naively goes through every step, but you may want to optimize t
rlkit/data_management/replay_buffer.py:34
↓ 6 callersMethodto
(self, device)
rlkit/torch/algorithms/adv_irl/adv_irl.py:326
↓ 5 callersMethod_assert_is_not_closed
(self)
rlkit/envs/vecenvs.py:109
↓ 5 callersMethod_np_choice
(self, *args, **kwargs)
rlkit/data_management/simple_replay_buffer.py:74
↓ 5 callersFunction_strip_invisible
Remove invisible ANSI color codes.
rlkit/core/tabulate.py:389
↓ 5 callersFunctionget_dim
(space)
rlkit/data_management/env_replay_buffer.py:35
↓ 5 callersFunctionload_from_file
(algorithm, load_replay_buffer, load_model, load_path=None)
rlkit/core/logger.py:31
↓ 4 callersFunction_build_line
Return a string which represents a horizontal line.
rlkit/core/tabulate.py:862
↓ 4 callersFunction_build_row
Return a string which represents a row of data cells.
rlkit/core/tabulate.py:852
↓ 4 callersMethod_check_input
( self, value, name, center=1, bound=(0, float("inf")), clip_first_on_zero=True )
rlkit/torch/utils/transform_layer.py:111
↓ 4 callersMethod_stamp
(self, s: str)
rlkit/torch/algorithms/mbpo/bnn_trainer.py:237
↓ 4 callersMethod_start_epoch
(self, epoch)
rlkit/core/base_algorithm.py:381
↓ 4 callersMethod_try_to_eval
(self, epoch)
rlkit/core/base_algorithm.py:297
↓ 4 callersMethod_try_to_train
(self, epoch)
rlkit/core/base_algorithm.py:289
↓ 4 callersMethodadd
(self, key, vals, **kwargs)
rlkit/launchers/launcher_util.py:538
↓ 4 callersMethodadd_all
(self, **key_to_value)
rlkit/data_management/path_builder.py:38
↓ 4 callersMethodadd_sample
( self, observation, action, reward, terminal, next_observatio
rlkit/data_management/simple_replay_buffer.py:78
↓ 4 callersMethodadd_sample
Add a transition tuple.
rlkit/data_management/replay_buffer.py:10
↓ 4 callersFunctioncolor_string
(msg, color=None)
rlkit/data_management/mil_color_print.py:185
↓ 4 callersMethodcompute_loss
( self, inputs: torch.Tensor, targets: torch.Tensor, add_var_loss: bool = True )
rlkit/torch/algorithms/mbpo/bnn_trainer.py:71
↓ 4 callersMethodget_batch
(self, batch_size, keys=None, use_expert_buffer=True)
rlkit/torch/algorithms/bc/bc.py:42
↓ 4 callersMethodget_epoch_snapshot
Probably will be overridden by each algorithm
rlkit/core/base_algorithm.py:530
↓ 4 callersFunctionget_normalized
(data, size, mean=None, std=None, return_stats=False)
scripts/normalize_exp_demos.py:20
↓ 4 callersMethodlog_diagnostics
(self, paths, *args, **kwargs)
rlkit/envs/wrappers.py:30
↓ 4 callersMethodlog_prob
(self, value)
rlkit/torch/common/distributions.py:43
↓ 4 callersMethodlog_statistics
(self, *args, **kwargs)
rlkit/envs/wrappers.py:126
↓ 4 callersMethodnormalize_obs
Normalize observations by statistics in obs_rms.
rlkit/envs/vecenvs.py:299
↓ 4 callersFunctionnp_ify
(tensor_or_other)
rlkit/torch/core.py:117
↓ 4 callersMethodreset
(self, **kwargs)
rlkit/envs/wrappers.py:21
↓ 4 callersMethodset_mean
(self, mean)
rlkit/data_management/normalizer.py:98
↓ 4 callersMethodset_std
(self, std)
rlkit/data_management/normalizer.py:101
↓ 4 callersMethodsynchronize
(self)
rlkit/data_management/normalizer.py:57
↓ 4 callersMethodterminate_episode
Let the replay buffer know that the episode has terminated in case some special book-keeping has to happen. :return:
rlkit/data_management/replay_buffer.py:19
↓ 4 callersFunctiontorch_ify
(np_array_or_other)
rlkit/torch/core.py:110
↓ 4 callersMethodtrain
(self, mode)
rlkit/torch/common/policies.py:29
↓ 4 callersMethodtrain_step
(self, batch)
rlkit/torch/algorithms/td3/td3.py:72
↓ 3 callersMethod__init__
( self, hidden_sizes, output_size, input_size, init_w=3e-3, hi
rlkit/torch/common/networks.py:24
↓ 3 callersMethod_do_update_step
(self, epoch, use_expert_buffer=True)
rlkit/torch/algorithms/bc/bc.py:81
↓ 3 callersMethod_end_epoch
(self)
rlkit/torch/algorithms/mbpo/mbpo.py:269
↓ 3 callersMethodforward
( self, obs, deterministic=False, return_log_prob=False, )
rlkit/torch/common/policies.py:68
↓ 3 callersMethodget_action
deterministic=False makes no diff, just doing this for consistency in interface for now
rlkit/torch/common/policies.py:117
↓ 3 callersMethodget_action
:param observation: :return: action, debug_dictionary
rlkit/policies/base.py:10
↓ 3 callersFunctionget_color_code
(fname)
rlkit/data_management/mil_color_print.py:178
↓ 3 callersMethodget_log_prob
(self, obs, acts)
rlkit/torch/common/policies.py:805
↓ 3 callersMethodget_result
(self)
rlkit/envs/worker/base.py:28
↓ 3 callersFunctionload
(name)
rlkit/envs/__init__.py:35
↓ 3 callersMethodlog_prob
:param value: some value, x :param pre_tanh_value: arctanh(x) :return:
rlkit/torch/common/distributions.py:74
↓ 3 callersMethodsend_action
(self, action: np.ndarray)
rlkit/envs/worker/base.py:25
↓ 3 callersFunctiontabulate
Format a fixed width table for pretty printing. >>> print(tabulate([[1, 2.34], [-56, "8.999"], ["2", "10001"]])) --- --------- 1
rlkit/core/tabulate.py:594
↓ 3 callersMethodtraining_mode
Set training mode to `mode`. :param mode: If True, training will happen (e.g. set the dropout probabilities to not all ones).
rlkit/core/base_algorithm.py:582
↓ 2 callersMethod__init__
( self, obs_shape, feature_dim, num_layers=2, num_filters=32, output_logits=False )
rlkit/torch/common/encoders.py:39
↓ 2 callersMethod__init__
( self, env_fns: List[Callable[[], gym.Env]], worker_fn: Callable[[Callable[[], gym.En
rlkit/envs/vecenvs.py:63
↓ 2 callersFunction_add_output
(file_name, arr, fds, mode="a")
rlkit/core/logger.py:90
↓ 2 callersMethod_assert_id
(self, id: Union[List[int], np.ndarray])
rlkit/envs/vecenvs.py:149
↓ 2 callersFunction_build_simple_row
Format row according to DataRow format without padding.
rlkit/core/tabulate.py:846
↓ 2 callersMethod_can_evaluate
One annoying thing about the logger table is that the keys at each iteration need to be the exact same. So unless you can compute
rlkit/core/base_algorithm.py:346
↓ 2 callersMethod_can_train
(self)
rlkit/core/base_algorithm.py:360
↓ 2 callersMethod_decode_obs
(self)
rlkit/envs/worker/subproc.py:146
↓ 2 callersFunction_encode_obs
( obs: Union[dict, tuple, np.ndarray], buffer: Union[dict, tuple, ShArray] )
rlkit/envs/worker/subproc.py:65
↓ 2 callersMethod_get_obs
(self)
rlkit/envs/wrappers.py:394
↓ 2 callersMethod_get_obs
(self)
rlkit/envs/mujoco/ant.py:28
↓ 2 callersMethod_get_obs
(self)
rlkit/envs/mujoco/humanoid.py:24
↓ 2 callersMethod_get_obs
(self)
rlkit/envs/mujoco/walker2d.py:24
next →1–100 of 830, ranked by callers