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 and 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-download for each client).
  7. Execute optimization.run() in controller.
  8. Wait until the run is finished.
  9. Analyze and decide the best values.

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.post8.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

autocode_py-0.0.1.post8-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autocode_py-0.0.1.post8.tar.gz
  • Upload date:
  • Size: 15.5 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.post8.tar.gz
Algorithm Hash digest
SHA256 026077a2f0cc17ad0ed32e0ef47ca003d1a648d662799ffc47a2f9d2fe3e5336
MD5 47473d838fbb0433a8f8861f60b39d46
BLAKE2b-256 ff7d5c11c5bce6ee53abf4ec11d4f2b3c9af3233369b33f6be9073efb1ea7841

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autocode_py-0.0.1.post8-py3-none-any.whl
Algorithm Hash digest
SHA256 c525bad500fd6dc3c7ee456c92450b7f3d5932998d2bb8d3417006875c0ac81b
MD5 dac6cf935777c3d9af73c2b2a54c5d78
BLAKE2b-256 46dade75f461e7b0d030a8a9b596ab94dc007d6689b31ee79e63fa9166de1401

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