The Base Dimensionality Reduction class. You can use this to skip over the dimensionality reduction step in BERTopic. Examples: This will skip over the reduction step in BERTopic: ```python from bertopic import BERTopic from bertopic.dimensionality import BaseDimensionalit
| 2 | |
| 3 | |
| 4 | class BaseDimensionalityReduction: |
| 5 | """The Base Dimensionality Reduction class. |
| 6 | |
| 7 | You can use this to skip over the dimensionality reduction step in BERTopic. |
| 8 | |
| 9 | Examples: |
| 10 | This will skip over the reduction step in BERTopic: |
| 11 | |
| 12 | ```python |
| 13 | from bertopic import BERTopic |
| 14 | from bertopic.dimensionality import BaseDimensionalityReduction |
| 15 | |
| 16 | empty_reduction_model = BaseDimensionalityReduction() |
| 17 | |
| 18 | topic_model = BERTopic(umap_model=empty_reduction_model) |
| 19 | ``` |
| 20 | """ |
| 21 | |
| 22 | def fit(self, X: np.ndarray = None, y: np.ndarray = None): |
| 23 | return self |
| 24 | |
| 25 | def transform(self, X: np.ndarray) -> np.ndarray: |
| 26 | return X |
no outgoing calls