Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭羽
serviceRec
Commits
6f0ad086
Commit
6f0ad086
authored
May 31, 2021
by
郭羽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
美购精排模型
parent
9e8a9e9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
service_train_upload.sh
shell/service_train_upload.sh
+3
-5
train_service.py
train/train_service.py
+1
-1
No files found.
shell/service_train_upload.sh
View file @
6f0ad086
...
@@ -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... "
train/train_service.py
View file @
6f0ad086
...
@@ -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
=
1
3
)
model
.
fit
(
train_dataset
,
epochs
=
1
)
print
(
"train end..."
)
print
(
"train end..."
)
print
(
"train save..."
)
print
(
"train save..."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment