Skip to main content

Sparse Grid Indexing Algorithm

Project description

Installation

The following instructions are for installing the SGIA package on a Linux/Windows/MacOS system. The following vector indexing algorithm is implemented in Python 3.6.8. The package is available on PyPI and can be installed using pip. The package is also available on GitHub.

Requirements

numpy
scipy

Installation

pip install sgia

Source

https://pypi.org/project/sgia/

Usage

from sgia import SGIA

# Create a SGIA object
sgia = SGIA(dimensions=2)
sgia.insert([1.0, 2.0], "Data A")
sgia.insert([3.0, 4.0], "Data B")
sgia.insert([5.0, 6.0], "Data C")

# Display the index
sgia.display()

# Search for nearest neighbors to a query vector
query = [2.0, 3.0]
k_neighbors = sgia.search(query, k=3)

print("Nearest neighbors to query:", k_neighbors)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgia-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sgia-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file sgia-0.1.1.tar.gz.

File metadata

  • Download URL: sgia-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for sgia-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2e0b087d34b20789dbba422068e296ff35dde726df637bbf32a319afbcea9661
MD5 8d472474126ea2418aa6ece243045d00
BLAKE2b-256 93f3590147e6ed9dff58f9b4e3034bca2222ec7e2c8134a346d4ef40f6b9abd7

See more details on using hashes here.

File details

Details for the file sgia-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sgia-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for sgia-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd48dafd497cb0bbbef7997109074fe9d71beecd104f6c077f8ea29ec377721
MD5 cff7e7c1d9c78f88f1ce688b1e1ae708
BLAKE2b-256 79796f0161187807a779e8a21b83ab810b41483eae17f0a3ff09ab13206b0434

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page