ATLAS Offline Software
Loading...
Searching...
No Matches
InferenceConfig Namespace Reference

Functions

 GraphInferenceAlgCfg (flags, name="GraphInferenceAlg", **kwargs)
 GraphSPFilterToolCfg (flags, name="GraphSPFilterTool", **kwargs)
 GraphBucketFilterToolCfg (flags, name="GraphBucketFilterTool", **kwargs)

Function Documentation

◆ GraphBucketFilterToolCfg()

InferenceConfig.GraphBucketFilterToolCfg ( flags,
name = "GraphBucketFilterTool",
** kwargs )

Definition at line 24 of file InferenceConfig.py.

24def GraphBucketFilterToolCfg(flags, name ="GraphBucketFilterTool", **kwargs):
25
26 from AthOnnxComps.OnnxRuntimeSessionConfig import OnnxRuntimeSessionToolCfg
27
28 result = ComponentAccumulator()
29 kwargs.setdefault("ModelSession", result.popToolsAndMerge(OnnxRuntimeSessionToolCfg(flags, model_fname="MuonInference/edgecnn_multi_bucket_sparse_meta.onnx")))
30 kwargs.setdefault("BiasClass0", 1.0) # Working point selection bias for multi-class comparison
31 kwargs.setdefault("OutputLevel", 3) # DEBUG level (1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL)
32
33 the_tool = CompFactory.MuonML.GraphBucketFilterTool(name, **kwargs)
34 result.setPrivateTools(the_tool)
35 return result
36

◆ GraphInferenceAlgCfg()

InferenceConfig.GraphInferenceAlgCfg ( flags,
name = "GraphInferenceAlg",
** kwargs )

Definition at line 6 of file InferenceConfig.py.

6def GraphInferenceAlgCfg(flags, name = "GraphInferenceAlg", **kwargs):
7 result = ComponentAccumulator()
8 the_alg = CompFactory.MuonML.InferenceAlg(name, **kwargs)
9 result.addEventAlgo(the_alg, primary = True)
10 return result
11

◆ GraphSPFilterToolCfg()

InferenceConfig.GraphSPFilterToolCfg ( flags,
name = "GraphSPFilterTool",
** kwargs )

Definition at line 12 of file InferenceConfig.py.

12def GraphSPFilterToolCfg(flags, name ="GraphSPFilterTool", **kwargs):
13
14 from AthOnnxComps.OnnxRuntimeSessionConfig import OnnxRuntimeSessionToolCfg
15
16 result = ComponentAccumulator()
17 kwargs.setdefault("ModelSession", result.popToolsAndMerge(OnnxRuntimeSessionToolCfg(flags, model_fname="/eos/atlas/atlascerngroupdisk/data-art/grid-input/MuonRecRTT/TestModel.onnx")))
18 kwargs.setdefault("MLFilterCut", -3.6) # Working point cut
19
20 the_tool = CompFactory.MuonML.GraphSPFilterTool(name, **kwargs)
21 result.setPrivateTools(the_tool)
22 return result
23