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_scalermean_normalizationmin_max_scalerstandard_scalerpca_whiteningzca_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-1to1. Default value1e-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 formin_max_scaler. Default value1.--min_value (-b)[int]β Starting value of range formin_max_scaler. Default value0.--scaler_method (-a)[string]β method to use for scaling, the default isstandard_scaler. Default value'standard_scaler'.--seed (-s)[int]β Random seed (0forstd::time(NULL)). Default value0.--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
- ubuntu stonking: mlpack-bin 4.8.0-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms