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
680b4c83
Commit
680b4c83
authored
Apr 19, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把数据库改成腾讯云
parent
3ff752ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
feature.py
eda/esmm/Model_pipline/feature.py
+1
-1
temp_analysis.scala
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
+2
-2
No files found.
eda/esmm/Model_pipline/feature.py
View file @
680b4c83
...
@@ -62,7 +62,7 @@ def get_data():
...
@@ -62,7 +62,7 @@ def get_data():
df
=
df
.
drop
(
"level2"
,
axis
=
1
)
df
=
df
.
drop
(
"level2"
,
axis
=
1
)
service_id
=
tuple
(
df
[
"service_id"
]
.
unique
())
service_id
=
tuple
(
df
[
"service_id"
]
.
unique
())
db
=
pymysql
.
connect
(
host
=
'
rdsfewzdmf0jfjp9un8xj.mysql.rds.aliyuncs.com
'
,
port
=
3306
,
user
=
'work'
,
db
=
pymysql
.
connect
(
host
=
'
172.16.30.143
'
,
port
=
3306
,
user
=
'work'
,
passwd
=
'BJQaT9VzDcuPBqkd'
,
db
=
'zhengxing'
)
passwd
=
'BJQaT9VzDcuPBqkd'
,
db
=
'zhengxing'
)
sql
=
"select s.id,d.hospital_id from api_service s left join api_doctor d on s.doctor_id = d.id "
\
sql
=
"select s.id,d.hospital_id from api_service s left join api_doctor d on s.doctor_id = d.id "
\
"where s.id in {}"
.
format
(
service_id
)
"where s.id in {}"
.
format
(
service_id
)
...
...
eda/feededa/src/main/scala/com/gmei/temp_analysis.scala
View file @
680b4c83
...
@@ -725,7 +725,7 @@ object copy_database {
...
@@ -725,7 +725,7 @@ object copy_database {
import
sc.implicits._
import
sc.implicits._
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
1
)
val
stat_date
=
GmeiConfig
.
getMinusNDate
(
6
)
// val stat_date=param.date
// val stat_date=param.date
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
val
partition_date
=
stat_date
.
replace
(
"-"
,
""
)
...
@@ -744,7 +744,7 @@ object copy_database {
...
@@ -744,7 +744,7 @@ object copy_database {
"""
.
stripMargin
"""
.
stripMargin
)
)
GmeiConfig
.
writeToJDBCTable
(
new_data
,
"train_Knowledge_network_data"
,
SaveMode
.
Overwrite
)
GmeiConfig
.
writeToJDBCTable
(
"jdbc:mysql://152.136.44.138:4000/jerry_test?user=root&password=3SYz54LS9#^9sBvC&rewriteBatchedStatements=true"
,
new_data
,
"train_Knowledge_network_data"
,
SaveMode
.
Overwrite
)
}
}
...
...
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