Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeCAR-Lab/model-based-diffusion
/ functions
Functions
93 in github.com/LeCAR-Lab/model-based-diffusion
⨍
Functions
93
◇
Types & classes
14
↓ 4 callers
Function
objective_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 callers
Method
render
(self, ax, xs: jnp.ndarray)
mbd/envs/car2d.py:112
↓ 3 callers
Method
_get_reward
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:51
↓ 2 callers
Method
_get_done
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:64
↓ 2 callers
Method
_get_obs
(self, pipeline_state: pipeline.State)
mbd/envs/pushT.py:48
↓ 2 callers
Method
_get_obs
(self, pipeline_state: base.State, action: jax.Array)
mbd/envs/humanoidstandup.py:47
↓ 2 callers
Method
_get_obs
Observe cartpole body position and velocities.
mbd/envs/cartpole.py:54
↓ 2 callers
Method
_get_obs
Returns the environment observations.
mbd/envs/walker2d.py:50
↓ 2 callers
Method
_get_obs
Returns the environment observations.
mbd/envs/hopper.py:49
↓ 2 callers
Method
_get_obs
(self, pipeline_state: base.State)
mbd/envs/humanoidtrack.py:84
↓ 2 callers
Method
_get_obs
(self, pipeline_state: base.State, action: jax.Array)
mbd/envs/humanoidrun.py:43
↓ 2 callers
Function
_one_hot
Create a one-hot encoding of x of size k.
mbd/blackbox/mbd_mnist.py:42
↓ 2 callers
Function
_partial_flatten
Flatten all but the first dimension of an ndarray.
mbd/blackbox/mbd_mnist.py:37
↓ 2 callers
Function
accuracy
(params, batch)
mbd/blackbox/mbd_mnist.py:164
↓ 2 callers
Function
parse_images
(filename)
mbd/blackbox/mbd_mnist.py:57
↓ 2 callers
Function
parse_labels
(filename)
mbd/blackbox/mbd_mnist.py:52
↓ 2 callers
Function
render_us
(state, us)
mbd/scripts/vis_diffusion.py:115
↓ 2 callers
Function
reverse_once
(carry, unused)
mbd/blackbox/mbd_opt.py:65
↓ 2 callers
Function
reverse_once
(carry, unused)
mbd/blackbox/mbd_mnist.py:194
↓ 1 callers
Function
_download
Download a url to a file in the JAX data temp directory.
mbd/blackbox/mbd_mnist.py:27
↓ 1 callers
Method
_get_reward
(self, pipeline_state: base.State)
mbd/envs/humanoidstandup.py:50
↓ 1 callers
Method
_get_reward
Returns the environment reward.
mbd/envs/walker2d.py:58
↓ 1 callers
Method
_get_reward
Returns the environment reward.
mbd/envs/hopper.py:57
↓ 1 callers
Method
_get_reward
(self, state)
mbd/envs/humanoidtrack.py:87
↓ 1 callers
Method
_get_reward
(self, pipeline_state: base.State)
mbd/envs/humanoidrun.py:46
↓ 1 callers
Function
add_noise_batch_to_params
(params, sigma, rng)
mbd/blackbox/mbd_mnist.py:123
↓ 1 callers
Function
check_collision
(x, obs_center, obs_radius)
mbd/envs/car2d.py:30
↓ 1 callers
Function
dumps
(sys, statess)
mbd/scripts/vis_diffusion.py:27
↓ 1 callers
Function
eval_us
(step_env, state, us)
mbd/utils.py:6
↓ 1 callers
Function
get_params_batch_weighted_sum
(params_batch, weights)
mbd/blackbox/mbd_mnist.py:145
↓ 1 callers
Method
get_reward
(self, q)
mbd/envs/car2d.py:89
↓ 1 callers
Function
loss
(params, batch)
mbd/blackbox/mbd_mnist.py:158
↓ 1 callers
Function
main
()
mbd/envs/pushT.py:77
↓ 1 callers
Function
mnist
Download, parse and process MNIST data to unit scale and one-hot labels.
mbd/blackbox/mbd_mnist.py:80
↓ 1 callers
Function
mnist_raw
Download and parse the raw MNIST dataset.
mbd/blackbox/mbd_mnist.py:47
↓ 1 callers
Method
reset
(self, rng: jnp.ndarray)
mbd/envs/pushT.py:22
↓ 1 callers
Function
reverse
(YN, rng)
mbd/planners/mbd_planner.py:138
↓ 1 callers
Function
reverse_once
(carry, unused)
mbd/planners/mbd_planner.py:98
↓ 1 callers
Function
rk4
(dynamics, x, u, dt)
mbd/envs/car2d.py:22
↓ 1 callers
Function
rollout_us
(step_env, state, us)
mbd/utils.py:14
↓ 1 callers
Function
run_diffusion
(args: Args)
mbd/planners/mbd_planner.py:38
↓ 1 callers
Function
run_exp
(seed=0)
mbd/blackbox/mbd_opt.py:83
↓ 1 callers
Function
run_multiple_seed
(args: Args)
mbd/scripts/run_mbd.py:17
↓ 1 callers
Function
run_multiple_temp
(args: Args)
mbd/scripts/run_mbd.py:42
↓ 1 callers
Function
run_path_integral
(args: Args)
mbd/planners/path_integral.py:55
↓ 1 callers
Function
update
(mu_0T, rng)
mbd/planners/path_integral.py:130
↓ 1 callers
Function
update_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
Function
ackley
(Y)
mbd/blackbox/mbd_opt.py:32
Method
action_size
(self)
mbd/envs/pushT.py:69
Method
action_size
(self)
mbd/envs/cartpole.py:51
Method
action_size
(self)
mbd/envs/car2d.py:105
Function
add_noise_to_params
(params, sigma, rng)
mbd/blackbox/mbd_mnist.py:175
Function
car_dynamics
(x, u)
mbd/envs/car2d.py:10
Function
cem_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:49
Function
cma_es_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:40
Method
construct
(self)
mbd/scripts/vis_manim.py:7
Method
demo_vector_field_fn
(x)
mbd/scripts/vis_manim.py:44
Function
eval_fn
(params)
mbd/blackbox/mbd_mnist.py:171
Method
eval_xref_logpd
(self, pipeline_state)
mbd/envs/humanoidtrack.py:99
Method
eval_xref_logpd
(self, xs)
mbd/envs/car2d.py:96
Function
get_env
(env_name: str)
mbd/envs/__init__.py:13
Function
levy
(X)
mbd/blackbox/mbd_opt.py:44
Method
observation_size
(self)
mbd/envs/pushT.py:73
Method
observation_size
(self)
mbd/envs/car2d.py:109
Function
progress
(num_steps, metrics)
mbd/rl/train_brax.py:182
Function
rastrigin
(X)
mbd/blackbox/mbd_opt.py:39
Function
render_us
(step_env, sys, state, us)
mbd/utils.py:23
Method
reset
Resets the environment to an initial state.
mbd/envs/humanoidstandup.py:19
Method
reset
Resets the environment to an initial state.
mbd/envs/cartpole.py:25
Method
reset
Resets the environment to an initial state.
mbd/envs/walker2d.py:21
Method
reset
Resets the environment to an initial state.
mbd/envs/hopper.py:20
Method
reset
Resets the environment to an initial state.
mbd/envs/humanoidtrack.py:48
Method
reset
Resets the environment to an initial state.
mbd/envs/humanoidrun.py:19
Method
reset
Resets the environment to an initial state.
mbd/envs/car2d.py:73
Function
softmax_update
(weights, Y0s, sigma, mu_0t)
mbd/planners/path_integral.py:34
Method
square_vector_field_fn
(x)
mbd/scripts/vis_manim.py:296
Function
step
(state, u)
mbd/utils.py:7
Method
step
(self, state: State, action: jnp.ndarray)
mbd/envs/pushT.py:39
Method
step
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidstandup.py:38
Method
step
Run one timestep of the environment's dynamics.
mbd/envs/cartpole.py:40
Method
step
Runs one timestep of the environment's dynamics.
mbd/envs/walker2d.py:37
Method
step
Runs one timestep of the environment's dynamics.
mbd/envs/hopper.py:36
Method
step
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidtrack.py:63
Method
step
Runs one timestep of the environment's dynamics.
mbd/envs/humanoidrun.py:34
Method
step
Run one timestep of the environment's dynamics.
mbd/envs/car2d.py:78