check_valid_estimators

Functions

check_valid_estimators(estimators, order)

Ensure estimators is a list of (name, estimator) tuples, consisting of individual models or pipelines to be processed through the voting or stacking classifying ensemble. Each tuple contains a string: name/label of estimator, and a model: the estimator, which implements

Module Contents

check_valid_estimators.check_valid_estimators(estimators, order)
Ensure estimators is a list of (name, estimator) tuples, consisting of individual models or pipelines to be processed through the voting or stacking classifying ensemble. Each tuple contains a string: name/label of estimator, and a model: the estimator, which implements

the scikit-learn API (fit, predict, etc.), and raise errors according to conditions of failed check

Parameters:
  • (Any) (estimators)

  • (Str) (order)

  • Raises

  • TypeError (If estimators is of an unsupported type)

  • ValueError (If estimators is a list that contains 0 or 1 element)

  • Returns

  • None

Examples

>>> check_valid_X([], 'first')