autointent.custom_types#

Types used throughout AutoIntent library.

Attributes#

FloatFromZeroToOne

Float value between 0 and 1, inclusive.

LabelType

Type alias for label representation

LabelWithOOS

Any label that autointent modules can handle.

ListOfGenericLabels

List of labels that AutoIntent modules can handle.

ListOfLabels

List of labels without OOS-samples that AutoIntent modules can handle.

ListOfLabelsWithOOS

List of labels with OOS-samples that AutoIntent modules can handle.

MultiLabel

List label for multi-label classification problems.

MultiLabelWithOOS

List label for multi-label classification problems with OOS samples.

SamplerType

Hyperparameter tuning strategies:

SearchSpacePreset

Some presets that our library supports from lightest to heaviest:

SearchSpaceValidationMode

Behavior when meet a data-incompatible module in search space:

SimpleLabel

Integer label for single-label classification problems.

SimpleLabelWithOOS

Integer label for single-label classification problems with OOS samples.

ValidationScheme

Validation scheme used in hyperparameter tuning:

WeightType

Represents weight calculation methods

Classes#

LogLevel

Logging levels for the AutoIntent framework.

NodeType

Enumeration of node types in the AutoIntent pipeline.

Split

Enumeration of data splits in the AutoIntent framework.

Package Contents#

autointent.custom_types.FloatFromZeroToOne#

Float value between 0 and 1, inclusive.

type autointent.custom_types.LabelType = SimpleLabel | MultiLabel#

Type alias for label representation

  • int: For single-label classification.

  • list[int]: For multi-label classification.

autointent.custom_types.LabelWithOOS#

Any label that autointent modules can handle.

autointent.custom_types.ListOfGenericLabels#

List of labels that AutoIntent modules can handle.

autointent.custom_types.ListOfLabels#

List of labels without OOS-samples that AutoIntent modules can handle.

autointent.custom_types.ListOfLabelsWithOOS#

List of labels with OOS-samples that AutoIntent modules can handle.

autointent.custom_types.MultiLabel#

List label for multi-label classification problems.

autointent.custom_types.MultiLabelWithOOS#

List label for multi-label classification problems with OOS samples.

autointent.custom_types.SamplerType#

Hyperparameter tuning strategies:

autointent.custom_types.SearchSpacePreset#

Some presets that our library supports from lightest to heaviest:

autointent.custom_types.SearchSpaceValidationMode#

Behavior when meet a data-incompatible module in search space:

  • raise: raise an error

  • warning: warn user

  • filter: drop incompatible modules from search space

autointent.custom_types.SimpleLabel#

Integer label for single-label classification problems.

autointent.custom_types.SimpleLabelWithOOS#

Integer label for single-label classification problems with OOS samples.

autointent.custom_types.ValidationScheme#

Validation scheme used in hyperparameter tuning:

  • ho: hold-out validation

  • cv: cross-validation

autointent.custom_types.WeightType#

Represents weight calculation methods

  • “uniform”: Equal weight for all elements.

  • “distance”: Weights based on distance.

  • “closest”: Prioritizes closest elements.