From 2cb9bcf8a4c2594a0291b9a869a43ceb11fdf5fc Mon Sep 17 00:00:00 2001 From: paulsullivanjr Date: Tue, 24 Oct 2023 06:50:18 -0400 Subject: [PATCH] Update lib/scholar/metrics/discounted_cumulative_gain.ex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Valim --- lib/scholar/metrics/discounted_cumulative_gain.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scholar/metrics/discounted_cumulative_gain.ex b/lib/scholar/metrics/discounted_cumulative_gain.ex index 9a630e7b..80421e3c 100644 --- a/lib/scholar/metrics/discounted_cumulative_gain.ex +++ b/lib/scholar/metrics/discounted_cumulative_gain.ex @@ -1,6 +1,7 @@ defmodule Scholar.Metrics.DiscountedCumulativeGain do @moduledoc """ Discounted Cumulative Gain (DCG) is a measure of ranking quality. + It is based on the assumption that highly relevant documents appearing lower in a search result list should be penalized as the graded relevance value is reduced logarithmically proportional to the position of the result.