Queries whether the application data meets the condition for model training.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

GET /v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-report HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes my_app

The name of the application.

type String Query Yes pop

The type of the algorithm. Valid values:

  • POP: popularity sorting
  • CP: category prediction
  • hot: top searches
  • hint: hints
  • suggest: drop-down suggestions

Response parameters

Parameter Type Example Description
requestId String F5099063-6B86-F398-D843-905F9EFB683A

The ID of the request.

result List {}

The verification result.

Verification result

Parameter

Type

Description

result.startTime

Integer

The start time of the verified data.

result.lastUpdateTime

Integer

The time when the data was last updated.

result.lastUpdateCount

Integer

The number of updated data entries.

result.total

Integer

The total number of data entries.

result.items[]

Object

The data that failed the verification.

If the verification is passed, this parameter is empty. Otherwise, the following parameters are returned in this parameter.

result.items[].code

String

The code of the error.

For more information, see ModelErrorCode.

result.items[].expect

String

The expected value of the model training.

result.items[].actual

String

The actual value of the model training.

result.items[].status

String

The verification result. Valid values:

  • success
  • failed

Examples

Sample requests

GET /v4/openapi/app-groups/my_app/algorithm/data/validation-report?type=pop

Sample success responses

XML format

<requestId>F5099063-6B86-F398-D843-905F9EFB683A</requestId>
<result>
    <startTime>1543233439000</startTime>
    <lastUpdateTime>1543233500000</lastUpdateTime>
    <lastUpdateCount>1000000</lastUpdateCount>
    <total>10000000</total>
    <items>
        <code>Algorithm.Data.NoData</code>
        <expect>1</expect>
        <actual>1</actual>
        <status>success</status>
    </items>
    <items>
        <code>Algorithm.Data.NotEnoughDay</code>
        <expect>2</expect>
        <actual>1</actual>
        <status>failed</status>
    </items>
    <items>
        <code>Algorithm.Data.NotEnoughDataAtLastDay</code>
        <expect>3000</expect>
        <actual>1000</actual>
        <status>failed</status>
    </items>
    <items>
        <code>Algorithm.Data.TooManyInvalidBhvType</code>
        <expect>0.3</expect>
        <actual>0.5</actual>
        <status>failed</status>
    </items>
</result>

JSON format

{
    "requestId": "F5099063-6B86-F398-D843-905F9EFB683A",
    "result": {
        "startTime": 1543233439000,
        "lastUpdateTime": 1543233500000,
        "lastUpdateCount": 1000000,
        "total": 10000000,
        "items": [
            {
                "code": "Algorithm.Data.NoData",
                "expect": 1,
                "actual": 1,
                "status": "success"
            },
            {
                "code": "Algorithm.Data.NotEnoughDay",
                "expect": 2,
                "actual": 1,
                "status": "failed"
            },
            {
                "code": "Algorithm.Data.NotEnoughDataAtLastDay",
                "expect": 3000,
                "actual": 1000,
                "status": "failed"
            },
            {
                "code": "Algorithm.Data.TooManyInvalidBhvType",
                "expect": 0.3,
                "actual": 0.5,
                "status": "failed"
            }
        ]
    }
}

Error codes

For a list of error codes, visit the API Error Center.