Skip to content

Commit

Permalink
Merge pull request #6 from alan-turing-institute/compat
Browse files Browse the repository at this point in the history
Compat update
  • Loading branch information
ablaom authored Jan 27, 2021
2 parents 87b9e6a + 79e3f0f commit 49d7d08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: CompatHelper

on:
schedule:
- cron: '00 00 * * *'

workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@latest
with:
version: 1.3
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: julia -e 'using CompatHelper; CompatHelper.main(; master_branch = "master")'
COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} # optional
run: julia -e 'using CompatHelper; CompatHelper.main()'
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
MLJModelInterface = "^0.3.6,^0.4"
LIBSVM = "^0.4, 0.5"
MLJModelInterface = "^0.3.6"
julia = "^1"

[extras]
Expand Down
9 changes: 0 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,3 @@ ocpred = MLJBase.transform(oneclasssvm,
@test isapprox((length(train) - sum(MLJBase.transform(oneclasssvm, fitresultoc, selectrows(X, train)) .== true)) / length(train), oneclasssvm.nu, atol=0.005)
@test isapprox((length(test) - sum(ocpred .== true)) / length(test), oneclasssvm.nu, atol=0.05)


## INFO

info_dict(LinearSVC)
info_dict(SVC)
info_dict(NuSVC)
info_dict(NuSVR)
info_dict(EpsilonSVR)
info_dict(OneClassSVM)

0 comments on commit 49d7d08

Please sign in to comment.