New Python Notebook for StableBL Testing and fixed plotting
%% Cell type:markdown id: tags: | ||
# **Jupyter Notebook to test the library Stable Baselines in the Gym-Environment JuPong2D** | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Checking current directory, it should be the GitLab-Repository | ||
pwd | ||
``` | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Activating the virtal environment, which should be installed before running the notebook | ||
source lib/pong_deeprl/bin/activate | ||
``` | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Lists all possible command options of the Stable Baselines training and testing script | ||
deep_stablebl --help | ||
``` | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Starts a simple training of the Gym-Environment JuPong2D | ||
deep_stablebl --pl 0.5 --session 1 --tts 10000 --train-steps 3 results/stablebl_results | ||
``` | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Testing of the trained model by playing in different Gym-Environments, which depend on the parameters | ||
deep_stablebl --play --pl 0.5 --session 1 --play-steps 2 results/stablebl_results | ||
``` | ||
%% Cell type:code id: tags: | ||
``` bash | ||
``` python | ||
# Plots the training results in a PDF-file | ||
plot_stablebl results/stablebl_results | ||
``` | ||
... | ... |
Please register or sign in to comment