Soenneker.Dtos.ModelBuilderConfig
4.0.54
Prefix Reserved
dotnet add package Soenneker.Dtos.ModelBuilderConfig --version 4.0.54
NuGet\Install-Package Soenneker.Dtos.ModelBuilderConfig -Version 4.0.54
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" Version="4.0.54" />
<PackageVersion Include="Soenneker.Dtos.ModelBuilderConfig" Version="4.0.54" />
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" />
paket add Soenneker.Dtos.ModelBuilderConfig --version 4.0.54
#r "nuget: Soenneker.Dtos.ModelBuilderConfig, 4.0.54"
#:package Soenneker.Dtos.ModelBuilderConfig@4.0.54
#addin nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=4.0.54
#tool nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=4.0.54
Soenneker.Dtos.ModelBuilderConfig
System.Text.Json DTOs for reading and writing ML.NET Model Builder configuration files, including the data source, training options, validation strategy, and recorded trials.
Install
dotnet add package Soenneker.Dtos.ModelBuilderConfig
Read a configuration
using System.Text.Json;
using Soenneker.Dtos.ModelBuilderConfig;
string json = await File.ReadAllTextAsync("ModelBuilder.mbconfig");
MbConfig? config = JsonSerializer.Deserialize<MbConfig>(json);
if (config?.TrainingOption is { } training)
{
Console.WriteLine($"Label: {training.LabelColumn}");
Console.WriteLine($"Metric: {training.OptimizeMetric}");
Console.WriteLine($"Time limit: {training.TrainingTime} seconds");
}
The models preserve Model Builder's PascalCase JSON property names such as DataSource, TrainingOption, and RunHistory.
Model map
MbConfigis the root document.MbConfigDataSourcedescribes the input file, delimiter, decimal marker, and columns.MbConfigTrainingOptiondescribes trainers, target column, metric, time limit, seed, and validation.MbConfigEnvironmentcarries the environment type and schema version.MbConfigRunHistoryandMbConfigTrialexpose prior trial results.
These are mutable serialization models. String values such as scenario, trainer, metric, and validation type are passed through as-is; the package does not validate them against a particular Model Builder version. Nullable collections may remain null when their JSON members are absent, so check them before enumeration.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.54 | 117 | 9/24/2026 |
| 4.0.53 | 149 | 9/15/2026 |
| 4.0.52 | 93 | 9/12/2026 |
| 4.0.51 | 122 | 8/30/2026 |
| 4.0.50 | 109 | 8/29/2026 |
| 4.0.49 | 246 | 7/27/2026 |
| 4.0.48 | 118 | 7/16/2026 |
| 4.0.47 | 313 | 6/19/2026 |
| 4.0.46 | 181 | 6/5/2026 |
| 4.0.45 | 327 | 4/22/2026 |
| 4.0.44 | 171 | 3/12/2026 |
| 4.0.43 | 142 | 3/12/2026 |
| 4.0.42 | 145 | 3/12/2026 |
| 4.0.41 | 150 | 3/12/2026 |
| 4.0.40 | 155 | 3/10/2026 |
| 4.0.39 | 125 | 3/9/2026 |
| 4.0.38 | 133 | 3/9/2026 |
| 4.0.37 | 118 | 3/9/2026 |
| 4.0.36 | 213 | 3/4/2026 |
| 4.0.35 | 210 | 1/2/2026 |
Enable Native AOT compatibility analysis