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
2fffdcdf
Commit
2fffdcdf
authored
Jun 25, 2019
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
5477aed0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
predict.py
eda/esmm/Model_pipline/predict.py
+1
-1
No files found.
eda/esmm/Model_pipline/predict.py
View file @
2fffdcdf
...
...
@@ -249,7 +249,7 @@ if __name__ == "__main__":
cur
=
con
.
cursor
()
for
i
in
range
(
0
,
device_count
):
query
=
"INSERT INTO esmm_device_diary_queue_test (device_id, city_id, time,nearby_queue) VALUES(
%
s,
%
s,
%
s,
%
s) ON DUPLICATE KEY UPDATE device_id=
%
s, city_id=
%
s, time=
%
s, nearby_queue=
%
s"
cur
.
execute
(
query
,
(
df2
.
device_id
[
i
],
df2
.
city_id
[
i
],
df2
.
time
[
i
],
df
.
nearby_queue
[
i
],
df2
.
device_id
[
i
],
df2
.
city_id
[
i
],
df2
.
time
[
i
],
df
.
nearby_queue
[
i
]))
cur
.
execute
(
query
,
(
df2
.
device_id
[
i
],
df2
.
city_id
[
i
],
df2
.
time
[
i
],
df
2
.
nearby_queue
[
i
],
df2
.
device_id
[
i
],
df2
.
city_id
[
i
],
df2
.
time
[
i
],
df2
.
nearby_queue
[
i
]))
con
.
commit
()
con
.
close
()
...
...
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