Skip to content

Inconsistent type for backbonetype property on InferenceResult (landingai "core" package) #29

@kjleitz

Description

@kjleitz

In the JSON Responses for Classification Models section of the LandingLens docs, the entry for backbonetype says "For Classification, this will always be null."

The example below it agrees:

{
    "backbonetype": null,
    "backbonepredictions": null,
    "predictions": /* ... */,
    "type": "ClassificationPrediction",
    "latency": /* ... */,
    "model_id": /* ... */
}

However, the type of the backbonetype property on InferenceResult (which is resolved from getInferenceResult) does not include null, so the given example cannot be represented by that type.

Edit: The latency and model_id fields also do not appear in the InferenceResult type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions