Hyperplane.NET 0.1.3

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

Hyperplane.NET

Core library of Hyperplane: Vector Decision Models for .NET, written in G# and ported from the ideas of Venn.

A frozen reader turns content into vectors once; Hyperplane answers typed questions over those vectors. The library is pure managed code with no native dependencies, and is NativeAOT compatible.

Main types

Area Types
Profiles EmbedderProfile, VectorTag, Venn1, Profiles
Readers IEmbedder, CachedEmbedder (content-addressed LRU + optional file cache), DeterministicEmbedder (tests)
Generic head HeadBundle (Load, Resolve, Heuristic), HeadDownloader, CosineAbstentionHead, SafeTensors, PreparedQuestion, TemperatureCalibration
Decisions DecisionService (native requests, indexes, prepared questions, calibrations, families), DecisionsApi (Decisions API translator), ContractError
Space operations SpaceOps (nearest reference, set membership, population shift, counterfactual choice)
Outcomes IOutcomeStore, InMemoryOutcomeStore, FileOutcomeStore, OutcomeService, OutcomeHeadFamily, EventHistory
Families LinearChoiceFamily, RegressionFamily, ResidualChoiceFamily, FamilyStore, FamilyFormats
Numerics VectorMath, Prob, Linalg, Lbfgs, AdamW, Rng

Getting a head

// Download venn-1 (pinned revision, SHA-256 verified) into the user cache, then load it.
let directory = HeadDownloader.DownloadAsync().Result
let bundle = HeadBundle.Load(directory)

// Or: use HYPERPLANE_HEAD_DIR / the default cache when present, else the uncalibrated heuristic head.
let resolved = HeadBundle.Resolve()

The head is tied to the venn-1 profile (EmbeddingGemma 2, 768 dimensions, Classification prompt). Vectors from any other reader must use an experimental: profile and a fitted family or the heuristic head.

Deciding

DecisionService.Decide takes Venn's native request: a state (a vector, {"vectors": [...]}, an index_ref, or text when a reader is configured) and named questions of type Choice, Score, Noul, IndexApply, NearestReference, SetMembership or PopulationShift. Options are labeled vectors and the question is an instructions_vec. DecisionsApi.Decide(service, request) accepts the Decisions API wire format (model, state, questions of choice/score/noul with text criteria) and needs a reader.

Outcome stores

Register an IOutcomeStore with service.Outcomes.RegisterStore(store), then call service.DecideBatch(states, questions) with nearest_outcome questions to get per-option means, counts, spreads and evidence IDs from the nearest historical cases, with min_support, goal (max/min) and epsilon-greedy propensities. Write outcomes back with IWritableOutcomeStore.Add.

Families

service.RegisterFamily(name, body) trains, persists (when the service has a home) and switches in a family:

  • Choice: {"form": "residual" | "linear", "examples": [{"state": [...], "label": "a", "group_id"?: "g"}], "options": [{"label": "a", "vector": [...]}], "instructions_vec": [...], "seed"?, "split"?, "cv"?, "class_weight"?}
  • Regression: {"objective": "regress", "examples": [{"state": [...], "price": 12.5}], "target": "price"}, or {"objective": "regress", "from_store": "<index or outcome-store handle>", "target"?: "<partition>"}, with optional "form": "ridge" | "kernel_ridge", "alphas", "cv".

Questions then name the family ("family": "<name>"). Compiled outcome heads are trained with service.Outcomes.RegisterFamily(name, fromStore, options, ...).

See the repository's DESIGN.md for the math.

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 (1)

Showing the top 1 NuGet packages that depend on Hyperplane.NET:

Package Downloads
Hyperplane.Cider

Optional reader adapter for Hyperplane.NET: CiderEmbedder turns any Cider.NET IEmbeddingBackend (including Cider.Native's in-process llama.cpp LlamaEmbedder over GGUF models) into a Hyperplane IEmbedder with an honest, provenance-derived experimental profile.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.26 100 11/28/2026
0.1.15 99 11/27/2026
0.1.3 109 11/26/2026