Hyperplane.NET
0.1.3
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
<PackageReference Include="Hyperplane.NET" Version="0.1.3" />
<PackageVersion Include="Hyperplane.NET" Version="0.1.3" />
<PackageReference Include="Hyperplane.NET" />
paket add Hyperplane.NET --version 0.1.3
#r "nuget: Hyperplane.NET, 0.1.3"
#:package Hyperplane.NET@0.1.3
#addin nuget:?package=Hyperplane.NET&version=0.1.3
#tool nuget:?package=Hyperplane.NET&version=0.1.3
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 | Versions 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. |
-
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.