MCPcopy Create free account

hub / github.com/StanfordASL/neural-network-lyapunov / functions

Functions1,470 in github.com/StanfordASL/neural-network-lyapunov

↓ 1 callersMethodset_variable_value
(self, R_val: np.ndarray)
neural_network_lyapunov/r_options.py:58
↓ 1 callersFunctionsetup_hybrid_feedback_system
(dtype)
neural_network_lyapunov/test/test_lyapunov.py:156
↓ 1 callersFunctionsetup_johansson_continuous_time_system2
This is the simple example from section 4 (equation 8, 9) of Computation of piecewise quadratic Lyapunov functions for hybrid systems by
neural_network_lyapunov/test/test_hybrid_linear_system.py:164
↓ 1 callersFunctionsetup_johansson_continuous_time_system3
This is the simple example from section 5 (equation 18~21) of Computation of piecewise quadratic Lyapunov functions for hybrid systems by
neural_network_lyapunov/test/test_hybrid_linear_system.py:223
↓ 1 callersFunctionsetup_relu
()
neural_network_lyapunov/test/train_discrete_1d_lyapunov.py:31
↓ 1 callersFunctionsetup_relu1
()
neural_network_lyapunov/test/train_discrete_linear_system_toy_lyapunov.py:64
↓ 1 callersFunctionsetup_relu_dyn
(dtype)
neural_network_lyapunov/test/test_relu_system.py:22
↓ 1 callersFunctionsetup_relu_dyn_3d
(dtype)
neural_network_lyapunov/test/test_lyapunov.py:142
↓ 1 callersFunctionsetup_system
Test a simple linear hybrid system x[n+1] = -0.9 * x[n] if 0 <= x[n] <= 1 x[n+1] = -0.5 * x[n] if -1 <= x[n] <= 0
neural_network_lyapunov/test/train_discrete_1d_lyapunov.py:12
↓ 1 callersFunctionsimulate_random_sample
@param sphere: spherical area surronding the vehicle for collision check
neural_network_lyapunov/examples/car/car.py:248
↓ 1 callersMethodsolve_boundary_gap_mip_tester
(self, dut)
neural_network_lyapunov/test/test_train_lyapunov_barrier.py:328
↓ 1 callersFunctionstate_cost_dot
(y, u)
neural_network_lyapunov/examples/pendulum/train_pendulum_demo.py:126
↓ 1 callersMethodstep_forward
Computes the next state and the currently active mode @param x_start A tensor representing the starting state @param u_start
neural_network_lyapunov/hybrid_linear_system.py:318
↓ 1 callersMethodstep_forward
(self, x_start)
neural_network_lyapunov/relu_system.py:256
↓ 1 callersMethodstep_forward
(self, x_start)
neural_network_lyapunov/relu_system.py:367
↓ 1 callersMethodstep_forward
(self, x_start, u_start)
neural_network_lyapunov/relu_system.py:592
↓ 1 callersMethodstep_forward
(self, x_start, u_start)
neural_network_lyapunov/relu_system.py:744
↓ 1 callersMethodstep_forward
Compute x[n+1] according to q[n+1] = q[n] + (v[n] + v[n+1]) * dt / 2 v[n+1] - v[n] = ϕ(x̅[n], u[n]) − ϕ(x̅*, u*)
neural_network_lyapunov/relu_system.py:861
↓ 1 callersMethodstep_forward
Compute the next state according to pos[n+1] = pos[n] + (v[n] + v[n+1]) * dt / 2 [vel[n+1], rpy[n+1]] = [vel[n], rpy[n]] + ϕ(
neural_network_lyapunov/examples/quadrotor3d/quadrotor.py:252
↓ 1 callersMethodstep_forward
Compute the next state as pos[n+1] - pos[n] = ϕ(theta[n], vel[n], theta_dot[n], accel[n]) - ϕ(0, 0, 0, 0)
neural_network_lyapunov/examples/car/acceleration_car.py:105
↓ 1 callersMethodstore
(self, obs, act, rew, next_obs, done)
neural_network_lyapunov/examples/rl/td3.py:100
↓ 1 callersMethodstrengthen_lyapunov_derivative_milp_binary_tester
( self, dut, V_lambda, deriv_eps, eps_type, R)
neural_network_lyapunov/test/test_lyapunov.py:1426
↓ 1 callersFunctiontd3
Twin Delayed Deep Deterministic Policy Gradient (TD3) Args: env_fn : A function which creates a copy of the environment.
neural_network_lyapunov/examples/rl/td3.py:120
↓ 1 callersFunctiontest_agent
(epoch)
neural_network_lyapunov/examples/rl/td3.py:322
↓ 1 callersMethodtrain
Train a network such that network(x) - network(x*) + λ*|x-x*|₁ ≈ cost_to_go(x) @param system An AutonomousHybridLinearSystem
neural_network_lyapunov/train_lyapunov_barrier.py:1405
↓ 1 callersFunctiontrain_acceleration_car_depth_model
@param v: car's velocity @param nf: hidden layer neuron @param delta_dynamics: bool. True: train different between current and next d
neural_network_lyapunov/examples/car/train_car_depth_dynamics.py:154
↓ 1 callersFunctiontrain_controller_approximator
Given some state-action pairs, train a controller ϕ(x) − ϕ(x*) + u* to approximate these state-action pairs.
neural_network_lyapunov/examples/pendulum/train_pendulum_demo.py:175
↓ 1 callersFunctiontrain_cost_approximator
Given many state-cost pairs, train a value approximator ϕ(x) − ϕ(x*)+λ|x − x*|₁
neural_network_lyapunov/examples/pendulum/train_pendulum_demo.py:198
↓ 1 callersFunctiontrain_forward_model
(dynamics_relu, model_dataset)
neural_network_lyapunov/examples/pendulum/train_continuous_pendulum_demo.py:33
↓ 1 callersFunctiontrain_forward_model
(dynamics_model, model_dataset)
neural_network_lyapunov/examples/pendulum/train_pendulum_demo.py:92
↓ 1 callersFunctiontrain_forward_model
(forward_model, model_dataset, num_epochs, lr)
neural_network_lyapunov/examples/quadrotor3d/train_quadrotor_demo.py:60
↓ 1 callersFunctiontrain_forward_model
The forward model network maps (theta[n], vel[n], theta_dot[n], accel[n]) to pos[n+1] - pos[n]
neural_network_lyapunov/examples/car/train_acceleration_car_demo.py:52
↓ 1 callersFunctiontrain_forward_model
The dataset contains the mapping from state_action to state_next
neural_network_lyapunov/examples/car/train_unicycle_demo.py:75
↓ 1 callersFunctiontrain_forward_model
(forward_model, rpyu_equilibrium, model_dataset, num_epochs)
neural_network_lyapunov/examples/quadrotorpx4/train_quadrotor_px4_demo.py:16
↓ 1 callersFunctiontrain_forward_model
(forward_model, model_dataset, num_epochs)
neural_network_lyapunov/examples/rocket/train_rocket_demo.py:48
↓ 1 callersFunctiontrain_forward_model
(forward_model, model_dataset, num_epochs)
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py:67
↓ 1 callersFunctiontrain_forward_model
(dynamics_relu, model_dataset, u_equilibrium)
neural_network_lyapunov/examples/quadrotor2d/train_continuous_quadrotor_2d_demo.py:36
↓ 1 callersFunctiontrain_lqr_control_approximator
(controller_relu, x_equilibrium, u_equilibrium, x_lo, x_up, num_samples,
neural_network_lyapunov/examples/quadrotor3d/train_quadrotor_demo.py:116
↓ 1 callersFunctiontrain_lqr_control_approximator
(controller_relu, x_equilibrium, u_equilibrium, x_lo, x_up, num_samples,
neural_network_lyapunov/examples/rocket/train_rocket_demo.py:100
↓ 1 callersFunctiontrain_lqr_control_approximator
(controller_relu, x_equilibrium, u_equilibrium, x_lo, x_up, num_samples,
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py:120
↓ 1 callersFunctiontrain_lqr_control_approximator
(controller_relu, x_equilibrium, u_equilibrium, x_lo, x_up, num_samples,
neural_network_lyapunov/examples/quadrotor2d/train_continuous_quadrotor_2d_demo.py:83
↓ 1 callersFunctiontrain_lqr_value_approximator
We train both lyapunov_relu and R such that ϕ(x) − ϕ(x*) + λ|R(x−x*)|₁ approximates the lqr cost-to-go.
neural_network_lyapunov/examples/quadrotor3d/train_quadrotor_demo.py:88
↓ 1 callersFunctiontrain_lqr_value_approximator
We train both lyapunov_relu and R such that ϕ(x) − ϕ(x*) + λ|R(x−x*)|₁ approximates the lqr cost-to-go.
neural_network_lyapunov/examples/rocket/train_rocket_demo.py:71
↓ 1 callersFunctiontrain_lqr_value_approximator
We train both lyapunov_relu and R such that ϕ(x) − ϕ(x*) + λ|R(x−x*)|₁ approximates the lqr cost-to-go.
neural_network_lyapunov/examples/quadrotor2d/train_quadrotor_2d_demo.py:92
↓ 1 callersFunctiontrain_lqr_value_approximator
We train both lyapunov_relu and R such that ϕ(x) − ϕ(x*) + λ|R(x−x*)|₁ approximates the lqr cost-to-go.
neural_network_lyapunov/examples/quadrotor2d/train_continuous_quadrotor_2d_demo.py:55
↓ 1 callersFunctiontrain_models
(cfg, dataset, forward_model_f, forward_model_G, verbose=False)
neural_network_lyapunov/examples/tinydiffsim/learn_ca_dyn.py:108
↓ 1 callersFunctionuniform_sample_in_box
Take uniform samples in the box lo <= x <= hi. @return samples A num_samples x x_dim tensor.
neural_network_lyapunov/utils.py:1325
↓ 1 callersFunctionupdate
(data, timer, step)
neural_network_lyapunov/examples/rl/td3.py:281
↓ 1 callersMethodvalidate_x_equilibrium
Validate that x_equilibrium is acceptable. x_equilibrium should be within x_lo and x_up
neural_network_lyapunov/lyapunov.py:482
↓ 1 callersFunctionvalue_iteration
Value Iteration Algorithm. Args: nx: number of state in the environment. r: numpy array of size (nx, nx). immediate cost from
neural_network_lyapunov/examples/car/value_iteration.py:16
↓ 1 callersMethodvariables
(self)
neural_network_lyapunov/r_options.py:100
↓ 1 callersMethodvariables
(self)
neural_network_lyapunov/r_options.py:133
↓ 1 callersFunctionverify_control_lyapunov
(model, x_lo, x_up)
neural_network_lyapunov/test/double_integrator_control_lyapunov_demo.py:82
↓ 1 callersMethodwandb_config
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:1101
MethodCalculateController
(self, context, output)
neural_network_lyapunov/examples/pole/simulation/pole_balancing_sim.py:58
MethodCalculateController
(self, context, output)
neural_network_lyapunov/examples/pole/simulation/pole_balancing_sim.py:97
MethodCalculateController
(self, context, output)
neural_network_lyapunov/examples/pole/simulation/pole_balancing_sim.py:128
MethodG
(self, x)
neural_network_lyapunov/control_affine_system.py:166
MethodR
(self)
neural_network_lyapunov/r_options.py:244
FunctionReLUGivenActivationPattern
Given a ReLU network, and a given activation pattern, the ReLU network can be represented as ReLU(x) = gᵀx+h, while P*x ≤ q we return
neural_network_lyapunov/relu_to_optimization.py:156
Method__call__
@param step int step number @return value of the sigmoid at that point
neural_network_lyapunov/utils.py:1223
Method__del__
(self)
neural_network_lyapunov/pybullet_data_generation.py:176
Method__getattr__
(self, attr)
neural_network_lyapunov/dynamics_learning.py:29
Method__init__
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:24
Method__init__
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:591
Method__init__
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:604
Method__init__
(self, loss: torch.Tensor, lyap_loss, barrier_loss)
neural_network_lyapunov/train_lyapunov_barrier.py:619
Method__init__
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:1083
Method__init__
(self)
neural_network_lyapunov/train_lyapunov_barrier.py:1372
Method__init__
(self)
neural_network_lyapunov/relu_to_optimization.py:216
Method__init__
(self)
neural_network_lyapunov/relu_to_optimization.py:233
Method__init__
(self, activated_relu_indices, gradient)
neural_network_lyapunov/relu_to_optimization.py:984
Method__init__
Parent class for decoders. Decoders should be child classes of this class and implement the forward method (which takes a tensor
neural_network_lyapunov/encoders.py:44
Method__init__
See Encoder documentation
neural_network_lyapunov/encoders.py:66
Method__init__
See Decoder documentation
neural_network_lyapunov/encoders.py:94
Method__init__
See Encoder documentation
neural_network_lyapunov/encoders.py:122
Method__init__
See Decoder documentation
neural_network_lyapunov/encoders.py:158
Method__init__
See Encoder documentation
neural_network_lyapunov/encoders.py:193
Method__init__
See Decoder documentation
neural_network_lyapunov/encoders.py:230
Method__init__
(self, system, lyapunov_relu)
neural_network_lyapunov/continuous_time_lyapunov.py:318
Method__init__
Generates problems that help bound the difference between a model and the true cost-to-go it approximates @param model The R
neural_network_lyapunov/model_bounds.py:10
Method__init__
(self)
neural_network_lyapunov/gurobi_torch_mip.py:26
Method__init__
(self, dtype)
neural_network_lyapunov/gurobi_torch_mip.py:1055
Method__init__
(self, dtype)
neural_network_lyapunov/gurobi_torch_mip.py:1153
Method__init__
provides a sigmoid function that can be used to do weight scheduling for training @dtype torch data type @param lo fl
neural_network_lyapunov/utils.py:1206
Method__init__
(self, loss_dim, prefix="", writer=None, first_value_only=False)
neural_network_lyapunov/training_log.py:7
Method__init__
Store the slack and binary variables in the dynamics constraint. We also compute the bounds of x_next. For discrete-time systems, x_n
neural_network_lyapunov/hybrid_linear_system.py:21
Method__init__
@param x_dim The dimension of x. @param u_dim The dimension of u. @param dtype The torch datatype of A, B, c, P, q.
neural_network_lyapunov/hybrid_linear_system.py:69
Method__init__
@param x_dim The dimension of x. @param dtype The torch datatype of A, g, P, q.
neural_network_lyapunov/hybrid_linear_system.py:385
Method__init__
(self, milp, x, x_next, binary_current, binary_next, system_constraint_return, barrier_relu_m
neural_network_lyapunov/barrier.py:11
Method__init__
(self, system, barrier_relu)
neural_network_lyapunov/barrier.py:145
Method__init__
(self)
neural_network_lyapunov/control_affine_system.py:13
Method__init__
Args: x_lo, x_up: We will constrain the state to be within the box x_lo <= x <= x_up. u_lo, u_up: The input lim
neural_network_lyapunov/control_affine_system.py:39
Method__init__
(self, x_lo, x_up, u_lo, u_up)
neural_network_lyapunov/control_affine_system.py:150
Method__init__
Args: phi_a: A neural network that maps x to ϕ_a(x). phi_b: A neural network that maps x to a flat vector [ϕ_b(
neural_network_lyapunov/control_affine_system.py:247
Method__init__
(self, params, lr=required, momentum=0, da
neural_network_lyapunov/line_search_gd.py:60
Method__init__
(self, params, lr=1e-3, betas=(0.9, 0.999),
neural_network_lyapunov/line_search_adam.py:37
Method__init__
@param x_dim The dimension of x. @param num_modes The number of hybrid modes. @param lyapunov_positivity_epsilon ε₁ in the do
neural_network_lyapunov/simple_pwl_lyapunov.py:43
Method__init__
(self)
neural_network_lyapunov/train_value.py:10
Method__init__
Trains a neural network to approximate a value function using adversarial training. Also trains a baseline for comparison, that
neural_network_lyapunov/train_value.py:39
← previousnext →501–600 of 1,470, ranked by callers