Git Product home page Git Product logo

haipipe's Introduction

HAIPipe

Given a human-generated pipeline (HI-pipeline) for an ML task, HAIPipe introduces a reinforcement learning based approach to search an optimized ML-generated pipeline (ML-pipeline) and adopts an enumeration-sampling strategy to carefully select the best performing combined pipeline(HAI-pipeline).

Requirements

This code is written in Python. Requirements include

  • python = 3.8.12
  • NumPy = 1.19.5
  • pandas = 1.1.3
  • torch = 1.9.0
  • Scikit-learn = 0.23.2

You can install multiple packages:

pip install -r requirements.txt

Quick Start

run example to generate hybrid-pipeline

python example.py

The file example.py is an example. Modify it according to your configuration.

  • The input contains 1 notebook, 1 CSV file, some information about the ML task (including model and label_index)
  • The output is the best HAI-program, the accuracy of HI-pipeline and the accuracy of HAI-pipeline.

Customized input

You can put new data in the folder $hybridpipe/data/and organize them as:

hybridpipe
├── data
│   ├── dataset 
│   │   └── new_folder   #input dataset(csv file)
│   └── notebook #input notebook
├── MLPipeGen
└── HybridPipeGen

Then modify the input in example.py.

Dataset

The whole dataset and notebooks are put in the follow link: https://www.dropbox.com/s/reqenlqzggpx8bk/haipipe_datasets.zip?dl=0

haipipe's People

Contributors

ruc-datalab avatar axzs0987 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.