Skip to main content

A package that maps and visualizes relationships and dependencies between variables in complex datasets.

Project description

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)

Project details


Download files

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

Source Distribution

insightmapper-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

InsightMapper-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file insightmapper-0.1.1.tar.gz.

File metadata

  • Download URL: insightmapper-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for insightmapper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bff1e4a35e0b5eb9e9b5fdcf11b0d86275f77556113d4473381f071c5c788e03
MD5 7d3359efb1d48f759d92cfe9de6df201
BLAKE2b-256 9fd8ba0d3cb61c351ac886d697a02578f233662c70f9df3d114bf594781edc13

See more details on using hashes here.

File details

Details for the file InsightMapper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: InsightMapper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for InsightMapper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 254165c33c1a83d3ad444df9da86e3d3a8e134af0d6de26f17ba4d1d9c03ea45
MD5 5b81b945878bae94a27909d6241c9425
BLAKE2b-256 8459527a16700a7b72de96fedfca1242c7ea4d8c9c650c0fcbbe35a771ecd0b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page