mirror of
https://github.com/apachecn/ailearning.git
synced 2026-02-09 21:36:27 +08:00
更新路径和目录
This commit is contained in:
@@ -6,12 +6,6 @@ from sklearn import tree
|
||||
from sklearn.metrics import precision_recall_curve
|
||||
from sklearn.metrics import classification_report
|
||||
from sklearn.cross_validation import train_test_split
|
||||
"""
|
||||
需要安装依赖模块:
|
||||
pip install scikit_learn-0.18-cp27-cp27m-win_amd64.whl
|
||||
非常完整的网址:
|
||||
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
|
||||
"""
|
||||
|
||||
|
||||
def createDataSet():
|
||||
|
||||
@@ -73,7 +73,7 @@ def apriori(dataSet, minSupport = 0.5):
|
||||
def main():
|
||||
# project_dir = os.path.dirname(os.path.dirname(os.getcwd()))
|
||||
# 1.收集并准备数据
|
||||
# dataMat, labelMat = loadDataSet("%s/resources/Logistic_testdata.txt" % project_dir)
|
||||
# dataMat, labelMat = loadDataSet("%s/resources/Apriori_testdata.txt" % project_dir)
|
||||
|
||||
|
||||
# 1. 加载数据
|
||||
|
||||
Reference in New Issue
Block a user