Skip to main content

Interlatent SDK — hosted API client for RL interpretability dashboards.

Project description

Interlatent Python SDK

Official Python client for the Interlatent hosted API.

Browse environments, inspect runs, read latent activations, and view episode data from your RL interpretability dashboards.

Install

pip install interlatent

Quickstart

from interlatent import Interlatent

client = Interlatent(
    base_url="https://interlatent.dev",
    api_key="sk-...",
)

# Browse
envs = client.environments.list()
runs = client.environments.runs("Ant-v5")

# Inspect
run = client.runs.retrieve("run_abc123")
latents = client.latents.list("run_abc123")
meta = client.episodes.meta("episode_id")
chunk = client.episodes.chunk("episode_id", 0)

# Upload
client.runs.create(run_id="new_run", environment="Ant-v5", layer="policy_net.2")
client.latents.create("new_run", latents=[{"latent_id": 0, "name": "hip torque"}])
client.checkpoints.create("new_run", report={"failure_summary": {}})

Resources

Resource Methods
client.index retrieve()
client.environments list(), runs(env_id)
client.runs retrieve(), create(), update(), upload_urls(), upload_complete()
client.episodes meta(), chunk(), frame()
client.latents list(), retrieve(), create()
client.checkpoints list(), retrieve(), create()
client.auth login()

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

interlatent-0.2.24.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

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

interlatent-0.2.24-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file interlatent-0.2.24.tar.gz.

File metadata

  • Download URL: interlatent-0.2.24.tar.gz
  • Upload date:
  • Size: 36.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for interlatent-0.2.24.tar.gz
Algorithm Hash digest
SHA256 a9956bbde3fe563dad7244f3e13b88f06dab92710b35834f41481011fd5c77df
MD5 9f279fa1118b0d8c8d30a51a0eb8f2b7
BLAKE2b-256 3d0d5f2f7fd6dd8d8b100dc1ffb1dd2e7d3da4c587e936a948329fe44d73b329

See more details on using hashes here.

File details

Details for the file interlatent-0.2.24-py3-none-any.whl.

File metadata

  • Download URL: interlatent-0.2.24-py3-none-any.whl
  • Upload date:
  • Size: 46.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for interlatent-0.2.24-py3-none-any.whl
Algorithm Hash digest
SHA256 eb4d5b04bd13f0f9865fa6f339092decbfd3b9328e0a6994f8ab2b7cd667b0a1
MD5 d3ba796c48736b650754db0247cc6ef4
BLAKE2b-256 c884db3e65c7870a8f43d7d7875fcd07748c3399e0332f315d562b0ecac6a89a

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