Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pes_to_spec
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Machine Learning projects.
pes_to_spec
Merge requests
!11
Includes input energy parameter in the model and adds non-linearities
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Includes input energy parameter in the model and adds non-linearities
with_energy
into
main
Overview
0
Commits
10
Pipelines
0
Changes
1
Merged
Danilo Enoque Ferreira de Lima
requested to merge
with_energy
into
main
1 year ago
Overview
0
Commits
10
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
0a8cafd0
Prev
Next
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
0a8cafd0
Adds non-linear terms between the pulse energy and low-resolution data.
· 0a8cafd0
Danilo Ferreira de Lima
authored
1 year ago
pes_to_spec/model.py
+
2
−
2
Options
@@ -504,10 +504,10 @@ class SelectRelevantLowResolution(TransformerMixin, BaseEstimator):
for
channel
,
item
in
X
.
items
()}
if
not
keep_dictionary_structure
:
selected
=
list
(
y
.
values
())
if
self
.
poly
:
selected
+=
[
np
.
sqrt
(
np
.
fabs
(
v
))
for
v
in
y
.
values
()]
if
pulse_energy
is
not
None
:
selected
+=
[
pulse_energy
[:,
np
.
newaxis
,
:]]
if
self
.
poly
:
selected
+=
[
pulse_energy
[:,
np
.
newaxis
,
:]
*
v
for
v
in
y
.
values
()]
return
np
.
concatenate
(
selected
,
axis
=-
1
)
return
y
Loading