6 #ifndef DISMEC_WEIGHTS_H
7 #define DISMEC_WEIGHTS_H
A model combines a set of weight with some meta-information about these weights.
namespace for all model-related io functions.
void load_sparse_weights_txt(std::istream &source, Model &target)
Loads sparse weights from plain-text format.
void save_dense_weights_npy(std::streambuf &target, const Model &model)
Saves the dense weights in a npy file.
void save_as_sparse_weights_txt(std::ostream &target, const Model &model, double threshold)
Saves the weights in sparse plain-text format, culling small weights.
void load_dense_weights_txt(std::istream &source, Model &target)
Loads weights saved by io::model::save_dense_weights_txt.
void save_dense_weights_txt(std::ostream &target, const Model &model)
Saves the dense weights in a plain-text format.
void load_dense_weights_npy(std::streambuf &target, Model &model)
Loads dense weights from a npy file.