Skip to main content

Python library for RAD Embeddings, provably correct latent DFA representations.

Project description

Rad Embeddings Logo

This repo contains a JAX implementation of RAD embeddings, see project webpage for more information.

Installation

This package will soon be made pip-installable and replace this version. In the meantime, pull the repo and and install locally.

git clone https://github.com/rad-dfa/rad-embeddings.git
pip install -e rad-embeddings

Usage

Instantiate pretrained encoder.

encoder = Encoder() # Creates a DFA encoder with default parameters: handles at most 10-state DFAs with 10-token alphabets

See train and test scripts for more.

Citation

Please cite the following papers if you use RAD Embeddings in your work.

@inproceedings{DBLP:conf/nips/YalcinkayaLVS24,
  author       = {Beyazit Yalcinkaya and
                  Niklas Lauffer and
                  Marcell Vazquez{-}Chanlatte and
                  Sanjit A. Seshia},
  title        = {Compositional Automata Embeddings for Goal-Conditioned Reinforcement
                  Learning},
  booktitle    = {NeurIPS},
  year         = {2024}
}
@inproceedings{DBLP:conf/neus/YalcinkayaLVS25,
  author       = {Beyazit Yalcinkaya and
                  Niklas Lauffer and
                  Marcell Vazquez{-}Chanlatte and
                  Sanjit A. Seshia},
  title        = {Provably Correct Automata Embeddings for Optimal Automata-Conditioned
                  Reinforcement Learning},
  booktitle    = {NeuS},
  series       = {Proceedings of Machine Learning Research},
  volume       = {288},
  pages        = {661--675},
  publisher    = {{PMLR}},
  year         = {2025}
}

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

rad_embeddings-0.2.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

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

rad_embeddings-0.2.0-py3-none-any.whl (3.1 MB view details)

Uploaded Python 3

File details

Details for the file rad_embeddings-0.2.0.tar.gz.

File metadata

  • Download URL: rad_embeddings-0.2.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for rad_embeddings-0.2.0.tar.gz
Algorithm Hash digest
SHA256 52478667f65dc27571c4ef1ecac8e6c329794fea0c5aad34a2273f41b63d67ae
MD5 743eecd9f42837199f04d0ef6f940638
BLAKE2b-256 589bd60b0d19fe9f6de5141053d5f0a920abc3735cf7678580abb59e29ebb33a

See more details on using hashes here.

File details

Details for the file rad_embeddings-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for rad_embeddings-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 396c46ce77f4e02220ecabe24a4144c112310b98a43539722cc2c734a18cef17
MD5 c514780d43a0c747d5f8cc8583f19079
BLAKE2b-256 46dccee3452c2cd30223cb03f4d57fd69f5f4867b9b3a128a9927689e1242d8d

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