55 static PyObject *predict (PyObject *dummy, PyObject *args, PyObject *kwds);
68 static PyObject *save (PyObject *dummy, PyObject *args, PyObject *kwds);
82 static PyObject *load (PyObject *dummy, PyObject *args, PyObject *kwds);
121 budgeted_train (PyObject *dummy, PyObject *args, PyObject *kwds);
135 full_train (PyObject *dummy, PyObject *args, PyObject *kwds);
144 static PyMethodDef LIBIRWLSMethods[] = {
145 {
"load", (PyCFunction)load, METH_VARARGS|METH_KEYWORDS,
"It loads a model from a file"},
146 {
"full_train", (PyCFunction)full_train, METH_VARARGS|METH_KEYWORDS,
"It trains a SVM using the parallel IRWLS procedure"},
147 {
"budgeted_train", (PyCFunction)budgeted_train, METH_VARARGS|METH_KEYWORDS,
"It trains a budgeted SVM using the parallel IRWLS procedure"},
148 {
"save", (PyCFunction)save, METH_VARARGS|METH_KEYWORDS,
"It saves a model in a file"},
149 {
"predict", (PyCFunction)predict, METH_VARARGS|METH_KEYWORDS,
"Predictions using a trained model"},
150 { NULL, NULL, 0, NULL}
A dataset.
Definition: IOStructures.h:114
PyMODINIT_FUNC initLIBIRWLS(void)
Initialization of the python module.
Definition: pythonmodule.c:517
svm_dataset numpy2datasetWithAverage(PyObject *arr1, PyObject *arr2)
Convert numpy array to a dataset and the average of every class data.
Definition: pythonmodule.c:277
void delModel(PyObject *pymodel)
Model capsule destructor.
Definition: pythonmodule.c:54
svm_dataset numpy2dataset(PyObject *arr1, PyObject *arr2)
Convert numpy array to a dataset.
Definition: pythonmodule.c:213