reinforcement-learning-kr / lets-do-irl

Inverse RL algorithms (APP, MaxEnt, GAIL, VAIL)
MIT License
709 stars 113 forks source link

Can go beyond the code line " idx_to_state" #13

Open salmankdurrani opened 1 year ago

salmankdurrani commented 1 year ago

state_idx = idx_to_state(env, state)

how can I fix this?

idx_to_state position_idx = int((state[0] - env_low[0]) / env_distance[0])

TypeError: only size-1 arrays can be converted to Python scalars