Failure in testing prediction service due to nconsistency with schema.

Lamis Amd 0 Reputation points
2024-04-10T12:51:37.2+00:00

#Error when testing the endpoint despite the test data has the same input data schema {'error': {'code': 400, 'message': "Input Data Error. Input data are inconsistent with schema.\nSchema: {'input1': '1:Dataset'}\nData: {'WebServiceInput0': defaultdict(<class 'list'>, {'CulmenLength': [49.1], 'CulmenDepth': [4.8], 'FlipperLength': [1.2], 'BodyMass': [5.5]})}\nNoneType: None\n", 'details': ''}}

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
114 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Fedi Boussora 0 Reputation points
    2024-08-24T23:26:42.01+00:00

    Hi Lamis,
    In you python script you can replace 'WebServiceInput0' with 'input1'.
    It should look like this :

    data = {
        "Inputs": {
            "input1":
            [
                {
                        'CulmenLength': 49.1,
                        'CulmenDepth': 4.8,
                        'FlipperLength': 1220,
                        'BodyMass': 5150,
                },
            ],
        },
        "GlobalParameters":  {
        }
    }
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.