Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

single item inference request fails #273

@aleksandersumowski

Description

@aleksandersumowski

This project is marked as deprecated, yet still seems to be used for sklearn model hosting in Sagemaker. The default_input_fn when parsing csv input calls squeeze on the parsed result:

array = np.array([row for row in reader]).squeeze()

That causes inferences with just single item to fail as the input array becomes 1D instead of 2D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions