landscapy-ml
landscapy-ml is the small bridge between
landscapy FitnessLandscape
objects and PyTorch models.
More information, documentation and usage instructions can be found on
landscapy.
Installation
landscapy-ml is installed by default with pip install landscapy or
pip install landscapy-ml. This remains the recommended installation path.
To install directly from a checkout:
python -m pip install .
Python
Use the Python interface to convert a FitnessLandscape into PyTorch-ready
records and datasets, then adapt model outputs back into landscape layers as
described in the Python usage guide.
from importlib.resources import files
from fitness_landscape.core.landscape import read_csv_landscape
from landscapyml import (
LandscapeDataset,
export_landscape_records,
make_fitness_target_getter,
)
data_path = files("landscapyml").joinpath("data/minimal_landscape.csv")
landscape = read_csv_landscape(
data_path,
sequence_col="sequence",
alphabet=list("AC"),
graph="hamming",
numeric_layers=["target"],
attach_embeddings=False,
)
exported = export_landscape_records(
landscape,
fitness_layers=["target"],
include_embeddings=False,
)
dataset = LandscapeDataset(
exported.records,
target_getter=make_fitness_target_getter("target"),
)
features, target = dataset[0]
print(len(dataset), features.shape, target.shape)
CLI
Use the command-line interface to inspect registered models and data builders and run the maintained CSV workflows described in the CLI guide.
Metadata
Release files for landscapy-ml 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| landscapy_ml-1.0.0.tar.gz | 77.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| landscapy_ml-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 141.2 kB
Release files / landscapy_ml-1.0.0.tar.gz
| Download URL | landscapy_ml-1.0.0.tar.gz |
|---|---|
| Size | 77.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2703f2b5827f49010f3d77ba7d0bbd0489d1c7ac5bd4f49d706a2cb952d6a2e
|
|
BLAKE2b-256 checksum How to use checksums |
6baac108ee422d067543b25b854ab9bbea3b2386555d47f2b9fb33d501285610
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency logRelease files / landscapy_ml-1.0.0-py3-none-any.whl
| Download URL | landscapy_ml-1.0.0-py3-none-any.whl |
|---|---|
| Size | 64.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccffd543113c74c7d1e6d4c293a10954d6c8506471e9b7fe39782715642944ad
|
|
BLAKE2b-256 checksum How to use checksums |
84a8d7ce1d6eea6ba3bdea1a6972e462655ac56686bd9dd1e5a49a823bab7d0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.
Transparency log