diff --git a/README.md b/README.md index 9bae7d1..a4552b9 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,13 @@ | 微信 | 微信公众号 | | :---: | :----: | -| RyanZheng.png | 魔都数据干饭人.png | -| RyanZheng | 魔都数据干饭人 | +| RyanZheng.png | 魔都数据干饭人.png | +| 干饭人 | 魔都数据干饭人 | > 仓库地址:https://github.com/ZhengRyan/xgboost2sql > -> 微信公众号文章: +> 微信公众号文章:https://mp.weixin.qq.com/s/z3IjzMFKP7iEoag5KP6nAA > > pipy包:https://pypi.org/project/xgboost2sql/ @@ -35,12 +35,12 @@ Source code install(源码安装) python setup.py install ``` -### 运行样例 -####【注意:::核验对比python模型预测出来的结果和sql语句预测出来的结果是否一致请查看"https://github.com/ZhengRyan/xgboost2sql/examples/tutorial_code.ipynb"教程代码】 +## 运行样例 +###【注意:::核验对比python模型预测出来的结果和sql语句预测出来的结果是否一致请查看教程代码】"https://github.com/ZhengRyan/xgboost2sql/examples/tutorial_code.ipynb" + 导入相关依赖 ```python -import xgboost as xgb +import xgboost as xgb from sklearn.datasets import make_classification from sklearn.model_selection import train_test_split from xgboost2sql import XGBoost2Sql @@ -63,7 +63,7 @@ X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1024) ###训练模型 model = xgb.XGBClassifier(n_estimators=3) model.fit(X_train, y_train) -xgb.to_graphviz(model) +#xgb.to_graphviz(model) ``` + 使用xgboost2sql工具包将模型转换成的sql语句 ```python diff --git a/images/RyanZheng.png b/images/RyanZheng.png deleted file mode 100644 index fadb7b4..0000000 Binary files a/images/RyanZheng.png and /dev/null differ diff --git "a/images/\345\271\262\351\245\255\344\272\272.png" "b/images/\345\271\262\351\245\255\344\272\272.png" new file mode 100644 index 0000000..82ec65d Binary files /dev/null and "b/images/\345\271\262\351\245\255\344\272\272.png" differ diff --git a/setup.py b/setup.py index 6551053..4ce0eaa 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,6 @@ def get_requirements(stage=None): test_suite='tests', tests_require=test_requirements, url='https://github.com/ZhengRyan/xgboost2sql', - version='0.1.0', + version='0.1.1', zip_safe=False, )