Code Monkey home page Code Monkey logo

pysvmlight's Introduction

pysvmlight

Bismillahi-r-Rahmani-r-Rahim In the Name of God, the Merciful, the Compassionate

This is a wrapper for the svmlight library. It allows you to specify an unbiased hyperplane. It also allows you to access the learnt hyperplane after training.

See the svmlight website (http://svmlight.joachims.org/) for full details.

Example of use:

>>> f = DocumentFactory()
>>> docs = [f.new(x.split()) for x in [
...         "this is a nice long document",
...         "this is another nice long document",
...         "this is rather a short document",
...         "a horrible document",
...         "another horrible document"]]
>>> l = Learner()
>>> model = l.learn(docs, [1, 1, 1, -1, -1])
>>> judgments = [model.classify(d) for d in docs]
>>> print model.plane, model.bias

Building from source

Building requires Cython to be installed. Type

$ python setup.py build
$ python setup.py install

in the root directory to build and install.

License

The original svmlight code is included in the lib directory for ease of building. This code is Copyright (c) 2002 Thorsten Joachims - All rights reserved.

The cython code in the src directory is released under the MIT license:

Copyright (c) 2012 Daoud Clarke

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

pysvmlight's People

Contributors

daoudclarke avatar maxlikely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pysvmlight's Issues

Can't build for windows

I using windows 8 64bit and I always get this message when I build it, :(
Someone help me? Thank you so much

ined reference to `_imp__PyInt_FromSsize_t'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x6cf7): undef
ined reference to `_imp__PyFloat_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x6d0a): undef
ined reference to `_imp__PyFloat_AsDouble'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x6d28): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7165): undef
ined reference to `_imp__PyObject_Call'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x71bb): undef
ined reference to `_imp__PyObject_Size'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x71cd): undef
ined reference to `_imp__PyInt_FromSsize_t'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x71e4): undef
ined reference to `_imp__PyTuple_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x720b): undef
ined reference to `_imp__PyObject_Call'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7232): undef
ined reference to `_imp__PyList_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x723a): undef
ined reference to `_imp__PyTuple_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x725b): undef
ined reference to `_imp__PyObject_GetIter'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7299): undef
ined reference to `_imp__PyList_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x72c1): undef
ined reference to `_imp__PyTuple_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x72f2): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x72ff): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x730a): undef
ined reference to `_imp__PyErr_ExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7318): undef
ined reference to `_imp__PyErr_Clear'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7345): undef
ined reference to `_imp__PyNumber_Index'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7354): undef
ined reference to `_imp__PyInt_AsSsize_t'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x737a): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7396): undef
ined reference to `_imp__PyInt_FromLong'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x73ac): undef
ined reference to `_imp__PyNumber_Index'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x73bb): undef
ined reference to `_imp__PyInt_AsSsize_t'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x73e8): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7409): undef
ined reference to `_imp__PyFloat_FromDouble'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7422): undef
ined reference to `_imp__PyTuple_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x749a): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x74a5): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x76b7): undef
ined reference to `_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x76c2): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7714): undef
ined reference to `_imp__PyExc_GeneratorExit'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x771f): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x774c): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7757): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x77dd): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78be): undef
ined reference to `_imp__PyExc_RuntimeError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78c9): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78d5): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78de): undef
ined reference to `_imp__PyExc_GeneratorExit'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78f1): undef
ined reference to `_imp__PyErr_GivenExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x78fa): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7909): undef
ined reference to `_imp__PyErr_GivenExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7913): undef
ined reference to `_imp__PyErr_Clear'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7918): undef
ined reference to `_imp___Py_NoneStruct'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x792f): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x798e): undef
ined reference to `_imp__PyObject_GetAttr'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7999): undef
ined reference to `_imp__PyExc_AttributeError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x79a4): undef
ined reference to `_imp__PyErr_ExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x79b1): undef
ined reference to `_imp__PyErr_WriteUnraisable'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x79b7): undef
ined reference to `_imp__PyErr_Clear'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x79cf): undef
ined reference to `_imp___PyObject_CallFunction_SizeT'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7a69): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7aa6): undef
ined reference to `_imp__PyErr_WriteUnraisable'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7abf): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7ba4): undef
ined reference to `_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7baf): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7bed): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7bf8): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7c0f): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7c4a): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7c79): undef
ined reference to `_imp___Py_NoneStruct'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7c92): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7dbf): undef
ined reference to `_imp__PyArg_UnpackTuple'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7dde): undef
ined reference to `_imp__PyExc_ValueError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7de9): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7dfa): undef
ined reference to `_imp__PyExc_GeneratorExit'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7e0d): undef
ined reference to `_imp__PyErr_GivenExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7e87): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7e92): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x7f1d): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x801d): undef
ined reference to `_imp__PyObject_GetAttr'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x803a): undef
ined reference to `_imp__PyExc_AttributeError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8045): undef
ined reference to `_imp__PyErr_ExceptionMatches'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x805d): undef
ined reference to `_imp__PyErr_Clear'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8093): undef
ined reference to `_imp__PyObject_CallObject'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8133): undef
ined reference to `_imp___Py_NoneStruct'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8142): undef
ined reference to `_imp__PyExc_TypeError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x814d): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x815c): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8167): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x817d): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x81b8): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x825f): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8384): undef
ined reference to `_imp__PyExc_StopIteration'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x838f): undef
ined reference to `_imp__PyErr_SetNone'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x841a): undef
ined reference to `_imp___PyThreadState_Current'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x852e): undef
ined reference to `_imp__PyOS_snprintf'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8536): undef
ined reference to `_imp__Py_GetVersion'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x859c): undef
ined reference to `_imp__PyOS_snprintf'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x85b5): undef
ined reference to `_imp__PyErr_WarnEx'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x85ca): undef
ined reference to `_imp__PyTuple_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x85ec): undef
ined reference to `_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x85fe): undef
ined reference to `_imp__PyCFunction_Call'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8610): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8627): undef
ined reference to `_imp__PyObject_GenericGetAttr'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8631): undef
ined reference to `_imp__PyObject_SelfIter'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8643): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8682): undef
ined reference to `_imp__Py_InitModule4'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x869a): undef
ined reference to `_imp__PyModule_GetDict'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x86b6): undef
ined reference to `_imp__PyImport_AddModule'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x86dd): undef
ined reference to `_imp__PyObject_SetAttrString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x86fe): undef
ined reference to `_imp__PyString_FromStringAndSize'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8704): undef
ined reference to `_imp__PyString_InternFromString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8726): undef
ined reference to `_imp__PyUnicodeUCS2_DecodeUTF8'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8797): undef
ined reference to `_imp__PyInt_FromLong'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x87e6): undef
ined reference to `_imp__PyObject_SetAttrString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x88cd): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x890f): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8951): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8993): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x89d5): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8a17): more
undefined references to `_imp__PyTuple_Pack' follow
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8aee): undef
ined reference to `_imp__PyCode_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8b54): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8be9): undef
ined reference to `_imp__PyCode_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8c37): undef
ined reference to `_imp__PyObject_SetAttrString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8c56): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8c7c): undef
ined reference to `_imp__PyObject_SetAttrString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8caf): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8cdb): undef
ined reference to `_imp__PyCapsule_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8cfa): undef
ined reference to `_imp__PyDict_SetItemString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8d42): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8d68): undef
ined reference to `_imp__PyObject_SetAttrString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8d87): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8d9f): undef
ined reference to `_imp__PyDict_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8dff): undef
ined reference to `_imp__PyObject_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8e6f): undef
ined reference to `_imp__PyObject_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8ea3): undef
ined reference to `_imp__PyDict_SetItemString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8ed5): undef
ined reference to `_imp__PyDict_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8ef7): undef
ined reference to `_imp__PyDict_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8f11): undef
ined reference to `_imp__PyDict_GetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8f24): undef
ined reference to `_imp__PyClass_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8f73): undef
ined reference to `_imp__PyObject_GetAttr'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8f7f): undef
ined reference to `_imp__PyErr_Clear'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8f8a): undef
ined reference to `_imp__PyClass_Type'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8fad): undef
ined reference to `_imp__PyObject_CallFunctionObjArgs'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x8fe4): undef
ined reference to `_imp__PyDict_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x9016): undef
ined reference to `_imp__PyDict_New'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x903b): undef
ined reference to `_imp__PyDict_SetItem'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x90c7): undef
ined reference to `_imp__PyErr_Occurred'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x90dc): undef
ined reference to `_imp__PyExc_ImportError'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x90e7): undef
ined reference to `_imp__PyErr_SetString'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x9119): undef
ined reference to `_imp__PyInt_FromLong'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x9171): undef
ined reference to `_imp__PyTuple_Pack'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x919f): undef
ined reference to `_imp__PyType_Ready'
build\temp.win-amd64-2.7\Release\src\svmlight.o:svmlight.c:(.text+0x91e6): undef
ined reference to `_imp__PyObject_SetAttrString'
c:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/ld.exe: build\temp
.win-amd64-2.7\Release\src\svmlight.o: bad reloc address 0x2cc in section `.data
'
collect2.exe: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

C:\Users\buihuuloc\Desktop\pysvmlight-master>

Changing the kernel parameters from the default?

Hello -

I am pretty new to using Cython and was wondering how to change the kernel type. In the constructor for Learner it seems that the kernel parameters are always set to the default. Is there a way to change these in vanilla python, without going into the cython code and modifying those structs?

Incorporate SVM-Light-TK

Hi, nice project! Do you think you might be adding an interface for the tree kernel extension at some point?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.