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
44a409a3
Commit
44a409a3
authored
Aug 22, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add print
parent
c46264b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
diaryQueueUpdate.py
diaryQueueUpdate.py
+5
-3
No files found.
diaryQueueUpdate.py
View file @
44a409a3
...
@@ -152,6 +152,8 @@ def merge_score(x_list, score_df):
...
@@ -152,6 +152,8 @@ def merge_score(x_list, score_df):
db
.
close
()
db
.
close
()
score_df
[
"score"
]
=
score_df
[
"score"
]
+
score_list
score_df
[
"score"
]
=
score_df
[
"score"
]
+
score_list
print
(
"sum"
)
print
(
score_df
)
return
score_df
return
score_df
...
@@ -166,9 +168,9 @@ def update_dairy_queue(score_df):
...
@@ -166,9 +168,9 @@ def update_dairy_queue(score_df):
if
len
(
video_id
)
>
0
:
if
len
(
video_id
)
>
0
:
not_video_id
=
list
(
set
(
diary_id
)
-
set
(
video_id
))
not_video_id
=
list
(
set
(
diary_id
)
-
set
(
video_id
))
not_video_id_df
=
score_df
.
loc
[
score_df
[
"cid"
]
.
isin
(
not_video_id
)]
not_video_id_df
=
score_df
.
loc
[
score_df
[
"cid"
]
.
isin
(
not_video_id
)]
not_video_id_df
=
not_video_id_df
.
sort_values
(
by
=
"score"
,
ascending
=
False
)
#
not_video_id_df = not_video_id_df.sort_values(by="score", ascending=False)
video_id_df
=
score_df
.
loc
[
score_df
[
"cid"
]
.
isin
(
video_id
)]
video_id_df
=
score_df
.
loc
[
score_df
[
"cid"
]
.
isin
(
video_id
)]
video_id_df
=
video_id_df
.
sort_values
(
by
=
"score"
,
ascending
=
False
)
#
video_id_df = video_id_df.sort_values(by="score", ascending=False)
not_video_id
=
not_video_id_df
[
"cid"
]
.
values
.
tolist
()
not_video_id
=
not_video_id_df
[
"cid"
]
.
values
.
tolist
()
video_id
=
video_id_df
[
"cid"
]
.
values
.
tolist
()
video_id
=
video_id_df
[
"cid"
]
.
values
.
tolist
()
diary_id
=
not_video_id
diary_id
=
not_video_id
...
@@ -180,7 +182,7 @@ def update_dairy_queue(score_df):
...
@@ -180,7 +182,7 @@ def update_dairy_queue(score_df):
return
diary_id
return
diary_id
else
:
else
:
score_df
=
score_df
.
sort_values
(
by
=
"score"
,
ascending
=
False
)
#
score_df = score_df.sort_values(by="score", ascending=False)
return
score_df
[
"cid"
]
.
values
.
tolist
()
return
score_df
[
"cid"
]
.
values
.
tolist
()
...
...
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