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
- Install the requirements
pip install -U autocode-py
- Prepare software to be processed as in the
./example/clientfolder. - Prepare deployment as in the
./example/client/docker-compose.ymlfile. - Prepare controller as in the
./example/controller.ipynbfile. - Instantiate
optimizationthen executeoptimization.deploy()in controller. - Open dashboard in
http://localhost:{dashboard_port}/to see the process in real-time. - Wait until all client are ready (need to wait for long time because the libraries need to be re-downloaded for each client).
- Execute
optimization.run()in controller. - Wait until the run is finished.
- Analyze and decide the best values.
- Execute
optimization.reset(keys=["clients"])thenoptimization.deploy()to apply different client states. - Try to execute
optimization.reset()to totally reset the tool if needed (i.e. data inconsistency).
Demo
- Controller
- Client
- Dashboard
Compatibility
- Python 3.10, 3.11
- Linux
- Docker
- autocode-go
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)
| File | Size | Uploaded | |
|---|---|---|---|
| autocode_py-0.0.1.post9.tar.gz | 15.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|