Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
ee76db87
Commit
ee76db87
authored
Apr 29, 2020
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
ea27459c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
ai_test.py
ai_test.py
+10
-1
sort_key.py
sort_key.py
+13
-9
No files found.
ai_test.py
View file @
ee76db87
...
...
@@ -9,8 +9,17 @@ header_dict={'Content-Type': 'application/x-www-form-urlencoded'}
param_dict
=
{}
param_dict
[
"method"
]
=
"doris/search/spu_sku"
param_detail
=
{
"device_id"
:
"3ab"
,
"size"
:
10
,
"offset"
:
0
,
"user_city_tag_id"
:
328
,
"recall_type"
:
2
,
"unit_id"
:
4
,
"sort_params"
:{
"lat"
:
0
,
"lng"
:
0
},
"tag_ids"
:[
993
,
971
,
5
,
41
,
759
,
47
,
821
],
"filters"
:{
"tag_ids"
:[
971
]}}
# param_detail = {'unit_id': 1, 'device_id': "863791030182646", 'offset': 0, 'size': 10,
# 'user_city_tag_id': 328, 'recall_type': 2,
# 'sort_params': {'lat': 40.000561, 'lng': 116.487496},
# 'sort_type': 0, 'filters': {'tag_ids': []}, 'tag_ids': [], 'promotion_ids': []}
param_detail
=
{
'unit_id'
:
4
,
'device_id'
:
"863791030182646"
,
'offset'
:
0
,
'size'
:
10
,
'user_city_tag_id'
:
328
,
'recall_type'
:
2
,
'sort_params'
:
{
'lat'
:
40.000561
,
'lng'
:
116.487496
},
'sort_type'
:
0
,
'filters'
:
{
'tag_ids'
:
[]},
'tag_ids'
:
[],
'promotion_ids'
:
[]}
# {"device_id":"3ab", "size":10,"offset":0,"user_city_tag_id":328,"recall_type":2,"unit_id":4,"sort_params":{"lat":0,"lng":0}}
# 美购首页活动美购
# param_dict["method"]="doris/search/activity"
# param_detail = {"device_id":"hello","promotion_id":342,"user_city_tag_id":328,"size":10}
...
...
sort_key.py
View file @
ee76db87
...
...
@@ -38,23 +38,23 @@ rule = {"t1_"+str(sorted(boniaosuan)):1,
"t4_"
+
str
(
sorted
(
chuzhoushoulian
)):
3
,
"t1_"
+
str
(
sorted
(
bibu
)):
1
,
"t2_"
+
str
(
sorted
(
bibu
)):
2
,
"t3_"
+
str
(
sorted
(
bibu
)):
3
,
"t3_"
+
str
(
sorted
(
bibu
)):
2
,
"t4_"
+
str
(
sorted
(
bibu
)):
3
,
"t1_"
+
str
(
sorted
(
yanbu
)):
1
,
"t2_"
+
str
(
sorted
(
yanbu
)):
2
,
"t3_"
+
str
(
sorted
(
yanbu
)):
3
,
"t3_"
+
str
(
sorted
(
yanbu
)):
2
,
"t4_"
+
str
(
sorted
(
yanbu
)):
3
,
"t1_"
+
str
(
sorted
(
mianbulunkuo
)):
1
,
"t2_"
+
str
(
sorted
(
mianbulunkuo
)):
2
,
"t3_"
+
str
(
sorted
(
mianbulunkuo
)):
3
,
"t3_"
+
str
(
sorted
(
mianbulunkuo
)):
2
,
"t4_"
+
str
(
sorted
(
mianbulunkuo
)):
3
,
"t1_"
+
str
(
sorted
(
zhifangtianchong
)):
1
,
"t2_"
+
str
(
sorted
(
zhifangtianchong
)):
2
,
"t3_"
+
str
(
sorted
(
zhifangtianchong
)):
3
,
"t3_"
+
str
(
sorted
(
zhifangtianchong
)):
2
,
"t4_"
+
str
(
sorted
(
zhifangtianchong
)):
3
,
"t1_"
+
str
(
sorted
(
meitishoushen
)):
1
,
"t2_"
+
str
(
sorted
(
meitishoushen
)):
2
,
"t3_"
+
str
(
sorted
(
meitishoushen
)):
3
,
"t3_"
+
str
(
sorted
(
meitishoushen
)):
2
,
"t4_"
+
str
(
sorted
(
meitishoushen
)):
3
,
"t1_"
+
str
(
sorted
(
kouqiangchike
)):
1
,
"t2_"
+
str
(
sorted
(
kouqiangchike
)):
1
,
...
...
@@ -62,7 +62,7 @@ rule = {"t1_"+str(sorted(boniaosuan)):1,
"t4_"
+
str
(
sorted
(
kouqiangchike
)):
2
,
"t1_"
+
str
(
sorted
(
kangshuaijinzhi
)):
1
,
"t2_"
+
str
(
sorted
(
kangshuaijinzhi
)):
2
,
"t3_"
+
str
(
sorted
(
kangshuaijinzhi
)):
3
,
"t3_"
+
str
(
sorted
(
kangshuaijinzhi
)):
2
,
"t4_"
+
str
(
sorted
(
kangshuaijinzhi
)):
3
,
"t1_"
+
str
(
sorted
(
yixuemeifu
)):
1
,
"t2_"
+
str
(
sorted
(
yixuemeifu
)):
1
,
...
...
@@ -74,12 +74,16 @@ rule = {"t1_"+str(sorted(boniaosuan)):1,
"t4_"
+
str
(
sorted
(
simi
)):
3
,
"t1_"
+
str
(
sorted
(
zhifatuomao
)):
1
,
"t2_"
+
str
(
sorted
(
zhifatuomao
)):
2
,
"t3_"
+
str
(
sorted
(
zhifatuomao
)):
3
,
"t3_"
+
str
(
sorted
(
zhifatuomao
)):
2
,
"t4_"
+
str
(
sorted
(
zhifatuomao
)):
3
,
"t1_"
+
str
(
sorted
(
xiaba
)):
1
,
"t2_"
+
str
(
sorted
(
xiaba
)):
2
,
"t3_"
+
str
(
sorted
(
xiaba
)):
3
,
"t3_"
+
str
(
sorted
(
xiaba
)):
2
,
"t4_"
+
str
(
sorted
(
xiaba
)):
3
,
"t1_"
+
str
(
sorted
(
chunbu
)):
1
,
"t2_"
+
str
(
sorted
(
chunbu
)):
2
,
"t3_"
+
str
(
sorted
(
chunbu
)):
2
,
"t4_"
+
str
(
sorted
(
chunbu
)):
3
,
"t1_"
+
str
(
sorted
(
shibaixiufu
)):
1
,
"t2_"
+
str
(
sorted
(
shibaixiufu
)):
2
,
"t3_"
+
str
(
sorted
(
shibaixiufu
)):
4
,
...
...
@@ -90,7 +94,7 @@ rule = {"t1_"+str(sorted(boniaosuan)):1,
"t4_"
+
str
(
sorted
(
banyongjiu
)):
3
,
"t1_"
+
str
(
sorted
(
xiongbu
)):
1
,
"t2_"
+
str
(
sorted
(
xiongbu
)):
2
,
"t3_"
+
str
(
sorted
(
xiongbu
)):
3
,
"t3_"
+
str
(
sorted
(
xiongbu
)):
2
,
"t4_"
+
str
(
sorted
(
xiongbu
)):
3
}
...
...
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