mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 20:28:27 +00:00
45 lines
2.1 KiB
Plaintext
45 lines
2.1 KiB
Plaintext
@inherits MSGComponentBase
|
|||
|
|
|
||
|
|
<MudPaper Outlined="@true" Class="pa-3 mb-3">
|
||
|
|
<MudText Typo="Typo.subtitle1">
|
||
|
|
@string.Format(T("{0} vs. {1}"), this.Pairing.First.Label, this.Pairing.Second.Label)
|
||
|
|
</MudText>
|
||
|
|
<MudText Typo="Typo.caption" Class="d-block mb-2">
|
||
|
|
@this.CaptionText
|
||
|
|
</MudText>
|
||
|
|
<MudChart T="double" ChartType="ChartType.StackedBar" ChartLabels="@this.ChartLabels" ChartSeries="@this.OutcomeSeries" ChartOptions="@this.ChartOptions" Width="100%" Height="220px"/>
|
||
|
|
<MudSimpleTable Dense="@true" Hover="@true" Class="mt-3">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<th></th>
|
||
|
|
<th>@this.Pairing.First.Label</th>
|
||
|
|
<th>@T("Equally good")</th>
|
||
|
|
<th>@this.Pairing.Second.Label</th>
|
||
|
|
<th>@T("Assessment")</th>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<tr>
|
||
|
|
<td>@TA("Your votes")</td>
|
||
|
|
<td>@this.Pairing.Votes.FirstModelWins.CompactCount()</td>
|
||
|
|
<td>@this.Pairing.Votes.Ties.CompactCount()</td>
|
||
|
|
<td>@this.Pairing.Votes.SecondModelWins.CompactCount()</td>
|
||
|
|
<td>
|
||
|
|
<ModelComparisonAssessment Text="@this.SignificanceText(this.Pairing.WinShareOfFirstByVotes)" Significance="@this.Pairing.WinShareOfFirstByVotes.Significance" IsPair="@true"/>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
@if (this.Pairing.JudgeVerdicts.ScoredRunCount > 0)
|
||
|
|
{
|
||
|
|
<tr>
|
||
|
|
<td>@T("Judge verdicts")</td>
|
||
|
|
<td>@this.Pairing.JudgeVerdicts.FirstModelWins.CompactCount()</td>
|
||
|
|
<td>@this.Pairing.JudgeVerdicts.Ties.CompactCount()</td>
|
||
|
|
<td>@this.Pairing.JudgeVerdicts.SecondModelWins.CompactCount()</td>
|
||
|
|
<td>
|
||
|
|
<ModelComparisonAssessment Text="@this.SignificanceText(this.Pairing.WinShareOfFirstByJudges)" Significance="@this.Pairing.WinShareOfFirstByJudges.Significance" IsPair="@true"/>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
}
|
||
|
|
</tbody>
|
||
|
|
</MudSimpleTable>
|
||
|
|
</MudPaper>
|