save progress
This commit is contained in:
@@ -46,6 +46,13 @@ internal static class LinksetCorrelation
|
||||
(0.05d * referenceScore) +
|
||||
(0.05d * freshnessScore));
|
||||
|
||||
// Add additional conflicts (e.g., from notes) before penalty calculations
|
||||
// so they are considered in the confidence adjustments
|
||||
if (additionalConflicts is { Count: > 0 })
|
||||
{
|
||||
conflicts.AddRange(additionalConflicts);
|
||||
}
|
||||
|
||||
if (conflicts.Count > 0 && baseConfidence > 0.7d)
|
||||
{
|
||||
baseConfidence -= 0.1d;
|
||||
@@ -56,11 +63,6 @@ internal static class LinksetCorrelation
|
||||
baseConfidence = 0.1d; // keep deterministic low signal, not zero
|
||||
}
|
||||
|
||||
if (additionalConflicts is { Count: > 0 })
|
||||
{
|
||||
conflicts.AddRange(additionalConflicts);
|
||||
}
|
||||
|
||||
return (Clamp01(baseConfidence), DeduplicateAndSort(conflicts, inputs));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user