Skip to Content

The Data Attribute Recommendation - Inference request objects limited

Hi!

In Input limits "Inference request objects" to classify = Maximum: 50.

Tell me please, how I can classify 10 000 records with minimal labor?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 15, 2020 at 03:01 PM

    Hi Tatiana,

    At the moment there is no API functionality to classify batches of more than 50 records per one API request, so you would need to split your input records in batches of 50 and send separately.

    Good news is that we have a python SDK for DAR that can do this (split into batches and send) for you. https://github.com/SAP/data-attribute-recommendation-python-sdk

    Also please note, that trial accounts have some limitations, so you cannot classify more than 2 000 records in total (all limits)

    Hope it helps,

    Evgeny

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2020 at 03:43 PM

    Hi Tatiana,

    let me expand on Evgeny's answer:

    You can use the InferenceClient.do_bulk_inference() method to classify multiple items. To make an instance of InferenceClient, you can use the InferenceClient.construct_from_service_key method.

    A general introduction to the SDK is also available, which includes a section on Inference.

    Let me know if this works for you.

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.