Skip to content
DeepForgeby svx
All problems

MBPO Rollout Steps

Problem

Compute the number of model-generated rollout steps: env_steps * rollouts_per_step * rollout_length.

Hint

Short model rollouts limit compounding model error.

Test cases

case 1
in: [1000,1,5]
expected: 5000
case 2
in: [250,4,3]
expected: 3000
case 3
in: [0,10,10]
expected: 0
Starter codePython
def mbpo_rollout_steps(env_steps, rollouts_per_step, rollout_length):
    # Your code here
    pass

3 test cases · run your code against them in the editor