Table of Contents

Class ABTest

Namespace
AiDotNet.Deployment.Configuration
Assembly
AiDotNet.dll

Represents a single A/B test configuration.

public class ABTest
Inheritance
ABTest
Inherited Members

Remarks

For Beginners: An A/B test compares two or more model versions to determine which performs better. This class defines a single test with its versions and traffic allocation.

Properties

ControlVersion

Gets or sets the control version (baseline) for this test.

public string ControlVersion { get; set; }

Property Value

string

Description

Gets or sets the description of this test.

public string? Description { get; set; }

Property Value

string

EndDate

Gets or sets the end date of the test.

public DateTime? EndDate { get; set; }

Property Value

DateTime?

IsActive

Gets or sets whether this test is active (default: true).

public bool IsActive { get; set; }

Property Value

bool

MinimumImprovementThreshold

Gets or sets the minimum improvement threshold to consider the treatment a winner (default: 0.01 = 1%).

public double MinimumImprovementThreshold { get; set; }

Property Value

double

Name

Gets or sets the unique name for this test.

public string Name { get; set; }

Property Value

string

PrimaryMetric

Gets or sets the primary metric to compare (e.g., "accuracy", "latency").

public string? PrimaryMetric { get; set; }

Property Value

string

StartDate

Gets or sets the start date of the test.

public DateTime? StartDate { get; set; }

Property Value

DateTime?

TreatmentTrafficPercentage

Gets or sets the traffic percentage for the treatment version (0.0 to 1.0).

public double TreatmentTrafficPercentage { get; set; }

Property Value

double

Remarks

For Beginners: What percentage of traffic goes to the new version. The remaining traffic goes to the control version. Example: 0.2 means 20% to treatment, 80% to control.

TreatmentVersion

Gets or sets the treatment version (new version being tested).

public string TreatmentVersion { get; set; }

Property Value

string