Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShangtongZhang/reinforcement-learning-an-introduction
/ functions
Functions
359 in github.com/ShangtongZhang/reinforcement-learning-an-introduction
⨍
Functions
359
◇
Types & classes
46
↓ 1 callers
Method
act
(self)
chapter01/tic_tac_toe.py:222
↓ 1 callers
Method
act
(self)
chapter02/ten_armed_testbed.py:58
↓ 1 callers
Method
add_item
(self, item, priority=0)
chapter08/maze.py:24
↓ 1 callers
Method
alternate
(self)
chapter01/tic_tac_toe.py:148
↓ 1 callers
Function
approximate
(samples, value_function)
chapter09/square_wave.py:94
↓ 1 callers
Function
b_steps
(b)
chapter08/expectation_vs_sample.py:15
↓ 1 callers
Function
behavior_policy
()
chapter05/infinite_variance.py:18
↓ 1 callers
Function
check_path
(q_values, maze)
chapter08/maze.py:558
↓ 1 callers
Method
choose_action
(self, reward)
chapter13/short_corridor.py:98
↓ 1 callers
Function
compete
(turns)
chapter01/tic_tac_toe.py:308
↓ 1 callers
Function
compute_state_value
()
chapter06/random_walk.py:86
↓ 1 callers
Function
compute_true_value
()
chapter09/random_walk.py:35
↓ 1 callers
Method
contain
(self, x)
chapter09/square_wave.py:24
↓ 1 callers
Method
cost_to_go
(self, position, velocity)
chapter10/mountain_car.py:154
↓ 1 callers
Method
count
(self)
chapter12/lambda_effect.py:75
↓ 1 callers
Method
count
(self)
chapter12/mountain_car.py:29
↓ 1 callers
Method
count
(self)
chapter10/access_control.py:32
↓ 1 callers
Method
count
(self)
chapter10/mountain_car.py:31
↓ 1 callers
Function
differential_semi_gradient_sarsa
(value_function, max_steps)
chapter10/access_control.py:183
↓ 1 callers
Method
draw
(self)
chapter12/lambda_effect.py:1086
↓ 1 callers
Function
draw_image
(image)
chapter04/grid_world.py:44
↓ 1 callers
Function
draw_policy
(optimal_values)
chapter03/grid_world.py:84
↓ 1 callers
Function
episode
(q_value)
chapter06/windy_grid_world.py:56
↓ 1 callers
Method
episode_end
(self, last_reward)
chapter13/short_corridor.py:108
↓ 1 callers
Function
example_13_1
()
chapter13/short_corridor.py:187
↓ 1 callers
Function
example_6_2
()
chapter06/random_walk.py:170
↓ 1 callers
Function
example_8_4
()
chapter08/maze.py:574
↓ 1 callers
Function
expected_TDC
(theta, weight, alpha, beta)
chapter11/counterexample.py:129
↓ 1 callers
Function
expected_emphatic_TD
(theta, emphasis, alpha)
chapter11/counterexample.py:155
↓ 1 callers
Method
extend_maze
(self, factor)
chapter08/maze.py:104
↓ 1 callers
Function
figure7_2
()
chapter07/random_walk.py:98
↓ 1 callers
Function
figure_10_1
()
chapter10/mountain_car.py:258
↓ 1 callers
Function
figure_10_2
()
chapter10/mountain_car.py:275
↓ 1 callers
Function
figure_10_3
()
chapter10/mountain_car.py:302
↓ 1 callers
Function
figure_10_4
()
chapter10/mountain_car.py:330
↓ 1 callers
Function
figure_10_5
()
chapter10/access_control.py:203
↓ 1 callers
Function
figure_11_2
()
chapter11/counterexample.py:238
↓ 1 callers
Function
figure_11_2_left
()
chapter11/counterexample.py:196
↓ 1 callers
Function
figure_11_2_right
()
chapter11/counterexample.py:218
↓ 1 callers
Function
figure_11_6
()
chapter11/counterexample.py:305
↓ 1 callers
Function
figure_11_6_left
()
chapter11/counterexample.py:249
↓ 1 callers
Function
figure_11_6_right
()
chapter11/counterexample.py:278
↓ 1 callers
Function
figure_11_7
()
chapter11/counterexample.py:316
↓ 1 callers
Function
figure_12_10
()
chapter12/mountain_car.py:259
↓ 1 callers
Function
figure_12_11
()
chapter12/mountain_car.py:292
↓ 1 callers
Function
figure_12_14
()
chapter12/lambda_effect.py:1243
↓ 1 callers
Function
figure_12_3
()
chapter12/random_walk.py:207
↓ 1 callers
Function
figure_12_6
()
chapter12/random_walk.py:223
↓ 1 callers
Function
figure_12_8
()
chapter12/random_walk.py:239
↓ 1 callers
Function
figure_13_1
()
chapter13/short_corridor.py:215
↓ 1 callers
Function
figure_13_2
()
chapter13/short_corridor.py:243
↓ 1 callers
Function
figure_2_1
()
chapter02/ten_armed_testbed.py:118
↓ 1 callers
Function
figure_2_2
(runs=2000, time=1000)
chapter02/ten_armed_testbed.py:126
↓ 1 callers
Function
figure_2_3
(runs=2000, time=1000)
chapter02/ten_armed_testbed.py:151
↓ 1 callers
Function
figure_2_4
(runs=2000, time=1000)
chapter02/ten_armed_testbed.py:167
↓ 1 callers
Function
figure_2_5
(runs=2000, time=1000)
chapter02/ten_armed_testbed.py:183
↓ 1 callers
Function
figure_2_6
(runs=2000, time=1000)
chapter02/ten_armed_testbed.py:205
↓ 1 callers
Function
figure_3_2
()
chapter03/grid_world.py:127
↓ 1 callers
Function
figure_3_2_linear_system
Here we solve the linear system of equations to find the exact solution. We do this by filling the coefficients for each of the states with t
chapter03/grid_world.py:145
↓ 1 callers
Function
figure_3_5
()
chapter03/grid_world.py:168
↓ 1 callers
Function
figure_4_1
()
chapter04/grid_world.py:93
↓ 1 callers
Function
figure_4_2
(constant_returned_cars=True)
chapter04/car_rental.py:124
↓ 1 callers
Function
figure_4_3
()
chapter04/gamblers_problem.py:25
↓ 1 callers
Function
figure_5_1
()
chapter05/blackjack.py:279
↓ 1 callers
Function
figure_5_2
()
chapter05/blackjack.py:307
↓ 1 callers
Function
figure_5_3
()
chapter05/blackjack.py:341
↓ 1 callers
Function
figure_5_4
()
chapter05/infinite_variance.py:37
↓ 1 callers
Function
figure_6_2
()
chapter06/random_walk.py:182
↓ 1 callers
Function
figure_6_3
()
chapter06/windy_grid_world.py:88
↓ 1 callers
Function
figure_6_4
()
chapter06/cliff_walking.py:167
↓ 1 callers
Function
figure_6_6
()
chapter06/cliff_walking.py:210
↓ 1 callers
Function
figure_6_7
()
chapter06/maximization_bias.py:103
↓ 1 callers
Function
figure_8_2
()
chapter08/maze.py:398
↓ 1 callers
Function
figure_8_4
()
chapter08/maze.py:476
↓ 1 callers
Function
figure_8_5
()
chapter08/maze.py:517
↓ 1 callers
Function
figure_8_7
()
chapter08/expectation_vs_sample.py:34
↓ 1 callers
Function
figure_8_8
()
chapter08/trajectory_sampling.py:122
↓ 1 callers
Function
figure_9_1
(true_value)
chapter09/random_walk.py:261
↓ 1 callers
Function
figure_9_10
(true_value)
chapter09/random_walk.py:398
↓ 1 callers
Function
figure_9_2
(true_value)
chapter09/random_walk.py:343
↓ 1 callers
Function
figure_9_2_left
(true_value)
chapter09/random_walk.py:293
↓ 1 callers
Function
figure_9_2_right
(true_value)
chapter09/random_walk.py:308
↓ 1 callers
Function
figure_9_5
(true_value)
chapter09/random_walk.py:354
↓ 1 callers
Function
figure_9_8
()
chapter09/square_wave.py:100
↓ 1 callers
Function
get_all_states
()
chapter01/tic_tac_toe.py:118
↓ 1 callers
Function
get_all_states_impl
(current_state, current_symbol, all_states)
chapter01/tic_tac_toe.py:105
↓ 1 callers
Method
get_all_v_hat
(self)
chapter12/lambda_effect.py:249
↓ 1 callers
Function
get_cart_pole_plot_data
()
chapter12/lambda_effect.py:1176
↓ 1 callers
Method
get_index
(self, obj, read_only=False)
chapter12/mountain_car.py:35
↓ 1 callers
Method
get_index
(self, obj, read_only=False)
chapter10/access_control.py:38
↓ 1 callers
Method
get_index
(self, obj, read_only=False)
chapter10/mountain_car.py:37
↓ 1 callers
Method
get_init_state
Get a random starting position in the interval [-0.6, -0.4).
chapter12/lambda_effect.py:415
↓ 1 callers
Method
get_init_state
Get a random starting position.
chapter12/lambda_effect.py:657
↓ 1 callers
Function
get_mountain_car_plot_data
()
chapter12/lambda_effect.py:1145
↓ 1 callers
Function
get_puddle_world_plot_data
()
chapter12/lambda_effect.py:1206
↓ 1 callers
Function
get_random_walk_plot_data
()
chapter12/lambda_effect.py:1109
↓ 1 callers
Method
get_start_pos
Randomly pick a non-goal state as starting position.
chapter12/lambda_effect.py:978
↓ 1 callers
Method
getindex
(self, obj, readonly=False)
chapter12/lambda_effect.py:81
↓ 1 callers
Method
grad_v_hat
Compute the gradient of the state value w.r.t. the weight vector.
chapter12/lambda_effect.py:264
↓ 1 callers
Function
hash_coords
(coordinates, m, read_only=False)
chapter12/mountain_car.py:51
← previous
next →
101–200 of 359, ranked by callers