Optimization custom algorithms
When the equation building option does not meet your requirements, you can bring your local code package and deploy it as a custom algorithm code.
Custom algorithms can be used for control over the entire data science pipeline. You can package and deploy your own custom algorithm code, apply a solver embedded in the optimization module, or use the custom solver option to initialize the solver directly from the custom algorithm code and run the quest to generate the optimal solution supplying the new runtime input data.
The maximum allowed size of the custom algorithm docker image is 50 MB.
You can bring in the custom algorithm code by uploading a prepared source code file. The custom algorithm source code file must contain optimizer.py script. This is the program that is invoked to execute the design quest.
The custom algorithm source code file must be compressed (zipped) and contain the optimizer.py script placed in the top-level directory. The supported programming language for the scripts is Python.
The hyperparameters are passed in a hyperparameters.json file as a JSON-formatted dictionary of hyperparameter names to values.
Other supportive routines and programs can be included and packed within the compressed source file.
There are two approaches available to create and deploy the custom algorithm:
- Fast-track CA: This option allows for rapid deployment by skipping the traditional multi-step design and production quest process. You can create a realtime production quest directly from the custom algorithm detail page and deploy it as an endpoint, without needing to run the production quest. Fast-track CA is intended exclusively for deploying real-time endpoints using fast-track compatible algorithms.
- Standard CA: This option supports the full design and production workflow. It enables you to build, run, and evaluate your model before moving it into production. Standard CA supports both real-time and batch modes, offering greater flexibility and control over model development and deployment.