Skip to main content

Description

Mapykob is a Python application that provides an easy way to experiment with Markov models. While built for educational purposes, it can both be used for educational or commercial purposes.PyPI hosting

State

travis coverage format version license pyversions implementation status

Installation

To install mapykoB simply run the following command in a terminal window:

$  pip install mapykoB

If you would rather install from source, run the following commands in a terminal window:

$  git clone https://github.com/octoandzl/mapykoB.git
$  cd mapykob
$  python setup.py install

Usage

An example would be:

$  sample_data = np.array([
$    [1, 1, 1, 0, 0, 0, 0, 0],
$    [0, 1, 0, 0, 0, 1, 0, 0],
$    [0, 0, 0, 0, 0, 1, 0, 1],
$    [0, 0, 1, 0, 1, 1, 1, 1],
$    [0, 0, 0, 0, 1, 0, 1, 0],
$    [0, 1, 0, 0, 1, 1, 0, 1],
$    [0, 0, 0, 1, 1, 1, 0, 0]])

$  possible_observations = Counter(sample_data[i][j] for i in range(len(sample_data)) for j in range(len(sample_data[i])))
$  M = 2
$  V = len(possible_observations)
$  hmm_discreet = hmm_discreet(M,sample_data,V)
$  hmm_discreet.pi = np.array([0.5, 0.5])
$  hmm_discreet.A = np.array([[0.7, 0.3], [0.4, 0.6]])
$  hmm_discreet.B = np.array([[0.6, 0.4], [0.3, 0.7]])
$  hmm_discreet.compute_alpha(0)
$  p = hmm_discreet.compute_p_from_alpha(0)

Metadata

Release files for mapykoB 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mapykoB 0.0.3
File Size Uploaded
mapykoB-0.0.3.tar.gz 7.0 kB Details

Release files / mapykoB-0.0.3.tar.gz

Download URL mapykoB-0.0.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1f59f25287371d7d15fc8378f1ad4f3407f6496c2c1810a8bdf8869b5fa90664
BLAKE2b-256 checksum
How to use checksums
e34f557891f054a137184a106546faa1e8749c4af5a07abcd09d61d1f860b21d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page