From fd45b6921d098f070329f5ff634e2648679fec14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Tue, 7 May 2019 12:22:51 +0800 Subject: [PATCH] fix --- rent/calc_by_lr.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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")