Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_mab
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
gm_mab
Commits
69c0d126
Commit
69c0d126
authored
Apr 25, 2020
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试
parent
4e3e2276
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Linucb.py
linucb/core/Linucb.py
+1
-1
generate_content_user_feature.py
tools/generate_content_user_feature.py
+2
-2
No files found.
linucb/core/Linucb.py
View file @
69c0d126
...
...
@@ -88,7 +88,7 @@ class LinUCB:
else
:
np_score_dict
[
score
]
.
append
(
score_index
)
#
import pdb;pdb.set_trace()
import
pdb
;
pdb
.
set_trace
()
sorted_np_score_list
=
sorted
(
np_score_list
,
reverse
=
True
)
for
top_score
in
sorted_np_score_list
:
for
top_score_index
in
np_score_dict
[
top_score
]:
...
...
tools/generate_content_user_feature.py
View file @
69c0d126
...
...
@@ -223,8 +223,8 @@ if __name__ == "__main__":
# Generate_Feature_Info.generate_content_feature_to_redis(label_encoder,onehot_encoder)
linucb_matrix_redis_name
=
"strategy:linucb:matrix:content_type:diary"
#
linucb_matrix_redis_name = "strategy:linucb:matrix:content_type:diary"
#
# diary_click_file = "/data/log/duan_test/feed_query_data/feed_click_info.txt"
# diary_fd = open(diary_click_file,"r")
#
...
...
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