LIBIRWLS
|
Functions of the python extension that makes use of this library. More...
Go to the source code of this file.
Functions | |
void | delModel (PyObject *pymodel) |
Model capsule destructor. More... | |
svm_dataset | numpy2dataset (PyObject *arr1, PyObject *arr2) |
Convert numpy array to a dataset. More... | |
svm_dataset | numpy2datasetWithAverage (PyObject *arr1, PyObject *arr2) |
Convert numpy array to a dataset and the average of every class data. More... | |
PyMODINIT_FUNC | initLIBIRWLS (void) |
Initialization of the python module. More... | |
Functions of the python extension that makes use of this library.
A definition of the functions of this python extension
void delModel | ( | PyObject * | pymodel | ) |
Model capsule destructor.
The capsule destructor of the model object
pymodel | The model to delete |
PyMODINIT_FUNC initLIBIRWLS | ( | void | ) |
Initialization of the python module.
This function is called when the python extension is initialzed.
svm_dataset numpy2dataset | ( | PyObject * | arr1, |
PyObject * | arr2 | ||
) |
Convert numpy array to a dataset.
It converts a dataset in numpy array format to our internal format.
arr1 | Python numpy array with the training set features. |
args | Python numpy array with the training set labels. |
svm_dataset numpy2datasetWithAverage | ( | PyObject * | arr1, |
PyObject * | arr2 | ||
) |
Convert numpy array to a dataset and the average of every class data.
It converts a dataset in numpy array format to our internal format and calculates the average of every class data.
arr1 | Python numpy array with the training set features. |
args | Python numpy array with the training set labels. |