Base class: defines shared interface and utilities for all models.
More...
#include <treelitemodel.hpp>
Base class: defines shared interface and utilities for all models.
Definition at line 27 of file treelitemodel.hpp.
◆ TreeliteModelBase()
| triggeralgs::TreeliteModelBase::TreeliteModelBase |
( |
int | numTargets = 1, |
|
|
int | maxNumClass = 1 ) |
◆ ~TreeliteModelBase()
| virtual triggeralgs::TreeliteModelBase::~TreeliteModelBase |
( |
| ) |
|
|
virtualdefault |
◆ get_leaf_output_type()
| const char * triggeralgs::TreeliteModelBase::get_leaf_output_type |
( |
void | | ) |
const |
|
virtual |
◆ get_num_class()
| void triggeralgs::TreeliteModelBase::get_num_class |
( |
int32_t * | out | ) |
const |
Definition at line 17 of file treelitemodel.cpp.
17 {
20 }
21}
static const int32_t num_class[1]
FELIX Initialization std::string initerror FELIX queue timed out
◆ get_num_feature()
| virtual int32_t triggeralgs::TreeliteModelBase::get_num_feature |
( |
| ) |
const |
|
pure virtual |
◆ get_num_target()
| int32_t triggeralgs::TreeliteModelBase::get_num_target |
( |
void | | ) |
const |
◆ get_threshold_type()
| const char * triggeralgs::TreeliteModelBase::get_threshold_type |
( |
void | | ) |
const |
|
virtual |
◆ postprocess()
| void triggeralgs::TreeliteModelBase::postprocess |
( |
float * | result | ) |
const |
|
virtual |
Definition at line 30 of file treelitemodel.cpp.
30 {
31
32 const float alpha = (float)1;
34 result[i] = (float)(1) / ((float)(1) + expf(-alpha * result[i]));
35 }
36}
◆ predict()
| virtual void triggeralgs::TreeliteModelBase::predict |
( |
union Entry * | data, |
|
|
int | pred_margin, |
|
|
float * | result ) const |
|
pure virtual |
◆ MAX_N_CLASS
| int32_t triggeralgs::TreeliteModelBase::MAX_N_CLASS |
|
protected |
◆ N_TARGET
| int32_t triggeralgs::TreeliteModelBase::N_TARGET |
|
protected |
◆ num_class
| const int32_t triggeralgs::TreeliteModelBase::num_class = { 1 } |
|
staticprotected |
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/triggeralgs/include/triggeralgs/ProtoDUNEBSMWindow/treelitemodel.hpp
- /github/workspace/dunedaq/sourcecode/triggeralgs/src/ProtoDUNEBSMWindow/treelitemodel.cpp