Skip to content

Commit f1ecfdc

Browse files
authoredApr 9, 2020
Update project and HPO documentation (pykeen#492)
* Update project and HPO documentation * More documentation updates * Update __init__.py * Add dashes to "hyperparameter" * Fix type annotation [skip ci] * Doocument bad ranges * More updates based on max's comments * Fix type annotations * Make fit API * Update docs * Add fixme for HPO with no dataset This should have been done in pykeen#483 * Update docs * Add check and unittest for invalid configurations
1 parent c414b0a commit f1ecfdc

39 files changed

+580
-251
lines changed
 

‎LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 PyKEEN Project Team
3+
Copyright (c) 2019-2020 PyKEEN Project Team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ in ``pykeen``.
196196
| Hits At K | The hits at k for different values of k, i.e. the relative frequency of ranks not larger than k. Higher is better. | rankbased | `pykeen.evaluation.RankBasedMetricResults` |
197197
| Adjusted Mean Rank | The mean over all chance-adjusted ranks: mean_i (2r_i / (num_entities+1)). Lower is better. | rankbased | `pykeen.evaluation.RankBasedMetricResults` |
198198

199-
## Hyperparameter Optimization
199+
## Hyper-parameter Optimization
200200

201201
### Samplers (2)
202202

‎docs/source/conf.py

+18-8
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
# -- Project information -----------------------------------------------------
4747

4848
project = 'pykeen'
49-
copyright = '2019, Mehdi Ali'
50-
author = 'Mehdi Ali'
49+
copyright = '2020, PyKEEN Project Team'
50+
author = 'PyKEEN Project Team'
5151

5252
# The full version, including alpha/beta/rc tags.
5353
release = '0.1.2-dev'
@@ -170,8 +170,11 @@
170170
# author, documentclass [howto, manual, or own class]).
171171
latex_documents = [
172172
(
173-
master_doc, 'pykeen.tex', 'pykeen Documentation',
174-
'Mehdi Ali', 'manual',
173+
master_doc,
174+
'pykeen.tex',
175+
'PyKEEN Documentation',
176+
author,
177+
'manual',
175178
),
176179
]
177180

@@ -181,8 +184,11 @@
181184
# (source start file, name, description, authors, manual section).
182185
man_pages = [
183186
(
184-
master_doc, 'pykeen', 'pykeen Documentation',
185-
[author], 1,
187+
master_doc,
188+
'pykeen',
189+
'PyKEEN Documentation',
190+
[author],
191+
1,
186192
),
187193
]
188194

@@ -193,8 +199,12 @@
193199
# dir menu entry, description, category)
194200
texinfo_documents = [
195201
(
196-
master_doc, 'pykeen', 'pykeen Documentation',
197-
author, 'pykeen', 'One line description of project.',
202+
master_doc,
203+
'pykeen',
204+
'PyKEEN Documentation',
205+
author,
206+
'PyKEEN Project Team',
207+
'Training and evaluatation knowledge graph embedding models.',
198208
'Miscellaneous',
199209
),
200210
]

‎docs/source/first_steps.rst

+5
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@ executed with one of the previous examples.
4141
# Evaluate
4242
results = evaluator.evaluate(mapped_triples, batch_size=1024)
4343
print(results)
44+
45+
Optimizing a Model
46+
------------------
47+
.. automodule:: pykeen.hpo
48+
:noindex:

‎docs/source/reference/hpo.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
Hyper-parameter Optimization
22
============================
3-
.. automodule:: pykeen.hpo
4-
:members:
3+
.. autoclass:: pykeen.hpo.HpoPipelineResult
4+
:members:
55

6-
.. seealso::
6+
.. autofunction:: pykeen.hpo.hpo_pipeline_from_path
77

8-
- https://towardsdatascience.com/a-conceptual-explanation-of-bayesian-model-based-hyperparameter-optimization-for-machine-learning-b8172278050f
8+
.. autofunction:: pykeen.hpo.hpo_pipeline_from_config
9+
10+
.. autofunction:: pykeen.hpo.hpo_pipeline

0 commit comments

Comments
 (0)