mlpack_preprocess_scale(1)

πŸ’… mlpack_preprocess_scale β€” the people's manpage

okay so bestie, welcome to mlpack_preprocess_scale(1), from the mlpack crew. this is the tool that takes your data and scales it. glow-up for your feature matrix, no cap. ✨


🌸 NAME

mlpack_preprocess_scale β€” scale data. that's it, that's the whole job. she scales. she slays.


πŸŽ€ SYNOPSIS

mlpack_preprocess_scale -i unknown [-r double] [-m unknown] [-f bool] [-e int] [-b int] [-a string] [-s int] [-V bool] [-o unknown] [-M unknown] [-h -v]

πŸ¦‹ DESCRIPTION

so this utility takes a dataset and does feature scaling on it using one of six scaler methods, namely:

  • max_abs_scaler
  • mean_normalization
  • min_max_scaler
  • standard_scaler
  • pca_whitening
  • zca_whitening

she takes a matrix in as --input_file (-i) and a scaling method type that you specify with --scaler_method (-a) β€” and if you don't say anything, the default is standard scaler. then she outputs a matrix with the scaled feature. iconic behavior honestly. πŸ’–

the output scaled feature matrix can be saved with the --output_file (-o) output parameters.

the model used to scale the features can be saved with --output_model_file (-M) and can later be loaded back using --input_model_file (-m). save your work bestie, always. 🫢

so, a simple example where we want to scale the dataset X.csv into X_scaled.csv with standard_scaler as scaler_method β€” we could run:

$ mlpack_preprocess_scale --input_file X.csv --output_file X_scaled.csv --scaler_method standard_scaler

a simple example where we want to whiten the dataset X.csv into X_whitened.csv with PCA as whitening_method and use 0.01 as the regularization parameter β€” we could run:

$ mlpack_preprocess_scale --input_file X.csv --output_file X_scaled.csv --scaler_method pca_whitening --epsilon 0.01

you can also retransform the scaled dataset back using --inverse_scaling (-f). an example to rescale X_scaled.csv into X.csv using the saved model --input_model_file (-m) is:

$ mlpack_preprocess_scale --input_file X_scaled.csv --output_file X.csv --inverse_scaling --input_model_file saved.bin

another simple example where we want to scale the dataset X.csv into X_scaled.csv with min_max_scaler as the scaler method, where the scaling range is 1 to 3 instead of the default 0 to 1 β€” we could run:

$ mlpack_preprocess_scale --input_file X.csv --output_file X_scaled.csv --scaler_method min_max_scaler --min_value 1 --max_value 3

πŸ”₯ REQUIRED INPUT OPTIONS

you literally cannot skip these, bestie. she needs them. πŸ™ˆ

  • --input_file (-i) [unknown] β€” Matrix containing data. that's your whole vibe right there.

✨ OPTIONAL INPUT OPTIONS

the fun zone. mix and match, go wild. πŸ’œ

  • --epsilon (-r) [double] β€” regularization Parameter for pcawhitening, or zcawhitening. should be between -1 to 1. Default value 1e-06.
  • --help (-h) [bool] β€” Default help info. she's got your back when you're lost.
  • --info [string] β€” Print help on a specific option. Default value ''.
  • --input_model_file (-m) [unknown] β€” Input Scaling model.
  • --inverse_scaling (-f) [bool] β€” Inverse Scaling to get original dataset.
  • --max_value (-e) [int] β€” Ending value of range for min_max_scaler. Default value 1.
  • --min_value (-b) [int] β€” Starting value of range for min_max_scaler. Default value 0.
  • --scaler_method (-a) [string] β€” method to use for scaling, the default is standard_scaler. Default value 'standard_scaler'.
  • --seed (-s) [int] β€” Random seed (0 for std::time(NULL)). Default value 0.
  • --verbose (-v) [bool] β€” Display informational messages and the full list of parameters and timers at the end of execution. the receipts, basically. 🧾
  • --version (-V) [bool] β€” Display the version of mlpack.

πŸ’– OPTIONAL OUTPUT OPTIONS

where the results live. show them off. πŸ‘‘

  • --output_file (-o) [unknown] β€” Matrix to save scaled data to.
  • --output_model_file (-M) [unknown] β€” Output scaling model.

🌈 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. the lore is out there, go read it. πŸ“š


okay that's the whole page bestie, you ate. this was mlpack_preprocess_scale(1), part of mlpack-4.8.0, dated 22 June 2026. go forth and scale responsibly. periodt. πŸ’…πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from