Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
SQL Server 2012 Tutorials - Analysis Services Data Mining.pdf
Скачиваний:
38
Добавлен:
26.03.2016
Размер:
1.41 Mб
Скачать

1.In Solution Explorer, right-click Data Source Views, and select New Data Source View.

2.On the Welcome to the Data Source View Wizard page, click Next.

3.On the Select a Data Source page, under Relational data sources, select the Adventure Works DW 2012 data source that you created in the last task. Click

Next.

Note

If you want to create a data source, right-click Data Sources and then click New Data Source to start the Data Source Wizard.

4.On the Select Tables and Views page, select the following objects, and then click the right arrow to include them in the new data source view:

ProspectiveBuyer (dbo) - table of prospective bike buyers

vTargetMail (dbo) - view of historical data about past bike buyers

5.Click Next.

6.On the Completing the Wizard page, by default the data source view is named Adventure Works DW 2012. Change the name to Targeted Mailing, and then click Finish.

The new data source view opens in the Targeted Mailing.dsv [Design] tab.

Previous Task in Lesson

Creating a Data Source (Basic Data Mining Tutorial)

Next Lesson

Lesson 2: Building a Targeted Mailing Scenario (Basic Data Mining Tutorial)

See Also

Defining a Data Source View (Analysis Services)

How to: Define a Data Source View Using the Data Source View Wizard (Analysis Services)

Lesson 2: Building a Targeted Mailing Structure (Basic Data Mining Tutorial)

The Marketing department of Adventure Works Cycles wants to increase sales by targeting specific customers for a mailing campaign. The company's database, , contains a list of past customers and a list of potential new customers. By investigating the attributes of previous bike buyers, the company hopes to discover patterns that they can then apply to potential customers. They hope to use the discovered patterns to predict which potential customers are most likely to purchase a bike from Adventure Works Cycles.

12

In this lesson you will use the Data Mining Wizard to create the targeted mailing structure. After you complete the tasks in this lesson, you will have a mining structure with a single model. Because there are many steps and important concepts involved in creating a structure, we have separated this process into the following three tasks:

Creating a Targeted Mailing Mining Model Structure (Basic Data Mining Tutorial) Specifying the Data Type and Content Type (Basic Data Mining Tutorial) Specifying a Testing Data Set for the Structure (Basic Data Mining Tutorial)

First Task in Lesson

Creating a Targeted Mailing Mining Model Structure (Basic Data Mining Tutorial)

Previous Lesson

Lesson 1: Preparing the Analysis Services Database (Basic Data Mining Tutorial)

Next Lesson

Lesson 3: Adding and Processing Models (Basic Data Mining Tutorial)

See Also

Create the Data Mining Structure (Data Mining Wizard) Creating a New Mining Structure

Creating a Targeted Mailing Mining Model Structure (Basic Data Mining Tutorial)

The first step in creating a targeted mailing scenario is to use the Data Mining Wizard in SQL Server Data Tools (SSDT) to create a new mining structure and decision tree mining model.

In this task you will set up a new mining structure, and add an initial mining model based on the Microsoft Decision Trees algorithm. To create the structure, you will first select tables and views and then identify which columns will be used for training and which for testing.

Procedures

To create a mining structure for the targeted mailing scenario

1.In Solution Explorer, right-click Mining Structures and select New Mining Structure to start the Data Mining Wizard.

2.On the Welcome to the Data Mining Wizard page, click Next.

3.On the Select the Definition Method page, verify that From existing relational database or data warehouse is selected, and then click Next.

4.On the Create the Data Mining Structure page, under Which data mining technique do you want to use?, select Microsoft Decision Trees.

13

Note

If you get a warning that no data mining algorithms can be found, the project properties might not be configured correctly. This warning occurs when the project attempts to retrieve a list of data mining algorithms from the Analysis Services server and cannot find the server. By default, SQL Server Data Tools will use localhost as the server. If you are using a different instance, or a named instance, you must change the project properties. For more information, see Creating an Analysis Services Project (Basic Data Mining Tutorial).

5.Click Next.

6.On the Select Data Source View page, in the Available data source views pane, select Targeted Mailing. You can click Browse to view the tables in the data source view and then click Close to return to the wizard.

7.Click Next.

8.On the Specify Table Types page, select the check box in the Case column for vTargetMail to use it as the case table, and then click Next. You will use the ProspectiveBuyer table later for testing; ignore it for now.

9.On the Specify the Training Data page, you will identify at least one predictable column, one key column, and one input column for your model. Select the check box in the Predictable column in the BikeBuyer row.

Note

Notice the warning at the bottom of the window. You will not be able to navigate to the next page until you select at least one Input and one

Predictable column.

10.Click Suggest to open the Suggest Related Columns dialog box.

The Suggest button is enabled whenever at least one predictable attribute has been selected. The Suggest Related Columns dialog box lists the columns that are most closely related to the predictable column, and orders the attributes by their correlation with the predictable attribute. Columns with a significant correlation (confidence greater than 95%) are automatically selected to be included in the model.

Review the suggestions, and then click Cancel to ignore the suggestions.

Note

If you click OK, all listed suggestions will be marked as input columns in the wizard. If you agree with only some of the suggestions, you must change the values manually.

11.Verify that the check box in the Key column is selected in the CustomerKey row.

Note

14

If the source table from the data source view indicates a key, the Data Mining Wizard automatically chooses that column as a key for the model.

12.Select the check boxes in the Input column in the following rows. You can check multiple columns by highlighting a range of cells and pressing CTRL while selecting a check box.

Age

CommuteDistance

EnglishEducation

EnglishOccupation

Gender

GeographyKey

HouseOwnerFlag

MaritalStatus

NumberCarsOwned

NumberChildrenAtHome

Region

TotalChildren

YearlyIncome

13.On the far left column of the page, select the check boxes in the following rows.

AddressLine1

AddressLine2

DateFirstPurchase

EmailAddress

FirstName

LastName

Ensure that these rows have checks only in the left column. These columns will be added to your structure but will not be included in the model. However, after the model is built, they will be available for drillthrough and testing. For more information about drillthrough, see Using Drill through on Mining Models and Mining Structures (Analysis Services - Data Mining).

14. Click Next.

Next Task in Lesson

Specifying the Columns used in the Mining Structure (Basic Data Mining Tutorial)

See Also

Specify Table Types (Data Mining Wizard) Data Mining Designer

15

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]