A toolkit for calculating process entropy quickly. With specific applications to tweets.
Project description
ProcessEntropy
A toolkit for calculating process entropy quickly. With specific applications to tweets.
Example Usage
# Load in tweets between 2018/11/16 to 2019/01/01
import pandas as pd
with open("example_data/BBCWorld_Tweets_small.csv", 'r') as f:
BBC = pd.read_csv(f)
with open("example_data/BuzzFeedNews_Tweets_small.csv", 'r') as f:
BuzzFeed = pd.read_csv(f)
target = list(zip(BuzzFeed['created_at'], BuzzFeed['tweet']))
source = list(zip(BBC['created_at'], BBC['tweet']))
from ProcessEntropy.CrossEntropy import *
print(timeseries_cross_entropy(target, source))
Installation
pip install -e git+https://github.com/tobinsouth/ProcessEntropy.git#egg=ProcessEntropy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ProcessEntropy-0.2.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2e1462960a0bdf17fac318fd34ed74f86723df25ac262ec344ddd010d6552b |
|
MD5 | 139e2b5b1c2884066932b57248a65ca7 |
|
BLAKE2b-256 | 5c1866157b31710c3128c1419a07bd2498b0532c4388825b5ba9df9faa2093df |