Skip to content

predict-idlab/graphflex

Repository files navigation

GraphFlex

Flexible Framework for Graph Feature Engineering

PyPI Python Version License: MIT GitHub Actions Workflow Status Docs Scikit-learn compatible

GraphFlex is a modular and extensible framework for graph-based feature engineering in Python. It allows seamless integration of graph datasets with traditional machine learning pipelines using familiar tools like scikit-learn.

πŸ”— Homepage & Documentation: GraphFlex on GitHub

πŸ“¦ Installation

pip install graphflex

Optional Dependencies

GraphFlex supports several optional extras. Install them with:

pip install "graphflex[dgl]"
pip install "graphflex[neo4j]"
pip install "graphflex[rdflib]"
pip install "graphflex[full]"  # all optional features

πŸ” Example Usage

# GraphFlex pipeline
from graphflex import GraphFlex
from graphflex.functions.postprocessing.filter import NonUniqueFeatureFilter
from graphflex.functions.feature import MeanStdFeature
from graphflex.functions.edgenode import NumericalEdgeNode

connect = Connector(...) #use defined connector here
gflex = GraphFlex(
    connector=connect,
    node_feature=MeanStdFeature(),
    edge_node_feature=NumericalEdgeNode(),
    post_processor=NonUniqueFeatureFilter()
)
nodes = ...
feature_matrix = gflex.fit_transform(nodes)

✨ Features

  • Plug-and-play feature extraction for graph nodes
  • Compatible with scikit-learn pipelines
  • Support for multiple graph backends (DGL, RDFLib-HDT, Neo4j, ...)
  • Built-in feature functions and postprocessing modules
  • Easily extendable with custom logic

πŸ“š Documentation

For full documentation, examples, and API reference, visit the GraphFlex repository.


βš™ Dependencies

  • Python β‰₯ 3.10
  • numpy, pandas, scikit-learn, tqdm
  • Optional: dgl, torch, torchdata, rdflib-hdt, neo4j, PyYAML, pydantic

πŸ‘€ Author

Bram Steenwinckel – bram.steenwinckel@ugent.be


πŸ“„ License

This project is licensed under the MIT License.

About

Flexible Framework for Graph Feature Engineering

Resources

License

Stars

Watchers

Forks

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of Β© 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy