MaartenGr / MaartenGr/BERTopic

Have reduce_topics return a new model

Open
#2,371 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.8k
Forks
920
Avg merge
22h 24m
Merged PRs (30d)
5

Description

### Feature request

Can we have `reduce_topics' return a new model instead of modify the existing one in place?

I would like to try a bunch of different topic reductions without re-training the whole model from scratch each time

### Motivation

See above

### Your contribution

See above

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the `reduce_topics` method and reading how it currently changes the model. Determine which model state must be preserved for independent topic reductions. Done means the method returns a separate model while leaving the original usable and unchanged; add or update coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.