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.3.13.tar.gz (45.5 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.3.13-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for interlatent-0.3.13.tar.gz
Algorithm Hash digest
SHA256 8b4eb6fa2c57e3c295283cc794b4f6d334ee01a91a746aca952157862a70b667
MD5 e9f4192733bf151e907e9b9e71f205fb
BLAKE2b-256 a5aa0891ccf69fa58621d2fb99314502b3effb457910aa01942ca7e8b34bc297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: interlatent-0.3.13-py3-none-any.whl
  • Upload date:
  • Size: 51.9 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.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 126f6a50ead05fda8783ebfb5d16e3fee2f3563a81892e746b41ec9381eab28c
MD5 19098ec521cda53fa302534b740ad9b1
BLAKE2b-256 5f4b5059a2c7b8847737669d80587246b89371cc5c2ca71c930e891b80df3fb0

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