Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aviralkumar2907/CQL
/ functions
Functions
729 in github.com/aviralkumar2907/CQL
⨍
Functions
729
◇
Types & classes
125
↓ 54 callers
Method
update
(self, v)
d4rl/rlkit/data_management/normalizer.py:26
↓ 52 callers
Function
create_stats_ordered_dict
( name, data, stat_prefix=None, always_show_all_stats=True, exclude_ma
d4rl/rlkit/core/eval_util.py:72
↓ 40 callers
Method
log
(self, s, with_prefix=True, with_timestamp=True)
d4rl/rlkit/core/logging.py:158
↓ 27 callers
Method
step
(self, a)
d4rl/rlkit/envs/ant.py:19
↓ 22 callers
Method
record_tabular
(self, key, val)
d4rl/rlkit/core/logging.py:174
↓ 20 callers
Method
to
(self, device)
d4rl/rlkit/torch/torch_rl_algorithm.py:24
↓ 17 callers
Function
normalize_image
(image)
d4rl/rlkit/data_management/obs_dict_replay_buffer.py:304
↓ 13 callers
Method
render
(self, *args, **kwargs)
d4rl/rlkit/envs/wrappers.py:26
↓ 13 callers
Method
reset
(self)
d4rl/rlkit/core/logging.py:95
↓ 12 callers
Method
train
(self, data)
d4rl/rlkit/core/trainer.py:6
↓ 11 callers
Method
save
(self, *args, **kwargs)
atari/batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py:202
↓ 10 callers
Method
record_dict
(self, d, prefix=None)
d4rl/rlkit/core/logging.py:177
↓ 10 callers
Method
sample
Gradients will and should *not* pass through this operation. See https://github.com/pytorch/pytorch/issues/4620 for discussion.
d4rl/rlkit/torch/distributions.py:47
↓ 10 callers
Function
setup_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
d4rl/rlkit/launchers/launcher_util.py:212
↓ 9 callers
Method
decode
:param latents: :return: reconstruction, obs_distribution_params
d4rl/rlkit/torch/vae/vae_base.py:44
↓ 9 callers
Method
load
(self, *args, **kwargs)
atari/batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py:193
↓ 8 callers
Method
_encode
(self, imgs)
d4rl/rlkit/envs/vae_wrapper.py:385
↓ 8 callers
Method
_get_tensor_values
(self, obs, actions, network=None)
d4rl/rlkit/torch/sac/cql.py:130
↓ 7 callers
Method
collect_new_paths
( self, max_path_length, num_steps, discard_incomplete_paths,
d4rl/rlkit/samplers/data_collector/base.py:21
↓ 7 callers
Method
dump_tabular
(self, *args, **kwargs)
d4rl/rlkit/core/logging.py:254
↓ 7 callers
Method
get_diagnostics
(self)
d4rl/rlkit/core/trainer.py:15
↓ 6 callers
Method
__init__
(self, name, possible_values)
d4rl/rlkit/util/hyperparameter.py:39
↓ 6 callers
Method
_eval_q_custom_policy
(self, custom_model, q_function)
d4rl/rlkit/core/batch_rl_algorithm.py:182
↓ 6 callers
Method
encode
:param input: :return: latent_distribution_params
d4rl/rlkit/torch/vae/vae_base.py:18
↓ 6 callers
Method
end_epoch
(self, epoch)
d4rl/rlkit/core/trainer.py:9
↓ 6 callers
Method
get_action
:param observation: :return: action, debug_dictionary
d4rl/rlkit/policies/base.py:9
↓ 6 callers
Method
get_snapshot_dir
(self, )
d4rl/rlkit/core/logging.py:137
↓ 6 callers
Function
to_np
(shared_arr, np_dtype, shape)
d4rl/rlkit/data_management/shared_obs_dict_replay_buffer.py:125
↓ 5 callers
Method
_select_action
(self)
atari/batch_rl/multi_head/multi_network_dqn_agent.py:179
↓ 5 callers
Function
_strip_invisible
Remove invisible ANSI color codes.
d4rl/rlkit/core/tabulate.py:341
↓ 5 callers
Method
log_prob
(self, obs, actions)
d4rl/rlkit/torch/sac/policies.py:75
↓ 5 callers
Function
run_experiment
Usage: ``` def foo(variant): x = variant['x'] y = variant['y'] logger.log("sum", x+y) variant = { 'x'
d4rl/rlkit/launchers/launcher_util.py:424
↓ 5 callers
Method
to
(self, device)
d4rl/rlkit/torch/skewfit/online_vae_algorithm.py:61
↓ 5 callers
Method
training_mode
Set training mode to `mode`. :param mode: If True, training will happen (e.g. set the dropout probabilities to not all ones).
d4rl/rlkit/core/rl_algorithm.py:143
↓ 4 callers
Function
_build_line
Return a string which represents a horizontal line.
d4rl/rlkit/core/tabulate.py:796
↓ 4 callers
Function
_build_row
Return a string which represents a row of data cells.
d4rl/rlkit/core/tabulate.py:786
↓ 4 callers
Method
_reconstruct_img
(self, flat_img)
d4rl/rlkit/envs/vae_wrapper.py:389
↓ 4 callers
Method
_register_mp_array
Use this function to register an array to be shared. This will wipe arr.
d4rl/rlkit/data_management/shared_obs_dict_replay_buffer.py:59
↓ 4 callers
Method
add_paths
(self, paths)
d4rl/rlkit/data_management/replay_buffer.py:73
↓ 4 callers
Function
compute_log_p_log_q_log_d
( model, data, decoder_distribution='bernoulli', num_latents_to_sample=1, sampling_method=
d4rl/rlkit/torch/vae/vae_trainer.py:32
↓ 4 callers
Method
get_epoch_paths
(self)
d4rl/rlkit/samplers/data_collector/base.py:15
↓ 4 callers
Method
get_snapshot
(self)
d4rl/rlkit/core/trainer.py:12
↓ 4 callers
Method
get_value
(self, t)
d4rl/rlkit/util/ml_util.py:11
↓ 4 callers
Method
iterate_hyperparameters
Iterate over the hyperparameters in a grid-manner. :return: List of dictionaries. Each dictionary is a map from name to hype
d4rl/rlkit/util/hyperparameter.py:184
↓ 4 callers
Function
load_local_or_remote_file
(filepath, file_type=None)
d4rl/rlkit/util/io.py:65
↓ 4 callers
Method
plot_visualized_data
Plot two kinds of visualizations here: (1) Trend of loss_minus with respect to loss_plus (2) Histogram of different gradient di
d4rl/rlkit/core/batch_rl_algorithm.py:202
↓ 4 callers
Method
synchronize
(self)
d4rl/rlkit/data_management/normalizer.py:56
↓ 3 callers
Method
__init__
(self, wrapped_env)
d4rl/rlkit/envs/wrappers.py:11
↓ 3 callers
Method
__init__
Convolutional network used to compute the agent's Q-value distribution. Args: num_actions: int, number of actions. num_atoms: int, th
atari/batch_rl/multi_head/atari_helpers.py:48
↓ 3 callers
Method
_add_output
(self, file_name, arr, fds, mode='a')
d4rl/rlkit/core/logging.py:98
↓ 3 callers
Method
_create_iterator
(self)
d4rl/rlkit/torch/data.py:63
↓ 3 callers
Method
_get_obs
(self)
d4rl/rlkit/envs/ant.py:43
↓ 3 callers
Method
_get_policy_actions
(self, obs, num_actions, network=None)
d4rl/rlkit/torch/sac/cql.py:139
↓ 3 callers
Method
_image_observation
(self)
d4rl/rlkit/envs/mujoco_image_env.py:83
↓ 3 callers
Method
_start_new_rollout
(self)
d4rl/rlkit/samplers/data_collector/step_collector.py:230
↓ 3 callers
Method
add
(self, *args, **kwargs)
atari/batch_rl/fixed_replay/replay_memory/fixed_replay_buffer.py:205
↓ 3 callers
Method
add_tabular_output
(self, file_name, relative_to_snapshot_dir=False)
d4rl/rlkit/core/logging.py:121
↓ 3 callers
Method
eval_policy_custom
Update policy and then look at how the returns under this policy look like.
d4rl/rlkit/core/batch_rl_algorithm.py:187
↓ 3 callers
Function
flatten_dict
Turns list of dicts into dict of np arrays
d4rl/rlkit/data_management/obs_dict_replay_buffer.py:274
↓ 3 callers
Method
generate
(self)
d4rl/rlkit/util/hyperparameter.py:33
↓ 3 callers
Method
get_batch
(self, train=True, epoch=None)
d4rl/rlkit/torch/vae/vae_trainer.py:283
↓ 3 callers
Method
kl_divergence
:param latent_distribution_params: :return: kl div between latent_distribution_params and prior on latent space
d4rl/rlkit/torch/vae/vae_base.py:61
↓ 3 callers
Function
preprocess_obs_dict
Apply internal replay buffer representation changes: save images as bytes
d4rl/rlkit/data_management/obs_dict_replay_buffer.py:284
↓ 3 callers
Method
random_batch
Return a batch of size `batch_size`. :param batch_size: :return:
d4rl/rlkit/data_management/replay_buffer.py:78
↓ 3 callers
Method
reset
(self)
d4rl/rlkit/exploration_strategies/ou_strategy.py:43
↓ 3 callers
Method
rsample
:param latent_distribution_params: :return: latents
d4rl/rlkit/torch/vae/vae_base.py:26
↓ 3 callers
Method
run_experiment
(self)
atari/batch_rl/baselines/run_experiment.py:29
↓ 3 callers
Function
run_experiment_here
Run an experiment locally without any serialization. :param experiment_function: Function. `variant` will be passed in as its only argum
d4rl/rlkit/launchers/launcher_util.py:88
↓ 3 callers
Method
save_extra_data
Data saved here will always override the last entry :param data: Something pickle'able.
d4rl/rlkit/core/logging.py:193
↓ 3 callers
Method
step
(self, action)
d4rl/rlkit/envs/wrappers.py:23
↓ 3 callers
Method
train
(self, np_batch)
d4rl/rlkit/torch/torch_rl_algorithm.py:37
↓ 2 callers
Method
__init__
( self, hidden_sizes, output_size, input_size, ini
d4rl/rlkit/torch/networks.py:22
↓ 2 callers
Function
_build_simple_row
Format row according to DataRow format without padding.
d4rl/rlkit/core/tabulate.py:780
↓ 2 callers
Method
_compute_train_weights
(self)
d4rl/rlkit/torch/vae/vae_trainer.py:255
↓ 2 callers
Method
_decode
(self, latents)
d4rl/rlkit/envs/vae_wrapper.py:377
↓ 2 callers
Method
_end_epoch
(self, epoch)
d4rl/rlkit/core/rl_algorithm.py:54
↓ 2 callers
Method
_get_history
(self)
d4rl/rlkit/envs/mujoco_image_env.py:100
↓ 2 callers
Method
_get_history
(self)
d4rl/rlkit/envs/wrappers.py:85
↓ 2 callers
Method
_get_obs
(self, history_flat, true_state)
d4rl/rlkit/envs/mujoco_image_env.py:78
↓ 2 callers
Function
_isconvertible
(conv, string)
d4rl/rlkit/core/tabulate.py:212
↓ 2 callers
Function
_isint
>>> _isint("123") True >>> _isint("123.45") False
d4rl/rlkit/core/tabulate.py:232
↓ 2 callers
Function
_isnumber
>>> _isnumber("123.45") True >>> _isnumber("123") True >>> _isnumber("spam") False
d4rl/rlkit/core/tabulate.py:220
↓ 2 callers
Method
_log_buffer
This method will save all the replay buffer's state in a single file.
atari/batch_rl/baselines/replay_memory/logged_prioritized_replay_buffer.py:65
↓ 2 callers
Method
_log_buffer
This method will save all the replay buffer's state in a single file.
atari/batch_rl/baselines/replay_memory/logged_replay_buffer.py:61
↓ 2 callers
Function
_pad_row
(cells, padding)
d4rl/rlkit/core/tabulate.py:808
↓ 2 callers
Method
_remove_output
(self, file_name, arr, fds)
d4rl/rlkit/core/logging.py:104
↓ 2 callers
Method
_sample_indices
(self, batch_size)
d4rl/rlkit/data_management/obs_dict_replay_buffer.py:168
↓ 2 callers
Method
_start_new_rollout
(self)
d4rl/rlkit/samplers/data_collector/step_collector.py:100
↓ 2 callers
Function
_test_vae
(vae_trainer, epoch, replay_buffer, vae_save_period=1, uniform_dataset=None)
d4rl/rlkit/torch/skewfit/online_vae_algorithm.py:163
↓ 2 callers
Function
_train_vae
(vae_trainer, replay_buffer, epoch, batches=50, oracle_data=False)
d4rl/rlkit/torch/skewfit/online_vae_algorithm.py:151
↓ 2 callers
Method
_update_obs
(self, obs)
d4rl/rlkit/envs/vae_wrapper.py:110
↓ 2 callers
Method
add_all
(self, **key_to_value)
d4rl/rlkit/data_management/path_builder.py:38
↓ 2 callers
Method
apply_forward
(self, input, hidden_layers, norm_layers, use_batch_norm=False)
d4rl/rlkit/torch/conv_networks.py:122
↓ 2 callers
Method
apply_forward
(self, input, hidden_layers, norm_layers, use_batch_norm=False)
d4rl/rlkit/torch/conv_networks.py:247
↓ 2 callers
Method
collect_new_steps
( self, max_path_length, num_steps, discard_incomplete_paths,
d4rl/rlkit/samplers/data_collector/base.py:32
↓ 2 callers
Function
combine_q_functions
Utility function for combining multiple Q functions. Args: q_functions: Multiple Q-functions concatenated. transform_strategy: str, Possibl
atari/batch_rl/multi_head/atari_helpers.py:212
↓ 2 callers
Function
compute_p_x_np_to_np
( model, data, power, decoder_distribution='bernoulli', num_latents_to_sample=1, sampl
d4rl/rlkit/torch/vae/vae_trainer.py:80
↓ 2 callers
Method
compute_reward
(self, action, obs)
d4rl/rlkit/envs/vae_wrapper.py:190
↓ 2 callers
Method
compute_rewards
(self, actions, obs)
d4rl/rlkit/envs/vae_wrapper.py:197
↓ 2 callers
Method
custom_goal_sampler
(self)
d4rl/rlkit/envs/vae_wrapper.py:283
next →
1–100 of 729, ranked by callers