NeuroForge 1.0.1

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

NeuroForge

Build production-grade neural network architectures without leaving C#.

NeuroForge lets .NET developers build, train, and export neural networks — CNNs, RNNs, GANs, Transformers, and more — using nothing but strongly-typed C# configuration. Under the hood it manages a Python/TensorFlow runtime for you and hands back an ONNX model you can run anywhere: ML.NET, ONNX Runtime, Azure ML, edge devices, mobile.

Independent open-source project; not affiliated with or endorsed by Microsoft.

Install

dotnet add package NeuroForge

Quick start

using NeuroForge.Factory;
using NeuroForge.Factory.Core;
using NeuroForge.Factory.Support;

// 1. Set up the Python/TensorFlow runtime (one-time, downloads Python 3.11 + TF 2.15)
var factory = new NeuroForgeFactory();
await factory.InitializeAsync();

// 2. Configure your ANN
var config = new AnnBuilderConfig {
    Type = "cnn",
    InputShape = new[] { 32, 32, 3 },
    NumClasses = 10,
    Dataset = new DatasetConfig { Source = "cifar10", Type = "image", Normalize = true },
    Training = new TrainingConfig { Epochs = 50, BatchSize = 128 }
};

// 3. Build, train, and export
var manager = factory.CreateAnnBuilderManager();
await manager.BuildModelAsync("my_cnn", config, PythonRuntimeHelper.CreateConsoleProgress());

// Done — model.h5 and model.onnx are ready in your output directory.

Before you run this: InitializeAsync() installs Python system-wide (InstallAllUsers=1), which requires an elevated (admin) shell on Windows. Run your terminal as Administrator the first time you initialize the runtime.

Supported architectures

Architecture Best for
MLP Tabular data, feature-based prediction, simple regression
CNN Image classification, defect detection, computer vision
RNN / LSTM Time series, forecasting, sequential sensor data
Autoencoder Anomaly detection, compression, feature learning
GAN Synthetic data generation, data augmentation
Transformer Text classification, sentiment, sequence tasks

Datasets load from image folders, CSV/Excel, NumPy arrays, or built-in sets (CIFAR-10, MNIST, IMDB). Every trained model is automatically exported to ONNX, so no TensorFlow is required at inference time.

Requirements

  • .NET 10 or later
  • Windows 10/11 (Linux/macOS support planned)
  • Administrator shell for first-time Python runtime setup
  • ~500 MB disk space for the Python environment

Documentation

Full documentation, architecture parameter reference, dataset guide and ONNX export guide live in the repository: https://github.com/angelhernandezm/NeuroForge

License

MIT © Angel Hernandez

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
1.0.1 88 9/7/2026
1.0.0 96 9/7/2026