Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
3pia
CMS Analyses
Tools
Commits
46f004c9
Commit
46f004c9
authored
4 years ago
by
jan.middendorf@rwth-aachen.de
Browse files
Options
Downloads
Patches
Plain Diff
Python 3 compatibility
parent
b3c6e706
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
keras.py
+5
-5
5 additions, 5 deletions
keras.py
with
5 additions
and
5 deletions
keras.py
+
5
−
5
View file @
46f004c9
from
itertools
import
izip
#
from itertools import izip
from
collections
import
OrderedDict
,
defaultdict
import
fnmatch
import
numpy
as
np
...
...
@@ -7,12 +7,12 @@ from tqdm import tqdm
from
inspect
import
getargspec
from
warnings
import
warn
import
re
from
tensorflow.python.keras.engine.training_utils
import
make_logs
#
from tensorflow.python.keras.engine.training_utils import make_logs
from
tensorflow.python.keras.backend
import
track_variable
from
operator
import
itemgetter
from
evil
import
pin
from
data
import
SKDict
,
DSS
from
.
evil
import
pin
from
.
data
import
SKDict
,
DSS
# various helper functions
...
...
@@ -188,7 +188,7 @@ class Moment2Std(tf.keras.callbacks.Callback):
def
on_x_end
(
self
,
x
,
logs
=
None
):
if
logs
is
None
:
return
for
key1
,
mom1
in
logs
.
items
():
for
key1
,
mom1
in
list
(
logs
.
items
()
)
:
if
not
key1
.
endswith
(
self
.
mom1
):
continue
prefix
=
key1
[:
-
len
(
self
.
mom1
)]
...
...
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