|
|
@@ -50,7 +50,7 @@ redis:
|
|
|
3. 启动协同过滤
|
|
|
4. 启动系统过滤推理
|
|
|
|
|
|
-## 2、模型启动配置说明:
|
|
|
+## 3、GBDT LR模型训练推理启动
|
|
|
|
|
|
### gbdt_lr.py
|
|
|
|
|
|
@@ -65,14 +65,14 @@ redis:
|
|
|
|
|
|
### gbdt_lr总共3个功能:
|
|
|
|
|
|
-1\. 启动gbdt_lr训练 python -m gbdt_lr --run_train --city_uuid "00000000000000000000000011445301"
|
|
|
- 2. 根据城市id和product_id进行推荐,需要指定city_uuid、product_id。 python -m gbdt_lr --recommend --city_uuid "00000000000000000000000011445301" --product_id '110102'
|
|
|
- 3. 获取指定城市的特征重要性指标。 python -m gbdt_lr --importance --city_uuid "00000000000000000000000011445301"
|
|
|
- 注意:在数据准备阶段,会将训练数据保存到./models/rank/data/gbdt_data.csv中
|
|
|
- 模型文件会存放在 ./models/rank/weights/city_uuid/model.pkl
|
|
|
- 重要性指标会存放在 ./models/rank/weights/下,分别是商户指标重要性和卷烟指标重要性
|
|
|
+1\. 启动gbdt_lr训练 python -m gbdt_lr --run_train --city_uuid "00000000000000000000000011445301"
|
|
|
+ 2. 根据城市id和product_id进行推荐,需要指定city_uuid、product_id。 python -m gbdt_lr --recommend --city_uuid "00000000000000000000000011445301" --product_id '110102'
|
|
|
+ 3. 获取指定城市的特征重要性指标。 python -m gbdt_lr --importance --city_uuid "00000000000000000000000011445301"
|
|
|
+注意:在数据准备阶段,会将训练数据保存到./models/rank/data/gbdt_data.csv中
|
|
|
+模型文件会存放在 ./models/rank/weights/city_uuid/model.pkl
|
|
|
+重要性指标会存放在 ./models/rank/weights/下,分别是商户指标重要性和卷烟指标重要性
|
|
|
|
|
|
-## 3、模型docker运行配置说明:
|
|
|
+## 4、模型docker运行配置说明:
|
|
|
|
|
|
### docker镜像是:registry.cn-hangzhou.aliyuncs.com/hexiaoshi/brandcultivation:0.0.1
|
|
|
|
|
|
@@ -80,7 +80,7 @@ redis:
|
|
|
docker run --name BrandCultivation -d -v /export/brandcultivation/crontab:/etc/cron.d/crontab -v /export/brandcultivation/database_config.yaml:/app/config/database_config.yaml registry.cn-hangzhou.aliyuncs.com/hexiaoshi/brandcultivation:0.0.1
|
|
|
```
|
|
|
|
|
|
-## 4、模型kubernetes运行配置说明
|
|
|
+## 5、模型kubernetes运行配置说明
|
|
|
|
|
|
yaml文件如下:
|
|
|
|