{
  "scope": "Hand-set implicit train interactions and held-out relevance; full finite candidate ranking, no sampled evaluation negatives or online benefit claim.",
  "versions": {
    "python": "3.10.12",
    "numpy": "1.26.3"
  },
  "settings": {
    "users": 4,
    "items": 6,
    "dimension": 2,
    "seed": 7,
    "updates": 2000,
    "learning_rate": 0.08,
    "regularization": 0.02,
    "top_k": 2,
    "parameter_count": 26,
    "objective": "mean(logaddexp(0,-score_difference)) + .02*sum(all_parameter_squares)/26",
    "optimizer": "simultaneous full-batch gradient descent over all32trainingtriples"
  },
  "train_positives": [
    [
      0,
      1
    ],
    [
      0,
      2
    ],
    [
      3,
      4
    ],
    [
      3,
      5
    ]
  ],
  "held_out_relevance": [
    [
      2
    ],
    [
      1
    ],
    [
      5
    ],
    [
      4
    ]
  ],
  "training_triples": [
    [
      0,
      0,
      2
    ],
    [
      0,
      0,
      3
    ],
    [
      0,
      0,
      4
    ],
    [
      0,
      0,
      5
    ],
    [
      0,
      1,
      2
    ],
    [
      0,
      1,
      3
    ],
    [
      0,
      1,
      4
    ],
    [
      0,
      1,
      5
    ],
    [
      1,
      0,
      1
    ],
    [
      1,
      0,
      3
    ],
    [
      1,
      0,
      4
    ],
    [
      1,
      0,
      5
    ],
    [
      1,
      2,
      1
    ],
    [
      1,
      2,
      3
    ],
    [
      1,
      2,
      4
    ],
    [
      1,
      2,
      5
    ],
    [
      2,
      3,
      0
    ],
    [
      2,
      3,
      1
    ],
    [
      2,
      3,
      2
    ],
    [
      2,
      3,
      5
    ],
    [
      2,
      4,
      0
    ],
    [
      2,
      4,
      1
    ],
    [
      2,
      4,
      2
    ],
    [
      2,
      4,
      5
    ],
    [
      3,
      3,
      0
    ],
    [
      3,
      3,
      1
    ],
    [
      3,
      3,
      2
    ],
    [
      3,
      3,
      4
    ],
    [
      3,
      5,
      0
    ],
    [
      3,
      5,
      1
    ],
    [
      3,
      5,
      2
    ],
    [
      3,
      5,
      4
    ]
  ],
  "training_record": {
    "initial_objective": 0.6932718934567887,
    "final_objective": 0.04118154245691852,
    "initial_mean_pair_loss": 0.6931673005808989,
    "final_mean_pair_loss": 0.011096440090192214,
    "initial_positive_margin_fraction": 0.53125,
    "final_positive_margin_fraction": 1.0
  },
  "final_parameters": {
    "users": [
      [
        2.113733955672572,
        0.11165324656293593
      ],
      [
        0.6685644688071685,
        -2.0833881050802914
      ],
      [
        -2.106448308009934,
        -0.01780033896429963
      ],
      [
        -0.7568429317725792,
        2.09679300379232
      ]
    ],
    "items": [
      [
        1.4823940060811234,
        -1.1352831349635704
      ],
      [
        1.5971928434509803,
        0.42433842227936985
      ],
      [
        0.13085095155442775,
        -1.774222983366769
      ],
      [
        -1.568811789964625,
        1.1258872090187517
      ],
      [
        -1.6328970936623113,
        -0.44870237857534095
      ],
      [
        -0.25668453865048985,
        1.6324001401455341
      ]
    ],
    "item_bias": [
      0.7319089667777199,
      -0.3296361449305976,
      -0.4530645794947975,
      0.7725682523154568,
      -0.26208662281555833,
      -0.4596898718522253
    ]
  },
  "training_popularity_counts": [
    2.0,
    1.0,
    1.0,
    2.0,
    1.0,
    1.0
  ],
  "initial_ranking_evaluation": {
    "users": [
      {
        "user": 0,
        "candidates": [
          2,
          3,
          4,
          5
        ],
        "ranking": [
          3,
          4,
          2,
          5
        ],
        "scores_in_ranking_order": [
          0.0020768274233218167,
          -0.0013836425654282715,
          -0.0027784350045847637,
          -0.003875824407462083
        ],
        "held_out_relevant": [
          2
        ],
        "top_k": [
          3,
          4
        ],
        "hit_count": 0,
        "Precision_at_2": 0.0,
        "Recall_at_2": 0.0,
        "NDCG_at_2": 0.0,
        "reciprocal_rank_full_candidate_set": 0.3333333333333333
      },
      {
        "user": 1,
        "candidates": [
          1,
          3,
          4,
          5
        ],
        "ranking": [
          5,
          4,
          1,
          3
        ],
        "scores_in_ranking_order": [
          0.01669648911276884,
          0.007760489552085439,
          -0.0045212490592985285,
          -0.0061121231857089505
        ],
        "held_out_relevant": [
          1
        ],
        "top_k": [
          5,
          4
        ],
        "hit_count": 0,
        "Precision_at_2": 0.0,
        "Recall_at_2": 0.0,
        "NDCG_at_2": 0.0,
        "reciprocal_rank_full_candidate_set": 0.3333333333333333
      },
      {
        "user": 2,
        "candidates": [
          0,
          1,
          2,
          5
        ],
        "ranking": [
          5,
          2,
          0,
          1
        ],
        "scores_in_ranking_order": [
          0.021431960930872795,
          0.008747666517090236,
          0.008390837211245922,
          -0.005766226417327491
        ],
        "held_out_relevant": [
          5
        ],
        "top_k": [
          5,
          2
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 1.0,
        "reciprocal_rank_full_candidate_set": 1.0
      },
      {
        "user": 3,
        "candidates": [
          0,
          1,
          2,
          4
        ],
        "ranking": [
          1,
          4,
          0,
          2
        ],
        "scores_in_ranking_order": [
          0.005077662748783118,
          -0.006941495250897503,
          -0.00861172993470226,
          -0.012406874663194163
        ],
        "held_out_relevant": [
          4
        ],
        "top_k": [
          1,
          4
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 0.6309297535714575,
        "reciprocal_rank_full_candidate_set": 0.5
      }
    ],
    "macro_mean": {
      "Precision_at_2": 0.25,
      "Recall_at_2": 0.5,
      "NDCG_at_2": 0.4077324383928644,
      "reciprocal_rank_full_candidate_set": 0.5416666666666666
    }
  },
  "popularity_ranking_evaluation": {
    "users": [
      {
        "user": 0,
        "candidates": [
          2,
          3,
          4,
          5
        ],
        "ranking": [
          3,
          2,
          4,
          5
        ],
        "scores_in_ranking_order": [
          2.0,
          1.0,
          1.0,
          1.0
        ],
        "held_out_relevant": [
          2
        ],
        "top_k": [
          3,
          2
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 0.6309297535714575,
        "reciprocal_rank_full_candidate_set": 0.5
      },
      {
        "user": 1,
        "candidates": [
          1,
          3,
          4,
          5
        ],
        "ranking": [
          3,
          1,
          4,
          5
        ],
        "scores_in_ranking_order": [
          2.0,
          1.0,
          1.0,
          1.0
        ],
        "held_out_relevant": [
          1
        ],
        "top_k": [
          3,
          1
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 0.6309297535714575,
        "reciprocal_rank_full_candidate_set": 0.5
      },
      {
        "user": 2,
        "candidates": [
          0,
          1,
          2,
          5
        ],
        "ranking": [
          0,
          1,
          2,
          5
        ],
        "scores_in_ranking_order": [
          2.0,
          1.0,
          1.0,
          1.0
        ],
        "held_out_relevant": [
          5
        ],
        "top_k": [
          0,
          1
        ],
        "hit_count": 0,
        "Precision_at_2": 0.0,
        "Recall_at_2": 0.0,
        "NDCG_at_2": 0.0,
        "reciprocal_rank_full_candidate_set": 0.25
      },
      {
        "user": 3,
        "candidates": [
          0,
          1,
          2,
          4
        ],
        "ranking": [
          0,
          1,
          2,
          4
        ],
        "scores_in_ranking_order": [
          2.0,
          1.0,
          1.0,
          1.0
        ],
        "held_out_relevant": [
          4
        ],
        "top_k": [
          0,
          1
        ],
        "hit_count": 0,
        "Precision_at_2": 0.0,
        "Recall_at_2": 0.0,
        "NDCG_at_2": 0.0,
        "reciprocal_rank_full_candidate_set": 0.25
      }
    ],
    "macro_mean": {
      "Precision_at_2": 0.25,
      "Recall_at_2": 0.5,
      "NDCG_at_2": 0.31546487678572877,
      "reciprocal_rank_full_candidate_set": 0.375
    }
  },
  "BPR_style_ranking_evaluation": {
    "users": [
      {
        "user": 0,
        "candidates": [
          2,
          3,
          4,
          5
        ],
        "ranking": [
          2,
          5,
          3,
          4
        ],
        "scores_in_ranking_order": [
          -0.37457823628161446,
          -0.8199899217568739,
          -2.417773536041612,
          -3.7636957331170904
        ],
        "held_out_relevant": [
          2
        ],
        "top_k": [
          2,
          5
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 1.0,
        "reciprocal_rank_full_candidate_set": 1.0
      },
      {
        "user": 1,
        "candidates": [
          1,
          3,
          4,
          5
        ],
        "ranking": [
          1,
          4,
          3,
          5
        ],
        "scores_in_ranking_order": [
          -0.14587138147155881,
          -0.4189624026115715,
          -2.621943587632381,
          -4.03222306879671
        ],
        "held_out_relevant": [
          1
        ],
        "top_k": [
          1,
          4
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 1.0,
        "reciprocal_rank_full_candidate_set": 1.0
      },
      {
        "user": 2,
        "candidates": [
          0,
          1,
          2,
          5
        ],
        "ranking": [
          5,
          2,
          0,
          1
        ],
        "scores_in_ranking_order": [
          0.051945564460448734,
          -0.6971135744959323,
          -2.3704689545131257,
          -3.7015936753356393
        ],
        "held_out_relevant": [
          5
        ],
        "top_k": [
          5,
          2
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 1.0,
        "reciprocal_rank_full_candidate_set": 1.0
      },
      {
        "user": 3,
        "candidates": [
          0,
          1,
          2,
          4
        ],
        "ranking": [
          4,
          1,
          0,
          2
        ],
        "scores_in_ranking_order": [
          0.03292399265300133,
          -0.6487104240985657,
          -2.7704841935418427,
          -4.272276535985462
        ],
        "held_out_relevant": [
          4
        ],
        "top_k": [
          4,
          1
        ],
        "hit_count": 1,
        "Precision_at_2": 0.5,
        "Recall_at_2": 1.0,
        "NDCG_at_2": 1.0,
        "reciprocal_rank_full_candidate_set": 1.0
      }
    ],
    "macro_mean": {
      "Precision_at_2": 0.5,
      "Recall_at_2": 1.0,
      "NDCG_at_2": 1.0,
      "reciprocal_rank_full_candidate_set": 1.0
    }
  },
  "heldout_pairs_also_unobserved_during_training": [
    {
      "user": 0,
      "item": 2,
      "number_of_training_triples_where_j": 2
    },
    {
      "user": 1,
      "item": 1,
      "number_of_training_triples_where_j": 2
    },
    {
      "user": 2,
      "item": 5,
      "number_of_training_triples_where_j": 2
    },
    {
      "user": 3,
      "item": 4,
      "number_of_training_triples_where_j": 2
    }
  ],
  "scalar_pair_loss_example": {
    "score_difference": 0.2,
    "negative_log_sigmoid": 0.5981388693815918,
    "derivative_wrt_difference": -0.45016600268752216
  },
  "limits": [
    "Unknown training items are assumed lower-preference comparisons, not proven dislikes.",
    "Triple construction uses TRAIN_POSITIVES and fixed catalogue only, never HELD_OUT.",
    "Held-out relevance can therefore occur as unobserved j in training; not secretly excluded.",
    "All six catalogue items are assumed available; no timestamp/exposure modelling.",
    "No user or item is cold-start; four users and one held-out positive each are a small toy.",
    "Full candidate evaluation filters only training positives; ties use ascending item ID.",
    "Fixed seed/budget/settings were not selected by inspecting the held-out metrics.",
    "Full-batch over32pairs differs from paper LearnBPR bootstrap SGD and its normalization.",
    "Pairwise sigmoid does not establish calibrated click probability or unbiased preference.",
    "One relevance item makes Recall_at_2 a hit indicator; precision maximum here is1/2.",
    "No claim of production convergence, statistically significant lift, or exposure debiasing."
  ]
}
