bc0b5c9ce8f5719634b8b9813a588ff7fb0bd248,tensorflow_ranking/python/keras/losses_test.py,LossesTest,_check_pairwise_loss,#LossesTest#Any#,129

Before Change


        places=5)

    // Test LambdaWeight.
    lambda_weight = losses.DCGLambdaWeight(
        rank_discount_fn=lambda r: 1. / tf.math.log1p(r), smooth_fraction=1.)
    loss_form_dict = {
        "hinge":
            losses.PairwiseHingeLoss(name="hinge", lambda_weight=lambda_weight),
        "logistic":

After Change



    // Test LambdaWeight.
    rank_discount_fn = lambda r: 1. / tf.math.log1p(r)
    lambda_weight = losses.DCGLambdaWeight(
        rank_discount_fn=rank_discount_fn, smooth_fraction=1.)
    loss_form_dict = {
        "hinge":
            losses.PairwiseHingeLoss(name="hinge", lambda_weight=lambda_weight),
        "logistic":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: tensorflow/ranking
Commit Name: bc0b5c9ce8f5719634b8b9813a588ff7fb0bd248
Time: 2020-08-19
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/keras/losses_test.py
Class Name: LossesTest
Method Name: _check_pairwise_loss


Project Name: tensorflow/ranking
Commit Name: bc0b5c9ce8f5719634b8b9813a588ff7fb0bd248
Time: 2020-08-19
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/keras/losses_test.py
Class Name: LossesTest
Method Name: test_softmax_loss


Project Name: tensorflow/ranking
Commit Name: bc0b5c9ce8f5719634b8b9813a588ff7fb0bd248
Time: 2020-08-19
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/keras/losses_test.py
Class Name: GetLossesTest
Method Name: _check_pairwise_loss


Project Name: tensorflow/ranking
Commit Name: bc0b5c9ce8f5719634b8b9813a588ff7fb0bd248
Time: 2020-08-19
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/keras/losses_test.py
Class Name: GetLossesTest
Method Name: test_softmax_loss