subsume
Geometric box embeddings for modeling containment ("is-a") and entailment relationships.
Dual-licensed under MIT or Apache-2.0.
Quickstart
[]
= "0.1.0"
= "0.1.0"
= "0.15"
use NdarrayBox;
use array;
// Box A: [0,0,0] to [1,1,1]
let premise = new?;
// Box B: [0.2,0.2,0.2] to [0.8,0.8,0.8] (inside A)
let hypothesis = new?;
// Probability that A contains B
let p = premise.containment_prob?;
println!;
Features
- Gumbel Box: Probabilistic boxes for training stability
- Backends:
ndarray(CPU) andcandle(GPU/Metal) - Training: Volume regularization, temperature scheduling
- Inference: Fast containment and overlap scoring
See docs/ for mathematical foundations and research details.