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
5f2f7a0b
Commit
5f2f7a0b
authored
Aug 13, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:ML/ffm-baseline
change format App Store and add a test/main.py
parents
85cd8cd7
01b129f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
predictDiary.py
predictDiary.py
+1
-1
processData.py
processData.py
+1
-1
train.py
train.py
+3
-3
No files found.
predictDiary.py
View file @
5f2f7a0b
...
...
@@ -98,7 +98,7 @@ if __name__ == "__main__":
start
=
time
.
time
()
empty
,
device_id_list
=
get_active_users
()
if
empty
:
time
.
sleep
(
1
0
)
time
.
sleep
(
6
0
)
else
:
old_device_id_list
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"data_set_device_id.csv"
)[
"device_id"
]
.
values
.
tolist
()
for
device_id
in
device_id_list
:
...
...
processData.py
View file @
5f2f7a0b
...
...
@@ -60,7 +60,7 @@ def feature_en():
print
(
cid_df
.
head
(
2
))
cid_df
.
to_csv
(
DIRECTORY_PATH
+
"data_set_cid.csv"
,
index
=
False
)
# 将device_id 保存
。
目的是为了判断预测的device_id是否在这个集合里,如果不在,不需要预测
# 将device_id 保存
,
目的是为了判断预测的device_id是否在这个集合里,如果不在,不需要预测
data_set_device_id
=
data
[
"device_id"
]
.
unique
()
device_id_df
=
pd
.
DataFrame
()
device_id_df
[
'device_id'
]
=
data_set_device_id
...
...
train.py
View file @
5f2f7a0b
...
...
@@ -8,7 +8,7 @@ if __name__ == "__main__":
data
,
test_number
,
validation_number
=
feature_en
()
ffm_transform
(
data
,
test_number
,
validation_number
)
train
()
print
(
"end"
)
# print('---------------prepare candidates--------------')
# get_eachCityDiaryTop3000()
print
(
'---------------prepare candidates--------------'
)
get_eachCityDiaryTop3000
()
print
(
"end"
)
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