Skip to main content

A suite of standard metrics for assessing learned feature representations, in PyTorch.

Project description

Kowalski

This library provides a suite of standard metrics for assessing learned feature representations, in PyTorch.

Installation

pip install kowalski

Example

from kowalski import to_per_class_list
from kowalski.neural_collapse import class_distance_normalized_variance as cdnv
import torch
features = torch.randn(100, 128)
labels = torch.randint(0, 10, (100,))

print(cdnv(to_per_class_list(features, labels)))

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

kowalski-0.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

kowalski-0.0.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file kowalski-0.0.2.tar.gz.

File metadata

  • Download URL: kowalski-0.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for kowalski-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d6287021c5822d4546c3974f1b7217b927e5853b78376f4dd4f218ce41b6f726
MD5 24f6008463566dd798b82fe2c44523e6
BLAKE2b-256 ae9bbcb32bfb8a56d42b9f3544172ff155bdab8c95214c9048126372fdd0506c

See more details on using hashes here.

File details

Details for the file kowalski-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kowalski-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for kowalski-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1bae3763a39f40356423fac3c4d442204ac804b44bc5c44b4da76f8e5cf3adf9
MD5 b43218c76e79013bcc9ea5d92445d7d5
BLAKE2b-256 a45b125c88685d4794a17de99e6260ee69c4e049f8e5373a7598f8095b37d5d5

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