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
053e7e27
Commit
053e7e27
authored
Oct 29, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update click ids days
parent
186fcd66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tractate.py
word_vector/tractate.py
+2
-2
No files found.
word_vector/tractate.py
View file @
053e7e27
...
...
@@ -52,7 +52,7 @@ def get_tracate_click_data(spark, start, end):
where action = 'page_view'
AND partition_date BETWEEN '{}' AND '{}'
AND page_name='user_post_detail'
AND page_stay>=
1
AND page_stay>=
3
AND cl_id is not null
AND cl_id != ''
AND business_id is not null
...
...
@@ -155,7 +155,7 @@ def get_device_click_tractate_ids_dict(click_df):
if
__name__
==
"__main__"
:
spark
=
get_spark
(
"test"
)
click_df
=
get_tracate_click_data
(
spark
,
get_ndays_before_no_minus
(
3
0
),
get_ndays_before_no_minus
(
1
))
click_df
=
get_tracate_click_data
(
spark
,
get_ndays_before_no_minus
(
18
0
),
get_ndays_before_no_minus
(
1
))
click_df
.
show
(
5
,
False
)
res_dict
=
get_device_click_tractate_ids_dict
(
click_df
)
...
...
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