amazon machine learning im einsatz: smartes marketing - aws machine learning web day

54
Targeted Marketing with Amazon Machine Learning Barbara Pogorzelska, Technical Program Manager

Upload: aws-germany

Post on 15-Apr-2017

483 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Targeted Marketing with Amazon Machine Learning

Barbara Pogorzelska,

Technical Program Manager

Page 2: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Agenda

• Problem description

• Downloading, editing and uploading the data

• Datasource creation

• ML model creation

• Model evaluation

• Batch prediction

• Clean up

Page 3: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Problem Description

Page 4: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Machine learning & the use case

Machine learning is the technology that automatically finds

patterns in your data and uses them to make predictions for

new data points as they become available

Problem

How to identify potential customers for targeted marketing

campaigns?

Data available

Publicly available banking and marketing dataset from the

University of California at Irvine (UCI) repository

Page 5: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Amazon Machine Learning tutorial

Page 6: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Amazon Machine Learning tutorial

Page 7: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data (see http://archive.ics.uci.edu/ml/datasets/Bank+Marketing)

Training data

41188 data points

20 attributes

binary output

Batch predictions

4119 data points

Bank client data

1 - age 2 - job (admin., blue-collar, entrepreneur, …)3 - marital (single, divorces, married, …) 4 - education (basic.4y, basic.6y, university.degree, …)5 - default: has credit in default? 6 - housing: has housing loan?

7 - loan: has personal loan?

Related with the last contact of the current campaign

8 - contact: communication type: (cellular, telephone) 9 - month: last contact month of year10 - day_of_week: last contact day of the week 11 - duration: last contact duration, in seconds

Other attributes

12 - campaign: number of contacts performed during this

campaign and for this client

13 - pdays: number of days that passed by after the client

was last contacted from a previous campaign

14 - previous: number of contacts performed before this

campaign and for this client

15 - poutcome: outcome of the previous marketing

campaign

Social and economic context attributes

16 - emp.var.rate: employment variation rate

17 - cons.price.idx: consumer price index

18 - cons.conf.idx: consumer confidence index

19 - euribor3m: euribor 3 month rate - daily indicator

20 - nr.employed: number of employees

Output variable (desired target)

21 - y - has the client subscribed a term deposit?

Page 8: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Three steps to create a prediction

Page 9: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Downloading, editing and uploading the data

Page 10: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Storing the data on S3

• Download from https://s3.amazonaws.com/aml-sample-data/banking.csv and

https://s3.amazonaws.com/aml-sample-data/banking-batch.csv

– Replaced yes/no with 1/0

• Store data on S3

Page 11: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 12: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 13: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 14: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 15: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 16: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Datasource creation

Page 17: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Three steps to create a prediction

Page 18: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

ML model creation

Page 19: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – default model

Page 20: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – default model

Page 21: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – default model

Page 22: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – default model

Page 23: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model evaluation

Page 24: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model evaluation – default model

Page 25: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model evaluation – default model

Page 26: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model evaluation – default model

Page 27: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 28: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 29: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 30: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 31: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 32: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Data Insights

Page 33: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – custom model

Page 34: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – custom model

Page 35: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – custom model

Page 36: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Model creation – custom model

Page 37: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Three steps to create a prediction

Page 38: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions

Page 39: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 40: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 41: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 42: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 43: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 44: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 45: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 46: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - default model

Page 47: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - custom model

Page 48: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - custom model

Page 49: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - custom model

Page 50: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Batch predictions - custom model

Page 51: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Clean up

Page 52: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Clean up your account

To delete the input data used for training, evaluation, and batch prediction steps

1. Open the Amazon S3 console.

2. Navigate to the S3 bucket where you stored the banking.csv and banking-batch.csv.

3. Select the two files and the .writePermissionCheck.tmp file.

4. Choose Actions, Delete.

5. When prompted for confirmation, choose OK.

To delete the predictions generated from the batch prediction step

1. Open the Amazon S3 console.

2. Navigate to the bucket where you stored the output of the batch predictions.

3. Select the batch-prediction folder.

4. Choose Actions, Delete.

5. When prompted for confirmation, click OK.

Page 53: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

Try out machine-learning-samples from github

Page 54: Amazon Machine Learning im Einsatz: smartes Marketing  - AWS Machine Learning Web Day

https://aws.amazon.com/de/machine-learning/

Get Started on AWS with

Amazon Machine Learning