GithubHelp home page GithubHelp logo

ml_code_generator's Introduction

Machine Learning Code Generator

This is an experimental software providing a point and click user interface for generating python code for machine learning (ML) pipelines. At this early stage, the features are very limited. We are actively working on building new features to get the first proof of concept version working. The goal of this software is to allow non-programmers "write" ML pipeline code.

Install dependencies (only one time)

The instructions below assume that python3 and pip3 refer to Python 3.x and Pip 3.x. Depending on how things are configured, you may need to use python and pip commands instead of python3 and pip3. Additionally, Windows users would benefit from installing gitbash for windows, which will allow them to run bash commands (as used in these instructions).

  1. Create a virtual environment: python3 -m venv venv
  2. Activate virtual environment:
    • Mac or Linux: source venv/bin/activate
    • Windows: source venv/Scripts/activate
  3. Install dependencies: pip3 install -r requirements.txt

Virtual environment

  1. Activate virtual environment each time you use this code:
    • Mac or Linux: source venv/bin/activate
    • Windows: source venv/Scripts/activate

Set PYTHONPATH

export PYTHONPATH=$(pwd)

Run the code at command line:

  1. python3 driver.py <INPUT_CSV_FILE>

This code will process the input csv file, remove rows with missing values, and will output data summary. Generated python code will be printed to the terminal.

Run the code via a web interface:

  1. python3 flask_app/flask_main.py

If all goes well, you should see the following in your terminal:


 * Serving Flask app 'flask_main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit

Point your web browser to http://127.0.0.1:5000 to access the user interface of this software.

Run tests

  1. pytest

Deactivate virtual environment

  1. deactivate

ml_code_generator's People

Contributors

airakoze avatar felipealencar avatar kate-holdener 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.