Instructions to use Hanks1234/battleship-ppo-phase3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- stable-baselines3
How to use Hanks1234/battleship-ppo-phase3 with stable-baselines3:
from huggingface_sb3 import load_from_hub checkpoint = load_from_hub( repo_id="Hanks1234/battleship-ppo-phase3", filename="{MODEL FILENAME}.zip", ) - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Hanks1234/battleship-ppo-phase3: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/Hanks1234/battleship-ppo-phase3/resolve/02355ff0eb1c65657fdcfdf3e1aa25caccb4ee1b/README.md
- Command line
-
hf download hf://Hanks1234/battleship-ppo-phase3@02355ff0eb1c65657fdcfdf3e1aa25caccb4ee1b/README.md
-
curl -L -o README.md https://huggingface.co/Hanks1234/battleship-ppo-phase3/resolve/02355ff0eb1c65657fdcfdf3e1aa25caccb4ee1b/README.md
747 Bytes
| library_name: stable-baselines3 | |
| tags: | |
| - reinforcement-learning | |
| - battleship | |
| - ppo | |
| - maskable-ppo | |
| - sb3-contrib | |
| - custom-environment | |
| # Battleship PPO Agent — Hanks1234/battleship-ppo-phase3 | |
| A MaskablePPO agent trained on a 10x20 Battleship board with custom | |
| T-shaped and Z-shaped ships using [sb3-contrib](https://sb3-contrib.readthedocs.io/). | |
| ## Environment | |
| - **Board**: 10 columns x 20 rows | |
| - **Ships**: 10 ships including T-shaped Battleships and Z-shaped Carriers | |
| - **Observation**: 5-channel binary image (5, 20, 10) | |
| - **Action**: Discrete(200) with action masking (no repeat shots) | |
| ## Usage | |
| ```python | |
| from training.hub import load_model_from_hub | |
| model = load_model_from_hub("Hanks1234/battleship-ppo-phase3") | |
| ``` | |