Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FreeForestML
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Benjamin Paul Jaeger
FreeForestML
Commits
cd721267
Verified
Commit
cd721267
authored
5 years ago
by
Frank Sauerburger
Browse files
Options
Downloads
Patches
Plain Diff
Implement histogram factory
parent
6e6ead6b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
HistogramFactory.ipynb
+158
-0
158 additions, 0 deletions
HistogramFactory.ipynb
histogram.ipynb
+16
-9
16 additions, 9 deletions
histogram.ipynb
nnfwtbn/plot.py
+5
-1
5 additions, 1 deletion
nnfwtbn/plot.py
with
179 additions
and
10 deletions
HistogramFactory.ipynb
0 → 100644
+
158
−
0
View file @
cd721267
This diff is collapsed.
Click to expand it.
histogram.ipynb
+
16
−
9
View file @
cd721267
This diff is collapsed.
Click to expand it.
nnfwtbn/plot.py
+
5
−
1
View file @
cd721267
...
@@ -6,6 +6,7 @@ from matplotlib.ticker import AutoMinorLocator
...
@@ -6,6 +6,7 @@ from matplotlib.ticker import AutoMinorLocator
from
nnfwtbn.process
import
Process
from
nnfwtbn.process
import
Process
from
nnfwtbn.cut
import
Cut
from
nnfwtbn.cut
import
Cut
from
nnfwtbn.variable
import
Variable
from
nnfwtbn.variable
import
Variable
import
nnfwtbn.error
as
err
ATLAS
=
"
Work in Progress
"
ATLAS
=
"
Work in Progress
"
INFO
=
"
$\sqrt{s} = 13\,\mathrm{TeV}$, $36.1\,\mathrm{fb}^{-1}$
\n
Some selection
"
INFO
=
"
$\sqrt{s} = 13\,\mathrm{TeV}$, $36.1\,\mathrm{fb}^{-1}$
\n
Some selection
"
...
@@ -21,6 +22,8 @@ class HistogramFactory:
...
@@ -21,6 +22,8 @@ class HistogramFactory:
Accepts any number of positional and keyword arguments. The arguments
Accepts any number of positional and keyword arguments. The arguments
are stored internally and use default value for hist(). See __call__().
are stored internally and use default value for hist(). See __call__().
"""
"""
self
.
args
=
args
self
.
kwds
=
kwds
def
__call__
(
self
,
*
args
,
**
kwds
):
def
__call__
(
self
,
*
args
,
**
kwds
):
"""
"""
...
@@ -32,8 +35,9 @@ class HistogramFactory:
...
@@ -32,8 +35,9 @@ class HistogramFactory:
The method returns the return value of hist.
The method returns the return value of hist.
"""
"""
hist
(
*
self
.
args
,
*
args
,
**
dict
(
self
.
kwds
,
**
kwds
))
def
hist
(
dataframe
,
variable
,
bins
,
*
stacks
,
selection
=
None
,
def
hist
(
dataframe
,
variable
,
bins
,
stacks
,
selection
=
None
,
range
=
None
,
blind
=
None
,
axes
=
None
,
figure
=
None
,
range
=
None
,
blind
=
None
,
axes
=
None
,
figure
=
None
,
weight
=
None
,
**
kwds
):
weight
=
None
,
**
kwds
):
"""
"""
...
...
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