Skip to main content

dpct-run

Runtime-only package for running saved Deep Perceptual Control Theory (DPCT) individuals.

dpct-run is intended for external users who need to replay/evaluate trained DPCT individuals in Gymnasium environments without access to the full private DPCT evolution and optimization stack.

What is included

  • Load saved DHPCTIndividual.config() / best_individual.json files
  • Reconstruct the Keras runtime controller
  • Run/evaluate individuals in Gymnasium environments
  • Optional model summaries, network images, rollout history graphs, and videos
  • Optional Comet best_individual.json download helper
  • Optional legacy pct config loading/conversion support

What is deliberately not included

  • Evolution (DHPCTEvolver)
  • Optuna optimization (DHPCTOptimizer)
  • Genetic mutation/mating APIs
  • DEAP/Optuna dependencies
  • Comet experiment logging for evolutionary runs

Install

From PyPI:

pip install dpct-run

Optional extras:

pip install "dpct-run[plots,video,comet,legacy]"

From GitHub:

pip install git+https://github.com/perceptualrobots/dpct-run.git

CLI examples

Show a saved config summary:

dpct-run-individual best_individual.json --show-config

Run a saved individual:

dpct-run-individual best_individual.json --run --steps 500 --seed 42

Save rollout history graphs:

dpct-run-individual best_individual.json --run --history-dir ./history --history-graphs all

Use the short alias:

dpct-run best_individual.json --run --steps 500

Python example

from dpct_run import DHPCTIndividual

config = DHPCTIndividual.load_config("best_individual.json")
individual = DHPCTIndividual.from_config(config)
fitness = individual.evaluate(steps=500, early_termination=True)
print(fitness, individual.success, individual.total_reward)

Compatibility notes

dpct-run follows the saved DPCT config schema produced by the full DPCT package. Treat best_individual.json as the primary interchange artifact.

This initial extraction targets classic Gymnasium-style environments and generic built-in fitness methods (cumulative_reward, evaluation_steps, rms, mae, adjusted RMS/MAE). Environment-specific scoring from dpct-env is optional and only used if that package is separately installed.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dpct_run-0.1.0.tar.gz (73.9 kB view details)

Uploaded Source

Built Distribution

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

dpct_run-0.1.0-py3-none-any.whl (77.6 kB view details)

Uploaded Python 3

File details

Details for the file dpct_run-0.1.0.tar.gz.

File metadata

  • Download URL: dpct_run-0.1.0.tar.gz
  • Upload date:
  • Size: 73.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dpct_run-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5db1fbd1b1f020df2e559daba42c0ba2624a1a36c8d5c891c406d565ebdb6e74
MD5 487e4a41e317327e0744ff967dd0e1c4
BLAKE2b-256 3be47fe39d86719db6511084b45c5b890acd9508d10076834aa78441d7b059f5

See more details on using hashes here.

File details

Details for the file dpct_run-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dpct_run-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for dpct_run-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f566888c133757e2664dd1e51bcf97300487b835f583ce01bd38cf4fb2e18c7a
MD5 d0501f08fb327a9a91007fddc7060f50
BLAKE2b-256 f22e52cda53839faf822ea6952e322e4a2eff3e2b96e712474a2773629abb83e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page