Describe the bug
Got NPE when start NearestNeighborDemo
Generating dataset...
[Thread-0] INFO smile.math.MathEx - Set RNG seed 342317953 for thread Thread-0
Building searching data structure...
Perform 100 searches...
The recall of LSH is 90.0%
Exception in thread "Thread-0" java.lang.NullPointerException
at smile.demo.neighbor.NearestNeighborDemo.run(NearestNeighborDemo.java:199)
at java.base/java.lang.Thread.run(Thread.java:829)
Generating dataset...
[Thread-1] INFO smile.math.MathEx - Set RNG seed 521642753 for thread Thread-1
Building searching data structure...
Perform 1000 searches...
The recall of LSH is 96.8%
Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at smile.plot.swing.Canvas.setAxisLabels(Canvas.java:309)
at smile.demo.neighbor.KNNDemo.run(KNNDemo.java:242)
at java.base/java.lang.Thread.run(Thread.java:829)
Generating dataset...
[Thread-2] INFO smile.math.MathEx - Set RNG seed 72070657 for thread Thread-2
Building searching data structure...
Perform 1000 searches...
Exception in thread "Thread-2" java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2
at smile.plot.swing.Canvas.setAxisLabels(Canvas.java:309)
at smile.demo.neighbor.RNNSearchDemo.run(RNNSearchDemo.java:212)
at java.base/java.lang.Thread.run(Thread.java:829)
Describe the bug Got NPE when start NearestNeighborDemo
Expected behavior No NPE and demo working
Additional context