Coder Social home page Coder Social logo

ejhusom / d2m Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 30.55 MB

A machine learning pipeline taking you from raw data to fully trained machine learning model - from data to model (d2m).

Home Page: https://ejhusom.github.io/d2m/

License: MIT License

Dockerfile 0.20% Python 92.95% CSS 1.85% HTML 4.33% Shell 0.67%
ai-engineering artificial-intelligence data-science data-version-control explainable-ai green-ai machine-learning machine-learning-pipeline uncertainty-estimation

d2m's Introduction

d2m - Data to model

A machine learning pipeline for trustworthy and green models, enabling responsible AI:

  • Explainable AI, using SHAP, LIME or both.
  • Uncertainty estimation, using Bayesian dropout for neural networks.
  • Carbon emissions tracking and reporting, using CodeCarbon.

d2m lets you easily create and evaluate machine learning models for tabular and time series data, with built-in data profiling and feature engineering.

Usage

Tested on:

  • Linux
  • macOS
  • Windows with WSL 2
  1. Clone/download this repository.
  2. Place your datafiles (csv) in a folder with the name of your dataset (DATASET) inside assets/data/raw/, so the path to the files is assets/data/raw/[DATASET]/.
  3. Update params.yaml with the name of your dataset (DATASET), the target variable, and other configuration parameters.
  4. Build Docker container:
docker build -t d2m -f Dockerfile .
  1. Run the container:
docker run -p 5000:5000 -it -v $(pwd)/assets:/usr/d2m/assets -v $(pwd)/.dvc:/usr/d2m/.dvc d2m
  1. Open the website at localhost:5000 to use the graphical user interface.

Creating models on the command line

  1. Copy params.yaml from the host to the container (find CONTAINER_NAME by running docker ps):
docker cp params.yaml  [CONTAINER_NAME]:/usr/d2m/params.yaml
  1. Inside the interactive session in the container, run:
docker exec [CONTAINER_NAME] dvc repro

d2m's People

Contributors

ejhusom avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sintef-9012

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.