|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
#include "models/TreeNode.hpp"#include "models/TreeCondition.hpp"#include "models/TreeResponse.hpp"#include "models/Tree.hpp"#include "models/BootstrapTree.hpp"#include "models/Forest.hpp"#include "models/VariableImportance.hpp"#include "stats/ConfusionMatrix.hpp"#include <nlohmann/json.hpp>#include <optional>#include <ostream>Go to the source code of this file.
Classes | |
| struct | nlohmann::adl_serializer< ppforest2::Forest > |
| struct | nlohmann::adl_serializer< ppforest2::serialization::Export< ppforest2::Forest > > |
| struct | nlohmann::adl_serializer< ppforest2::serialization::Export< ppforest2::Model::Ptr > > |
| struct | nlohmann::adl_serializer< ppforest2::serialization::Export< ppforest2::Tree > > |
| struct | nlohmann::adl_serializer< ppforest2::stats::ConfusionMatrix > |
| struct | nlohmann::adl_serializer< ppforest2::Tree > |
| struct | nlohmann::adl_serializer< ppforest2::VariableImportance > |
| struct | ppforest2::serialization::Export< T > |
| A model bundled with its export metadata and optional metrics. More... | |
| struct | ppforest2::serialization::JsonModelVisitor |
| Visitor that serializes a model (Tree or Forest) to JSON. More... | |
| struct | ppforest2::serialization::JsonNodeVisitor |
| Visitor that serializes a tree node to JSON. More... | |
Namespaces | |
| namespace | nlohmann |
| namespace | ppforest2 |
| namespace | ppforest2::serialization |
| JSON serialization and deserialization for ppforest2 models. | |
Typedefs | |
| using | ppforest2::serialization::GroupNames = std::vector<std::string> |
| Group name vector for labeled serialization. | |
| using | ppforest2::serialization::json = nlohmann::json |
Functions | |
| std::vector< std::string > | ppforest2::serialization::to_labels (types::ResponseVector const &predictions, std::vector< std::string > const &group_names) |
| Map integer response codes to group name strings. | |
Serialization | |
| json | ppforest2::serialization::to_json (BootstrapTree const &tree) |
| json | ppforest2::serialization::to_json (Forest const &forest) |
| json | ppforest2::serialization::to_json (Model const &model) |
| json | ppforest2::serialization::to_json (stats::ConfusionMatrix const &cm) |
| json | ppforest2::serialization::to_json (Tree const &tree) |
| json | ppforest2::serialization::to_json (TreeNode const &node) |
| json | ppforest2::serialization::to_json (types::FeatureMatrix const &matrix) |
| json | ppforest2::serialization::to_json (VariableImportance const &vi) |
Labeled serialization (uses group names instead of integer codes) | |
| json | ppforest2::serialization::to_json (BootstrapTree const &tree, GroupNames const &group_names) |
| json | ppforest2::serialization::to_json (Forest const &forest, GroupNames const &group_names) |
| json | ppforest2::serialization::to_json (Model const &model, GroupNames const &group_names) |
| json | ppforest2::serialization::to_json (stats::ConfusionMatrix const &cm, GroupNames const &group_names) |
| json | ppforest2::serialization::to_json (Tree const &tree, GroupNames const &group_names) |
| json | ppforest2::serialization::to_json (TreeNode const &node, GroupNames const &group_names) |
Deserialization | |
| template<typename T> | |
| T | ppforest2::serialization::from_json (json const &j) |
| Deserialize from a model block (integer labels only). | |
| template<> | |
| Forest | ppforest2::serialization::from_json< Forest > (json const &j) |
| template<> | |
| stats::ConfusionMatrix | ppforest2::serialization::from_json< stats::ConfusionMatrix > (json const &j) |
| template<> | |
| Tree | ppforest2::serialization::from_json< Tree > (json const &j) |
| template<> | |
| VariableImportance | ppforest2::serialization::from_json< VariableImportance > (json const &j) |
Stream operators | |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &os, Forest const &forest) |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &os, Tree const &tree) |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &os, TreeCondition const &condition) |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &os, TreeNode const &node) |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &os, TreeResponse const &response) |
| template<typename V> | |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &ostream, std::map< int, V > const &map) |
| template<typename K, typename V> | |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &ostream, std::map< K, V > const &map) |
| template<typename V, typename C1, typename C2> | |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &ostream, std::set< V, C1, C2 > const &set) |
| template<typename V> | |
| std::ostream & | ppforest2::serialization::operator<< (std::ostream &ostream, std::vector< V > const &vec) |