napf.base#

Functions

core_class_str_and_data(tree_data, metric)

Returns class name of current setting.

enforce_contiguous(array[, dtype])

If input is an instance / subclass of np.ndarray, this will check if they are configuous.

validate_metric_input(metric)

internal use fn for metric validation

Classes

KDT(tree_data[, metric, leaf_size, nthread])

napf is implemented as template, thus, there are separate classes for each {data_type, dim, metric}.