GithubHelp home page GithubHelp logo

antonioliu97 / shadowcones Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ydtydr/shadowcones

3.0 0.0 2.0 19.7 MB

This is the official repository for the paper: Shadow Cones: Unveiling Partial Orders in Hyperbolic Space

Shell 0.10% Python 4.27% HTML 66.79% Jupyter Notebook 28.85%

shadowcones's Introduction

Shadow Cones

Mammal 2D Visualization

This repository contains official implementation of the paper Shadow Cones: Unveiling Partial Orders in Hyperbolic Space. Some of our code in data loading part is adopted from hyperbolic_cones.

Dependencies

Our implementation works with Python>=3.9 and PyTorch>=1.12.1. We use HTorch for optimization within hyperbolic space of different models. Please refer to HTorch repo for installation. To install other dependencies, use: $ pip install -r requirement.txt

Data

We provide the WordNet datasets (mammal and noun) under data_utils/data/maxn/, which are the same as those used in entailment cone. Due to space limit, ConceptNet and hearst datasets are stored on Google Drive. Please download with gdown and move them to data_utils/data/MCG and data_utils/data/hearst:

pip install gdown
gdown --no-check-certificate --folder https://drive.google.com/drive/folders/1WH2LIk2EsTe_lQ03AjCaxZ3o8fSkNt1f?usp=sharing

Usage

We use train.py to train on small datasets (e.g., mammal.) with single process, and train_hogwild_lazy.py to train on large datasets (e.g., noun, MCG and hearst) with multi-processing. We provide commands and hyper-parameter guideline in run.sh, for training different shadow cones on specified datasets.

bash run.sh

Authors

Cite us

If you find our works helpful in your research, please consider citing us:

@article{yu2023shadow,
  title={Shadow Cones: Unveiling Partial Orders in Hyperbolic Space},
  author={Yu, Tao and Liu, Toni JB and Tseng, Albert and De Sa, Christopher},
  journal={arXiv preprint arXiv:2305.15215},
  year={2023}
}

shadowcones's People

Contributors

ydtydr avatar antonioliu97 avatar

Stargazers

Steven Booth avatar  avatar Daniel  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.