Skip to content

vladimirbriskin/Tetris_RL_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

To get started with this project, follow these steps:

Step 1: Install Dependencies

First, you need to install gym-tetris using pip. Open a terminal or command prompt and run the following command:

pip install gym-tetris pyyaml
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Step 2: Configure the Application

Before running the training or testing scripts, you must configure the application settings. To do this, edit the config.yaml file located in the root directory. Ensure you set the desired configurations for training and environment parameters.

Step 3: Training the Agent

Once you have configured the settings, you can train the agent by executing the train.py script. Run the following command in your terminal:

python train.py

This script will start the training process based on the parameters defined in config.yaml. Make sure you monitor the output for any errors or important information regarding the training progress.

Step 4: Testing the Agent

After training the agent, you can evaluate its performance by running the test.py script. Execute the following command:

python test.py

This will initiate the testing process, using the trained model to play Tetris. Observe the agent to ensure it performs as expected based on the training it received.


问题一览

问题 状态 解决方案 当前进度
确保DQN_agent的reply返回loss 已解决 调整batchsize,观察log输出 已解决

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages