This project applies supervised learning techniques to predict the outcomes of Napoleonic battles based on historical data.
-
Clone the repository:
git clone https://github.com/yourusername/supervised-learning.git cd supervised-learning
-
Install dependencies using Poetry:
poetry install
-
Run the prediction script:
poetry run python src/battle_predict.py
-
Output: The script will print the accuracy and classification report of the model.
The dataset battles.csv contains historical data of Napoleonic battles with the following columns:
- Battle Name
- Date
- Commander
- Troop Strength
- Opponent Commander
- Opponent Strength
- Terrain
- Weather
- Strategy Used
- Outcome
The model uses a Random Forest Classifier to predict the outcome of battles. The features used for prediction include:
- Troop Strength
- Opponent Strength
- Terrain
- Weather
- Troop Ratio (derived feature)
This project is licensed under the MIT License. See the LICENSE file for details.
Gareth Murphy - [email protected]
Contributions are welcome! Please open an issue or submit a pull request.