dpct-env
Environment-specific plugins for the DPCT framework.
This package provides:
- Fitness functions — class-based fitness computation for specific environments
- Results processors — Comet ML logging for environment-specific metrics
- Environment evaluations — documentation on environment suitability for DPCT
Installation
pip install dpct-env
Usage
Fitness Functions
from dpct_env.fitness import get_fitness_functions, ControlEffortFitness
# Get all fitness functions registered for CartPole-v1
fns = get_fitness_functions("CartPole-v1")
# Compute a fitness value
fitness = fns["stability_ratio"](observation_history=obs, action_history=acts)
# Use a fitness function directly
effort_fn = ControlEffortFitness(mode="changes")
fitness = effort_fn(observation_history=obs, action_history=acts)
Results Processors
from dpct_env.processors import create_environment_results_processor
processor = create_environment_results_processor("CartPole-v1")
processor.log_results(experiment=exp, individual=ind, history=history)
Registered Environments
| Environment | Fitness Functions |
|---|---|
| CartPole-v1 | control_effort, observation_variance, stability_ratio |
| MountainCar-v0 | control_effort, height_achieved |
| Acrobot-v1 | control_effort, height_achieved |
| Pendulum-v1 | control_effort, observation_variance |
Architecture
dpct-env ──depends on──▶ dpct
│ │
└── provides plugins ───┘
dpct-env is a pure plugin package — it imports from dpct but dpct never
imports from dpct-env. This keeps the core framework clean while allowing
environment-specific functionality to evolve independently.
Metadata
Release files for dpct-env 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dpct_env-0.0.3.tar.gz | 18.0 kB | Without provenance | Details for dpct_env-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dpct_env-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for dpct_env-0.0.3-py3-none-any.whl |
Total release size: 37.4 kB
Release files / dpct_env-0.0.3.tar.gz
| Download URL | dpct_env-0.0.3.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
101ddf8f99bb93ee3b83157a957fd982ebe1710bdad2cc8519a4722c37d432f8
|
|
BLAKE2b-256 checksum How to use checksums |
a086aa78688dd26dde12dba4a5c35afc2b5d1b3aaa899ebfb867bf0cd9cab04e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / dpct_env-0.0.3-py3-none-any.whl
| Download URL | dpct_env-0.0.3-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53600ee0b2d78c3e22012b30128a520a0738eec8b24a355ad75be9b791b32687
|
|
BLAKE2b-256 checksum How to use checksums |
9c1c154f058be5d0318bd786beee341e20778b0a5383666c635e566cc64ff95f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for dpct-env 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.