Skip to main content

Python bindings for sofia-ml

Project description


PySofia is a python wrapper around the methods present in the C++ sofia-ml library. These include Stochastic Gradient Descent implementations of some ranking algorithms, notably RankSVM.


  • cython >= 0.17 (previous versions will not work)
  • numpy
  • sklearn >= 0.15
  • six
  • enum34 (for Python versions before 3.4)
  • A C++ compiler (gcc will do)

You will not need to install sofia-ml since it is incuded in this distribution


$ pip install -U git+



Trains a model using stochastic gradient descent. See docstring for more details.

pysofia.compat.RankSVM implements an estimator following the conventions used in scikit-learn.


Check out the latest version at github:


Apache License 2.0


PySofia is the work of Fabian Pedregosa, currently maintained by Roman Yurchak. The sofia-ml library is written by D. Sculley.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pysofia, version 0.9
Filename, size File type Python version Upload date Hashes
Filename, size pysofia-0.9.tar.gz (21.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page