Questions tagged [gym]
For questions about OpenAI's gym library, which provides a set of APIs to access different types of environments to train reinforcement learning agents.
26
questions with no upvoted or accepted answers
4
votes
0
answers
80
views
Unable to train Coach for Banana-v0 Gym environment
I have just started playing with Reinforcement learning and starting from the basics I'm trying to figure out how to solve Banana Gym with coach.
Essentially ...
3
votes
0
answers
417
views
How to deal with a moving target in the Lunar Lander environment with DDPG?
I have noticed that DDPG does rather well at solving environments with a static target.
For example, the default of Lunar Lander, the flags do not change position. So the DDPG model learns how to get ...
2
votes
0
answers
35
views
How does PPO with advantage normalization learn in MountainCar-v0 before first reaching the goal state?
I'm trying to figure out how PPO ever learns anything in a sparse environment like gymnasium's MountainCar-v0 before it first ever reaches the goal state.
Specifically was looking at stable_baselines3'...
2
votes
0
answers
224
views
Most of state-action pairs remain unvisited in the q-table
In building my first Q-learning algorithm for OpenAI gym's CartPole problem, many of my states remain unvisited. I believe it is the reason that my agent does not learn.
Can I be told of the reasons I ...
2
votes
1
answer
379
views
How can I implement the reward function for an 8-DOF robot arm with TRPO?
I need to get an 8-DOF (degrees of freedom) robot arm to move a specified point. I need to implement the TRPO RL code using OpenAI gym. I already have the gazebo environment. But I am unsure of how to ...
2
votes
1
answer
453
views
Why isn't my implementation of DQN using TensorFlow on the FrozenWorld environment working?
I am trying to test DQN on FrozenWorld environment in gym using TensorFlow 2.x. The update rule is (off policy)
$$Q(s,a) \leftarrow Q(s,a)+\alpha (r+\gamma~ max_{a'}Q(s',a')-Q(s,a))$$
I am using an ...
2
votes
0
answers
183
views
Is it possible to use Reward Function of type R(s, a, s') if more than one action is applied?
I am applying a reinforcement learning agent (PPO2, stable baselines implementation) to a custom built environment using OpenAI Gym. One reward function (formualted as loss function, that is, all ...
1
vote
0
answers
224
views
How to normalize input data to Reinforcement learning platform (Gym and stable-baselines)
I created a custom environment with Gym and trained it with stable baseline 3 algorithms.
The observation and space action are both continues.
The observation space includes 10 values and action space ...
1
vote
0
answers
456
views
What method is better to use for a two-player reinforcement learning environment?
I want to create an RL agent for a mancala-type two-player game as my first actual project in the field. I've already completed the game itself and coded a minimax algorithm.
The question is: how ...
1
vote
0
answers
373
views
Too slow search using MCTS in OpenAI Atari games
I'm recently using Monte Carlo Tree Search in OpenAi Gym Atari, but the result isn't satisfying.
Without render, the game lasts about 180 steps ( env.step() was called this much time ) with random ...
1
vote
0
answers
1k
views
Why does Q-value become negative during training of DQN, while the agent learns to play?
I have implemented a simple version of the DQN algorithm for CartPole-v0. The algorithm works fine, in the sense that achieves the highest possible scores. The ...
1
vote
0
answers
39
views
Difference in average rewards between taking random actions and following random policies
I wrote two programs that simulated 10000 episodes in gym environment CartPole-v0.
The first program takes random moves in every steps in each episode. The average reward over 10000 episodes is 22....
1
vote
0
answers
338
views
How to deal with KerasRL DDPG algorithm getting stuck in a local optima?
I am using KerasRL DDPG to try to learn a policy on my own custom environment, but the agent is stuck in a local optima although I am adding the OrnsteinUhlenbeck randomization process. I used the ...
1
vote
0
answers
232
views
OpenAI gym's CartPole problem system does not learn
My OpenAI CartPole-v0 problem's implementation using basic Q-learning does not learn at all.
I am a beginner and have implemented my first ever Q-learning from scratch after learning from tutorials.
...
0
votes
0
answers
33
views
Reinforcement learning - calculating policy gradient using cross entropy loss
I am writing a program that uses reinforcement learning and the policy gradient method to play Pong. It basically extends Andrej Karpathy's version (https://gist.github.com/karpathy/...
0
votes
0
answers
26
views
DDPG input incompatible in OpenAI Gym custom environment
I have a custom OpenAI Gym Boid flocking environment using StableBAselines3 for DDPG. This error I encounter occurred previously due to wrong input size of actions. But my reset function is correct, ...
0
votes
0
answers
27
views
Also is there any way to create a gym environment that can be used without registering?
Please see the title: is there any way to create a gym environment that can be used without registering?
To be specific, since we have already created the environment class, is there any way to ...
0
votes
0
answers
24
views
Offline CartPole on infinitely long line?
I am tentatively exploring some RL research that involves doing offline RL on a version of the Gymnasium CartPole where the cart can move on $\mathbb R$, as opposed to the standard version (see link) ...
0
votes
0
answers
32
views
Deep Reinforcement Learning that takes action from two different sets
I am working on a problem where I want to schedule multiple activities (a1, a2, a3, ... aN) requiring different resource types ...
0
votes
0
answers
46
views
Using deep reinforcement learning for malware detection; trained agent mostly performs the same action
I'm trying to implement this article:
Ransomware early detection using deep reinforcement learning on portable executable header
The article uses an unpublished dataset of benign and ransomware ...
0
votes
0
answers
27
views
Changing Gym Environment Mid Training
I am using a custom gym environment for a research project. As my agent solves the environment, I want the task to get progressively harder. Right now, I am doing that like so:
...
0
votes
0
answers
328
views
Tips for solving OpenAI/Faramas Gymnasium Car Racing Environment
Im quite new to ML and wanna solve Gyms Car Racing v2 using Q-Learning with a Q-Table.
But I am having problems approaching this. Thats why I am hoping someone more advanced in this field could give ...
0
votes
1
answer
608
views
Time taken to solve cartpole environment using DQN
I am trying to solve the cartpole environment (GitHub) using DQN agent. I have been building my own DQN agent by following a tutorial by Jon Krohn.
I am able to solve the environment with a maximum ...
0
votes
0
answers
59
views
CartPoleV0 model is not getting trained in even after 1500+ episodes using deep Q-learning
I am new to deep Q learning and trying to train the open AI cartpole_V0 game using deep Q learning. Here is my code:
...
0
votes
0
answers
192
views
Open AI Taxi - Agent fails to learn an effective policy
I'm trying to solve the openai gym taxi problem (v3) using deep q learning. I've already had some success with the q-table approach, but for the life of me cannot manage to train a NN to learn a ...
0
votes
1
answer
163
views
Is is not possible to achieve average reward of more than 20-40 with simple Q-Learning
I have implemented the simple Q-Learning based solution for AI-gym's Cartpole-v0.
However, despite changing hyper-parameters, and rechecking my code, I cannot get an average reward (N-running reward) ...