curiosity-ai / umap-sharp

C# library for fast embeddings projection using Uniform Manifold Approximation and Projection
MIT License
37 stars 5 forks source link

Nullreference Exception on short Datasets #4

Closed TASchwarz closed 3 years ago

TASchwarz commented 3 years ago

Any float[][] shorter than ~10 Elements (Such as people would use to test things) crashes with a NullreferenceExeption due to Tree.cs line 27 Hyperplane being initialized to null when a Tree has fewer indicies than leaves.

theolivenbaum commented 3 years ago

closed by #5

theolivenbaum commented 3 years ago

Fix is available on the latest release: https://www.nuget.org/packages/UMAP/1.0.21965