GithubHelp home page GithubHelp logo

sunnypig618 / healthcareai-py Goto Github PK

View Code? Open in Web Editor NEW

This project forked from healthcatalyst/healthcareai-py

0.0 0.0 0.0 1.65 MB

Python tools for healthcare machine learning

Home Page: http://healthcare.ai/py

License: MIT License

Python 70.84% PowerShell 10.13% Batchfile 4.62% Shell 0.07% Jupyter Notebook 14.34%

healthcareai-py's Introduction

healthcareai

Appveyor build status

The aim of healthcareai is to streamline machine learning in healthcare. The package has two main goals:

  • Allow one to easily create models based on tabular data, and deploy a best model that pushes predictions to SQL Server.
  • Provide tools related to data cleaning, manipulation, and imputation.

Installation

  • Using Windows
    • Open the terminal (ie git bash, if using Windows)
    • run conda install pyodbc
    • run pip install https://github.com/HealthCatalystSLC/healthcareai-py/zipball/master
  • Using Linux / OSX (via docker)
    • Clone this repo (look for the green button on the repo main page)
    • cd into the cloned directory
    • run docker build -t healthcareai .
    • run the docker instance with docker run -p 8888:8888 healthcareai
    • You should then have a jupyter notebook available on http://localhost:8888.

Getting started

  • Visit healthcare.ai to read the docs and find examples. Also, see this notebook.
  • Modify the queries and parameters to match your data
  • If you plan on deploying a model (ie, pushing predictions to SQL Server), run this in SSMS beforehand:
CREATE TABLE [SAM].[dbo].[HCPyDeployClassificationBASE] (
    [BindingID] [int] ,
    [BindingNM] [varchar] (255),
    [LastLoadDTS] [datetime2] (7),
    [PatientEncounterID] [decimal] (38, 0), --< change to your grain col
    [PredictedProbNBR] [decimal] (38, 2),
    [Factor1TXT] [varchar] (255),
    [Factor2TXT] [varchar] (255),
    [Factor3TXT] [varchar] (255))

CREATE TABLE [SAM].[dbo].[HCPyDeployRegressionBASE] (
    [BindingID] [int],
    [BindingNM] [varchar] (255),
    [LastLoadDTS] [datetime2] (7),
    [PatientEncounterID] [decimal] (38, 0), --< change to your grain col
    [PredictedValueNBR] [decimal] (38, 2),
    [Factor1TXT] [varchar] (255),
    [Factor2TXT] [varchar] (255),
    [Factor3TXT] [varchar] (255))

Note that we're currently working on easy connections to other types of databases.

Contributing

We welcome community contributions. See here to get started!

Documentation

To render docs, create a virtualenvironment for hcpytools
  • cd to directory where folder was downloaded
  • Type python -m virtualenv healthcare
Install required python modules
  • Type pip install -r dev-requirements.txt.
For Windows
  • Run sphinx-autobuild docs docs/_build/html in the root of the repo
  • Open a browser to http://127.0.0.1:8000
For non-Windows:

healthcareai-py's People

Contributors

levithatcher avatar davidwhealey avatar jpo avatar claire-khodadad avatar aylr avatar mmastand avatar

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.