Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

Why Result of get_query_signatures and get_item_signatures is not the Same #5

Description

@HaoMood

Dear Author,

Thanks for the code. I am wondering why the result of get_query_signatures and get_item_signatures is not the same. For example,

import numpy as np
from sitq import Sitq

# Create sample dataset
items = np.random.rand(10000, 50)

sitq = Sitq(signature_size=8)
# Learn transformation matrix
sitq.fit(items)  

# Get signatures for items
item_sigs = sitq.get_item_signatures(items)
# Get signature for query
query_sigs = sitq.get_query_signatures(items)

# Result is not the same
print(item_sigs[0])   # It gives: [False False False False  True  True False False]
print(query_sigs[0])  # It gives: [False False  True  True False False False  True]

Best regards,

Hao

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions