Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
instance_segmentation_classic
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
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
Maciej Wielgosz
instance_segmentation_classic
Commits
5b44ebbf
Commit
5b44ebbf
authored
2 years ago
by
Maciej Wielgosz
Browse files
Options
Downloads
Patches
Plain Diff
bayes update for loading previous results
parent
e537575b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bayes_opt_run.py
+6
-2
6 additions, 2 deletions
bayes_opt_run.py
with
6 additions
and
2 deletions
bayes_opt_run.py
+
6
−
2
View file @
5b44ebbf
from
bayes_opt
import
BayesianOptimization
from
bayes_opt.logger
import
JSONLogger
from
bayes_opt.event
import
Events
from
bayes_opt.util
import
load_logs
from
pipeline_test_command_params_just_tls
import
RunCommand
...
...
@@ -50,10 +51,13 @@ optimizer = BayesianOptimization(
allow_duplicate_points
=
True
)
logger
=
JSONLogger
(
path
=
"
./bayes_opt_run_logs.json
"
)
# load the logs
load_logs
(
optimizer
,
logs
=
[
"
./bayes_opt_run_logs.json
"
])
logger
=
JSONLogger
(
path
=
"
./bayes_opt_run_logs_1.json
"
)
optimizer
.
subscribe
(
Events
.
OPTIMIZATION_STEP
,
logger
)
optimizer
.
maximize
(
init_points
=
5
,
init_points
=
1
,
n_iter
=
100
)
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