6 #ifndef DISMEC_IO_PREDICTION_H
7 #define DISMEC_IO_PREDICTION_H
14 using std::filesystem::path;
void save_dense_predictions_as_txt(const path &target, const PredictionMatrix &values)
Saves predictions as a dense txt matrix.
void save_dense_predictions_as_npy(const path &target, const PredictionMatrix &values)
Saves predictions as a dense npy file.
std::pair< IndexMatrix, PredictionMatrix > read_sparse_prediction(std::istream &source)
Reads sparse predictions as saved by save_sparse_predictions().
void save_sparse_predictions(const path &target, const PredictionMatrix &values, const IndexMatrix &indices)
Saves sparse predictions as a text file.
types::DenseRowMajor< long > IndexMatrix
Matrix used for indices in sparse predictions.
types::DenseRowMajor< real_t > PredictionMatrix
Dense matrix in Row Major format used for predictions.