Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit 8b05c50

Browse files
authored
min_activation_threshold >= max_num_components (#240)
1 parent 8a3160f commit 8b05c50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cluster_estimation/cluster_estimation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create(
6969
7070
PARAMETERS:
7171
min_activation_threshold: int
72-
Minimum total data points before model runs. Must be at least 1.
72+
Minimum total data points before model runs. Must be at least max_num_components.
7373
7474
min_new_points_to_run: int
7575
Minimum number of new data points that must be collected before running model. Must be at least 0.
@@ -85,7 +85,7 @@ def create(
8585
8686
RETURNS: The ClusterEstimation object if all conditions pass, otherwise False, None
8787
"""
88-
if min_activation_threshold < 1:
88+
if min_activation_threshold < max_num_components:
8989
return False, None
9090

9191
if min_new_points_to_run < 0:

0 commit comments

Comments
 (0)