Soenneker.Dtos.ModelBuilderConfig
11.0.68
Prefix Reserved
dotnet add package Soenneker.Dtos.ModelBuilderConfig --version 11.0.68
NuGet\Install-Package Soenneker.Dtos.ModelBuilderConfig -Version 11.0.68
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" Version="11.0.68" />
<PackageVersion Include="Soenneker.Dtos.ModelBuilderConfig" Version="11.0.68" />
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" />
paket add Soenneker.Dtos.ModelBuilderConfig --version 11.0.68
#r "nuget: Soenneker.Dtos.ModelBuilderConfig, 11.0.68"
#:package Soenneker.Dtos.ModelBuilderConfig@11.0.68
#addin nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=11.0.68
#tool nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=11.0.68
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 | net11.0 is compatible. |
-
net11.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 |
|---|---|---|
| 11.0.68 | 45 | 11/18/2026 |
| 11.0.67 | 95 | 11/11/2026 |
| 11.0.66 | 108 | 10/27/2026 |
| 11.0.64 | 101 | 10/26/2026 |
| 4.0.63 | 299 | 10/14/2026 |
| 4.0.62 | 95 | 10/14/2026 |
| 4.0.60 | 99 | 10/13/2026 |
| 4.0.57 | 96 | 10/12/2026 |
| 4.0.56 | 97 | 10/12/2026 |
| 4.0.55 | 100 | 10/11/2026 |
| 4.0.54 | 194 | 9/24/2026 |
| 4.0.53 | 171 | 9/15/2026 |
| 4.0.52 | 117 | 9/12/2026 |
| 4.0.51 | 143 | 8/30/2026 |
| 4.0.50 | 127 | 8/29/2026 |
| 4.0.49 | 264 | 7/27/2026 |
| 4.0.48 | 134 | 7/16/2026 |
| 4.0.47 | 325 | 6/19/2026 |
| 4.0.46 | 193 | 6/5/2026 |
| 4.0.45 | 339 | 4/22/2026 |
Updated NuGet packages