heri-split(1)
π¦ 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
-coption, she createstestN.txtandtrainN.txtfiles (also insvmlightformat, obviously π), whereNis the number of the fold. - if you pass the
-Roption, she createstest.txtandtrain.txtfiles instead, for the same purposes. - also she creates a
testing_fold.txtfile π β for each object (one per line) it tells you that object's testing fold number, if the option-cis applied. - and if the option
-Ris applied, that sametesting_fold.txtfile contains either1for testing set or0for training set.
π real talk:-cis mandatory.-dis 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,--foldscount β set the number of folds. this one is a mandatory option, bestie. no-c, no folds, no service.-d,--output-dirdir β 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,--seedseed β set the seed value for the pseudorandom generator π± so your randomness is reproducible. consistent queen.
π HOME π
<http://github.com/cheusov/herisvm>
π SEE ALSO π
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
- 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