Skip to main content

cognitive-discovery-system-v2

CI PyPI Python License: MIT Code style: ruff

CDS v2 is a scientific computing platform built on the scientific Python stack — NumPy, SciPy, pandas and matplotlib. The algorithms proven in the pure-Python cognitive-discovery-system (v1.x) form its foundation; v2 rebuilds them for speed and adds new domain modules on top.

Installation

pip install cognitive-discovery-system-v2

From source:

git clone https://github.com/Furox88/cognitive-discovery-system-v2.git
cd cognitive-discovery-system-v2
pip install -e .[dev]

Quick start

import numpy as np
import cds2

# Linear algebra
A = [[3.0, 1.0], [1.0, 2.0]]
b = [9.0, 8.0]
x = cds2.linalg.solve(A, b)

# Statistics
r = cds2.stats.independent_t_test([1, 2, 3, 4, 5], [3, 4, 5, 6, 7])

# Optimization
res = cds2.optimize.minimize(lambda v: (v[0] - 2) ** 2 + (v[1] + 1) ** 2, x0=[0.0, 0.0])
print(res.x)  # ~ [2.0, -1.0]

# Signals
freqs, psd = cds2.signals.power_spectrum(np.sin(np.linspace(0, 100, 1024)), fs=256.0)

# Graphs with PageRank
adj = cds2.graph.from_edges(4, [(0, 1), (0, 2), (1, 3), (2, 3)], directed=True)
scores = cds2.graph.pagerank(adj)

Modules

Module Built on Highlights
cds2.linalg NumPy solve, det, inv, pinv, eig/eigh, SVD, least squares, cholesky, cond
cds2.stats scipy.stats t-tests, ANOVA, non-parametrics, correlations, chi-square, effect sizes, normal dist helpers
cds2.optimize scipy.optimize minimize, roots (brentq/newton/system), linprog, least squares, curve fit
cds2.integrate scipy.integrate quad, 2-D/3-D integration, ODE solvers, trapezoid/simpson
cds2.interpolate scipy.interpolate linear/cubic/pchip, lagrange, griddata, regular grids
cds2.signals scipy.signal FFT, PSD/welch/spectrogram, Butterworth filters, peaks, envelope
cds2.montecarlo NumPy Generator pi estimate, MC integration/expectation, hit-or-miss (all seedable)
cds2.graph scipy.sparse.csgraph components, Dijkstra/Bellman-Ford/Floyd-Warshall, MST, topological order, PageRank
cds2.ml NumPy/SciPy LinearRegression, LogisticRegression, KMeans++, PCA, KNN, metrics, data generators
cds2.timeseries pandas moving average, EWM, differencing, seasonal decomposition, ACF/PACF, Ljung-Box
cds2.viz matplotlib series/histogram/scatter/heatmap/spectrum/regression/confusion plots
cds2.io pandas CSV/JSON read-write, optional Excel/Parquet bridges, DataFrame summaries

CLI

cds2 info
cds2 stats 1,2,3,4,5
cds2 integrate sin --a 0 --b 3.14159
cds2 linsolve --a "3,1;1,2" --b "9,8"
cds2 plot 1,3,2,5,4 --file out.png

Relationship to CDS v1.x

The original zero-dependency pure-Python line lives at Furox88/cognitive-discovery-system and remains available. v2 is an independent project that trades that constraint for the speed and breadth of the scientific Python ecosystem.

Development

pip install -e .[dev]
pytest            # run the test suite
ruff check .      # lint

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cognitive_discovery_system_v2-2.0.0.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

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

cognitive_discovery_system_v2-2.0.0-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file cognitive_discovery_system_v2-2.0.0.tar.gz.

File metadata

File hashes

Hashes for cognitive_discovery_system_v2-2.0.0.tar.gz
Algorithm Hash digest
SHA256 01381f1da378d6dd083f21fb3e133934908f88736ff23f3f0ddaeb912328566c
MD5 61c6ae715ea76649a9ad9d09567a436d
BLAKE2b-256 808898067ca0dcd76912216401a2e1a643125640365a66dd165709dbc0dc61c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognitive_discovery_system_v2-2.0.0.tar.gz:

Publisher: release.yml on Furox88/cognitive-discovery-system-v2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cognitive_discovery_system_v2-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cognitive_discovery_system_v2-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81b0cf74bc674ffc4b5012c79e4157d325ae0b2381d37ae2a7bfc388879d0222
MD5 43bd475749cd86bd215322c16c88bd4c
BLAKE2b-256 2457d34de1b8f64736f115a2beace2beb8a45d10899de755877b0a761c291b04

See more details on using hashes here.

Provenance

The following attestation bundles were made for cognitive_discovery_system_v2-2.0.0-py3-none-any.whl:

Publisher: release.yml on Furox88/cognitive-discovery-system-v2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

4.0.0

1 file

3.3.0

22 files

3.2.1

22 files

3.2.0

22 files

3.1.0

22 files

3.0.0

22 files

2.6.0

22 files

2.5.1

22 files

2.5.0

22 files

2.4.0

22 files

2.3.0

22 files

2.2.0

22 files

2.1.0

22 files

This release

2.0.0 This release

2 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