Class AddScoresStageBase#

Inheritance Relationships#

Base Type#

  • public mrc::pymrc::PythonNode< std::shared_ptr< ControlMessage >, std::shared_ptr< ControlMessage > >

Derived Types#

Class Documentation#

class AddScoresStageBase : public mrc::pymrc::PythonNode<std::shared_ptr<ControlMessage>, std::shared_ptr<ControlMessage>>#

Base class for both AddScoresStage and AddClassificationStage

Subclassed by morpheus::AddClassificationsStage, morpheus::AddScoresStage

Public Types

using base_t = mrc::pymrc::PythonNode<std::shared_ptr<ControlMessage>, std::shared_ptr<ControlMessage>>#

Public Functions

AddScoresStageBase(
std::map<std::size_t, std::string> idx2label,
std::optional<float> threshold
)#

Construct a new Add Classifications Stage object.

Parameters:
  • threshold – : Threshold to consider true/false for each class

  • idx2label – : Index to classification labels map

source_type_t on_data(sink_type_t msg)#

Called every time a message is passed to this stage