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
22e22503
Commit
22e22503
authored
Aug 14, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add note for test
parent
96c077ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
test_supervisor.py
local/test_supervisor.py
+11
-9
No files found.
local/test_supervisor.py
View file @
22e22503
...
...
@@ -17,6 +17,7 @@ MODEL_VERSION = ''
lr
=
0.03
l2_lambda
=
0.002
class
FFMFormatPandas
:
def
__init__
(
self
):
self
.
field_index_
=
None
...
...
@@ -201,12 +202,13 @@ if __name__ == "__main__":
if
empty
==
1
:
time
.
sleep
(
60
)
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
:
if
device_id
in
old_device_id_list
:
router
(
device_id
)
else
:
print
(
"该用户不是老用户,不能预测"
)
end
=
time
.
time
()
time_cost
=
(
end
-
start
)
print
(
"耗时{}秒"
.
format
(
time_cost
))
print
(
"有数据"
)
# 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:
# if device_id in old_device_id_list:
# router(device_id)
# else:
# print("该用户不是老用户,不能预测")
# end = time.time()
# time_cost = (end - start)
# print("耗时{}秒".format(time_cost))
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