Method
createPredictionOperatorVersion POST
Copy POST

Create a new version of the prediction operator.

Arguments:

REQUIRED KEY TYPE DESCRIPTION
Yes predictionOperatorId str The unique ID of the prediction operator.
Note: The arguments for the API methods follow camelCase but for Python SDK underscore_case is followed.

Response:

KEY TYPE DESCRIPTION
success Boolean true if the call succeeded, false if there was an error
result PredictionOperatorVersion
KEY TYPE Description
predictionOperatorId str The unique identifier of the prediction operator.
predictionOperatorVersion str The unique identifier of the prediction operator version.
createdAt str Date and time at which the prediction operator was created.
updatedAt str Date and time at which the prediction operator was updated.
sourceCode str Python code used to make the prediction operator.
memory int Memory in GB specified for the prediction operator version.
useGpu bool Whether this prediction operator version is using gpu.
featureGroupIds list A list of Feature Group IDs used for initializing.
featureGroupVersions list A list of Feature Group version IDs used for initializing.
status str The current status of the prediction operator version.
error str The error message if the status failed.
codeSource CodeSource If a python model, information on the source code.
KEY TYPE Description
sourceType str The type of the source, one of TEXT, PYTHON, FILE_UPLOAD, or APPLICATION_CONNECTOR
sourceCode str If the type of the source is TEXT, the raw text of the function
applicationConnectorId str The Application Connector to fetch the code from
applicationConnectorInfo str Args passed to the application connector to fetch the code
packageRequirements list The pip package dependencies required to run the code
status str The status of the code and validations
error str If the status is failed, an error message describing what went wrong
publishingMsg dict Warnings in the source code
moduleDependencies list The list of internal modules dependencies required to run the code

Exceptions:

TYPE WHEN
DataNotFoundError

predictionOperatorId is not found.

Language: