Skip to content

Commit 25d95f1

Browse files
Merge pull request #460 from sathvikbhagavan/sb/cleanup
Few cleanups related to julia version, compats and tests of SurrogatesMOE
2 parents 1cff140 + 4320779 commit 25d95f1

File tree

9 files changed

+18
-17
lines changed

9 files changed

+18
-17
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Aqua = "0.8"
1919
Cubature = "1.5"
2020
Distributions = "0.25.71"
2121
ExtendableSparse = "1"
22-
Flux = "0.13"
22+
Flux = "0.14"
2323
ForwardDiff = "0.10.19"
2424
GLM = "1.5"
2525
IterativeSolvers = "0.9"

lib/SurrogatesAbstractGPs/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
99

1010
[compat]
1111
AbstractGPs = "0.5"
12-
Surrogates = "6.0"
13-
julia = "1.6"
12+
Surrogates = "6"
13+
julia = "1.10"
1414

1515
[extras]
1616
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"

lib/SurrogatesFlux/Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
88
Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
99

1010
[compat]
11-
Flux = "0.13, 0.14"
12-
Surrogates = "6.0.0"
13-
julia = "1.6"
11+
Flux = "0.14"
12+
Surrogates = "6"
13+
julia = "1.10"
1414

1515
[extras]
1616
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

lib/SurrogatesMOE/Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@ Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
88
GaussianMixtures = "cc18c42c-b769-54ff-9e2a-b28141a64aae"
99
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
11+
Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
1112
SurrogatesFlux = "4f55584b-dac4-4b1c-802a-b7c47b72cb4c"
1213
SurrogatesPolyChaos = "50679fc6-c85c-4a6e-ac63-dc3c8bd8cb1c"
1314
SurrogatesRandomForest = "3fee2672-df33-422b-aa65-d915eeac013a"
14-
Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
1515
XGBoost = "009559a3-9522-5dbb-924b-0b6ed2b22bb9"
1616

1717
[compat]
1818
Distributions = "0.25.71"
1919
GaussianMixtures = "0.3.6"
20-
julia = "1.6"
21-
Surrogates = "6.0"
20+
Surrogates = "6"
2221
SurrogatesFlux = "0.1.0"
2322
SurrogatesPolyChaos = "0.1.0"
2423
SurrogatesRandomForest = "0.1.0"
2524
XGBoost = "2"
25+
julia = "1.10"
2626

2727
[extras]
2828
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
29+
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
2930
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
3031
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
31-
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
3232

3333
[targets]
3434
test = ["Flux", "Test", "SafeTestsets", "StableRNGs"]

lib/SurrogatesMOE/test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ end
116116
lb = [-1.0, -1.0]
117117
ub = [1.0, 1.0]
118118
n = 120
119-
x = sample(n, lb, ub, RandomSample())
119+
x = sample(n, lb, ub, LatinHypercubeSample())
120120
y = discont_NDIM.(x)
121121
x_test = sample(10, lb, ub, GoldenSample())
122122

@@ -184,7 +184,7 @@ end
184184
lb = [-1.0, -1.0]
185185
ub = [1.0, 1.0]
186186
n = 110
187-
x = sample(n, lb, ub, RandomSample())
187+
x = sample(n, lb, ub, LatinHypercubeSample())
188188
y = discont_NDIM.(x)
189189
expert_types = [InverseDistanceStructure(p = 1.0),
190190
RadialBasisStructure(radial_function = linearRadial(), scale_factor = 1.0,

lib/SurrogatesPolyChaos/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
99

1010
[compat]
1111
PolyChaos = "0.2"
12-
Surrogates = "6.0"
13-
julia = "1.6"
12+
Surrogates = "6"
13+
julia = "1.10"
1414

1515
[extras]
1616
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"

lib/SurrogatesRandomForest/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ XGBoost = "009559a3-9522-5dbb-924b-0b6ed2b22bb9"
1010
[compat]
1111
Surrogates = "6"
1212
XGBoost = "2"
13-
julia = "1.6"
13+
julia = "1.10"
1414

1515
[extras]
1616
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"

lib/SurrogatesSVM/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Surrogates = "6fc51010-71bc-11e9-0e15-a3fcc6593c49"
1010
[compat]
1111
LIBSVM = "0.8"
1212
Surrogates = "6"
13-
julia = "1.6"
13+
julia = "1.10"
1414

1515
[extras]
1616
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"

src/Optimization.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2045,7 +2045,8 @@ function surrogate_optimize(obj, rtea::RTEA, lb, ub, surrRTEAND::AbstractSurroga
20452045
return pareto_set, pareto_front
20462046
end
20472047

2048-
function surrogate_optimize(obj::Function, ::EI, lb::AbstractArray, ub::AbstractArray, krig, sample_type::SectionSample;
2048+
function surrogate_optimize(obj::Function, ::EI, lb::AbstractArray, ub::AbstractArray, krig,
2049+
sample_type::SectionSample;
20492050
maxiters = 100, num_new_samples = 100)
20502051
dtol = 1e-3 * norm(ub - lb)
20512052
eps = 0.01

0 commit comments

Comments
 (0)