Elo7 Interview Project 🤞¶

Identification 🖖¶

Hello, this is just an identification to link you with my curriculum 😃. My name is Marcelo Mendes Lafetá Lima. If there are any doubts considering what was done, please contact me at marcelolafeta.nsee@gmail.com. Thank very much for the oportunity!! Without further delongs lets start…

Summary¶

The main goal of this documentation is to provide you with the information necessary to at least understand the code developed and to use the API to predict the categorie of a particular product, based open some pre defined information of this product. First of all I will introduce how to access the API wich should be online in my Google Cloud App Engine. And finally I will breaf you to the main topics of the project with an overview of all steps taken, and how to access those informations.

Interacting with API¶

The developed API is actually on high now at my particular App Engine on Google Cloud, therefore this API was developed as a microservice to attend the design of App Engine. After developing and training the model to predict product categories, this model was uploaded with the API source code to App Engine as a joblib dump. This particular model, is one with such confidence:

_images/confidence.png

To access the API, you can use the following end-point:

https://classify-data-dot-elo7interview.rj.r.appspot.com/v1/categorize

Note

If the provided URL does not work, please contact me to start again the service.

The API expects an POST request with a body such as in the following example:

{
 "products": [
     {
         "product_id": 11394449,
         "seller_id": 8324141,
         "query": "espirito santo",
         "search_page": 2,
         "position": 6,
         "title": "Mandala Esp\u00edrito Santo",
         "concatenated_tags": "mandala mdf",
         "creation_date": "14/11/2015",
         "price": 171.89,
         "weight": 1200.0,
         "express_delivery": 1,
         "minimum_quantity": 4,
         "view_counts": 244,
         "order_counts": 0.0
     },
     {
         "product_id": 15534262,
         "seller_id": 6939286,
         "query": "cartao de visita",
         "search_page": 2,
         "position": 0,
         "title": "Cart\u00e3o de Visita",
         "concatenated_tags": "cartao visita panfletos tag adesivos copos long drink canecas",
         "creation_date": "4/4/2018",
         "price": 77.67,
         "weight": 8.0,
         "express_delivery": 1,
         "minimum_quantity": 5,
         "view_counts": 124,
         "order_counts": 0.0
     }
   ]
}

And you should expected an output like:

{
 "categories": [
     "Decoração",
     "Papel e Cia"
   ]
}

Indices and tables¶