data-manipulation-utilities 0.2.8.dev720__py3-none-any.whl → 0.2.8.dev730__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {data_manipulation_utilities-0.2.8.dev720.dist-info → data_manipulation_utilities-0.2.8.dev730.dist-info}/METADATA +2 -1
- data_manipulation_utilities-0.2.8.dev730.dist-info/RECORD +82 -0
- dmu/plotting/plotter.py +23 -11
- dmu_data/__init__.py +0 -0
- dmu_data/ml/tests/diagnostics_from_file.yaml +13 -0
- dmu_data/ml/tests/diagnostics_from_model.yaml +10 -0
- dmu_data/ml/tests/diagnostics_multiple_methods.yaml +10 -0
- dmu_data/ml/tests/diagnostics_overlay.yaml +33 -0
- dmu_data/ml/tests/train_mva.yaml +60 -0
- dmu_data/ml/tests/train_mva_def.yaml +75 -0
- dmu_data/ml/tests/train_mva_with_diagnostics.yaml +87 -0
- dmu_data/ml/tests/train_mva_with_preffix.yaml +58 -0
- dmu_data/plotting/tests/2d.yaml +24 -0
- dmu_data/plotting/tests/fig_size.yaml +13 -0
- dmu_data/plotting/tests/high_stat.yaml +22 -0
- dmu_data/plotting/tests/legend.yaml +12 -0
- dmu_data/plotting/tests/line.yaml +15 -0
- dmu_data/plotting/tests/name.yaml +14 -0
- dmu_data/plotting/tests/no_bounds.yaml +12 -0
- dmu_data/plotting/tests/normalized.yaml +9 -0
- dmu_data/plotting/tests/plug_fwhm.yaml +24 -0
- dmu_data/plotting/tests/plug_stats.yaml +19 -0
- dmu_data/plotting/tests/simple.yaml +9 -0
- dmu_data/plotting/tests/stats.yaml +9 -0
- dmu_data/plotting/tests/styling.yaml +18 -0
- dmu_data/plotting/tests/title.yaml +14 -0
- dmu_data/plotting/tests/weights.yaml +13 -0
- dmu_data/rfile/friends.yaml +13 -0
- dmu_data/stats/fitter/test_simple.yaml +28 -0
- dmu_data/stats/kde_optimizer/control.json +1 -0
- dmu_data/stats/kde_optimizer/signal.json +1 -0
- dmu_data/stats/parameters/data.yaml +178 -0
- dmu_data/tests/config.json +6 -0
- dmu_data/tests/config.yaml +4 -0
- dmu_data/tests/pdf_to_tex.txt +34 -0
- dmu_data/text/transform.toml +4 -0
- dmu_data/text/transform.txt +6 -0
- dmu_data/text/transform_set.toml +8 -0
- dmu_data/text/transform_set.txt +6 -0
- dmu_data/text/transform_trf.txt +12 -0
- data_manipulation_utilities-0.2.8.dev720.dist-info/RECORD +0 -45
- {data_manipulation_utilities-0.2.8.dev720.dist-info → data_manipulation_utilities-0.2.8.dev730.dist-info}/WHEEL +0 -0
- {data_manipulation_utilities-0.2.8.dev720.dist-info → data_manipulation_utilities-0.2.8.dev730.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
saving:
|
2
|
+
plt_dir : plotting/pluggins/fwhm
|
3
|
+
plots:
|
4
|
+
x :
|
5
|
+
binning : [-5.0, 8.0, 40]
|
6
|
+
title : x distribution
|
7
|
+
y :
|
8
|
+
binning : [-5.0, 8.0, 40]
|
9
|
+
title : y distribution
|
10
|
+
plugin:
|
11
|
+
fwhm:
|
12
|
+
x :
|
13
|
+
plot : true
|
14
|
+
obs : [-2, 4]
|
15
|
+
plot : true
|
16
|
+
format : FWHM={:.3f}
|
17
|
+
add_std: True
|
18
|
+
y :
|
19
|
+
plot : true
|
20
|
+
obs : [-4, 8]
|
21
|
+
plot : true
|
22
|
+
format : FWHM={:.3f}
|
23
|
+
add_std: True
|
24
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
saving:
|
2
|
+
plt_dir : plotting/pluggins/stats
|
3
|
+
plots:
|
4
|
+
x :
|
5
|
+
binning : [-5.0, 8.0, 40]
|
6
|
+
title : x distribution
|
7
|
+
styling:
|
8
|
+
linestyle : '-'
|
9
|
+
y :
|
10
|
+
binning : [-5.0, 8.0, 40]
|
11
|
+
title : y distribution
|
12
|
+
styling:
|
13
|
+
linestyle : '-'
|
14
|
+
plugin:
|
15
|
+
stats:
|
16
|
+
x :
|
17
|
+
mean : $\mu$={:.2f}
|
18
|
+
rms : $\sigma$={:.2f}
|
19
|
+
sum : $\Sigma$={:.0f}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
saving:
|
2
|
+
plt_dir : tests/plotting/styling
|
3
|
+
plots:
|
4
|
+
x :
|
5
|
+
binning : [-5.0, 8.0, 40]
|
6
|
+
title : x distribution
|
7
|
+
styling :
|
8
|
+
class A:
|
9
|
+
histtype : fill
|
10
|
+
color : gray
|
11
|
+
alpha : 0.3
|
12
|
+
class B:
|
13
|
+
color : red
|
14
|
+
histtype : step
|
15
|
+
linestyle: '-'
|
16
|
+
y :
|
17
|
+
binning : [-5.0, 8.0, 40]
|
18
|
+
title : y distribution
|
@@ -0,0 +1,14 @@
|
|
1
|
+
saving:
|
2
|
+
plt_dir : tests/plotting/title
|
3
|
+
|
4
|
+
plots:
|
5
|
+
x :
|
6
|
+
binning : [-5.0, 8.0, 40]
|
7
|
+
yscale : 'linear'
|
8
|
+
labels : ['x', 'Entries']
|
9
|
+
title : 'Title for X plot'
|
10
|
+
y :
|
11
|
+
binning : [-5.0, 8.0, 40]
|
12
|
+
yscale : 'linear'
|
13
|
+
labels : ['y', 'Entries']
|
14
|
+
title : 'Title for Y plot'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
saving:
|
2
|
+
plt_dir : tests/plotting/weights
|
3
|
+
plots:
|
4
|
+
x :
|
5
|
+
weights : weights
|
6
|
+
binning : [-5.0, 8.0, 40]
|
7
|
+
yscale : 'linear'
|
8
|
+
labels : ['x', 'Entries']
|
9
|
+
y :
|
10
|
+
weights : weights
|
11
|
+
binning : [-5.0, 8.0, 40]
|
12
|
+
yscale : 'linear'
|
13
|
+
labels : ['y', 'Entries']
|
@@ -0,0 +1,13 @@
|
|
1
|
+
tree : tree_name
|
2
|
+
primary_keys:
|
3
|
+
- index
|
4
|
+
files :
|
5
|
+
- file_001.root
|
6
|
+
- file_002.root
|
7
|
+
- file_003.root
|
8
|
+
samples:
|
9
|
+
- /tmp/tests/dmu/rfile/main
|
10
|
+
- /tmp/tests/dmu/rfile/frn1
|
11
|
+
- /tmp/tests/dmu/rfile/frn2
|
12
|
+
- /tmp/tests/dmu/rfile/frn3
|
13
|
+
- /tmp/tests/dmu/rfile/frn4
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# The strategies below are exclusive, only can should be used at a time
|
2
|
+
strategy :
|
3
|
+
# This strategy will fit multiple times and retry the fit until either
|
4
|
+
# ntries is exhausted or the pvalue is reached.
|
5
|
+
retry :
|
6
|
+
ntries : 4 #Number of tries
|
7
|
+
pvalue_thresh : 0.05 #Pvalue threshold, if the fit is better than this, the loop ends
|
8
|
+
ignore_status : true #Will pick invalid fits if this is true, otherwise only valid fits will be counted
|
9
|
+
# This will fit smaller datasets and get the value of the shape parameters to allow
|
10
|
+
# these shapes to float only around this value and within nsigma
|
11
|
+
# Fit can be carried out multiple times with larger and larger samples to tighten parameters
|
12
|
+
steps :
|
13
|
+
nsteps : [1e3, 1e4] #Number of entries to use
|
14
|
+
nsigma : [5.0, 2.0] #Number of sigmas for the range of the parameter, for each step
|
15
|
+
# The lines below will split the range of the data [0-10] into two subranges, such that the NLL is built
|
16
|
+
# only in those ranges. The ranges need to be tuples
|
17
|
+
ranges :
|
18
|
+
- !!python/tuple [0, 3]
|
19
|
+
- !!python/tuple [6, 9]
|
20
|
+
#The lines below will allow using contraints for each parameter, where the first element is the mean and the second
|
21
|
+
#the width of a Gaussian constraint. No correlations are implemented, yet.
|
22
|
+
constraints :
|
23
|
+
mu : [5.0, 1.0]
|
24
|
+
sg : [1.0, 0.1]
|
25
|
+
#After each fit, the parameters spciefied below will be printed, for debugging purposes
|
26
|
+
print_pars : ['mu', 'sg']
|
27
|
+
likelihood :
|
28
|
+
binned : false
|