{
  "schema": "watkins_species_gate_v2_neural.v1",
  "evaluation_protocol_mode": "both",
  "input_representation": "cached_35d_acoustic_features_passed_through_neural_encoder_rvq_and_causal_transformer",
  "initial_or_loaded_state_hash": {
    "state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
    "encoder_sha256": "8fec57f8bf230675be69e230b31edd331327d4bb657934c387d4000c9d524dc6",
    "causal_transformer_sha256": "a673f2e8866931e6b41bc446c33dd606fd4dab5c29499f2d28eebc54294d3f38",
    "codebooks_sha256": "10b2f59fc77eaf08e2fa70771e7f90e1f5b05435cb4865e1483fd637be05b503",
    "initial_or_loaded_state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
    "weights_modified_since_init_or_load": false
  },
  "frozen_pre_adaptation_evaluation": {
    "cut_random": {
      "mode": "frozen_pre_adaptation",
      "frozen_accuracy": 0.5721,
      "frozen_macro_f1": 0.4979,
      "fold_accuracies": [
        0.5777,
        0.5785,
        0.552,
        0.5749,
        0.5775
      ]
    },
    "recording_heldout": {
      "mode": "frozen_pre_adaptation",
      "frozen_accuracy": 0.3676,
      "frozen_macro_f1": 0.29,
      "fold_accuracies": [
        0.4029,
        0.3467,
        0.3491,
        0.3818,
        0.3551
      ]
    }
  },
  "post_adaptation_state_hash": {
    "state_sha256": "8cb712e367c5c32914cf230e269b066fdb4414ebd297e8c89d723a48350a61f5",
    "encoder_sha256": "8fec57f8bf230675be69e230b31edd331327d4bb657934c387d4000c9d524dc6",
    "causal_transformer_sha256": "a673f2e8866931e6b41bc446c33dd606fd4dab5c29499f2d28eebc54294d3f38",
    "codebooks_sha256": "e9743a5ee7c3d7be9e9be7bc47ed9eceda139425cb770973f7284ea3e8d84f56",
    "initial_or_loaded_state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
    "weights_modified_since_init_or_load": true
  },
  "v1_classical_baseline": {
    "cut_random_accuracy": 0.4909,
    "recording_heldout_accuracy": 0.3168,
    "session_confound_inflation": 0.1741
  },
  "v2_neural_rvq": {
    "cut_random": {
      "fold_isolated_scaling_and_rvq": true,
      "neural_encoder_and_causal_transformer_evaluated": true,
      "v2_accuracy": 0.6298,
      "v2_macro_f1": 0.5675,
      "frozen_pre_adaptation_accuracy": 0.5721,
      "frozen_pre_adaptation_macro_f1": 0.4979,
      "fold_accuracies": [
        0.6419,
        0.6273,
        0.623,
        0.623,
        0.6339
      ],
      "majority_class_baseline": 0.1987,
      "gain_over_v1_percentage_points": 13.89,
      "gain_over_null_percentage_points": 58.61,
      "null_mean": 0.0437,
      "null_sd": 0.0056,
      "z": 105.46,
      "p_value": 0.00498,
      "p_value_estimator": "exact add-one randomization floor (k+1)/(200+1) = 0.00498",
      "beats_null": true
    },
    "recording_heldout": {
      "fold_isolated_scaling_and_rvq": true,
      "neural_encoder_and_causal_transformer_evaluated": true,
      "v2_accuracy": 0.4001,
      "v2_macro_f1": 0.3151,
      "frozen_pre_adaptation_accuracy": 0.3676,
      "frozen_pre_adaptation_macro_f1": 0.29,
      "fold_accuracies": [
        0.4358,
        0.3812,
        0.3483,
        0.4154,
        0.4186
      ],
      "majority_class_baseline": 0.1987,
      "gain_over_v1_percentage_points": 8.33,
      "gain_over_null_percentage_points": 34.83,
      "null_mean": 0.0518,
      "null_sd": 0.0168,
      "z": 20.75,
      "p_value": 0.00498,
      "p_value_estimator": "exact add-one randomization floor (k+1)/(200+1) = 0.00498",
      "beats_null": true,
      "conditional_resplit_stratified_group_kfold_null": {
        "n_resplit_surrogates": 40,
        "mixed_recordings_collapsed_to_single_label": false,
        "resplit_null_mean": 0.0503,
        "resplit_null_sd": 0.0185,
        "resplit_z": 18.86,
        "resplit_p_value": 0.02439
      }
    }
  },
  "pure_single_species_311_recordings_subset": {
    "n_pure_recordings": 311,
    "n_mixed_recordings": 0,
    "n_cuts_on_pure_recordings": 11438,
    "accuracy": 0.3691,
    "macro_f1": 0.2923,
    "null_mean": 0.0405,
    "null_sd": 0.0175,
    "z": 18.78,
    "p_value": 0.00498
  },
  "v2_session_confound": {
    "cut_random_accuracy": 0.6298,
    "recording_heldout_accuracy": 0.4001,
    "inflation_absolute": 0.2297,
    "inflation_percentage_points": 22.97,
    "v2_gain_over_v1_heldout": 0.0833,
    "v2_gain_over_v1_heldout_percentage_points": 8.33,
    "v2_gain_over_v1_cut_random": 0.1389,
    "v2_gain_over_v1_cut_random_percentage_points": 13.89
  },
  "historical_transductive_pre_cv_reference": {
    "cut_random_accuracy": 0.6287,
    "recording_heldout_accuracy": 0.3788,
    "note": "Prior transductive numbers where StandardScaler and RVQ codebooks were fitted on X_base before the 5-fold split; superseded by the fold-isolated inductive results in v2_neural_rvq."
  },
  "rvq_calibration": {
    "calibrated": true,
    "n_frames": 10577,
    "n_codebooks": 4,
    "codebook_size": 128,
    "stage_snr_db": [
      5.72,
      7.402,
      8.643,
      9.735
    ],
    "stage_perplexity": [
      112.04,
      92.07,
      87.43,
      89.05
    ]
  },
  "meta": {
    "n_total_cuts_in_corpus": 15248,
    "n_featurized_cuts_in_npz": 14864,
    "n_total_species_in_corpus": 68,
    "n_named_species_in_parquet_shards": 55,
    "n_evaluated_cuts": 13317,
    "n_evaluated_species": 24,
    "evaluation_inclusion_rule": ">= 60 cuts and >= 4 distinct recordings (24 species, 13,317 cuts, 328 recordings)",
    "n_recordings": 328,
    "single_species_per_recording_count": 311,
    "mixed_species_per_recording_count": 17,
    "single_species_per_recording_fraction": 0.9482,
    "cv_splitter": "StratifiedGroupKFold (5 folds, grouped by recording/tape ID)",
    "recording_heldout_null_method": "composition-preserving group permutation (311 pure single-species recordings permute recording labels; 17 mixed-species recordings apply a random class bijection so mixed composition is preserved) + 40-surrogate conditional StratifiedGroupKFold re-split verification",
    "majority_class_baseline": 0.1987,
    "n_surrogates": 200,
    "claim_tier": "IDENTITY/STRUCTURE only -- species readout, NOT semantic translation."
  },
  "swap_slot_receipt": {
    "schema": "masidyn_bioacoustic_swap.v1",
    "slot_id": "gate4_watkins_species",
    "model_id": "EarthSpeciesProject/esp-aves2-eat-bio",
    "checkpoint_path": null,
    "checkpoint_sha256": null,
    "checkpoint_parameter_audit": {},
    "weight_source": "initialized_unfitted",
    "entry_engine_state_hash": {
      "state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
      "encoder_sha256": "8fec57f8bf230675be69e230b31edd331327d4bb657934c387d4000c9d524dc6",
      "causal_transformer_sha256": "a673f2e8866931e6b41bc446c33dd606fd4dab5c29499f2d28eebc54294d3f38",
      "codebooks_sha256": "10b2f59fc77eaf08e2fa70771e7f90e1f5b05435cb4865e1483fd637be05b503",
      "initial_or_loaded_state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
      "weights_modified_since_init_or_load": false
    },
    "final_engine_state_hash": {
      "state_sha256": "8cb712e367c5c32914cf230e269b066fdb4414ebd297e8c89d723a48350a61f5",
      "encoder_sha256": "8fec57f8bf230675be69e230b31edd331327d4bb657934c387d4000c9d524dc6",
      "causal_transformer_sha256": "a673f2e8866931e6b41bc446c33dd606fd4dab5c29499f2d28eebc54294d3f38",
      "codebooks_sha256": "e9743a5ee7c3d7be9e9be7bc47ed9eceda139425cb770973f7284ea3e8d84f56",
      "initial_or_loaded_state_sha256": "348ffa30beb657b7ace168dd5fefcb647f3f3d261b438375a5f4fb172a178731",
      "weights_modified_since_init_or_load": true
    },
    "weights_modified_during_slot": true,
    "causal_training_summary": {
      "trained": false
    },
    "device_policy": "auto",
    "active_device_in_slot": "cpu",
    "cuda_measurement_status": "measured",
    "min_free_vram_mb_guard": 4096.0,
    "max_vram_fraction_cap": 0.06,
    "in_slot_cuda_allocated_bytes": 0,
    "in_slot_cuda_allocated_mb": 0.0,
    "post_exit_cuda_allocated_bytes": 0,
    "post_exit_cuda_reserved_bytes": 0,
    "zero_residual_vram_verified": true,
    "masidyn_pids_before": [
      61536
    ],
    "masidyn_pids_after": [
      61536
    ],
    "masidyn_server_pids_before": [
      61536
    ],
    "masidyn_server_pids_after": [
      61536
    ],
    "masidyn_ports_before": {
      "11434": false,
      "11435": false,
      "11510": true,
      "11520": true,
      "11530": false,
      "11444": false
    },
    "masidyn_ports_after": {
      "11434": false,
      "11435": false,
      "11510": true,
      "11520": true,
      "11530": false,
      "11444": false
    },
    "masidyn_routing_undisturbed": true,
    "preflight_gpu": {
      "gpu_name": "NVIDIA GeForce RTX 5080 Laptop GPU",
      "total_vram_mb": 16303.0,
      "used_vram_mb": 10001.0,
      "free_vram_mb": 6003.0,
      "gpu_utilization_pct": 0.0
    },
    "post_exit_gpu": {
      "gpu_name": "NVIDIA GeForce RTX 5080 Laptop GPU",
      "total_vram_mb": 16303.0,
      "used_vram_mb": 10001.0,
      "free_vram_mb": 6003.0,
      "gpu_utilization_pct": 0.0
    }
  },
  "elapsed_s": 140.04
}
