Skip to main content

InsightMapper

InsightMapper is a Python package for mapping and visualizing dependencies between variables in complex datasets.

Features

  • Non-linear dependency detection
  • Conditional dependency analysis
  • Interactive dependency maps
  • Influence ranking of features

Installation

To install, use:

pip install InsightMapper

Usage

Basic Dependency Mapping

Use InsightMapper to create a dependency matrix that highlights relationships between variables.

from insightmapper import DependencyMap
import pandas as pd

# Sample DataFrame
df = pd.DataFrame({
    'A': [1, 2, 3, 4, 5],
    'B': [2, 3, 4, 5, 6],
    'C': [5, 4, 3, 2, 1],
})

# Initialize DependencyMap and compute dependencies
dep_map = DependencyMap(df)
dependency_matrix = dep_map.compute_dependencies()

print("Dependency Matrix:\n", dependency_matrix)

# Get top influential features
top_influencers = dep_map.get_most_influential_features(top_n=3)
print("Top Influential Features:\n", top_influencers)

Conditional Dependency Analysis

Analyze how the dependency of one variable changes when conditioned on another variable.

from insightmapper import ConditionalAnalyzer

cond_analyzer = ConditionalAnalyzer(df)
conditional_dependency = cond_analyzer.conditional_dependency(target="A", conditional_on="B")
print("Conditional Dependency:\n", conditional_dependency)

Visualizing the Dependency Map

Visualize the dependency matrix as an interactive network graph.

from insightmapper import DependencyVisualizer

# Initialize the visualizer with the computed dependency matrix
visualizer = DependencyVisualizer(dependency_matrix)
visualizer.plot_dependency_map(threshold=0.1)

Release files for InsightMapper 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 InsightMapper 0.1.1
File Size Uploaded
insightmapper-0.1.1.tar.gz 4.2 kB Details

Built distribution (wheel)

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

Total release size: 9.0 kB

Release files / insightmapper-0.1.1.tar.gz

Download URL insightmapper-0.1.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bff1e4a35e0b5eb9e9b5fdcf11b0d86275f77556113d4473381f071c5c788e03
BLAKE2b-256 checksum
How to use checksums
9fd8ba0d3cb61c351ac886d697a02578f233662c70f9df3d114bf594781edc13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

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

Download URL InsightMapper-0.1.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
254165c33c1a83d3ad444df9da86e3d3a8e134af0d6de26f17ba4d1d9c03ea45
BLAKE2b-256 checksum
How to use checksums
8459527a16700a7b72de96fedfca1242c7ea4d8c9c650c0fcbbe35a771ecd0b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.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