Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Connor Hainje
pidanalysis
Commits
d29d4ecc
Commit
d29d4ecc
authored
Mar 03, 2022
by
Connor Hainje
Browse files
Typo fix in README
parent
f7391554
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d29d4ecc
...
...
@@ -9,9 +9,9 @@ There are _two_ packages included in this repository: `pidplots` and `pidml`. T
## Weight values
Here are the values of the weights, trained on ParticleGun data from
release-05-02-06 using a pion weight of beta = 0.1. (Note: this is valid
Python,
so you can copy-paste this into your notebook, assum
e
`numpy`
is
imported as
`np`
.)
release-05-02-06 using a pion weight of beta = 0.1. (Note: this is valid
Python,
so you can copy-paste this into your notebook, assum
ing
`numpy`
is
imported as
`np`
.)
```
python
wgt
=
np
.
array
(
...
...
@@ -42,8 +42,8 @@ likelihoods = np.stack([
for
part
in
particles
],
axis
=-
1
)
likelihood_ratios
=
likelihoods
/
np
.
sum
(
likelihoods
,
axis
=
1
,
keepdims
=
True
)
# likelihood_ratios[0] = e PID,
# likelihood_ratios[1] = mu PID, etc.
# likelihood_ratios[
:,
0] = e PID
for each event
,
# likelihood_ratios[
:,
1] = mu PID, etc.
```
...
...
Write
Preview
Supports
Markdown
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