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(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.4.2.tar.gz (51.1 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.4.2-py3-none-any.whl (59.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interlatent-0.4.2.tar.gz
Algorithm Hash digest
SHA256 4ff468bc422e23cc7a64d38be640b67210cad07d8ab7a3fe2c22d4e5f937898c
MD5 57aa331c84a7690c336e1f86fe16fc52
BLAKE2b-256 ab8bd5dfbf93f34c5fb8120fafa1ad4f10ec0ea7e852fff506991b8c1c1f7305

See more details on using hashes here.

File details

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

File metadata

  • Download URL: interlatent-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 59.6 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ed9a2f28d3a44dc1c1f5ae0f09c68eff1d38603bc19255ea1301b3edd482174
MD5 a0a6c4f0a4e2d9a277daa598f1a40a18
BLAKE2b-256 7ae97a38830f16147563017b4151f746e6934fed370cb09bb64f95a9134e9daf

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