Spaces:
Runtime error
Runtime error
File size: 493 Bytes
2ec5014 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import numpy as np
import random
def pseudo_random_policy(state, pre_action):
def get_description():
return "Select action randomly"
pseudo_random_policy.description = get_description()
return [2 * random.random() - 1 for i in range(6)]
def real_random_policy(state, pre_action=1):
def get_description():
return "Select action with a random policy"
real_random_policy.description = get_description()
return [2 * random.random() - 1 for i in range(6)] |