GithubHelp home page GithubHelp logo

jgabrito / autohmm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danwenxuan123/autohmm

0.0 0.0 0.0 1007 KB

Hidden Markov Models (HMMs) with tied states and autoregressive observations

Home Page: http://www.mackelab.org/autohmm/

License: BSD 2-Clause "Simplified" License

Makefile 0.81% Python 97.50% Shell 1.69%

autohmm's Introduction

autohmm Build Status Docs

This packages provides an implementation of Hidden Markov Models (HMMs) with tied states and autoregressive observations, written in Python. For HMM recursions, the C implementations of the hmmlearn package are used. Evaluation of the likelihood function and the maximization of the expected complete data log-likelihood is implemented in autograd, to allow quick development of novel models.

Important: The code in this repository is still experimental, and APIs are subject to change without warning.

Installation

As of now, this package is not installable via pip. Instead, clone the current version from git:

$ git clone https://github.com/mackelab/autohmm.git

The dependencies are listed in requirements.txt. If you are using pip, you can install the dependencies through:

$ pip install -r requirements.txt

To install autohmm, call make or:

$ python setup.py install

Quick Example

import numpy as np
from autohmm import ar

model = ar.ARTHMM(n_unique=2)
model.mu_ = np.array([2.0, -2.0])
model.var_ = np.array([0.25, 0.25])

samples, states = model.sample(n_samples=500)

Documentation

An early stage version of the documentation is available at: http://www.mackelab.org/autohmm/

autohmm's People

Contributors

jan-matthis avatar sarah-strauss avatar danwenxuan123 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.