Microsoft Cognitive Services - Recommendations API: Your first recommendations model

16
Microsoft Cognitive Services – Recommendations API: Your First Recommendations Model XXIV EVENTO PORTO.DATA – OUTUBRO 2016 Bruno Paulino Business Intelligence Consultant

Transcript of Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Page 1: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Microsoft Cognitive Services – Recommendations API:Your First Recommendations Model

XXIV EVENTO PORTO.DATA – OUTUBRO 2016

Bruno PaulinoBusiness Intelligence Consultant

Page 2: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Bruno PaulinoBusiness Intelligence ConsultantIBM | Microsoft Certified Professional3+ years’ experience in BI

Brazilian | Italian | Almost Portuguese

Email: [email protected]: http://pt.linkedin.com/in/brunopaulino

Academic ExperienceBusiness Intelligence Short MasterPortucalense Universtity, Portugal, 2011

Master’s degree in Information ManagementFaculty of Engineering - University of Porto (FEUP), Portugal, 2008

Bachelor’s degree in Information ScienceLondrina State University (UEL), Brazil, 2003

Relevant ExperienceBI4ALL Consultores de Gestão | 2013 – To date

Past Projects:

Metlife IberiaJohnson & JohnsonECS CapitalSalvador Caetano

Current Project:

MapfreSapecServierMCoutinho

OCP Portugal

Page 3: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Getting Started

What’s Cognitive Services API

How to enable Cognitive Services on Azure account

Discovering the Recommendations API

Using Recommendations API with SSIS

Showing recommendations results in PowerBI

Page 4: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Intelligent solutions able to see, hear, speak, understand and interpret our needs using natural methods of communication.

https://www.microsoft.com/cognitive-services

Page 5: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Vison LanguageSpeech Knowledge Search

Microsoft Cognitive Services APIs

Computer Vision

Emotion

Face

Video

Custom Recognition

Intelligent Service

Bing Speech

Speaker Recognition

Bing Spell Check

Language Understanding

Intelligent Service

Linguistic Analysis

Text Analytics

Web Language Model

Academic Knowledge

Entity Linking Intelligence

Service

Knowledge Exploration

Service

Recommendations

Bing Autosuggest

Bing Image Search

Bing News Search

Bing Video Search

Bing Web Search

Page 6: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Microsoft Cognitive Services APIs Applications

Online store boosts conversion rate with quick-deploy recommendations technology

Uber is using driver selfies to enhance security

Cognitive video indexing platform that processes videos that you upload and creates an index of the content within the video

Wearable technology helping people who are visually impaired “see” the world

Page 7: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

https://portal.azure.com

Microsoft Azure

https://azure.microsoft.com/Create a free Azure account

Sign in to your account

Page 8: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Microsoft Azure Enable Cognitive Services APIs on Azure account

New Intelligence + analytics Cognitive Services APIs (pré-visualização) API Type: Recommendations API Pricing tier: F0 Free

Note: copy and save the Key 1, it will be used in all API processes.

Page 9: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Frequently Bought Togetherrecommendations (FBT)

Item to itemrecommendations (I2I)

Personalized userrecommendations (U2I)

Introducing

Page 10: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Steps to Create a Model

Create/Trigger aRecommendations Build

Upload Usage File

Upload Catalog File

Create a Project: Define the Model Name

Page 11: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Catalog File Format

<Item Id>,<Item Name>,<Item Category>,[<Description>],<Features list>

Example without featuresAAA04294,Office Language Pack Online DwnLd,OfficeAAA04303,Minecraft Download Game,GamesC9F00168,Kiruna Flip Cover,Accessories

Example with featuresAAA04294,Office Language Pack Online DwnLd,Office,, softwaretype=productivity, compatibility=WindowsBAB04303,Minecraft DwnLd,Games,, softwaretype=gaming, compatibility=iOS, agegroup=allC9F00168,Kiruna Flip Cover,Accessories,, compatibility=lumia, hardwaretype=mobile

Page 12: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Usage File Format

<User Id>,<Item Id>,<Time>,[<Event type>]

Example

168064,6485200,2013/06/20T10:00:00, Purchase 263325,6485200,2013/06/20T10:00:00, Purchase 190485,6485200,2013/06/20T10:00:00, Click 225087,6485936,2013/06/20T10:00:00, Purchase

Event type

Click RecommendationClick AddShopCart RemoveShopCart Purchase

Page 13: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Let’s Create a Modelhttps://www.microsoft.com/cognitive-services/en-us/recommendations-api

Page 14: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

API SDK and SQL Server Integration Service (SSIS)

When using C# classes from the API SDK in a SSIS Script Component, you have to add the following references: Newtonsoft.Json System.Net.Http System.Runtime.Serialization System.Net.Http.Formating

Note: you need to install the Newtonsoft.Jason reference into the Global Assembly Cache (GAC) using gacutil.exe.

https://msdn.microsoft.com/en-us/library/dkkx7f79(v=vs.110).aspx

Page 15: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Showing Recommendations Results in PowerBI

Page 16: Microsoft Cognitive Services - Recommendations API: Your first recommendations model

Obrigado!

Bruno [email protected]