-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added wavelets of oder 1,2,3,4 #2
Conversation
bases = ["per", "cos", "cheb", "std" ,"wav1", "wav2", "wav3", "wav4"] | ||
types = Dict("per" => ComplexF64, "cos" => Float64, "cheb" => Float64, "std" => Float64, "wav1" => Float64, "wav2" => Float64,"wav3" => Float64,"wav4" => Float64) |
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.
[JuliaFormatter] reported by reviewdog 🐶
bases = ["per", "cos", "cheb", "std" ,"wav1", "wav2", "wav3", "wav4"] | |
types = Dict("per" => ComplexF64, "cos" => Float64, "cheb" => Float64, "std" => Float64, "wav1" => Float64, "wav2" => Float64,"wav3" => Float64,"wav4" => Float64) | |
bases = ["per", "cos", "cheb", "std", "wav1", "wav2", "wav3", "wav4"] | |
types = Dict( | |
"per" => ComplexF64, | |
"cos" => Float64, | |
"cheb" => Float64, | |
"std" => Float64, | |
"wav1" => Float64, | |
"wav2" => Float64, | |
"wav3" => Float64, | |
"wav4" => Float64, | |
) |
) | ||
gt_systems = Dict("per" => "exp", "cos" => "cos", "cheb" => "cos", "std" => "cos") | ||
gt_systems = Dict("per" => "exp", "cos" => "cos", "cheb" => "cos", "std" => "cos", "wav1" => "wav1", "wav2" => "wav2", "wav3" => "wav3", "wav4" => "wav4") |
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.
[JuliaFormatter] reported by reviewdog 🐶
gt_systems = Dict("per" => "exp", "cos" => "cos", "cheb" => "cos", "std" => "cos", "wav1" => "wav1", "wav2" => "wav2", "wav3" => "wav3", "wav4" => "wav4") | |
gt_systems = Dict( | |
"per" => "exp", | |
"cos" => "cos", | |
"cheb" => "cos", | |
"std" => "cos", | |
"wav1" => "wav1", | |
"wav2" => "wav2", | |
"wav3" => "wav3", | |
"wav4" => "wav4", | |
) |
@@ -8,20 +8,36 @@ function get_GSI( | |||
λ::Float64; | |||
dict::Bool = false, | |||
)::Union{Vector{Float64},Dict{Vector{Int},Float64}} | |||
variances = norms(a.fc[λ]) .^ 2 | |||
if a.basis == "wav1" | |||
variances = norms(a.fc[λ],1,dict=false) .^ 2 |
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.
[JuliaFormatter] reported by reviewdog 🐶
variances = norms(a.fc[λ],1,dict=false) .^ 2 | |
variances = norms(a.fc[λ], 1, dict = false) .^ 2 |
if a.basis == "wav1" | ||
variances = norms(a.fc[λ],1,dict=false) .^ 2 | ||
elseif a.basis == "wav2" | ||
variances = norms(a.fc[λ],2,dict=false) .^ 2 |
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.
[JuliaFormatter] reported by reviewdog 🐶
variances = norms(a.fc[λ],2,dict=false) .^ 2 | |
variances = norms(a.fc[λ], 2, dict = false) .^ 2 |
elseif a.basis == "wav2" | ||
variances = norms(a.fc[λ],2,dict=false) .^ 2 | ||
elseif a.basis == "wav3" | ||
variances = norms(a.fc[λ],3,dict=false) .^ 2 |
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.
[JuliaFormatter] reported by reviewdog 🐶
variances = norms(a.fc[λ],3,dict=false) .^ 2 | |
variances = norms(a.fc[λ], 3, dict = false) .^ 2 |
@@ -16,7 +16,7 @@ using .TestFunctionCheb | |||
|
|||
rng = MersenneTwister(1234) | |||
|
|||
tests = ["misc", "cheb_fista", "cheb_lsqr", "per_lsqr", "per_fista"] | |||
tests = ["misc", "cheb_fista", "cheb_lsqr", "per_lsqr", "per_fista","wav_lsqr"] |
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.
[JuliaFormatter] reported by reviewdog 🐶
tests = ["misc", "cheb_fista", "cheb_lsqr", "per_lsqr", "per_fista","wav_lsqr"] | |
tests = ["misc", "cheb_fista", "cheb_lsqr", "per_lsqr", "per_fista", "wav_lsqr"] |
ds = 2 | ||
M = 10_000 | ||
max_iter = 50 | ||
bw = [4,4] |
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.
[JuliaFormatter] reported by reviewdog 🐶
bw = [4,4] | |
bw = [4, 4] |
λs = [0.0, 1.0] | ||
|
||
|
||
X = rand( d, M) .- 0.5 |
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.
[JuliaFormatter] reported by reviewdog 🐶
X = rand( d, M) .- 0.5 | |
X = rand(d, M) .- 0.5 |
println( "AR: ", sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) ) | ||
@test abs( sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) - 1 ) < 0.0001 |
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.
[JuliaFormatter] reported by reviewdog 🐶
println( "AR: ", sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) ) | |
@test abs( sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) - 1 ) < 0.0001 | |
println("AR: ", sum(ANOVAapprox.get_AttributeRanking(ads, 0.0))) | |
@test abs(sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) - 1) < 0.0001 |
println( "AR: ", sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) ) | ||
@test abs( sum(ANOVAapprox.get_AttributeRanking(ads, 0.0)) - 1 ) < 0.0001 | ||
|
||
bw = ANOVAapprox.get_orderDependentBW(TestFunctionPeriodic.AS, [4,4]) |
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.
[JuliaFormatter] reported by reviewdog 🐶
bw = ANOVAapprox.get_orderDependentBW(TestFunctionPeriodic.AS, [4,4]) | |
bw = ANOVAapprox.get_orderDependentBW(TestFunctionPeriodic.AS, [4, 4]) |
Codecov Report
@@ Coverage Diff @@
## main #2 +/- ##
==========================================
- Coverage 94.05% 0.00% -94.06%
==========================================
Files 5 5
Lines 286 300 +14
==========================================
- Hits 269 0 -269
- Misses 17 300 +283
Continue to review full report at Codecov.
|
No description provided.