Skip to content

Commit

Permalink
threshold adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeyers committed Jul 15, 2024
1 parent e8e56ad commit b2f29fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solardatatools/algorithms/capacity_change.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2f29fb

Please sign in to comment.