This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding:utf8 | |
import numpy as np | |
def calc_complexity(leaf, f, N, n_trees, dim_size, block, search_k=None, vector_complexity=None, benchmark_process=1): | |
''' | |
# 这些是参数 | |
leaf: 数据大小 | |
f: 维度 | |
N: 需要找到的最邻近点 |