Giter Club home page Giter Club logo

llecupy's Introduction

LLE_Cupy

Implementation of Graph Locally Linear Embedding (LLE) using Cupy

This repository contains an accurate implementation of "Graph Locally Linear Embedding." The algorithm's details can be found in the paper "Graph Embedding Techniques, Applications, and Performance: A Survey" by Palash Goyal and Emilio Ferrara (2018).

Files

  • LLE_Cupy.py: Contains the provided implementation of LLE.

  • Demonstration.ipynb: A Jupyter notebook demonstrating our LLE implementation and highlighting the differences from the LLE implementation in the Python package nxt-gem. Ensure the following Python packages are also installed to run this notebook: matplotlib, sklearn, pyspark, networkx, nxt-gem.

  • evaluate_embedding.py: Provides code for evaluating graph embeddings. This is also required to run Demonstration.ipynb.

Requirements

Our implementation of "Locally Linear Embedding" relies on the networkx package. Additionally, the cupy package is required, and a compatible GPU must be available on the machine to run Cupy efficiently. Make sure to check your GPU compatibility with Cupy and install the necessary GPU drivers if needed.

pip install networkx cupy

Parameters

The lle_cupy(graph, dim) function takes two parameters. The first parameter is a NetworkX graph, and the second parameter is the user-defined embedding dimension. It is important to note that the graph must be connected for the LLE algorithm to be applied successfully.

Usage

To utilize the LLE implementation, call the lle_cupy function with a connected NetworkX graph and the desired embedding dimension.

from LLE_Cupy import lle_cupy

# Example usage
graph = ...  # Your connected NetworkX graph
embedding_dimension = ...  # Your desired embedding dimension
embedding_result = lle_cupy(graph, embedding_dimension)

llecupy's People

Contributors

zf-wei avatar

Watchers

 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.