Skip to content

Commit 8fd02c9

Browse files
committed
fix typos
1 parent 11b38cf commit 8fd02c9

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/fit_update.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Return an updated version of the `model` object returned by a previous [`fit`](@
9696
specify hyperparameter replacements in the form `p1=value1, p2=value2, ...`.
9797
9898
When following the call `fit(algorithm, data)`, the `update` call is semantically
99-
equivalent to retraining ab initio using a concatentation of `data` and `new_data`,
99+
equivalent to retraining ab initio using a concatenation of `data` and `new_data`,
100100
*provided there are no hyperparameter replacements.* Behaviour is otherwise
101101
algorithm-specific.
102102
@@ -131,7 +131,7 @@ Return an updated version of the `model` object returned by a previous [`fit`](@
131131
specify hyperparameter replacements in the form `p1=value1, p2=value2, ...`.
132132
133133
When following the call `fit(algorithm, data)`, the `update` call is semantically
134-
equivalent to retraining ab initio using a concatentation of `data` and `new_data`,
134+
equivalent to retraining ab initio using a concatenation of `data` and `new_data`,
135135
*provided there are no hyperparameter replacements.* Behaviour is otherwise
136136
algorithm-specific.
137137

src/target_weights_features.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Return, for each form of `data` supported in a call of the form [`fit(algorithm,
55
data)`](@ref), the target variable part of `data`. If `nothing` is returned, the
66
`algorithm` does not see a target variable in training (is unsupervised).
77
8-
Refer to LearnAPI.jl documenation for the precise meaning of "target".
8+
Refer to LearnAPI.jl documentation for the precise meaning of "target".
99
1010
# New implementations
1111
@@ -22,7 +22,7 @@ target(::Any, data) = nothing
2222
2323
Return, for each form of `data` supported in a call of the form `[`fit(algorithm,
2424
data)`](@ref), the per-observation weights part of `data`. Where `nothing` is returned, no
25-
weights are part of `data`, which is to be interpretted as uniform weighting.
25+
weights are part of `data`, which is to be interpreted as uniform weighting.
2626
2727
# New implementations
2828
@@ -51,7 +51,7 @@ ŷ = predict(algorithm, kind_of_proxy, X) # eg, `kind_of_proxy = Point()`
5151
5252
The return value has the same number of observations as `data` does. For supervised models
5353
(i.e., where `:(LearnAPI.target) in LearnAPI.functions(algorithm)`) `ŷ` above is generally
54-
inteneded to be an approximate proxy for `LearnAPI.target(algorithm, data)`, the training
54+
intended to be an approximate proxy for `LearnAPI.target(algorithm, data)`, the training
5555
target.
5656
5757

src/traits.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function constructor end
8787
"""
8888
LearnAPI.functions(algorithm)
8989
90-
Return a tuple of expressions respresenting functions that can be meaningfully applied
90+
Return a tuple of expressions representing functions that can be meaningfully applied
9191
with `algorithm`, or an associated model (object returned by `fit(algorithm, ...)`, as the
9292
first argument. Algorithm traits (methods for which `algorithm` is the *only* argument)
9393
are excluded.
@@ -328,7 +328,7 @@ to return `"K-nearest neighbors regressor"`. Ideally, this is a "concrete" noun
328328
`"ridge regressor"` rather than an "abstract" noun like `"ridge regression"`.
329329
330330
"""
331-
human_name(algorithm) = snakecase(name(alogorithm), delim=' ') # `name` defined below
331+
human_name(algorithm) = snakecase(name(algorithm), delim=' ') # `name` defined below
332332

333333
"""
334334
LearnAPI.data_interface(algorithm)

typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default.extend-words]
2+
# Don't correct "mape" to "map"
3+
mape = "mape"
4+
yhat = "yhat"
5+
LSO ="LSO"
6+
datas = "datas"

0 commit comments

Comments
 (0)