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
72512820
Commit
72512820
authored
Aug 05, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update import
parent
1c3e0939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
tag3_update_user_portrait_offline.py
eda/smart_rank/tag3_update_user_portrait_offline.py
+6
-8
No files found.
eda/smart_rank/tag3_update_user_portrait_offline.py
View file @
72512820
...
...
@@ -5,13 +5,11 @@ import operator
from
collections
import
Counter
import
pymysql
import
pytz
import
redis
from
pyspark
import
SparkConf
from
pyspark.sql
import
SparkSession
from
tool
import
(
get_doris_prod
,
get_
jerry_test
,
get_redis_client
,
get_tag3_user_log
,
get_user_portrait_tag3_with_score
,
send_email
,
write_user_portrait
,
write_user_portrait_by_event
,
write_user_portrait_doris
)
from
tool
import
(
get_doris_prod
,
get_
redis_client
,
get_tag3_user_log
,
get_user_portrait_tag3_with_score
,
send_email
,
write_user_portrait
,
write_user_portrait_by_event
,
write_user_portrait_doris
)
# [{'激光': 1.949194898204873}, {'手术': 1.949194898204873}, {'手术': 1.949194898204873}, {'手术': 1.949194898204873, '植发际线': 7.1}]
...
...
@@ -282,10 +280,10 @@ def update_tag3_user_portrait(cl_id):
# "%Y-%m-%dT%H:%M:%S.%f")[:-7] + "Z"
# es_insert_device_info(cl_id, body)
#
#
write_user_portrait_doris(cl_id, ",".join(first_solutions_score.keys()), ",".join(second_solutions_score.keys()),
#
#
",".join(first_demands_score.keys()), ",".join(second_demands_score.keys()),
#
#
",".join(first_positions_score.keys()), ",".join(second_positions_score.keys()),
#
#
",".join(projects_score.keys()))
# write_user_portrait_doris(cl_id, ",".join(first_solutions_score.keys()), ",".join(second_solutions_score.keys()),
# ",".join(first_demands_score.keys()), ",".join(second_demands_score.keys()),
# ",".join(first_positions_score.keys()), ",".join(second_positions_score.keys()),
# ",".join(projects_score.keys()))
return
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