Functions

Summary

function

class parent

truncated documentation

_assert_dict_equal

_assert_list_equal

_assert_tuple_equal

_combinations_poly

Computes all polynomial features combinations.

_common_get_transform

_decision_function_piecewise_estimator

_fit_piecewise_estimator

_get_column_name

Returns a unique column name not in the existing dataframe.

_get_tree

Returns the tree object.

_pipeline_info

Internal function to convert a pipeline into some graph.

_predict_piecewise_estimator

_predict_proba_piecewise_estimator

_setup_hook

if this function is added to the module, the help automation and unit tests call it first before anything goes on …

_test_criterion_impurity_improvement

Test purposes. Methods cannot be directly called from python.

_test_criterion_init

Test purposes. Methods cannot be directly called from python.

_test_criterion_node_impurity

Test purposes. Methods cannot be directly called from python.

_test_criterion_node_impurity_children

Test purposes. Methods cannot be directly called from python.

_test_criterion_node_value

Test purposes. Methods cannot be directly called from python.

_test_criterion_printf

Test purposes. Methods cannot be directly called from python.

_test_criterion_proxy_impurity_improvement

Test purposes. Methods cannot be directly called from python.

_test_criterion_update

Test purposes. Methods cannot be directly called from python.

_transform_iall

Computes the polynomial features

_transform_ionly

Computes the polynomial features

absolute_loss

Computes the absolute loss for regression. Parameters ———- y_true : array-like or label indicator matrix …

aggregate_timeseries

Aggregates timeseries assuming the data is in a dataframe.

alter_pipeline_for_debugging

Overwrite methods transform, predict, predict_proba or decision_function to collect the last inputs and outputs …

artificial_data

Generates articial data every minutes.

assert_estimator_equal

Checks that two models are equal.

build_ts_X_y

Builds standard X, y based in the given one.

check

Checks the library is working. It raises an exception. If you want to disable the logs:

check_ts_X_y

Checks that datasets (X, y) was built with function build_ts_X_y().

clone_with_fitted_parameters

Clones an estimator with the fitted results.

dgelss

Finds X in the problem AX=B by minimizing \norm{AX - B}^2. Uses function dgels. …

enumerate_pipeline_models

Enumerates all the models within a pipeline.

find_ts_group_pattern

Clusters times series to find similar patterns.

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 torch model It returns a function which returns the output of one particular …

non_linear_correlations

Computes non linear correlations.

pipeline2dot

Exports a scikit-learn pipeline to DOT language. See Visualize a scikit-learn pipeline for an example.

pipeline2str

Exports a scikit-learn pipeline to text.

plot_gallery_images

Plots a gallery of images using matplotlib.

plot_week_timeseries

Shows a timeseries dispatched by days as bars.

predict_leaves

Returns the leave every observations of X falls into.

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.

tree_find_common_node

Finds the common node to nodes i and j.

tree_find_path_to_root

Lists nodes involved into the path to find node i.

tree_leave_index

Returns the indices of every leave in a tree.

tree_leave_neighbors

The function determines which leaves are neighbors. The method uses some memory as it creates creates a grid of …

tree_node_parents

Returns a dictionary {node_id: parent_id}.

tree_node_range

Determines the ranges for a node all dimensions. nan means infinity.

ts_mape

Computes \frac{\sum_i | \hat{Y_t} - Y_t |} {\sum_i | Y_t - Y_{t-1} |}. It compares the prediction to what …

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 …