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
c5317d95
Commit
c5317d95
authored
Apr 19, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把刚才修改的文件回滚
parent
680b4c83
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Recommendation_strategy_all.scala
...src/main/scala/com/gmei/Recommendation_strategy_all.scala
+5
-4
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+0
-0
No files found.
eda/feededa/src/main/scala/com/gmei/Recommendation_strategy_all.scala
View file @
c5317d95
...
@@ -52,7 +52,7 @@ object Recommendation_strategy_all {
...
@@ -52,7 +52,7 @@ object Recommendation_strategy_all {
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
1
)
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
1
)
// val stat_date = param.date
// val stat_date = param.date
//println(param.date)
//println(param.date)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
decive_id_oldUser
=
sc
.
sql
(
val
decive_id_oldUser
=
sc
.
sql
(
...
@@ -119,7 +119,7 @@ object Recommendation_strategy_all {
...
@@ -119,7 +119,7 @@ object Recommendation_strategy_all {
"""
.
stripMargin
"""
.
stripMargin
)
)
//获取策略命中用户device_id
//获取策略命中用户device_id
val
device_id_cover
=
sc
.
sql
(
val
device_id_cover
=
sc
.
sql
(
s
"""
s
"""
|select distinct(device_id) as device_id
|select distinct(device_id) as device_id
...
@@ -287,7 +287,7 @@ object Recommendation_strategy_all {
...
@@ -287,7 +287,7 @@ object Recommendation_strategy_all {
GmeiConfig
.
writeToJDBCTable
(
result2
,
"strategy_other"
,
SaveMode
.
Append
)
GmeiConfig
.
writeToJDBCTable
(
result2
,
"strategy_other"
,
SaveMode
.
Append
)
//统计新用户点击率
//统计新用户点击率
val
devicee_id_newUser
=
sc
.
sql
(
val
devicee_id_newUser
=
sc
.
sql
(
s
"""
s
"""
|select distinct(device_id) as device_id
|select distinct(device_id) as device_id
...
@@ -442,7 +442,7 @@ object Gini_coefficient {
...
@@ -442,7 +442,7 @@ object Gini_coefficient {
"""
.
stripMargin
"""
.
stripMargin
)
)
agency_id
.
createOrReplaceTempView
(
"agency_id"
)
agency_id
.
createOrReplaceTempView
(
"agency_id"
)
//统计次数
//统计次数
val
diary_clk_num
=
sc
.
sql
(
val
diary_clk_num
=
sc
.
sql
(
s
"""
s
"""
|select temp1.diary_id as diary_id,count(ov.cl_id) as diary_clk_num
|select temp1.diary_id as diary_id,count(ov.cl_id) as diary_clk_num
...
@@ -468,3 +468,4 @@ object Gini_coefficient {
...
@@ -468,3 +468,4 @@ object Gini_coefficient {
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
c5317d95
This diff is collapsed.
Click to expand it.
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