duj626's picture
Release source-bound Tree-HSI spatial-validation records
1cfbbd6 verified
Raw History Blame Contribute Delete
8.9 kB
{
"phase1": {
"unit": "per-class connected region; two folds",
"train_seed_pixels": 170,
"evaluated_validation_pixels": 690829,
"source_code": "src/pipeline.py; src/tree_experiment.py",
"note": "Seed labels are included in both training folds. Phase 1 per-variant aggregate reports exist; separate SAM fold metrics are not retained."
},
"phase2": {
"frozen_protocol": {
"protocol_version": 1,
"frozen_on": "2026-09-17",
"trigger": "Run only after the official Kaggle file inventory changes on or after 2026-09-21.",
"legal_data_boundary": {
"trainable": [
"organizer-provided labeled Phase 2 pixels",
"organizer-provided unlabeled Phase 2 pixels for aggregate drift diagnostics only"
],
"requires_separate_license_and_disclosure_audit": [
"public pretrained weights",
"public external datasets"
],
"forbidden": [
"test labels",
"manual or fabricated test labels",
"private or undeclared external data",
"leaderboard-selected thresholds or class mappings"
]
},
"contract_gate": {
"required_status": "READY_FOR_PHASE2_VALIDATION",
"requirements": [
"official manifest delta exists",
"every local official file matches its declared size and has a SHA-256 receipt",
"band count is uniquely inferred",
"the union of training class IDs is contiguous and every per-file class subset is recorded",
"sample submission ID blocks are contiguous, zero based, and fully hashed",
"old Phase 1 encoder and head remain blocked unless the organizer supplies an explicit semantic class mapping"
]
},
"validation": {
"unit": "spatial block, never random pixel",
"folds": 4,
"block_construction": "deterministic rectangular scene tiles; keep each tile wholly inside one fold; balance labeled class mass greedily",
"fit_scope": "all preprocessing, PCA, feature scaling, and class balancing are fit inside each training fold",
"reports": [
"OOF overall accuracy",
"OOF average per-class accuracy",
"per-class accuracy",
"per-fold OA and AA",
"worst-block OA and AA",
"prediction coverage and class collapse checks"
],
"phase1_scores_are_not_comparable": true
},
"reference": {
"name": "phase2_retrained_spatial_mean_lightgbm",
"definition": "Retrain the frozen 3x3 spatial-mean LightGBM recipe from scratch on Phase 2 labels and the same Phase 2 folds.",
"purpose": "Same-data reference only; do not reuse Phase 1 weights or old 0.68814 OOF as a threshold."
},
"first_candidate": {
"name": "pca_local_texture_lightgbm",
"single_scientific_change": "replace raw 98-band tree input with fold-fit spectral PCA plus local spatial mean, local spatial standard deviation, and first spectral differences",
"pca_components": 24,
"spatial_radius": 1,
"classifier": "class-balanced LightGBM with the reference tree budget and fixed seed",
"reason": "Tests spectral compression and local texture jointly while keeping the classifier, folds, budget, and label policy fixed."
},
"go_no_go": {
"offline_go": [
"candidate OA improves by at least 0.03 over the Phase 2 retrained reference",
"candidate AA improves by at least 0.03 over the Phase 2 retrained reference",
"worst spatial block OA and AA each decline by no more than 0.02",
"schema, hash, coverage, leakage, runtime, and class-collapse gates pass"
],
"offline_stop": "If any offline GO condition fails, do not run full test inference and do not submit.",
"public_stop": "First legal Phase 2 public score below 0.15 seals the line.",
"public_followup": "A score at or above 0.20 permits exactly one independent spectral-spatial follow-up; 0.15 to 0.20 keeps the baseline but permits no expansion."
},
"submission_budget": {
"before_phase2_release": 0,
"after_release_without_offline_go": 0,
"after_offline_go": 1,
"maximum_followups": 1
}
},
"before_metrics_addendum": {
"addendum_version": 1,
"frozen_before_metrics_on": "2026-09-24",
"parent_protocol": "phase2_protocol.json version 1",
"reason": "The released Stage 2 label map contains exactly 170 labels, ten per class. The Phase 1 LightGBM min_child_samples=40 cannot form meaningful leaves on a four-fold split, so a symmetric low-shot parameter correction is required before either arm can be evaluated.",
"observed_contract": {
"cube_shape": [
4205,
6048,
98
],
"labels": 170,
"labels_per_class": 10,
"classes": 17,
"validation_tile_size": 128,
"validation_tile_groups": 126,
"fold_sizes": [
44,
43,
41,
42
],
"every_fold_contains_every_class": true
},
"validation": {
"splitter": "StratifiedGroupKFold",
"folds": 4,
"shuffle": true,
"seed": 20260909,
"group": "floor(row / 128), floor(column / 128)",
"invariants": [
"a spatial tile never crosses folds",
"every training and validation fold contains all 17 classes",
"PCA is fit on the training portion of each fold only",
"no Phase 1 labels, test pseudo-labels, leaderboard feedback, or external data enter this first experiment"
]
},
"shared_classifier": {
"type": "LightGBM multiclass",
"n_estimators": 160,
"learning_rate": 0.03,
"num_leaves": 7,
"max_depth": 3,
"min_child_samples": 2,
"max_bin": 63,
"colsample_bytree": 0.8,
"reg_alpha": 0.5,
"reg_lambda": 2.0,
"class_weight": "balanced",
"seed": 20260909,
"applies_identically_to_reference_and_candidate": true
},
"unchanged_decisions": {
"reference": "3x3 local-mean spectrum",
"candidate": "fold-fit 24-component spectral PCA plus 3x3 mean, standard deviation, and first spectral differences",
"offline_thresholds": "unchanged from parent protocol",
"submission_budget": "unchanged from parent protocol"
},
"explicitly_rejected_for_first_pass": [
"random-pixel cross-validation",
"reusing a Phase 1 model or encoder",
"mixing the 690829 Phase 1 validation labels into Stage 2 training",
"self-training or test-scene pseudo-labeling",
"deep neural training on 170 labels",
"loosening the advancement threshold after seeing scores"
]
},
"saved_validation": {
"splitter": "StratifiedGroupKFold",
"folds": 4,
"tile_size": 128,
"tile_groups": 126,
"fold_sizes": [
44,
43,
41,
42
],
"fold_class_counts": [
[
3,
2,
3,
2,
3,
3,
3,
3,
3,
2,
3,
2,
4,
2,
2,
2,
2
],
[
3,
2,
2,
3,
2,
2,
3,
2,
3,
4,
2,
3,
2,
2,
3,
3,
2
],
[
2,
2,
2,
3,
3,
2,
2,
3,
2,
2,
2,
2,
3,
4,
2,
2,
3
],
[
2,
4,
3,
2,
2,
3,
2,
2,
2,
2,
3,
3,
1,
2,
3,
3,
3
]
],
"tile_group_integrity": true,
"class_coverage_integrity": true
},
"saved_advancement_gate": {
"checks": {
"oa_delta_at_least_0_03": true,
"aa_delta_at_least_0_03": true,
"worst_fold_oa_decline_at_most_0_02": true,
"worst_fold_aa_decline_at_most_0_02": true,
"no_oof_class_collapse": true
},
"offline_go": true,
"decision": "MAY_RUN_ONE_FULL_INFERENCE"
},
"saved_terminal_gate": {
"rule": "public score below 0.15 seals the line",
"triggered": true,
"decision": "SEALED_NO_FOLLOWUP_SUBMISSION",
"reason": "The 0.06404 public score is far below the preregistered 0.15 floor, showing that the 170-point spatial CV did not estimate cross-scene generalization."
}
}
}