From b2f29fb5d6c925e719c436bde80a2ac0bfb6a7f6 Mon Sep 17 00:00:00 2001 From: Meyers-Im Date: Mon, 15 Jul 2024 14:32:06 -0700 Subject: [PATCH] threshold adjust --- solardatatools/algorithms/capacity_change.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solardatatools/algorithms/capacity_change.py b/solardatatools/algorithms/capacity_change.py index 96693536..b8370ce9 100644 --- a/solardatatools/algorithms/capacity_change.py +++ b/solardatatools/algorithms/capacity_change.py @@ -133,7 +133,7 @@ def optimize_weight(self, metric, filter, w1s, solver=None): # 2) Forcing the component to turn off (high weight) results in worse holdout error than including the component # with no regularization (low weight). holdout_metric = (np.max(test_r) - np.min(test_r)) / np.average(test_r) - if holdout_metric > 0.35 and test_r[-1] > test_r[0]: + if holdout_metric > 0.2 and test_r[-1] > test_r[0]: changes_detected = True else: changes_detected = False