- •Contents
- •Data Mining Tutorials (Analysis Services)
- •Basic Data Mining Tutorial
- •Lesson 1: Preparing the Analysis Services Database (Basic Data Mining Tutorial)
- •Creating an Analysis Services Project (Basic Data Mining Tutorial)
- •Creating a Data Source (Basic Data Mining Tutorial)
- •Creating a Data Source View (Basic Data Mining Tutorial)
- •Lesson 2: Building a Targeted Mailing Structure (Basic Data Mining Tutorial)
- •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)
- •Lesson 3: Adding and Processing Models
- •Adding New Models to the Targeted Mailing Structure (Basic Data Mining Tutorial)
- •Processing Models in the Targeted Mailing Structure (Basic Data Mining Tutorial)
- •Lesson 4: Exploring the Targeted Mailing Models (Basic Data Mining Tutorial)
- •Exploring the Decision Tree Model (Basic Data Mining Tutorial)
- •Exploring the Clustering Model (Basic Data Mining Tutorial)
- •Exploring the Naive Bayes Model (Basic Data Mining Tutorial)
- •Lesson 5: Testing Models (Basic Data Mining Tutorial)
- •Testing Accuracy with Lift Charts (Basic Data Mining Tutorial)
- •Testing a Filtered Model (Basic Data Mining Tutorial)
- •Lesson 6: Creating and Working with Predictions (Basic Data Mining Tutorial)
- •Creating Predictions (Basic Data Mining Tutorial)
- •Using Drillthrough on Structure Data (Basic Data Mining Tutorial)
- •Lesson 1: Creating the Intermediate Data Mining Solution (Intermediate Data Mining Tutorial)
- •Creating a Solution and Data Source (Intermediate Data Mining Tutorial)
- •Lesson 2: Building a Forecasting Scenario (Intermediate Data Mining Tutorial)
- •Adding a Data Source View for Forecasting (Intermediate Data Mining Tutorial)
- •Creating a Forecasting Structure and Model (Intermediate Data Mining Tutorial)
- •Modifying the Forecasting Structure (Intermediate Data Mining Tutorial)
- •Customizing and Processing the Forecasting Model (Intermediate Data Mining Tutorial)
- •Exploring the Forecasting Model (Intermediate Data Mining Tutorial)
- •Creating Time Series Predictions (Intermediate Data Mining Tutorial)
- •Advanced Time Series Predictions (Intermediate Data Mining Tutorial)
- •Lesson 3: Building a Market Basket Scenario (Intermediate Data Mining Tutorial)
- •Adding a Data Source View with Nested Tables (Intermediate Data Mining Tutorial)
- •Creating a Market Basket Structure and Model (Intermediate Data Mining Tutorial)
- •Modifying and Processing the Market Basket Model (Intermediate Data Mining Tutorial)
- •Exploring the Market Basket Models (Intermediate Data Mining Tutorial)
- •Filtering a Nested Table in a Mining Model (Intermediate Data Mining Tutorial)
- •Predicting Associations (Intermediate Data Mining Tutorial)
- •Lesson 4: Building a Sequence Clustering Scenario (Intermediate Data Mining Tutorial)
- •Creating a Sequence Clustering Mining Model Structure (Intermediate Data Mining Tutorial)
- •Processing the Sequence Clustering Model
- •Exploring the Sequence Clustering Model (Intermediate Data Mining Tutorial)
- •Creating a Related Sequence Clustering Model (Intermediate Data Mining Tutorial)
- •Creating Predictions on a Sequence Clustering Model (Intermediate Data Mining Tutorial)
- •Lesson 5: Building Neural Network and Logistic Regression Models (Intermediate Data Mining Tutorial)
- •Adding a Data Source View for Call Center Data (Intermediate Data Mining Tutorial)
- •Creating a Neural Network Structure and Model (Intermediate Data Mining Tutorial)
- •Exploring the Call Center Model (Intermediate Data Mining Tutorial)
- •Adding a Logistic Regression Model to the Call Center Structure (Intermediate Data Mining Tutorial)
- •Creating Predictions for the Call Center Models (Intermediate Data Mining Tutorial)
- •Creating and Querying Data Mining Models with DMX: Tutorials (Analysis Services - Data Mining)
- •Bike Buyer DMX Tutorial
- •Lesson 1: Creating the Bike Buyer Mining Structure
- •Lesson 2: Adding Mining Models to the Bike Buyer Mining Structure
- •Lesson 3: Processing the Bike Buyer Mining Structure
- •Lesson 4: Browsing the Bike Buyer Mining Models
- •Lesson 5: Executing Prediction Queries
- •Market Basket DMX Tutorial
- •Lesson 1: Creating the Market Basket Mining Structure
- •Lesson 2: Adding Mining Models to the Market Basket Mining Structure
- •Lesson 3: Processing the Market Basket Mining Structure
- •Lesson 4: Executing Market Basket Predictions
- •Time Series Prediction DMX Tutorial
- •Lesson 1: Creating a Time Series Mining Model and Mining Structure
- •Lesson 2: Adding Mining Models to the Time Series Mining Structure
- •Lesson 3: Processing the Time Series Structure and Models
- •Lesson 4: Creating Time Series Predictions Using DMX
- •Lesson 5: Extending the Time Series Model
See Also
Basic Data Mining Tutorial
Bike Buyer DMX Tutorial
Market Basket DMX Tutorial
Lesson 1: Creating the Intermediate Data Mining Solution (Intermediate Data Mining Tutorial)
In the Basic Data Mining tutorial, you created an Analysis Services project that contains a simple data mining solution based on the new database.
For this tutorial, you will create a separate Analysis Services project by using SQL Server Data Tools (SSDT). You will create a Analysis Services data source that uses , and add several new data source views to that data source, to support the scenarios and model types.
This lesson consists of the following task:
•Creating a Solution and Data Source
Next Step
Lesson 2: Building a Forecasting Scenario (Intermediate Data Mining Tutorial)
All Lessons
Lesson 1: Creating the Intermediate Data Mining Solution
Lesson 2: Forecasting Scenario (Intermediate Data Mining Tutorial) Lesson 3: Market Basket Scenario (Intermediate Data Mining Tutorial)
Lesson 4: Sequence Clustering Scenario (Intermediate Data Mining Tutorial)
Lesson 5: Neural Network and Logistic Regression Scenario (Intermediate Data Mining Tutorial)
See Also
Data Mining Tutorial
Creating and Querying Data Mining Models with DMX: Tutorials (Analysis Services - Data Mining)
Creating a Solution and Data Source (Intermediate Data Mining Tutorial)
To work with data mining, you must first create a project in SQL Server Data Tools (SSDT) using the template, Analysis Services Multidimensional and Data Mining Project. When you open the template, it loads into the designer all the schemas that you might
44
need for data mining: data sources, mining structures and mining models, and even cubes if your mining structure uses multidimensional data.
When you create the project, your solution is stored as a local file until the solution is deployed. When you deploy the solution, Analysis Services looks for the Analysis Services server specified in the project properties, and creates a new Analysis Services database with the same name as the project. By default, Analysis Services uses the localhost instance for new projects. If you are using a named instance, or if you specified a different name for the default instance, you must change the deployment database property of the project to the location where you want to create your data mining objects.
For more information about Analysis Services projects, see Defining an Analysis Services Project.
Procedures
To create a new Analysis Services project for this tutorial
1.Open SQL Server Data Tools (SSDT).
2.On the File menu, point to New, and then click Project.
3.Select Analysis Services Multidimensional and Data Mining Project from the Installed Templates pane.
4.In the Name box, name the new project DM Intermediate.
5.Click .
To change the instance where data mining objects are stored (optional)
1.In SQL Server Data Tools (SSDT), on the Project menu, click Properties.
2.In the left side of the Property Pages pane, click Deployment.
3.Verify that the Server name is localhost. If you are using a different instance, type the name of the instance. If you are using a named instance of Analysis
Services, type the machine name and then the instance name. |
Click . |
To change the deployment properties for a project (optional)
1.In Solution Explorer, right-click the project, and then select Properties. -- or --
In SQL Server Data Tools (SSDT), on the Project menu, select Properties.
2.In the left side of the Property Pages pane, click Deployment.
In the Options pane, select Deployment Mode, and set the options to Deploy All to overwrite, or to Deploy Changes Only to update objects or add objects.
Creating a Data Source
45
In the Basic Data Mining Tutorial, you created a data source that stores connection information for the database. Follow the same steps to create the data source in this solution.
To create a data source
•Creating a Data Source (Basic Data Mining Tutorial)
A single data source can support multiple data source views, and each data source view can have multiple tables. However, because the data source and data source view are deployed to your Microsoft SQL Server Analysis Services database together with the data mining models that you create, as a best practice you should include in each data source view only those tables that are required for each data mining model or group of models.
In the following lessons, you will add data source views to support each of the new scenarios. Only the market basket and sequence clustering lessons use the same data source view; otherwise, each scenario uses a different data source view, so the lessons are independent of each other and can be completed separately.
Scenario |
Data included in the data source view |
|
|
Lesson 2: Building a Forecasting Scenario |
Monthly sales reports for bicycle models in |
(Intermediate Data Mining Tutorial) |
different regions, collected as a single view. |
|
|
Lesson 3: Building a Market Basket |
A table containing a list of customer orders, |
Scenario (Intermediate Data Mining |
and a nested table showing the individual |
Tutorial) |
purchases for each customer. |
|
|
Lesson 4: Building a Sequence Clustering |
The same data that is used for the market |
Scenario (Intermediate Data Mining |
basket analysis, with the addition of an |
Tutorial) |
identifier that shows the order in which |
|
items were purchased. |
|
|
Lesson 5: Building a Neural Network Model |
A single table containing some preliminary |
(Intermediate Data Mining Tutorial) |
performance tracking data from a call |
|
center. |
|
|
Next Lesson
Lesson 2: Building a Forecasting Scenario (Intermediate Data Mining Tutorial)
See Also
Defining Data Sources (Analysis Services)
Designing Data Source Views (Analysis Services)
46