train_nmf_topics
Apply Non-negative Matrix Factorization to discover coherent topics from documents, returning top words and document assignments.
Instructions
Train NMF (Non-negative Matrix Factorization) topic model on documents. Often produces more coherent topics than LDA using matrix factorization. Returns topics with top words and document assignments.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "train_nmf_topics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num_topics | No | Number of topics to discover (default: 10) | |
| max_iter | No | Maximum iterations (default: 200) | |
| random_state | No | Random seed for reproducibility (default: 42) |