No project description provided
Project description
Relucent
Explore polyhedral complexes associated with ReLU networks
Environment Setup
- Install Python 3.13
- Install PyTorch 2.3.0
- Install the remaining dependencies with
pip install -r requirements.txt
Code Structure
- model.py: PyTorch Module that acts as an interface between the model and the rest of the code
- poly.py: Class for calculations involving individual polyhedrons (e.g. computing boundaries, neighbors, volume)
- complex.py: Class for calculations involving the polyhedral cplx (e.g. polyhedron search, connectivity graph calculation)
- convert_model.py: Utilities for converting various PyTorch.nn layers to Linear layers
- bvs.py: Data structures for storing large numbers of sign vectors
Obtaining a Gurobi License
The following steps are not necessary when replicating the experiments from the paper.
Without a license, Gurobi will only work with a limited feature set. This includes a limit on the number of decision variables in the models it can solve, which limits the size of the networks this code is able to analyze. There are multiple ways to install the software, but we recommend the following steps to those eligible for an academic license:
- Install the Gurobi Python library, for example using
pip install gurobipy - Obtain a Gurobi license (Note: a WLS license will limit the number of concurrent sessions across multiple devices, which can result in slowdowns when using this library on different machines simultaneously.)
- In your Conda environment, run
grbgetkeyfollowed by your license key
Project details
Release history Release notifications | RSS feed
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 relucent-0.1.0.tar.gz.
File metadata
- Download URL: relucent-0.1.0.tar.gz
- Upload date:
- Size: 21.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
213b460246685343e908588124d7b55d559450844f6e5ff21a15861201489250
|
|
| MD5 |
1805f5fb5c4e46e8b477d0398ac8151b
|
|
| BLAKE2b-256 |
a69bd2b8f14722961ef1589e18e88283251ab2f0ec25298dfc62bc9b208f2101
|
Provenance
The following attestation bundles were made for relucent-0.1.0.tar.gz:
Publisher:
publish.yml on bl-ake/relucent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relucent-0.1.0.tar.gz -
Subject digest:
213b460246685343e908588124d7b55d559450844f6e5ff21a15861201489250 - Sigstore transparency entry: 835616062
- Sigstore integration time:
-
Permalink:
bl-ake/relucent@0f2773c91b5ad9f92c679f22b274aea06e978081 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/bl-ake
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0f2773c91b5ad9f92c679f22b274aea06e978081 -
Trigger Event:
release
-
Statement type:
File details
Details for the file relucent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: relucent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ce418b318c182afba482e1e2e5b56f3ffff4a66b18dd1059878ce7f5aec564
|
|
| MD5 |
d1732131742847cd1e4be221dac7f696
|
|
| BLAKE2b-256 |
72f147be4a6413b179b2696fa965fb9ddd7ebd908c183cde779f712aaa0218db
|
Provenance
The following attestation bundles were made for relucent-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on bl-ake/relucent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
relucent-0.1.0-py3-none-any.whl -
Subject digest:
f0ce418b318c182afba482e1e2e5b56f3ffff4a66b18dd1059878ce7f5aec564 - Sigstore transparency entry: 835616070
- Sigstore integration time:
-
Permalink:
bl-ake/relucent@0f2773c91b5ad9f92c679f22b274aea06e978081 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/bl-ake
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0f2773c91b5ad9f92c679f22b274aea06e978081 -
Trigger Event:
release
-
Statement type: