Skip to main content

Local similarity comparison for feature extraction – biologically inspired, zero‑training edge / pattern detection.

Project description

Cos Comparison

Python 3.8+ License: MIT

Local similarity comparison for feature extraction – biologically inspired, zero‑training edge / pattern detection.

Core Idea

Information is produced by local comparison in raw data.
This module implements the center‑surround antagonism mechanism from neuroscience, extracting edges, textures, and keypoints using only sliding window similarity.

The main formula (cosine‑modulated similarity):

$$ \text{cosmod} = \frac{2,(A\cdot B)}{|A|^2 + |B|^2} $$

  • Spurt for real AGI
  • No training, no labels, no backpropagation
  • Works on 1D, 2D, 3D, 4D data (audio, images, video, volumes)
  • Supports passive (reflex) and active (template matching) modes
  • Pure Python core + optional NumPy / C acceleration

Installation

pip install cos-comparison

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

cos_comparison-0.1.1.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

cos_comparison-0.1.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cos_comparison-0.1.1.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cos_comparison-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2e3896fba2335533e025f712e6caf90981a149799e480af28e0ddd5f5fd56156
MD5 fae33f8260cf153c244984db64352810
BLAKE2b-256 79e877b6f14cb62fdad7d0a9992fcd47d6550ac38a87a6213ad933d079133089

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cos_comparison-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cos_comparison-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a06def94b31d0e32533d0605dd1334f7d5541c37b23201bd67742c5553d6d9ff
MD5 262bdeca53ffb9f35d9bd7be8fd8a9f2
BLAKE2b-256 f002c867a1e8f0652b3d8e6fc40910f5863acba168a5983de48f9960906026ac

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