Skip to main content

Fetcher for LIBSVM datasets

Project description

image0 image1

A python util to fetch datasets from the LIBSVM website.

Getting design matrix and target variable is as easy as:

from libsvmdata import fetch_libsvm
X, y = fetch_libsvm("news20.binary")

Currently supported datasets are in libsvmdata.supported.

The datasets are saved in a subfolder libsvm inside libsvmdata.datasets.DATA_HOME, whose value is:

  • the environment variable LIBSVMDATA_HOME if it exists,

  • else, the environment variable XDG_DATA_HOME if it exists,

  • else, $HOME/data.

Project details


Download files

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

Source Distribution

libsvmdata-0.4.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

libsvmdata-0.4.1-py3-none-any.whl (7.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page