b6db687ec336e896ea8d267c14679318f266a9a2,unet3d/model.py,,unet_model_3d,#,17

Before Change


    act = Activation("sigmoid")(final_convolution)
    model = Model(inputs=inputs, outputs=act)

    model.compile(optimizer=Adam(lr=initial_learning_rate), loss=dice_coef_loss,
                  metrics=[dice_coef] + [get_label_dice_coefficient_function(index) for index in range(n_labels)])

    return model

After Change


        else:
            metrics = label_wise_dice_metrics

    model.compile(optimizer=Adam(lr=initial_learning_rate), loss=dice_coef_loss, metrics=metrics)
    return model


def dice_coef(y_true, y_pred, smooth=1.):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ellisdg/3DUnetCNN
Commit Name: b6db687ec336e896ea8d267c14679318f266a9a2
Time: 2017-11-17
Author: david.ellis@unmc.edu
File Name: unet3d/model.py
Class Name:
Method Name: unet_model_3d


Project Name: calico/basenji
Commit Name: 49fc1d9638c5a49e905093a378e6a4bfc733ddd6
Time: 2020-09-09
Author: drk@calicolabs.com
File Name: basenji/trainer.py
Class Name: Trainer
Method Name: compile


Project Name: eriklindernoren/Keras-GAN
Commit Name: d444fdae4b30d35f3cfba98c9fa9e3169cc2cf69
Time: 2018-03-15
Author: eriklindernoren@gmail.com
File Name: discogan/discogan.py
Class Name: DiscoGAN
Method Name: __init__