LIBLINEAR-PREDICT(1)
π LIBLINEAR-PREDICT π
okay bestie, welcome to the LIBLINEAR-PREDICT(1) page, living in the General Commands Manual section, and it's literally the moment your trained model gets to β¨shineβ¨. It's called liblinear-predict, and the command you actually type in the synopsis is linear-predict (yes, two names, it's giving mysterious π
, just roll with it).
πΈ NAME πΈ
liblinear-predict β make predictions based on a trained linear classifier model π§
π SYNOPSIS π
linear-predict [options] test_file model_file output_file
π¦ DESCRIPTION π¦
So here's the vibe: liblinear-predict takes your model-file (the linear classifier you already trained, no cap) and goes through every single sample in test_file, making a prediction for each one. Then it drops all those results into output_file. That's it. That's the whole job. And it ate. π₯
β¨ OPTIONS β¨
A lil summary of the options is right here, bestie:
-b (0|1)β do you want probability estimates or not?<pink>0</pink>= nope,<pink>1</pink>= yes please. The default is<pink>0</pink>. π-qβ quiet mode, aka no outputs, aka the "not me, I'm being mysterious" setting. π€«
π EXAMPLES π
Wanna train a linear SVM using the L2-loss function? Use linear-train(1), like this:
liblinear-train data_file
And now for the main character moment β outputting probability estimates (for logistic regression only, iykyk):
liblinear-predict -b 1 test_file data_file.model output_file
bestie, note the<pink>1</pink>after-bβ that's the "yes, probabilities please" signal. And<yellow>logistic regression only</yellow>is not a suggestion, it's the rules. π
π SEE ALSO π
π AUTHORS π
liblinear-predict was written by the LIBLINEAR authors at National Taiwan university for the LIBLINEAR Project. Slay, honestly. π«Ά
This manual page was written by Christian Kastner <ckk@debian.org>, for the Debian project (and may be used by others).
and that's the whole page, bestie! this version is from Ocotber 21, 2019 (yes, "Ocotber", we're keeping it, it's iconic π) and it's the LIBLINEAR-PREDICT(1) page β go predict something gorgeous. bye bestie, mwah ππ
π¦ where this page comes from
- debian bookworm: liblinear-tools 2.3.0+dfsg-5 Β· BSD-3-Clause
- debian trixie: liblinear-tools 2.3.0+dfsg-5+b2 Β· BSD-3-Clause
- ubuntu jammy: liblinear-tools 2.3.0+dfsg-5 Β· BSD-3-Clause
- ubuntu noble: liblinear-tools 2.3.0+dfsg-5build1 Β· BSD-3-Clause
- ubuntu questing: liblinear-tools 2.3.0+dfsg-5build1
- ubuntu resolute: liblinear-tools 2.3.0+dfsg-5build2 Β· BSD-3-Clause
- ubuntu stonking: liblinear-tools 2.3.0+dfsg-5build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms