diff --git a/df-aggregator.py b/df-aggregator.py index 731c5ce..c5dde67 100755 --- a/df-aggregator.py +++ b/df-aggregator.py @@ -307,12 +307,13 @@ def process_data(database_name, epsilon, min_samp): n_points = len(X) if min_samp == "auto": - min_samp = max(3, round(0.05 * n_points, 0)) - elif min_samp.isnumeric(): - min_samp = int(min_samp) - else: + min_samp = round(0.05 * n_points) + elif not min_samp.isnumeric(): break + min_samp = max(3, min_samp) + min_samp = int(min_samp) + if epsilon == "auto": epsilon = autoeps_calc(X) print(f"min_samp: {min_samp}, eps: {epsilon}")