treelite
Public Member Functions | Public Attributes | List of all members
treelite::model_builder::Metadata Struct Reference

Metadata object, consisting of metadata information about the model at large. More...

#include <model_builder.h>

Collaboration diagram for treelite::model_builder::Metadata:
Collaboration graph

Public Member Functions

 Metadata (std::int32_t num_feature, TaskType task_type, bool average_tree_output, std::int32_t num_target, std::vector< std::int32_t > const &num_class, std::array< std::int32_t, 2 > const &leaf_vector_shape)
 Constructor for Metadata object. More...
 

Public Attributes

std::int32_t num_feature {0}
 
TaskType task_type {TaskType::kRegressor}
 
bool average_tree_output {false}
 
std::int32_t num_target {1}
 
std::vector< std::int32_t > num_class {1}
 
std::array< std::int32_t, 2 > leaf_vector_shape {1, 1}
 

Detailed Description

Metadata object, consisting of metadata information about the model at large.

Constructor & Destructor Documentation

◆ Metadata()

treelite::model_builder::Metadata::Metadata ( std::int32_t  num_feature,
TaskType  task_type,
bool  average_tree_output,
std::int32_t  num_target,
std::vector< std::int32_t > const &  num_class,
std::array< std::int32_t, 2 > const &  leaf_vector_shape 
)

Constructor for Metadata object.

Parameters
num_featureNumber of features
task_typeTask type
average_tree_outputWhether to average outputs of trees
num_targetNumber of targets
num_classNumber of classes. num_class[i] is the number of classes of target i.
leaf_vector_shapeShape of the output from each leaf node

Member Data Documentation

◆ average_tree_output

bool treelite::model_builder::Metadata::average_tree_output {false}

◆ leaf_vector_shape

std::array<std::int32_t, 2> treelite::model_builder::Metadata::leaf_vector_shape {1, 1}

◆ num_class

std::vector<std::int32_t> treelite::model_builder::Metadata::num_class {1}

◆ num_feature

std::int32_t treelite::model_builder::Metadata::num_feature {0}

◆ num_target

std::int32_t treelite::model_builder::Metadata::num_target {1}

◆ task_type

TaskType treelite::model_builder::Metadata::task_type {TaskType::kRegressor}

The documentation for this struct was generated from the following file: