No project description provided
Project description
HYPERNEGATIVE
A Python library for the evaluation of Hyperlink Prediction algorithms
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
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.
Built With
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
Contact
Giovanni Semioli - g.semioli1@studenti.unisa.it
Project Link: https://github.com/hypernetwork-research-group/hypernegative
Acknowledgments
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8852219e6ba0a974d3b17b2cc76fc7992f3afa9f5f06203cbc4dfea214abea05
|
|
| MD5 |
60bbb1d90dd278f080cb7f2424ed8eb6
|
|
| BLAKE2b-256 |
8be87a22e751e86b2ef70a10bd7fb04d165cfe856c8693200f8c1fdf75c0b6c7
|
File details
Details for the file hypernegative-0.1.2.6-py3-none-any.whl.
File metadata
- Download URL: hypernegative-0.1.2.6-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc50011335d1857dce135afdfd72609c7773cfc8e4a345aa0cfd95b3212a96f4
|
|
| MD5 |
b75d179c93712102dc1548166f6152b5
|
|
| BLAKE2b-256 |
75cf5c2bf617837dbadb43a92f5bd9f4e5067e9462d499d704ad675d4969f38f
|