{
  "scope": "Hand-set 2D manifold and displaced points; actual normal-only fits. EDE teaching architecture uses feature-MSE +50*contextual-L1 +latent-MSE, latent-MSE score like the retrieved official code, not exact paper equations/image replication.",
  "versions": {
    "python": "3.10.12",
    "numpy": "1.26.3",
    "sklearn": "1.5.1",
    "torch": "2.3.1+cu118"
  },
  "device": "cpu",
  "dtype": "float64 for networks",
  "seed": 7,
  "sizes": {
    "normal_training": 160,
    "normal_calibration": 40,
    "normal_test": 40,
    "abnormal_test": 20
  },
  "train_only_mean": [
    1.2490009027033011e-17,
    -1.9428902930940238e-17
  ],
  "train_only_population_std": [
    0.5773389927070577,
    0.3850709996470553
  ],
  "training_record": {
    "AE_initial_training_MSE": 1.2894752231996183,
    "AE_final_training_MSE": 0.005471657293515883,
    "EDE_initial_training_losses": {
      "feature_MSE": 0.034226935054853344,
      "contextual_L1_mean": 0.9775198783170002,
      "latent_MSE": 0.17610195194084466,
      "weighted_generator_objective": 49.08632280284571
    },
    "EDE_final_training_losses": {
      "feature_MSE": 0.0009578432416630451,
      "contextual_L1_mean": 0.059702892789485,
      "latent_MSE": 0.012496982327292117,
      "weighted_generator_objective": 2.9985994650432053
    },
    "AE_updates": 500,
    "generator_updates": 500,
    "discriminator_updates": 500,
    "parameters": {
      "autoencoder": 67,
      "EDE_generator": 100,
      "discriminator": 65
    }
  },
  "test_labels": [
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1
  ],
  "results": [
    {
      "model": "isolation_forest",
      "normal_calibration_scores": [
        0.6294955651408141,
        0.552922737216399,
        0.5042677833206591,
        0.4790044543868899,
        0.49501931977655644,
        0.5118423416446308,
        0.488811202355178,
        0.4748618576333202,
        0.47927373980377214,
        0.495481428848668,
        0.4845332632701252,
        0.4825745278859997,
        0.49474922058171356,
        0.4938995080942031,
        0.4924618418058075,
        0.49811836213413735,
        0.5003185363304908,
        0.5010199567362362,
        0.5018689193098239,
        0.5113602934454086,
        0.5157410642151035,
        0.5079702782982164,
        0.4925873139784487,
        0.487066389287257,
        0.49143668287933123,
        0.480038124203574,
        0.47659675072165425,
        0.4782816122433988,
        0.48166693815302175,
        0.499283049055522,
        0.4999433125651978,
        0.48897471299666223,
        0.4863645564686764,
        0.48391515029632054,
        0.5231267142280984,
        0.4994413570805348,
        0.5056684819144476,
        0.5259857854361691,
        0.5455492279090494,
        0.5968915114030475
      ],
      "threshold": 0.5968915114030475,
      "threshold_rule": "np.quantile(normal_calibration, .95, method='higher'); flag score > threshold",
      "normal_calibration_flagged": 1,
      "test_scores": [
        0.6038688879252325,
        0.5363318447419851,
        0.496825168317476,
        0.4751492593991619,
        0.494749666932412,
        0.5140909536937274,
        0.4882389935735461,
        0.4801959689316213,
        0.4848551745575375,
        0.4865591027755051,
        0.4846162544267097,
        0.4888592466560881,
        0.49440369164809905,
        0.48671306403487324,
        0.4992194684375216,
        0.5030092660976141,
        0.5165912224287108,
        0.5098022713850363,
        0.5108749215356309,
        0.5133757177965479,
        0.5093760452101316,
        0.4982062801235975,
        0.48582958362361284,
        0.4872791604085995,
        0.48379243591714616,
        0.482069582948656,
        0.47504794220504815,
        0.4807268114106945,
        0.49526269420993096,
        0.49647725687707106,
        0.4995511012763332,
        0.48562943749161924,
        0.4727571107845236,
        0.48834491496780225,
        0.5317700421312505,
        0.5021453104751686,
        0.5179485052152791,
        0.5251815462861692,
        0.5548806822544595,
        0.6201776173413807,
        0.6005314883483439,
        0.56954737728322,
        0.6031512610871983,
        0.5669130795038776,
        0.6149192842132324,
        0.5792961275241528,
        0.6167372918599211,
        0.6038489732853222,
        0.6313204331553646,
        0.6209216767292199,
        0.6022555535809209,
        0.6207814129062178,
        0.5909398275316572,
        0.6000570407942939,
        0.583376177833816,
        0.59528955119376,
        0.5736195494459632,
        0.6168356928323089,
        0.586006420363453,
        0.6266595729411585
      ],
      "test_flagged": [
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        0,
        1,
        0,
        1,
        0,
        1,
        1,
        1,
        1,
        1,
        1,
        0,
        1,
        0,
        0,
        0,
        1,
        0,
        1
      ],
      "TP": 12,
      "FP": 2,
      "FN": 8,
      "TN": 38,
      "TPR": 0.6,
      "FPR": 0.05,
      "precision": 0.8571428571428571
    },
    {
      "model": "autoencoder_reconstruction_MSE",
      "normal_calibration_scores": [
        0.014731592785936179,
        0.009723559388568056,
        0.0072932070075763375,
        0.006930448691621819,
        0.008220812783133361,
        0.0038665050197198496,
        0.0022499052140972455,
        0.001387161330745735,
        0.001267177544756558,
        0.002012714570132596,
        0.015293079758984779,
        0.00954923322769251,
        0.005155076089252895,
        0.0025003700059267604,
        0.0019198698846224797,
        0.012074031225045117,
        0.005376410453905598,
        0.001522198097430435,
        0.0005675042721529145,
        0.002516625365166938,
        0.003318601503120822,
        0.0003916764644009935,
        0.0004456485205770034,
        0.0033620324085625077,
        0.009026301632086899,
        0.0015218575884504554,
        0.001790516020199941,
        0.004174737043110515,
        0.008398052804938416,
        0.01415872587480026,
        0.0021159927681312987,
        0.0015886518701327273,
        0.0020622048385807346,
        0.003383019234188149,
        0.005472831579772442,
        0.005201842123168587,
        0.0036515998820869644,
        0.0033716057368669092,
        0.004560397677023935,
        0.007498311272734878
      ],
      "threshold": 0.014731592785936179,
      "threshold_rule": "np.quantile(normal_calibration, .95, method='higher'); flag score > threshold",
      "normal_calibration_flagged": 1,
      "test_scores": [
        0.010822799366450132,
        0.006665591968339664,
        0.004854929338642529,
        0.0049082834076710005,
        0.006446783566772667,
        0.005017990923396782,
        0.003160130058996495,
        0.001990402746777685,
        0.001563459214872531,
        0.002057582609857883,
        0.015746776187454726,
        0.009626914901815786,
        0.005026998518776306,
        0.002329128361143514,
        0.0018424243489378925,
        0.011118838777209261,
        0.00466623925726824,
        0.0011322043403323946,
        0.0005382886990148422,
        0.002870762787385094,
        0.0027798957753718515,
        0.0002836452101568071,
        0.0007237986704745397,
        0.003970206480847699,
        0.009889431846917958,
        0.0016406282375971137,
        0.0020185964427094495,
        0.0043834617325465425,
        0.008448917296611765,
        0.013910703666375191,
        0.00205033292946472,
        0.0013017482886921775,
        0.0015055763747536311,
        0.0025447245743156635,
        0.004383669786634961,
        0.0066475154709482,
        0.005258281491721347,
        0.005232316273260497,
        0.006792001224336167,
        0.010241120656060814,
        1.7888003559964802,
        1.9504205770442617,
        1.617304287258736,
        1.853959175196819,
        1.494274863465151,
        2.133744495085036,
        1.1603938992911176,
        1.773425995543055,
        1.2789404088055651,
        1.3810531386446954,
        1.2077948629845108,
        1.4230646184920561,
        1.5537646264663294,
        1.2183289251121565,
        1.931765670536639,
        1.505911183563994,
        1.7433240848168716,
        1.5722304821718251,
        1.88096491815925,
        1.7185081970522915
      ],
      "test_flagged": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1
      ],
      "TP": 20,
      "FP": 1,
      "FN": 0,
      "TN": 39,
      "TPR": 1.0,
      "FPR": 0.025,
      "precision": 0.9523809523809523
    },
    {
      "model": "EDE_latent_MSE",
      "normal_calibration_scores": [
        0.07222508283317475,
        0.0496195235039066,
        0.031122321674139326,
        0.016977197712917166,
        0.007240255653567375,
        0.0029803372808334064,
        0.00016666811937629024,
        0.0006462335191231884,
        0.0035302641634761215,
        0.007760634541103784,
        0.010970883174773132,
        0.014905576592239534,
        0.017443373990513454,
        0.018028653878146117,
        0.01652389347902977,
        0.014447502590119012,
        0.010444613099405168,
        0.006090993061827229,
        0.0024123325234864284,
        0.00029576942377714085,
        1.4587106819397636e-05,
        0.0012776974768744706,
        0.004249627136541987,
        0.008155966281090629,
        0.012024468303271807,
        0.013962419631031493,
        0.015971533174532947,
        0.01622841564492037,
        0.014726714573127056,
        0.011815548819675652,
        0.009669253479840094,
        0.00584628128650832,
        0.0024672874035039033,
        0.0003479136255971729,
        0.00025438287634994323,
        0.0014074806555737,
        0.00587746646895519,
        0.013936997422402465,
        0.026009314886113532,
        0.04242241181367479
      ],
      "threshold": 0.0496195235039066,
      "threshold_rule": "np.quantile(normal_calibration, .95, method='higher'); flag score > threshold",
      "normal_calibration_flagged": 1,
      "test_scores": [
        0.061201282998043414,
        0.040460104898189415,
        0.02396705832235225,
        0.011883987023757255,
        0.004159920456684803,
        0.0011940989561038714,
        3.192005662948011e-05,
        0.0017673402418797363,
        0.005421283285755724,
        0.009892727961029055,
        0.01295530745904753,
        0.01631857728837941,
        0.017980702216865367,
        0.017574604519270245,
        0.015178992276114803,
        0.012677280582922393,
        0.008390929757395752,
        0.004232763063445231,
        0.0011928191692856468,
        3.862869051943621e-06,
        0.0003541740895695876,
        0.0024807032899229185,
        0.005995812375937329,
        0.010004309152665352,
        0.013534533311212429,
        0.015089502918010218,
        0.016316886266967853,
        0.015742616635128916,
        0.01353198945520448,
        0.010167062229758954,
        0.007912155163669082,
        0.00419124324906017,
        0.0012908205587774007,
        1.0151838830040854e-05,
        0.0010800735080519252,
        0.0030372637494260695,
        0.009089654959191411,
        0.018938203394604693,
        0.03296226946411301,
        0.05145049460541518,
        0.0029434357270609547,
        0.03210823451774279,
        0.005630488833022231,
        0.00018636586437232293,
        0.01803342709929319,
        0.010438283002502588,
        0.009181151334712593,
        0.017828228857597078,
        0.0005040300074205424,
        0.0066309327735910575,
        0.012022762573859242,
        0.0002173952124638393,
        0.014306012080814083,
        0.010745927451127566,
        0.001773432589547347,
        0.016171111346939507,
        0.0054744282861777524,
        0.006452567477846529,
        0.051348235523532,
        0.0005031744042554256
      ],
      "test_flagged": [
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        1,
        0
      ],
      "TP": 1,
      "FP": 2,
      "FN": 19,
      "TN": 38,
      "TPR": 0.05,
      "FPR": 0.05,
      "precision": 0.3333333333333333
    }
  ],
  "hypothetical_base_rate_example_not_model_measurement": {
    "assumed_TPR": 0.9,
    "assumed_FPR": 0.05,
    "assumed_prevalence": 0.01,
    "precision": 0.15384615384615385
  },
  "limits": [
    "No abnormal labels or final test scores choose thresholds or training settings.",
    "The held-out normal quantile is empirical, not a probability or coverage guarantee.",
    "Deterministic synthetic sets are not iid external validation or a blind benchmark.",
    "Different raw score scales cannot be compared as probabilities.",
    "IF predict/auto offset is not used: the cutoff is calibrated on negative score_samples.",
    "EDE is a small fully connected concept model, not GANomaly image-benchmark reproduction.",
    "Paper training L2/inference L1 and retrieved software's MSE differ; no test-set minmax used.",
    "One seed and fixed budgets do not establish convergence or general model ranking.",
    "The artificial test anomaly fraction 20/60 is not a real operational base rate."
  ]
}
