Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
strategy_embedding
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
strategy_embedding
Commits
17655203
Commit
17655203
authored
Nov 05, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless feature
parent
568715d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
get_tractate_data.py
dssm/get_tractate_data.py
+1
-12
No files found.
dssm/get_tractate_data.py
View file @
17655203
...
@@ -351,12 +351,6 @@ def get_card_feature_df(spark, card_type, yesterday):
...
@@ -351,12 +351,6 @@ def get_card_feature_df(spark, card_type, yesterday):
sixty_reply_pure_rate,
sixty_reply_pure_rate,
ninety_reply_pure_rate,
ninety_reply_pure_rate,
history_reply_pure_rate,
history_reply_pure_rate,
CAST(IFNULL(content2.goodclick_7, 0.0) AS DOUBLE) AS goodclick_7,
CAST(IFNULL(content2.goodclick_14, 0.0) AS DOUBLE) AS goodclick_14,
CAST(IFNULL(content2.goodclick_30, 0.0) AS DOUBLE) AS goodclick_30,
CAST(IFNULL(content2.goodclick_60, 0.0) AS DOUBLE) AS goodclick_60,
CAST(IFNULL(content2.goodclick_90, 0.0) AS DOUBLE) AS goodclick_90,
content_tag3.smart_rank_score smart_rank_score,
IFNULL(content_tag3.first_demands, "") AS card_first_demands,
IFNULL(content_tag3.first_demands, "") AS card_first_demands,
IFNULL(content_tag3.second_demands, "") AS card_second_demands,
IFNULL(content_tag3.second_demands, "") AS card_second_demands,
IFNULL(content_tag3.first_solutions, "") AS card_first_solutions,
IFNULL(content_tag3.first_solutions, "") AS card_first_solutions,
...
@@ -368,15 +362,10 @@ def get_card_feature_df(spark, card_type, yesterday):
...
@@ -368,15 +362,10 @@ def get_card_feature_df(spark, card_type, yesterday):
online.al_community_forecast_character_day_v3 card_feature
online.al_community_forecast_character_day_v3 card_feature
JOIN content_tag3
JOIN content_tag3
ON card_feature.card_id = content_tag3.id
ON card_feature.card_id = content_tag3.id
LEFT JOIN
(select * from online.al_community_detail_page_goodclick_ctr
where page_name = '{}'
) AS content2
ON card_feature.card_id = content2.business_id
where partition_date = '{}'
where partition_date = '{}'
and card_content_type = '{}'
and card_content_type = '{}'
and card_id rlike '{}'
and card_id rlike '{}'
"""
.
format
(
card_type
,
yesterday
,
card_type
,
reg
)
"""
.
format
(
yesterday
,
card_type
,
reg
)
return
spark
.
sql
(
sql
)
return
spark
.
sql
(
sql
)
...
...
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