base#

cast_to_ndarray

Convert the container of X to numpy.ndarray.

check_1D_num_sequence

Validate things that are expected to be 1D sequences of numbers.

check_1D_str_sequence

Validate things that are expected to be 1D sequences of strings.

check_2D_num_array

Validate things that are expected to be 2D arrays of numbers.

check_2D_str_array

Validate things that are expected to be 2D arrays of strings.

check_dtype

Check that the passed data is of an allowed datatype.

check_feature_names

Set or check the feature_names_in_ attribute.

check_is_finite

Look for any nan-like and/or infinity-like values in X.

check_is_fitted

Perform _is_fitted validation on an estimator/transformer.

check_n_features

Set the n_features_in_ attribute, or check against it.

check_scipy_sparse

Check whether a passed data container is a scipy sparse matrix / array.

check_shape

Check the shape of a data-bearing object against user-defined criteria.

copy_X

Make a deep copy of X.

DictMenuPrint

Manage the display and operation of an interactive user menu.

ensure_2D

Ensure that X has 2-dimensional shape, i.e., len(X.shape) == 2.

get_feature_names

Get feature names from X.

get_feature_names_out

Return the feature name vector for the output of a pybear estimator or transformer.

is_fitted

Determine if an estimator/transformer is fitted and return a boolean.

num_features

Return the number of features in an array-like X.

num_samples

Return the number of samples in an array-like X.

set_order

Set the memory layout of X.

user_entry

Manual validation for user-entered string.

validate_data

Validate characteristics of X and apply some select transformative operations.

validate_user_int

Integer validation for user entry within allowed range.

validate_user_float

Number validation for user float entry within allowed range.

validate_user_mstr

String validation for multiple alpha character user entry that screens by length of entry and allowed options.

validate_user_str

Validation of a single user-entered alpha character against a list of allowed characters.

validate_user_str_cs

Case sensitive validation of a single user-entered alpha character against a list of allowed characters.

FeatureMixin

This mixin manages feature names for pybear transformers and estimators.

FileDumpMixin

A mixin for pybear text transformers that allows the user to save data in-situ.

FitTransformMixin

Provides the fit_transform method to pybear transformers.

GetParamsMixin

Provides the get_params method to estimators, transformers, and GridSearch modules.

ReprMixin

This mixin provided the __repr__ magic method to pybear transformers and estimators.

SetOutputMixin

This mixin provides the set_output method to pybear transformers.

SetParamsMixin

Provides the set_params method to estimators, transformers, and GridSearch modules.

NotFittedError

Exception class to raise if estimator is used before fitting.