Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/Onnx/include/Acts/Plugins/Onnx/MLTrackClassifier.hpp>
Public Types | |
enum | TrackLabels |
The labels for track quality. More... | |
Public Member Functions | |
TrackLabels | predictTrackLabel (std::vector< float > &inputFeatures, double decisionThreshProb) const |
Predict the track label. | |
bool | isDuplicate (std::vector< float > &inputFeatures, double decisionThreshProb) const |
Check if the predicted track label is 'duplicate'. | |
Public Member Functions inherited from Acts::OnnxRuntimeBase | |
OnnxRuntimeBase ()=default | |
Default constructor. | |
OnnxRuntimeBase (Ort::Env &env, const char *modelPath) | |
Parametrized constructor. | |
~OnnxRuntimeBase ()=default | |
Default destructor. | |
std::vector< float > | runONNXInference (std::vector< float > &inputTensorValues) const |
Run the ONNX inference function. | |
std::vector< std::vector< float > > | runONNXInference (NetworkBatchInput &inputTensorValues) const |
Run the ONNX inference function for a batch of input. | |
std::vector< std::vector < std::vector< float > > > | runONNXInferenceMultiOutput (NetworkBatchInput &inputTensorValues) const |
Run the multi-output ONNX inference function for a batch of input. | |
Definition at line 19 of file MLTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 19 of file MLTrackClassifier.hpp
The labels for track quality.
Definition at line 24 of file MLTrackClassifier.hpp.
View newest version in sPHENIX GitHub at line 24 of file MLTrackClassifier.hpp
bool Acts::MLTrackClassifier::isDuplicate | ( | std::vector< float > & | inputFeatures, |
double | decisionThreshProb | ||
) | const |
Check if the predicted track label is 'duplicate'.
inputFeatures | The vector of input features for the trajectory to be classified |
decisionThreshProb | The probability threshold used to predict the track label |
Definition at line 38 of file MLTrackClassifier.cpp.
View newest version in sPHENIX GitHub at line 38 of file MLTrackClassifier.cpp
References predictTrackLabel().
Referenced by runRecCKFTracks().
Acts::MLTrackClassifier::TrackLabels Acts::MLTrackClassifier::predictTrackLabel | ( | std::vector< float > & | inputFeatures, |
double | decisionThreshProb | ||
) | const |
Predict the track label.
inputFeatures | The vector of input features for the trajectory to be classified |
decisionThreshProb | The probability threshold used to predict the track label |
Definition at line 15 of file MLTrackClassifier.cpp.
View newest version in sPHENIX GitHub at line 15 of file MLTrackClassifier.cpp
References Acts::OnnxRuntimeBase::runONNXInference().
Referenced by isDuplicate().