Skip to main content

nGene FastICA

A lightweight FastICA implementation for educational signal separation and local waveform separation demos.

This package keeps the FastICA engine simple and local. The browser-based PyScript waveform separation interface can be documented separately and linked from the project homepage.

Install locally during development

python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
python -m pip install --upgrade pip
python -m pip install -e .

Basic usage

import numpy as np
from ngene_fastica import FastICA

# Shape convention: rows are observed mixtures, columns are samples.
X = np.random.randn(3, 10000)
S = FastICA(n_components=3, random_state=42).fit_transform(X)
print(S.shape)

Local waveform separation demo

After local installation:

python examples/local_waveform_separation.py

Or, after package installation:

ngene-fastica-demo

The demo writes WAV files for generated sources, mixed signals, and separated signals. ICA recovers sources up to permutation and sign, so the separated files may not match the original source order exactly.

PyScript demo

PyScript waveform separation requires browser-specific audio handling, HTML, JavaScript, and UI wiring. The package provides the local ICA engine and a reproducible local waveform example; the complete browser demo can be linked here:

https://ngene.org

Notes

  • Input shape is (n_signals, n_samples).
  • The implementation uses NumPy only; SciPy is not required.
  • This is intended as a lightweight educational/demo package, not a replacement for mature scientific packages.

Metadata

Release files for ngene-fastica 0.1.1

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

Source distribution (sdist)

Source distribution for ngene-fastica 0.1.1
File Size Uploaded Provenance Actions
ngene_fastica-0.1.1.tar.gz 5.7 kB Without provenance Details for ngene_fastica-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ngene-fastica 0.1.1
File Interpreter ABI Platform Actions
ngene_fastica-0.1.1-py3-none-any.whl Python 3 none any Details for ngene_fastica-0.1.1-py3-none-any.whl

Total release size: 12.2 kB

Release files / ngene_fastica-0.1.1.tar.gz

Download URL ngene_fastica-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e63ab976894673f62537c2df1b89f12a0bbe207f1a190272b1dbe8098ae8701e
BLAKE2b-256 checksum
How to use checksums
db5d4c776ab04714b360a474b4b3d468cdbfa83d41bd4d852cb1b3e1702c7d71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / ngene_fastica-0.1.1-py3-none-any.whl

Download URL ngene_fastica-0.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4d8ccf884e6525d8632eca7bb4fb4e172b2dcd6187d55d3fed92b75fc81031f
BLAKE2b-256 checksum
How to use checksums
259acde292489d827b5592d0846752bde5ce94ad225a8224e848729f0ff62ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for ngene-fastica 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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