LINCLASSIF(1)

πŸ’– LINCLASSIF β€” the linclassif manual page, bestie edition πŸ’–

okay so you opened the manual for linclassif, a General Commands Manual situation, and I am so glad you're here. let's get into it 🫢


✨ NAME ✨

linclassif β€” predict labels by a linear classification rule πŸ”₯


🌸 SYNOPSIS 🌸

linclassif [options] example_file model_file

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so linclassif is a program that predicts labels by a linear classification rule. that's literally the whole vibe. πŸ‘‘

now, the two files you hand it are doing different jobs and you need to know which is which:

  • example_file β€” a file full of testing examples, formatted in SVM^light format ✨
  • model_file β€” the file holding your rule. it can be either a binary (two-class) rule:
f(x)=w'*x+w0

or a multi-class rule:

f(x)=W'*x

and where do those come from? so glad you asked, bestie β€” they're produced by svmocas(1) and msvmocas(1), respectively. πŸ’…


πŸ’… OPTIONS πŸ’…

a summary of options is included below. no skips, no skimming, we're doing all of them 🌈

  • -h β€” show summary of options. the classic "help me" move πŸ™ˆ
  • -v (0|1) β€” set the verbosity level. default is 1. turn it down if you want peace πŸŽ€
  • -e β€” print the classification error, computed from the predicted labels and the labels contained in example_file. yes, it's grading itself. iconic ✨
  • -o out_file β€” save predictions to the file out_file πŸ“
  • -t (0|1) β€” output type. two moods only:
    • 0 … predicted labels (this is the default) πŸ’–
    • 1 … discriminant values πŸ’€

🧚 EXAMPLES 🧚

example one: train the multi-class SVM classifier from example file fiply_trn.light, using svmocas(1) with the regularization constant C=10, verbosity switched off, and save the model to svmocas.model:

svmocas -c 10 -b 1 -v 0 riply_trn.light svmocas.model

example two: compute the testing error of the classifier stored in svmocas.model using testing examples from riply_tst.light, and save the predicted labels to riply_tst.pred:

linclassif -e -o riply_tst.pred riply_tst.light svmocas.model
not me noticing the prose says fiply_trn.light while the actual command says riply_trn.light 😭 i'm keeping it exactly as written, no cap β€” the original said it, so we said it. πŸ’―

🌈 SEE ALSO 🌈

svmocas(1), msvmocas(1).

go read those too, bestie, they're the ones making the models in the first place 🫢


πŸ‘‘ AUTHORS πŸ‘‘

linclassif was written by Vojtech Franc <xfrancv@cmp.felk.cvut.cz> and Soeren Sonnenburg <Soeren.Sonnenburg@tu-berlin.de>. absolute legends, fr fr ⭐

this manual page was written by Christian Kastner <debian@kvr.at>, for the Debian project (and may be used by others). πŸ’œ


and that's the whole page, bestie πŸ’… this one came from the General Commands Manual, dated August 24, 2014, and it's the LINCLASSIF(1) page β€” so if you see that version and date floating around, that's us. slay, bye πŸŽ€βœ¨