fix(weight): disable GBM at call site, purge K2-L1 day-138 rows

- use_gbm=True (f99fec9) activated step-function joblib: predicted
  weight constant per cycle-day band (215.6g days 9-11 across all
  cameras regardless of area). Revert to False per growth_model.py
  TODO: retrain with real morphometry + features_dict before re-enable.
- Delete 5 batch_runs rows location=K2-L1 date=2026-10-07 cycle_day=138
  (one-off manual run with stale cycle_start 2026-05-22; Gompertz
  baseline 4649g polluted trend). Backup: db/*.bak-before-k2purge-*.
This commit is contained in:
andrew committed 2026-10-12 09:42:34 +07:00
1 parent eeb1a3a96d
commit c09a76db27
3 files changed
+4 -2

No files matched your search

Binary file not shown.
+1 -1
View File
@@ -210,7 +210,7 @@ def build_cage_day_features_and_predictions(
median_bbox_area_cm2=median_area,
mean_bbox_area_cm2=mean_area,
doc_weight_g=doc_weight_g,
use_gbm=True,
use_gbm=False,
)
pred_record = {
+3 -1
View File
@@ -176,7 +176,9 @@ class TestWeightEstimation(unittest.TestCase):
fused_pred = next(r for r in predictions_list if r["camera_id"] == "FUSED")
self.assertEqual(fused_pred["dominant_camera"], "CC2")
self.assertTrue(fused_pred["gbm_model_used"])
# GBM disabled at call site: model is a step function of cycle_day only
# until retrained with real morphometry (growth_model.py:99-104 TODO).
self.assertFalse(fused_pred["gbm_model_used"])
self.assertGreater(fused_pred["predicted_weight_g"], 1000.0)
def test_storage_parquet_csv_and_json(self):