heri-stat(1)

πŸ“¦
version 0.9.0 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

🌸 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, --unclassified label β€” 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, --treshold value β€” 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, --regression mode β€” regression outcomes and predictions are expected on input. if mode contains the symbol a, MAE is output; s β†’ MSE is output; and r β†’ 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