vasco
discover hidden correlations in your data with MIC
Repository
Florents-Tselai/vasco
https://github.com/Florents-Tselai/vasco
Source
vasco-0.1.0.tar.gz
vasco-0.1.0.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
vasco | 0.1.0 | FUNC | GPL-3.0 | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 4660 | vasco | No | Yes | No | Yes | No | Yes | - |
| Related | pg_idkit pgx_ulid pg_uuidv7 pg_hashids sequential_uuids ddsketch tdigest uuid-ossp |
|---|
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PIGSTY | 0.1.0 | 1817161514 | vasco | - |
| RPM | PIGSTY | 0.1.0 | 1817161514 | vasco_$v | - |
| DEB | PIGSTY | 0.1.0 | 1817161514 | postgresql-$v-vasco | - |
Build
You can build the RPM / DEB packages for vasco using pig build:
pig build pkg vasco # build RPM / DEB packages
Install
You can install vasco directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:
pig repo add pgsql -u # Add repo and update cache
Install the extension using pig or apt/yum/dnf:
pig install vasco; # Install for current active PG version
pig ext install -y vasco -v 18 # PG 18
pig ext install -y vasco -v 17 # PG 17
pig ext install -y vasco -v 16 # PG 16
pig ext install -y vasco -v 15 # PG 15
pig ext install -y vasco -v 14 # PG 14
dnf install -y vasco_18 # PG 18
dnf install -y vasco_17 # PG 17
dnf install -y vasco_16 # PG 16
dnf install -y vasco_15 # PG 15
dnf install -y vasco_14 # PG 14
apt install -y postgresql-18-vasco # PG 18
apt install -y postgresql-17-vasco # PG 17
apt install -y postgresql-16-vasco # PG 16
apt install -y postgresql-15-vasco # PG 15
apt install -y postgresql-14-vasco # PG 14
Create Extension:
CREATE EXTENSION vasco;
Usage
vasco: Maximal Information Coefficient (MIC) extension for PostgreSQL
Discover hidden correlations in your data using the Maximal Information Coefficient (MIC) and the MINE family of statistics.
CREATE EXTENSION vasco;
Aggregate Functions
| Function | Description |
|---|---|
mic(x, y) | Maximal Information Coefficient – detects any relationship |
mas(x, y) | Maximum Asymmetry Score – deviation from monotonicity |
mev(x, y) | Maximum Edge Value – degree of continuous function sampling |
mcn(x, y) | Minimum Cell Number – complexity of association |
mcn_general(x, y) | MCN with eps = 1 - MIC |
tic(x, y) | Total Information Coefficient |
gmic(x, y) | Generalized Mean Information Coefficient |
Utility Functions
| Function | Description |
|---|---|
vasco_corr_matrix(table_name, output_table) | Compute MIC for all column pairs and store as a correlation matrix table |
Configuration
SET vasco.mic_estimator = 'ApproxMIC'; -- or 'MIC_e'
SET vasco.mine_c = ...;
SET vasco.mine_alpha = ...;
Examples
-- Compute MIC between column pairs
SELECT mic(x, cubic), mic(x, periodic), mic(x, rand_y)
FROM vasco_data;
-- 1, 1, 0.15
-- Create a full correlation matrix
SELECT vasco_corr_matrix('my_table', 'mic_my_table');
SELECT * FROM mic_my_table;
Feedback
Was this page helpful?
Thanks for the feedback! Please let us know how we can improve.
Sorry to hear that. Please let us know how we can improve.