524168e3e01e67b0d27ff1cec5d34a39fe015b50,mnist/deployable/trainer/task.py,,run_training,#,136

Before Change


  Train MNIST for a number of steps.
  // Get the sets of images and labels for training, validation, and
  // test on MNIST.
  data_sets = input_data.read_data_sets(tempfile.mkdtemp(), FLAGS.fake_data)

  // Tell TensorFlow that the model will be built into the default Graph.
  with tf.Graph().as_default():

After Change


  // Get the sets of images and labels for training, validation, and
  // test on MNIST. If input_path is specified, download the data from GCS to
  // the folder expected by read_data_sets.
  data_dir = tempfile.mkdtemp()
  if FLAGS.input_path:
    files = [os.path.join(FLAGS.input_path, file_name)
             for file_name in INPUT_FILES]
    subprocess.check_call(["gsutil", "-m", "-q", "cp", "-r"] + files +
                          [data_dir])
  data_sets = input_data.read_data_sets(data_dir, FLAGS.fake_data)

  // Tell TensorFlow that the model will be built into the default Graph.
  with tf.Graph().as_default():
    // Generate placeholders for the images and labels and mark as input.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 524168e3e01e67b0d27ff1cec5d34a39fe015b50
Time: 2017-02-13
Author: wenzhel@google.com
File Name: mnist/deployable/trainer/task.py
Class Name:
Method Name: run_training


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 5ca30d93a52029a722bd15795c37ef7bbf7582a5
Time: 2017-04-19
Author: schwendler@gmail.com
File Name: rosie/chamber_of_deputies/tests/test_chamber_of_deputies.py
Class Name: TestChamberOfDeputies
Method Name: setUp


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: 524168e3e01e67b0d27ff1cec5d34a39fe015b50
Time: 2017-02-13
Author: wenzhel@google.com
File Name: mnist/trainable/trainer/task.py
Class Name:
Method Name: run_training


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 4a989e6ffda0551f817f71187f02cdcd3b4365b8
Time: 2017-04-19
Author: cuducos@users.noreply.github.com
File Name: rosie/chamber_of_deputies/tests/test_chamber_of_deputies.py
Class Name: TestChamberOfDeputies
Method Name: setUp


Project Name: mlflow/mlflow
Commit Name: 25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
Time: 2019-04-29
Author: 39497902+dbczumar@users.noreply.github.com
File Name: mlflow/store/artifact_repo.py
Class Name: ArtifactRepository
Method Name: download_artifacts


Project Name: ilastik/ilastik
Commit Name: e398cf66af82e1425ac9656de794b0f7fe03a2df
Time: 2014-12-09
Author: kirkhamj@janelia.hhmi.org
File Name: tests/test_applets/base/testSerializer.py
Class Name: TestSerialBlockSlot
Method Name: testBasic