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.19.tar.gz (32.8 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.19-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: interlatent-0.2.19.tar.gz
  • Upload date:
  • Size: 32.8 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.19.tar.gz
Algorithm Hash digest
SHA256 c6429dd37fd78f636f12934b39f5d53bd351959c1269db78965f0e0ab4af0265
MD5 c7bc7120e0ee46b98be095572fbb8a7c
BLAKE2b-256 2a3d6897d1fe77237432d004d014e3e24ea610855b85720d9c2db733d6c7f5cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: interlatent-0.2.19-py3-none-any.whl
  • Upload date:
  • Size: 42.5 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.19-py3-none-any.whl
Algorithm Hash digest
SHA256 1537e8b0d76694058732c8fdb3f9fd7afa5c1569526e2c037c2ae5d8e4c7f371
MD5 c03398daa6c2b9f8500fe29263e43066
BLAKE2b-256 d090696c7a449376538801fcc1f67172c1f54316206a4c18f668c6cfe697d8a1

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