Skip to main content

My implementation of Markov Chains

Project description

mc.py Codacy Badge

My implementation of Markov Chains

Installation

pip install mc.py

Examples

import mc  
  
  
markov = mc.StringGenerator(learning_data=[  
    'hello world', 'world of cuties', 'hello cuties'  
])  
  
print(markov.generate(count=3))  # e.g. >> ['world', 'hello world', 'hello world of cuties']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mc.py-1.0.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page