Skip to content

exceptions

MissingValuesWarning(message)

Bases: UserWarning

Warning used to indicate that there are missing values in the data. This warning occurs when the input data contains missing values, or the training matrix generates missing values. Most machine learning models do not accept missing values, so the Forecaster's fit' andpredict' methods may fail.

Source code in skforecast\exceptions\exceptions.py
21
22
def __init__(self, message):
    self.message = message

MissingExogWarning(message)

Bases: UserWarning

Warning used to indicate that there are missing exogenous variables in the data. Most machine learning models do not accept missing values, so the Forecaster's fit' andpredict' methods may fail.

Source code in skforecast\exceptions\exceptions.py
38
39
def __init__(self, message):
    self.message = message

DataTypeWarning(message)

Bases: UserWarning

Warning used to notify there are dtypes in the exogenous data that are not 'int', 'float', 'bool' or 'category'. Most machine learning models do not accept other data types, therefore the forecaster fit and predict may fail.

Source code in skforecast\exceptions\exceptions.py
55
56
def __init__(self, message):
    self.message = message

LongTrainingWarning(message)

Bases: UserWarning

Warning used to notify that a large number of models will be trained and the the process may take a while to run.

Source code in skforecast\exceptions\exceptions.py
71
72
def __init__(self, message):
    self.message = message

IgnoredArgumentWarning(message)

Bases: UserWarning

Warning used to notify that an argument is ignored when using a method or a function.

Source code in skforecast\exceptions\exceptions.py
103
104
def __init__(self, message):
    self.message = message

SkforecastVersionWarning(message)

Bases: UserWarning

Warning used to notify that the skforecast version installed in the environment differs from the version used to initialize the forecaster.

Source code in skforecast\exceptions\exceptions.py
119
120
def __init__(self, message):
    self.message = message