Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl_ai_recommender
Overview
Overview
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
闫发泽
ydl_ai_recommender
Commits
2af6c8c1
Commit
2af6c8c1
authored
May 18, 2023
by
王金柱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
精排序
parent
1cc4e6be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
+1
-3
rank_service.py
src/service/rank_service.py
+1
-1
recommend_service.py
src/service/recommend_service.py
+0
-2
No files found.
src/service/rank_service.py
View file @
2af6c8c1
...
@@ -11,7 +11,7 @@ from tornado.concurrent import run_on_executor
...
@@ -11,7 +11,7 @@ from tornado.concurrent import run_on_executor
from
ydl_ai_recommender.src.utils.log
import
create_logger
from
ydl_ai_recommender.src.utils.log
import
create_logger
from
ydl_ai_recommender.src.core.rank.ranker
import
Ranker
from
ydl_ai_recommender.src.core.rank.ranker
import
Ranker
from
ydl_ai_recommender.src.core.rank.rank
er
import
RankByXGB
from
ydl_ai_recommender.src.core.rank.rank
ByXgb
import
RankByXGB
logger
=
create_logger
(
__name__
,
'rank_service.log'
,
is_rotating
=
True
)
logger
=
create_logger
(
__name__
,
'rank_service.log'
,
is_rotating
=
True
)
...
...
src/service/recommend_service.py
View file @
2af6c8c1
...
@@ -13,8 +13,6 @@ from tornado.concurrent import run_on_executor
...
@@ -13,8 +13,6 @@ from tornado.concurrent import run_on_executor
from
ydl_ai_recommender.src.utils.log
import
create_logger
from
ydl_ai_recommender.src.utils.log
import
create_logger
from
ydl_ai_recommender.src.core.recommender
import
UserCFRecommender
from
ydl_ai_recommender.src.core.recommender
import
UserCFRecommender
from
ydl_ai_recommender.src.core.recommender
import
RecommendByXgboost
logger
=
create_logger
(
__name__
,
'service.log'
,
is_rotating
=
True
)
logger
=
create_logger
(
__name__
,
'service.log'
,
is_rotating
=
True
)
recommender
=
UserCFRecommender
(
top_n
=
2
,
k
=
50
,
u2c
=
'order'
)
recommender
=
UserCFRecommender
(
top_n
=
2
,
k
=
50
,
u2c
=
'order'
)
...
...
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