Skip to content

luxedo/calcuMLator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.