๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Deep Q-Learning (DQN) for FrozenLake-v1 (8x8) | |
| * A Deep Q-Learning implementation matching | |
| * the OpenAI Gym "FrozenLake-v1" configuration. Features a custom | |
| * Multi-Layer Perceptron (MLP), Target Network synchronization, and | |
| * Experience Replay. Mathematical optimizations are used for the input | |
| * layer to simulate one-hot encoding without matrix multiplication. | |
| * | |
| * Gym Dynamics: | |
| * - Action 0 (Left): 1/3 Left, 1/3 Down, 1/3 Up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Q-Learning for FrozenLake-v1 (8x8) | |
| * Object-oriented C++ implementation of tabular | |
| * Q-Learning matching the OpenAI Gym "FrozenLake-v1" configuration. | |
| * The environment features a slippery surface where intended actions only | |
| * execute 33.3% of the time, with the remaining 66.6% split between | |
| * perpendicular directions. | |
| * | |
| * Gym Dynamics: | |
| * - Action 0 (Left): 1/3 Left, 1/3 Down, 1/3 Up |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Compiling Sol.cpp ..." | |
| g++ -Wall -Wl,-stack_size,20000000 -O2 -o Sol Sol.cpp | |
| if [ $? -eq 0 ]; then | |
| echo "Compilation done!" | |
| else | |
| echo "Compilation failed!" | |
| exit 1 |