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
b607030c
Commit
b607030c
authored
6 years ago
by
Nikolai.Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
renaming tfhelpers to utils
parent
7058afbf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plotting.py
+3
-4
3 additions, 4 deletions
plotting.py
scripts/plot_NN_2D.py
+1
-1
1 addition, 1 deletion
scripts/plot_NN_2D.py
utils.py
+1
-1
1 addition, 1 deletion
utils.py
with
5 additions
and
6 deletions
plotting.py
+
3
−
4
View file @
b607030c
...
@@ -10,7 +10,7 @@ from mpl_toolkits.axes_grid1 import ImageGrid, make_axes_locatable
...
@@ -10,7 +10,7 @@ from mpl_toolkits.axes_grid1 import ImageGrid, make_axes_locatable
import
numpy
as
np
import
numpy
as
np
from
.keras_visualize_activations.read_activations
import
get_activations
from
.keras_visualize_activations.read_activations
import
get_activations
from
.
tfhelper
s
import
get_grad_function
,
max_activation_wrt_input
,
create_random_event
from
.
util
s
import
get_grad_function
,
max_activation_wrt_input
,
create_random_event
import
logging
import
logging
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
@@ -328,10 +328,9 @@ if __name__ == "__main__":
...
@@ -328,10 +328,9 @@ if __name__ == "__main__":
import
logging
import
logging
logging
.
basicConfig
()
logging
.
basicConfig
()
logging
.
getLogger
(
"
tfhelpers
"
).
setLevel
(
logging
.
DEBUG
)
logging
.
getLogger
().
setLevel
(
logging
.
DEBUG
)
logging
.
getLogger
(
__name__
).
setLevel
(
logging
.
DEBUG
)
from
.
tfhelper
s
import
get_single_neuron_function
,
get_max_activation_events
from
.
util
s
import
get_single_neuron_function
,
get_max_activation_events
import
meme
import
meme
# meme.setOptions(overrideCache="/scratch-local/nhartmann/meme_cache")
# meme.setOptions(overrideCache="/scratch-local/nhartmann/meme_cache")
...
...
This diff is collapsed.
Click to expand it.
scripts/plot_NN_2D.py
+
1
−
1
View file @
b607030c
...
@@ -15,7 +15,7 @@ from KerasROOTClassification.plotting import (
...
@@ -15,7 +15,7 @@ from KerasROOTClassification.plotting import (
plot_hist_2D_events
,
plot_hist_2D_events
,
plot_cond_avg_actmax_2D
plot_cond_avg_actmax_2D
)
)
from
KerasROOTClassification.
tfhelper
s
import
get_single_neuron_function
,
get_max_activation_events
from
KerasROOTClassification.
util
s
import
get_single_neuron_function
,
get_max_activation_events
parser
=
argparse
.
ArgumentParser
(
description
=
'
Create various 2D plots for a single neuron
'
)
parser
=
argparse
.
ArgumentParser
(
description
=
'
Create various 2D plots for a single neuron
'
)
parser
.
add_argument
(
"
project_dir
"
)
parser
.
add_argument
(
"
project_dir
"
)
...
...
This diff is collapsed.
Click to expand it.
tfhelper
s.py
→
util
s.py
+
1
−
1
View file @
b607030c
...
@@ -8,7 +8,7 @@ import keras.backend as K
...
@@ -8,7 +8,7 @@ import keras.backend as K
from
meme
import
cache
from
meme
import
cache
logger
=
logging
.
getLogger
(
"
tfhelpers
"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
.
addHandler
(
logging
.
NullHandler
())
logger
.
addHandler
(
logging
.
NullHandler
())
def
get_single_neuron_function
(
model
,
layer
,
neuron
,
scaler
=
None
):
def
get_single_neuron_function
(
model
,
layer
,
neuron
,
scaler
=
None
):
...
...
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