|
41 | 41 | build_checkpoint_signature, |
42 | 42 | checkpoint_signature_mismatches, |
43 | 43 | ) |
44 | | -from policyengine_us_data.calibration.calibration_utils import ( |
45 | | - create_target_groups, |
46 | | -) |
47 | 44 | from policyengine_us_data.pipeline_metadata import pipeline_node |
48 | 45 | from policyengine_us_data.stage_contracts.calibration_package import ( |
49 | 46 | CalibrationPackageParameters, |
@@ -1363,7 +1360,9 @@ def run_calibration( |
1363 | 1360 |
|
1364 | 1361 | initial_weights = package.get("initial_weights") |
1365 | 1362 | targets = targets_df["value"].values |
1366 | | - target_groups, _ = create_target_groups(targets_df) |
| 1363 | + # Temporarily disable grouped target loss until target precedence |
| 1364 | + # and tolerance handling can make grouped fitting safe. |
| 1365 | + target_groups = None |
1367 | 1366 | row_sums = np.array(X_sparse.sum(axis=1)).flatten() |
1368 | 1367 | pkg_achievable = row_sums > 0 |
1369 | 1368 | weights = fit_l0_weights( |
@@ -1704,7 +1703,9 @@ def run_calibration( |
1704 | 1703 |
|
1705 | 1704 | # Step 7: L0 calibration |
1706 | 1705 | targets = targets_df["value"].values |
1707 | | - target_groups, _ = create_target_groups(targets_df) |
| 1706 | + # Temporarily disable grouped target loss until target precedence |
| 1707 | + # and tolerance handling can make grouped fitting safe. |
| 1708 | + target_groups = None |
1708 | 1709 |
|
1709 | 1710 | row_sums = np.array(X_sparse.sum(axis=1)).flatten() |
1710 | 1711 | achievable = row_sums > 0 |
|
0 commit comments