MLoop.Core 0.42.0

dotnet add package MLoop.Core --version 0.42.0
                    
NuGet\Install-Package MLoop.Core -Version 0.42.0
                    
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="MLoop.Core" Version="0.42.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MLoop.Core" Version="0.42.0" />
                    
Directory.Packages.props
<PackageReference Include="MLoop.Core" />
                    
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 MLoop.Core --version 0.42.0
                    
#r "nuget: MLoop.Core, 0.42.0"
                    
#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 MLoop.Core@0.42.0
                    
#: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=MLoop.Core&version=0.42.0
                    
Install as a Cake Addin
#tool nuget:?package=MLoop.Core&version=0.42.0
                    
Install as a Cake Tool

MLoop.Core

The in-process library behind the mloop CLI: AutoML training on ML.NET, prediction from a saved model, data loading with Korean-encoding detection, and the evaluation rules (quality gate, metric names and directions) the CLI applies.

Most users want the CLI (dotnet tool install -g mloop) or its HTTP server (mloop serve): they keep MLoop in its own process and add the project layout, experiment tracking and promotion. Use this package when a host must call the engine in process and work with typed results. It is versioned with the CLI.

Installation

dotnet add package MLoop.Core

Usage

using Microsoft.ML;
using MLoop.Core.AutoML;
using MLoop.Core.Data;
using MLoop.Core.Models;
using MLoop.Core.Prediction;

var ml = new MLContext(seed: 42);

// Train: AutoML search within the time budget, evaluated on a held-out split.
var runner = new AutoMLRunner(ml, new CsvDataLoader(ml));
var result = await runner.RunAsync(new TrainingConfig
{
    ModelName = "default",
    DataFile = "train.csv",
    LabelColumn = "Target",
    Task = "binary-classification",
    TimeLimitSeconds = 60,
});
Console.WriteLine($"{result.BestTrainer}: {string.Join(", ", result.Metrics)}");

// Save, then predict rows against the saved model and the schema training captured.
ml.Model.Save(result.Model, inputSchema: null, "model.zip");
var predictions = new PredictionService(ml).Predict(
    [new Dictionary<string, object> { ["Age"] = 42f, ["Income"] = 51000f }],
    result.Schema!,
    "model.zip",
    "binary-classification",
    labelColumn: "Target");

foreach (var row in predictions.Rows)
    Console.WriteLine($"{row.PredictedLabel} {row.Score}");

AutoMLRunner reports progress through IProgress<TrainingProgress> and takes a CancellationToken. Its optional warningSink and narrationSink receive the warnings and progress text the CLI prints.

Requirements

  • .NET 10.0+
  • ML.NET 5.0+
  • Time-series tasks (forecasting, time-series anomaly detection) need ML.NET's MKL native library, which has no osx-arm64 build; TimeSeriesNativeSupport.IsAvailable says whether it loaded.

License

MIT License

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.

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
0.42.0 45 10/22/2026
0.41.0 50 10/21/2026
0.40.0 41 10/21/2026
0.39.0 49 10/21/2026
0.38.0 46 10/21/2026
0.37.1 52 10/21/2026
0.37.0 49 10/21/2026
0.36.0 60 10/20/2026
0.35.0 59 10/20/2026