reinforcement-learning-kr / lets-do-irl

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

Can go beyond the code line " idx_to_state" #13

Open salmankdurrani opened 8 months ago

salmankdurrani commented 8 months 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