Giter Club home page Giter Club logo

pl-statsmodels's Introduction

A ChRIS statsmodels plugin app

Version MIT License ci

pl-statsmodels is a ChRIS ds plugin which takes in CSV data as input files and creates result summary of Ordinary Least Square fit as output files.

Abstract

An application that takes CSV files as input and fits an OLS model on it. The result summary of the OLS fit is stored in output folder.

Installation

pl-statsmodels is a ChRIS plugin, meaning it can run from either within ChRIS or the command-line.

Get it from chrisstore.co

Local Usage

  1. Building container image using podman/docker:
docker build --tag pl-statsmodels -f ./Dockerfile
  1. Add the CSV file on which the OLS models has to be fitted. Reference
  2. Executing container image
docker run --rm -u $(id -u) -v $(pwd)/test_input:/incoming -v $(pwd)/test_output:/outgoing local/pl-statsmodels statsmodels_tool --columns "Lottery ~ Literacy + Wealth + Region" /incoming /outgoing

NOTE: --columns is a required (string) parameter for the statsmodels_tool utility

Testing

docker run --rm pl-statsmodels nosetests

Release

Steps for release can be automated by Github Actions. This section is about how to do those steps manually.

Increase Version Number

Increase the version number in setup.py and commit this file.

Push Container Image

Build and push an image tagged by the version. For example, for version 1.2.3:

docker build -t docker.io/fnndsc/pl-statsmodels:1.2.3 .
docker push docker.io/fnndsc/pl-statsmodels:1.2.3

Get JSON Representation

Run chris_plugin_info to produce a JSON description of this plugin, which can be uploaded to a ChRIS Store.

docker run --rm localhost/fnndsc/pl-statsmodels:dev chris_plugin_info > chris_plugin_info.json

pl-statsmodels's People

Contributors

bovem avatar dorindabassey avatar

Watchers

Máirín Duffy avatar Christopher Tate avatar

Forkers

bovem

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.