Belle II Software
development
Toggle main menu visibility
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
mva_examples.py
1
#!/usr/bin/env python3
2
# -- analysis/tests/mva_examples.py
3
4
11
12
import
b2test_utils
as
b2tu
13
import
b2test_utils_analysis
as
b2tua
14
15
16
17
18
class
ExamplesTest
(b2tua.ExamplesTest):
19
def
test_mva_examples
(self):
20
"""
21
Test supported mva examples.
22
"""
23
# list of examples that cannot be tested
24
broken_mva_egs = [
'B2A712-DeepContinuumSuppression_MVATrain.py'
,
# training takes too long and cannot be shortened
25
'B2A713-DeepContinuumSuppression_MVAExpert.py'
,
# requires weight file created in previous example
26
'B2A714-DeepContinuumSuppression_MVAModel.py'
# MVA model description and not standalone example script
27
]
28
29
self._test_examples_dir(
'analysis/examples/mva/'
, broken_mva_egs, nevents=100)
30
31
32
if
__name__ ==
'__main__'
:
33
with
b2tu.clean_working_directory():
34
b2tua.unittest.main()
mva_examples.ExamplesTest
extend the examples test class to actually run over the mva examples:
Definition:
mva_examples.py:18
mva_examples.ExamplesTest.test_mva_examples
def test_mva_examples(self)
Definition:
mva_examples.py:19
analysis
tests
mva_examples.py
Generated on Wed Apr 9 2025 02:35:00 for Belle II Software by
1.9.6