Skip to content
Back to skills

Conve Kg Link Prediction Eval

ASecurity

Evaluates knowledge graph link prediction by measuring a model's ability to infer missing entities (head or tail) from subject-relation triples. It probes the expressiveness of 2D convolutional embeddings and tests robustness against test-set leakage via inverse relations. Use when the user wants to benchmark on WN18, FB15k, YAGO3-10, Countries, FB15k-237, WN18RR, or asks about evaluating this task. Reports MRR.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
researchpythongoexpressperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill conve-kg-link-prediction-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conve Kg Link Prediction Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Conve Kg Link Prediction Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-conve-kg-link-prediction-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-conve-kg-link-prediction-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: conve-kg-link-prediction-eval
description: Evaluates knowledge graph link prediction by measuring a model's ability to infer missing entities (head or tail) from subject-relation triples. It probes the expressiveness of 2D convolutional embeddings and tests robustness against test-set leakage via inverse relations. Use when the user wants to benchmark on WN18, FB15k, YAGO3-10, Countries, FB15k-237, WN18RR, or asks about evaluating this task. Reports MRR.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 1707.01476
  bibtex_key: [REDACTED]
  confidence: high
---

# conve-kg-link-prediction-eval

> Convolutional 2D Knowledge Graph Embeddings — Dettmers et al. (2017) (arXiv:1707.01476, 2017)

## What this evaluates

Evaluates knowledge graph link prediction by measuring a model's ability to infer missing entities (head or tail) from subject-relation triples. It probes the expressiveness of 2D convolutional embeddings and tests robustness against test-set leakage via inverse relations.

## Datasets

- **WN18** — total 151442; splits: train (-1), val (-1), test (-1)
- **FB15k** — total ?; splits: train (-1), val (-1), test (-1)
- **YAGO3-10** — total ?; splits: train (-1), val (-1), test (-1)
- **Countries** — total ?; splits: train (-1), val (-1), test (-1)
- **FB15k-237** — total ?; splits: train (-1), val (-1), test (-1)
- **WN18RR** — total 93003; splits: train (-1), val (-1), test (-1)

## Metrics

- `MRR` **(primary)** — range: [0, 1]
  - Mean Reciprocal Rank: the average of the reciprocal ranks of the correct entity across all test triples. Calculated as (1/N) * Σ (1/rank_i).
- `Hits@1` — range: [0, 1]
  - Fraction of test triples where the correct entity appears at rank 1 in the predicted ranking.
- `Hits@3` — range: [0, 1]
  - Fraction of test triples where the correct entity appears in the top 3 predicted ranks.
- `Hits@10` — range: [0, 1]
  - Fraction of test triples where the correct entity appears in the top 10 predicted ranks.
- `AUC-PR` — range: [0, 1]
  - Area Under the Precision-Recall Curve, used specifically for the Countries dataset due to its high variance and multi-task nature.

## Input / output format

**Input**: Triple (subject, relation, object) with one entity masked (head or tail prediction), evaluated against a candidate set of all entities in the knowledge graph.

**Output**: Ranked list of candidate entities sorted by predicted score, or top-k predictions.

## Scoring recipe

```python
ranks = []
for triple in test_set:
    scores = model.predict(triple)
    rank = rank_of_correct_entity(scores)
    ranks.append(rank)
mrr = sum(1.0 / r for r in ranks) / len(ranks)
hits_at_k = sum(1 for r in ranks if r <= k) / len(ranks)
```

## Common pitfalls

- Test set leakage via inverse relations causes inflated scores on original WN18 and FB15k; must use filtered versions (WN18RR, FB15k-237).
- Countries dataset exhibits high variance; results must be averaged over 10 runs with 95% confidence intervals.
- Early stopping is based on validation MRR/AUC-PR, not test set performance.

## Evidence (verbatim from paper)

> We selected the hyperparameters of our ConvE model via grid search according to the mean reciprocal rank (MRR) on the validation set. ... We use early stopping according to the mean reciprocal rank (WN18, FB15k, YAGO3-10) and AUC-PR (Countries) statistics on the validation set, which we evaluate every three epochs. Unlike the other datasets, for Countries the results have a high variance, as such we average 10 runs and produce 95% confidence intervals.

## Citation

```bibtex
@misc{dettmers2017conve,
  title={Convolutional 2D Knowledge Graph Embeddings},
  author={Dettmers et al. (2017)},
  year={2017},
  note={arXiv:1707.01476}
}
```

- arXiv: 1707.01476

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.