0489238f5b5db28a6a6d3bcb13406f20e9749d79,clairvoyante/predict.py,,Test,#Any#Any#,23

Before Change




def Test(args, m):
    logging.info("Loading the dataset ...")
    total, XArrayCompressed, posArrayCompressed = \
    utils.GetAlnArray(args.tensor_fn)

    logging.info("Predicing the dataset ...")

After Change


    for num, XBatch, posBatch in utils.GetTensor( args.tensor_fn, param.predictBatchSize ):
        base, t = m.predict(XBatch)
        if num != len(base):
            sys.exit("Inconsistent shape between input tensor and output predictions %d/%d" % (num, len(base)))
        for j in range(len(base)):
            print >> call_fh, posBatch[j], np.argmax(base[j]), np.argmax(t[j])
    logging.info("Prediciton time elapsed: %.2f s" % (time.time() - predictStart))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: aquaskyline/Clairvoyante
Commit Name: 0489238f5b5db28a6a6d3bcb13406f20e9749d79
Time: 2017-07-31
Author: rluo5@jhu.edu@schatz-bigmem.cm.cluster
File Name: clairvoyante/predict.py
Class Name:
Method Name: Test


Project Name: deepfakes/faceswap
Commit Name: 29cfdaad460b155e44b093b11afeaaeac9dd645f
Time: 2021-03-21
Author: 36920800+torzdf@users.noreply.github.com
File Name: scripts/train.py
Class Name: Train
Method Name: _get_images


Project Name: GoogleCloudPlatform/professional-services
Commit Name: 4d812aeda5ae9235f239a3a766f07c11b499606b
Time: 2019-01-03
Author: pkattamuri@google.com
File Name: tools/hive-bigquery/resource_validator.py
Class Name: ResourceValidator
Method Name: validate


Project Name: aertslab/pySCENIC
Commit Name: d23794e515aac062b94c9e492143d97ec55c9cc9
Time: 2018-12-14
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/cli/pyscenic.py
Class Name:
Method Name: aucell_command