MCPcopy Create free account

hub / github.com/LeCAR-Lab/model-based-diffusion / functions

Functions93 in github.com/LeCAR-Lab/model-based-diffusion

↓ 4 callersFunctionobjective_function
Define the objective function J(x) with multiple local minima. Args: x: Input values Returns: Objective function values
mbd/notebooks/01_1d_demo.py:27
↓ 4 callersMethodrender
(self, ax, xs: jnp.ndarray)
mbd/envs/car2d.py:112
↓ 3 callersMethod_get_reward
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:51
↓ 2 callersMethod_get_done
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:64
↓ 2 callersMethod_get_obs
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:48
↓ 2 callersMethod_get_obs
(self, pipeline_state: base.State, action: jax.Array)
mbd/envs/humanoidstandup.py:47
↓ 2 callersMethod_get_obs
Observe cartpole body position and velocities.
mbd/envs/cartpole.py:54
↓ 2 callersMethod_get_obs
Returns the environment observations.
mbd/envs/walker2d.py:50
↓ 2 callersMethod_get_obs
Returns the environment observations.
mbd/envs/hopper.py:49
↓ 2 callersMethod_get_obs
(self, pipeline_state: base.State)
mbd/envs/humanoidtrack.py:84
↓ 2 callersMethod_get_obs
(self, pipeline_state: base.State, action: jax.Array)
mbd/envs/humanoidrun.py:43
↓ 2 callersFunction_one_hot
Create a one-hot encoding of x of size k.
mbd/blackbox/mbd_mnist.py:42
↓ 2 callersFunction_partial_flatten
Flatten all but the first dimension of an ndarray.
mbd/blackbox/mbd_mnist.py:37
↓ 2 callersFunctionaccuracy
(params, batch)
mbd/blackbox/mbd_mnist.py:164
↓ 2 callersFunctionparse_images
(filename)
mbd/blackbox/mbd_mnist.py:57
↓ 2 callersFunctionparse_labels
(filename)
mbd/blackbox/mbd_mnist.py:52
↓ 2 callersFunctionrender_us
(state, us)
mbd/scripts/vis_diffusion.py:115
↓ 2 callersFunctionreverse_once
(carry, unused)
mbd/blackbox/mbd_opt.py:65
↓ 2 callersFunctionreverse_once
(carry, unused)
mbd/blackbox/mbd_mnist.py:194
↓ 1 callersFunction_download
Download a url to a file in the JAX data temp directory.
mbd/blackbox/mbd_mnist.py:27
↓ 1 callersMethod_get_reward
(self, pipeline_state: base.State)
mbd/envs/humanoidstandup.py:50
↓ 1 callersMethod_get_reward
Returns the environment reward.
mbd/envs/walker2d.py:58
↓ 1 callersMethod_get_reward
Returns the environment reward.
mbd/envs/hopper.py:57
↓ 1 callersMethod_get_reward
(self, state)
mbd/envs/humanoidtrack.py:87
↓ 1 callersMethod_get_reward
(self, pipeline_state: base.State)
mbd/envs/humanoidrun.py:46
↓ 1 callersFunctionadd_noise_batch_to_params
(params, sigma, rng)
mbd/blackbox/mbd_mnist.py:123
↓ 1 callersFunctioncheck_collision
(x, obs_center, obs_radius)
mbd/envs/car2d.py:30
↓ 1 callersFunctiondumps
(sys, statess)
mbd/scripts/vis_diffusion.py:27
↓ 1 callersFunctioneval_us
(step_env, state, us)
mbd/utils.py:6
↓ 1 callersFunctionget_params_batch_weighted_sum
(params_batch, weights)
mbd/blackbox/mbd_mnist.py:145
↓ 1 callersMethodget_reward
(self, q)
mbd/envs/car2d.py:89
↓ 1 callersFunctionloss
(params, batch)
mbd/blackbox/mbd_mnist.py:158
↓ 1 callersFunctionmain
()
mbd/envs/pushT.py:77
↓ 1 callersFunctionmnist
Download, parse and process MNIST data to unit scale and one-hot labels.
mbd/blackbox/mbd_mnist.py:80
↓ 1 callersFunctionmnist_raw
Download and parse the raw MNIST dataset.
mbd/blackbox/mbd_mnist.py:47
↓ 1 callersMethodreset
(self, rng: jnp.ndarray)
mbd/envs/pushT.py:22
↓ 1 callersFunctionreverse
(YN, rng)
mbd/planners/mbd_planner.py:138
↓ 1 callersFunctionreverse_once
(carry, unused)
mbd/planners/mbd_planner.py:98
↓ 1 callersFunctionrk4
(dynamics, x, u, dt)
mbd/envs/car2d.py:22
↓ 1 callersFunctionrollout_us
(step_env, state, us)
mbd/utils.py:14
↓ 1 callersFunctionrun_diffusion
(args: Args)
mbd/planners/mbd_planner.py:38
↓ 1 callersFunctionrun_exp
(seed=0)
mbd/blackbox/mbd_opt.py:83
↓ 1 callersFunctionrun_multiple_seed
(args: Args)
mbd/scripts/run_mbd.py:17
↓ 1 callersFunctionrun_multiple_temp
(args: Args)
mbd/scripts/run_mbd.py:42
↓ 1 callersFunctionrun_path_integral
(args: Args)
mbd/planners/path_integral.py:55
↓ 1 callersFunctionupdate
(mu_0T, rng)
mbd/planners/path_integral.py:130
↓ 1 callersFunctionupdate_once
(carry, unused)
mbd/planners/path_integral.py:112
Method__init__
(self, backend: str = "generalized")
mbd/envs/pushT.py:16
Method__init__
(self)
mbd/envs/humanoidstandup.py:14
Method__init__
(self, backend="positional", **kwargs)
mbd/envs/cartpole.py:12
Method__init__
(self)
mbd/envs/walker2d.py:13
Method__init__
(self)
mbd/envs/hopper.py:12
Method__init__
(self, mode="jog")
mbd/envs/humanoidtrack.py:15
Method__init__
(self)
mbd/envs/humanoidrun.py:14
Method__init__
(self)
mbd/envs/car2d.py:44
Functionackley
(Y)
mbd/blackbox/mbd_opt.py:32
Methodaction_size
(self)
mbd/envs/pushT.py:69
Methodaction_size
(self)
mbd/envs/cartpole.py:51
Methodaction_size
(self)
mbd/envs/car2d.py:105
Functionadd_noise_to_params
(params, sigma, rng)
mbd/blackbox/mbd_mnist.py:175
Functioncar_dynamics
(x, u)
mbd/envs/car2d.py:10
Functioncem_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:49
Functioncma_es_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:40
Methodconstruct
(self)
mbd/scripts/vis_manim.py:7
Methoddemo_vector_field_fn
(x)
mbd/scripts/vis_manim.py:44
Functioneval_fn
(params)
mbd/blackbox/mbd_mnist.py:171
Methodeval_xref_logpd
(self, pipeline_state)
mbd/envs/humanoidtrack.py:99
Methodeval_xref_logpd
(self, xs)
mbd/envs/car2d.py:96
Functionget_env
(env_name: str)
mbd/envs/__init__.py:13
Functionlevy
(X)
mbd/blackbox/mbd_opt.py:44
Methodobservation_size
(self)
mbd/envs/pushT.py:73
Methodobservation_size
(self)
mbd/envs/car2d.py:109
Functionprogress
(num_steps, metrics)
mbd/rl/train_brax.py:182
Functionrastrigin
(X)
mbd/blackbox/mbd_opt.py:39
Functionrender_us
(step_env, sys, state, us)
mbd/utils.py:23
Methodreset
Resets the environment to an initial state.
mbd/envs/humanoidstandup.py:19
Methodreset
Resets the environment to an initial state.
mbd/envs/cartpole.py:25
Methodreset
Resets the environment to an initial state.
mbd/envs/walker2d.py:21
Methodreset
Resets the environment to an initial state.
mbd/envs/hopper.py:20
Methodreset
Resets the environment to an initial state.
mbd/envs/humanoidtrack.py:48
Methodreset
Resets the environment to an initial state.
mbd/envs/humanoidrun.py:19
Methodreset
Resets the environment to an initial state.
mbd/envs/car2d.py:73
Functionsoftmax_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:34
Methodsquare_vector_field_fn
(x)
mbd/scripts/vis_manim.py:296
Functionstep
(state, u)
mbd/utils.py:7
Methodstep
(self, state: State, action: jnp.ndarray)
mbd/envs/pushT.py:39
Methodstep
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidstandup.py:38
Methodstep
Run one timestep of the environment's dynamics.
mbd/envs/cartpole.py:40
Methodstep
Runs one timestep of the environment's dynamics.
mbd/envs/walker2d.py:37
Methodstep
Runs one timestep of the environment's dynamics.
mbd/envs/hopper.py:36
Methodstep
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidtrack.py:63
Methodstep
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidrun.py:34
Methodstep
Run one timestep of the environment's dynamics.
mbd/envs/car2d.py:78