Commit 6f0ad086 authored by 郭羽's avatar 郭羽

美购精排模型

parent 9e8a9e9d
...@@ -5,10 +5,8 @@ rm -rf $modelPath ...@@ -5,10 +5,8 @@ rm -rf $modelPath
python /srv/apps/serviceRec/train/train_service.py > /srv/apps/serviceRec/logs/train_service_log.log python /srv/apps/serviceRec/train/train_service.py > /srv/apps/serviceRec/logs/train_service_log.log
#文件打包 #文件打包
logging "tar -czvf model_service.tar.gz $modelPath start... " #tar -czvf model_service.tar.gz $modelPath
tar -czvf model_service.tar.gz $modelPath
logging "tar -czvf model_service.tar.gz $modelPath success... "
#上传至coding #上传至coding
curl -T model_service.tar.gz -u guoyu@igengmei.com:Gengmei123! "https://gengmei-generic.pkg.coding.net/tob/mode/service" #curl -T model_service.tar.gz -u guoyu@igengmei.com:Gengmei123! "https://gengmei-generic.pkg.coding.net/tob/mode/service"
logging "upload model_service.tar.gz success... " #logging "upload model_service.tar.gz success... "
...@@ -155,7 +155,7 @@ def train(emb_columns, number_columns, oneHot_columns, inputs, train_dataset): ...@@ -155,7 +155,7 @@ def train(emb_columns, number_columns, oneHot_columns, inputs, train_dataset):
# train the model # train the model
print("train start...") print("train start...")
model.fit(train_dataset, epochs=13) model.fit(train_dataset, epochs=1)
print("train end...") print("train end...")
print("train save...") print("train save...")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment