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.12.tar.gz (30.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.12-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interlatent-0.2.12.tar.gz
Algorithm Hash digest
SHA256 d1950a918d6e8bee12642719e0e4ab864aab322050dccb113bc03d59902c0819
MD5 a0f2f548317caf927502b6ca0c741f38
BLAKE2b-256 8b797ba08615f780ea4067189787f62656ed05c87e3fe1bf2e3a1e815b63dfb9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for interlatent-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 b00913921d849ea716ba16e11032ab0291d153b73f1d8d8cb47c3e94f2e06fc5
MD5 b5f9d695f503e2831cbf21888a9fbf6f
BLAKE2b-256 98bbc124028d9d0db6f582ac674d138ca6f54507d1add3273fd134660f9f5230

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