ABTest
Models & Types · AiDotNet.Deployment.Configuration
Represents a single A/B test configuration.
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.
Constructors
| Constructor | Summary |
|---|---|
ABTest() |
Properties
| Property | Summary |
|---|---|
DateTime? EndDate { get; set; } |
Gets or sets the end date of the test. |
DateTime? StartDate { get; set; } |
Gets or sets the start date of the test. |
bool IsActive { get; set; } |
Gets or sets whether this test is active (default: true). |
double MinimumImprovementThreshold { get; set; } |
Gets or sets the minimum improvement threshold to consider the treatment a winner (default: 0.01 = 1%). |
double TreatmentTrafficPercentage { get; set; } |
Gets or sets the traffic percentage for the treatment version (0.0 to 1.0). |
string ControlVersion { get; set; } |
Gets or sets the control version (baseline) for this test. |
string Description { get; set; } |
Gets or sets the description of this test. |
string Name { get; set; } |
Gets or sets the unique name for this test. |
string PrimaryMetric { get; set; } |
Gets or sets the primary metric to compare (e.g., “accuracy”, “latency”). |
string TreatmentVersion { get; set; } |
Gets or sets the treatment version (new version being tested). |