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
7d70885d
Commit
7d70885d
authored
May 05, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试文件
parent
12e4f5d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
record.py
tensnsorflow/record.py
+8
-6
No files found.
tensnsorflow/record.py
View file @
7d70885d
...
...
@@ -6,6 +6,7 @@ from __future__ import print_function
import
pandas
as
pd
import
os
import
glob
from
hdfs
import
*
import
tensorflow
as
tf
import
numpy
as
np
...
...
@@ -52,6 +53,12 @@ def gen_tfrecords(in_file):
def
main
(
_
):
client
=
Client
(
"http://nvwa01:50070"
)
path
=
"/recommend/va"
for
root
,
dir
,
files
in
client
.
walk
(
path
):
for
file
in
files
:
print
(
file
)
if
not
os
.
path
.
exists
(
FLAGS
.
output_dir
):
os
.
mkdir
(
FLAGS
.
output_dir
)
file_list
=
glob
.
glob
(
os
.
path
.
join
(
FLAGS
.
input_dir
,
"*.avro"
))
...
...
@@ -68,9 +75,4 @@ def main(_):
if
__name__
==
"__main__"
:
tf
.
logging
.
set_verbosity
(
tf
.
logging
.
INFO
)
tf
.
app
.
run
()
from
hdfs
import
*
client
=
Client
(
"http://nvwa01:50070"
)
path
=
"/recommend/va"
for
root
,
dir
,
files
in
client
.
walk
(
path
):
for
file
in
files
:
print
(
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