AiDotNet.Evolution.Surrogates 0.1.0

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

Optional numeric surrogate adapters

This package depends on AiDotNet.Evolution; the generic engine does not depend on this package or a model library. The numeric adapter is experimental and opt-in. Its reliability checks use disjoint genome groups within supplied search measurements, not sealed deployment confirmation. Reported empirical residual coverage is not a universal probabilistic calibration guarantee, especially for adaptively collected or shifted data. Work-unit tariffs are explicit user assumptions, not measurements of elapsed CPU or monetary expense. The compatible core and adapter must be built/released together; this source PR does not publish a package.

Integrating the backend

Construct a ValidatedNearestNeighborTrainer(space, new NumericSurrogateOptions(qualityMinimum, qualityMaximum)) for the declared typed space and finite quality support. Pass it to EvolutionSurrogateSelector<EvolutionSearchGenome> with an independent EvolutionResourceLedger, proposal-pool maximum, trainer.MaximumTrainingCost(windowBound) and trainer.MaximumInferenceCost(poolBound, windowBound). Supply fresh EvolutionSurrogateObservation records, a stable random stream and a charged proposal factory to each SelectAsync call. Then meter and truly evaluate the selected candidate before archive insertion. The repository's examples/SurrogateSearch is a complete runnable integration; eng/SurrogatePackageSmoke verifies the packaged APIs without project references.

The trainer is stateless and returns detached models. Callers own observation persistence, random/proposal state, task/evaluator versioning, failure handling and independent confirmation. Do not train from diagnostic observers whose state is outside engine checkpoints. Direct FitAsync/PredictAsync calls report actual declared work but do not reserve a budget themselves; use the selector or an equivalent receipt owner. Do not double-charge nested work.

Reliability and limits

  • 2–256 fresh records, at most 128 normalized features, 1–64 unique prediction candidates, and 1–16 neighbors.
  • Repeated measurements of one genome stay together; original sample IDs must not overlap between records.
  • At least 18 distinct genomes are required for reliable ranking. A deterministic genome-hash split holds out separate residual-calibration and validation groups; validation cannot tune the residual radius.
  • Reliability requires bounded relative validation MAE and adequate empirical residual coverage. Support also requires nearest-neighbor distance within the configured normalized RMS threshold.
  • ValidationReport and partition IDs expose the evidence. A zero radius on a constant fixture is not a general zero-error guarantee. Coverage concerns replicate-group means, not independent single noisy measurements.
  • The selector records predictions separately from fitness and falls back to uniform pool selection on unreliable, insufficient or unfamiliar data. Explicit random exploration remains active even when ranking is accepted.

The default work tariff is 0.02 per fit, 0.005 per inference batch and 0.000001 per encoded feature/distance coordinate. Fitting includes interpolation distances for both calibration and validation. The fixed tariffs cover bookkeeping by assumption; sorting, allocation, elapsed CPU and energy are not separately measured. Change prices for your workload and retain them in evidence. All options and provenance contribute to fitted-model identity.

Package boundary

Targets: net10.0, net8.0, net471. Its only runtime package dependency is the compatible AiDotNet.Evolution core. The core does not depend on this optional adapter. The CI consumer uses fresh isolated packages and verifies exact hashes because published preview packages can have the same version but lack these unreleased APIs. Release automation for the core does not implicitly publish this adapter; coordinate compatible versions before shipping. No package publication, automatic deployment or default enablement is performed by these changes.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 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.1.0 34 9/19/2026