Giter Site home page Giter Site logo

gkarumbi / flask_ml_general Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bloominstituteoftechnology/flask_ml_general

0.0 0.0 0.0 32 KB

A deployable flask application tailored for production machine learning. Contains drop-in model loading, logging pre-configured, and other useful features.

License: MIT License

Python 100.00%

flask_ml_general's Introduction

flask_ml_general

A deployable flask application tailored for production machine learning. Contains drop-in model loading, logging pre-configured, and other useful features. This is not meant to be a REST API and includes no data security or auth. This is meant to be a lightweight deployable API to drop a model in and get connected to a front-end or dashboard quickly with regular, reliable, JSON responses.

Features include:

  • Databaes connection manager

  • Machine Learning Model loader and factory methods

  • Caching

  • CORS headers

  • Root landing page (rendering this README.md)

Usage

Making Requests

How to make requests

Params, Returns

Updates

Version Information

2019-10-30 - 1.0 Release

Notes

Instance Folder

When committed, this repository is set to ignore the instance/ folder via .gitignore. In development, Flask app can read from the location, but take care to not commit config.py with any API keys or database URIs. To get logs, create the instance/logs/debug.log file. Otherwise, the application will throw an error that debug.log doesn't exist. See 'logging' for more details.

Predefined Routes

The root route path is a rendered version of the README.md file unless otherwise specified. See app.py or the Usage section above for information on accessing functioning endpoints.

Logging

Logging is enabled by default at the INFO level. Logs are written to instance/logs/debug.log. You can configure this or write to external source, console by modifying basic config.

You can change this to DEBUG by modifying the following line:

logging.basicConfig(filename=app.config['LOGFILE'], level=logging.INFO) logging.INFO to logging.DEBUG

Change default save location by modifying the filename attribute in line referenced above. filename=<insert_filename_here>

Special Thanks

It can be hard to get eyes on a project to guide it's feature development. I want to give special thanks to the data scientists who took a minute to walk through pain points and features they'd like to see. Got most of it in.

  • Harsh Desai
  • John Morrison
  • Han Lee

flask_ml_general's People

Contributors

newnativeabq 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.