mlpack_decision_stump(1)

πŸ“¦ version 3.4.2, in ubuntu jammy

✨ mlpack_decision_stump ✨

okay bestie, gather round, because today we're talking about mlpack_decision_stump β€” it's a User Commands manual page, it lives in the mlpack family, and it's literally a decision stump and nothing else. no cap. πŸ’–


🌸 NAME 🌸

mlpack_decision_stump β€” decision stump. that's it. that's the name. iconic behavior honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

mlpack_decision_stump [-b int] [-m unknown] [-l string] [-T string] [-t string] [-V bool] [-M unknown] [-p string] [-h -v]

πŸ’… DESCRIPTION πŸ’…

so this program implements a decision stump, which is a single-level decision tree. yes, one level. it's a tree that said "i'm not doing the whole growing thing, i'm doing one split and then i'm going to bed." lowkey relatable.

the decision stump will split on one dimension of the input data, and it will split into multiple buckets. the dimension and the bins are selected by maximizing the information gain of the split β€” so it's not just vibing, it's actually optimizing. πŸŽ€

optionally, you can specify the minimum number of training points in each bin with the --bucket_size (-b) parameter. slay.

the decision stump is parameterized by a splitting dimension and a vector of values that denote the splitting values of each bin.

this program enables several applications, bestie, and they're all important:

  • a decision tree may be trained or loaded, and then that decision tree may be used to classify a given set of test points.
  • the decision tree may also be saved to a file for later usage.

To train a decision stump, training data should be passed with the --training_file (-t) parameter, and their corresponding labels should be passed with the --labels_file (-l) option. optionally, if --labels_file (-l) is not specified, the labels are assumed to be the last dimension of the training dataset. the --bucket_size (-b) parameter controls the minimum number of training points in each decision stump bucket. πŸ“

for classifying a test set, a decision stump may be loaded with the --input_model_file (-m) parameter (super useful for the situation where a stump has already been trained, like, it already did the work, don't make it do it again), and a test set may be specified with the --test_file (-T) parameter. the predicted labels can be saved with the --predictions_file (-p) output parameter. ✨

🫢 important vibe check: because decision stumps are trained in batch, retraining does not make sense, and thus it is not possible to pass both --training_file (-t) and --input_model_file (-m). instead, simply build a new decision stump with the training data. pick a lane, bestie.

after training, a decision stump can be saved with the --output_model_file (-M) output parameter. that stump may later be re-used in subsequent calls to this program (or others). it's giving reusable icon. πŸ‘‘


πŸŽ€ OPTIONAL INPUT OPTIONS πŸŽ€

  • --bucket_size (-b) [int] β€” the minimum number of training points in each decision stump bucket. Default value 6.
  • --help (-h) [bool] β€” default help info.
  • --info [string] β€” print help on a specific option. Default value ''.
  • --input_model_file (-m) [unknown] β€” decision stump model to load.
  • --labels_file (-l) [string] β€” labels for the training set. if not specified, the labels are assumed to be the last row of the training data.
  • --test_file (-T) [string] β€” a dataset to calculate predictions for.
  • --training_file (-t) [string] β€” the dataset to train on.
  • --verbose (-v) [bool] β€” display informational messages and the full list of parameters and timers at the end of execution. very "tell me everything" of it. πŸ™ˆ
  • --version (-V) [bool] β€” display the version of mlpack.

🌈 OPTIONAL OUTPUT OPTIONS 🌈

  • --output_model_file (-M) [unknown] β€” output decision stump model to save.
  • --predictions_file (-p) [string] β€” the output matrix that will hold the predicted labels for the test set.

πŸ’œ ADDITIONAL INFORMATION πŸ’œ

for further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack. go read it, bestie, it's good for you. πŸ“š


and that's the whole page, periodt. this was mlpack-3.4.2, dated 11 April 2022, and it's officially a wrap β€” mwah, love u, go train a stump. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from