{
  "environment": {
    "python": "3.12.9",
    "torch": "2.13.0+cpu",
    "matplotlib": "3.11.1",
    "device": "cpu",
    "threads": 1,
    "dtype": "float64",
    "font": "Microsoft YaHei"
  },
  "seed": 7,
  "figures": [
    "linear_regression",
    "logistic_regression",
    "nearest_neighbors",
    "naive_bayes_counts",
    "decision_tree_split",
    "ensemble_regression",
    "svm_margin",
    "kernel_features",
    "kmeans_groups",
    "pca_projection",
    "kde_bandwidth",
    "confusion_matrix"
  ],
  "checks": {
    "least_squares_exact": [
      1.9999999999999996,
      1.0000000000000002
    ],
    "logistic_loss_and_labels": {
      "initial": 0.6931471805599453,
      "final": 0.07037305510384259,
      "probabilities": [
        0.003242346724717495,
        0.05395676723069317,
        0.9460432327693068,
        0.9967576532752825
      ]
    },
    "knn_manual_majority": 0,
    "naive_bayes_manual_posterior": [
      [
        0.8,
        0.20000000000000007
      ]
    ],
    "tree_manual_split": {
      "threshold": 3.5,
      "parent_gini": 0.5
    },
    "boosting_training_losses": [
      2.0539012062158633,
      1.7611631841856876,
      1.5681167840892278,
      1.367739392435742,
      1.2164044831717087,
      1.075925831428019,
      0.968727809875619,
      0.8646561439327366,
      0.777271150672763,
      0.7025824993195962,
      0.6390087398745491,
      0.5746000479301467,
      0.5251617971029383,
      0.47606096774000084,
      0.43630133659157083,
      0.4019691575122305,
      0.3678651807649108,
      0.3389504638845429,
      0.31519017851304765
    ],
    "svm_separable_scores": [
      1.5007503751875908,
      1.0005002501250606,
      1.5007503751875908,
      1.0005002501250606,
      1.5007503751875908,
      1.5007503751875908
    ],
    "polynomial_kernel_identity": true,
    "kmeans_nonincreasing_objective": [
      9.64700204773158,
      9.64700204773158
    ],
    "kmeans_manual_centers": [
      1.0,
      9.0
    ],
    "pca_rank_one_reconstruction": 2.220446049250313e-16,
    "kde_density_integral": 1.0000000000000002,
    "confusion_matrix_manual": [
      [
        4,
        1
      ],
      [
        1,
        2
      ]
    ]
  },
  "wine": {
    "dataset": "scikit-learn bundled Wine",
    "samples": 178,
    "features": 13,
    "sklearn": "1.9.0",
    "seed": 7,
    "train_indices": [
      37,
      17,
      54,
      25,
      1,
      20,
      44,
      38,
      15,
      5,
      9,
      18,
      16,
      10,
      12,
      49,
      42,
      27,
      13,
      57,
      26,
      21,
      35,
      50,
      4,
      39,
      52,
      23,
      34,
      0,
      33,
      43,
      22,
      7,
      3,
      93,
      62,
      107,
      101,
      99,
      72,
      70,
      126,
      92,
      123,
      66,
      63,
      69,
      82,
      120,
      97,
      74,
      98,
      60,
      122,
      65,
      128,
      118,
      83,
      81,
      113,
      91,
      95,
      100,
      68,
      103,
      109,
      85,
      61,
      127,
      89,
      112,
      88,
      90,
      115,
      75,
      117,
      166,
      130,
      160,
      157,
      156,
      144,
      133,
      175,
      177,
      136,
      162,
      139,
      173,
      158,
      172,
      147,
      161,
      135,
      174,
      148,
      164,
      142,
      132,
      137,
      143,
      152,
      171,
      145
    ],
    "validation_indices": [
      32,
      58,
      36,
      29,
      28,
      8,
      46,
      48,
      45,
      41,
      24,
      31,
      116,
      129,
      119,
      124,
      94,
      121,
      105,
      67,
      77,
      102,
      64,
      114,
      125,
      84,
      150,
      153,
      134,
      169,
      131,
      138,
      155,
      159,
      141,
      149
    ],
    "test_indices": [
      40,
      47,
      51,
      53,
      30,
      6,
      56,
      2,
      14,
      55,
      11,
      19,
      86,
      108,
      96,
      110,
      59,
      80,
      73,
      71,
      76,
      106,
      111,
      87,
      79,
      104,
      78,
      170,
      146,
      176,
      167,
      168,
      151,
      154,
      163,
      165,
      140
    ],
    "validation_accuracy_by_k": {
      "1": 0.9722222222222222,
      "3": 0.9444444444444444,
      "5": 0.9722222222222222,
      "9": 0.9722222222222222
    },
    "chosen_k": 1,
    "test_accuracy": 0.918918918918919,
    "test_macro_f1": 0.9214489214489214,
    "test_confusion_matrix": [
      [
        12,
        0,
        0
      ],
      [
        2,
        12,
        1
      ],
      [
        0,
        0,
        10
      ]
    ],
    "majority_baseline_accuracy": 0.40540540540540543
  },
  "elapsed_seconds": 4.431219999998575
}