Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickStats
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
Show more breadcrumbs
Alkaid Cheng
QuickStats
Merge requests
!152
You need to sign in or sign up before continuing.
Aggregated updates for the next release (0.7.0.3)
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Aggregated updates for the next release (0.7.0.3)
dev
into
master
Overview
0
Commits
67
Pipelines
17
Changes
71
Merged
Alkaid Cheng
requested to merge
dev
into
master
1 year ago
Overview
0
Commits
67
Pipelines
17
Changes
71
Expand
Improvement to RooProcessor and RDataFrame utils
Add more ROOT-related diagnostic methods
Fix error in formula string in newer ROOT version
Fix warning in analysis data preprocessing
Improvement legend handling
Fix p-value and significance calculation for any ndof and mu hypothesis in likelihood fits
Improvement to VariableDistributionPlot: added support for drawing errors on stacked plot, better merging of styles and options, allow hiding portion of data
Edited
1 year ago
by
Alkaid Cheng
0
0
Merge request reports
Compare
master
version 16
0b6a5436
1 year ago
version 15
603090e6
1 year ago
version 14
5c16c1b4
1 year ago
version 13
cbdf449c
1 year ago
version 12
ba25f460
1 year ago
version 11
8a9b3fde
1 year ago
version 10
184c7406
1 year ago
version 9
d3e54e31
1 year ago
version 8
6766aecb
1 year ago
version 7
eaf916c6
1 year ago
version 6
dbfcee2a
1 year ago
version 5
3269bd18
1 year ago
version 4
7151035e
1 year ago
version 3
6eb16dc6
1 year ago
version 2
1ca8502d
1 year ago
version 1
07744573
1 year ago
master (base)
and
latest version
latest version
5bba77c2
67 commits,
1 year ago
version 16
0b6a5436
65 commits,
1 year ago
version 15
603090e6
60 commits,
1 year ago
version 14
5c16c1b4
59 commits,
1 year ago
version 13
cbdf449c
58 commits,
1 year ago
version 12
ba25f460
56 commits,
1 year ago
version 11
8a9b3fde
44 commits,
1 year ago
version 10
184c7406
33 commits,
1 year ago
version 9
d3e54e31
31 commits,
1 year ago
version 8
6766aecb
30 commits,
1 year ago
version 7
eaf916c6
27 commits,
1 year ago
version 6
dbfcee2a
26 commits,
1 year ago
version 5
3269bd18
25 commits,
1 year ago
version 4
7151035e
24 commits,
1 year ago
version 3
6eb16dc6
23 commits,
1 year ago
version 2
1ca8502d
22 commits,
1 year ago
version 1
07744573
21 commits,
1 year ago
71 files
+
2020
−
938
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
71
Search (e.g. *.vue) (Ctrl+P)
quickstats/analysis/data_preprocessing.py
+
2
−
2
Options
@@ -16,9 +16,9 @@ def fix_negative_weights(df, mode:Union[int, NegativeWeightMode, str]=0,
return
None
mask
=
df
[
weight_col
]
<
0
if
mode
==
NegativeWeightMode
.
SETZERO
:
df
[
weight_col
]
[
mask
]
=
0
df
.
loc
[
mask
,
weight_col
]
=
0
elif
mode
==
NegativeWeightMode
.
SETABS
:
df
[
weight_col
]
[
mask
]
=
abs
(
df
[
weight_col
][
mask
])
df
.
loc
[
mask
,
weight_col
]
=
abs
(
df
[
weight_col
][
mask
])
def
shuffle_arrays
(
*
arrays
,
random_state
:
Optional
[
int
]
=
None
):
if
random_state
<
0
:
Loading