Third Party Model Rest API
SymetryML allows you to build third party models. Currently only XGBoost models can be built. These models are different than SymetryML models in the following:
Third party models do not belong to a particular project. They belong to the user who creates them.
They are built using 2 data sources:
In Sample data source
Out of sample data source
Third Party Model Build
Build a new third party model for a given user.
URL
Query Parameters
Parameter
Required / Optional
Description
modelid
Required
ID to assign to the new model.
algo
Required
Algorithm to use to build the model. Only xgb_model
is supported for now.
isdf
Required
In sample data source to be used to build the model.
oosdf
Required
Out of sample data source to be used to build the model.
MLContext Build Parameters
Parameter
Required/Optional?
Type
Description
missing_val
Optional
Float
XGBoost missing value parameter.
HTTP Responses
HTTP Status Code
HTTP Status Message
Description
200
OK
Success.
Sample Request Response
Third Party Model Prediction
URL
HTTP Responses
HTTP Status Code
HTTP Status Message
Description
200
OK
Success.
500
INTERNAL SERVER ERROR
Invalid model ID. {"statusCode":"INTERNAL_SERVER_ERROR","statusString":"Generic Exception \u003cError no such model \u003cm3\u003e\u003e","values":{}}
HTTP Response Entity
HTTP Response Entity
Example
Contain information about the prediction.
Sample Request Response
Third Party Model Information
URL
HTTP Responses
HTTP Status Code
HTTP Status Message
Description
200
OK
Success.
HTTP Response Entity
HTTP Response Entity
Description
Contains information about model.
Sample Request/Response
Delete a Third Party Model
Delete a particular model
URL
HTTP Responses
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
List Third Party Model
List all third party models that belong to a user.
URL
HTTP Responses
HTTP Status Code
HTTP Status Message
Description
200
OK
Success.
HTTP Response Entity
HTTP Response Entity
Example
Sample Request/Response TModel Create
Last updated