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.3.tar.gz (24.4 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.3-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cos_comparison-0.1.3.tar.gz
  • Upload date:
  • Size: 24.4 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.3.tar.gz
Algorithm Hash digest
SHA256 6a03f56b1e79089e376ace27adef276367c4a1799954f73d90d2f8e791acb513
MD5 fafa514854e6de83eedb8fed0f5276cb
BLAKE2b-256 5211df073a9d611d606ee0d1c9fff4f40873504849913b940dad0925f2fdd482

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cos_comparison-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 25.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b6dc70033a82ca06a14de2f4949429cc2e5533b52578a1245e9ef71b1e44e5b
MD5 e6b8e42ba724ed3cfdb051dbf3ca8dbc
BLAKE2b-256 a3832be00f5144f5f2d04766c226eb09c425235b1423a275156e0f0c89415f7c

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