This repository contains a Python script designed to establish a standard directory structure for machine learning projects. It helps you organize files and directories in a way that is conducive to developing, testing, and deploying ML models.
script.py
: A Python script to create a structured directory for an ML pipeline project.Image.png
: An image showing the directory structure created by the script.
- Automatic Directory Creation: Creates essential directories for data, notebooks, source code, configuration, and more.
- Placeholder Files: Generates placeholder files with sample content to help you get started quickly.
- Flexible Usage: Offers the option to specify a base directory or use the current directory.
- Self-Cleanup Option: Provides the choice to delete the script after creating the project structure.
We have exciting plans for future updates to enhance the functionality and usability of this project:
- Customizable Templates: Introduce the ability for users to define their own directory and file structures via configuration files.
- Interactive Command Line Interface (CLI): Enhance the user experience by implementing an interactive CLI for better navigation and options.
- Version Control Integration: Automate the initialization of Git repositories and provide basic setup for initial commits and branching.
- Environment Configuration: Automatically set up virtual environments with specified packages and dependencies using
requirements.txt
orenvironment.yml
. - Enhanced Documentation: Provide comprehensive guides and examples for various machine learning workflows using the generated project structure.
-
Clone the Repository:
git clone https://github.com/madhanl6/ML-Template.git cd ML-Template
-
Run the Script:
- Ensure Python is installed. You can run the script using:
python script.py [<base_directory>]
- If you specify a
<base_directory>
, the structure will be created there. For example:
python script.py D:/Template
- If you do not provide a base directory, simply run:
python script.py
- The script will then prompt you to confirm whether to use the current directory or specify a different one.
-
Follow the Prompts:
- After creating the structure, you will be prompted to decide if you want to delete the folder containing the script file.
The script.py
file can be modified to suit your specific needs. You can add more directories, change the placeholder content, or adjust the default structure according to your project requirements.
Contributions are welcome! If you have suggestions for improvements or additional features, please open an issue or submit a pull request. Feel free to modify any sections further to better suit your project needs!