Skip to main content

Machine learning estimators for bipartite data.

Project description

PyPI version Documentation Status Code style: black


Machine learning estimators tailored to bipartite datasets.

In a usual machine learning setting, one is interested in predicting a set of outputs y from a given feature vector x representing an input instance. There are tasks, however, that are sometimes better modeled as bipartite networks, in which two domains of instances are present and only inter-domain relationships are plausible between pairs of instances. The goal is then to predict aspects (y) of such interaction between a sample from the first domain and another from the second domain, respectively represented by feature vectors x1 and x2. In other words, it is sometimes desirable to model a function in the format (x1, x2) -> y rather than the usual x -> y format.

Examples of such tasks can be found in the realms of interaction prediction and recommendation systems, and the datasets corresponding to them can be presented as a pair of design matrices (X1 and X2) together with an interaction matrix Y that describes each relationship between the samples X1[i] and X2[j] in the position Y[i, j].

This package provides:

  1. A collection of tools to adapt usual algorithms to bipartite data;
  2. Tree-based estimators designed specifically to such datasets, which yield expressive performance improvements over the naive adaptations of their monopartite counterparts.

A documentation for bipartite_learn, still in its infancy, can be found at bipartite-learn.rtfd.io. Please refer to the User Guide for more information on how to use this package.

Installation

bipartite_learn is available on PyPI, and thus can be installed with pip:

$ pip install bipartite_learn

Installation from source can be done by cloning this repository and calling pip install in the root folder.

$ git clone https://github.com/pedroilidio/bipartite_learn
$ cd bipartite_learn
$ pip install --editable .

The optional --editable (or -e) flag links the installed package to the local cloned repository, so that local changes in it will immediatly be active without the need for reinstallation.

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

bipartite_learn-0.7.4.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

bipartite_learn-0.7.4-cp311-cp311-win_amd64.whl (639.4 kB view details)

Uploaded CPython 3.11 Windows x86-64

File details

Details for the file bipartite_learn-0.7.4.tar.gz.

File metadata

  • Download URL: bipartite_learn-0.7.4.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for bipartite_learn-0.7.4.tar.gz
Algorithm Hash digest
SHA256 d85b67ad6118ada50a8de9db02e2aab62ed86a753d86e1c025b878a0bcbebeda
MD5 347d51f81346f456b7990ca9f2e2c186
BLAKE2b-256 c31f057d27b1564c426447c56822ce99946b29f2140c991d13ed3b5cd0d0ba7a

See more details on using hashes here.

File details

Details for the file bipartite_learn-0.7.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for bipartite_learn-0.7.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 16215def505fac4e38a307f0f4ee345c3e35a1b961bb1816105bf558bd4f9c5c
MD5 c1d4bf4d9680c5ca7a2d716e6a1e852c
BLAKE2b-256 8e58da0bf84c86bdadb5d6018c436fc0a9625d0e401918cf3ae91e5c4f06df05

See more details on using hashes here.

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