Skip to main content
https://img.shields.io/pypi/v/sevq.svg https://img.shields.io/travis/sylwekczmil/sevq.svg Documentation Status

SEVQ: Simple Evolving Vector Quantization

Installation

To install sevq, run this command in your terminal:

pip install sevq

Usage

Training and prediction one sample at a time

from sevq.algorithm import SEVQ

c = SEVQ()
c.partial_fit([-2, -2], 2)
c.partial_fit([-1, -1], 1)
c.partial_fit([1, 1], 1)
c.partial_fit([2, 2], 2)

print(c.predict([0, 0]))  # 1
print(c.predict([3, 3]))  # 2
print(c.predict([-3, -3]))  # 2

Training and prediction on multiple samples

from sevq.algorithm import SEVQ

c = SEVQ()
c.fit(
    [[-2, -2], [-1, -1], [1, 1], [2, 2]],
    [2, 1, 1, 2],
    epochs=1, permute=False
)

print(c.predict([[0, 0], [3, 3], [-3, -3]]))  # [1, 2, 2]

Metadata

Release files for sevq 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sevq 1.0.2
File Size Uploaded
sevq-1.0.2.tar.gz 22.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sevq 1.0.2
File Interpreter ABI Platform
sevq-1.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 26.7 kB

Release files / sevq-1.0.2.tar.gz

Download URL sevq-1.0.2.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f7dd03b5b96286bd33c7005bacfcdba009cd553d0fd64c501bf815d15523370
BLAKE2b-256 checksum
How to use checksums
4ab70fa063fa4223dd2e3b7b0d20c524794b48170857663402bf396d32ff295a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.8.2 requests/2.27.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / sevq-1.0.2-py2.py3-none-any.whl

Download URL sevq-1.0.2-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f36c1e90304e90c0ff4884cdfdc217a281677169029401e5dac8cb006aaecca9
BLAKE2b-256 checksum
How to use checksums
7dc869293cf0ad5796470d71d3824d819a38de5d30adbb545d6a49d739b19f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.8.2 requests/2.27.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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