Skip to content

Commit 1df1367

Browse files
authored
Merge pull request #162 from JuliaAI/dev
For a 0.10.1 release
2 parents 27b3772 + 03ca32c commit 1df1367

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
arch:
2525
- x64
2626
steps:
27-
- uses: actions/checkout@v2
28-
- uses: julia-actions/setup-julia@v1
27+
- uses: actions/checkout@v4
28+
- uses: julia-actions/setup-julia@v2
2929
with:
3030
version: ${{ matrix.version }}
3131
arch: ${{ matrix.arch }}
32-
- uses: actions/cache@v1
32+
- uses: julia-actions/cache@v2
3333
env:
3434
cache-name: cache-artifacts
3535
with:
@@ -43,6 +43,7 @@ jobs:
4343
- uses: julia-actions/julia-runtest@v1
4444
env:
4545
RUN_COMPARISONS: "false"
46+
R_HOME: "*"
4647
- uses: julia-actions/julia-processcoverage@v1
4748
- uses: codecov/codecov-action@v1
4849
with:
@@ -51,8 +52,8 @@ jobs:
5152
name: Documentation
5253
runs-on: ubuntu-latest
5354
steps:
54-
- uses: actions/checkout@v2
55-
- uses: julia-actions/setup-julia@v1
55+
- uses: actions/checkout@v4
56+
- uses: julia-actions/setup-julia@v2
5657
with:
5758
version: '1'
5859
- run: |

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.10.0"
4+
version = "0.10.1"
55

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

docs/src/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ Which, in my case, gives `setosa`, `setosa` (correct in both cases).
155155

156156
Depending on your data you may want to customize the default solver associated with your model. Since this package uses [Optim](https://julianlsolvers.github.io/Optim.jl/stable/) behind the scene, we can interact directly with this package.
157157

158-
For instance, you may need to be more stringent about the convergence criterion of the LBFGS solver. This can be done by changing the general Optim `f_tol` parameter which defaults to ``10^{-4}``:
158+
For instance, you may need to be more stringent about the convergence criterion of the LBFGS solver. This can be done by changing the general Optim `f_reltol` parameter which defaults to ``10^{-4}``:
159159

160160
```julia
161161
import Optim
162162

163-
new_optim_options = Optim.Options(f_tol=1e-6)
163+
new_optim_options = Optim.Options(f_reltol=1e-6)
164164
mdl = MultinomialClassifier(solver=LBFGS(optim_options=new_optim_options))
165165
mach = machine(mdl, X, y)
166166
fit!(mach)

src/fit/solvers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ solver = MLJLinearModels.Newton(
5757
```
5858
"""
5959
@with_kw struct Newton{O,S} <: Solver
60-
optim_options::O = Optim.Options(f_tol=1e-4)
60+
optim_options::O = Optim.Options(f_reltol=1e-4)
6161
newton_options::S = (; )
6262
end
6363

@@ -84,7 +84,7 @@ solver = MLJLinearModels.NewtonCG(
8484
```
8585
"""
8686
@with_kw struct NewtonCG{O,S} <: Solver
87-
optim_options::O = Optim.Options(f_tol=1e-4)
87+
optim_options::O = Optim.Options(f_reltol=1e-4)
8888
newtoncg_options::S = (; )
8989
end
9090

@@ -107,7 +107,7 @@ solver = MLJLinearModels.LBFGS(
107107
```
108108
"""
109109
@with_kw struct LBFGS{O,S} <: Solver
110-
optim_options::O = Optim.Options(f_tol=1e-4)
110+
optim_options::O = Optim.Options(f_reltol=1e-4)
111111
lbfgs_options::S = (; )
112112
end
113113

0 commit comments

Comments
 (0)