hatvis.datasets.make_news_transactions#

hatvis.datasets.make_news_transactions(n_per_period=120, periods=('2021', '2022', '2023'), random_state=None)[source]#

Synthetic news articles described by their themes (a stand-in for GDELT-type data).

Each article (hyperedge) mixes one or two narratives (theme groups) and some background themes; the popularity of the narratives changes over the periods (e.g. finance and loss-and-damage grow, energy shifts), so frequent patterns, communities and their evolution can be studied. Returns a TemporalHypergraph with edge_data["time"] and the planted narrative of each article.

Examples using hatvis.datasets.make_news_transactions#

PAOH: a dynamic hypergraph without clutter

PAOH: a dynamic hypergraph without clutter

UpSet view of frequent theme combinations

UpSet view of frequent theme combinations

Co-clustering vertices and hyperedges

Co-clustering vertices and hyperedges

Frequent itemsets as a hypergraph

Frequent itemsets as a hypergraph

Association rules as a directed hypergraph

Association rules as a directed hypergraph

Simpliciality and nestedness: hypergraph or simplicial complex?

Simpliciality and nestedness: hypergraph or simplicial complex?

Evolving narratives in a temporal hypergraph

Evolving narratives in a temporal hypergraph