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
ec91c0cf
Commit
ec91c0cf
authored
Apr 01, 2020
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
b6954548
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
ai_test.py
ai_test.py
+3
-3
ctr_exp.py
ctr_exp.py
+2
-0
make_data.py
make_data.py
+3
-3
No files found.
ai_test.py
View file @
ec91c0cf
# -*- coding: utf-8 -*-
import
json
import
requests
url
=
"http://127.0.0.1:4050/v1/once"
#
url="http://doris.paas.test/v1/once"
#
url="http://127.0.0.1:4050/v1/once"
url
=
"http://doris.paas.test/v1/once"
# 如果在生产环境doris 01上执行,把url改成"http://127.0.0.1:4050/v1/once"
header_dict
=
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
param_dict
=
{}
param_dict
[
"method"
]
=
"doris/search/bangdan"
param_detail
=
{
"device_id"
:
"1"
,
"size"
:
10
,
"user_city_tag_id"
:
352
,
"offset"
:
0
,
"is_officer"
:
False
,
"unit_ids"
:[]}
param_detail
=
{
"device_id"
:
"1"
,
"size"
:
20
,
"user_city_tag_id"
:
328
,
"offset"
:
0
,
"is_officer"
:
False
,
"unit_ids"
:[]}
param_dict
[
"params"
]
=
json
.
dumps
(
param_detail
)
...
...
ctr_exp.py
View file @
ec91c0cf
...
...
@@ -55,6 +55,8 @@ def get_data():
def
get_ctr
():
pass
if
__name__
==
"__main__"
:
DIRECTORY_PATH
=
"/home/gmuser/"
df
=
pd
.
DataFrame
(
list
(
get_data
()))
...
...
make_data.py
View file @
ec91c0cf
...
...
@@ -73,7 +73,7 @@ def hospital():
data
=
data
.
drop_duplicates
()
print
(
data
.
shape
)
data
.
to_csv
(
'/tmp/
31
1_hospital.csv'
,
index
=
False
)
data
.
to_csv
(
'/tmp/
4
1_hospital.csv'
,
index
=
False
)
def
new_doctor
():
...
...
@@ -139,12 +139,12 @@ def new_doctor():
data
=
data
.
drop_duplicates
()
print
(
data
.
shape
)
data
.
to_csv
(
'/tmp/
31
1_doctor.csv'
,
index
=
False
)
data
.
to_csv
(
'/tmp/
4
1_doctor.csv'
,
index
=
False
)
print
(
"doctor end"
)
if
__name__
==
"__main__"
:
date_str
=
"202003
10
"
date_str
=
"202003
31
"
new_doctor
()
hospital
()
...
...
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