All problems
Parameter Space Noise
Problem
Perturb parameters for exploration by adding sigma * noise elementwise. Return the perturbed parameter vector.
Hint
Parameter-space noise explores consistently across time, unlike independent action noise.
Test cases
case 1
in: [[1,2],[0.5,-0.5],0.1]
expected: [1.05,1.95]
case 2
in: [[0],[1],0]
expected: [0]
case 3
in: [[1,1,1],[1,2,3],0.5]
expected: [1.5,2,2.5]
Starter codePython
def parameter_space_noise(weights, noise, sigma):
# Your code here
pass3 test cases · run your code against them in the editor