Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
deepOF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
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
Lucas Miranda
deepOF
Commits
71fe18c2
Commit
71fe18c2
authored
4 years ago
by
Lucas Miranda
Browse files
Options
Downloads
Patches
Plain Diff
Changed default hyperparameter values
parent
3b845054
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deepof/train_utils.py
+3
-3
3 additions, 3 deletions
deepof/train_utils.py
with
3 additions
and
3 deletions
deepof/train_utils.py
+
3
−
3
View file @
71fe18c2
...
...
@@ -7,7 +7,7 @@
Simple utility functions used in deepof example scripts. These are not part of the main package
"""
from
datetime
import
datetime
from
datetime
import
date
,
datetime
from
kerastuner
import
BayesianOptimization
from
kerastuner
import
HyperParameters
...
...
@@ -62,7 +62,7 @@ def load_treatments(train_path):
def
get_callbacks
(
X_train
:
np
.
array
,
batch_size
:
int
,
cp
:
bool
,
variational
:
bool
,
predictor
:
float
,
loss
:
str
,
)
->
Tuple
:
)
->
List
[
Union
[
Any
]]
:
"""
Generates callbacks for model training, including:
- run_ID: run name, with coarse parameter details;
- tensorboard_callback: for real-time visualization;
...
...
@@ -169,7 +169,7 @@ def tune_search(
tuner
=
BayesianOptimization
(
hypermodel
,
directory
=
"
BayesianOptx
"
,
directory
=
"
BayesianOptx
_{}_{}
"
.
format
(
loss
,
str
(
date
.
today
()))
,
executions_per_trial
=
n_replicas
,
logger
=
TensorBoardLogger
(
metrics
=
[
"
val_mae
"
],
logdir
=
"
./logs/hparams
"
),
max_trials
=
bayopt_trials
,
...
...
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