e4488b9b68416439a226b48b74c22ae84c129db1,magpie/api.py,,batch_train,#Any#Any#Any#Any#Any#Any#Any#Any#,278

Before Change


        no_more_samples = False
        batch_number = 0
        if verbose:
            sys.stdout.write(b"Batches: ")
            sys.stdout.flush()
        while not no_more_samples:
            batch_number += 1

After Change


        metrics = batch_test(model=model, ontology=ontology, verbose=False)

        for k, v in metrics.iteritems():
            print("{0}: {1}".format(k, v))

        if metrics["f1"] > previous_best:
            previous_best = metrics["f1"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: inspirehep/magpie
Commit Name: e4488b9b68416439a226b48b74c22ae84c129db1
Time: 2016-02-10
Author: jan.stypka@cern.ch
File Name: magpie/api.py
Class Name:
Method Name: batch_train


Project Name: tensorflow/transform
Commit Name: a41043126e966b8188f167fa471d68e4daee52ec
Time: 2019-08-06
Author: zoy@google.com
File Name: tensorflow_transform/beam/analyzer_cache.py
Class Name:
Method Name:


Project Name: tensorflow/tensorboard
Commit Name: 688aabd67aa6a6f098709643b0a5e672a7d0b01f
Time: 2019-06-21
Author: orionr@gmail.com
File Name: tensorboard/summary/writer/record_writer_test.py
Class Name: RecordWriterTest
Method Name: test_record_writer_roundtrip