functionVerified releasev2
summarize_topics
Measure observed topic counts, shares, scores and comments separately from topic assignment; compare equal-duration windows under one fixed model and report overlapping feed coverage.
Interface
Verified contract
Inputs
| Name | Type |
|---|---|
| predictions | dict |
| periods | list | None |
| window_hours | float |
| anchor_utc | str | None |
Outputs
| Name | Type |
|---|---|
| default | dict |
Exact release
Pinned local call
from spl import SPLClient
result = SPLClient.embedded().call(
"splime://@splime.project/case4-hn/summarize_topics@2",
kwargs={'anchor_utc': 'replace-with-value', 'periods': [], 'predictions': {}, 'window_hours': 0.0},
trust=True,
)Review before running. Public bundles contain executable code. Verify the publisher and exact content hash; a virtual environment isolates dependencies, not the operating system.
Evidence
Evidence-backed concepts
- Summarize topics
- Comments separately
- Topic assignment
- One model
- Compare equal duration windows
- Report overlapping feed coverage
- Window hours
- Anchor utc
History
Public versions
- v22 downloads
- v10 downloads
Discover
Similar Objects
- analyze_titlesApply explicit topic rules and compare document shares in adjacent equal-duration windows. Counts describe the supplied snapshot, not all Hacker News activity.
- hn_topic_digestFetch real HN stories, normalize them, apply the required immutable embedded trained model, count observed attention and render notebook-safe HTML. Training is a separate operation. Published implementation executes locally in embedded mode.
- evaluate_topics_temporallySplit HN stories chronologically, fit vocabulary and topics only on earlier titles, then inspect later-title coverage and reconstruction. No supervised accuracy or future-popularity forecast is claimed.
- train_topic_modelFit a simple TF-IDF and nonnegative matrix factorization topic model on supplied training titles only. Returns portable JSON vocabulary, IDF weights, learned components, automatic top-term names and a content identity; no rule-generated labels.
- predict_topicsApply a supplied fitted HN topic model without fitting vocabulary or components. Returns topic assignments, automatic keyword tags, unknown-topic diagnostics and unchanged observed popularity values.