You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add language tags, fences in code examples. Replace tabs with spaces
because Documenter.jl uses them as 8 when 4 is meant and it breaks a lot
of lists. Also align hanging list items to keep them in the <li>.
Copy file name to clipboardExpand all lines: docs/src/document_strings.md
+22-6Lines changed: 22 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,23 +29,39 @@ Your document string must include the following components, in order:
29
29
implementation. Generally, defer details on the role of
30
30
hyperparameters to the "Hyperparameters" section (see below).
31
31
32
-
- Instructions on *how to import the model type* from MLJ (because a user can already inspect the doc-string in the Model Registry, without having loaded the code-providing package).
32
+
- Instructions on *how to import the model type* from MLJ (because a user can
33
+
already inspect the doc-string in the Model Registry, without having loaded
34
+
the code-providing package).
33
35
34
36
- Instructions on *how to instantiate* with default hyperparameters or with keywords.
35
37
36
-
- A *Training data* section: explains how to bind a model to data in a machine with all possible signatures (eg, `machine(model, X, y)` but also `machine(model, X, y, w)` if, say, weights are supported); the role and scitype requirements for each data argument should be itemized.
38
+
- A *Training data* section: explains how to bind a model to data in a machine
39
+
with all possible signatures (eg, `machine(model, X, y)` but also
40
+
`machine(model, X, y, w)` if, say, weights are supported); the role and
41
+
scitype requirements for each data argument should be itemized.
37
42
38
43
- Instructions on *how to fit* the machine (in the same section).
39
44
40
45
- A *Hyperparameters* section (unless there aren't any): an itemized list of the parameters, with defaults given.
41
46
42
-
- An *Operations* section: each implemented operation (`predict`, `predict_mode`, `transform`, `inverse_transform`, etc ) is itemized and explained. This should include operations with no data arguments, such as `training_losses` and `feature_importances`.
47
+
- An *Operations* section: each implemented operation (`predict`,
48
+
`predict_mode`, `transform`, `inverse_transform`, etc ) is itemized and
49
+
explained. This should include operations with no data arguments, such as
50
+
`training_losses` and `feature_importances`.
43
51
44
-
- A *Fitted parameters* section: To explain what is returned by `fitted_params(mach)` (the same as `MLJModelInterface.fitted_params(model, fitresult)` - see later) with the fields of that named tuple itemized.
52
+
- A *Fitted parameters* section: To explain what is returned by `fitted_params(mach)`
53
+
(the same as `MLJModelInterface.fitted_params(model, fitresult)` - see later)
54
+
with the fields of that named tuple itemized.
45
55
46
-
- A *Report* section (if `report` is non-empty): To explain what, if anything, is included in the `report(mach)` (the same as the `report` return value of `MLJModelInterface.fit`) with the fields itemized.
56
+
- A *Report* section (if `report` is non-empty): To explain what, if anything,
57
+
is included in the `report(mach)` (the same as the `report` return value of
58
+
`MLJModelInterface.fit`) with the fields itemized.
47
59
48
-
- An optional but highly recommended *Examples* section, which includes MLJ examples, but which could also include others if the model type also implements a second "local" interface, i.e., defined in the same module. (Note that each module referring to a type can declare separate doc-strings which appear concatenated in doc-string queries.)
60
+
- An optional but highly recommended *Examples* section, which includes MLJ
61
+
examples, but which could also include others if the model type also
62
+
implements a second "local" interface, i.e., defined in the same module. (Note
63
+
that each module referring to a type can declare separate doc-strings which
64
+
appear concatenated in doc-string queries.)
49
65
50
66
- A closing *"See also"* sentence which includes a `@ref` link to the raw model type (if you are wrapping one).
0 commit comments