ml_code_generator

Deployed version of this proof of concept

https://github.com/oss-slu/ml_code_generator

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.1%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Deployed version of this proof of concept

Basic Info
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 25
  • Open Issues: 19
  • Releases: 0
Created about 4 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

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 main.py

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 flaskapp/flaskmain.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

Environment Variables

This application contains a "Login with Google" feature. In order for this feature to properly work, there needs to be a .env file in the root directory of the project, defining two variables: GOOGLECLIENTSECRET and GOOGLECLIENTID. These variables come from Google Cloud credentials configuration (google developer console). This file is intentionally part of the code repository, because those values must be kept secret.

Owner

  • Name: Open Source with SLU
  • Login: oss-slu
  • Kind: organization
  • Email: oss@slu.edu
  • Location: United States of America

The open-source program office of Saint Louis University

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Holdener"
  given-names: "Ekaterina"
  orcid: "https://orcid.org/0000-0003-4289-5888"
title: "Machine Learning Pipeline Generator"
version: 1.0.0
doi: 10.5281/zenodo.1234
date-released: 2022-12-11
url: "https://github.com/kate-holdener/ml_code_generator"

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • flask *
  • pandas *
  • pytest *
.github/workflows/pylint.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
.github/workflows/pytest.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite