Skip to main content

A numpy implementation of Robust Rank Correlation Coefficients.

Project description

PyPI version codecov License: MIT Code style: black

fuzzycorr

A numpy implementation of Robust Rank Correlation Coefficients (fuzzy correlation) based on paper:

Bodenhofer, U., and F. Klawonn. "Robust rank correlation coefficients on the basis of fuzzy."
Mathware & Soft Computing 15.1 (2008): 5-20.

This implementation is experimental and need future optimization and testing.

Installation

This package will be avaliable soon on pip.

Basic usage

from fuzzycorr import fuzzy_correlation_factory
from fuzzycorr.strict_orderings import lukasiewicz_strict_ordering_factory
from fuzzycorr.t_norms import godel

# create strict fuzzy ordering or supply own one
strict_ordering = lukasiewicz_strict_ordering_factory(r=0.2)

# create fuzzy correlation function with tnorm
fuzzy_corr = fuzzy_correlation_factory(strict_ordering, godel)

# load data
x = np.random.random(10)
y = np.random.random(10)

# calculate fuzzy correlation
fuzzy_corr(x, y)

Visit example Jupiter Notebook.

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

fuzzycorr-0.1.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Supported by

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