heri-split(1)

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

πŸ¦‹ heri-split πŸ¦‹

okay so welcome to heri-split(1), the little tool that takes your dataset and goes snip snip into training and testing sets βœ‚οΈβœ¨ if you're doing N-fold cross-validation, this is literally your girl. she's part of the herisvm family and she is, ngl, kind of iconic.


🌸 NAME 🌸

heri-split β€” splits the dataset into training and testing sets πŸŽ€


✨ SYNOPSIS ✨

heri-split [OPTIONS] dataset1 [dataset2...]

like... you give her options, you give her one dataset, or a bunch of datasets, and she does her thing πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe: heri-split splits your dataset into several training and testing sets, exactly how you need it for N-fold cross-validation 🧚 the dataset has one object per line, in svmlight format, no cap.

by default she uses stratified sampling β€” which means every fold gets the same number of objects for each label. balanced. fair. main character behaviour fr fr πŸ‘‘

now, the outputs, and this part matters bestie, so listen up:

  • if you pass the -c option, she creates testN.txt and trainN.txt files (also in svmlight format, obviously πŸ’–), where N is the number of the fold.
  • if you pass the -R option, she creates test.txt and train.txt files instead, for the same purposes.
  • also she creates a testing_fold.txt file πŸ“ β€” for each object (one per line) it tells you that object's testing fold number, if the option -c is applied.
  • and if the option -R is applied, that same testing_fold.txt file contains either 1 for testing set or 0 for training set.
πŸ’€ real talk: -c is mandatory. -d is mandatory. she will not run without them. she's not being difficult, she's just like that.

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” display help information 🫢 she'll tell you what's up.
  • -c, --folds count β€” set the number of folds. this one is a mandatory option, bestie. no -c, no folds, no service.
  • -d, --output-dir dir β€” set the output directory. also mandatory. she needs to know where to drop her files πŸ’…
  • -r, --random β€” use random sampling instead of the stratified one 🎲 going feral, going unhinged, love that for you.
  • -R, --ratio β€” split the input dataset into a training one and a testing one in the specified ratio (in percents) 🌈
  • -s, --seed seed β€” set the seed value for the pseudorandom generator 🌱 so your randomness is reproducible. consistent queen.

🏠 HOME 🏠

<http://github.com/cheusov/herisvm>

πŸ‘€ SEE ALSO πŸ‘€

heri-eval(1) heri-stat(1)


and that's the whole page, bestie πŸ’– this was heri-split(1), from the 2021-01-25 era, and she still eats. now go split something πŸ¦‹βœ¨ periodt.

πŸ“¦ where this page comes from