# tfr.keras.losses.ListMLELambdaWeight

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/losses.py#L231-L242) |

LambdaWeight for ListMLE cost function.

    tfr.keras.losses.ListMLELambdaWeight(
        rank_discount_fn: Optional[https://www.tensorflow.org/ranking/api_docs/python/tfr/keras/utils/GainFunction] = None,
        **kwargs
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `rank_discount_fn` | (function) The rank discount function. |

<br />

## Methods

### `get_config`

[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/keras/losses.py#L239-L242)

    get_config() -> Dict[str, Any]

### `individual_weights`

[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/losses_impl.py#L474-L480)

    individual_weights(
        labels, ranks
    )

See `_LambdaWeight`.

### `pair_weights`

[View source](https://github.com/tensorflow/ranking/blob/v0.5.3/tensorflow_ranking/python/losses_impl.py#L470-L472)

    pair_weights(
        labels, ranks
    )

See `_LambdaWeight`.