>>> from mlpack import preprocess_describe
This utility takes a dataset and prints out the descriptive statistics of the data. Descriptive statistics is the discipline of quantitatively describing the main features of a collection of information, or the quantitative description itself. The program does not modify the original file, but instead prints out the statistics to the console. The printed result will look like a table.
Optionally, width and precision of the output can be adjusted by a user using the 'width' and 'precision' parameters. A user can also select a specific dimension to analyze if there are too many dimensions. The 'population' parameter can be specified when the dataset should be considered as a population. Otherwise, the dataset will be considered as a sample.
So, a simple example where we want to print out statistical facts about the dataset 'X' using the default settings, we could run
>>> preprocess_describe(input=X, verbose=True)
If we want to customize the width to 10 and precision to 5 and consider the dataset as a population, we could run
>>> preprocess_describe(input=X, width=10, precision=5, verbose=True)
- input (numpy matrix or arraylike, float dtype): [required] Matrix containing data,
- copy_all_inputs (bool): If specified, all input parameters will be deep copied before the method is run. This is useful for debugging problems where the input parameters are being modified by the algorithm, but can slow down the code.
- dimension (int): Dimension of the data. Use this to specify a dimension Default value 0.
- population (bool): If specified, the program will calculate statistics assuming the dataset is the population. By default, the program will assume the dataset as a sample.
- precision (int): Precision of the output statistics. Default value 4.
- row_major (bool): If specified, the program will calculate statistics across rows, not across columns. (Remember that in mlpack, a column represents a point, so this option is generally not necessary.)
- verbose (bool): Display informational messages and the full list of parameters and timers at the end of execution.
- width (int): Width of the output table. Default value 8.
The return value from the binding is a dict containing the following elements: