Skip to content

Commit e8894ec

Browse files
authoredOct 13, 2020
Improve documentation (pykeen#106)
1 parent f311077 commit e8894ec

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ result = pipeline(
8383
)
8484
```
8585

86-
The results are returned in an instance of the [RankBasedMetricResults](https://pykeen.readthedocs.io/en/latest/reference/evaluation/rank_based.html#pykeen.evaluation.RankBasedMetricResults)
86+
The results are returned in an instance of the [PipelineResult](https://pykeen.readthedocs.io/en/latest/reference/pipeline.html#pykeen.pipeline.PipelineResult)
8787
dataclass that has attributes for the trained model, the training loop, the evaluation, and more. See the tutorials on
8888
[understanding the evaluation](https://pykeen.readthedocs.io/en/latest/tutorial/understanding_evaluation.html)
8989
and [making novel link predictions](https://pykeen.readthedocs.io/en/latest/tutorial/making_predictions.html).

‎docs/source/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ PyKEEN
3535
reference/negative_sampling
3636
reference/hpo
3737
reference/lookup
38+
reference/sealant
3839

3940
.. toctree::
4041
:caption: Appendix

‎docs/source/reference/sealant.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Sealant
2+
=======
3+
.. automodule:: pykeen.triples.leakage
4+
:members:

‎src/pykeen/templates/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ result = pipeline(
8383
)
8484
```
8585

86-
The results are returned in an instance of the [RankBasedMetricResults](https://pykeen.readthedocs.io/en/latest/reference/evaluation/rank_based.html#pykeen.evaluation.RankBasedMetricResults)
86+
The results are returned in an instance of the [PipelineResult](https://pykeen.readthedocs.io/en/latest/reference/pipeline.html#pykeen.pipeline.PipelineResult)
8787
dataclass that has attributes for the trained model, the training loop, the evaluation, and more. See the tutorials on
8888
[understanding the evaluation](https://pykeen.readthedocs.io/en/latest/tutorial/understanding_evaluation.html)
8989
and [making novel link predictions](https://pykeen.readthedocs.io/en/latest/tutorial/making_predictions.html).

‎src/pykeen/triples/leakage.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# -*- coding: utf-8 -*-
22

3-
"""Tools for removing the leakage from datasets."""
3+
"""Tools for removing the leakage from datasets.
4+
5+
Leakage is when the inverse of a given training triple appears in either
6+
the testing or validation set. This scenario generally leads to inflated
7+
and misleading evaluation because predicting an inverse triple is usually
8+
very easy and not a sign of the generalizability of a model to predict
9+
novel triples.
10+
"""
411

512
import itertools as itt
613
import logging

0 commit comments

Comments
 (0)
Please sign in to comment.