---
name: "svm-subset"
section: "1"
platform: "linux"
package: "libsvm-tools"
version: "3.24+ds-6.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/svm-subset"
---

# svm-subset(1)

a subset selection tool for LIBSVM

## NAME

svm-subset - a subset selection tool for LIBSVM

## SYNOPSIS

**svm-subset \[ -s** *method* **\]** *dataset number* **\[** *output1* **\] \[** *output2* **\]**

## DESCRIPTION

Training large data is time consuming. Sometimes one should work on a smaller subset first. The python script subset.py randomly selects a specified number of samples. For classification data, we provide a stratified selection to ensure the same class distribution in the subset.

## OPTIONS

- \-s method

  - **0**

  \-- stratified selection (classification only) (default)

- **1**

  \-- random selection

- The subset. If output1 is omitted, the subset will be printed on the screen.

  - output1

  - output2

  The rest of data.

## FILES

See [**svm-train**(1)](/svm-train/1.md) for the format of  *dataset*

## EXAMPLES

-

  svm-subset heart\_scale 100 file1 file2

From heart\_scale 100 samples are randomly selected and stored in file1. All remaining instances are stored in file2.

## BUGS

Please report bugs to the Debian BTS.

## AUTHOR

Chih-Chung Chang, Chih-Jen Lin \<cjlin@csie.ntu.edu.tw\>, Chen-Tse Tsai \<ctse.tsai@gmail.com\> (packaging)

## SEE ALSO

[**svm-train**(1)](/svm-train/1.md), [**svm-predict**(1)](/svm-predict/1.md)
