|
CNum 0.2.1
CPU-optimized ML library for C++
|
A pool of trained models. More...
#include <ModelPool.h>
Public Member Functions | |
| ModelPool (::std::string path, size_t n_models=20) | |
| Overloaded default constructor. | |
| ModelPool (const ModelPool &)=delete | |
| ModelPool & | operator= (const ModelPool &)=delete |
| ~ModelPool () | |
| Destructor. | |
| ModelType * | pull () |
| Pull a model from the pool. | |
| void | push (ModelType *model) |
| Push a model to the pool model A raw pointer to a trained model pulled from the pool. | |
A pool of trained models.
| CNum::Model::ModelPool< ModelType >::ModelPool | ( | ::std::string | path, |
| size_t | n_models = 20 ) |
Overloaded default constructor.
| path | Path to your trained model (.cmod) |
| n_models | The number of models in the pool |
|
delete |
| CNum::Model::ModelPool< ModelType >::~ModelPool | ( | ) |
Destructor.
|
delete |
| ModelType * CNum::Model::ModelPool< ModelType >::pull | ( | ) |
Pull a model from the pool.
| void CNum::Model::ModelPool< ModelType >::push | ( | ModelType * | model | ) |
Push a model to the pool model A raw pointer to a trained model pulled from the pool.