QB3 / libsvmdata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%