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
a5a58b9a
Commit
a5a58b9a
authored
Mar 04, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update merge values
parent
48cdc7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+3
-3
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
a5a58b9a
...
@@ -5,9 +5,9 @@ from collections import Counter
...
@@ -5,9 +5,9 @@ from collections import Counter
from
tool
import
get_tag3_user_log
from
tool
import
get_tag3_user_log
def
merge_values
(
d1
,
d2
):
# [{'激光': 1.949194898204873}, {'手术': 1.949194898204873}, {'手术': 1.949194898204873}, {'手术': 1.949194898204873}]
ini_dict
=
[
d1
,
d2
]
def
merge_values
(
list_of_dict
):
return
dict
(
functools
.
reduce
(
operator
.
add
,
map
(
Counter
,
ini
_dict
)))
return
dict
(
functools
.
reduce
(
operator
.
add
,
map
(
Counter
,
list_of
_dict
)))
def
update_tag3_user_portrait
(
cl_id
):
def
update_tag3_user_portrait
(
cl_id
):
...
...
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