Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/cluster_estimation/cluster_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create(
"""
Data requirement conditions for estimation model to run.
"""
# These parameters must be positive
# These parameters must be greater than or equal to 0
if min_new_points_to_run < 0 or random_state < 0:
return False, None

Expand All @@ -90,7 +90,7 @@ def create(
return False, None

# This must be greater than 0
if max_num_components < 0:
if max_num_components <= 0:
return False, None

return True, ClusterEstimation(
Expand Down
Loading