Skip to main content

Weighted Centroid Distance

A new model assessment technique for multi-class classification tasks in machine learning.

For the statistical theory, please see the white paper in /paper. It is auto generated from .tex to .pdf.

How to use

# Python
from weighted_centroid_distance import WeightedCentroidDistance
distribution = WeightedCentroidDistance.get_distribution([1, 2, 3, 3, 4, 5, 5, 5], inverse=False)
wcd = WeightedCentroidDistance(distribution=distribution)
y____ = [1, 1, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 5, 5, 5]
y_hat = [1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 5, 1, 5, 5, 2]
res = wcd.get_distance(y=y____, y_hat=y_hat)
print("res: ", res)
# 0.12086457016125143

Todo

  • Create graphs for all parts of the algorithm defined in the paper
  • Improve python script, and make a versions for other languages.

Metadata

Release files for weighted-centroid-distance 1.0.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 weighted-centroid-distance 1.0.0
File Size Uploaded Provenance Actions
weighted_centroid_distance-1.0.0.tar.gz 2.7 kB Without provenance Details for weighted_centroid_distance-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for weighted-centroid-distance 1.0.0
File Interpreter ABI Platform Actions
weighted_centroid_distance-1.0.0-py3-none-any.whl Python 3 none any Details for weighted_centroid_distance-1.0.0-py3-none-any.whl

Total release size: 5.8 kB

Release files / weighted_centroid_distance-1.0.0.tar.gz

Download URL weighted_centroid_distance-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
44cad706f1031997377cf44eefac33c5ad3e6adddc63df01aeba5d7bf6fe9298
BLAKE2b-256 checksum
How to use checksums
26d77a373e19d516c83f880841295f2849a745488a6eb4946def6d164ff705d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.7.4

Release files / weighted_centroid_distance-1.0.0-py3-none-any.whl

Download URL weighted_centroid_distance-1.0.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4533f586d586ee55ecc39e592ee3e7996b362fead975a300bb57554d241a64ed
BLAKE2b-256 checksum
How to use checksums
4d1de3a61cea34d04fa2513a528305fff32147d0b37dd8bbd20be5587a31eacb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.19.1 CPython/3.7.4

Security for weighted-centroid-distance 1.0.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

1.0.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