DiSMEC++
xmc.h File Reference
#include <filesystem>
#include <iosfwd>
#include "fwd.h"

Go to the source code of this file.

Namespaces

 dismec
 Main namespace in which all types, classes, and functions are defined.
 
 dismec::io
 

Enumerations

enum class  dismec::io::IndexMode { dismec::io::ZERO_BASED , dismec::io::ONE_BASED }
 Enum to decide whether indices in an xmc file are starting from 0 or from 1. More...
 

Functions

MultiLabelData dismec::io::read_xmc_dataset (const std::filesystem::path &source, IndexMode mode=IndexMode::ZERO_BASED)
 Reads a dataset given in the extreme multilabel classification format. More...
 
MultiLabelData dismec::io::read_xmc_dataset (std::istream &source, std::string_view name, IndexMode mode=IndexMode::ZERO_BASED)
 reads a dataset given in the extreme multilabel classification format. More...
 
void dismec::io::save_xmc_dataset (std::ostream &target, const MultiLabelData &data)
 Saves the given dataset in XMC format. More...
 
void dismec::io::save_xmc_dataset (const std::filesystem::path &target, const MultiLabelData &data, int precision=4)