functionVerified releasev1

train_topic_model

Fit 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.

Library
case4-hn
Updated
Runtime
current process; user-managed packages · Python 3.13

Interface

Verified contract

Callable Object

Inputs

NameType
snapshotdict
n_topicsint
min_documentsint
max_featuresint
min_dfint
stop_wordslist | None
random_stateint

Outputs

NameType
defaultdict

Exact release

Pinned local call

from spl import SPLClient

result = SPLClient.embedded().call(
    "splime://@splime.project/case4-hn/train_topic_model@1",
    kwargs={'max_features': 0, 'min_df': 0, 'min_documents': 0, 'n_topics': 0, 'random_state': 0, 'snapshot': {}, 'stop_words': []},
    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

  • Train topic model
  • Portable JSON vocabulary
  • Idf weights
  • Learned components
  • Content identity
  • Fit tf idf
  • Automatic top term names
  • No rule generated labels

History

Public versions

  • v13 downloads

Discover

Similar Objects

Explore all