yufeng0528 4 years ago
parent
commit
b2daa516d5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      integr/random_forest.py

+ 3 - 1
integr/random_forest.py

@@ -1,5 +1,7 @@
1
-
2 1
 # -*- encoding:utf-8 -*-
2
+import sys
3
+import os
4
+sys.path.append(os.path.abspath('..'))
3 5
 from sklearn.tree import DecisionTreeClassifier
4 6
 from sklearn.ensemble import RandomForestClassifier
5 7
 from sklearn.ensemble import RandomForestRegressor