mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-08 12:24:48 +08:00
Make RAPTOR GMM robust on small reduced clusters (#16632)
This commit is contained in:
@@ -245,7 +245,7 @@ def test_get_optimal_clusters_evaluates_upper_bound_candidate(monkeypatch, rapto
|
||||
evaluated = []
|
||||
|
||||
class RecordingGaussianMixture:
|
||||
def __init__(self, n_components, random_state=None):
|
||||
def __init__(self, n_components, random_state=None, **kwargs):
|
||||
self.n_components = n_components
|
||||
evaluated.append(n_components)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user