Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
ea755c1d
Commit
ea755c1d
authored
Jul 30, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zhao' into 'master'
把esmm 预测后的日记队列数量由500改成1000 See merge request
!30
parents
004bd6b6
8f301420
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
37 deletions
+1
-37
feature_engineering.py
eda/esmm/Model_pipline/feature_engineering.py
+0
-7
train.py
eda/esmm/Model_pipline/train.py
+1
-1
train.py
train.py
+0
-29
No files found.
eda/esmm/Model_pipline/feature_engineering.py
View file @
ea755c1d
...
...
@@ -389,10 +389,3 @@ if __name__ == '__main__':
get_predict
(
validate_date
,
value_map
,
app_list_map
,
leve2_map
,
leve3_map
)
spark
.
stop
()
eda/esmm/Model_pipline/train.py
View file @
ea755c1d
...
...
@@ -378,7 +378,7 @@ def trans(x):
def
set_join
(
lst
):
l
=
lst
.
unique
()
.
tolist
()
r
=
[
str
(
i
)
for
i
in
l
]
r
=
r
[:
5
00
]
r
=
r
[:
10
00
]
return
','
.
join
(
r
)
def
df_sort
(
result
,
queue_name
):
...
...
train.py
deleted
100644 → 0
View file @
004bd6b6
from
dataProcess
import
*
from
diaryTraining
import
*
import
time
from
utils
import
*
# 把数据获取、特征转换、模型训练的模型串联在一起
if
__name__
==
"__main__"
:
# while True:
# now = datetime.now()
# if (now.hour == 23) and (now.minute == 30):
start_train
=
time
.
time
()
data_start_date
,
data_end_date
,
validation_date
,
test_date
=
get_date
()
data
,
test_number
,
validation_number
=
feature_en
(
data_start_date
,
data_end_date
,
validation_date
,
test_date
)
ffm_transform
(
data
,
test_number
,
validation_number
)
train
()
end_train
=
time
.
time
()
print
(
"训练模型耗时{}分"
.
format
((
end_train
-
start_train
)
/
60
))
move_file
()
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