File tree Expand file tree Collapse file tree
evalml/pipelines/components/estimators/regressors Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import pandas as pd
66from pandas .api .types import is_integer_dtype
77from skopt .space import Integer
8+ from sktime .forecasting .base import ForecastingHorizon
89
910from evalml .model_family import ModelFamily
1011from evalml .pipelines .components .estimators import Estimator
@@ -141,8 +142,6 @@ def _remove_datetime(
141142 return data_no_dt
142143
143144 def _set_forecast (self , X : pd .DataFrame ):
144- from sktime .forecasting .base import ForecastingHorizon
145-
146145 # we can only calculate the difference if the indices are of the same type
147146 units_diff = 1
148147 if isinstance (X .index [0 ], type (self .last_X_index )) and isinstance (
Original file line number Diff line number Diff line change 44import numpy as np
55import pandas as pd
66from skopt .space import Categorical , Integer
7+ from sktime .forecasting .base import ForecastingHorizon
78
89from evalml .model_family import ModelFamily
910from evalml .pipelines .components .estimators import Estimator
@@ -92,8 +93,6 @@ def __init__(
9293 )
9394
9495 def _set_forecast_horizon (self , X : pd .DataFrame ):
95- from sktime .forecasting .base import ForecastingHorizon
96-
9796 # we can only calculate the difference if the indices are of the same type
9897 units_diff = 1
9998 if isinstance (X .index [0 ], type (self .last_X_index )):
You can’t perform that action at this time.
0 commit comments