Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
baseLess
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
Lannoy, Carlos de
baseLess
Commits
944b5177
Commit
944b5177
authored
3 years ago
by
Noordijk, Ben
Browse files
Options
Downloads
Patches
Plain Diff
Some commented lines to be used for debugging
parent
5cf38f1f
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
compare_accuracy.py now saves confusion matrices and can be called on the...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyperparameter_search/optimize_hyperparams.py
+3
-1
3 additions, 1 deletion
hyperparameter_search/optimize_hyperparams.py
with
3 additions
and
1 deletion
hyperparameter_search/optimize_hyperparams.py
+
3
−
1
View file @
944b5177
...
...
@@ -13,6 +13,7 @@ sys.path.append(f'{Path(__file__).resolve()}/..')
from
helper_functions
import
parse_output_path
from
pathlib
import
Path
from
hyperopt.mongoexp
import
MongoTrials
from
hyperopt
import
Trials
from
contextlib
import
suppress
import
tensorflow
as
tf
...
...
@@ -125,7 +126,8 @@ def main(args):
# Minimize objective
# TODO: exp_key should be unique every time. Now we manually change it
trials
=
MongoTrials
(
'
mongo://localhost:1234/db/jobs
'
,
exp_key
=
'
some_new_key
'
)
trials
=
MongoTrials
(
'
mongo://localhost:1234/db/jobs
'
,
exp_key
=
'
knoert_klokiebril
'
)
# trials = Trials()
out_param_dict
=
hp
.
fmin
(
fmin_objective
,
space
=
space
,
algo
=
hp
.
tpe
.
suggest
,
...
...
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