Skip to main content

autocode: Auto Code Improvement by Metrics Optimization.

Project description

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

Project details


Download files

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

Source Distribution

autocode_py-0.0.1.post9.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

autocode_py-0.0.1.post9-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file autocode_py-0.0.1.post9.tar.gz.

File metadata

  • Download URL: autocode_py-0.0.1.post9.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for autocode_py-0.0.1.post9.tar.gz
Algorithm Hash digest
SHA256 e583688ce30da5182080b79a1ba018d9608d037e5470bde67b9d02f1cb2b811a
MD5 d2f077bd887b97922d3bcddbd0e29010
BLAKE2b-256 e2dcd43a169f32294e589884ede73c94822ba7c67bf426509d18c5ee603e9e98

See more details on using hashes here.

File details

Details for the file autocode_py-0.0.1.post9-py3-none-any.whl.

File metadata

File hashes

Hashes for autocode_py-0.0.1.post9-py3-none-any.whl
Algorithm Hash digest
SHA256 7b3e46644f62643dd1f3a2d6ea5d56fbbbe2db6e53ec590d2716ddeea12633ba
MD5 127c063b39facddb71a169db647de446
BLAKE2b-256 47f4414dddc00de67d688e42b16e995e7ba21c4dd303af3b87927a6c0d819c35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page