import torch


def ls_discriminator_loss(scores_real, scores_fake):
    """
    Compute the Least-Squares GAN metrics for the discriminator.

    Inputs:
    - scores_real: PyTorch Variable of shape (N,) giving scores for the real data.
    - scores_fake: PyTorch Variable of shape (N,) giving scores for the fake data.

    Outputs:
    - metrics: A PyTorch Variable containing the metrics.
    """
    loss = (torch.mean((scores_real - 1) ** 2) + torch.mean(scores_fake ** 2)) / 2
    return loss