Skip to content

Commit 36112ad

Browse files
committed
minor fixes
1 parent 76a3df8 commit 36112ad

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

docs/src/fit_update.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ model = update(model; n=150)
4343
predict(model, Distribution(), X)
4444
```
4545

46+
See also [Classification](@ref) and [Regression](@ref).
47+
4648
### Tranformers
4749

4850
A dimension-reducing transformer, `algorithm` might be used in this way:
@@ -74,14 +76,16 @@ labels = predict(algorithm, X)
7476
LearnAPI.extras(model)
7577
```
7678

79+
See also [Static Algorithms](@ref)
80+
7781
### Density estimation
7882

7983
In density estimation, `fit` consumes no features, only a target variable; `predict`,
8084
which consumes no data, returns the learned density:
8185

8286
```julia
8387
model = fit(algorithm, y) # no features
84-
predict(model) # shortcut for `predict(model, Distribution())`
88+
predict(model) # shortcut for `predict(model, Distribution())`, or similar
8589
```
8690

8791
A one-liner will typically be implemented as well:
@@ -90,6 +94,9 @@ A one-liner will typically be implemented as well:
9094
predict(algorithm, y)
9195
```
9296

97+
See also [Density Estimation](@ref).
98+
99+
93100
## Implementation guide
94101

95102
### Training

src/fit_update.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ overloaded to return `true`.
3737
The signature must include `verbosity`.
3838
3939
If `data` encapsulates a *target* variable, as defined in LearnAPI.jl documentation, then
40-
[`LearnAPI.target(data)`] must be overloaded to return it. If [`predict`](@ref) or
40+
[`LearnAPI.target(data)`](@ref) must be overloaded to return it. If [`predict`](@ref) or
4141
[`transform`](@ref) are implemented and consume data, then
4242
[`LearnAPI.features(data)`](@ref) must return something that can be passed as data to
4343
these methods. A fallback returns `first(data)` if `data` is a tuple, and `data`

0 commit comments

Comments
 (0)