I am looking at SciPy's KD Tree implementation. I am confused by the leafsize parameter, which is said to be
The number of points at which the algorithm switches over to brute-force. Default: 16.
Is this the number of leaves in the BST? If so, that means by default, the KD tree will contain no more than 32 points. This seems unreasonably small, especially for my use case of k=2. Am I interpreting the parameter incorrectly?
