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
c2a6d59a
Commit
c2a6d59a
authored
May 24, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test file
parent
b81b7ce6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
multi.py
tensnsorflow/multi.py
+4
-10
train_multi.py
tensnsorflow/train_multi.py
+0
-0
No files found.
tensnsorflow/multi.py
View file @
c2a6d59a
...
...
@@ -147,6 +147,7 @@ if __name__ == '__main__':
# validate_date, value_map, app_list_map = feature()
# get_predict(validate_date, value_map, app_list_map)
# [path + "tr/part-r-00000"]
import
subprocess
dir_in
=
"/strategy/esmm/tr"
...
...
@@ -156,16 +157,9 @@ if __name__ == '__main__':
s_output
,
s_err
=
proc
.
communicate
()
all_dart_dirs
=
s_output
.
split
()
print
(
all_dart_dirs
)
a
=
[]
for
i
in
all_dart_dirs
:
b
=
str
(
i
)
.
split
(
"/"
)[
4
]
if
b
[:
4
]
==
"part"
:
a
.
append
(
b
[:
-
1
])
# print(str(i).split("/")[4][:-1])
print
(
a
)
# d = spark.textFile("hdfs://172.16.32.4:8020/strategy/esmm/tr").collect()
# print(d)
print
(
type
(
all_dart_dirs
))
...
...
tensnsorflow/train_multi.py
View file @
c2a6d59a
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