.. _l-functions: Functions ========= .. contents:: :local: :depth: 1 Summary +++++++ +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | function | class parent | truncated documentation | +================================================================================================================================+==============+===================================================================================================================================+ | :func:`_setup_hook ` | | If this function is added to the module, the help automation and unit tests call it first before anything goes on ... | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`ax_position ` | | :epkg:`matplotlib` uses a one dimension array if the number of columns or rows is 1. This function makes a correction. ... | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`bench_pivot ` | | Merges all results for one set of parameters in one row. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`check ` | | Checks the library is working. It raises an exception. If you want to disable the logs: | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`enumerate_options ` | | Enumerates all possible options. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`experiment_results ` | | Returns some real results mostly used in the documentation to produce graph to illustrate a function. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`filter_df_options ` | | Filters out rows from a dataframe. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_nb_skl_base_estimators ` | | Returns the number of :epkg:`scikit-learn` *BaseEstimator* including in a pipeline. The function assumes the pipeline ... | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_numpy_info ` | | Retrieves information about numpy compilation. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`list_col_options ` | | | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`machine_information ` | | Returns information about the machine. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`move_color ` | | Returns a different colors, lighter or darker. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`move_color_add ` | | Makes color lighter or darker based on a style. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`onnxruntime_perf_binary_classifiers ` | | Returns a list of benchmarks for binary classifier. It compares :epkg:`onnxruntime` predictions against :epkg:`scikit-learn`. ... | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`onnxruntime_perf_regressors ` | | Returns a list of benchmarks for binary classifier. It compares :epkg:`onnxruntime` predictions against :epkg:`scikit-learn`. ... | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`options2label ` | | Converts a list of options into a label. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_bench_results ` | | Plots benchmark results. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_bench_xtime ` | | Plots benchmark acceleration. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`plt_colors ` | | Returns :epkg:`matplotlib` colors. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`plt_styles ` | | Returns :epkg:`matplotlib` styles. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`random_binary_classification ` | | Returns data for a binary classification problem (linear) with *N* observations and *dim* features. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`random_regression ` | | Returns data for a binary classification problem (linear) with *N* observations and *dim* features. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`remove_almost_nan_columns ` | | Automatically removes columns with more than 1/3 nan values. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`remove_common_prefix ` | | Removes the common prefix of a series of labels. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+ | :func:`run_onnxruntime_test ` | | Runs a benchmark for :epkg:`onnxruntime`. | +--------------------------------------------------------------------------------------------------------------------------------+--------------+-----------------------------------------------------------------------------------------------------------------------------------+