sklink.exceptions
Exceptions and warnings raised by scikit-link.
Every exception also derives from the standard exception a scikit-learn user would expect (ValueError or RuntimeError), so code that catches the standard type keeps working. Messages name tables, columns, relationships or expressions and never contain row values.
Classes:
- BackendError: The evaluation backend is unavailable or failed.
- DetachedDatabaseError: An estimator was used after
sklink.detachwithout a new database. - InconsistentVersionWarning: A model saved with another version of scikit-link was loaded.
- IntegrityError: The data violates a declared key or relationship.
- LeakageWarning: A configuration may leak information between samples or from the future.
- PerformanceWarning: An operation is likely to be slow or memory hungry.
- SchemaError: A table, column, relationship or expression does not match the schema.
- SklinkError: Base class of every exception raised by scikit-link.
- SklinkWarning: Base class of every warning emitted by scikit-link.
- UnknownEntityError: Keys of the population table do not exist in the entity table.
- VisibilityError: A model is evaluated under a visibility policy it was not fitted with.
sklink.exceptions.BackendError
Bases: SklinkError, RuntimeError
The evaluation backend is unavailable or failed.
sklink.exceptions.DetachedDatabaseError
Bases: SklinkError, RuntimeError
An estimator was used after sklink.detach without a new database.
sklink.exceptions.InconsistentVersionWarning
InconsistentVersionWarning(*, estimator_name: str, current_version: str, original_version: str) -> NoneBases: SklinkWarning
A model saved with another version of scikit-link was loaded.
Fitted estimators keep the version of scikit-link that saved them. Loading one with another version may fail or give other results, as with scikit-learn's own estimators: refit the model, or load it with the version that saved it.
Parameters:
- estimator_name (
str): Class name of the estimator. - current_version (
str): Version of scikit-link that loads the estimator. - original_version (
str): Version of scikit-link that saved it.
Attributes:
sklink.exceptions.InconsistentVersionWarning.current_version
current_version = current_versionsklink.exceptions.InconsistentVersionWarning.estimator_name
estimator_name = estimator_namesklink.exceptions.InconsistentVersionWarning.original_version
original_version = original_versionsklink.exceptions.IntegrityError
Bases: SklinkError, ValueError
The data violates a declared key or relationship.
sklink.exceptions.LeakageWarning
Bases: SklinkWarning
A configuration may leak information between samples or from the future.
sklink.exceptions.PerformanceWarning
Bases: SklinkWarning
An operation is likely to be slow or memory hungry.
sklink.exceptions.SchemaError
Bases: SklinkError, ValueError
A table, column, relationship or expression does not match the schema.
sklink.exceptions.SklinkError
Bases: Exception
Base class of every exception raised by scikit-link.
sklink.exceptions.SklinkWarning
Bases: UserWarning
Base class of every warning emitted by scikit-link.
sklink.exceptions.UnknownEntityError
Bases: SklinkError, ValueError
Keys of the population table do not exist in the entity table.
sklink.exceptions.VisibilityError
Bases: SklinkError, ValueError
A model is evaluated under a visibility policy it was not fitted with.