S3mphony.ModelSelector 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package S3mphony.ModelSelector --version 1.0.0
                    
NuGet\Install-Package S3mphony.ModelSelector -Version 1.0.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="S3mphony.ModelSelector" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="S3mphony.ModelSelector" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="S3mphony.ModelSelector" />
                    
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 S3mphony.ModelSelector --version 1.0.0
                    
#r "nuget: S3mphony.ModelSelector, 1.0.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 S3mphony.ModelSelector@1.0.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=S3mphony.ModelSelector&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=S3mphony.ModelSelector&version=1.0.0
                    
Install as a Cake Tool

S3mphony.ModelSelector

S3mphony.ModelSelection adds an ML-aware decision layer on top of your persisted S3 models, letting you automatically determine which trained model is best suited for predictions — using sane, mathematically sound comparisons over R², RMSE, and training recency.

  • It is generic, storage-agnostic, and built for repeated scheduled training runs (like your metrics workers), where every model belongs to the same prediction problem, shares a comparable target scale, and is safely persisted in S3.
  • What it gives you:
    • Automatic best-model selection from any number of persisted training runs
    • Quality gates to filter out invalid or underperforming candidates
    • Composite scoring that prefers high R² and low RMSE
    • Stability policy to avoid model flapping or churn
    • Recency biasing when metric scores are close
    • Works seamlessly in APIs, workers, dashboards, or prototype MLOps flows

Example usage

 // Pull your candidate regression snapshots from persisted model runs in S3
var candidates = await S3Channel.ListRegressionSnapshotsAsync("models/customer-recs");

// Choose the best model using a policy that fits your problem
var policy = new ModelSelectionPolicy
{
   MinRSquared = 0.25,                  // minimum model quality gate
   MaxRmse = 5.0,                       // optional RMSE ceiling for switching
   WeightRSquared = 0.8,                // R² is the dominant ranking signal
   WeightRmse = 0.2,                    // lower RMSE still matters
   MinScoreImprovementToSwitch = 0.01,  // avoid churn unless it's at least 1% better
   PreferNewerWithin = TimeSpan.FromDays(2)
};

// Select the best model
var best = ModelSelector.ChooseBest(candidates, policy);

// Load it and use it for predictions
if (best is not null)
{
   var modelBytes = await S3Channel.DownloadModelAsync(best.ModelName, best.ModelId);
   var model = ModelLoader.Load(modelBytes);
   var prediction = model.Predict(input);
}

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
2026.1.18.2156 126 1/18/2026
2026.1.18.2155 109 1/18/2026
2026.1.18.2154 114 1/18/2026
2026.1.18.404 110 1/18/2026
2026.1.3.243 126 1/3/2026
2026.1.3.209 117 1/3/2026
2025.12.26.2048 129 12/26/2025
2025.12.26.1954 136 12/26/2025
2025.12.26.1031 161 12/26/2025
2025.12.26.1001 158 12/26/2025
2025.12.26.954 168 12/26/2025
2025.12.26.841 163 12/26/2025
2025.12.26.835 160 12/26/2025
1.0.0 175 12/26/2025

Putting the pieces together.