Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
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
郭羽
serviceRec
Commits
51667ba2
Commit
51667ba2
authored
Dec 16, 2021
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型调试
parent
64190400
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
featureEngSk.py
spark/featureEngSk.py
+4
-4
train_service.py
train/train_service.py
+0
-1
train_service_sk.py
train/train_service_sk.py
+4
-0
No files found.
spark/featureEngSk.py
View file @
51667ba2
...
@@ -572,7 +572,7 @@ def getExposureSql(start, end):
...
@@ -572,7 +572,7 @@ def getExposureSql(start, end):
and card_type in ('card','video')
and card_type in ('card','video')
and card_content_type in ('service')
and card_content_type in ('service')
and (get_json_object(exposure_card,'$.in_page_pos') is null or get_json_object(exposure_card,'$.in_page_pos') != 'seckill')
and (get_json_object(exposure_card,'$.in_page_pos') is null or get_json_object(exposure_card,'$.in_page_pos') != 'seckill')
group by partition_date,
city_id,cl_type,cl_id,card_id,
app_session_id
group by partition_date,
city_id, cl_type, cl_id, card_id,
app_session_id
) t1
) t1
join
join
( --渠道,新老
( --渠道,新老
...
@@ -841,9 +841,9 @@ def get_item_es_feature_df():
...
@@ -841,9 +841,9 @@ def get_item_es_feature_df():
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_type'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_type'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_famous'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'doctor_famous'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_city_tag_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_type'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_city_tag_id'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_type'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_is_high_quality'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'second_demands'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'hospital_is_high_quality'
,
ITEM_PREFIX
+
MULTI_
CATEGORY_PREFIX
+
'second_demands'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'second_solutions'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'second_positions'
,
ITEM_PREFIX
+
MULTI_CATEGORY_PREFIX
+
'second_solutions'
,
ITEM_PREFIX
+
MULTI_
CATEGORY_PREFIX
+
'second_positions'
,
ITEM_PREFIX
+
CATEGORY_PREFIX
+
'projects'
,
ITEM_PREFIX
+
NUMERIC_PREFIX
+
'sku_price'
]
ITEM_PREFIX
+
MULTI_
CATEGORY_PREFIX
+
'projects'
,
ITEM_PREFIX
+
NUMERIC_PREFIX
+
'sku_price'
]
itemEsFeatureDF
=
pd
.
DataFrame
(
datas
,
columns
=
itemColumns
)
itemEsFeatureDF
=
pd
.
DataFrame
(
datas
,
columns
=
itemColumns
)
...
...
train/train_service.py
View file @
51667ba2
...
@@ -62,7 +62,6 @@ def getWeight(x):
...
@@ -62,7 +62,6 @@ def getWeight(x):
return
res
return
res
tf
.
feature_column
.
bucketized_column
()
def
getDataSet
(
df
,
shuffleSize
=
10000
,
batchSize
=
128
):
def
getDataSet
(
df
,
shuffleSize
=
10000
,
batchSize
=
128
):
# print(df.dtypes)
# print(df.dtypes)
...
...
train/train_service_sk.py
0 → 100644
View file @
51667ba2
import
tensorflow
as
tf
tf
.
keras
.
Model
()
\ No newline at end of file
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