Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hydesign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TOPFARM
hydesign
Commits
8e7b7540
Commit
8e7b7540
authored
1 year ago
by
Mikkel Friis-Møller
Committed by
Mikkel Friis-Møller
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
making the EGO deterministic per default
parent
1fe006d0
No related branches found
No related tags found
1 merge request
!122
making the EGO deterministic per default
Pipeline
#51090
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hydesign/Parallel_EGO.py
+3
-3
3 additions, 3 deletions
hydesign/Parallel_EGO.py
with
3 additions
and
3 deletions
hydesign/Parallel_EGO.py
+
3
−
3
View file @
8e7b7540
...
...
@@ -252,12 +252,12 @@ def concat_to_existing(x,y,xnew,ynew):
def
surrogate_optimization
(
inputs
):
# Calling the optimization of the surrogate model
x
,
kwargs
=
inputs
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
])
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
]
,
kwargs
[
'
n_seed
'
]
)
return
opt_sm
(
kwargs
[
'
sm
'
],
mixint
,
x
,
fmin
=
kwargs
[
'
yopt
'
][
0
,
0
])
def
surrogate_evaluation
(
inputs
):
# Evaluates the surrogate model
seed
,
kwargs
=
inputs
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
])
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
]
,
kwargs
[
'
n_seed
'
]
)
return
eval_sm
(
kwargs
[
'
sm
'
],
mixint
,
scaler
=
kwargs
[
'
scaler
'
],
...
...
@@ -457,7 +457,7 @@ class EfficientGlobalOptimizationDriver(Driver):
# -------------------------------------------------------
# LHS intial doe
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
])
mixint
=
get_mixint_context
(
kwargs
[
'
variables
'
]
,
kwargs
[
'
n_seed
'
]
)
sampling
=
mixint
.
build_sampling_method
(
LHS
,
criterion
=
"
maximin
"
,
random_state
=
kwargs
[
'
n_seed
'
])
xdoe
=
sampling
(
kwargs
[
'
n_doe
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment