Skip to main content

scalableDistances

Python package related to scaling distances

import scalableDistances 
from scalableDistances import distance
import pandas as pd
import random
from pprint import pprint
N = 2
main_arr2 = []
arr2 = [random.randint(1, 100) for _ in range(N)]

    
for i in range(N):
    main_arr2.append(arr2)


print(f"main_arr2 = {main_arr2}")
progress_bar = True  # Set to True to enable progress bar
print("Starting the parallel processing...")
for distance_metric in [
        "euclidean", "squared_euclidean", "manhattan", "chebyshev",
        "minkowski", "l0", "canberra", "bray_curtis", 
        "hamming", "hamming_count",
        "jaccard", 
        "standardized_euclidean",
        "huber",
        "maximum_relative_difference"
]:
    print(f"Calculating distances using {distance_metric} metric...")
    results = distance.get_distance_metrics(main_arr2, distance_metric, progress_bar)
    print(f"Results for {distance_metric}:")
    pprint(results[:5])  # Print the first 5 results for verification
    

Metadata

Release files for scalableDistances 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scalableDistances 0.1.0
File Size Uploaded Provenance Actions
scalabledistances-0.1.0.tar.gz 3.6 kB Without provenance Details for scalabledistances-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scalableDistances 0.1.0
File Interpreter ABI Platform Actions
scalabledistances-0.1.0-py3-none-any.whl Python 3 none any Details for scalabledistances-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / scalabledistances-0.1.0.tar.gz

Download URL scalabledistances-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3b29e5637c3492eec9c11d54b9cb0591322b6c4b5e21adca2a21eff7366b89f5
BLAKE2b-256 checksum
How to use checksums
8c09dd811cc9c6097146d2448b8a84490998afd045ce9f7ce0b4d47e49817e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / scalabledistances-0.1.0-py3-none-any.whl

Download URL scalabledistances-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d6e2c6a83812e084f986e40e7955bd4dbc76c0de56b2f37769ee14358260cba
BLAKE2b-256 checksum
How to use checksums
f8ccd2ec800200640645c877e27736b64ac24ce91368c597c7c6149ef811837a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for scalableDistances 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page