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
b8da2eaf
Commit
b8da2eaf
authored
Dec 29, 2021
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型上线
parent
e4a6d718
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
service_train.sh
shell/service_train.sh
+2
-2
train_service_sk_tf2_distibute.py
train/train_service_sk_tf2_distibute.py
+1
-1
No files found.
shell/service_train.sh
View file @
b8da2eaf
cd
/data/files/wideAndDeep/tensorServing_models
&&
rm
-rf
service_copy
&&
mv
service service_copy
&&
mkdir
service
source
/srv/envs/serviceRec/bin/activate
python /srv/apps/serviceRec/train/train_service_sk_tf2_distibute.py
>
/srv/apps/serviceRec/logs/train_service_log.log
\ No newline at end of file
python /srv/apps/serviceRec/train/train_service_sk_tf2_distibute.py
>
/srv/apps/serviceRec/logs/train_service_log.log 2>&1
\ No newline at end of file
train/train_service_sk_tf2_distibute.py
View file @
b8da2eaf
...
...
@@ -259,7 +259,7 @@ eval_spec = tf.estimator.EvalSpec(input_fn = lambda: input_fn(DATA_DIR + 'eval_s
# wideAndDeepModel = tf.contrib.estimator.add_metrics(wideAndDeepModel, my_auc)
tf
.
estimator
.
train_and_evaluate
(
wideAndDeepModel
,
train_spec
,
eval_spec
)
#
tf.estimator.train_and_evaluate(wideAndDeepModel, train_spec, eval_spec)
wideAndDeepModel
.
evaluate
(
lambda
:
input_fn
(
DATA_DIR
+
'eval_samples.csv'
,
1
,
False
,
2
**
15
))
...
...
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