CPython module for Markov::API::CUDA objects.
More...
CPython module for Markov::API::CUDA objects.
◆ BOOST_PYTHON_MODULE()
Markov::Markopy::CUDA::BOOST_PYTHON_MODULE |
( |
cudamarkopy |
| ) |
|
Definition at line 20 of file cudaMarkopy.cu.
25 class_<Markov::API::CUDA::CUDAModelMatrix>(
"CUDAModelMatrix", init<>())
30 .def(
"Export", Export,
"Export a model to file.")
33 .def(
"FastRandomWalk", FastRandomWalk)
Extension of Markov::API::ModelMatrix which is modified to run on GPU devices.
__host__ void FastRandomWalk(unsigned long int n, const char *wordlistFileName, int minLen, int maxLen, bool bFileIO, bool bInfinite)
Random walk on the Matrix-reduced Markov::Model.
Markov::Model with char represented nodes.
void DumpJSON()
Debug function to dump the model to a JSON file.
bool ConstructMatrix()
Construct the related Matrix data for the model.
void Import(const char *filename)
Open a file to import with filename, and call bool Model::Import with std::ifstream.
void Train(const char *datasetFileName, char delimiter, int threads)
Train the model with the dataset file.
class for the final Markov Model, constructed from nodes and edges.
References Markov::API::ModelMatrix::ConstructMatrix(), Markov::API::ModelMatrix::DumpJSON(), Markov::Model< NodeStorageType >::Export(), Markov::API::ModelMatrix::Import(), and Markov::API::ModelMatrix::Train().