diff --git a/djangoSign3/dangoSign3/remark16.py b/djangoSign3/dangoSign3/remark16.py index e6dd412..3566a8d 100644 --- a/djangoSign3/dangoSign3/remark16.py +++ b/djangoSign3/dangoSign3/remark16.py @@ -65,9 +65,8 @@ def fit_and_predicted_use_CV(x_path, y_path, test_x, penalty='l2', solver='lbfgs def main(test_x): - path = os.path.abspath(sys.argv[0]) - print path - corpus = split_data_with_label('path/../thu_data_all2.txt') + path = os.path.abspath('thu_data_all2.txt') + corpus = split_data_with_label(path) input_x, y = corpus count_vec = feature_extractor() train_x = count_vec.fit_transform(input_x)