Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tuia-alg-engineering-py
Project
Project
Details
Activity
Releases
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
mengxiangxuan
tuia-alg-engineering-py
Commits
18dbee01
Commit
18dbee01
authored
Oct 22, 2018
by
mxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e7b2c71b
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
187 additions
and
66 deletions
+187
-66
misc.xml
.idea/misc.xml
+1
-1
tuia-alg-engineering-py.iml
.idea/tuia-alg-engineering-py.iml
+1
-1
candidate_set.py
auto-spread/auto_manage/candidate_set.py
+147
-63
params.py
auto-spread/auto_manage/params.py
+37
-0
samples_create.py
auto-spread/auto_manage/samples_create.py
+1
-1
No files found.
.idea/misc.xml
View file @
18dbee01
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.5.2 (D:\Program Files\
A
naconda3\python.exe)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.5.2 (D:\Program Files\
a
naconda3\python.exe)"
project-jdk-type=
"Python SDK"
/>
</project>
\ No newline at end of file
.idea/tuia-alg-engineering-py.iml
View file @
18dbee01
...
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"
inheritedJdk
"
/>
<orderEntry
type=
"
jdk"
jdkName=
"Python 3.5.2 (D:\Program Files\anaconda3\python.exe)"
jdkType=
"Python SDK
"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</module>
\ No newline at end of file
auto-spread/auto_manage/candidate_set.py
View file @
18dbee01
This diff is collapsed.
Click to expand it.
auto-spread/auto_manage/params.py
0 → 100644
View file @
18dbee01
import
redis
import
json
params_dict
=
{
#recommend方法
'startFacter'
:
0.5
,
'cpaBiasRatioFacter'
:
1.0
,
'cpaOrientRatioFacter'
:
0.5
,
'cpaBiasThresholdFacter'
:
2.0
,
'cpcTargetRatioFacter'
:
0.5
,
'cpcOrientRatioFacter'
:
0.01
,
'cpcBiasThresholdFacter'
:
1.0
,
#熔断
'fuseOrientCostG1dFacter'
:
50000.0
,
'fuseOrientCostConvertbiasFacter'
:
2.0
,
#白名单参数
'wSlotOrientationConfidenceFacter'
:
0.2
,
'wSlotOrientationCostConvertBiasFacter'
:
1.2
,
#高置信黑名单参数
'bOrientConfidenceFacter1'
:
1.0
,
'bOrientCostConvertbiasFacter1'
:
1.2
,
'bSlotOrientationConfidenceFacter1'
:
0.5
,
'bSlotOrientationCostConvertBiasFacter1'
:
3.5
,
#低置信黑名单参数
'bOrientConfidenceFacter2'
:
1.0
,
'bOrientCostConvertbiasFacter2'
:
1.5
,
'bSlotOrientationConfidenceFacter2'
:
0.5
,
'bSlotOrientRadioFacter2'
:
2.0
,
}
params_key
=
"NZ_K??_auto_manage_params"
params_value
=
json
.
dumps
(
params_dict
)
auto-spread/auto_manage/samples_create.py
View file @
18dbee01
...
...
@@ -105,7 +105,7 @@ sql='''select advert_id,account_id,
when length(match_tag_nums)=22 then substr(match_tag_nums,13)
else match_tag_nums end match_tag_nums,avg(fee) fee
from advert.dws_advert_order_wide_v4_level_6_di
where dt>='{0}' and dt<='{1}' and advert_id is not null
where dt>='{0}' and dt<='{1}' and advert_id is not null
and fee>0
group by advert_id,account_id,
case when length(match_tag_nums)=16 then substr(match_tag_nums,7)
when length(match_tag_nums)=22 then substr(match_tag_nums,13)
...
...
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