I want to access the variables from the list of variables to update it. I wonder if there is any way to do this with list rather than accessing variable as string described here
dWaa, dWax, dWya, db, dby = gradients['dWaa'], gradients['dWax'], gradients['dWya'], gradients['db'], gradients['dby']
for gradient in [dWax, dWaa, dWya, db, dby]:
gradient = np.clip(gradient, -10, 10)
# I need to update the value of variables(eg. dwaa) here
gradients = {"dWaa": dWaa, "dWax": dWax, "dWya": dWya, "db": db, "dby": dby}
How can I update the value of variable(eg. dwaa) inside the loop