Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luxedo/calcumlator
An intelligently dumb calculator that uses machine learning
https://github.com/luxedo/calcumlator
calculations calculator machine-learning machine-learning-algorithms microservice regression-models
Last synced: 3 months ago
JSON representation
An intelligently dumb calculator that uses machine learning
- Host: GitHub
- URL: https://github.com/luxedo/calcumlator
- Owner: luxedo
- License: gpl-3.0
- Created: 2016-03-26T20:17:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-15T21:33:19.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T13:11:23.398Z (almost 2 years ago)
- Topics: calculations, calculator, machine-learning, machine-learning-algorithms, microservice, regression-models
- Language: Python
- Homepage: https://calcumlator.herokuapp.com/
- Size: 100 MB
- Stars: 30
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CalcuMLator
`CalcuMLator` is a calculator that utilizes Machine Learning to predict the values.
![calculator](docs/images/calculatorv2.png "calculator")
#### Check it running [here](https://calcumlator.herokuapp.com/).
I'm hosting the backend of the project at [heroku](https://www.heroku.com/) 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](http://gunicorn.org/). If you don't
want to install the dependencies globally, try running inside a [virtualenv](https://virtualenv.pypa.io/en/stable/)
```bash
$ 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.