-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from JuliaTrustworthyAI/5-stop-relying-on-ce-fo…
…r-functionality trying
- Loading branch information
Showing
24 changed files
with
364 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,42 @@ | ||
name = "TaijaParallel" | ||
uuid = "bf1c2c22-5e42-4e78-8b6b-92e6c673eeb0" | ||
authors = ["Patrick Altmeyer <p.altmeyer@tudelft.nl>"] | ||
version = "0.1.0" | ||
version = "1.0.0" | ||
|
||
[deps] | ||
CounterfactualExplanations = "2f13d31b-18db-44c1-bc43-ebaf2cff0be0" | ||
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" | ||
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54" | ||
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930" | ||
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca" | ||
Reexport = "189a3867-3050-52da-a836-e630ba90ab69" | ||
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | ||
TaijaBase = "10284c91-9f28-4c9a-abbf-ee43576dfff6" | ||
|
||
[weakdeps] | ||
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" | ||
|
||
[extensions] | ||
MPIExt = "MPI" | ||
|
||
[compat] | ||
Aqua = "0.8" | ||
CounterfactualExplanations = "0.1" | ||
Logging = "1.7, 1.8, 1.9, 1.10" | ||
MLUtils = "0.4.4" | ||
MPI = "0.20" | ||
PackageExtensionCompat = "1" | ||
ProgressMeter = "1" | ||
Reexport = "1" | ||
Serialization = "1.7, 1.8, 1.9, 1.10" | ||
TaijaBase = "1" | ||
Test = "1.7, 1.8, 1.9, 1.10" | ||
julia = "1.7, 1.8, 1.9, 1.10" | ||
|
||
[extras] | ||
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" | ||
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] | ||
test = ["Aqua", "MPI", "Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
using TaijaParallel | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!(TaijaParallel, :DocTestSetup, :(using TaijaParallel); recursive=true) | ||
DocMeta.setdocmeta!(TaijaParallel, :DocTestSetup, :(using TaijaParallel); recursive = true) | ||
|
||
makedocs(; | ||
modules=[TaijaParallel], | ||
authors="Patrick Altmeyer", | ||
repo="https://github.com/JuliaTrustworthyAI/TaijaParallel.jl/blob/{commit}{path}#{line}", | ||
sitename="TaijaParallel.jl", | ||
format=Documenter.HTML(; | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
canonical="https://JuliaTrustworthyAI.github.io/TaijaParallel.jl", | ||
edit_link="main", | ||
assets=String[], | ||
modules = [TaijaParallel], | ||
authors = "Patrick Altmeyer", | ||
repo = "https://github.com/JuliaTrustworthyAI/TaijaParallel.jl/blob/{commit}{path}#{line}", | ||
sitename = "TaijaParallel.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = get(ENV, "CI", "false") == "true", | ||
canonical = "https://JuliaTrustworthyAI.github.io/TaijaParallel.jl", | ||
edit_link = "main", | ||
assets = String[], | ||
), | ||
pages=[ | ||
"Home" => "index.md", | ||
], | ||
pages = ["Home" => "index.md"], | ||
) | ||
|
||
deploydocs(; | ||
repo="github.com/JuliaTrustworthyAI/TaijaParallel.jl", | ||
devbranch="main", | ||
) | ||
deploydocs(; repo = "github.com/JuliaTrustworthyAI/TaijaParallel.jl", devbranch = "main") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/CounterfactualExplanations.jl/CounterfactualExplanations.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
using CounterfactualExplanations | ||
using CounterfactualExplanations: generate_counterfactual | ||
using CounterfactualExplanations.Evaluation: evaluate | ||
import CounterfactualExplanations | ||
using Logging | ||
using ProgressMeter | ||
|
||
include("assign_traits.jl") | ||
include("threads/threads.jl") | ||
include("threads/threads.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
"The `generate_counterfactual` method is parallelizable." | ||
ProcessStyle(::Type{<:typeof(generate_counterfactual)}) = IsParallel() | ||
ProcessStyle(::Type{<:typeof(CounterfactualExplanations.generate_counterfactual)}) = | ||
IsParallel() | ||
|
||
"The `evaluate` function is parallelizable." | ||
function ProcessStyle(::Type{<:typeof(CounterfactualExplanations.Evaluation.evaluate)}) | ||
return IsParallel() | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
5ec77f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
It turns out that previously this package actually relied on the existing functionality in CounterfactualExplanations.jl. This has been fixed now and all functionality related to parallelization has been removed from CounterfactualExplanations.jl (deprecated, technically). This package now depend on TaijaBase.jl, a new meta package for all packages in the Taija ecosystem.
5ec77f4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/104314
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: