diff --git a/rent/calc_by_lr.py b/rent/calc_by_lr.py index c1e9e7c..9b5aae0 100644 --- a/rent/calc_by_lr.py +++ b/rent/calc_by_lr.py @@ -4,8 +4,13 @@ from sklearn import preprocessing from sklearn import svm from sklearn.model_selection import GridSearchCV, train_test_split from sklearn.pipeline import Pipeline -import common from sklearn.preprocessing import PolynomialFeatures +import os +import sys +curPath = os.path.abspath(os.path.dirname(__file__)) +rootPath = os.path.split(curPath)[0] +sys.path.append(rootPath) +import common base_year = common.parse_date("1900-01-01")