heri-stat(1)
πΈ heri-stat(1) β bestie edition πΈ
okay so heri-stat is the little command that does your math for you when you're evaluating a model, and it's genuinely so good at it. π It crunches your outcomes against your predictions and hands you precision, recall, F1 and a whole lil squad of other numbers. no cap.
β¨ NAME β¨
heri-stat β calculates precision, recall, F1 and some other things π
π SYNOPSIS π
like, here's every single way you can call her, keep them all:
heri-stat [-R] [-mrca] [-u label] [-t threshold]
outcomes_file predictions_file
heri-stat -1 [-R] [-mrca] [-u label] [-t threshold]
[files...]
heri-stat -g mode [-R] [-xy] outcomes_file predictions_file
heri-stat -1 -g mode [-R] [files...]
heri-stat [-h]
π¦ DESCRIPTION π¦
so the first and second flavors of calling heri-stat are the classification girlies. you feed her a classification dataset plus predictions, and she pops out precision, recall and F1. periodt.
unless you used the -1 option, she reads the correct classes out of outcomes_file β one class per line, okay, literally one per line β and the predicted classes out of predictions_file, also one class per line. π
and here's the fun part: predictions_file is allowed to have two tokens per line. first token = the predicted class, second token = a score (like, a probability, y'know). she handles it. she's versatile.
now the third and fourth flavors are the regression era. you give her regression outcomes and predictions β one value per line β and she calculates mean absolute error (MAE), mean squared error (MSE) and/or mean absolute error (MAE). yes bestie, that's exactly what it says, I'm not touching it, I just report the facts. π
and if -1 was applied, she expects two or three tokens per line on input:
- correct value (or class, if you're doing classification) π
- predicted value (or class) β
- and an optional score π§
π OPTIONS π
-h,--helpβ displays the help info. the "help me bestie" button. π«Ά-R,--rawβ raw tab-separated output. no glow-up, just vibes.-m,--micro-avgβ disables the micro averaged P/R/F1 output.-r,--macro-avgβ disables the macro averaged P/R/F1 output.-c,--per-classβ disables the per-class statistics output.-a,--accuracyβ disables the accuracy output.-1,--singleβ 2 or 3 tokens per line are expected on input. that's the whole thing. π-u,--unclassifiedlabelβ sets the label for the "unclassified" object. if you specify it, micro-averaged P/R/F1 is calculated instead of accuracy. also, the statistics for this class is not calculated. she's off the roster. π-t,--tresholdvalueβ treat classes with a score less than the specified value as unclassified. (yes, the option is spelled--treshold, that's canon, don't @ me, I copy exactly.) π-g,--regressionmodeβ regression outcomes and predictions are expected on input. ifmodecontains the symbola, MAE is output;sβ MSE is output; andrβ RMSE is output. mix and match, she's flexible like that. π₯
π HOME π
<http://github.com/cheusov/herisvm> β go say hi to the house. π
π SEE ALSO π
the rest of the friend group, fr fr. π
and that's the whole page bestie, this version is from 2021-01-25 and it's the heri-stat(1) manual β go forth and compute, you're gonna slay. πβ¨ππ¦πΈπ
π«Ά
π¦ 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