NeighborDistIdx
Module: strata.neighbors • Kind: struct • Traits: Comparable, Copyable, ImplicitlyCopyable, Movable
Source: strata/neighbors/base.mojo
struct NeighborDistIdx(Comparable, Copyable, ImplicitlyCopyable, Movable)from strata.neighbors import NeighborDistIdxContainer holding a sample distance and its training dataset row index.
Constructors
Section titled “Constructors”def __init__(out self, dist: Float64, idx: Int)| Argument | Type | Description |
|---|---|---|
dist |
Float64 |
— |
idx |
Int |
— |