DevOnBike.Overfit 10.0.7

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

Overfit 🚀

NuGet version Build Status License: Dual (AGPLv3 / Commercial)

A High-Performance, Zero-Allocation Machine Learning Engine in Pure C#.

Overfit is a ground-up Deep Learning and Data Preprocessing framework built specifically for modern .NET. It brings the power of neural networks, advanced feature selection, and tabular data pipelines directly to C# without relying on Python wrappers or heavy external C++ binaries.

Designed for maximum CPU inference speed, Overfit embraces aggressive memory management, SIMD potential, and full Native AOT compatibility.


🚀 Key Features

  • Zero-Allocation Hot Paths: Built heavily on Span<T> and custom memory pooling. Training loops and inference passes avoid triggering the Garbage Collector (GC), ensuring flat-line CPU usage.
  • 100% Native AOT Compatible: Free from runtime reflection (System.Reflection), dynamic typing, and Reflection.Emit. Overfit compiles perfectly into tiny, standalone native binaries with instant cold-starts.
  • Dynamic Autograd Engine: Features a scratch-built ComputationGraph for automatic differentiation (Reverse-mode AutoDiff).
  • Deep Learning Toolkit: Out-of-the-box support for MLPs, Convolutional Neural Networks (Conv2D, MaxPool, GlobalAveragePool), Residual Blocks, and Batch Normalization.
  • Advanced Data Pipelines: Production-ready DataPipeline including Boruta Feature Selection, Correlation Filters, Robust Scaling, and Outlier Clipping.
  • Reinforcement Learning: Easily adaptable for RL scenarios (e.g., Q-Learning for game agents).

📦 Installation

Install via NuGet Package Manager:

dotnet add package DevOnBike.Overfit

🛠️ Quick Start

1. Building a Neural Network

Overfit makes it easy to build, train, and run inference on deep neural networks.

using DevOnBike.Overfit.DeepLearning;
using DevOnBike.Overfit.Optimizers;

// Define a ResNet-style architecture or MLP
var model = new Sequential(
    new ConvLayer(inChannels: 1, outChannels: 8, h: 28, w: 28, kSize: 3),
    new ReluActivation(),
    new MaxPool2D(poolSize: 2),
    // ... flattening ...
    new LinearLayer(1352, 10)
);

// High-performance optimizers out of the box
using var optimizer = new Adam(model.Parameters(), learningRate: 0.001f);

// Null ComputationGraph disables the tape for ultra-fast Zero-Allocation Inference
var prediction = model.Forward(null, inputTensor); 

2. Robust Data Preprocessing

Taming messy tabular data before feeding it to a model:

using DevOnBike.Overfit.Data.Prepare;

var pipeline = new DataPipeline()
    .AddLayer(new TechnicalSanityLayer(maxCorruptedRatio: 0.3f))
    .AddLayer(new ConstantColumnFilterLayer())
    .AddLayer(new OutlierClipLayer(lowerPercentile: 0.01f, upperPercentile: 0.99f))
    .AddLayer(new RobustScalingLayer(columnIndices: numericColumns));

using var cleanData = pipeline.Execute(rawFeatures, rawTargets);

💡 Why Pure C# and Native AOT?

Most .NET ML libraries act as bridges to PyTorch, TensorFlow, or ONNX Runtime. While powerful, they drag along massive dependencies (often gigabytes of CUDA libraries and Python environments).

Overfit is different. By writing the math and the autograd engine entirely in modern C# (utilizing SIMD and memory-safe structures), Overfit allows you to deploy intelligent applications as single-file native executables. Whether you're building a microservice, a high-frequency trading bot, or an embedded IoT application, Overfit runs with predictable latency and a tiny memory footprint.


⚖️ Dual Licensing

This software is released under a Dual License model:

  1. Open Source (GNU AGPLv3): Free for open-source projects, personal use, and academic research. Note: If you use this engine in your application (even over a network/API), your entire application must also be open-sourced under the AGPLv3.
  2. Commercial License: For businesses building proprietary, closed-source applications or enterprise environments. Purchasing a commercial license frees you from the requirements of the AGPLv3.

To purchase a commercial license or discuss enterprise support, please contact: 👉 devonbike@gmail.com


🤝 Contributing

Contributions are welcome! Whether it's adding new activation functions, optimizing tensor math with System.Numerics.Vectors, or improving the documentation.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request
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 (4)

Showing the top 4 NuGet packages that depend on DevOnBike.Overfit:

Package Downloads
DevOnBike.Overfit.Server

A dependency-free, OpenAI-compatible HTTP server for the in-process Overfit LLM runtime — built on System.Net.HttpListener + System.Text.Json source-gen, no ASP.NET Core, Native-AOT friendly. Point any OpenAI client at it: /v1/chat/completions (streaming and non-streaming, with JSON / JSON-Schema constrained output), /v1/models and /health. Pure .NET, in-process: no Python, no model server. Dual-licensed (AGPL-3.0-or-later / commercial).

DevOnBike.Overfit.Extensions.AI

Use the in-process Overfit LLM runtime through Microsoft.Extensions.AI. Implements IChatClient and IEmbeddingGenerator, so it plugs into Semantic Kernel and any Microsoft.Extensions.AI pipeline — function calling, caching, telemetry, DI — by changing one line. Pure .NET, in-process: no Python, no model server, Native-AOT friendly. Dual-licensed (AGPL-3.0-or-later / commercial).

DevOnBike.Overfit.Mcp

A dependency-free MCP (Model Context Protocol) stdio server for the in-process Overfit LLM runtime — typed JSON-RPC 2.0 contracts with source-generated System.Text.Json serialization, no SDK dependency, no reflection, Native-AOT verified. Exposes local, zero-egress tools to MCP hosts (Claude Code, Claude Desktop, IDEs): ask a local GGUF model, query private documents with RAG citations, transcribe audio with Whisper — all in pure .NET on the CPU. Dual-licensed (AGPL-3.0-or-later / commercial).

DevOnBike.Overfit.UI

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.31 133 7/23/2026
10.0.30 144 7/20/2026
10.0.29 142 7/5/2026
10.0.28 161 6/26/2026
10.0.27 152 6/22/2026
10.0.26 139 6/20/2026
10.0.25 148 6/12/2026
10.0.24 137 6/11/2026
10.0.23 136 6/11/2026
10.0.22 117 6/9/2026
10.0.21 133 6/5/2026
10.0.20 110 5/31/2026
10.0.19 107 5/30/2026
10.0.18 116 5/29/2026
10.0.17 105 5/25/2026
10.0.16 115 5/21/2026
10.0.15 104 5/17/2026
10.0.14 116 4/30/2026
10.0.13 106 4/28/2026
10.0.7 106 4/13/2026
Loading failed