Skip to content
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

Bump QMC to 0.3 and fix tests #446

Merged
merged 18 commits into from
Dec 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
314439c
chore: Replace UniformSample with RandomSample
ashutosh-b-b Oct 7, 2023
5fda238
build: bump QMC and julia version
ashutosh-b-b Nov 13, 2023
1433365
fix: update `sample` method in Surrogates
ashutosh-b-b Nov 13, 2023
59903d4
feat: add `SectionSample` from QMC to Surrogates
ashutosh-b-b Nov 13, 2023
df6022e
fix: fix maxima of lb and minima of ub in `surrogate_optimise` for
ashutosh-b-b Nov 13, 2023
0296180
fix(SurrogatesFlux): remove `@epochs` since its no longer in Flux
ashutosh-b-b Nov 13, 2023
7cb5f3f
test(SurrogatesFlux): update tests
ashutosh-b-b Nov 13, 2023
5c1445e
test(SurrogatesMOE): mark tests broken
ashutosh-b-b Nov 13, 2023
187546c
test(Surrogates): increase RMSE threshold in tests of GEKPLS
ashutosh-b-b Nov 13, 2023
2e49e2c
test(Surrogates): qualify `free_dimenstions` from Surrogates instead of
ashutosh-b-b Nov 13, 2023
99863b8
test(Surrogates): replace `LowDiscrepancySample` with `HaltonSample`
ashutosh-b-b Nov 13, 2023
1063532
test(Surrogates): update tests for sampling with new QMC Api
ashutosh-b-b Nov 13, 2023
76d24ca
test: update the MOE ND tests, use 9 samples and unmark broken
sathvikbhagavan Dec 12, 2023
16a520f
Merge branch 'master' into bb/bump_QMC
ChrisRackauckas Dec 12, 2023
db9342c
test: increase one extra point in GEKPLS test 11
sathvikbhagavan Dec 12, 2023
d4531b2
ci: dev subpackages of Surrogates in doc build
sathvikbhagavan Dec 13, 2023
e27e5e2
refactor: export HaltonSample instead of LowDiscrepancySample
sathvikbhagavan Dec 13, 2023
9826638
docs: update docs to use HaltonSample
sathvikbhagavan Dec 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: update sample method in Surrogates
ashutosh-b-b committed Nov 13, 2023
commit 14333657f35082538603941e1b0a84b75c242163
4 changes: 2 additions & 2 deletions src/Sampling.jl
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@ using QuasiMonteCarlo: SamplingAlgorithm
# of vectors of Tuples
function sample(args...; kwargs...)
s = QuasiMonteCarlo.sample(args...; kwargs...)
if s isa Vector
if isone(size(s, 1))
# 1D case: s is a Vector
return s
return vec(s)
else
# ND case: s is a d x n matrix, where d is the dimension and n is the number of samples
return collect(reinterpret(reshape, NTuple{size(s, 1), eltype(s)}, s))