Skip to main content

No project description provided

Project description

Contributors Forks Stargazers Issues project_license PyPI


Logo

HYPERNEGATIVE

A Python library for the evaluation of Hyperlink Prediction algorithms
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact
  5. Acknowledgments

About The Project

Product Name Screen Shot

Hypernegative is a Python library designed for the evaluation of Hyperlink Prediction (HLP) models. It provides a unified interface for all components of an evaluation pipeline, ensuring consistency, modularity, and ease of use.

The library is structured as a modular and reusable framework, with a strong focus on reproducibility in both Hyperlink Prediction (HLP) and Negative Sampling (NS) methods.

Originally developed as a Bachelor’s thesis project in Computer Science at the University of Salerno, Hypernegative is intended to evolve into a research and experimentation tool in the domains of HLP and NS.

(back to top)

Built With

  • Python
  • PyTorch
  • Pytorch_geometric

(back to top)

Getting Started

Follow these steps to set up the project locally.

Installation

Requirements:

  • torch>=1.13.0
  • torch-geometric>=2.6.1

Hypernegative supports Python 3.9 to 3.13.

You can install Hypernegative, which requires PyTorch and PyTorch Geometric (PyG), by running:

You can install and use Hypernergative wich require the library PyTorch and PyG. For this, simply run

pip install hypernegative

Usage

You can either use Hypernegative as a Python library or through the CLI.

Python example

from hypernegative.hyperlink_prediction.datasets import IMDBHypergraphDataset
from hypernegative.hyperlink_prediction.loader import DatasetLoader

dataset = IMDBHypergraphDataset()
loader = DatasetLoader(
    dataset,
    "MotifHypergraphNegativeSampler", 
    dataset._data.num_nodes,
    batch_size=4000, 
    shuffle=True, 
    drop_last=True
)

CLI example

Show available options

imdb_pipeline --help

Run a pipeline with a specific dataset, negative sampling strategy, and HLP method:

imdb_pipeline --dataset_name COURSERA --negative_sampling MotifHypergraphNegativeSampler --hlp_method CommonNeighbors

(back to top)

Contact

Giovanni Semioli - g.semioli1@studenti.unisa.it

Project Link: https://github.com/hypernetwork-research-group/hypernegative

(back to top)

Acknowledgments

(back to top)

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

hypernegative-0.1.2.6.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

hypernegative-0.1.2.6-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file hypernegative-0.1.2.6.tar.gz.

File metadata

  • Download URL: hypernegative-0.1.2.6.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.22

File hashes

Hashes for hypernegative-0.1.2.6.tar.gz
Algorithm Hash digest
SHA256 8852219e6ba0a974d3b17b2cc76fc7992f3afa9f5f06203cbc4dfea214abea05
MD5 60bbb1d90dd278f080cb7f2424ed8eb6
BLAKE2b-256 8be87a22e751e86b2ef70a10bd7fb04d165cfe856c8693200f8c1fdf75c0b6c7

See more details on using hashes here.

File details

Details for the file hypernegative-0.1.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for hypernegative-0.1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dc50011335d1857dce135afdfd72609c7773cfc8e4a345aa0cfd95b3212a96f4
MD5 b75d179c93712102dc1548166f6152b5
BLAKE2b-256 75cf5c2bf617837dbadb43a92f5bd9f4e5067e9462d499d704ad675d4969f38f

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