Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Slice NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad SubscriptLoad NameLoad ExtSlice Slice Index SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return ListLoad Call AttributeLoad Str attr ListComp IfExp CompareGt NameLoad Num Str Str comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A numpy N/A scipy N/A scipy.sparse nearpy.hashes.lshash LSHash nearpy.utils numpy_array_from_list_or_numpy_array perform_pca PCABinaryProjections N/A LSHash N/A N/A 
    Projects a vector on n first principal components and assigns
    a binary value to each projection depending on the sign. This
    divides the data set by each principal component hyperplane and
    generates a binary hash value in string form, which is being
    used as a bucket key for storage.
     __init__ N/A N/A self hash_name projection_count training_set N/A N/A N/A 
        Computes principal components for training vector set. Uses
        first projection_count principal components for projections.

        Training set must be either a numpy matrix or a list of
        numpy vectors.
         N/A N/A N/A N/A super PCABinaryProjections self __init__ hash_name N/A N/A self projection_count projection_count N/A N/A N/A training_set None N/A N/A training_set N/A numpy_array_from_list_or_numpy_array training_set N/A N/A self dim N/A N/A training_set shape N/A 0 N/A training_set_t N/A N/A numpy transpose training_set N/A N/A eigenvalues eigenvectors N/A perform_pca training_set_t N/A largest_eigenvalue_indices N/A N/A N/A numpy flipud N/A N/A scipy argsort eigenvalues N/A projection_count N/A N/A self components N/A N/A numpy zeros N/A N/A self dim N/A len largest_eigenvalue_indices N/A index N/A range N/A len largest_eigenvalue_indices N/A N/A N/A N/A self components N/A N/A N/A index N/A eigenvectors N/A N/A N/A N/A largest_eigenvalue_indices N/A index N/A N/A self components N/A N/A numpy transpose N/A self components N/A N/A N/A self dim None N/A N/A self components None N/A N/A self components_csr None N/A reset N/A N/A self dim N/A N/A N/A  Resets / Initializes the hash for the specified dimension.  N/A N/A N/A self dim dim N/A N/A N/A Exception PCA hash is trained for specific dimension! N/A hash_vector N/A N/A self v querying N/A False N/A N/A 
        Hashes the vector and returns the binary bucket key as string.
         N/A N/A N/A N/A scipy sparse issparse v N/A N/A N/A N/A self components_csr None N/A N/A N/A self components_csr N/A N/A N/A scipy sparse csr_matrix N/A self components N/A N/A N/A N/A N/A scipy sparse isspmatrix_csr v N/A N/A v N/A N/A N/A scipy sparse csr_matrix v N/A projection N/A N/A N/A N/A N/A self components_csr dot v toarray N/A N/A projection N/A N/A numpy dot N/A self components v N/A N/A N/A N/A join N/A N/A N/A x 0.0 1 0 N/A x projection N/A get_config N/A N/A self N/A N/A N/A 
        Returns pickle-serializable configuration struct for storage.
         N/A N/A hash_name dim projection_count components N/A self hash_name N/A self dim N/A self projection_count N/A self components N/A apply_config N/A N/A self config N/A N/A N/A 
        Applies config
         N/A N/A self hash_name N/A config N/A hash_name N/A N/A self dim N/A config N/A dim N/A N/A self projection_count N/A config N/A projection_count N/A N/A self components N/A config N/A components N/A N/A