Skip to main content

Web app and library for regression analysis of provided data files.

Project description

PyPI - Python Version PyPI PyPI - Status GitHub Travis (.org)

Web app and library for regression analysis of provided data files.

Changelog »

Installation

Install with pip:

$ pip install regression

For web app use git to clone GitHub repository:

$ git clone git://github.com/makr3la/regression
$ cd regression
$ pip install -r requirements.txt

Check requirements.txt for dependencies.

Usage

from regression import processing as lib

files = lib.find_files()
sample = {'feature_1': 'value', 'feature_2': 'value', 'feature_n': 'value'}

X, y, sample = lib.process_data(files['data.csv'], sample)  # Ingest and format data
lib.predict_ols(X, y, sample)  # Run OLS model
lib.predict_gbr(X, y, sample)  # Run Gradient Boosting for regression model

Run web app on Flask’s built-in server or deploy to a WSGI server:

$ python run.py

Files

Provide your data files either with upload form or by copying them into the app root directory or subdirectory in one of the supported file formats:

  • Delimited text files (CSV)
index,features,...,outcome  # First row is a header containing a list of field names
item 1,X11,X12,...,X1p,y1   # Value rows should follow this order
item 2,X21,X22,...,X2p,y2   # Features can be given as numerical or categorical values
...
item n,Xn1,Xn2,...,Xnp,yn
  • Excel files (XLS, XLSX)
index features outcome
item 1 X11 X12 X1p y1
item 2 X21 X22 X2p y2
item n Xn1 Xn2 Xnp yn

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for regression, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size regression-0.2.0-py3-none-any.whl (8.3 kB) File type Wheel Python version 3.7 Upload date Hashes View hashes
Filename, size regression-0.2.0.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page