Code Monkey home page Code Monkey logo

python-ml-template's Introduction

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Python ML Template

A starter kit for Python-based Machine Learning projects
Explore the docs ยป

View Demo ยท Report Bug ยท Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgments

About The Project

Launching a new project from scratch can be a challenge, especially with a personal commitment to high-quality work. This initial setup complexity got me thinking: "How few commands can I really get away with to kickstart a new machine learning (ML) project"?

Well, from putting together this Python ML Template project, my answer is three:

copier copy python-ml-template/ your-new-project
cd your-new-project/
make

This even automatically creates a remote repository on GitHub! Of course, this template is doing most of the heavy lifting. For more details on getting started, please Checkout this README's "Getting Started" section.

(back to top)

Features

So, what exactly did I choose to include in my essential starter kit for a Python-based Machine Learning project?

  • A simple continuous integration (CI) pipeline that blocks any pull requests (PRs) with failing Python tests
  • Dynamic template generation to encourage a "document as you go" approach rather than hastily throwing everything together
  • A base Python environment definition so that I'm not consistently reinstalling my favorite Python packages (e.g., black) over and over
  • Git and GitHub-focused templates to make version control and peer-to-peer collaboration as streamlined as possible

For a deeper dive of what's included in this project and why, please refer to the project documentation.

(back to top)

Built With

This project leverages the power of the following frameworks and libraries. Refer to the acknowledgments section for the other resources that I've employed

  • Static Badge
  • Static Badge
  • Static Badge
  • Static Badge
  • Static Badge
  • Static Badge

(back to top)

Getting Started

Want to get started with ML development as soon as possible? Then just follow the steps outlined below.

Prerequisites

Make sure you have the following dependencies installed:

  • Conda or miniconda for Python package management

  • Copier for dynamic Markdown file templating

  • GitHub CLI for automated project publishing and run gh auth login to setup

Installation

Getting started is simple. Here are the step-by-step instructions:

  1. Clone this repository (git clone https://github.com/bellanich/python-ml-template)
  2. Fill out your personal details in the relevant fields of the copier.yml file
  3. Use copier to copy this template to a new directory and fill out the provided prompts (copier copy python-ml-template/ your-new-project/)
  4. Execute the Makefile inside the newly created directory
    cd your-new-project/
    make
  5. Activate your conda environment and you're ready to go
    # By default, your conda env will have the same name as your project
    CONDA_ENV_NAME=$(basename "$(pwd)")
    conda activate $CONDA_ENV_NAME

(back to top)

Usage

Curious how my Python ML Template works? This GIF showcases how you can get started right away with ML feature development by using this template's 3 simple setup commands:

Demo

For more implementation details, please refer to the project documentation.

NOTE: This section focus is illustrating a project's business value. Therefore, in a more prototypical ML project, you would also include things like screenshots, code examples, and figures.

(back to top)

Contributing

If you have a suggestion that would make this project better, please fork this repository and create a pull request. You can also simply open an issue with the tag "enhancement".

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE file for more information.

(back to top)

Contact

Bella Nicholson - @bella-nicholson - [email protected]

Project Link: https://github.com/bellanich/python-ml-template

(back to top)

Acknowledgments

Rather than re-inventing the wheel, I've leveraged the following great resources in my template formulation:

(back to top)

python-ml-template's People

Contributors

bellanich avatar

Stargazers

Arbian Halilaj avatar Louis Lacombe avatar Sebas avatar Joost Bos avatar Shreyas Patil avatar Aleksei Mashlakov avatar Jier Nzuanzu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.