heri-eval(1)
π heri-eval β the manual page, but make it make sense π
okay bestie, welcome to heri-eval(1) β¨ this is the lil command that trains a classification algorithm on your dataset and then judges it (affectionately). Let's get into it π
β¨ NAME β¨
heri-eval β evaluate classification algorithm π
πΈ SYNOPSIS πΈ
heri-eval [OPTIONS] dataset [-- SVM_TRAIN_OPTIONS]
π¦ DESCRIPTION π¦
So here's the vibe: heri-eval runs the training algorithm on your dataset, and then it evaluates the whole thing using a testing set β which you hand it with the -e option, no cap.
If you used option -n, then cross-validation is what's doing the evaluating, and the training and testing on different folds get run in parallel, so it's out here actually using the CPUs you have available. main character energy fr fr π₯
And if -r is in the mix, the dataset gets split into training and testing datasets randomly, using the ratio you specify, and then holdout is run. periodt. π
π OPTIONS π
-h,--helpβ shows you the help information. the tutorial level π«Ά-fβ turns on output of per-fold statistics. peep-Mffor the deets π-n Nβ enables T*N-fold cross-validation mode and sets the number of folds to N. slay.-r ratioβ splits the dataset into training and testing parts with the specified ratio of their sizes (in percents).-t Tβ enables T*N-fold cross-validation mode and sets the number of runs to T, which is1by default. one run, one vibe, unless you say otherwise β¨-e testing_datasetβ enables hold-out mode and sets the testing dataset.-T thresholdβ sets the minimum threshold for making a classification decision. If this flag is applied, micro-average precision, recall, and F1 are calculated instead of accuracy. different metrics, same drama π-o filenameβ saves predictions from testing sets to the specified file.
Format: outcome_class prediction_class [score]
-O filenameβ saves incorrectly classified objects to the specified file. (the flops, we keep receipts π)
Format: #object_number: outcome_class prediction_class [score])
-m filenameβ saves the confusion matrix to the specified file. (yes it's literally called that, iconic name ngl)
Format: frequency : outcome_class prediction_class
-p optsβ passes the specified opts toheri-stat(1).-s optsβ passes the specified opts toheri-split(1).-M charsβ sets the output mode, where chars are:tβ output total statistics,fβ output per-fold statistics,cβ output cross-fold statistics. The default is"-M tc". π-S seedβ passes the specified seed toheri-split(1). reproducibility queen π-Kβ keeps the temporary directory after exiting. no cleanup, we're sentimental like that π-Dβ turns on the debugging mode, and it implies-K. (debug brain on, temp dir stays π)
π EXAMPLES π
heri-eval -e testing_set.libsvm training_set.libsvm -- -s 0 -t 0
export SVM_TRAIN_CMD='liblinear-train'
export SVM_PREDICT_CMD='liblinear-predict'
heri-eval -p '-mr' -n 5 training_set.libsvm -- -s 4 -q
heri-eval -p '-mr' -n 5 training_set.libsvm -- -s 4 -q
export SVM_TRAIN_CMD='scikit_rf-train --estimators=400'
export SVM_PREDICT_CMD='scikit_rf-predict'
heri-eval -p '-c' -Mt -t 50 -r 70 dataset.libsvm
π§ ENVIRONMENT π§
SVM_TRAIN_CMDβ the training utility, e.g.,liblinear-train(the default issvm-train).SVM_PREDICT_CMDβ the predicting utility, e.g.,liblinear-predict(the default issvm-predict).SVM_HERI_STAT_CMDβ the utility for calculating statistics (the default isheri-stat(1)).SVM_HERI_STAT_ADDONS_CMDβ the utility for calculating additional statistics (the default isheri-stat-addons(1)).SVM_HERI_SPLIT_CMDβ the utility for splitting the dataset (the default isheri-split(1)).TMPDIRβ the temporary directory (the default is/tmp).
π HOME π
<http://github.com/cheusov/herisvm>
go say hi to the repo bestie π«Ά
π SEE ALSO π
and that's the whole page babes π this was the heri-eval(1) manual, dated 2021-01-25 β mwah, thanks for reading, you ate that πβ¨π
π¦ where this page comes from
- debian bookworm: herisvm 0.9.0-2 Β· MIT
- debian trixie: herisvm 0.9.0-2 Β· MIT
- ubuntu jammy: herisvm 0.9.0-2 Β· MIT
- ubuntu noble: herisvm 0.9.0-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms