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
Eric.Schanet
KerasROOTClassification
Commits
1c275a61
Commit
1c275a61
authored
6 years ago
by
Nikolai.Hartmann
Browse files
Options
Downloads
Patches
Plain Diff
plot_profile_2D_all maybe working
parent
8321da68
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
plotting.py
+7
-4
7 additions, 4 deletions
plotting.py
with
7 additions
and
4 deletions
plotting.py
+
7
−
4
View file @
1c275a61
...
...
@@ -20,9 +20,9 @@ logger.addHandler(logging.NullHandler())
Some further plotting functions
"""
def
save_show
(
plt
,
fig
,
filename
):
def
save_show
(
plt
,
fig
,
filename
,
**
kwargs
):
"
Save a figure and show it in case we are in ipython or jupyter notebook.
"
fig
.
savefig
(
filename
)
fig
.
savefig
(
filename
,
**
kwargs
)
try
:
get_ipython
plt
.
show
()
...
...
@@ -234,8 +234,8 @@ def plot_NN_vs_var_2D_all(plotname, model, means,
save_show
(
plt
,
fig
,
plotname
,
bbox_inches
=
'
tight
'
)
def
plot_profile_2D_all
(
plotname
,
model
,
events
,
def
plot_profile_2D_all
(
plotname
,
model
,
events
,
varx_index
,
vary_index
,
nbinsx
,
xmin
,
xmax
,
nbinsy
,
ymin
,
ymax
,
transform_function
=
None
,
...
...
@@ -248,6 +248,9 @@ def plot_profile_2D_all(plotname, model,
"
Similar to plot_NN_2D, but creates a grid of plots for all neurons.
"
valsx
=
np
.
array
(
events
[:,
varx_index
])
valsy
=
np
.
array
(
events
[:,
vary_index
])
# transform
if
transform_function
is
not
None
:
events
=
transform_function
(
events
)
...
...
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