GithubHelp home page GithubHelp logo

khsibr / cgpm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from probcomp/cgpm

0.0 0.0 0.0 9.17 MB

Library of composable generative population models which serve as the modeling and inference backend of BayesDB.

License: Apache License 2.0

Shell 0.34% Python 99.66%

cgpm's Introduction

cgpm

Build Status

The aim of this project is to provide a unified probabilistic programming framework to express different models and techniques from statistics, machine learning and non-parametric Bayes. It serves as the primary modeling and inference runtime system for bayeslite, an open-source implementation of BayesDB.

Composable generative population models (CGPM) are a computational abstraction for probabilistic objects. They provide an interface that explicitly differentiates between the sampler of a random variable from its conditional distribution and the assessor of its conditional density. By encapsulating models as probabilistic programs that implement CGPMs, complex models can be built as compositions of sub-CGPMs, and queried in a model-independent way using the Bayesian Query Language.

Installing

Conda

The easiest way to install cgpm is to use the package on Anaconda Cloud. Please follow these instructions.

Manual Build

cgpm targets Ubuntu 14.04 and 16.04. The package can be installed by cloning this repository and following these instructions. It is highly recommended to install cgpm inside of a virtualenv which was created using the --system-site-packages flag.

  1. Install dependencies from apt, listed here.

  2. Retrieve and build the source.

    % git clone [email protected]:probcomp/cgpm
    % cd cgpm
    % pip install --no-deps .
    
  3. Verify the installation.

    % python -c 'import cgpm'
    % cd cgpm && ./check.sh
    

Publications

CGPMs, and their integration as a runtime system for BayesDB, are described in the following technical report:

Applications of using cgpm and bayeslite for data analysis tasks can be further found in:

Tests

Running ./check.sh will run a subset of the tests that are considered complete and stable. To launch the full test suite, including continuous integration tests, run py.test in the root directory. There are more tests in the tests/ directory, but those that do not start with test_ or do start with disabled_ are not considered ready. The tip of every branch merged into master must pass ./check.sh, and be consistent with the code conventions outlined in HACKING.

To run the full test suite, use ./check.sh --integration tests/. Note that the full integration test suite requires installing the C++ crosscat backend.

License

Copyright (c) 2015-2016 MIT Probabilistic Computing Project

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

cgpm's People

Contributors

avinson avatar axch avatar gregory-marton avatar leocasarsa avatar riastradh-probcomp avatar schaechtle avatar zane 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.