skdatasets.repositories.libsvm.fetch¶
- skdatasets.repositories.libsvm.fetch(collection: str, name: str, *, data_home: str | None = None, return_X_y: Literal[False] = False) Bunch [source]¶
- skdatasets.repositories.libsvm.fetch(collection: str, name: str, *, data_home: str | None = None, return_X_y: Literal[True]) Tuple[ndarray[Any, dtype[float]], ndarray[Any, dtype[Union[int, float]]]]
Fetch LIBSVM dataset.
Fetch a LIBSVM dataset by collection and name. More info at https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets.
- Parameters:
collection (string) – Collection name.
name (string) – Dataset name.
data_home (string or None, default None) – Specify another download and cache folder for the data sets. By default all scikit-learn data is stored in ‘~/scikit_learn_data’ subfolders.
return_X_y (bool, default=False) – If True, returns
(data, target)
instead of a Bunch object.
- Returns:
data (Bunch) – Dictionary-like object with all the data and metadata.
(data, target) (tuple if
return_X_y
is True)