DiSMEC++
prediction.h File Reference
#include <filesystem>
#include "matrix_types.h"

Go to the source code of this file.

Namespaces

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

Functions

void dismec::io::prediction::save_sparse_predictions (const path &target, const PredictionMatrix &values, const IndexMatrix &indices)
 Saves sparse predictions as a text file. More...
 
void dismec::io::prediction::save_sparse_predictions (std::ostream &target, const PredictionMatrix &values, const IndexMatrix &indices)
 Saves sparse predictions as a text file. More...
 
std::pair< IndexMatrix, PredictionMatrix > dismec::io::prediction::read_sparse_prediction (std::istream &source)
 Reads sparse predictions as saved by save_sparse_predictions(). More...
 
std::pair< IndexMatrix, PredictionMatrix > dismec::io::prediction::read_sparse_prediction (const path &source)
 Reads sparse predictions as saved by save_sparse_predictions(). More...
 
void dismec::io::prediction::save_dense_predictions_as_txt (const path &target, const PredictionMatrix &values)
 Saves predictions as a dense txt matrix. More...
 
void dismec::io::prediction::save_dense_predictions_as_txt (std::ostream &target, const PredictionMatrix &values)
 Saves predictions as a dense txt matrix. More...
 
void dismec::io::prediction::save_dense_predictions_as_npy (const path &target, const PredictionMatrix &values)
 Saves predictions as a dense npy file. More...
 
void dismec::io::prediction::save_dense_predictions_as_npy (std::ostream &target, const PredictionMatrix &values)
 Saves predictions as a dense npy file. More...