Skip to content

Commit 65baf78

Browse files
committed
move the import to the top
1 parent d648e1a commit 65baf78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ads/opctl/operator/lowcode/anomaly/model/base_model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import fsspec
1414
import pandas as pd
1515
import numpy as np
16+
from sklearn import linear_model
1617

1718
from ads.common.auth import default_signer
1819
from ads.opctl import logger
@@ -331,7 +332,7 @@ def _fallback_build_model(self):
331332
"The build_model method has failed for the model: {}. "
332333
"A fallback model will be built.".format(self.spec.model)
333334
)
334-
from sklearn import linear_model
335+
335336
date_column = self.spec.datetime_column.name
336337
dataset = self.datasets
337338

0 commit comments

Comments
 (0)