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 πŸŽ€

  • -s method β€” 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 πŸ‘‘

svm-train(1), svm-predict(1)


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. πŸ’œβœ¨