mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 22:08:27 +00:00
Added the Model Comparison assistant for blind comparisons of two models (#1009)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
12f26445ba
commit
b7255694cd
221 files changed
+19989
-90
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using AIStudio.Assistants.ModelComparison;
|
||||
|
||||
namespace AIStudio.Tests.Assistants.ModelComparison;
|
||||
|
||||
/// <summary>
|
||||
/// Checks what the charts of the results have in common.
|
||||
/// </summary>
|
||||
[TestFixture]
|
||||
public sealed class ModelComparisonChartsTests
|
||||
{
|
||||
[TestCase(new double[0], 1)]
|
||||
[TestCase(new[] { 0.0 }, 1)]
|
||||
[TestCase(new[] { 5.0 }, 1)]
|
||||
[TestCase(new[] { 6.0 }, 2)]
|
||||
[TestCase(new[] { 3.0, 10.0 }, 2)]
|
||||
[TestCase(new[] { 11.0 }, 5)]
|
||||
[TestCase(new[] { 26.0 }, 10)]
|
||||
[TestCase(new[] { 0.4, 3000.0 }, 1000)]
|
||||
public void TheAxisStepsByOneTwoOrFiveTimesAPowerOfTen(double[] values, int expectedStep) => Assert.That(ModelComparisonCharts.AxisStep(values), Is.EqualTo(expectedStep));
|
||||
|
||||
[TestCase(1, 0)]
|
||||
[TestCase(4, 0)]
|
||||
[TestCase(5, 30)]
|
||||
public void OnlyManyModelsTiltTheirNames(int modelCount, int expectedRotation) => Assert.That(ModelComparisonCharts.LabelRotation(modelCount), Is.EqualTo(expectedRotation));
|
||||
}
|
||||
Reference in new issue
Block a user