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.2.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.2-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cos_comparison-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 72fe9c6a8879e3fc40bd9297912c926d5efcea3f9858f0a2c9ecffbecdcf9565
MD5 91cee8a24b08980c71abfe1fa1faa34d
BLAKE2b-256 84a354bff10f668a9d8be2a02992234f13616c63569f3c6642b46a2cff255d40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cos_comparison-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2741980baf70198217e273932b1e4384263712eabe6db823bf0e317b244fbc75
MD5 ea183f657ab94ea7989beb8c67e868b7
BLAKE2b-256 8dec35e628e94a5f31db0ab921c3707518610d92f30b547345fe45289c6a186b

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