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
b81ec78c
Commit
b81ec78c
authored
Feb 14, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify bug
parent
5fe1c339
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
topic.py
search/utils/topic.py
+2
-2
trans2es_data2es_parallel.py
trans2es/management/commands/trans2es_data2es_parallel.py
+2
-1
No files found.
search/utils/topic.py
View file @
b81ec78c
...
@@ -137,10 +137,10 @@ class TopicUtils(object):
...
@@ -137,10 +137,10 @@ class TopicUtils(object):
"gauss"
:
{
"gauss"
:
{
"create_time"
:
{
"create_time"
:
{
"scale"
:
"1d"
,
"scale"
:
"1d"
,
"decay"
:
0.99
9
"decay"
:
0.99
}
}
},
},
"weight"
:
5
"weight"
:
5
00
}
}
# {
# {
# "gauss": {
# "gauss": {
...
...
trans2es/management/commands/trans2es_data2es_parallel.py
View file @
b81ec78c
...
@@ -25,6 +25,7 @@ from trans2es.models.tag import TopicTag,Tag
...
@@ -25,6 +25,7 @@ from trans2es.models.tag import TopicTag,Tag
from
trans2es.models.user_extra
import
UserExtra
from
trans2es.models.user_extra
import
UserExtra
from
trans2es.models.group
import
Group
from
trans2es.models.group
import
Group
from
trans2es.models.topic
import
Topic
,
ActionSumAboutTopic
from
trans2es.models.topic
import
Topic
,
ActionSumAboutTopic
from
search.utils.common
import
*
class
Job
(
object
):
class
Job
(
object
):
...
@@ -127,7 +128,7 @@ class Command(BaseCommand):
...
@@ -127,7 +128,7 @@ class Command(BaseCommand):
def
generate_topic_score_detail
(
self
):
def
generate_topic_score_detail
(
self
):
try
:
try
:
topic_id_dict
=
TopicUtils
.
get_recommend_topic_ids
(
-
1
,
0
,
500
,
test_score
=
True
)
topic_id_dict
=
TopicUtils
.
get_recommend_topic_ids
(
241432787
,
0
,
500
,
query_type
=
TopicPageType
.
HOME_RECOMMEND
,
test_score
=
True
)
for
topic_id
in
topic_id_dict
:
for
topic_id
in
topic_id_dict
:
offline_score
=
0.0
offline_score
=
0.0
...
...
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