This repository contains a machine learning project that uses linear regression to predict a target variable. The project is organized into separate modules for training the model, validating the data, and validating the model's performance. Automated workflows for these tasks are set up using GitHub Actions.
machine-learning-python/
├── .github
│ └── workflows
│ ├── main.yml
├── requirements.txt
├── src
│ ├── data
│ │ ├── create_dataset.py
│ │ ├── prepare_data.py
│ │ └── validate_data.py
│ ├── model
│ │ ├── model.py
│ │ └── validate_model.py
│ └── utils
│ └── load_and_save.py
└── tests
└── test_model.py
- Clone this repository.
- Install the required Python packages:
pip install -r requirements.txt
. - Validate the data:
python src/validate_data.py
. - Train the model:
python src/model.py
. - Validate the model:
python src/validate_model.py
. - Run the test suite:
pytest tests/
.
This project uses GitHub Actions to automate several tasks:
- When you push to the repository or open a pull request, GitHub Actions will automatically validate the data, train the model, and validate the model's performance.
- If any of these tasks fail, GitHub Actions will open an issue in the repository.
Please see the GitHub Actions documentation for more information on how this works.
Please open an issue to discuss proposed changes before submitting a pull request.
This project is licensed under the terms of the MIT license.