49a2ea975624090307c652e91258e5b6f02cda41,examples/tetris.py,,main,#,180

Before Change



    network = SE3Net().cuda()
    train(network, trainset, N_epochs=N_epochs)
    se3_test_accs = []
    for _ in range(N_test):
        testset = get_volumes(rotate=True)
        acc = test(network, testset)
        se3_test_accs.append(acc)

    // network = CNN().cuda()
    // train(network, trainset, N_epochs=N_epochs)
    // cnn_test_accs = []
    // for _ in range(N_test):
    //     testset = get_volumes(rotate90=True)
    //     acc = test(network, testset)
    //     cnn_test_accs.append(acc)

    print("avg test acc SE3: {}".format(np.mean(se3_test_accs)))
    // print("avg test acc CNN: {}".format(np.mean(cnn_test_accs)))
    // N_classes = len(testset[1])
    // print("random guessing accuracy: {}".format(1 / N_classes))

After Change


def main():
    torch.backends.cudnn.benchmark = True

    for smooth_stride in [True, False]:
        for Model in [SE3Net, CNN]:
            for _rep in range(5):
                network = Model(smooth_stride).cuda()
                acc = experiment(network)
                print("smooth_stride={} model={} acc= {}".format(smooth_stride, Model, acc))


main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: mariogeiger/se3cnn
Commit Name: 49a2ea975624090307c652e91258e5b6f02cda41
Time: 2018-10-25
Author: geiger.mario@gmail.com
File Name: examples/tetris.py
Class Name:
Method Name: main


Project Name: Scitator/catalyst
Commit Name: f4beaac559e00a3676d942dc7e8fea69efc01cfe
Time: 2020-11-30
Author: raveforlive@gmail.com
File Name: catalyst/metrics/avg_precision.py
Class Name:
Method Name: mean_avg_precision


Project Name: D2KLab/entity2rec
Commit Name: 23ee13aef276de7ad726eb4825e201d3c885c008
Time: 2018-01-25
Author: enricopalumbo0@gmail.com
File Name: entity2rec/entity2rec.py
Class Name: Entity2Rec
Method Name: content_similarities


Project Name: biocore/scikit-bio
Commit Name: 30d73c7518adcde7ed8340d76e306bd290e0949a
Time: 2016-06-07
Author: gregcaporaso@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: ancom