Skip to content

Commit

Permalink
fixes attribute ranking computations
Browse files Browse the repository at this point in the history
  • Loading branch information
mischmi96 committed Nov 23, 2021
1 parent 6107e0b commit 015213c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ANOVAapprox"
uuid = "5e027bd6-ab01-4733-8320-e0223e929ebb"
authors = ["Michael Schmischke <michael.schmischke@math.tu-chemnitz.de> and Felix Bartel <felix.bartel@math.tu-chemnitz.de>"]
version = "1.1.2"
version = "1.1.3"

[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
6 changes: 4 additions & 2 deletions src/analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ function get_AttributeRanking(a::approx, λ::Float64)::Vector{Float64}

for i = 1:length(U)
u = U[i]
weights = 0.0
for s in u
r[s] += gsis[u] * factors[i, s]
r[s] += gsis[u] * 1/factors[i, s]
weights += 1/factors[i, s]
end
nf += gsis[u] * sum(factors[i, :])
nf += weights * gsis[u]
end

return r ./ nf
Expand Down

2 comments on commit 015213c

@mischmi96
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 register branch=main

@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/49241

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.1.3 -m "<description of version>" 015213ca9f9120ff0daa9fdca39bfacad32decb2
git push origin v1.1.3

Please sign in to comment.