Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KerasROOTClassification
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
Container Registry
Model registry
Operate
Environments
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
Nikolai.Hartmann
KerasROOTClassification
Commits
d9d8f4af
Commit
d9d8f4af
authored
6 years ago
by
Nikolai.Hartmann
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into dev-organisation
parents
1574f973
f0d5dd54
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
toolkit.py
+6
-1
6 additions, 1 deletion
toolkit.py
with
6 additions
and
1 deletion
toolkit.py
+
6
−
1
View file @
d9d8f4af
...
...
@@ -93,6 +93,8 @@ class ClassificationProject(object):
:param optimizer_opts: dictionary of options for the optimizer
:param use_earlystopping: set true to use the keras EarlyStopping callback
:param earlystopping_opts: options for the keras EarlyStopping callback
:param random_seed: use this seed value when initialising the model and produce consistent results. Note:
...
...
@@ -140,6 +142,7 @@ class ClassificationProject(object):
step_bkg
=
2
,
optimizer
=
"
SGD
"
,
optimizer_opts
=
None
,
use_earlystopping
=
True
,
earlystopping_opts
=
None
,
random_seed
=
1234
):
...
...
@@ -159,6 +162,7 @@ class ClassificationProject(object):
self
.
step_signal
=
step_signal
self
.
step_bkg
=
step_bkg
self
.
optimizer
=
optimizer
self
.
use_earlystopping
=
use_earlystopping
if
optimizer_opts
is
None
:
optimizer_opts
=
dict
()
self
.
optimizer_opts
=
optimizer_opts
...
...
@@ -332,7 +336,8 @@ class ClassificationProject(object):
def
callbacks_list
(
self
):
self
.
_callbacks_list
=
[]
self
.
_callbacks_list
.
append
(
self
.
history
)
self
.
_callbacks_list
.
append
(
EarlyStopping
(
**
self
.
earlystopping_opts
))
if
self
.
use_earlystopping
:
self
.
_callbacks_list
.
append
(
EarlyStopping
(
**
self
.
earlystopping_opts
))
self
.
_callbacks_list
.
append
(
CSVLogger
(
os
.
path
.
join
(
self
.
project_dir
,
"
training.log
"
),
append
=
True
))
return
self
.
_callbacks_list
...
...
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