Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
LBN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3pia
LBN
Commits
c794085d
Commit
c794085d
authored
Dec 23, 2018
by
Marcel Rieger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve some docs.
parent
2ae6cc64
Pipeline
#94029
passed with stages
in 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lbn.py
lbn.py
+8
-8
No files found.
lbn.py
View file @
c794085d
...
...
@@ -265,7 +265,7 @@ class LBN(object):
with
tf
.
variable_scope
(
"particles"
):
self
.
build_combinations
(
"particle"
,
self
.
n_particles
)
# rest frames are not buil
d
for COMBINATIONS boost mode
# rest frames are not buil
t
for COMBINATIONS boost mode
if
self
.
boost_mode
!=
self
.
COMBINATIONS
:
with
tf
.
variable_scope
(
"restframes"
):
self
.
build_combinations
(
"restframe"
,
self
.
n_restframes
)
...
...
@@ -480,8 +480,8 @@ class LBN(object):
"""
Builds the output features. *features* should be a list of feature names as registered to
the :py:attr:`feature_factory` instance. When *None*, the default features
``["E", "px", "py", "pz"]`` are buil
d
. *external_features* can be a list of tensors of
externally produced features, that are concatenated to the buil
d
features and are, e.g.,
``["E", "px", "py", "pz"]`` are buil
t
. *external_features* can be a list of tensors of
externally produced features, that are concatenated to the buil
t
features and are, e.g.,
subject to the internal batch normalization.
"""
# default to reshaped 4-vector elements
...
...
@@ -523,8 +523,8 @@ class LBN(object):
class
FeatureFactoryBase
(
object
):
"""
Base class of the feature factory. It does not implement
ed
actual features but rather the
feature wrapping and tensor caching functionality. So-called hidden features are subject to
Base class of the feature factory. It does not implement actual features but rather the
feature wrapping and tensor caching functionality. So-called hidden features are
also
subject to
caching but are not supposed to be accessed by the LBN. They rather provide intermediate results
that are used in multiple places and retained for performance purposes.
"""
...
...
@@ -556,7 +556,7 @@ class FeatureFactoryBase(object):
"""
Wraps and registers a feature function. It ensures that the stored function is bound to this
instance. *name* defaults to the actual function name. When *hidden* is *None*, the decision
is inferred from whether
the feature name
starts with an underscore.
is inferred from whether
*name*
starts with an underscore.
"""
if
not
name
:
name
=
func
.
__name__
...
...
@@ -588,7 +588,7 @@ class FeatureFactoryBase(object):
def
_wrap_features
(
self
):
"""
Interprets all non-excluded instance methods as feature functions and replaces them by
caching-aware wrappers.
caching-aware wrappers
using :py:meth:`_wrap_feature`
.
"""
# loop through attributes
for
name
in
dir
(
self
):
...
...
@@ -607,7 +607,7 @@ class FeatureFactoryBase(object):
class
FeatureFactory
(
FeatureFactoryBase
):
"""
Default feature factory implementing
a bunch of
feature mappings.
Default feature factory implementing
various generic
feature mappings.
"""
def
__init__
(
self
,
lbn
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment