Skip to content

Commit

Permalink
Allow passing comma-delimited column names (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark-kun authored and k8s-ci-robot committed Mar 28, 2019
1 parent 291691a commit 211f53e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/dataflow/tfma/src/model_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ def generate_static_html_output(output_dir, slicing_columns):
def main():
tf.logging.set_verbosity(tf.logging.INFO)
args = parse_arguments()
args.slice_columns = [
column
for column in column_group.split(',')
for column_group in args.slice_columns
]
schema = json.loads(file_io.read_file_to_string(args.schema))
eval_model_parent_dir = os.path.join(args.model, 'tfma_eval_model_dir')
model_export_dir = os.path.join(eval_model_parent_dir, file_io.list_directory(eval_model_parent_dir)[0])
Expand Down

0 comments on commit 211f53e

Please sign in to comment.