Skip to content
/ AutoML Public
forked from aid848/AutoML

A MERN application designed to help users interact with PLAI's Ensemble Squared system. This is the public version of the project and thus may be missing some files for security reasons.

Notifications You must be signed in to change notification settings

povel62/AutoML

 
 

Repository files navigation

App Description

AutoML is a web application designed to help users interact with PLAI's Ensemble Squared automatic machine learning system. The focus of our application is to make the system convenient and user-friendly; it guides the user through all the steps necessary to make predictions of tabular data, even if they are not experts in ML. We include a third-party integration with Kaggle, allowing users to access even more data to explore and use with the system for competitions.

Project Task Requirements / Goals

Minimum Requirements:

1. Login/account page ✔️

  • Allow Guest/Incognito mode ✔️
  • Allow sign up with email and password for multiple jobs, no hash required ✔️

2. Tutorial (step by step guided mode) ✔️

3. Casual and advanced user parameters for model generation ⚠️

(Not possible with current system due to lack of exported configuration parameters from ensemble)
  • Show minimal options to complete job to casual users and show maximum applicable options available to advanced users ❌
  • We show options for different user payment tiers instead ✔️
  • Allow toggle button at sign up ✔️

4. Nav Bar for different pages ✔️

Standard Requirements:

1. Kaggle integration (dataset import/viewer, add api key to account) ✔️

2. Add/remove associated jobs to account with collaborators (add with email) ✔️

3. Control dashboard (with jobs progress, datasets) ✔️

  • On site progress indicator for jobs ✔️
  • Timer for the job on page ✔️

4.Tabular uploading screen (maybe other) data viewer/explorer ⚠️

  • Allow user to make minor corrections to data ❌
  • Allow verification of data? Pre confirmation and summary stats ✔️

5. Prediction data results on site ❌ (Downloading to local or exporting to Kaggle done instead, seemed more useful than a static display of the data)

6. Added integration with sendGrid tool that has been used to create email template (that is saved on that sendGrid app) and sends email to users when: ✔️

  • They signed up ✔️
  • Their training has completed ✔️
  • Their prediction has completed ✔️
  • Someone shared a Job ✔️

7. Added logs viewing capability for each job that has been submitted: ✔️

  • Search error ✔️
  • Search output ✔️
  • Prediction error ✔️
  • Prediction output ✔️

Stretch Requirements:

1. Image/object recognition datatype support ❌

2. Graphs or visuals to support models/input data? (Tableau/D3js) ❌

3. Payment system integration for long jobs ✔️

4. Changing Ensemble^2 backend to allow support for prediction target column names, job names, and folder names with spaces , access prediction files to allow download through our app. ✔️

Usage of Tech from Units 1-5 in the Project

Unit 1: HTML, CSS, JS

We used CSS for styling all of our UI to maintain consistency. We used Javascript in both our front end (React) and back end (Express running on Node) systems. HTML on our front end acts as an entry point for our React app.

Unit 2: React

We used React and React-Redux to create the frontend of our system. We incorporate React’s JSX throughout the front end of our application to build various React components that work together to make our application modular and work efficiently.

Unit 3: Node & Express

We implemented a Node backend for our system that communicated with both the frontend and the Ensemble^2 systems. We used Express and Cors to implement our backend.

Unit 4: MongoDB

We used a MongoDB collection to store our users and ML jobs. We used Mongoose to interact with our modeled data and perform operations such as creation, modification, and deletion as necessary to keep our application running smoothly.

Unit 5: Release Engineering

We have deployed our app on Heroku using continuous deployment through GitHub Actions. To maintain high code quality and consistency, we have followed many best industry practices such as requiring code reviews on pull requests and incorporated continuous integration as part of our development process.

Description of ‘Above and Beyond’ Functionality

Scaling Ensemble^2 (for the other team as well) and advanced ssh tunneling:

The “above and beyond” part of this feature is extending our understanding of the current PLAI Ensemble^2 infrastructure to scale/flex in certain ways to avoid code breakage and involves minimal code change. A new ensemble instance was created, namely ensemble_squared_2 with the updated code (which can callback at a passed API route and also includes some bug fixes). Additionally, we added the following to the system:

  • SSH tunneling for multiple connections through a proxy server (Paramiko library).
  • The backend now supports another parameter with a “-u” flag for storing the callback API URL. After the shell scripts are run, it makes a patch request to the callback URL ending with the “isSuccess” flag in the body which notifies the user/server.
  • Support for prediction target column names, job names, and folder names with spaces.

Kaggle Streaming:

The Kaggle integration system incorporates an “above and beyond” functionality on the backend when it moves data files to and from Kaggle’s servers. The Kaggle API is still a work in progress and as such has numerous inconsistencies, errors, and missing functionality that had to be mitigated for the project to work. To start, the dataset format varied between zipped and standard CSV files which made reading metadata such as column names challenging and required multiple approaches to work. The column names were frequently blank when the API was called which required the reading of the zipped or unzipped file to return the appropriate values. To save time, only enough of the file was read to get these values. This was fairly easy for uncompressed files, but for compressed files, it required reading zip entries and unzipping simultaneously without exceeding memory space to process properly. As the API is still in progress, the actual uploading of files coming back to Kaggle from Ensemble was uploaded via the Kaggle python library for stability. This approach required the following:

  • Custom python wrappers, to wrap the Kaggle library’s functions that needed to be called from our Express backend.
  • Temporary files for uploading and reading data that needed to be created and cleaned up in sync with running both Python and Node environments and avoiding issues regarding race conditions or asynchronous events.
  • Setting parameters and environment variables appropriately, such as credentials and passing data between the two languages when system arguments had a fairly small size limit.

Communicating between Node and Python proved challenging due to limitations such as size constraints of both disk space for temporary files and system arg limits that can vary from machine to machine. Overall, this approach provides reasonable running time and use of system resources and allows full functionality of the Kaggle integration.

Description of Next Steps

Our next steps consist of a few different features and integrations that would benefit the app. We plan on adding image dataset support for training object recognition models and integrating Google Sheets for additional tabular data. We also plan to allow modification and customization of models with additional parameters and visualizations of the data to help users make the most of the system.

List of Contributions

Aayush:

I worked on the front end of this project, focusing on the navbar, tutorial, and paginated Job dashboard with all its functionalities. Added payment system tiers and limited functionality for guest users and non-premium users in the front end, a guided tour for the job dashboard, and the Kaggle dashboard using react-joyride. I also tweaked the API routes in our backend, added security to some API calls, and worked on the styling of the app.

Aidan:

I worked on the front and back end systems with a focus on the Kaggle integration and created the Kaggle dashboard. The work focused on making calls with Kaggle’s API on the front end and making some calls to our backend to stream datasets between the ensemble squared system and the Kaggle system. I also worked on the backend job and user security operations such as hashing, encryption, and privilege levels for sensitive information such as the user Kaggle API key and passwords.

Povel:

I worked on general app setup, deployment, structures, and any other integrations we used. I added the models, the MongoDB connections, mongoose lib, routers, and controllers to make it easy to structure and write new code. I worked on a lot of backend API’s like login/signup/train/predict/getting files/(getting/deleting/updating collections), did a lot of revamp on the frontend, and even used PythonShell to communicate with the new instance of ensemble squared (and SFTP protocols to transfer files between our system and the borg server) with the ability to check the logs file for a job (APIs and frontend).

Rahul:

I worked on developing the UI for this project and implementing critical system functionalities such as adding new jobs, uploading test files for prediction to Ensemble^2, and getting the prediction results back. I also integrated additional functionalities like the data viewer, job-sharing capability, account tiers, payment system, and user tutorials to enhance the workflow of the system. Moreover, I also worked on implementing functionalities for critical frontend components such as the account dashboard to let the user update their profile information.



Old Readme (for grading/archive purposes)

High-Level Project Description

AutoML is a web application designed to help users interact with PLAI's Ensemble Squared automatic machine learning system. Our application focuses on making the system convenient and user-friendly by guiding the user through all the nessesary steps to make predictions of tabular data, even if they are not experts in ML. We include a third party integration with Kaggle to allow users to access even more data to explore and use with the system for competitions.

Project Goals

This project is designed to support Blackbox ML users that will allow a fluid user experience and quick and easy access to the machine learning systems. Our goal is to provide easy access to world-class predictive automated machine learning systems to the masses. We aim to support both general and advanced users equally in using the system to solve their inference problems. Our stretch goal is to allow integration and use with Kaggle to making using the system even easier.

Project Task Requirements

3-5 minimum req.

1. Login/account page

Allow Guest mode with hash (like current site)

Allow sign up with email and password for multiple jobs, no hash required

2. Tutorial (step by step guided mode)

3. Casual and advanced user parameters for model generation

Show minimal options to complete job to casual users and show maximum applicable options available to advanced users

Allow toggle button in user settings and at sign up

4. Nav Bar for different pages

3-7 standard req.

1. Kaggle integration (dataset import/viewer, add api key to account)

2. Add/remove associated jobs to account with collaborators (add with email)

3. Control dashboard (with jobs progress, datasets)

On site progress indicator for jobs

Timer for the job on page

4.Tabular uploading screen (maybe other) data viewer/explorer

Allow user to make minor corrections to data

Allow verification of data? Pre confirmation and summary stats

5. Prediction data results on site

2-3 stretch req.

1. Image/object recognition datatype support

2. Graphs or visuals to support models/input data? (Tableau/d3js?)

3. Payment system integration for long jobs

Sketches:

Dashboard Sketch

Dashboard Sketch

Data Viewer Sketch

![Data Viewer Sketch](./cpsc455-Data viewer.png?raw=true "Discover")

Login Sketch

Login Sketch

Setup Links:

About

A MERN application designed to help users interact with PLAI's Ensemble Squared system. This is the public version of the project and thus may be missing some files for security reasons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.1%
  • Python 3.0%
  • CSS 1.6%
  • HTML 0.3%