Skip to Content

Use Data Attribute Recommendation to Classify Records, Delete Model and Dataset

Classify data records you uploaded to Data Attribute Recommendation using your machine learning model.
You will learn
  • How to classify records using your Data Attribute Recommendation machine learning model
  • How to undeploy and delete your model
  • How to delete datasets and dataset schemas
Juliana-MoraisJuliana MoraisMay 16, 2022
Created by
Juliana-Morais
April 5, 2020
Contributors
Juliana-Morais
tobias61

Based on your deployed machine learning model you can now classify records. For more information, see Data Attribute Recommendation help portal documentation. For further definition of specific terms, see Concepts.

Business Use Case: After you upload data and train a machine learning model using Data Attribute Recommendation, you will be able to classify the product data. In this tutorial, you will focus on product data classification, including options to undeploy the model, delete dataset and dataset schemas.

  • Step 1

    To classify records, you need to send an inference request to your model.

    Open Postman and make sure that your Data Attribute Recommendation environment is selected.

    Expand the subfolder Classify Records and select the request Send inference request. Click on the Body tab to see the sample data that you will send to the service.

    The sample data is a list of products and their product information, including description, manufacturer and price. Based on these information three levels of product categories shall be predicted by the service.

    Click Send to send an inference request to your model.

    Inference Request

    In the response, you find the predictions of the model. This includes the values that are predicted for each level of product category for each product that was sent to the service along with their probabilities. The probability describes how certain the model is about its prediction. If the probability is close to 1, the model is very certain.

    Inference Request Response

    You have successfully classified records using your machine learning model.

  • Step 2

    Now that you have learned the whole process about how to use Data Attribute Recommendation, it’s time to clean up.

    First, undeploy your model. For that, expand the subfolder Undeploy Model and select the request Undeploy Model by id. Click Send to undeploy the model.

    Undeploy Model

    There is no actual content in the response. Instead you can tell by the http-status whether the operation was successful. If the status says 204 No Content, the model is successfully undeployed.

    Undeploy Model Status

    You have successfully undeployed your model, but the model is not yet deleted. Instead it is not in production which means that you cannot make inference requests. You can deploy it again at any time.

  • Step 3

    Once undeployed, you can delete the model.

    For that, expand the subfolder Delete Trained Model and select the request Delete previously trained Model. Click Send to send a deletion request for your model.

    Delete Model

    As explained in the previous step, you can tell by the http-status whether the operation was successful. If the status is 204 No Content, the model is successfully deleted.

  • Step 4

    Now that the model is deleted, you can delete the training job that created the model.

    Select the request Delete previously trained Job and click Send to delete the job.

    Delete Training Job

    Again, the operation was successful if you receive the status 204 No Content.

  • Step 5

    To clear the uploaded data, you can now delete the dataset as the associated training job is already deleted.

    Expand the subfolder Delete Data and select the request Delete previously created Dataset. Click Send to delete it.

    Delete Dataset

    If you receive the status 204 No Content, you have successfully deleted the dataset.

  • Step 6

    If you do not need your dataset schema anymore, you can delete it as well.

    Select the request Delete previously created Dataset Schema and click Send to delete the schema.

    Delete Dataset Schema

    If you receive the status 204 No Content, you have successfully deleted the dataset schema.

  • Step 7

    By which http-status can you tell that the deletion operation was successful?

Back to top