Skip to content

Commit 655a87a

Browse files
committed
minor fix
1 parent f9b7d54 commit 655a87a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "MLJLinearModels"
22
uuid = "6ee0df7b-362f-4a72-a706-9e79364fb692"
33
authors = ["Thibaut Lienart <[email protected]>"]
4-
version = "0.3.4"
4+
version = "0.3.5"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/mlj/interface.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ function MMI.fit(m::Union{CLF_MODELS...}, verb::Int, X, y)
5555
else
5656
c = nclasses
5757
end
58-
clf = glr(m)
5958
# allow logclf to become multiclf
6059
if m isa LogisticClassifier
6160
m.multi_class = c > 1
6261
end
62+
clf = glr(m)
6363

6464
solver = m.solver === nothing ? _solver(clf, size(Xmatrix)) : m.solver
6565
# get the parameters
@@ -69,7 +69,7 @@ function MMI.fit(m::Union{CLF_MODELS...}, verb::Int, X, y)
6969
end
7070

7171
function MMI.predict(m::Union{CLF_MODELS...}, (θ, features, c, classes), Xnew)
72-
Xmatrix = MMI.matrix(Xnew)
72+
Xmatrix = MMI.matrix(Xnew)
7373
preds = apply_X(Xmatrix, θ, c)
7474
# binary classification
7575
if c == 1

0 commit comments

Comments
 (0)