Skip to content

Commit 8a62f87

Browse files
committed
fixes #131
1 parent 7e34598 commit 8a62f87

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Project.toml

Lines changed: 14 additions & 2 deletions
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 <tlienart@me.com>"]
4-
version = "0.7.1"
4+
version = "0.7.2"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -35,4 +35,16 @@ StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
3535
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3636

3737
[targets]
38-
test = ["DelimitedFiles", "PyCall", "ForwardDiff", "Test", "Random", "RDatasets", "RCall", "MLJ", "MLJBase", "StableRNGs", "DataFrames"]
38+
test = [
39+
"DelimitedFiles",
40+
"PyCall",
41+
"ForwardDiff",
42+
"Test",
43+
"Random",
44+
"RDatasets",
45+
"RCall",
46+
"MLJ",
47+
"MLJBase",
48+
"StableRNGs",
49+
"DataFrames",
50+
]

src/mlj/classifiers.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ $(example_docstring("LogisticClassifier", nclasses = 2))
2626
@with_kw_noshow mutable struct LogisticClassifier <: MMI.Probabilistic
2727
"strength of the regulariser if `penalty` is `:l2` or `:l1` and strength of the L2
2828
regulariser if `penalty` is `:en`."
29-
lambda::Real = 1.0
29+
lambda::Real = eps()
3030
"strength of the L1 regulariser if `penalty` is `:en`."
3131
gamma::Real = 0.0
3232
"the penalty to use, either `:l2`, `:l1`, `:en` (elastic net) or `:none`."
@@ -69,7 +69,7 @@ $(example_docstring("LogisticClassifier", nclasses = 3))
6969
@with_kw_noshow mutable struct MultinomialClassifier <: MMI.Probabilistic
7070
"strength of the regulariser if `penalty` is `:l2` or `:l1`.
7171
Strength of the L2 regulariser if `penalty` is `:en`."
72-
lambda::Real = 1.0
72+
lambda::Real = eps()
7373
"strength of the L1 regulariser if `penalty` is `:en`."
7474
gamma::Real = 0.0
7575
"the penalty to use, either `:l2`, `:l1`, `:en` (elastic net) or `:none`."

0 commit comments

Comments
 (0)