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
cba9a6e4
Commit
cba9a6e4
authored
May 17, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test fliw
parent
70b05e4a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
multi.py
tensnsorflow/multi.py
+2
-2
No files found.
tensnsorflow/multi.py
View file @
cba9a6e4
...
...
@@ -33,8 +33,8 @@ def multi_hot(df,column,n):
def
feature_engineer
():
# TODO 删除下面的测试写入
df
=
spark
.
sql
(
"select y,z from esmm_train_data limit 60"
)
df
.
write
.
format
(
"com.databricks.spark.avro"
)
.
save
(
path
=
path
+
"tr"
,
mode
=
"overwrite"
)
df
=
spark
.
sql
(
"select y,z from esmm_train_data limit 60
00
"
)
df
.
saveAsParquetFile
(
"{}tr/p2.parquet"
.
format
(
path
)
)
print
(
"done"
)
db
=
pymysql
.
connect
(
host
=
'172.16.40.158'
,
port
=
4000
,
user
=
'root'
,
passwd
=
'3SYz54LS9#^9sBvC'
,
db
=
'jerry_test'
)
...
...
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