svm-subset(1)
π svm-subset β a subset selection tool for LIBSVM π
okay bestie, listen. this is svm-subset, and it's giving "let me just take a lil bite of your dataset first" energy. it lives in the User Manuals section, it's a LIBSVM thing, and it is lowkey so useful. π¦
β¨ SYNOPSIS β¨
svm-subset [ -s method ] dataset number [ output1 ] [ output2 ]
like. that's the whole vibe. dataset in, number out, and optionally two little files to catch the pieces. π
πΈ DESCRIPTION πΈ
so here's the tea, bestie: training on big data is time consuming. like, so time consuming. sometimes you're not ready to commit to the whole thing and you should honestly just work on a smaller subset first. π«Ά
the python script subset.py randomly selects a specified number of samples. and for classification data specifically, we serve you a stratified selection so the class distribution in your subset stays the same as the original. no cap, that's the whole point. β¨
π OPTIONS π
-smethod β picks your selection method. two choices, pick your fighter:0β stratified selection (classification only) (default). this is the one you get if you say nothing at all. main character default energy. π1β random selection. chaos mode. fair enough. π
- output1 β the subset. if output1 is omitted, the subset will be printed on the screen instead. so like, it's not lost, it's just chillin' in your terminal. π
- output2 β the rest of data. everything that didn't make the cut goes here. it's not personal, it's just math. π
π FILES π
See svm-train(1) for the format of dataset. yes bestie, go read that one too, iykyk. π§
β 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. and that's it, that's the whole trick. ate. π₯
π BUGS π
Please report bugs to the Debian BTS. if something is acting up, tell the Debian folks, not me, i'm just the messenger bestie. π
π AUTHOR π
Chih-Chung Chang, Chih-Jen Lin <cjlin@csie.ntu.edu.tw>, Chen-Tse Tsai <ctse.tsai@gmail.com> (packaging)
π SEE ALSO π
ngl, go read the SEE ALSO ones too. they're the squad. π
and that's a wrap, bestie! this page is from the Linux manual, dated DEC 2009. yeah, 2009, it's vintage, it's iconic, it's still serving. πβ¨
π¦ where this page comes from
- debian bookworm: libsvm-tools 3.24+ds-6 Β· BSD-3-Clause
- debian trixie: libsvm-tools 3.24+ds-6.1 Β· BSD-3-Clause
- ubuntu jammy: libsvm-tools 3.24+ds-6 Β· BSD-3-Clause
- ubuntu noble: libsvm-tools 3.24+ds-6ubuntu2 Β· BSD-3-Clause
- ubuntu resolute: libsvm-tools 3.24+ds-6.1 Β· BSD-3-Clause
- ubuntu stonking: libsvm-tools 3.24+ds-6.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms