Skip to content

Commit a156d46

Browse files
committed
update readme re algorithm -> learner
1 parent 2b003bb commit a156d46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ New contributions welcome. See the [road map](ROADMAP.md).
1313

1414
## Code snippet
1515

16-
Configure a learning algorithm:
16+
Configure a machine learning algorithm:
1717

1818
```julia
19-
julia> algorithm = Ridge(lambda=0.1)
19+
julia> learner = Ridge(lambda=0.1)
2020
```
2121

2222
Inspect available functionality:
2323

2424
```
25-
julia> LearnAPI.functions(algorithm)
26-
(:(LearnAPI.fit), :(LearnAPI.algorithm), :(LearnAPI.strip), :(LearnAPI.obs),
25+
julia> LearnAPI.functions(learner)
26+
(:(LearnAPI.fit), :(LearnAPI.learner), :(LearnAPI.strip), :(LearnAPI.obs),
2727
:(LearnAPI.features), :(LearnAPI.target), :(LearnAPI.predict), :(LearnAPI.coefficients))
2828
```
2929

3030
Train:
3131

3232
```julia
33-
julia> model = fit(algorithm, data)
33+
julia> model = fit(learner, data)
3434
```
3535

3636
Predict:

0 commit comments

Comments
 (0)