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
4eac817f
Commit
4eac817f
authored
Jul 03, 2020
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a127c13a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
16 deletions
+7
-16
ai_test.py
ai_test.py
+3
-12
sort_key.py
sort_key.py
+4
-4
No files found.
ai_test.py
View file @
4eac817f
...
...
@@ -8,19 +8,10 @@ url="http://doris.paas-test.env/v1/once"
header_dict
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
param_dict
=
{}
param_dict
[
"method"
]
=
"doris/recommend/detail_service"
# 日记详情页召回美购
param_detail
=
{
"card_id"
:
9362282
,
"card_type"
:
"diary"
,
"size"
:
10
,
"user_city_tag_id"
:
328
,
"device_id"
:
"mike"
,
"read_service_ids"
:[]}
# 帖子详情页召回美购
# param_detail = {"card_id":20895840, "card_type":"usertopic","size":10,"user_city_tag_id":328,
# "device_id":"hello","read_service_ids":[]}
# 可视化召回
# 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":[],"filters":{},
# "new_tag_ids":[29]}
param_dict
[
"method"
]
=
"doris/recommend/spu_detail_diary"
param_detail
=
{
"device_id"
:
"3ab"
,
"size"
:
10
,
"offset"
:
0
,
"service_id"
:
1437
}
# tail -f filelog.log.20200701 | grep 3ab | grep doris/recommend/spu_detail_diary
param_dict
[
"params"
]
=
json
.
dumps
(
param_detail
)
a
=
requests
.
post
(
url
=
url
,
data
=
param_dict
,
headers
=
header_dict
)
...
...
sort_key.py
View file @
4eac817f
...
...
@@ -9,9 +9,9 @@ T3 = [430,538,603,376,623,670,550,660,400,674,606,395,382,543,572,468,638,412]
tag_value
[
"t1_city"
]
=
json
.
dumps
(
T1
)
tag_value
[
"t2_city"
]
=
json
.
dumps
(
T2
)
tag_value
[
"t3_city"
]
=
json
.
dumps
(
T3
)
boniaosuan
=
[
97
,
99
,
115
,
121
,
123
,
137
,
141
,
152
,
197
,
200
,
203
,
243
,
776
,
777
,
804
,
868
,
885
,
954
,
1055
,
614
8
]
chuzhoushoulian
=
[
79
,
117
,
168
,
205
,
207
,
237
,
798
,
842
,
1801
,
2033
,
5077
,
6148
]
bibu
=
[
2929
,
9123
,
8627
,
2925
,
2924
,
2927
,
2926
,
115
,
114
,
116
,
111
,
110
,
8464
,
112
,
234
,
253
,
7977
,
9027
,
232
,
233
,
797
,
796
,
26
,
21
,
22
,
23
,
106
,
7151
,
798
,
9069
,
2
,
810
,
24
,
9063
,
896
,
897
,
8394
,
8773
,
2073
,
108
,
109
,
3285
,
9047
,
107
,
105
,
965
,
966
,
3038
,
782
,
7993
,
803
,
804
,
806
,
805
,
65
]
boniaosuan
=
[
200
,
777
,
152
,
1055
,
885
,
141
,
197
,
203
,
121
,
954
,
115
,
99
,
123
,
137
,
97
,
243
,
804
,
6148
,
776
,
86
8
]
chuzhoushoulian
=
[
6148
,
205
,
842
,
1801
,
798
,
117
,
2033
,
207
,
168
,
237
,
5077
,
79
]
bibu
=
[
2929
,
9123
,
8627
,
2925
,
2924
,
2927
,
2926
,
115
,
114
,
116
,
111
,
110
,
8464
,
112
,
234
,
253
,
7977
,
9027
,
232
,
233
,
797
,
796
,
26
,
21
,
22
,
23
,
106
,
7151
,
798
,
9069
,
2
,
810
,
24
,
9063
,
896
,
897
,
8394
,
8773
,
2073
,
108
,
109
,
3285
,
9047
,
107
,
105
,
965
,
966
,
3038
,
782
,
7993
,
803
,
804
,
806
,
805
,
65
]
yanbu
=
[
2923
,
91
,
88
,
89
,
64
,
9012
,
9050
,
6163
,
5057
,
86
,
87
,
85
,
975
,
8865
,
780
,
878
,
790
,
953
,
3459
,
1
,
92
,
890
,
2429
,
777
,
102
,
90
,
101
,
95
,
3050
,
964
,
6138
,
15
,
17
,
19
,
18
,
3037
,
940
,
2417
]
mianbulunkuo
=
[
766
,
7823
,
130
,
3001
,
6146
,
235
,
81
,
5060
,
46
,
45
,
28
,
29
,
819
,
3
,
812
,
813
,
815
,
817
,
142
,
143
,
898
,
899
,
2932
,
1136
,
122
,
124
,
126
,
127
,
128
,
129
,
869
,
900
,
967
,
30
,
968
,
969
]
zhifangtianchong
=
[
153
,
198
,
114
,
7117
,
136
,
135
,
886
,
793
,
875
,
933
,
201
,
204
,
140
,
1233
,
120
,
98
,
241
,
125
,
102
,
225
,
1024
,
244
,
805
]
...
...
@@ -25,7 +25,7 @@ xiaba = [784, 46, 130, 819, 131, 123, 124, 125, 126, 127, 128, 129, 252]
chunbu
=
[
903
,
12
,
907
,
904
,
150
,
1204
,
863
,
864
,
2497
,
149
,
181
,
134
,
52
,
31
,
816
]
shibaixiufu
=
[
964
,
965
,
967
,
210
,
878
,
2429
,
968
,
969
,
971
,
64
,
65
,
70
,
82
,
869
,
81
,
2950
,
2951
]
banyongjiu
=
[
2954
,
1370
,
1114
,
2054
,
1080
]
xiongbu
=
[
7
,
66
,
69
,
70
,
210
,
212
,
220
,
241
,
785
,
870
,
871
,
954
,
2354
,
5724
,
6144
,
6145
,
871
0
]
xiongbu
=
[
7
85
,
66
,
212
,
6145
,
210
,
70
,
954
,
870
,
871
,
8710
,
241
,
5724
,
7
,
6144
,
69
,
2354
,
22
0
]
rule
=
{
"t1_"
+
str
(
sorted
(
boniaosuan
)):
1
,
...
...
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