Skip to content

Commit 3e8c5da

Browse files
authored
Merge pull request #23 from JuliaAI/ablaom-patch-1
Modify model_get to include apply parameter
2 parents 5c212c3 + 4afe006 commit 3e8c5da

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/learners/gradient_descent.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ replacement for :epochs is specified, or `Δepochs` is negative, instead return
125125
Return an updated model, with the weights and bias of the previously learned perceptron
126126
used as the starting state in new gradient descent updates. Adopt any specified
127127
hyperparameter `replacements` (properties of `LearnAPI.learner(model)`). Exactly `n` new
128-
epochs are applied, where `n = model.epochs` unless this explictly changed in
128+
epochs are applied, where `n = model.epochs` unless this explicitly changed in
129129
`replacements`.
130130
131131
"""

src/learners/static_algorithms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ rejected(model::FancySelectorFitted) = model.rejected
110110
LearnAPI.fit(learner::FancySelector; verbosity=LearnAPI.default_verbosity()) =
111111
FancySelectorFitted(learner)
112112

113-
# output the filtered table and add `rejected` field to model (mutatated!)
113+
# output the filtered table and add `rejected` field to model (mutated!)
114114
function LearnAPI.transform(model::FancySelectorFitted, X)
115115
table = Tables.columntable(X)
116116
names = Tables.columnnames(table)

src/tools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ learner_get(learner, data, apply=identity) =
9090
get(learner, data, LearnAPI.data_interface(learner), apply)
9191

9292
"""
93-
model_get(model, data)
93+
model_get(model, data; apply=identity)
9494
9595
*Private method.*
9696

0 commit comments

Comments
 (0)