{
  "model": "haplograph/genome/evo2_ancestry_gnn.pt",
  "graph_dir": "haplograph/genome",
  "split": {
    "graph_built_on": "all individuals (no train_individuals.txt)",
    "train_source": "https://data.haploblocks.org/BH_26/splits/half_A.txt",
    "test_source": "https://data.haploblocks.org/BH_26/splits/half_B.txt",
    "train_in_file": 1252,
    "test_in_file": 1251,
    "train": 1252,
    "test": 1251,
    "graph_individuals_in_neither_set": 45
  },
  "tasks": [
    {
      "name": "model_info",
      "params": {},
      "status": "ok",
      "summary": {
        "model_file": "haplograph/genome/evo2_ancestry_gnn.pt",
        "kind": "4a embeddings",
        "objective": "ancestry",
        "graph_method": "gnn",
        "evo2_model": "evo2_7b_base",
        "layer": "blocks.28.mlp.l3",
        "trained_chromosomes": "chr1,chr2,chr3,chr4,chr5,chr6,chr7,chr8,chr9,chr10,chr11,chr12,chr13,chr14,chr15,chr16,chr17,chr18,chr19,chr20,chr21,chr22",
        "fine_tuned_evo2_params": 0,
        "stored_val_loss_before": 1.8301,
        "stored_val_accuracy_before": 0.1133,
        "stored_val_loss_after": 0.0311,
        "stored_val_accuracy_after": 0.9933,
        "test_individuals_seen_in_training": 1136
      },
      "notes": [
        "WARNING: 1,136 of 1,251 test individuals were NOT held out by the model (e.g. ['HG00099', 'HG00105', 'HG00106']), so they were in its training data. Retrain step 4 on the train half only, so the test half stays unseen"
      ],
      "files": [],
      "seconds": 7.8
    },
    {
      "name": "cluster_consistency",
      "params": {
        "permutations": 50
      },
      "status": "ok",
      "summary": {
        "regions": 38235,
        "train_individuals": 1252,
        "test_individuals": 1251,
        "mean_clusters_per_region_train": 174.272,
        "mean_clusters_per_region_test": 173.655,
        "mean_clusters_per_region_test_expected": 173.965,
        "regions_outside_95pct_interval": "6.884% (expected ~5%)",
        "regions_tvd_p_below_alpha": "2.859% (expected ~5%)",
        "regions_chi2_q_below_alpha": 0,
        "test_only_clusters": 4187538,
        "regions_with_test_only_clusters": 35112,
        "verdict": "consistent"
      },
      "notes": [
        "chromosomes with most regions outside the interval: chr20 8.4%, chr6 7.4%, chr22 7.3%",
        "4,187,538 clusters are carried in test but not in train: the model never saw them, so predictions involving them are extrapolation",
        "chi-square p-values treat carrier counts as independent (an individual can carry 2 clusters of a region); the permutation-based columns do not need that assumption"
      ],
      "files": [
        "haplograph/genome/validation_evo2_ancestry_gnn/cluster_consistency_regions.csv.gz"
      ],
      "seconds": 10.2
    }
  ]
}