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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: autocode_py-0.0.1.post7.tar.gz
  • Upload date:
  • Size: 15.4 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.post7.tar.gz
Algorithm Hash digest
SHA256 d6fba64de8b02ce029241c792c974dbcf0c3bce195d88c0854a20032ba9e9dba
MD5 8e65110ca3b2de927a58303878b04059
BLAKE2b-256 f9662eadeb0aa2140a42c3c98638df1ba63aed2045fa711517426d1c37b05ac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autocode_py-0.0.1.post7-py3-none-any.whl
Algorithm Hash digest
SHA256 65040f4e98ceb699e9e89c6ebf88e637b69edb549598d6f7244de7a351b43e9a
MD5 945c7b4fdb03d74e7d1fe7a772673b9f
BLAKE2b-256 ef43e2671994e2c8998a5bed0f87a13411da109a064cd40bde618e5e7f180cc8

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