Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
alpha
physical
Commits
8d33fb3f
Commit
8d33fb3f
authored
Sep 20, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment
parent
9a80dae2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
collect_data.py
linucb/views/collect_data.py
+5
-3
No files found.
linucb/views/collect_data.py
View file @
8d33fb3f
...
...
@@ -49,17 +49,19 @@ class KafkaManager(object):
class
CollectData
(
object
):
def
__init__
(
self
):
# lin tag参数
self
.
linucb_matrix_redis_prefix
=
"physical:linucb:device_id:"
#
废弃
#
lin推荐tag
self
.
linucb_recommend_redis_prefix
=
"physical:linucb:tag_recommend:device_id:"
#推荐帖子
#
推荐帖子
self
.
linucb_recommend_topic_id_prefix
=
"physical:linucb:topic_recommend:device_id:"
# 推荐榜单
self
.
linucb_recommend_pictorial_id_prefix
=
"physical:linucb:pictorial_recommend:device_id:"
self
.
tag_topic_id_redis_prefix
=
"physical:tag_id:topic_id_list:"
self
.
click_recommend_redis_key_prefix
=
"physical:click_recommend:device_id:"
# 默认
self
.
user_feature
=
[
0
,
1
]
self
.
user_feature
=
[
0
,
1
]
def
_get_user_linucb_info
(
self
,
device_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