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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" Version="4.0.54" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Dtos.ModelBuilderConfig" Version="4.0.54" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Dtos.ModelBuilderConfig" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Dtos.ModelBuilderConfig --version 4.0.54
                    
#r "nuget: Soenneker.Dtos.ModelBuilderConfig, 4.0.54"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Dtos.ModelBuilderConfig@4.0.54
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=4.0.54
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Dtos.ModelBuilderConfig&version=4.0.54
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

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

  • MbConfig is the root document.
  • MbConfigDataSource describes the input file, delimiter, decimal marker, and columns.
  • MbConfigTrainingOption describes trainers, target column, metric, time limit, seed, and validation.
  • MbConfigEnvironment carries the environment type and schema version.
  • MbConfigRunHistory and MbConfigTrial expose 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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
Loading failed

Enable Native AOT compatibility analysis