Skip to main content

DOI

autocode

Auto Code Improvement by Metrics Optimization.

Description

Autocode selects the best values for optimized metrics. The value types could be bool, int, float, and choice (including but not limited to code). This project utilizes a Large Language Model and Mixed-Variable Many-Objective Optimization. Based on our research/literature review, this project hypothetically can contribute to the economic performance of companies.

Features

  • Many-software Value-level Mixed-variable Many-objective Optimization.
  • Value types include bool, int, float, and choice (code).
  • Code scoring and variation generators using LLM.
  • Software cross-language support.
  • Easy software deployment using docker-compose.
  • Scalable to infinite cores to speed up processing in parallel.

How to Use

  1. Install the requirements
pip install -U autocode-py
  1. Prepare software to be processed as in the ./example/client folder.
  2. Prepare deployment as in the ./example/client/docker-compose.yml file.
  3. Prepare controller as in the ./example/controller.ipynb file.
  4. Instantiate optimization then execute optimization.deploy() in controller.
  5. Open dashboard in http://localhost:{dashboard_port}/ to see the process in real-time.
  6. Wait until all client are ready (need to wait for long time because the libraries need to be re-downloaded for each client).
  7. Execute optimization.run() in controller.
  8. Wait until the run is finished.
  9. Analyze and decide the best values.
  10. Execute optimization.reset(keys=["clients"]) then optimization.deploy() to apply different client states.
  11. Try to execute optimization.reset() to totally reset the tool if needed (i.e. data inconsistency).

Demo

Compatibility

Release files for autocode-py 0.0.1.post9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autocode-py 0.0.1.post9
File Size Uploaded
autocode_py-0.0.1.post9.tar.gz 15.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for autocode-py 0.0.1.post9
File Interpreter ABI Platform
autocode_py-0.0.1.post9-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / autocode_py-0.0.1.post9.tar.gz

Download URL autocode_py-0.0.1.post9.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e583688ce30da5182080b79a1ba018d9608d037e5470bde67b9d02f1cb2b811a
BLAKE2b-256 checksum
How to use checksums
e2dcd43a169f32294e589884ede73c94822ba7c67bf426509d18c5ee603e9e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / autocode_py-0.0.1.post9-py3-none-any.whl

Download URL autocode_py-0.0.1.post9-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b3e46644f62643dd1f3a2d6ea5d56fbbbe2db6e53ec590d2716ddeea12633ba
BLAKE2b-256 checksum
How to use checksums
47f4414dddc00de67d688e42b16e995e7ba21c4dd303af3b87927a6c0d819c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19
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