Functions

Summary

function class parent truncated documentation
_setup_hook   if this function is added to the module, the help automation and unit tests call it first before anything goes on …
absolute_loss   Computes the absolute loss for regression. Parameters ———- y_true : array-like or label indicator matrix …
check   Checks the library is working. It raises an exception. If you want to disable the logs:
float_sign   Returns 1 if a > 0, otherwise -1
format_function_call   Formats a function call with named parameters.
format_parameters   Formats a list of parameters.
format_value   Formats a value to be included in a string.
is_vector   Tells if X is a vector.
model_featurizer   Converts a machine learned model into a function which converts a vector into features produced by the model. It …
model_featurizer_keras   Builds a featurizer from a keras model It returns a function which returns the output of one particular …
model_featurizer_lr   Builds a featurizer from a :epkg:`scikit-learn:linear_model:LogisticRegression`. It returns a function which returns …
model_featurizer_rfc   Builds a featurizer from a :epkg:`scikit-learn:ensemble:RandomForestClassifier`. It returns a function which returns …
model_featurizer_torch   Builds a featurizer from a :epkg:`torch` model It returns a function which returns the output of one particular …
non_linear_correlations   Computes non linear correlations.
plot_gallery_images   Plots a gallery of images using matplotlib.
test_sklearn_clone   Tests that a cloned model is similar to the original one.
test_sklearn_grid_search_cv   Creates a model, checks that a grid search works with it.
test_sklearn_pickle   Creates a model, fit, predict and check the prediction are similar after the model was pickled, unpickled.
train_test_split_with_none   Splits into train and test data even if they are None.
wrap_predict_keras   Checks types and dimension. Calls fct and returns the approriate type. A vector if X is a vector, the raw output …
wrap_predict_sklearn   Checks types and dimension. Calls fct and returns the approriate type. A vector if X is a vector, the raw output …
wrap_predict_torch   Checks types and dimension. Calls fct and returns the approriate type. A vector if X is a vector, the raw output …