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 = ''
...
@@ -17,6 +17,7 @@ MODEL_VERSION = ''
lr
=
0.03
lr
=
0.03
l2_lambda
=
0.002
l2_lambda
=
0.002
class
FFMFormatPandas
:
class
FFMFormatPandas
:
def
__init__
(
self
):
def
__init__
(
self
):
self
.
field_index_
=
None
self
.
field_index_
=
None
...
@@ -201,12 +202,13 @@ if __name__ == "__main__":
...
@@ -201,12 +202,13 @@ if __name__ == "__main__":
if
empty
==
1
:
if
empty
==
1
:
time
.
sleep
(
60
)
time
.
sleep
(
60
)
else
:
else
:
old_device_id_list
=
pd
.
read_csv
(
DIRECTORY_PATH
+
"data_set_device_id.csv"
)[
"device_id"
]
.
values
.
tolist
()
print
(
"有数据"
)
for
device_id
in
device_id_list
:
# old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist()
if
device_id
in
old_device_id_list
:
# for device_id in device_id_list:
router
(
device_id
)
# if device_id in old_device_id_list:
else
:
# router(device_id)
print
(
"该用户不是老用户,不能预测"
)
# else:
end
=
time
.
time
()
# print("该用户不是老用户,不能预测")
time_cost
=
(
end
-
start
)
# end = time.time()
print
(
"耗时{}秒"
.
format
(
time_cost
))
# 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