Table of Contents

Class DeploymentConfiguration

Namespace
AiDotNet.Deployment.Configuration
Assembly
AiDotNet.dll

Aggregates all deployment-related configurations. Used to pass deployment settings from AiModelBuilder to AiModelResult.

public class DeploymentConfiguration
Inheritance
DeploymentConfiguration
Inherited Members

Properties

ABTesting

Gets or sets the A/B testing configuration (null = disabled).

public ABTestingConfig? ABTesting { get; set; }

Property Value

ABTestingConfig

Caching

Gets or sets the caching configuration (null = use defaults).

public CacheConfig? Caching { get; set; }

Property Value

CacheConfig

Compression

Gets or sets the compression configuration (null = no compression).

public CompressionConfig? Compression { get; set; }

Property Value

CompressionConfig

Remarks

For Beginners: When configured, compression is automatically applied during model serialization (saving) and reversed during deserialization (loading). This reduces model file sizes by 50-90% with minimal accuracy impact.

Export

Gets or sets the export configuration (null = use defaults).

public ExportConfig? Export { get; set; }

Property Value

ExportConfig

GpuAcceleration

Gets or sets the GPU acceleration configuration (null = use defaults).

public GpuAccelerationConfig? GpuAcceleration { get; set; }

Property Value

GpuAccelerationConfig

Profiling

Gets or sets the profiling configuration (null = disabled).

public ProfilingConfig? Profiling { get; set; }

Property Value

ProfilingConfig

Remarks

For Beginners: When configured, profiling measures the performance of training and inference operations. The profiling report will be available in AiModelResult.

Quantization

Gets or sets the quantization configuration (null = no quantization).

public QuantizationConfig? Quantization { get; set; }

Property Value

QuantizationConfig

Telemetry

Gets or sets the telemetry configuration (null = use defaults).

public TelemetryConfig? Telemetry { get; set; }

Property Value

TelemetryConfig

Versioning

Gets or sets the versioning configuration (null = use defaults).

public VersioningConfig? Versioning { get; set; }

Property Value

VersioningConfig

Methods

Create(QuantizationConfig?, CacheConfig?, VersioningConfig?, ABTestingConfig?, TelemetryConfig?, ExportConfig?, GpuAccelerationConfig?, CompressionConfig?, ProfilingConfig?)

Creates a deployment configuration from individual config objects.

public static DeploymentConfiguration Create(QuantizationConfig? quantization, CacheConfig? caching, VersioningConfig? versioning, ABTestingConfig? abTesting, TelemetryConfig? telemetry, ExportConfig? export, GpuAccelerationConfig? gpuAcceleration, CompressionConfig? compression = null, ProfilingConfig? profiling = null)

Parameters

quantization QuantizationConfig
caching CacheConfig
versioning VersioningConfig
abTesting ABTestingConfig
telemetry TelemetryConfig
export ExportConfig
gpuAcceleration GpuAccelerationConfig
compression CompressionConfig
profiling ProfilingConfig

Returns

DeploymentConfiguration