Skip to content

Commit 68cdf4b

Browse files
committed
reverted encoder setting removal in commit 4cf3152
1 parent 8d9eb39 commit 68cdf4b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyvisim/encoders/_base_encoder.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,14 @@ def similarity_func(
282282
dummy1, dummy2 = np.random.rand(10, 10), np.random.rand(10, 10)
283283
self._similarity_func = check_desired_output(func, dummy1, dummy2)
284284

285+
@property
286+
def clustering_model(self) -> KMeans | GaussianMixture | None:
287+
return self._clustering_model
288+
289+
@clustering_model.setter
290+
def clustering_model(self, clustering_model: KMeans | GaussianMixture) -> None:
291+
self._set_clustering_model(clustering_model)
292+
285293
def _set_clustering_model(self, clustering_model: KMeans | GaussianMixture) -> None:
286294
"""
287295
Validates the given clustering model against the current PCA or

0 commit comments

Comments
 (0)