Coder Social home page Coder Social logo

luxedo / calcumlator Goto Github PK

View Code? Open in Web Editor NEW
30.0 5.0 3.0 102.73 MB

An intelligently dumb calculator that uses machine learning

Home Page: https://calcumlator.herokuapp.com/

License: GNU General Public License v3.0

Python 100.00%
calculator machine-learning machine-learning-algorithms regression-models microservice calculations

calcumlator's Introduction

CalcuMLator

CalcuMLator is a calculator that utilizes Machine Learning to predict the values.

calculator

Check it running here.

I'm hosting the backend of the project at heroku with a free plan. It may take a little to fire up the servers there. The page contains more information about the calculator.

If you wish to run the project locally, clone the repository and install the dependencies. Then you can start a web server with gunicorn. If you don't want to install the dependencies globally, try running inside a virtualenv

$ git clone https://github.com/luxedo/calcuMLator.git
$ cd calcuMLator
$ pip install -r requirements.txt
$ gunicorn server:app

Microservice

To call the microservice, use the following address: https://calcumlator.herokuapp.com/compute with the following queries:

  • n1 - the first number of the calculation
  • n2 - the second number of the calculation
  • op - the operation to be performed (add, sub, mul, div)
  • method - the regression method (real, linear, ridge, lasso, elastic, bayesian, theil, PAR, SVR, bagging, dtree, gaussian, PLS, MLP, knnr, k_ridge, forest)

eg:

GET https://calcumlator.herokuapp.com/compute?n1=10&n2=20&op=add&method=gaussian

{ "result": 29.999900352733675 }

Thanks to Rafael Hamasaki for the help with the UI.

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.