Skip to content

Commit

Permalink
Merge pull request #485 from JuliaTrustworthyAI/475-no-method-matchin…
Browse files Browse the repository at this point in the history
…g-for-neurotreemodel

475 no method matching for neurotreemodel
  • Loading branch information
pat-alt authored Sep 30, 2024
2 parents 2bf113a + 355077b commit 5fc8db7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

*Note*: We try to adhere to these practices as of version [v1.1.1].

## Version [1.3.3] - 2024-09-30

### Changed

- Fixed a remaining bug in `NeuroTreeExt` extensions. [#475]

## Version [1.3.2] - 2024-09-24

### Added
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "CounterfactualExplanations"
uuid = "2f13d31b-18db-44c1-bc43-ebaf2cff0be0"
authors = ["Patrick Altmeyer <p.altmeyer@tudelft.nl> and contributors"]
version = "1.3.2"
version = "1.3.3"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand Down
2 changes: 1 addition & 1 deletion ext/NeuroTreeExt/neurotree.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ logits = Models.logits(M, x) # calculates the logit scores for each output class
function Models.logits(
M::Models.Model, type::CounterfactualExplanations.NeuroTreeModel, X::AbstractArray
)
X = X[:, :] |> x -> convert.(eltype(Flux.params(M.fitresult().chain)[1]), x)
X = convert(Matrix{Float32}, X[:, :])
return M.fitresult(X)
end

Expand Down

2 comments on commit 5fc8db7

@pat-alt
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

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/116321

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

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:

git tag -a v1.3.3 -m "<description of version>" 5fc8db768478acef5bb341baf8eb2b24dbcccbc9
git push origin v1.3.3

Please sign in to comment.